Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODepositData.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODepositData.cs	(revision 184)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODepositData.cs	(revision 185)
@@ -43,6 +43,8 @@
             DepositAmount,
             DepositAmountCash,
             DepositAmountBill,
+            DepositPersonCode,
+            Note,
             EntryDate,
             UpdateDate,
         }
@@ -218,6 +220,8 @@
                     strcmd += string.Format(", {0}", data.DepositAmount.ToString());
                     strcmd += string.Format(", {0}", data.DepositAmountCash.ToString());
                     strcmd += string.Format(", {0}", data.DepositAmountBill.ToString());
+                    strcmd += string.Format(", {0}", data.DepositPersonCode.ToString());
+                    strcmd += string.Format(", '{0}'", data.Note.ToString());
                     strcmd += ", NOW()";
                     strcmd += ", NOW()";
                     strcmd += ")";
@@ -260,6 +264,8 @@
                 strcmd += string.Format(",DepositAmount = {0}", data.DepositAmount.ToString());
                 strcmd += string.Format(",DepositAmountCash = {0}", data.DepositAmountCash.ToString());
                 strcmd += string.Format(",DepositAmountBill = {0}", data.DepositAmountBill.ToString());
+                strcmd += string.Format(",DepositPersonCode =  {0}", data.DepositPersonCode.ToString());
+                strcmd += string.Format(",Note =  '{0}'", data.Note.ToString());
                 strcmd += ", UpdateDate = NOW()";
                 strcmd += AddSQLString;
 
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODepositDataDetail.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODepositDataDetail.cs	(revision 184)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODepositDataDetail.cs	(revision 185)
@@ -30,7 +30,7 @@
 
         #region 定数
         /// <summary>
-        /// 請求データフィールド並び
+        /// 入金明細データフィールド並び
         /// </summary>
         public enum NameColumn
         {
@@ -37,8 +37,6 @@
             OrderersDivision = 0,
             OrderersCode,
             TargetDate,
-            SeqNo,
-            LineCount,
             RequestNo,
             OrderNo,
             DepositAmount,
@@ -46,12 +44,13 @@
             CnstrPrice,
             Fees,
             OtherAdjustments,
-            CarryAmount,
-            ApprovalPersonCode,
-            ApprovalDate,
-            ApprovalEndFlg,
-            ENTRYDATE,
-            UPDATEDATE,
+            DifferenceAmount,
+            ConfirmationPersonCode,
+            ConfirmationDate,
+            ConfirmationEndFlg,
+            Note,
+            EntryDate,
+            UpdateDate,
         }
         #endregion
 
@@ -88,8 +87,6 @@
                 strcmd += " OrderersDivision";
                 strcmd += " ,OrderersCode";
                 strcmd += " ,CAST(TargetDate As Char)";
-                strcmd += " ,SeqNo";
-                strcmd += " ,LineCount";
                 strcmd += " ,RequestNo";
                 strcmd += " ,OrderNo";
                 strcmd += " ,DepositAmount";
@@ -97,10 +94,10 @@
                 strcmd += " ,CnstrPrice";
                 strcmd += " ,Fees";
                 strcmd += " ,OtherAdjustments";
-                strcmd += " ,CarryAmount";
-                strcmd += " ,ApprovalPersonCode";
-                strcmd += " ,DATE_FORMAT(ApprovalDate, '%Y/%m/%d')";
-                strcmd += " ,ApprovalEndFlg";
+                strcmd += " ,DifferenceAmount";
+                strcmd += " ,ConfirmationPersonCode";
+                strcmd += " ,DATE_FORMAT(ConfirmationDate, '%Y/%m/%d')";
+                strcmd += " ,ConfirmationEndFlg";
                 strcmd += " ,DATE_FORMAT(EntryDate, '%Y/%m/%d %H:%i:%s')";
                 strcmd += " ,DATE_FORMAT(UpdateDate, '%Y/%m/%d %H:%i:%s')";
                 strcmd += " FROM DepositDataDetail";
@@ -173,8 +170,6 @@
                 strcmd += string.Format(" {0}", data.OrderersDivision.ToString());
                 strcmd += string.Format(", {0}", data.OrderersCode.ToString());
                 strcmd += string.Format(", {0}", data.TargetDate.ToString());
-                strcmd += string.Format(", {0}", data.SeqNo.ToString());
-                strcmd += string.Format(", {0}", data.LineCount.ToString());
                 strcmd += string.Format(", {0}", data.RequestNo.ToString());
                 strcmd += string.Format(", {0}", data.OrderNo.ToString());
                 strcmd += string.Format(", {0}", data.DepositAmount.ToString());
@@ -182,11 +177,11 @@
                 strcmd += string.Format(", {0}", data.CnstrPrice.ToString());
                 strcmd += string.Format(", {0}", data.Fees.ToString());
                 strcmd += string.Format(", {0}", data.OtherAdjustments.ToString());
-                strcmd += string.Format(", {0}", data.CarryAmount.ToString());
-                strcmd += string.Format(", {0}", data.ApprovalPersonCode.ToString());
-                strcmd += string.Format(", DATE_FORMAT('{0}','%Y/%m/%d')", data.ApprovalDate.ToShortDateString());
-                strcmd += string.Format(", {0}", data.ApprovalEndFlg ? 1 : 0);
-
+                strcmd += string.Format(", {0}", data.DifferenceAmount.ToString());
+                strcmd += string.Format(", {0}", data.ConfirmationPersonCode.ToString());
+                strcmd += string.Format(", DATE_FORMAT('{0}','%Y/%m/%d')", data.ConfirmationDate.ToShortDateString());
+                strcmd += string.Format(", {0}", data.ConfirmationEndFlg.ToString());
+                strcmd += string.Format(", '{0}'", data.Note.ToString());
                 strcmd += ", NOW()";
                 strcmd += ", NOW()";
                 strcmd += ")";
@@ -220,12 +215,10 @@
 
                 strcmd += " SET";
 
-//                strcmd += string.Format(" OrderersDivision = {0}", data.OrderersDivision.ToString());
-//                strcmd += string.Format(",OrderersCode = {0}", data.OrderersCode.ToString());
-//                strcmd += string.Format(",TargetDate = '{0}'", data.TargetDate);
-//                strcmd += string.Format(",SeqNo = {0}", data.SeqNo.ToString());
-//                strcmd += string.Format(",LineCount = {0}", data.LineCount.ToString());
-                strcmd += string.Format(" RequestNo = {0}", data.RequestNo.ToString());
+                strcmd += string.Format(" OrderersDivision = {0}", data.OrderersDivision.ToString());
+                strcmd += string.Format(",OrderersCode = {0}", data.OrderersCode.ToString());
+                strcmd += string.Format(",TargetDate = {0}", data.TargetDate);
+                strcmd += string.Format(",RequestNo = {0}", data.RequestNo.ToString());
                 strcmd += string.Format(",OrderNo = {0}", data.OrderNo.ToString());
                 strcmd += string.Format(",DepositAmount = {0}", data.DepositAmount.ToString());
                 strcmd += string.Format(",DiscountAmount = {0}", data.DiscountAmount.ToString());
@@ -232,14 +225,14 @@
                 strcmd += string.Format(",CnstrPrice = {0}", data.CnstrPrice.ToString());
                 strcmd += string.Format(",Fees = {0}", data.Fees.ToString());
                 strcmd += string.Format(",OtherAdjustments = {0}", data.OtherAdjustments.ToString());
-                strcmd += string.Format(",CarryAmount = {0}", data.CarryAmount.ToString());
-                strcmd += string.Format(",ApprovalPersonCode = {0}", data.ApprovalPersonCode.ToString());
-                strcmd += string.Format(",ApprovalDate = DATE_FORMAT('{0}','%Y/%m/%d')", data.ApprovalDate.ToShortDateString());
-                strcmd += string.Format(",ApprovalEndFlg = {0}", data.ApprovalEndFlg ? 1 : 0);
-
+                strcmd += string.Format(",DifferenceAmount = {0}", data.DifferenceAmount.ToString());
+                strcmd += string.Format(",ConfirmationPersonCode = {0}", data.ConfirmationPersonCode.ToString());
+                strcmd += string.Format(",ConfirmationDate = DATE_FORMAT('{0}','%Y/%m/%d')", data.ConfirmationDate.ToShortDateString());
+                strcmd += string.Format(",ConfirmationEndFlg = {0}", data.ConfirmationEndFlg.ToString());
+                strcmd += string.Format(",Note = '{0}'", data.Note.ToString());
                 strcmd += ", UpdateDate = NOW()";
-                strcmd += string.Format(" where OrderersDivision = {0} and OrderersCode = {1} and TargetDate = {2} and SeqNo = {3} and LineCount = {4} ",
-                    data.OrderersDivision, data.OrderersCode, data.TargetDate, data.SeqNo, data.LineCount);
+                strcmd += string.Format(" where OrderersDivision = {0} and OrderersCode = {1} and TargetDate = {2} and RequestNo = {3} ",
+                    data.OrderersDivision, data.OrderersCode, data.TargetDate, data.RequestNo);
                 strcmd += AddSQLString;
 
                 if (!ExecuteNonQuery(strcmd, bConnect)) return false;
@@ -295,8 +288,6 @@
                 wrk.OrderersDivision = int.Parse(objwrk[(int)NameColumn.OrderersDivision].ToString());
                 wrk.OrderersCode = int.Parse(objwrk[(int)NameColumn.OrderersCode].ToString());
                 wrk.TargetDate = objwrk[(int)NameColumn.TargetDate].ToString();
-                wrk.SeqNo = int.Parse(objwrk[(int)NameColumn.SeqNo].ToString());
-                wrk.LineCount = int.Parse(objwrk[(int)NameColumn.LineCount].ToString());
                 wrk.RequestNo = int.Parse(objwrk[(int)NameColumn.RequestNo].ToString());
                 wrk.OrderNo = int.Parse(objwrk[(int)NameColumn.OrderNo].ToString());
                 wrk.DepositAmount = long.Parse(objwrk[(int)NameColumn.DepositAmount].ToString());
@@ -304,13 +295,13 @@
                 wrk.CnstrPrice = long.Parse(objwrk[(int)NameColumn.CnstrPrice].ToString());
                 wrk.Fees = long.Parse(objwrk[(int)NameColumn.Fees].ToString());
                 wrk.OtherAdjustments = long.Parse(objwrk[(int)NameColumn.OtherAdjustments].ToString());
-                wrk.CarryAmount = long.Parse(objwrk[(int)NameColumn.CarryAmount].ToString());
-                wrk.ApprovalPersonCode = int.Parse(objwrk[(int)NameColumn.ApprovalPersonCode].ToString());
-                wrk.ApprovalDate = DateTime.Parse(objwrk[(int)NameColumn.ApprovalDate].ToString());
-                wrk.ApprovalEndFlg = (int.Parse(objwrk[(int)NameColumn.ApprovalEndFlg].ToString()) != 0);
+                wrk.DifferenceAmount = long.Parse(objwrk[(int)NameColumn.DifferenceAmount].ToString());
+                wrk.ConfirmationPersonCode = int.Parse(objwrk[(int)NameColumn.ConfirmationPersonCode].ToString());
+                wrk.ConfirmationDate = DateTime.Parse(objwrk[(int)NameColumn.ConfirmationDate].ToString());
+                wrk.ConfirmationEndFlg = int.Parse(objwrk[(int)NameColumn.ConfirmationEndFlg].ToString());
 
-                wrk.EntryDate = DateTime.Parse(objwrk[(int)NameColumn.ENTRYDATE].ToString());
-                wrk.UpdateDate = DateTime.Parse(objwrk[(int)NameColumn.UPDATEDATE].ToString());
+                wrk.EntryDate = DateTime.Parse(objwrk[(int)NameColumn.EntryDate].ToString());
+                wrk.UpdateDate = DateTime.Parse(objwrk[(int)NameColumn.UpdateDate].ToString());
             }
             catch (MySqlException myex)
             {
@@ -336,8 +327,6 @@
                 wrk.OrderersDivision = 0;
                 wrk.OrderersCode = 0;
                 wrk.TargetDate = string.Empty;
-                wrk.SeqNo = 0;
-                wrk.LineCount = 0;
                 wrk.RequestNo = 0;
                 wrk.OrderNo = 0;
                 wrk.DepositAmount = 0;
@@ -345,10 +334,10 @@
                 wrk.CnstrPrice = 0;
                 wrk.Fees = 0;
                 wrk.OtherAdjustments = 0;
-                wrk.CarryAmount = 0;
-                wrk.ApprovalPersonCode = 0;
-                wrk.ApprovalDate = DateTime.MinValue;
-                wrk.ApprovalEndFlg = false;
+                wrk.DifferenceAmount = 0;
+                wrk.ConfirmationPersonCode = 0;
+                wrk.ConfirmationDate = DateTime.MinValue;
+                wrk.ConfirmationEndFlg = 0;
 
                 wrk.EntryDate = DateTime.Now;
                 wrk.UpdateDate = DateTime.Now;
Index: branches/src/ProcessManagement/ProcessManagement/DataModel/DepositData.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DataModel/DepositData.cs	(revision 184)
+++ branches/src/ProcessManagement/ProcessManagement/DataModel/DepositData.cs	(revision 185)
@@ -16,11 +16,13 @@
         private int m_OrderersCode = 0;                         // 発注者コード
         private string m_TargetDate = string.Empty;             // 対象年月
         private int m_SeqNo = 0;                                // 連番
-        private int m_BusinessPeriod = 0;                         // 営業期
+        private int m_BusinessPeriod = 0;                       // 営業期
         private DateTime m_DepositDate = DateTime.MinValue;     // 入金日
-        private long m_DepositAmount = 0;                        // 入金金額
-        private long m_DepositAmountCash = 0;                    // 入金金額（現金）
-        private long m_DepositAmountBill = 0;                    // 入金金額（手形）
+        private long m_DepositAmount = 0;                       // 入金金額
+        private long m_DepositAmountCash = 0;                   // 入金金額（現金）
+        private long m_DepositAmountBill = 0;                   // 入金金額（手形）
+        private int m_DepositPersonCode = 0;                    // 入金担当者コード
+        private string m_Note = string.Empty;                   // 備考
         private DateTime m_EntryDate = DateTime.Now;            // 登録年月日
         private DateTime m_UpdateDate = DateTime.Now;           // 更新年月日
         #endregion
@@ -111,6 +113,24 @@
         }
 
         /// <summary>
+        /// 入金担当者コード
+        /// </summary>
+        public int DepositPersonCode
+        {
+            get { return m_DepositPersonCode; }
+            set { m_DepositPersonCode = value; }
+        }
+
+        /// <summary>
+        /// 備考
+        /// </summary>
+        public string Note
+        {
+            get { return m_Note; }
+            set { m_Note = value; }
+        }
+
+        /// <summary>
         /// 登録年月日
         /// </summary>
         public DateTime EntryDate
Index: branches/src/ProcessManagement/ProcessManagement/DataModel/DepositDataDetail.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DataModel/DepositDataDetail.cs	(revision 184)
+++ branches/src/ProcessManagement/ProcessManagement/DataModel/DepositDataDetail.cs	(revision 185)
@@ -12,24 +12,23 @@
     public class DepositDataDetail
     {
         #region メンバ変数
-        private int m_OrderersDivision = 0;                     // 発注者区分
-        private int m_OrderersCode = 0;                         // 発注者コード
-        private string m_TargetDate = string.Empty;             // 対象年月
-        private int m_SeqNo = 0;                                // 連番
-        private int m_LineCount = 0;                            // 行番号
-        private int m_RequestNo = 0;                            // 請求No
-        private int m_OrderNo = 0;                              // 受付番号
-        private long m_DepositAmount = 0;                        // 入金金額
-        private long m_DiscountAmount = 0;                       // 値引き金額
-        private long m_CnstrPrice = 0;                           // 協力金
-        private long m_Fees = 0;                                 // 手数料
-        private long m_OtherAdjustments = 0;                     // その他調整
-        private long m_CarryAmount = 0;                          // 繰越金額
-        private int m_ApprovalPersonCode = 0;                   // 承認担当者コード
-        private DateTime m_ApprovalDate = DateTime.MinValue;    // 担当者承認日付
-        private bool m_ApprovalEndFlg = false;                  // 承認完了フラグ
-        private DateTime m_EntryDate = DateTime.Now;            // 登録年月日
-        private DateTime m_UpdateDate = DateTime.Now;           // 更新年月日
+        private int m_OrderersDivision = 0;                         // 発注者区分
+        private int m_OrderersCode = 0;                             // 発注者コード
+        private string m_TargetDate = string.Empty;                 // 対象年月
+        private int m_RequestNo = 0;                                // 請求No
+        private int m_OrderNo = 0;                                  // 受付番号
+        private long m_DepositAmount = 0;                           // 入金金額
+        private long m_DiscountAmount = 0;                          // 値引き金額
+        private long m_CnstrPrice = 0;                              // 協力金
+        private long m_Fees = 0;                                    // 手数料
+        private long m_OtherAdjustments = 0;                        // その他調整
+        private long m_DifferenceAmount = 0;                        // 差分
+        private int m_ConfirmationPersonCode = 0;                   // 承認担当者コード
+        private DateTime m_ConfirmationDate = DateTime.MinValue;    // 担当者承認日付
+        private int m_ConfirmationEndFlg = 0;                       // 承認完了フラグ
+        private string m_Note = string.Empty;                       // 備考
+        private DateTime m_EntryDate = DateTime.Now;                // 登録年月日
+        private DateTime m_UpdateDate = DateTime.Now;               // 更新年月日
         #endregion
 
         #region コンストラクタ
@@ -64,24 +63,6 @@
         }
 
         /// <summary>
-        /// 連番
-        /// </summary>
-        public int SeqNo
-        {
-            get { return m_SeqNo; }
-            set { m_SeqNo = value; }
-        }
-
-        /// <summary>
-        /// 行番号
-        /// </summary>
-        public int LineCount
-        {
-            get { return m_LineCount; }
-            set { m_LineCount = value; }
-        }
-
-        /// <summary>
         /// 請求No
         /// </summary>
         public int RequestNo
@@ -145,42 +126,51 @@
         }
 
         /// <summary>
-        /// 繰越金額
+        /// 差額金額
         /// </summary>
-        public long CarryAmount
+        public long DifferenceAmount
         {
-            get { return m_CarryAmount; }
-            set { m_CarryAmount = value; }
+            get { return m_DifferenceAmount; }
+            set { m_DifferenceAmount = value; }
         }
 
         /// <summary>
-        /// 承認担当者コード
+        /// 確認担当者コード
         /// </summary>
-        public int ApprovalPersonCode
+        public int ConfirmationPersonCode
         {
-            get { return m_ApprovalPersonCode; }
-            set { m_ApprovalPersonCode = value; }
+            get { return m_ConfirmationPersonCode; }
+            set { m_ConfirmationPersonCode = value; }
         }
 
         /// <summary>
-        /// 担当者承認日付
+        /// 担当者確認日付
         /// </summary>
-        public DateTime ApprovalDate
+        public DateTime ConfirmationDate
         {
-            get { return m_ApprovalDate; }
-            set { m_ApprovalDate = value; }
+            get { return m_ConfirmationDate; }
+            set { m_ConfirmationDate = value; }
         }
 
         /// <summary>
-        /// 承認完了フラグ
+        /// 確認完了フラグ
         /// </summary>
-        public bool ApprovalEndFlg
+        public int ConfirmationEndFlg
         {
-            get { return m_ApprovalEndFlg; }
-            set { m_ApprovalEndFlg = value; }
+            get { return m_ConfirmationEndFlg; }
+            set { m_ConfirmationEndFlg = value; }
         }
 
         /// <summary>
+        /// 備考
+        /// </summary>
+        public string Note
+        {
+            get { return m_Note; }
+            set { m_Note = value; }
+        }
+
+        /// <summary>
         /// 登録年月日
         /// </summary>
         public DateTime EntryDate
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmEntryDeposit.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmEntryDeposit.Designer.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmEntryDeposit.Designer.cs	(revision 185)
@@ -0,0 +1,332 @@
+﻿namespace ProcessManagement.Forms.DataEntry.Request
+{
+    partial class FrmEntryDeposit
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            this.dgv1 = new System.Windows.Forms.DataGridView();
+            this.OrderersDivision = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.OrderersCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.TargetDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.SeqNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.BusinessPeriod = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.DepositDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.DepositAmount = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.DepositAmountCash = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.DepositAmountBill = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.DepositPersonCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.DepositPersonName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Note = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.btnAccept = new System.Windows.Forms.Button();
+            this.btnEnd = new System.Windows.Forms.Button();
+            this.label1 = new System.Windows.Forms.Label();
+            this.OrderersName = new System.Windows.Forms.Label();
+            this.button1 = new System.Windows.Forms.Button();
+            this.btnDelete = new System.Windows.Forms.Button();
+            ((System.ComponentModel.ISupportInitialize)(this.dgv1)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // dgv1
+            // 
+            this.dgv1.AllowUserToAddRows = false;
+            this.dgv1.AllowUserToResizeColumns = false;
+            this.dgv1.AllowUserToResizeRows = false;
+            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgv1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+            this.dgv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dgv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.OrderersDivision,
+            this.OrderersCode,
+            this.TargetDate,
+            this.SeqNo,
+            this.BusinessPeriod,
+            this.DepositDate,
+            this.DepositAmount,
+            this.DepositAmountCash,
+            this.DepositAmountBill,
+            this.DepositPersonCode,
+            this.DepositPersonName,
+            this.Note});
+            this.dgv1.Location = new System.Drawing.Point(12, 63);
+            this.dgv1.Name = "dgv1";
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle6.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgv1.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;
+            this.dgv1.RowHeadersVisible = false;
+            this.dgv1.RowTemplate.Height = 21;
+            this.dgv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+            this.dgv1.Size = new System.Drawing.Size(652, 172);
+            this.dgv1.TabIndex = 9;
+            this.dgv1.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgv1_CellBeginEdit);
+            this.dgv1.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv1_CellEnter);
+            this.dgv1.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dgv1_CellFormatting_1);
+            this.dgv1.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dgv1_CellValidating);
+            this.dgv1.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv1_CellValueChanged);
+            // 
+            // OrderersDivision
+            // 
+            this.OrderersDivision.HeaderText = "■発注者区分";
+            this.OrderersDivision.Name = "OrderersDivision";
+            this.OrderersDivision.ReadOnly = true;
+            this.OrderersDivision.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.OrderersDivision.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.OrderersDivision.Visible = false;
+            // 
+            // OrderersCode
+            // 
+            this.OrderersCode.HeaderText = "■発注者コード";
+            this.OrderersCode.Name = "OrderersCode";
+            this.OrderersCode.ReadOnly = true;
+            this.OrderersCode.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.OrderersCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.OrderersCode.Visible = false;
+            // 
+            // TargetDate
+            // 
+            this.TargetDate.HeaderText = "■対象年月";
+            this.TargetDate.Name = "TargetDate";
+            this.TargetDate.ReadOnly = true;
+            this.TargetDate.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.TargetDate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.TargetDate.Visible = false;
+            // 
+            // SeqNo
+            // 
+            this.SeqNo.HeaderText = "■連番";
+            this.SeqNo.Name = "SeqNo";
+            this.SeqNo.ReadOnly = true;
+            this.SeqNo.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.SeqNo.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.SeqNo.Visible = false;
+            // 
+            // BusinessPeriod
+            // 
+            this.BusinessPeriod.HeaderText = "■営業期";
+            this.BusinessPeriod.Name = "BusinessPeriod";
+            this.BusinessPeriod.ReadOnly = true;
+            this.BusinessPeriod.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.BusinessPeriod.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.BusinessPeriod.Visible = false;
+            // 
+            // DepositDate
+            // 
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.DepositDate.DefaultCellStyle = dataGridViewCellStyle2;
+            this.DepositDate.HeaderText = "入金日";
+            this.DepositDate.Name = "DepositDate";
+            this.DepositDate.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.DepositDate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            // 
+            // DepositAmount
+            // 
+            this.DepositAmount.HeaderText = "■入金金額";
+            this.DepositAmount.Name = "DepositAmount";
+            this.DepositAmount.ReadOnly = true;
+            this.DepositAmount.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.DepositAmount.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.DepositAmount.Visible = false;
+            // 
+            // DepositAmountCash
+            // 
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.DepositAmountCash.DefaultCellStyle = dataGridViewCellStyle3;
+            this.DepositAmountCash.HeaderText = "入金金額（現金）";
+            this.DepositAmountCash.Name = "DepositAmountCash";
+            this.DepositAmountCash.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.DepositAmountCash.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.DepositAmountCash.Width = 150;
+            // 
+            // DepositAmountBill
+            // 
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.DepositAmountBill.DefaultCellStyle = dataGridViewCellStyle4;
+            this.DepositAmountBill.HeaderText = "入金金額（手形）";
+            this.DepositAmountBill.Name = "DepositAmountBill";
+            this.DepositAmountBill.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.DepositAmountBill.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.DepositAmountBill.Width = 150;
+            // 
+            // DepositPersonCode
+            // 
+            this.DepositPersonCode.HeaderText = "■入金担当者コード";
+            this.DepositPersonCode.Name = "DepositPersonCode";
+            this.DepositPersonCode.ReadOnly = true;
+            this.DepositPersonCode.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.DepositPersonCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.DepositPersonCode.Visible = false;
+            // 
+            // DepositPersonName
+            // 
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.DepositPersonName.DefaultCellStyle = dataGridViewCellStyle5;
+            this.DepositPersonName.HeaderText = "確認者";
+            this.DepositPersonName.Name = "DepositPersonName";
+            this.DepositPersonName.ReadOnly = true;
+            this.DepositPersonName.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.DepositPersonName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.DepositPersonName.Width = 80;
+            // 
+            // Note
+            // 
+            this.Note.HeaderText = "備考";
+            this.Note.Name = "Note";
+            this.Note.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Note.Width = 200;
+            // 
+            // btnAccept
+            // 
+            this.btnAccept.BackColor = System.Drawing.Color.Lime;
+            this.btnAccept.ForeColor = System.Drawing.Color.Black;
+            this.btnAccept.Location = new System.Drawing.Point(418, 241);
+            this.btnAccept.Name = "btnAccept";
+            this.btnAccept.Size = new System.Drawing.Size(120, 32);
+            this.btnAccept.TabIndex = 12;
+            this.btnAccept.Text = "登　録";
+            this.btnAccept.UseVisualStyleBackColor = false;
+            this.btnAccept.Click += new System.EventHandler(this.btnAccept_Click);
+            // 
+            // btnEnd
+            // 
+            this.btnEnd.BackColor = System.Drawing.Color.Blue;
+            this.btnEnd.ForeColor = System.Drawing.Color.Transparent;
+            this.btnEnd.Location = new System.Drawing.Point(544, 241);
+            this.btnEnd.Name = "btnEnd";
+            this.btnEnd.Size = new System.Drawing.Size(120, 32);
+            this.btnEnd.TabIndex = 11;
+            this.btnEnd.Text = "閉じる";
+            this.btnEnd.UseVisualStyleBackColor = false;
+            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
+            // 
+            // label1
+            // 
+            this.label1.BackColor = System.Drawing.Color.Yellow;
+            this.label1.Location = new System.Drawing.Point(12, 18);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(106, 25);
+            this.label1.TabIndex = 13;
+            this.label1.Text = "発注者";
+            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // OrderersName
+            // 
+            this.OrderersName.BackColor = System.Drawing.Color.White;
+            this.OrderersName.Location = new System.Drawing.Point(124, 18);
+            this.OrderersName.Name = "OrderersName";
+            this.OrderersName.Size = new System.Drawing.Size(414, 25);
+            this.OrderersName.TabIndex = 14;
+            this.OrderersName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // button1
+            // 
+            this.button1.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.button1.Location = new System.Drawing.Point(604, 18);
+            this.button1.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(60, 23);
+            this.button1.TabIndex = 15;
+            this.button1.Text = "・・・";
+            this.button1.UseVisualStyleBackColor = true;
+            this.button1.Visible = false;
+            this.button1.Click += new System.EventHandler(this.button1_Click);
+            // 
+            // btnDelete
+            // 
+            this.btnDelete.BackColor = System.Drawing.Color.Magenta;
+            this.btnDelete.ForeColor = System.Drawing.Color.Black;
+            this.btnDelete.Location = new System.Drawing.Point(12, 242);
+            this.btnDelete.Name = "btnDelete";
+            this.btnDelete.Size = new System.Drawing.Size(120, 32);
+            this.btnDelete.TabIndex = 16;
+            this.btnDelete.Text = "入金削除";
+            this.btnDelete.UseVisualStyleBackColor = false;
+            this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
+            // 
+            // FrmEntryDeposit
+            // 
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
+            this.BackColor = System.Drawing.Color.Black;
+            this.ClientSize = new System.Drawing.Size(676, 286);
+            this.Controls.Add(this.btnDelete);
+            this.Controls.Add(this.button1);
+            this.Controls.Add(this.OrderersName);
+            this.Controls.Add(this.label1);
+            this.Controls.Add(this.btnAccept);
+            this.Controls.Add(this.btnEnd);
+            this.Controls.Add(this.dgv1);
+            this.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+            this.Margin = new System.Windows.Forms.Padding(4);
+            this.MaximizeBox = false;
+            this.MinimizeBox = false;
+            this.Name = "FrmEntryDeposit";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "入金入力";
+            this.Load += new System.EventHandler(this.FrmEntryDeposit_Load);
+            ((System.ComponentModel.ISupportInitialize)(this.dgv1)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.DataGridView dgv1;
+        private System.Windows.Forms.Button btnAccept;
+        private System.Windows.Forms.Button btnEnd;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.Label OrderersName;
+        private System.Windows.Forms.Button button1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn OrderersDivision;
+        private System.Windows.Forms.DataGridViewTextBoxColumn OrderersCode;
+        private System.Windows.Forms.DataGridViewTextBoxColumn TargetDate;
+        private System.Windows.Forms.DataGridViewTextBoxColumn SeqNo;
+        private System.Windows.Forms.DataGridViewTextBoxColumn BusinessPeriod;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DepositDate;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DepositAmount;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DepositAmountCash;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DepositAmountBill;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DepositPersonCode;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DepositPersonName;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Note;
+        private System.Windows.Forms.Button btnDelete;
+    }
+}
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmEntryDeposit.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmEntryDeposit.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmEntryDeposit.cs	(revision 185)
@@ -0,0 +1,951 @@
+﻿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 ProcessManagement.DataModel;
+using ProcessManagement.Common;
+using ProcessManagement.Forms.SubForms;
+using System.Collections;
+using ProcessManagement.DB.IOAccess;
+
+using System.Diagnostics;
+using System.Threading;
+using System.Text.RegularExpressions;
+
+using log4net;
+using log4net.Appender;
+using log4net.Repository.Hierarchy;
+
+using ProcessManagement.DB.Core;
+using ProcessManagement.Forms.Master;
+using ProcessManagement.Forms.CustomControls;
+using ProcessManagement.Forms.ControlsAction;
+
+namespace ProcessManagement.Forms.DataEntry.Request
+{
+    public partial class FrmEntryDeposit : Form
+    {
+        #region ログ使用定義
+        //log4netログを使用する
+        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+        #endregion
+
+        #region 変数
+        /// <summary>
+        /// 入金データ
+        /// </summary>
+        private DepositData m_DepositData = new DepositData();
+
+        /// <summary>
+        /// 編集前のセルの内容
+        /// </summary>
+        private string oldCellValue = "";
+
+        private List<DepositList> Dlist;
+
+        #endregion
+
+        #region 定数
+        private const long amount_max = 9999999999;             // 金額最大
+        private const long amount_min = -9999999999;            // 金額最小
+        #endregion
+
+        #region 入金情報クラス定義
+        /// <summary>
+        /// 入金情報
+        /// </summary>
+        private class DepositList
+        {
+            public int orderersDivision;
+            public int orderersCode;
+            public int targetDate;
+            public int seqNo;
+            public string depositDate;
+            public long depositAmount;
+            public long depositAmountCash;
+            public long depositAmountBill;
+            public int depositPersonCode;
+            public string personName;
+            public string note;
+
+            public int AddEdit = 0;
+        }
+        #endregion
+
+        #region 取得するデータ項目
+        /// <summary>
+        /// 取得するデータ項目
+        /// </summary>
+        private enum GetData
+        {
+            orderersName = 0,
+            orderersDivision,
+            orderersCode,
+            targetDate,
+            seqNo,
+            depositDate,
+            depositAmount,
+            depositAmountCash,
+            depositAmountBill,
+            depositPersonCode,
+            personName,
+            note,
+        }
+        #endregion
+
+        #region カラム追加用
+        /// <summary>
+        /// カラム追加用
+        /// </summary>
+        private enum DispColumn
+        {
+            orderersDivision = 0,
+            orderersCode,
+            targetDate,
+            seqNo,
+            BusinessPeriod,
+            depositDate,
+            depositAmount,
+            depositAmountCash,
+            depositAmountBill,
+            depositPersonCode,
+            personName,
+            note,
+        }
+        #endregion
+
+        #region プロパティ
+        /// <summary>
+        /// 入金データ
+        /// </summary>
+        public DepositData depositdata
+        {
+            get { return m_DepositData; }
+            set { m_DepositData = value; }
+        }
+
+        #endregion
+
+        #region コンストラクタ
+        public FrmEntryDeposit()
+        {
+            InitializeComponent();
+        }
+        #endregion
+
+        #region フォームロード
+        /// <summary>
+        /// フォームロード
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmEntryDeposit_Load(object sender, EventArgs e)
+        {
+            //フォームサイズ固定
+            this.MaximizedBounds = new Rectangle(this.Left, this.Top, this.Width, this.Height);
+            // 初期表示
+            InitDataLoad();
+        }
+        #endregion
+
+        #region 初期表示処理
+        /// <summary>
+        /// 初期表示処理
+        /// </summary>
+        private void InitDataLoad()
+        {
+            try
+            {
+                var Dep = SelectDepositData().OfType<object[]>();
+                Dlist = new List<DepositList>();
+
+                // 取得情報をリストに入れる
+                foreach (var orderer in Dep)
+                {
+                    var o = new DepositList();
+
+                    string orderersName = CommonMotions.cnvString(orderer[(int)GetData.orderersName]);
+                    if (orderersName != null)
+                    {
+                        OrderersName.Text = orderersName;
+                    }
+                    o.orderersDivision = CommonMotions.cnvInt(orderer[(int)GetData.orderersDivision]);
+                    o.orderersCode = CommonMotions.cnvInt(orderer[(int)GetData.orderersCode]);
+                    o.targetDate = CommonMotions.cnvInt(orderer[(int)GetData.targetDate]);
+                    o.seqNo = CommonMotions.cnvInt(orderer[(int)GetData.seqNo]);
+                    o.depositDate = CommonMotions.cnvString(orderer[(int)GetData.depositDate]);
+                    o.depositAmount = CommonMotions.cnvInt(orderer[(int)GetData.depositAmount]);
+                    o.depositAmountCash = CommonMotions.cnvInt(orderer[(int)GetData.depositAmountCash]);
+                    o.depositAmountBill = CommonMotions.cnvInt(orderer[(int)GetData.depositAmountBill]);
+                    o.depositPersonCode = CommonMotions.cnvInt(orderer[(int)GetData.depositPersonCode]);
+                    o.personName = CommonMotions.cnvString(orderer[(int)GetData.personName]);
+                    o.note = CommonMotions.cnvString(orderer[(int)GetData.note]);
+                    o.AddEdit = 0;
+
+                    Dlist.Add(o);
+                }
+
+                // 一覧表示
+                Display();
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 入金データを取得する
+        /// <summary>
+        /// 入金データを取得する
+        /// </summary>
+        /// <returns></returns>
+        private ArrayList SelectDepositData()
+        {
+            var Dep = new IODepositData();
+            int Od = depositdata.OrderersDivision;
+            int Oc = depositdata.OrderersCode;
+            string Tg = depositdata.TargetDate;
+
+            try
+            {
+                var sql = new StringBuilder();
+                sql.Append(" ( ");
+                sql.Append("  SELECT ");
+                sql.Append("   CONCAT(OrderersName1, '　', OrderersName2) AS ORDERERSNAME ");
+                sql.Append("   , ORDERCOTEGORY AS ORDERERSDIVISION ");
+                sql.Append("   , ORDERERSCODE AS ORDERERSCODE ");
+                sql.AppendFormat("   , {0} AS TARGETDATE ", Tg);
+                sql.Append("   , NULL AS SEQNO ");
+                sql.Append("   , NULL AS DEPOSITDATE ");
+                sql.Append("   , NULL AS DEPOSITAMOUNT ");
+                sql.Append("   , NULL AS DEPOSITAMOUNTCASH ");
+                sql.Append("   , NULL AS DEPOSITAMOUNTBILL ");
+                sql.Append("   , NULL AS DEPOSITPERSONCODE ");
+                sql.Append("   , NULL AS PERSONNAME ");
+                sql.Append("   , NULL AS NOTE ");
+                sql.Append("  FROM ");
+                sql.Append("   ORDERERSMASTER ");
+                sql.Append("  WHERE ");
+                sql.AppendFormat("   ORDERCOTEGORY = {0} ", Od);
+                sql.AppendFormat("  AND ORDERERSCODE = {0} ", Oc);
+                sql.Append(" ) ");
+                sql.Append(" UNION ");
+                sql.Append(" ( ");
+                sql.Append("  SELECT ");
+                sql.Append("   NULL AS ORDERERSNAME ");
+                sql.Append("   , DEP.ORDERERSDIVISION ");
+                sql.Append("   , DEP.ORDERERSCODE ");
+                sql.Append("   , DEP.TARGETDATE ");
+                sql.Append("   , DEP.SEQNO ");
+                sql.Append("   , DATE_FORMAT(DEP.DEPOSITDATE, '%m/%d') AS DEPOSITDATE");
+                sql.Append("   , DEP.DEPOSITAMOUNT ");
+                sql.Append("   , DEP.DEPOSITAMOUNTCASH ");
+                sql.Append("   , DEP.DEPOSITAMOUNTBILL ");
+                sql.Append("   , DEP.DEPOSITPERSONCODE ");
+                sql.Append("   , PICM.SEALPRINTNAME AS PERSONNAME");
+                sql.Append("   , DEP.NOTE ");
+                sql.Append("  FROM ");
+                sql.Append("   DEPOSITDATA AS DEP ");
+                sql.Append("   LEFT OUTER JOIN PERSONINCHARGEMASTER PICM ON ");
+                sql.Append("    PICM.PERSONCODE = DEP.DEPOSITPERSONCODE ");
+                sql.AppendFormat("  WHERE ORDERERSDIVISION ={0} ", Od);
+                sql.AppendFormat("   AND ORDERERSCODE = {0} ", Oc);
+                sql.AppendFormat("   AND TARGETDATE = {0} ", Tg);
+                sql.Append(" ) ");
+                sql.Append(" ORDER BY ");
+                sql.Append(" ORDERERSNAME ");
+                sql.Append(" ,SEQNO ");
+                sql.Append(" ; ");
+
+                var data = new ArrayList();
+                if (!Dep.ExecuteReader(sql.ToString(), ref data)) return new ArrayList();
+                return data;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return new ArrayList();
+            }
+            finally
+            {
+                Dep.close();
+                Dep = null;
+            }
+        }
+        #endregion
+
+        #region 一覧表示
+        /// <summary>
+        /// 一覧表示
+        /// </summary>
+        private void Display()
+        {
+            try
+            {
+                for (var i = 0; i < Dlist.Count; i++)
+                {
+                    dgv1.Rows.Add();
+                    dgv1.Rows[i].Cells[(int)DispColumn.orderersDivision].Value = Dlist[i].orderersDivision;
+                    dgv1.Rows[i].Cells[(int)DispColumn.orderersCode].Value = Dlist[i].orderersCode;
+                    dgv1.Rows[i].Cells[(int)DispColumn.targetDate].Value = Dlist[i].targetDate;
+                    dgv1.Rows[i].Cells[(int)DispColumn.depositDate].Value = Dlist[i].depositDate;
+                    dgv1.Rows[i].Cells[(int)DispColumn.BusinessPeriod].Value = CommonMotions.SystemMasterData.BusinessPeriod;
+                    SetPrice(dgv1.Rows[i].Cells, (int)DispColumn.depositAmount, Dlist[i].depositAmountCash + Dlist[i].depositAmountBill);
+                    SetPrice(dgv1.Rows[i].Cells, (int)DispColumn.depositAmountCash, Dlist[i].depositAmountCash);
+                    SetPrice(dgv1.Rows[i].Cells, (int)DispColumn.depositAmountBill, Dlist[i].depositAmountBill);
+
+                    if (Dlist[i].depositPersonCode != 0)
+                    {
+                        dgv1.Rows[i].Cells[(int)DispColumn.seqNo].Value = Dlist[i].seqNo;
+                        dgv1.Rows[i].Cells[(int)DispColumn.depositPersonCode].Value = Dlist[i].depositPersonCode;
+                        dgv1.Rows[i].Cells[(int)DispColumn.personName].Value = Dlist[i].personName;
+                        dgv1.Rows[i].Cells[(int)DispColumn.personName].Style.ForeColor = Color.Red;
+                    }
+                    else
+                    {
+                        dgv1.Rows[i].Cells[(int)DispColumn.seqNo].Value = i;
+                        dgv1.Rows[i].Cells[(int)DispColumn.depositPersonCode].Value = CommonMotions.LoginUserData.PersonCode;
+                        dgv1.Rows[i].Cells[(int)DispColumn.personName].Value = CommonMotions.LoginUserData.SealPrintName;
+                        dgv1.Rows[i].Cells[(int)DispColumn.personName].Style.ForeColor = Color.Gray;
+                    }
+                    dgv1.Rows[i].Cells[(int)DispColumn.note].Value = Dlist[i].note;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 金額の設定
+        /// <summary>
+        /// 金額の設定
+        /// </summary>
+        /// <param name="cells"></param>
+        /// <param name="index"></param>
+        /// <param name="price"></param>
+        private void SetPrice(DataGridViewCellCollection cells, int index, long price)
+        {
+            try
+            {
+                cells[index].Value = price.ToString("#,0");
+                cells[index].Style.ForeColor = Color.Black;
+                if (price < 0)
+                {
+                    cells[index].Style.ForeColor = Color.Red;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region セル編集開始
+        /// <summary>
+        /// セル編集開始
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgv1_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
+        {
+            dgv1.CellBeginEdit -= dgv1_CellBeginEdit;
+            dgv1.CellValueChanged -= dgv1_CellValueChanged;
+
+            int tcol = e.ColumnIndex;
+            int trow = e.RowIndex;
+
+            try
+            {
+                if ((tcol == (int)DispColumn.depositAmountCash) ||
+                (tcol == (int)DispColumn.depositAmountBill))
+                {
+                    string val;
+
+                    // セルに値が格納されている場合
+                    if (dgv1[tcol, trow].Value != null)
+                    {
+                        // カンマ区切りを解除
+                        val = dgv1[tcol, trow].Value.ToString().Replace(",", string.Empty);
+                    }
+                    else
+                    {
+                        // 0を入力
+                        val = "0";
+                    }
+                    dgv1[tcol, trow].Value = val;
+
+                    // 文字色は一律黒
+                    dgv1[tcol, trow].Style.ForeColor = Color.Black;
+
+                }
+                dgv1.CellBeginEdit += dgv1_CellBeginEdit;
+                dgv1.CellValueChanged += dgv1_CellValueChanged;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region セルフォーカス取得
+        /// <summary>
+        /// セル編集開始時のイベント
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgv1_CellEnter(object sender, DataGridViewCellEventArgs e)
+        {
+            try
+            {
+                if (dgv1.RowCount == 0)
+                {
+                    return;
+                }
+                oldCellValue = CommonMotions.cnvString(dgv1[e.ColumnIndex, e.RowIndex].Value);
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region セル編集完了時のイベント
+        /// <summary>
+        /// セル編集完了時のイベント
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgv1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
+        {
+            dgv1.CellEnter -= dgv1_CellEnter;
+            dgv1.CellValueChanged -= dgv1_CellValueChanged;
+
+            try
+            {
+
+                // 行が追加されたときではなく、セルの内容が変更されているときだけ処理を実行する。また金額以外の変更は処理を抜ける。
+                if (e.RowIndex == dgv1.NewRowIndex ||
+                    !dgv1.IsCurrentCellDirty //||
+                    //e.ColumnIndex == (int)DispColumn.depositAmountBill ||
+                    //e.ColumnIndex != (int)DispColumn.depositAmountCash
+                    )
+                {
+                    return;
+                }
+
+                // 行がなければそのまま返す
+                if (dgv1.RowCount == 0)
+                {
+                    return;
+                }
+
+                var cells = dgv1.Rows[e.RowIndex].Cells;
+                var cellValue = CommonMotions.cnvString(cells[e.ColumnIndex].Value);
+
+                // 値が変わっていなければそのまま返す
+                if (oldCellValue == cellValue)
+                {
+                    return;
+                }
+                try
+                {
+                    // 日付の自動編集
+                    if (dgv1.Rows[e.RowIndex].Cells[e.ColumnIndex].ColumnIndex == (int)DispColumn.depositDate)
+                    {
+                        string txtbox = dgv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
+
+                        // 日付をyyyy/mm/dd形式で表示する
+                        if (txtbox.Length == 0)
+                        {
+                            return;
+                        }
+
+                        // 文字の出現回数カウント
+                        if (CommonMotions.chkNumeric(txtbox))
+                        {   // 数字のみ入力
+                            if (txtbox.ToString().Length <= 4)
+                            {
+                                txtbox = CommonMotions.cnvInt(txtbox.Substring(0, 2)).ToString("00")
+                                    + "/" + CommonMotions.cnvInt(txtbox.Substring(2)).ToString("00");
+                            }
+                        }
+                        else
+                        {   // 99/99の入力
+                            if (txtbox.ToString().Length <= 5)
+                            {
+                                txtbox = CommonMotions.cnvInt(txtbox.Substring(0, txtbox.IndexOf("/"))).ToString("00")
+                                                + "/" + CommonMotions.cnvInt(txtbox.Substring(txtbox.IndexOf("/") + 1)).ToString("00");
+
+                            }
+                        }
+
+                        if (!CommonMotions.chkDate(txtbox.ToString()))
+                        {
+                            throw new Exception();
+                        }
+
+                        dgv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = txtbox.ToString();
+                        cellValue = txtbox.ToString();
+                    }
+                }
+                catch(Exception ex)
+                {
+                    logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                    MessageBox.Show("入金日の値が不正です", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    dgv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = "";
+                }
+
+                // 入金情報を編集
+                if (e.ColumnIndex == (int)DispColumn.depositAmountCash
+                    || e.ColumnIndex == (int)DispColumn.depositAmountBill
+                    || e.ColumnIndex == (int)DispColumn.depositDate
+                    || e.ColumnIndex == (int)DispColumn.note)
+                {
+                    switch (e.ColumnIndex)
+                    {
+                        case (int)DispColumn.depositAmountCash:
+                            if (cellValue != "")
+                                Dlist[e.RowIndex].depositAmountCash = (int)CommonMotions.cnvLong(cellValue);
+                            else
+                                Dlist[e.RowIndex].depositAmountCash = 0;
+                            break;
+                        case (int)DispColumn.depositAmountBill:
+                            if (cellValue != "")
+                                Dlist[e.RowIndex].depositAmountBill = (int)CommonMotions.cnvLong(cellValue);
+                            else
+                                Dlist[e.RowIndex].depositAmountBill = 0;
+                            break;
+                        case (int)DispColumn.depositDate:
+                            DateTime dt;
+                            if (DateTime.TryParse(cellValue, out dt))
+                                Dlist[e.RowIndex].depositDate = dt.ToString("yyyy/MM/dd");
+                            else
+                                Dlist[e.RowIndex].depositDate = "";
+                            break;
+                        case (int)DispColumn.note:
+                            if (cellValue != "")
+                                Dlist[e.RowIndex].note = CommonMotions.cnvString(cellValue);
+                            else
+                                Dlist[e.RowIndex].note = "";
+                            break;
+                    }
+
+                    if (dgv1.Rows[e.RowIndex].Cells[(int)DispColumn.seqNo].Value == null)
+                    {
+                        return;
+                    }
+                    int seqno = (int)dgv1.Rows[e.RowIndex].Cells[(int)DispColumn.seqNo].Value + 1;
+                    if (seqno == Dlist.Count)
+                    {
+                        Dlist[e.RowIndex].AddEdit = 1;
+                    }
+                    else
+                    {
+                        Dlist[e.RowIndex].AddEdit = 2;
+                    }
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                dgv1.CellEnter += dgv1_CellEnter;
+                dgv1.CellValueChanged += dgv1_CellValueChanged;
+            }
+        }
+        #endregion
+
+        #region 金額セル検証
+        /// <summary>
+        /// 金額セル検証
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgv1_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)
+        {
+            int tcol = e.ColumnIndex;
+            int trow = e.RowIndex;
+
+            if (trow == -1)
+            {
+                return;
+            }
+
+            try
+            {
+                if ((tcol == (int)DispColumn.depositAmountCash) ||              // 入金金額（振込）
+                   (tcol == (int)DispColumn.depositAmountBill))                // 入金金額（手形）
+                {
+                    // カンマは一旦削除して文字列を取得
+                    string str = e.FormattedValue.ToString().Replace(",", string.Empty); ;
+
+                    // 不要な空白は削除
+                    str.Trim();
+
+                    // 値が未設定の場合は０とする
+                    if (str == "")
+                    {
+                        str = "0";
+                    }
+
+                    long n = 0;
+
+                    if (long.TryParse(str, out n) == true)
+                    {
+                        if ((n > amount_max) || (n < amount_min))
+                        {
+                            MessageBox.Show("金額が登録可能範囲(-9,999,999,999～9,999,999,999)を超えました。", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                            e.Cancel = true;
+                        }
+                    }
+                    else
+                    {
+                        MessageBox.Show("金額を入力してください", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                        e.Cancel = true;
+                    }
+                }
+                return;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region セルフォーマッティング
+        /// <summary>
+        /// セルフォーマッティング
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgv1_CellFormatting_1(object sender, DataGridViewCellFormattingEventArgs e)
+        {
+            DataGridView dgv = (DataGridView)sender;
+
+            try
+            {
+                if (dgv.RowCount == 0)
+                    return;
+
+                if (e.ColumnIndex == (int)DispColumn.depositAmountBill ||
+                    e.ColumnIndex == (int)DispColumn.depositAmountCash)
+                {
+                    // マイナス値は赤
+                    if (CommonMotions.cnvInt(dgv[e.ColumnIndex, e.RowIndex].Value) < 0)
+                    {
+                        dgv[e.ColumnIndex, e.RowIndex].Style.ForeColor = Color.Red;
+                    }
+                    else
+                    {
+                        dgv[e.ColumnIndex, e.RowIndex].Style.ForeColor = SystemColors.ControlText;
+                    }
+
+                    dgv[e.ColumnIndex, e.RowIndex].Value = CommonMotions.cnvInt(dgv[e.ColumnIndex, e.RowIndex].Value).ToString("#,0");
+                }
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 削除ボタン押下
+        private void btnDelete_Click(object sender, EventArgs e)
+        {
+            try
+            {
+                if (MessageBox.Show("選択しているデータを削除します。よろしいですか。", "削除確認", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
+                {
+                    return;
+                }
+                int row = dgv1.CurrentCell.RowIndex;
+                Dlist[row].AddEdit = 3;
+                //CommonMotions.RemoveEndMessage("入金データ");
+                dgv1.Rows[row].Cells[(int)DispColumn.note].Value = "登録ボタンで削除完了";
+                dgv1.Rows[row].Cells[(int)DispColumn.note].Style.ForeColor = Color.Red;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+
+        }
+        #endregion
+
+        #region 登録ボタン押下
+        private void btnAccept_Click(object sender, EventArgs e)
+        {
+            dgv1.CellEnter -= dgv1_CellEnter;
+            dgv1.CellValueChanged -= dgv1_CellValueChanged;
+
+            var ioDepositData = new IODepositData();
+
+            try
+            {
+                if (MessageBox.Show("表示中のデータを登録します。", "登録確認", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
+                {
+                    return;
+                }
+
+                for (int i = 0; i < Dlist.Count; i++)
+                {
+                    if (Dlist[i].AddEdit == 0)
+                    {
+                        continue;
+                    }
+                    #region 入力内容をチェック
+
+                    // 入金日入力済みで入金金額が入力されていない
+                    if (!string.IsNullOrEmpty(Dlist[i].depositDate)
+                        && string.IsNullOrEmpty(Dlist[i].depositAmountCash.ToString())
+                        && string.IsNullOrEmpty(Dlist[i].depositAmountBill.ToString()))
+                    {
+                        // エラー表示
+                        MessageBox.Show("入金日が登録されている行に入金金額が入力されていません。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+
+                        return;
+                    }
+                    // 入金金額入力済みで入金日が入力されていない
+                    if (string.IsNullOrEmpty(Dlist[i].depositDate)
+                        && (!string.IsNullOrEmpty(Dlist[i].depositAmountCash.ToString())
+                        || !string.IsNullOrEmpty(Dlist[i].depositAmountBill.ToString())))
+                    {
+                        // エラー表示
+                        MessageBox.Show("入金金額が登録されている行に入金日が入力されていません。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+
+                        return;
+                    }
+                    #endregion
+
+                    ioDepositData.connect();
+
+                    #region 登録処理
+                    string m_note = dgv1.Rows[i].Cells[(int)DispColumn.note].Value.ToString();
+                    if (m_note == null)
+                    {
+                        m_note = "";
+                    }
+                    var depositData = new DepositData()
+                    {
+                        OrderersDivision = Dlist[i].orderersDivision,
+                        OrderersCode = Dlist[i].orderersCode,
+                        TargetDate = Dlist[i].targetDate.ToString(),
+                        SeqNo = (int)dgv1.Rows[i].Cells[(int)DispColumn.seqNo].Value,
+                        BusinessPeriod = CommonMotions.SystemMasterData.BusinessPeriod,
+                        DepositDate = DateTime.Parse(Dlist[i].depositDate),
+                        DepositAmount = Dlist[i].depositAmountCash + Dlist[i].depositAmountBill,
+                        DepositAmountCash = Dlist[i].depositAmountCash,
+                        DepositAmountBill = Dlist[i].depositAmountBill,
+                        DepositPersonCode = (int)dgv1.Rows[i].Cells[(int)DispColumn.depositPersonCode].Value,
+                        Note = m_note
+                    };
+
+                    // 登録処理
+                    if (Dlist[i].AddEdit == 1)
+                    {
+                        if (!ioDepositData.InsertAction(depositData))
+                        {
+                            throw new Exception();
+                        }
+                        else
+                        {
+                            // 掲示板登録
+                            MessageBoardEntry();
+                        }
+                    }
+                    // 更新処理
+                    else if (Dlist[i].AddEdit == 2)
+                    {
+                        var sql = String.Format(" where OrderersDivision = {0} and OrderersCode = {1} and TargetDate = {2} and SeqNo = {3} ",
+                            depositData.OrderersDivision, depositData.OrderersCode, depositData.TargetDate, depositData.SeqNo);
+                        if (!ioDepositData.UpdateAction(sql, depositData))
+                        {
+                            throw new Exception();
+                        }
+                    }
+                    // 削除処理
+                    else if (Dlist[i].AddEdit == 3)
+                    {
+                            var sql = String.Format(" where OrderersDivision = {0} and OrderersCode = {1} and TargetDate = {2} and SeqNo = {3}",
+                                depositData.OrderersDivision, depositData.OrderersCode, depositData.TargetDate, depositData.SeqNo);
+                            if (!ioDepositData.DeleteAction(sql))
+                                {
+                                    throw new Exception();
+                                }
+                    }
+                    #endregion
+                }
+                CommonMotions.EntryEndMessage("入金入力");
+            }
+            catch (Exception ex)
+            {
+                ioDepositData.rollback();
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                dgv1.CellEnter += dgv1_CellEnter;
+                dgv1.CellValueChanged += dgv1_CellValueChanged;
+                ioDepositData.close();
+                ioDepositData = null;
+                try
+                {
+                    this.Close();
+                }
+                catch (Exception ex)
+                {
+                    logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                }
+            }
+        }
+        #endregion
+
+        #region 入金情報掲示板データ登録
+        /// <summary>
+        /// 入金情報掲示板データ登録
+        /// </summary>
+        /// <returns></returns>
+        private bool MessageBoardEntry()
+        {
+            IOMessageBoardData mbdDB = new IOMessageBoardData();
+            IOMessageBoardTerget mbtDB = new IOMessageBoardTerget();
+
+            try
+            {
+                mbdDB.connect();
+                mbdDB.beginTran();
+
+                mbtDB.connect();
+                mbtDB.beginTran();
+
+                List<MessageBoardData> list = new List<MessageBoardData>();
+                MessageBoardData data = new MessageBoardData();
+
+                // キーコードセット
+                data.RecordNumber = mbtDB.SelectMaxMessageBoardTergetKeyCount("", false) + 1;
+                data.BranchNumber = 0;
+                string strWhere = mbdDB.CreatePrimarykeyString(data.RecordNumber, data.BranchNumber);
+
+                // 送信者セット
+                data.FromCode = CommonMotions.LoginUserData.PersonCode;
+                data.FromName = CommonMotions.LoginUserData.PersonName;
+
+                data.MessageTitle = string.Format("入金確認（{0}）", OrderersName.Text);
+                data.MessageContent = string.Format("{0}様より入金がありました。\r\n", OrderersName.Text);
+                data.MessageContent += "入金内容の確認をよろしくお願いします。";
+
+                // リンク情報
+                data.LinkType = 0;
+                data.LinkMessage = "";
+                data.LinkCode = "";
+
+                // メッセージ色セット
+                data.MessageColor = String.Format("0x{0:X2}{1:X2}{2:X2}", Color.White.R
+                                                                        , Color.White.G
+                                                                        , Color.White.B);
+                data.BackColor = String.Format("0x{0:X2}{1:X2}{2:X2}", Color.Green.R
+                                                                        , Color.Green.G
+                                                                        , Color.Green.B);
+                data.WritingDate = DateTime.Now;
+                data.PersonCode = CommonMotions.LoginUserData.PersonCode;
+                data.ShareFlag = 1;
+
+                list.Add(data);
+                // データ登録
+                if (!mbdDB.InsertAction(list, false))
+                {
+                    MessageBox.Show("登録に失敗しました。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    mbdDB.rollback();
+                    mbtDB.rollback();
+                    return false;
+                }
+
+                string strMBT = mbtDB.CreatePrimarykeyString(data.RecordNumber, data.BranchNumber);
+                mbtDB.DeleteAction(strMBT, false);
+                // 対象者書込み
+                int icnt = 0;
+
+                List<MessageBoardTerget> terList = new List<MessageBoardTerget>();
+                MessageBoardTerget wrkTer = new MessageBoardTerget();
+
+                // キーコードセット
+                wrkTer.RecordNumber = data.RecordNumber;
+                wrkTer.BranchNumber = data.BranchNumber;
+                wrkTer.SeqNum = ++icnt;
+                wrkTer.ToCode = 99999999;
+                wrkTer.ToName = "全　　員";
+
+                terList.Add(wrkTer);
+
+                // データ登録
+                if (!mbtDB.InsertAction(terList, false))
+                {
+                    mbdDB.rollback();
+                    mbtDB.rollback();
+                    return false;
+                }
+
+                mbdDB.commit();
+                mbtDB.commit();
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                mbdDB.close();
+                mbdDB = null;
+                mbtDB.close();
+                mbtDB = null;
+            }
+        }
+        #endregion
+
+        #region 終了ボタン押下
+        private void btnEnd_Click(object sender, EventArgs e)
+        {
+            try
+            {
+                this.Close();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region デバック用ボタン
+        private void button1_Click(object sender, EventArgs e)
+        {
+            for (int i = 0; i < dgv1.ColumnCount; i++)
+            {
+                dgv1.Columns[i].Visible = true;
+            }
+        }
+        #endregion
+
+    }
+}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmEntryDeposit.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmEntryDeposit.resx	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmEntryDeposit.resx	(revision 185)
@@ -0,0 +1,156 @@
+﻿<?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="OrderersDivision.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="OrderersCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="TargetDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="SeqNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="BusinessPeriod.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="DepositDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="DepositAmount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="DepositAmountCash.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="DepositAmountBill.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="DepositPersonCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="DepositPersonName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Note.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+</root>
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInputAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInputAuxiliary.cs	(revision 184)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInputAuxiliary.cs	(revision 185)
@@ -1267,13 +1267,13 @@
                 if (lstDepDetail.Count > 0)
                 {
                     DepDetail = lstDepDetail[0];
-                    if (DepDetail.ApprovalEndFlg == true)
+                    if (DepDetail.ConfirmationEndFlg == 1)
                     {
                         nDepositState = (int)DepositState.Done;
                     }
 
                     DepositData DepData = new DepositData();
-                    GetDepositData(DepDetail.OrderersDivision, DepDetail.OrderersCode, DepDetail.TargetDate, DepDetail.SeqNo, ref DepData);
+                    GetDepositData(DepDetail.OrderersDivision, DepDetail.OrderersCode, DepDetail.TargetDate,DepDetail.RequestNo, ref DepData);
                     dtDeposit = DepData.DepositDate;
 
                 }
@@ -1739,8 +1739,17 @@
                     continue;
                 }
 
-                dgv1[tcol, trow].Value = m_lstDepositDate[i].ToString("yyyy/MM/dd");
-                dgv1[tcol, trow].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
+                // 入金日は入金明細データの担当者確認日とする
+                //dgv1[tcol, trow].Value = m_lstDepositDate[i].ToString("yyyy/MM/dd");
+                if (m_lstDepositState[i] == (int)DepositState.Done)
+                {
+                    dgv1[tcol, trow].Value = DepDetail.ConfirmationDate.ToString("yyyy/MM/dd");
+                    dgv1[tcol, trow].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
+                }
+                else
+                {
+                    dgv1[tcol, trow].Value = "";
+                }
 
                 long lAdjustments = DepDetail.DiscountAmount + DepDetail.CnstrPrice + DepDetail.Fees + DepDetail.OtherAdjustments;
 
@@ -3752,7 +3761,7 @@
         /// <param name="SeqNo"></param>
         /// <param name="data"></param>
         /// <returns></returns>
-        private bool GetDepositData(int OrderesDivision, int OrderesCode, string TargetDate, int SeqNo, ref DepositData data)
+        private bool GetDepositData(int OrderesDivision, int OrderesCode, string TargetDate, int RequestNo, ref DepositData data)
         {
             var sbDB = new IODepositData();
             try
@@ -3761,14 +3770,14 @@
                 var wrk = new List<DepositData>();
 
                 // 入金データ取得SQL
-                string strSQL = sbDB.CreatePrimarykeyString(OrderesDivision, OrderesCode, TargetDate, SeqNo);
+                string strSQL = sbDB.CreatePrimarykeyString(OrderesDivision, OrderesCode, TargetDate);
 
                 // 入金データ取得
                 if (!sbDB.SelectAction(strSQL, ref wrk)) return false;
 
-                if (wrk.Count != 1) return false;
+                if (wrk.Count == 0) return false;
 
-                data = wrk[0];
+                data = wrk[wrk.Count - 1];
             }
             catch (Exception ex)
             {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.Designer.cs	(revision 184)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.Designer.cs	(revision 185)
@@ -42,43 +42,32 @@
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
             this.label3 = new System.Windows.Forms.Label();
             this.panel1 = new System.Windows.Forms.Panel();
-            this.button1 = new System.Windows.Forms.Button();
+            this.lblRequestAmount = new System.Windows.Forms.Label();
+            this.label5 = new System.Windows.Forms.Label();
+            this.lblDepositTotal = new System.Windows.Forms.Label();
+            this.label4 = new System.Windows.Forms.Label();
+            this.lblRequestTotal = new System.Windows.Forms.Label();
+            this.label8 = new System.Windows.Forms.Label();
             this.btnShow = new System.Windows.Forms.Button();
             this.cbTargetMonth = new System.Windows.Forms.ComboBox();
             this.label2 = new System.Windows.Forms.Label();
+            this.button1 = new System.Windows.Forms.Button();
             this.dgvMaster = new System.Windows.Forms.DataGridView();
-            this.EditStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.No = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.RequestMonth = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.RequestNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.OrderersDivision = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.OrderersCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.SeqNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.LineCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.OrderersName = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.DepositDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.ConstructionCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.ConstructionName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.BillPrice = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.TaxPrice = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.DepositAmountCash = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.DepositAmountBill = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.RequestNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.OrderNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ConstructionName = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ConstructionName_Raw = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.PaymentSchedule = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.BillCreationDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.BillPrice = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.TaxPrice = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.DepositAmount = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.DiscountAmount = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.CnstrPrice = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -85,62 +74,15 @@
             this.Fees = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.OtherAdjustments = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.CarryAmount = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.ConfirmationPersonCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.ConfirmationDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.ConfirmationEndFlg = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.ConstructionPersonCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.ConstrSubPersonCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.ConstructionInstructor = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.DepartmentCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.PersonName = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.PersonCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.PersonDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalName_1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalCode_1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalAuthority_1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalDate_1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalOrder_1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalName_2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalCode_2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalAuthority_2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalDate_2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalOrder_2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalName_3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalCode_3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalAuthority_3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalDate_3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalOrder_3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalName_4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalCode_4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalAuthority_4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalDate_4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalOrder_4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalName_5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalCode_5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalAuthority_5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalDate_5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalOrder_5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalName_6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalCode_6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalAuthority_6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalDate_6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalOrder_6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalName_7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalCode_7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalAuthority_7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalDate_7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalOrder_7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalName_8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalCode_8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalAuthority_8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalDate_8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalOrder_8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalName_9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalCode_9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalAuthority_9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalDate_9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalOrder_9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalName_10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalCode_10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalAuthority_10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalDate_10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ApprovalOrder_10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.btnAddCmp = new System.Windows.Forms.Button();
-            this.btnDelCmp = new System.Windows.Forms.Button();
-            this.btnAddFld = new System.Windows.Forms.Button();
+            this.NoteDD = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Registration = new System.Windows.Forms.Button();
             this.btnEnd = new System.Windows.Forms.Button();
             this.panel1.SuspendLayout();
@@ -150,8 +92,8 @@
             // label3
             // 
             this.label3.Anchor = System.Windows.Forms.AnchorStyles.Top;
-            this.label3.BackColor = System.Drawing.Color.White;
-            this.label3.Font = new System.Drawing.Font("ＭＳ Ｐゴシック", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
+            this.label3.Font = new System.Drawing.Font("ＭＳ Ｐゴシック", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label3.Location = new System.Drawing.Point(561, 8);
             this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label3.Name = "label3";
@@ -165,7 +107,12 @@
             this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
-            this.panel1.Controls.Add(this.button1);
+            this.panel1.Controls.Add(this.lblRequestAmount);
+            this.panel1.Controls.Add(this.label5);
+            this.panel1.Controls.Add(this.lblDepositTotal);
+            this.panel1.Controls.Add(this.label4);
+            this.panel1.Controls.Add(this.lblRequestTotal);
+            this.panel1.Controls.Add(this.label8);
             this.panel1.Controls.Add(this.btnShow);
             this.panel1.Controls.Add(this.cbTargetMonth);
             this.panel1.Controls.Add(this.label2);
@@ -174,18 +121,81 @@
             this.panel1.Size = new System.Drawing.Size(1399, 61);
             this.panel1.TabIndex = 1;
             // 
-            // button1
+            // lblRequestAmount
             // 
-            this.button1.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.button1.Location = new System.Drawing.Point(850, 23);
-            this.button1.Name = "button1";
-            this.button1.Size = new System.Drawing.Size(60, 23);
-            this.button1.TabIndex = 3;
-            this.button1.Text = "・・・";
-            this.button1.UseVisualStyleBackColor = true;
-            this.button1.Visible = false;
-            this.button1.Click += new System.EventHandler(this.button1_Click);
+            this.lblRequestAmount.BackColor = System.Drawing.Color.White;
+            this.lblRequestAmount.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblRequestAmount.Font = new System.Drawing.Font("Century", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.lblRequestAmount.Location = new System.Drawing.Point(491, 16);
+            this.lblRequestAmount.Name = "lblRequestAmount";
+            this.lblRequestAmount.Size = new System.Drawing.Size(200, 30);
+            this.lblRequestAmount.TabIndex = 38;
+            this.lblRequestAmount.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             // 
+            // label5
+            // 
+            this.label5.BackColor = System.Drawing.Color.LightGreen;
+            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label5.CausesValidation = false;
+            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(346, 16);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(139, 30);
+            this.label5.TabIndex = 39;
+            this.label5.Text = "請求金額(税抜)";
+            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // lblDepositTotal
+            // 
+            this.lblDepositTotal.BackColor = System.Drawing.Color.White;
+            this.lblDepositTotal.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblDepositTotal.Font = new System.Drawing.Font("Century", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.lblDepositTotal.Location = new System.Drawing.Point(1172, 16);
+            this.lblDepositTotal.Name = "lblDepositTotal";
+            this.lblDepositTotal.Size = new System.Drawing.Size(200, 30);
+            this.lblDepositTotal.TabIndex = 36;
+            this.lblDepositTotal.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label4
+            // 
+            this.label4.BackColor = System.Drawing.Color.Coral;
+            this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label4.CausesValidation = false;
+            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(1046, 15);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(120, 30);
+            this.label4.TabIndex = 37;
+            this.label4.Text = "入金金額合計";
+            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // lblRequestTotal
+            // 
+            this.lblRequestTotal.BackColor = System.Drawing.Color.White;
+            this.lblRequestTotal.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblRequestTotal.Font = new System.Drawing.Font("Century", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.lblRequestTotal.Location = new System.Drawing.Point(840, 16);
+            this.lblRequestTotal.Name = "lblRequestTotal";
+            this.lblRequestTotal.Size = new System.Drawing.Size(200, 30);
+            this.lblRequestTotal.TabIndex = 34;
+            this.lblRequestTotal.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label8
+            // 
+            this.label8.BackColor = System.Drawing.Color.LightGreen;
+            this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label8.CausesValidation = false;
+            this.label8.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label8.ForeColor = System.Drawing.Color.Black;
+            this.label8.Location = new System.Drawing.Point(697, 15);
+            this.label8.Name = "label8";
+            this.label8.Size = new System.Drawing.Size(137, 30);
+            this.label8.TabIndex = 35;
+            this.label8.Text = "請求金額(税込)";
+            this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // btnShow
             // 
             this.btnShow.BackColor = System.Drawing.Color.Blue;
@@ -225,9 +235,22 @@
             this.label2.Text = "対象月";
             this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // button1
+            // 
+            this.button1.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.button1.Location = new System.Drawing.Point(860, 16);
+            this.button1.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(60, 23);
+            this.button1.TabIndex = 3;
+            this.button1.Text = "・・・";
+            this.button1.UseVisualStyleBackColor = true;
+            this.button1.Visible = false;
+            this.button1.Click += new System.EventHandler(this.button1_Click);
+            // 
             // dgvMaster
             // 
             this.dgvMaster.AllowUserToAddRows = false;
+            this.dgvMaster.AllowUserToResizeRows = false;
             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)));
@@ -241,24 +264,19 @@
             this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
             this.dgvMaster.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
             this.dgvMaster.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.EditStatus,
             this.No,
+            this.RequestMonth,
+            this.RequestNo,
             this.OrderersDivision,
             this.OrderersCode,
-            this.SeqNo,
-            this.LineCount,
             this.OrderersName,
-            this.DepositDate,
+            this.ConstructionCode,
+            this.ConstructionName,
+            this.BillPrice,
+            this.TaxPrice,
             this.DepositAmountCash,
             this.DepositAmountBill,
-            this.RequestNo,
             this.OrderNo,
-            this.ConstructionName,
-            this.ConstructionName_Raw,
-            this.PaymentSchedule,
-            this.BillCreationDate,
-            this.BillPrice,
-            this.TaxPrice,
             this.DepositAmount,
             this.DiscountAmount,
             this.CnstrPrice,
@@ -265,675 +283,293 @@
             this.Fees,
             this.OtherAdjustments,
             this.CarryAmount,
+            this.ConfirmationPersonCode,
+            this.ConfirmationDate,
+            this.ConfirmationEndFlg,
+            this.ConstructionPersonCode,
+            this.ConstrSubPersonCode,
+            this.ConstructionInstructor,
+            this.DepartmentCode,
             this.PersonName,
-            this.PersonCode,
-            this.PersonDate,
-            this.ApprovalName_1,
-            this.ApprovalCode_1,
-            this.ApprovalAuthority_1,
-            this.ApprovalDate_1,
-            this.ApprovalOrder_1,
-            this.ApprovalName_2,
-            this.ApprovalCode_2,
-            this.ApprovalAuthority_2,
-            this.ApprovalDate_2,
-            this.ApprovalOrder_2,
-            this.ApprovalName_3,
-            this.ApprovalCode_3,
-            this.ApprovalAuthority_3,
-            this.ApprovalDate_3,
-            this.ApprovalOrder_3,
-            this.ApprovalName_4,
-            this.ApprovalCode_4,
-            this.ApprovalAuthority_4,
-            this.ApprovalDate_4,
-            this.ApprovalOrder_4,
-            this.ApprovalName_5,
-            this.ApprovalCode_5,
-            this.ApprovalAuthority_5,
-            this.ApprovalDate_5,
-            this.ApprovalOrder_5,
-            this.ApprovalName_6,
-            this.ApprovalCode_6,
-            this.ApprovalAuthority_6,
-            this.ApprovalDate_6,
-            this.ApprovalOrder_6,
-            this.ApprovalName_7,
-            this.ApprovalCode_7,
-            this.ApprovalAuthority_7,
-            this.ApprovalDate_7,
-            this.ApprovalOrder_7,
-            this.ApprovalName_8,
-            this.ApprovalCode_8,
-            this.ApprovalAuthority_8,
-            this.ApprovalDate_8,
-            this.ApprovalOrder_8,
-            this.ApprovalName_9,
-            this.ApprovalCode_9,
-            this.ApprovalAuthority_9,
-            this.ApprovalDate_9,
-            this.ApprovalOrder_9,
-            this.ApprovalName_10,
-            this.ApprovalCode_10,
-            this.ApprovalAuthority_10,
-            this.ApprovalDate_10,
-            this.ApprovalOrder_10});
+            this.NoteDD});
             this.dgvMaster.EnableHeadersVisualStyles = false;
             this.dgvMaster.Location = new System.Drawing.Point(8, 117);
             this.dgvMaster.Name = "dgvMaster";
+            this.dgvMaster.RowHeadersVisible = false;
             this.dgvMaster.RowHeadersWidth = 24;
             this.dgvMaster.RowTemplate.Height = 21;
             this.dgvMaster.Size = new System.Drawing.Size(1399, 474);
             this.dgvMaster.TabIndex = 2;
             this.dgvMaster.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgvMaster_CellBeginEdit);
+            this.dgvMaster.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dgvMaster_CellFormatting);
             this.dgvMaster.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dgvMaster_CellValidating);
             // 
-            // EditStatus
-            // 
-            this.EditStatus.Frozen = true;
-            this.EditStatus.HeaderText = "■編集状態";
-            this.EditStatus.Name = "EditStatus";
-            this.EditStatus.Visible = false;
-            // 
             // No
             // 
             dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
             this.No.DefaultCellStyle = dataGridViewCellStyle2;
-            this.No.Frozen = true;
             this.No.HeaderText = "No.";
             this.No.Name = "No";
+            this.No.ReadOnly = true;
             this.No.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.No.Width = 40;
             // 
+            // RequestMonth
+            // 
+            this.RequestMonth.HeaderText = "■請求月";
+            this.RequestMonth.Name = "RequestMonth";
+            this.RequestMonth.ReadOnly = true;
+            this.RequestMonth.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.RequestMonth.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.RequestMonth.Visible = false;
+            // 
+            // RequestNo
+            // 
+            this.RequestNo.HeaderText = "■請求書No";
+            this.RequestNo.Name = "RequestNo";
+            this.RequestNo.ReadOnly = true;
+            this.RequestNo.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.RequestNo.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.RequestNo.Visible = false;
+            // 
             // OrderersDivision
             // 
-            this.OrderersDivision.Frozen = true;
             this.OrderersDivision.HeaderText = "■発注者区分";
             this.OrderersDivision.Name = "OrderersDivision";
+            this.OrderersDivision.ReadOnly = true;
+            this.OrderersDivision.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.OrderersDivision.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.OrderersDivision.Visible = false;
             // 
             // OrderersCode
             // 
-            this.OrderersCode.Frozen = true;
             this.OrderersCode.HeaderText = "■発注者コード";
             this.OrderersCode.Name = "OrderersCode";
+            this.OrderersCode.ReadOnly = true;
+            this.OrderersCode.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.OrderersCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.OrderersCode.Visible = false;
             // 
-            // SeqNo
-            // 
-            this.SeqNo.Frozen = true;
-            this.SeqNo.HeaderText = "■連番";
-            this.SeqNo.Name = "SeqNo";
-            this.SeqNo.Visible = false;
-            // 
-            // LineCount
-            // 
-            this.LineCount.Frozen = true;
-            this.LineCount.HeaderText = "■行番号";
-            this.LineCount.Name = "LineCount";
-            this.LineCount.Visible = false;
-            // 
             // OrderersName
             // 
-            this.OrderersName.Frozen = true;
-            this.OrderersName.HeaderText = "請求先名";
+            this.OrderersName.HeaderText = "請求先名/請求日";
             this.OrderersName.Name = "OrderersName";
+            this.OrderersName.ReadOnly = true;
             this.OrderersName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.OrderersName.Width = 200;
             // 
-            // DepositDate
+            // ConstructionCode
             // 
-            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.DepositDate.DefaultCellStyle = dataGridViewCellStyle3;
-            this.DepositDate.Frozen = true;
-            this.DepositDate.HeaderText = "入金日";
-            this.DepositDate.Name = "DepositDate";
-            this.DepositDate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.DepositDate.Width = 120;
+            this.ConstructionCode.HeaderText = "■工事番号";
+            this.ConstructionCode.Name = "ConstructionCode";
+            this.ConstructionCode.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.ConstructionCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.ConstructionCode.Visible = false;
             // 
-            // DepositAmountCash
-            // 
-            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.DepositAmountCash.DefaultCellStyle = dataGridViewCellStyle4;
-            this.DepositAmountCash.Frozen = true;
-            this.DepositAmountCash.HeaderText = "入金金額\r\n（振込）";
-            this.DepositAmountCash.Name = "DepositAmountCash";
-            this.DepositAmountCash.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.DepositAmountCash.Width = 140;
-            // 
-            // DepositAmountBill
-            // 
-            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.DepositAmountBill.DefaultCellStyle = dataGridViewCellStyle5;
-            this.DepositAmountBill.Frozen = true;
-            this.DepositAmountBill.HeaderText = "入金金額\r\n（手形）";
-            this.DepositAmountBill.Name = "DepositAmountBill";
-            this.DepositAmountBill.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.DepositAmountBill.Width = 140;
-            // 
-            // RequestNo
-            // 
-            this.RequestNo.Frozen = true;
-            this.RequestNo.HeaderText = "■請求No";
-            this.RequestNo.Name = "RequestNo";
-            this.RequestNo.Visible = false;
-            // 
-            // OrderNo
-            // 
-            this.OrderNo.Frozen = true;
-            this.OrderNo.HeaderText = "■受付番号";
-            this.OrderNo.Name = "OrderNo";
-            this.OrderNo.Visible = false;
-            // 
             // ConstructionName
             // 
-            this.ConstructionName.Frozen = true;
             this.ConstructionName.HeaderText = "現場名";
             this.ConstructionName.Name = "ConstructionName";
+            this.ConstructionName.ReadOnly = true;
             this.ConstructionName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.ConstructionName.Width = 220;
             // 
-            // ConstructionName_Raw
-            // 
-            this.ConstructionName_Raw.Frozen = true;
-            this.ConstructionName_Raw.HeaderText = "■現場名 (DB登録値)";
-            this.ConstructionName_Raw.Name = "ConstructionName_Raw";
-            this.ConstructionName_Raw.Visible = false;
-            // 
-            // PaymentSchedule
-            // 
-            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.PaymentSchedule.DefaultCellStyle = dataGridViewCellStyle6;
-            this.PaymentSchedule.HeaderText = "入金\r\n予定日";
-            this.PaymentSchedule.Name = "PaymentSchedule";
-            this.PaymentSchedule.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.PaymentSchedule.Visible = false;
-            this.PaymentSchedule.Width = 120;
-            // 
-            // BillCreationDate
-            // 
-            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.BillCreationDate.DefaultCellStyle = dataGridViewCellStyle7;
-            this.BillCreationDate.HeaderText = "請求日";
-            this.BillCreationDate.Name = "BillCreationDate";
-            this.BillCreationDate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.BillCreationDate.Width = 120;
-            // 
             // BillPrice
             // 
-            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.BillPrice.DefaultCellStyle = dataGridViewCellStyle8;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.BillPrice.DefaultCellStyle = dataGridViewCellStyle3;
             this.BillPrice.HeaderText = "請求金額\r\n（税抜）";
             this.BillPrice.Name = "BillPrice";
+            this.BillPrice.ReadOnly = true;
+            this.BillPrice.Resizable = System.Windows.Forms.DataGridViewTriState.False;
             this.BillPrice.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.BillPrice.Width = 140;
             // 
             // TaxPrice
             // 
-            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.TaxPrice.DefaultCellStyle = dataGridViewCellStyle9;
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.TaxPrice.DefaultCellStyle = dataGridViewCellStyle4;
             this.TaxPrice.HeaderText = "請求金額\r\n（消費税）";
             this.TaxPrice.Name = "TaxPrice";
+            this.TaxPrice.ReadOnly = true;
+            this.TaxPrice.Resizable = System.Windows.Forms.DataGridViewTriState.False;
             this.TaxPrice.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.TaxPrice.Width = 140;
             // 
+            // DepositAmountCash
+            // 
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.DepositAmountCash.DefaultCellStyle = dataGridViewCellStyle5;
+            this.DepositAmountCash.HeaderText = "入金金額\r\n（振込）";
+            this.DepositAmountCash.Name = "DepositAmountCash";
+            this.DepositAmountCash.ReadOnly = true;
+            this.DepositAmountCash.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.DepositAmountCash.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.DepositAmountCash.Width = 140;
+            // 
+            // DepositAmountBill
+            // 
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.DepositAmountBill.DefaultCellStyle = dataGridViewCellStyle6;
+            this.DepositAmountBill.HeaderText = "入金金額\r\n（手形）";
+            this.DepositAmountBill.Name = "DepositAmountBill";
+            this.DepositAmountBill.ReadOnly = true;
+            this.DepositAmountBill.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.DepositAmountBill.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.DepositAmountBill.Width = 140;
+            // 
+            // OrderNo
+            // 
+            this.OrderNo.HeaderText = "■受付番号";
+            this.OrderNo.Name = "OrderNo";
+            this.OrderNo.ReadOnly = true;
+            this.OrderNo.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.OrderNo.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.OrderNo.Visible = false;
+            // 
             // DepositAmount
             // 
-            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.DepositAmount.DefaultCellStyle = dataGridViewCellStyle10;
+            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.DepositAmount.DefaultCellStyle = dataGridViewCellStyle7;
             this.DepositAmount.HeaderText = "入金金額";
             this.DepositAmount.Name = "DepositAmount";
+            this.DepositAmount.ReadOnly = true;
+            this.DepositAmount.Resizable = System.Windows.Forms.DataGridViewTriState.False;
             this.DepositAmount.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.DepositAmount.Width = 140;
             // 
             // DiscountAmount
             // 
-            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.DiscountAmount.DefaultCellStyle = dataGridViewCellStyle11;
+            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.DiscountAmount.DefaultCellStyle = dataGridViewCellStyle8;
             this.DiscountAmount.HeaderText = "値引金額";
             this.DiscountAmount.Name = "DiscountAmount";
+            this.DiscountAmount.ReadOnly = true;
+            this.DiscountAmount.Resizable = System.Windows.Forms.DataGridViewTriState.False;
             this.DiscountAmount.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.DiscountAmount.Width = 140;
             // 
             // CnstrPrice
             // 
-            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.CnstrPrice.DefaultCellStyle = dataGridViewCellStyle12;
+            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.CnstrPrice.DefaultCellStyle = dataGridViewCellStyle9;
             this.CnstrPrice.HeaderText = "協力金";
             this.CnstrPrice.Name = "CnstrPrice";
+            this.CnstrPrice.ReadOnly = true;
+            this.CnstrPrice.Resizable = System.Windows.Forms.DataGridViewTriState.False;
             this.CnstrPrice.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.CnstrPrice.Width = 140;
             // 
             // Fees
             // 
-            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.Fees.DefaultCellStyle = dataGridViewCellStyle13;
+            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.Fees.DefaultCellStyle = dataGridViewCellStyle10;
             this.Fees.HeaderText = "手数料";
             this.Fees.Name = "Fees";
+            this.Fees.ReadOnly = true;
+            this.Fees.Resizable = System.Windows.Forms.DataGridViewTriState.False;
             this.Fees.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.Fees.Width = 140;
             // 
             // OtherAdjustments
             // 
-            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.OtherAdjustments.DefaultCellStyle = dataGridViewCellStyle14;
-            this.OtherAdjustments.HeaderText = "その他調整";
+            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.OtherAdjustments.DefaultCellStyle = dataGridViewCellStyle11;
+            this.OtherAdjustments.HeaderText = "送料";
             this.OtherAdjustments.Name = "OtherAdjustments";
+            this.OtherAdjustments.ReadOnly = true;
+            this.OtherAdjustments.Resizable = System.Windows.Forms.DataGridViewTriState.False;
             this.OtherAdjustments.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.OtherAdjustments.Width = 140;
             // 
             // CarryAmount
             // 
-            dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.CarryAmount.DefaultCellStyle = dataGridViewCellStyle15;
-            this.CarryAmount.HeaderText = "次回繰越";
+            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.CarryAmount.DefaultCellStyle = dataGridViewCellStyle12;
+            this.CarryAmount.HeaderText = "差分";
             this.CarryAmount.Name = "CarryAmount";
+            this.CarryAmount.ReadOnly = true;
+            this.CarryAmount.Resizable = System.Windows.Forms.DataGridViewTriState.False;
             this.CarryAmount.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.CarryAmount.Width = 140;
             // 
-            // PersonName
+            // ConfirmationPersonCode
             // 
-            dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.PersonName.DefaultCellStyle = dataGridViewCellStyle16;
-            this.PersonName.HeaderText = "担当者\r\n承認";
-            this.PersonName.Name = "PersonName";
-            this.PersonName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.PersonName.Width = 110;
+            this.ConfirmationPersonCode.HeaderText = "■担当者コード";
+            this.ConfirmationPersonCode.Name = "ConfirmationPersonCode";
+            this.ConfirmationPersonCode.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.ConfirmationPersonCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.ConfirmationPersonCode.Visible = false;
             // 
-            // PersonCode
+            // ConfirmationDate
             // 
-            this.PersonCode.HeaderText = "■担当者コード";
-            this.PersonCode.Name = "PersonCode";
-            this.PersonCode.Visible = false;
+            this.ConfirmationDate.HeaderText = "■担当者確認日";
+            this.ConfirmationDate.Name = "ConfirmationDate";
+            this.ConfirmationDate.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.ConfirmationDate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.ConfirmationDate.Visible = false;
             // 
-            // PersonDate
+            // ConfirmationEndFlg
             // 
-            this.PersonDate.HeaderText = "■担当者日付";
-            this.PersonDate.Name = "PersonDate";
-            this.PersonDate.Visible = false;
+            this.ConfirmationEndFlg.HeaderText = "■担当者確認フラグ";
+            this.ConfirmationEndFlg.Name = "ConfirmationEndFlg";
+            this.ConfirmationEndFlg.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.ConfirmationEndFlg.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.ConfirmationEndFlg.Visible = false;
             // 
-            // ApprovalName_1
+            // ConstructionPersonCode
             // 
-            dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.ApprovalName_1.DefaultCellStyle = dataGridViewCellStyle17;
-            this.ApprovalName_1.HeaderText = "承認者1\r\n承認";
-            this.ApprovalName_1.Name = "ApprovalName_1";
-            this.ApprovalName_1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.ApprovalName_1.Visible = false;
-            this.ApprovalName_1.Width = 110;
+            this.ConstructionPersonCode.HeaderText = "■工事担当者";
+            this.ConstructionPersonCode.Name = "ConstructionPersonCode";
+            this.ConstructionPersonCode.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.ConstructionPersonCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.ConstructionPersonCode.Visible = false;
             // 
-            // ApprovalCode_1
+            // ConstrSubPersonCode
             // 
-            this.ApprovalCode_1.HeaderText = "■承認者コード_1";
-            this.ApprovalCode_1.Name = "ApprovalCode_1";
-            this.ApprovalCode_1.Visible = false;
+            this.ConstrSubPersonCode.HeaderText = "■工事副担当";
+            this.ConstrSubPersonCode.Name = "ConstrSubPersonCode";
+            this.ConstrSubPersonCode.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.ConstrSubPersonCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.ConstrSubPersonCode.Visible = false;
             // 
-            // ApprovalAuthority_1
+            // ConstructionInstructor
             // 
-            this.ApprovalAuthority_1.HeaderText = "■承認権限区分_1";
-            this.ApprovalAuthority_1.Name = "ApprovalAuthority_1";
-            this.ApprovalAuthority_1.Visible = false;
+            this.ConstructionInstructor.HeaderText = "■指導員";
+            this.ConstructionInstructor.Name = "ConstructionInstructor";
+            this.ConstructionInstructor.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.ConstructionInstructor.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.ConstructionInstructor.Visible = false;
             // 
-            // ApprovalDate_1
+            // DepartmentCode
             // 
-            this.ApprovalDate_1.HeaderText = "■承認日付_1";
-            this.ApprovalDate_1.Name = "ApprovalDate_1";
-            this.ApprovalDate_1.Visible = false;
+            this.DepartmentCode.HeaderText = "■部署コード";
+            this.DepartmentCode.Name = "DepartmentCode";
+            this.DepartmentCode.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.DepartmentCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.DepartmentCode.Visible = false;
             // 
-            // ApprovalOrder_1
+            // PersonName
             // 
-            this.ApprovalOrder_1.HeaderText = "■承認順番_1";
-            this.ApprovalOrder_1.Name = "ApprovalOrder_1";
-            this.ApprovalOrder_1.Visible = false;
+            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.PersonName.DefaultCellStyle = dataGridViewCellStyle13;
+            this.PersonName.HeaderText = "確認";
+            this.PersonName.Name = "PersonName";
+            this.PersonName.ReadOnly = true;
+            this.PersonName.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.PersonName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.PersonName.Width = 110;
             // 
-            // ApprovalName_2
+            // NoteDD
             // 
-            dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.ApprovalName_2.DefaultCellStyle = dataGridViewCellStyle18;
-            this.ApprovalName_2.HeaderText = "承認者2\r\n承認";
-            this.ApprovalName_2.Name = "ApprovalName_2";
-            this.ApprovalName_2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.ApprovalName_2.Visible = false;
-            this.ApprovalName_2.Width = 110;
+            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            this.NoteDD.DefaultCellStyle = dataGridViewCellStyle14;
+            this.NoteDD.HeaderText = "備考";
+            this.NoteDD.Name = "NoteDD";
+            this.NoteDD.ReadOnly = true;
+            this.NoteDD.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.NoteDD.Width = 250;
             // 
-            // ApprovalCode_2
-            // 
-            this.ApprovalCode_2.HeaderText = "■承認者コード_2";
-            this.ApprovalCode_2.Name = "ApprovalCode_2";
-            this.ApprovalCode_2.Visible = false;
-            // 
-            // ApprovalAuthority_2
-            // 
-            this.ApprovalAuthority_2.HeaderText = "■承認権限区分_2";
-            this.ApprovalAuthority_2.Name = "ApprovalAuthority_2";
-            this.ApprovalAuthority_2.Visible = false;
-            // 
-            // ApprovalDate_2
-            // 
-            this.ApprovalDate_2.HeaderText = "■承認日付_2";
-            this.ApprovalDate_2.Name = "ApprovalDate_2";
-            this.ApprovalDate_2.Visible = false;
-            // 
-            // ApprovalOrder_2
-            // 
-            this.ApprovalOrder_2.HeaderText = "■承認順番_2";
-            this.ApprovalOrder_2.Name = "ApprovalOrder_2";
-            this.ApprovalOrder_2.Visible = false;
-            // 
-            // ApprovalName_3
-            // 
-            dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.ApprovalName_3.DefaultCellStyle = dataGridViewCellStyle19;
-            this.ApprovalName_3.HeaderText = "承認者3\r\n承認";
-            this.ApprovalName_3.Name = "ApprovalName_3";
-            this.ApprovalName_3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.ApprovalName_3.Visible = false;
-            this.ApprovalName_3.Width = 110;
-            // 
-            // ApprovalCode_3
-            // 
-            this.ApprovalCode_3.HeaderText = "■承認者コード_3";
-            this.ApprovalCode_3.Name = "ApprovalCode_3";
-            this.ApprovalCode_3.Visible = false;
-            // 
-            // ApprovalAuthority_3
-            // 
-            this.ApprovalAuthority_3.HeaderText = "■承認権限区分_3";
-            this.ApprovalAuthority_3.Name = "ApprovalAuthority_3";
-            this.ApprovalAuthority_3.Visible = false;
-            // 
-            // ApprovalDate_3
-            // 
-            this.ApprovalDate_3.HeaderText = "■承認日付_3";
-            this.ApprovalDate_3.Name = "ApprovalDate_3";
-            this.ApprovalDate_3.Visible = false;
-            // 
-            // ApprovalOrder_3
-            // 
-            this.ApprovalOrder_3.HeaderText = "■承認順番_3";
-            this.ApprovalOrder_3.Name = "ApprovalOrder_3";
-            this.ApprovalOrder_3.Visible = false;
-            // 
-            // ApprovalName_4
-            // 
-            dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.ApprovalName_4.DefaultCellStyle = dataGridViewCellStyle20;
-            this.ApprovalName_4.HeaderText = "承認者4\r\n承認";
-            this.ApprovalName_4.Name = "ApprovalName_4";
-            this.ApprovalName_4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.ApprovalName_4.Visible = false;
-            this.ApprovalName_4.Width = 110;
-            // 
-            // ApprovalCode_4
-            // 
-            this.ApprovalCode_4.HeaderText = "■承認者コード_4";
-            this.ApprovalCode_4.Name = "ApprovalCode_4";
-            this.ApprovalCode_4.Visible = false;
-            // 
-            // ApprovalAuthority_4
-            // 
-            this.ApprovalAuthority_4.HeaderText = "■承認権限区分_4";
-            this.ApprovalAuthority_4.Name = "ApprovalAuthority_4";
-            this.ApprovalAuthority_4.Visible = false;
-            // 
-            // ApprovalDate_4
-            // 
-            this.ApprovalDate_4.HeaderText = "■承認日付_4";
-            this.ApprovalDate_4.Name = "ApprovalDate_4";
-            this.ApprovalDate_4.Visible = false;
-            // 
-            // ApprovalOrder_4
-            // 
-            this.ApprovalOrder_4.HeaderText = "■承認順番_4";
-            this.ApprovalOrder_4.Name = "ApprovalOrder_4";
-            this.ApprovalOrder_4.Visible = false;
-            // 
-            // ApprovalName_5
-            // 
-            dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.ApprovalName_5.DefaultCellStyle = dataGridViewCellStyle21;
-            this.ApprovalName_5.HeaderText = "承認者5\r\n承認";
-            this.ApprovalName_5.Name = "ApprovalName_5";
-            this.ApprovalName_5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.ApprovalName_5.Visible = false;
-            this.ApprovalName_5.Width = 110;
-            // 
-            // ApprovalCode_5
-            // 
-            this.ApprovalCode_5.HeaderText = "■承認者コード_5";
-            this.ApprovalCode_5.Name = "ApprovalCode_5";
-            this.ApprovalCode_5.Visible = false;
-            // 
-            // ApprovalAuthority_5
-            // 
-            this.ApprovalAuthority_5.HeaderText = "■承認権限区分_5";
-            this.ApprovalAuthority_5.Name = "ApprovalAuthority_5";
-            this.ApprovalAuthority_5.Visible = false;
-            // 
-            // ApprovalDate_5
-            // 
-            this.ApprovalDate_5.HeaderText = "■承認日付_5";
-            this.ApprovalDate_5.Name = "ApprovalDate_5";
-            this.ApprovalDate_5.Visible = false;
-            // 
-            // ApprovalOrder_5
-            // 
-            this.ApprovalOrder_5.HeaderText = "■承認順番_5";
-            this.ApprovalOrder_5.Name = "ApprovalOrder_5";
-            this.ApprovalOrder_5.Visible = false;
-            // 
-            // ApprovalName_6
-            // 
-            dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.ApprovalName_6.DefaultCellStyle = dataGridViewCellStyle22;
-            this.ApprovalName_6.HeaderText = "承認者6\r\n承認";
-            this.ApprovalName_6.Name = "ApprovalName_6";
-            this.ApprovalName_6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.ApprovalName_6.Visible = false;
-            this.ApprovalName_6.Width = 110;
-            // 
-            // ApprovalCode_6
-            // 
-            this.ApprovalCode_6.HeaderText = "■承認者コード_6";
-            this.ApprovalCode_6.Name = "ApprovalCode_6";
-            this.ApprovalCode_6.Visible = false;
-            // 
-            // ApprovalAuthority_6
-            // 
-            this.ApprovalAuthority_6.HeaderText = "■承認権限区分_6";
-            this.ApprovalAuthority_6.Name = "ApprovalAuthority_6";
-            this.ApprovalAuthority_6.Visible = false;
-            // 
-            // ApprovalDate_6
-            // 
-            this.ApprovalDate_6.HeaderText = "■承認日付_6";
-            this.ApprovalDate_6.Name = "ApprovalDate_6";
-            this.ApprovalDate_6.Visible = false;
-            // 
-            // ApprovalOrder_6
-            // 
-            this.ApprovalOrder_6.HeaderText = "■承認順番_6";
-            this.ApprovalOrder_6.Name = "ApprovalOrder_6";
-            this.ApprovalOrder_6.Visible = false;
-            // 
-            // ApprovalName_7
-            // 
-            dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.ApprovalName_7.DefaultCellStyle = dataGridViewCellStyle23;
-            this.ApprovalName_7.HeaderText = "承認者7\r\n承認";
-            this.ApprovalName_7.Name = "ApprovalName_7";
-            this.ApprovalName_7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.ApprovalName_7.Visible = false;
-            this.ApprovalName_7.Width = 110;
-            // 
-            // ApprovalCode_7
-            // 
-            this.ApprovalCode_7.HeaderText = "■承認者コード_7";
-            this.ApprovalCode_7.Name = "ApprovalCode_7";
-            this.ApprovalCode_7.Visible = false;
-            // 
-            // ApprovalAuthority_7
-            // 
-            this.ApprovalAuthority_7.HeaderText = "■承認権限区分_7";
-            this.ApprovalAuthority_7.Name = "ApprovalAuthority_7";
-            this.ApprovalAuthority_7.Visible = false;
-            // 
-            // ApprovalDate_7
-            // 
-            this.ApprovalDate_7.HeaderText = "■承認日付_7";
-            this.ApprovalDate_7.Name = "ApprovalDate_7";
-            this.ApprovalDate_7.Visible = false;
-            // 
-            // ApprovalOrder_7
-            // 
-            this.ApprovalOrder_7.HeaderText = "■承認順番_7";
-            this.ApprovalOrder_7.Name = "ApprovalOrder_7";
-            this.ApprovalOrder_7.Visible = false;
-            // 
-            // ApprovalName_8
-            // 
-            dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.ApprovalName_8.DefaultCellStyle = dataGridViewCellStyle24;
-            this.ApprovalName_8.HeaderText = "承認者8\r\n承認";
-            this.ApprovalName_8.Name = "ApprovalName_8";
-            this.ApprovalName_8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.ApprovalName_8.Visible = false;
-            this.ApprovalName_8.Width = 110;
-            // 
-            // ApprovalCode_8
-            // 
-            this.ApprovalCode_8.HeaderText = "■承認者コード_8";
-            this.ApprovalCode_8.Name = "ApprovalCode_8";
-            this.ApprovalCode_8.Visible = false;
-            // 
-            // ApprovalAuthority_8
-            // 
-            this.ApprovalAuthority_8.HeaderText = "■承認権限区分_8";
-            this.ApprovalAuthority_8.Name = "ApprovalAuthority_8";
-            this.ApprovalAuthority_8.Visible = false;
-            // 
-            // ApprovalDate_8
-            // 
-            this.ApprovalDate_8.HeaderText = "■承認日付_8";
-            this.ApprovalDate_8.Name = "ApprovalDate_8";
-            this.ApprovalDate_8.Visible = false;
-            // 
-            // ApprovalOrder_8
-            // 
-            this.ApprovalOrder_8.HeaderText = "■承認順番_8";
-            this.ApprovalOrder_8.Name = "ApprovalOrder_8";
-            this.ApprovalOrder_8.Visible = false;
-            // 
-            // ApprovalName_9
-            // 
-            dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.ApprovalName_9.DefaultCellStyle = dataGridViewCellStyle25;
-            this.ApprovalName_9.HeaderText = "承認者9\r\n承認";
-            this.ApprovalName_9.Name = "ApprovalName_9";
-            this.ApprovalName_9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.ApprovalName_9.Visible = false;
-            this.ApprovalName_9.Width = 110;
-            // 
-            // ApprovalCode_9
-            // 
-            this.ApprovalCode_9.HeaderText = "■承認者コード_9";
-            this.ApprovalCode_9.Name = "ApprovalCode_9";
-            this.ApprovalCode_9.Visible = false;
-            // 
-            // ApprovalAuthority_9
-            // 
-            this.ApprovalAuthority_9.HeaderText = "■承認権限区分_9";
-            this.ApprovalAuthority_9.Name = "ApprovalAuthority_9";
-            this.ApprovalAuthority_9.Visible = false;
-            // 
-            // ApprovalDate_9
-            // 
-            this.ApprovalDate_9.HeaderText = "■承認日付_9";
-            this.ApprovalDate_9.Name = "ApprovalDate_9";
-            this.ApprovalDate_9.Visible = false;
-            // 
-            // ApprovalOrder_9
-            // 
-            this.ApprovalOrder_9.HeaderText = "■承認順番_9";
-            this.ApprovalOrder_9.Name = "ApprovalOrder_9";
-            this.ApprovalOrder_9.Visible = false;
-            // 
-            // ApprovalName_10
-            // 
-            dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.ApprovalName_10.DefaultCellStyle = dataGridViewCellStyle26;
-            this.ApprovalName_10.HeaderText = "承認者10\r\n承認";
-            this.ApprovalName_10.Name = "ApprovalName_10";
-            this.ApprovalName_10.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.ApprovalName_10.Visible = false;
-            this.ApprovalName_10.Width = 110;
-            // 
-            // ApprovalCode_10
-            // 
-            this.ApprovalCode_10.HeaderText = "■承認者コード_10";
-            this.ApprovalCode_10.Name = "ApprovalCode_10";
-            this.ApprovalCode_10.Visible = false;
-            // 
-            // ApprovalAuthority_10
-            // 
-            this.ApprovalAuthority_10.HeaderText = "■承認権限区分_10";
-            this.ApprovalAuthority_10.Name = "ApprovalAuthority_10";
-            this.ApprovalAuthority_10.Visible = false;
-            // 
-            // ApprovalDate_10
-            // 
-            this.ApprovalDate_10.HeaderText = "■承認日付_10";
-            this.ApprovalDate_10.Name = "ApprovalDate_10";
-            this.ApprovalDate_10.Visible = false;
-            // 
-            // ApprovalOrder_10
-            // 
-            this.ApprovalOrder_10.HeaderText = "■承認順番_10";
-            this.ApprovalOrder_10.Name = "ApprovalOrder_10";
-            this.ApprovalOrder_10.Visible = false;
-            // 
-            // btnAddCmp
-            // 
-            this.btnAddCmp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
-            this.btnAddCmp.BackColor = System.Drawing.Color.Orange;
-            this.btnAddCmp.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnAddCmp.ForeColor = System.Drawing.Color.Black;
-            this.btnAddCmp.Location = new System.Drawing.Point(8, 597);
-            this.btnAddCmp.Name = "btnAddCmp";
-            this.btnAddCmp.Size = new System.Drawing.Size(120, 30);
-            this.btnAddCmp.TabIndex = 3;
-            this.btnAddCmp.Text = "発注者追加";
-            this.btnAddCmp.UseVisualStyleBackColor = false;
-            this.btnAddCmp.Click += new System.EventHandler(this.btnAddCmp_Click);
-            // 
-            // btnDelCmp
-            // 
-            this.btnDelCmp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
-            this.btnDelCmp.BackColor = System.Drawing.Color.Red;
-            this.btnDelCmp.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnDelCmp.ForeColor = System.Drawing.Color.Black;
-            this.btnDelCmp.Location = new System.Drawing.Point(134, 597);
-            this.btnDelCmp.Name = "btnDelCmp";
-            this.btnDelCmp.Size = new System.Drawing.Size(120, 30);
-            this.btnDelCmp.TabIndex = 4;
-            this.btnDelCmp.Text = "発注者削除";
-            this.btnDelCmp.UseVisualStyleBackColor = false;
-            this.btnDelCmp.Click += new System.EventHandler(this.btnDelCmp_Click);
-            // 
-            // btnAddFld
-            // 
-            this.btnAddFld.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
-            this.btnAddFld.BackColor = System.Drawing.Color.Aquamarine;
-            this.btnAddFld.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnAddFld.ForeColor = System.Drawing.Color.Black;
-            this.btnAddFld.Location = new System.Drawing.Point(260, 597);
-            this.btnAddFld.Name = "btnAddFld";
-            this.btnAddFld.Size = new System.Drawing.Size(120, 30);
-            this.btnAddFld.TabIndex = 5;
-            this.btnAddFld.Text = "現場追加";
-            this.btnAddFld.UseVisualStyleBackColor = false;
-            this.btnAddFld.Click += new System.EventHandler(this.btnAddFld_Click);
-            // 
             // Registration
             // 
             this.Registration.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
@@ -970,9 +606,7 @@
             this.ClientSize = new System.Drawing.Size(1417, 633);
             this.Controls.Add(this.btnEnd);
             this.Controls.Add(this.Registration);
-            this.Controls.Add(this.btnAddFld);
-            this.Controls.Add(this.btnDelCmp);
-            this.Controls.Add(this.btnAddCmp);
+            this.Controls.Add(this.button1);
             this.Controls.Add(this.dgvMaster);
             this.Controls.Add(this.panel1);
             this.Controls.Add(this.label3);
@@ -997,30 +631,28 @@
         private System.Windows.Forms.ComboBox cbTargetMonth;
         private System.Windows.Forms.Label label2;
         private System.Windows.Forms.DataGridView dgvMaster;
-        private System.Windows.Forms.Button btnAddCmp;
-        private System.Windows.Forms.Button btnDelCmp;
-        private System.Windows.Forms.Button btnAddFld;
         private System.Windows.Forms.Button Registration;
         private System.Windows.Forms.Button btnEnd;
         private System.Windows.Forms.Button button1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn EditStatus;
+        private System.Windows.Forms.Label lblDepositTotal;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.Label lblRequestTotal;
+        private System.Windows.Forms.Label label8;
+        private System.Windows.Forms.Label lblRequestAmount;
+        private System.Windows.Forms.Label label5;
         private System.Windows.Forms.DataGridViewTextBoxColumn No;
+        private System.Windows.Forms.DataGridViewTextBoxColumn RequestMonth;
+        private System.Windows.Forms.DataGridViewTextBoxColumn RequestNo;
         private System.Windows.Forms.DataGridViewTextBoxColumn OrderersDivision;
         private System.Windows.Forms.DataGridViewTextBoxColumn OrderersCode;
-        private System.Windows.Forms.DataGridViewTextBoxColumn SeqNo;
-        private System.Windows.Forms.DataGridViewTextBoxColumn LineCount;
         private System.Windows.Forms.DataGridViewTextBoxColumn OrderersName;
-        private System.Windows.Forms.DataGridViewTextBoxColumn DepositDate;
+        private System.Windows.Forms.DataGridViewTextBoxColumn ConstructionCode;
+        private System.Windows.Forms.DataGridViewTextBoxColumn ConstructionName;
+        private System.Windows.Forms.DataGridViewTextBoxColumn BillPrice;
+        private System.Windows.Forms.DataGridViewTextBoxColumn TaxPrice;
         private System.Windows.Forms.DataGridViewTextBoxColumn DepositAmountCash;
         private System.Windows.Forms.DataGridViewTextBoxColumn DepositAmountBill;
-        private System.Windows.Forms.DataGridViewTextBoxColumn RequestNo;
         private System.Windows.Forms.DataGridViewTextBoxColumn OrderNo;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ConstructionName;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ConstructionName_Raw;
-        private System.Windows.Forms.DataGridViewTextBoxColumn PaymentSchedule;
-        private System.Windows.Forms.DataGridViewTextBoxColumn BillCreationDate;
-        private System.Windows.Forms.DataGridViewTextBoxColumn BillPrice;
-        private System.Windows.Forms.DataGridViewTextBoxColumn TaxPrice;
         private System.Windows.Forms.DataGridViewTextBoxColumn DepositAmount;
         private System.Windows.Forms.DataGridViewTextBoxColumn DiscountAmount;
         private System.Windows.Forms.DataGridViewTextBoxColumn CnstrPrice;
@@ -1027,59 +659,15 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Fees;
         private System.Windows.Forms.DataGridViewTextBoxColumn OtherAdjustments;
         private System.Windows.Forms.DataGridViewTextBoxColumn CarryAmount;
+        private System.Windows.Forms.DataGridViewTextBoxColumn ConfirmationPersonCode;
+        private System.Windows.Forms.DataGridViewTextBoxColumn ConfirmationDate;
+        private System.Windows.Forms.DataGridViewTextBoxColumn ConfirmationEndFlg;
+        private System.Windows.Forms.DataGridViewTextBoxColumn ConstructionPersonCode;
+        private System.Windows.Forms.DataGridViewTextBoxColumn ConstrSubPersonCode;
+        private System.Windows.Forms.DataGridViewTextBoxColumn ConstructionInstructor;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DepartmentCode;
         private System.Windows.Forms.DataGridViewTextBoxColumn PersonName;
-        private System.Windows.Forms.DataGridViewTextBoxColumn PersonCode;
-        private System.Windows.Forms.DataGridViewTextBoxColumn PersonDate;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalName_1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalCode_1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalAuthority_1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalDate_1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalOrder_1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalName_2;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalCode_2;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalAuthority_2;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalDate_2;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalOrder_2;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalName_3;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalCode_3;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalAuthority_3;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalDate_3;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalOrder_3;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalName_4;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalCode_4;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalAuthority_4;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalDate_4;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalOrder_4;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalName_5;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalCode_5;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalAuthority_5;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalDate_5;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalOrder_5;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalName_6;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalCode_6;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalAuthority_6;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalDate_6;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalOrder_6;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalName_7;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalCode_7;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalAuthority_7;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalDate_7;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalOrder_7;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalName_8;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalCode_8;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalAuthority_8;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalDate_8;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalOrder_8;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalName_9;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalCode_9;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalAuthority_9;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalDate_9;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalOrder_9;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalName_10;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalCode_10;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalAuthority_10;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalDate_10;
-        private System.Windows.Forms.DataGridViewTextBoxColumn ApprovalOrder_10;
+        private System.Windows.Forms.DataGridViewTextBoxColumn NoteDD;
     }
 }
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.cs	(revision 184)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.cs	(revision 185)
@@ -19,6 +19,7 @@
 using ProcessManagement.DB.Core;
 using ProcessManagement.Forms.Master;
 using ProcessManagement.Forms.DataEntry;
+using ProcessManagement.Forms.DataEntry.Request;
 using ProcessManagement.Forms.CustomControls;
 using ProcessManagement.Forms.ControlsAction;
 using ProcessManagement.Forms.SubForms;
@@ -40,192 +41,104 @@
         #endregion
 
         #region 定数
+
+        #region 表示カラム
         /// <summary>
-        /// 承認状態
+        /// 表示カラム ※■は非表示セル　□は総務入力画面で表示されるセル
         /// </summary>
-        public enum ApprovalStatus
+        private enum DispColumn
         {
-            None = 0,
-            InCharge,
-            InApproval,
-            Approved,
-        }
+            // 請求書データ（自動入力）
+            No = 0,                                                             // No.
+            RequestMonth,                                                       // ■請求月
+            RequestNo,                                                          // ■請求書No.
+            OrderersDivision,                                                   // ■発注者区分
+            OrderersCode,                                                       // ■発注者コード
+            OrderersName,                                                       // 請求先名・請求日
+            ConstructionCode,                                                   // ■工事番号
+            ConstructionName,                                                   // 現場名
+            BillPrice,                                                          // 請求金額 (税抜)
+            TaxPrice,                                                           // 請求金額 (消費税)
+            
+            // 入金データ(総務入力欄)
+            DepositAmountCash,                                                  // 入金金額 (振込み)
+            DepositAmountBill,                                                  // 入金金額 (手形)
+            
+            // 入金明細データ（工事担当入力欄）
+            OrderNo,                                                            // ■受付番号
+            DepositAmount,                                                      // 入金金額
+            DiscountAmount,                                                     // 値引金額
+            CnstrPrice,                                                         // 協力金
+            Fees,                                                               // 手数料
+            OtherAdjustments,                                                   // 送料
+            DifferentAmount,                                                    // 差分
+            ConfirmationPersonCode,                                             // ■担当者コード
+            ConfirmationDate,                                                   // ■担当者確認日
+            ConfirmationEndFlg,                                                 // ■担当者確認フラグ
 
-        /// <summary>
-        /// 合計行の見出し
-        /// </summary>
-        private enum TotalRows
-        {
-            小計 = 1,
-            入金金額,
-            調整後金額,
-            差額,
+            // 担当者情報（工事担当入力欄）
+            ConstructionPersonCode,                                             // ■工事担当者
+            ConstrSubPersonCode,                                                // ■工事副担当
+            ConstructionInstructor,                                             // ■指導員
+            DepartmentCode,                                                     // ■部署コード
+            PersonName,                                                         // 担当者名
+            NoteDD,                                                             // 備考（入金明細）
         }
+        #endregion
 
+        #region 取得するデータ項目
         /// <summary>
-        /// 表示カラム ※■は非表示セル
+        /// 取得するデータ項目
         /// </summary>
-        private enum DispColumn
+        private enum GetDataFirst
         {
-            RowType = 0,                                                        // ■編集状態
-            No,                                                                 // No
-            OrderersDivision,                                                   // ■発注先区分
+            // 請求書データ
+            OrderersName = 0,                                                   // 請求先名
+            RequestMonth,                                                       // ■請求月
+            RequestNo,                                                          // ■請求書No.
+            OrderersDivision,                                                   // ■発注者区分
             OrderersCode,                                                       // ■発注者コード
-            SeqNo,                                                              // ■連番
-            LineCount,                                                          // ■行番号
-            OrderersName,                                                       // 請求先名
+            
+            BillCreationDate,                                                   // 請求日
+            ConstructionCode,                                                   // ■工事番号
+            ConstructionName,                                                   // 現場名
+            BillPrice,                                                          // 請求金額 (税抜)
+            TaxPrice,                                                           // 請求金額 (消費税)
+
+            // ■区分 1:入金データ表示用  2:入金明細データ表示用
+            KB,
+            
+            // 入金データ
+            SeqNoD,                                                             // ■入金用連番
             DepositDate,                                                        // 入金日
             DepositAmountCash,                                                  // 入金金額 (振込み)
             DepositAmountBill,                                                  // 入金金額 (手形)
-            RequestNo,                                                          // ■請求No.
+            DepositPersonCode,                                                  // ■入金確認者コード
+            NoteD,                                                              // 備考（入金）
+
+            // 入金明細データ
             OrderNo,                                                            // ■受付番号
-            ConstructionName,                                                   // 現場名
-            ConstructionName_Raw,                                               // ■現場名 (DB登録値)
-            PaymentSchedule,                                                    // 入金予定日
-            BillCreationDate,                                                   // 請求日
-            BillPrice,                                                          // 請求金額 (税抜)
-            TaxPrice,                                                           // 請求金額 (消費税)
             DepositAmount,                                                      // 入金金額
             DiscountAmount,                                                     // 値引金額
             CnstrPrice,                                                         // 協力金
             Fees,                                                               // 手数料
-            OtherAdjustments,                                                   // その他調整
-            CarryAmount,                                                        // 次回繰越
-            PersonName,                                                         // 担当者承認
-            PersonCode,                                                         // ■担当者コード
-            PersonDate,                                                         // ■担当者日付
-            ApprovalName_1,                                                     // 承認者１承認
-            ApprovalCode_1,                                                     // ■承認者コード_1
-            ApprovalAuthority_1,                                                // ■承認権限区分_1
-            ApprovalDate_1,                                                     // ■承認日付_1
-            ApprovalOrder_1,                                                    // ■承認順番_1
-            ApprovalName_2,                                                     // 承認者２承認
-            ApprovalCode_2,                                                     // ■承認者コード_2
-            ApprovalAuthority_2,                                                // ■承認権限区分_2
-            ApprovalDate_2,                                                     // ■承認日付_2
-            ApprovalOrder_2,                                                    // ■承認順番_2
-            ApprovalName_3,                                                     // 承認者３承認
-            ApprovalCode_3,                                                     // ■承認者コード_3
-            ApprovalAuthority_3,                                                // ■承認権限区分_3
-            ApprovalDate_3,                                                     // ■承認日付_3
-            ApprovalOrder_3,                                                    // ■承認順番_3
-            ApprovalName_4,                                                     // 承認者４承認
-            ApprovalCode_4,                                                     // ■承認者コード_4
-            ApprovalAuthority_4,                                                // ■承認権限区分_4
-            ApprovalDate_4,                                                     // ■承認日付_4
-            ApprovalOrder_4,                                                    // ■承認順番_4
-            ApprovalName_5,                                                     // 承認者５承認
-            ApprovalCode_5,                                                     // ■承認者コード_5
-            ApprovalAuthority_5,                                                // ■承認権限区分_5
-            ApprovalDate_5,                                                     // ■承認日付_5
-            ApprovalOrder_5,                                                    // ■承認順番_5
-            ApprovalName_6,                                                     // 承認者６承認
-            ApprovalCode_6,                                                     // ■承認者コード_6
-            ApprovalAuthority_6,                                                // ■承認権限区分_6
-            ApprovalDate_6,                                                     // ■承認日付_6
-            ApprovalOrder_6,                                                    // ■承認順番_6
-            ApprovalName_7,                                                     // 承認者７承認
-            ApprovalCode_7,                                                     // ■承認者コード_7
-            ApprovalAuthority_7,                                                // ■承認権限区分_7
-            ApprovalDate_7,                                                     // ■承認日付_7
-            ApprovalOrder_7,                                                    // ■承認順番_7
-            ApprovalName_8,                                                     // 承認者８承認
-            ApprovalCode_8,                                                     // ■承認者コード_8
-            ApprovalAuthority_8,                                                // ■承認権限区分_8
-            ApprovalDate_8,                                                     // ■承認日付_8
-            ApprovalOrder_8,                                                    // ■承認順番_8
-            ApprovalName_9,                                                     // 承認者９承認
-            ApprovalCode_9,                                                     // ■承認者コード_9
-            ApprovalAuthority_9,                                                // ■承認権限区分_9
-            ApprovalDate_9,                                                     // ■承認日付_9
-            ApprovalOrder_9,                                                    // ■承認順番_9
-            ApprovalName_10,                                                    // 承認者１０承認
-            ApprovalCode_10,                                                    // ■承認者コード_10
-            ApprovalAuthority_10,                                               // ■承認権限区分_10
-            ApprovalDate_10,                                                    // ■承認日付_10
-            ApprovalOrder_10,                                                   // ■承認順番_10
-        }
+            OtherAdjustments,                                                   // 送料
+            DifferentAmount,                                                    // 差分
 
-        /// <summary>
-        /// 取得するデータ項目
-        /// </summary>
-        private enum ClickGetData
-        {
-            OrderersDivision = 0,
-            OrderersCode,
-            TargetDate,
-            SeqNo,
-            DepositDate,
-            DepositAmountCash,
-            DepositAmountBill,
-            CorporateStatusName,
-            CorporateStatusPoint,
-            OrderersName1,
-            OrderersName2,
-            LineCount,
-            RequestNo,
-            OrderNo,
-            DepositAmount,
-            DiscountAmount,
-            CnstrPrice,
-            Fees,
-            OtherAdjustments,
-            CarryAmount,
-            ApprovalPersonCode,
-            ApprovalDate,
-            ApprovalEndFlg,
-            PersonName,
-            DepartmentCode,
-            BillCreationDate,
-            BillPrice,
-            TaxPrice,
-            ConstructionCode,
-            ConstructionPersonCode,
-            ConstrSubPersonCode,
-            ConstructionInstructor,
-            DetailNo,
-            DetailString,
-            ApprovalPersonName1,
-            ApprovalPerson1,
-            ApprovalAuthority1,
-            ApprovalDate1,
-            ApprovalPersonName2,
-            ApprovalPerson2,
-            ApprovalAuthority2,
-            ApprovalDate2,
-            ApprovalPersonName3,
-            ApprovalPerson3,
-            ApprovalAuthority3,
-            ApprovalDate3,
-            ApprovalPersonName4,
-            ApprovalPerson4,
-            ApprovalAuthority4,
-            ApprovalDate4,
-            ApprovalPersonName5,
-            ApprovalPerson5,
-            ApprovalAuthority5,
-            ApprovalDate5,
-            ApprovalPersonName6,
-            ApprovalPerson6,
-            ApprovalAuthority6,
-            ApprovalDate6,
-            ApprovalPersonName7,
-            ApprovalPerson7,
-            ApprovalAuthority7,
-            ApprovalDate7,
-            ApprovalPersonName8,
-            ApprovalPerson8,
-            ApprovalAuthority8,
-            ApprovalDate8,
-            ApprovalPersonName9,
-            ApprovalPerson9,
-            ApprovalAuthority9,
-            ApprovalDate9,
-            ApprovalPersonName10,
-            ApprovalPerson10,
-            ApprovalAuthority10,
-            ApprovalDate10
+            ConfirmationPersonCode,                                             // ■担当者コード
+            ConfirmationDate,                                                   // ■担当者確認日
+            ConfirmationEndFlg,                                                 // ■担当者確認フラグ
+            NoteDD,                                                             // 備考（入金明細）
+            EntryDate,                                                          // ■登録日
+            
+            // 担当者情報
+            ConstructionPersonCode,                                             // ■工事担当者
+            ConstrSubPersonCode,                                                // ■工事副担当
+            ConstructionInstructor,                                             // ■指導員
+            PersonName,                                                         // 担当者名
+            DepartmentCode,                                                     // ■部署コード
         }
+        #endregion
 
         private const long amount_max = 9999999999;             // 金額最大
         private const long amount_min = -9999999999;            // 金額最小
@@ -234,19 +147,6 @@
 
         #region クラス定義
 
-        #region 承認情報クラス定義
-        /// <summary>
-        /// 承認情報
-        /// </summary>
-        private class ApproveData
-        {
-            public int Key { get; set; }
-            public string Value { get; set; }
-            public int Order { get; set; }
-            public int ApprovalAuthority { get; set; }
-        }
-        #endregion
-
         #region 請求先キークラス定義
         /// <summary>
         /// 請求先キー
@@ -278,7 +178,9 @@
                     }
                 }
             }
+            public int KB;
             public int No;
+            public int RequestMonth;
             public int OrderersDivision;
             public int OrderersCode;
             public string OrderersName;
@@ -300,9 +202,9 @@
             {
                 return Deposits.Find(d => d.SeqNo == seqNo);
             }
-            public DepositDetail FindDepositDetailByLineCount(int lineCount)
+            public DepositDetail FindDepositDetailByRequestNo(int RequestNo)
             {
-                return DepositDetails.Find(dd => dd.LineCount == lineCount);
+                return DepositDetails.Find(dd => dd.RequestNo == RequestNo);
             }
             public int GetNextSeqNo()
             {
@@ -310,12 +212,6 @@
                     return 1;
                 return Deposits.Max(d => d.SeqNo) + 1;
             }
-            public int GetNextLineCount()
-            {
-                if (DepositDetails.Count == 0)
-                    return 1;
-                return DepositDetails.Max(dd => dd.LineCount) + 1;
-            }
             public bool HasApprovedByStaff
             {
                 get {
@@ -324,24 +220,6 @@
                     return DepositDetails.Any(dd => dd.IsApprovedByStaff);
                 }
             }
-            public bool HasApprovedByApprover
-            {
-                get
-                {
-                    if (DepositDetails.Count == 0)
-                        return false;
-                    return DepositDetails.Any(dd => dd.IsApprovedByApprover);
-                }
-            }
-            public bool HasApprovedByLastApprover
-            {
-                get
-                {
-                    if (DepositDetails.Count == 0)
-                        return false;
-                    return DepositDetails.Any(dd => dd.IsApprovedByLastApprover);
-                }
-            }
         }
         #endregion
 
@@ -358,6 +236,7 @@
             public string DepositDate;
             public long? DepositAmountCash;
             public long? DepositAmountBill;
+            public string Note;
             public bool CanRemove
             {
                 get
@@ -382,12 +261,10 @@
             public bool Editted = false;
             public bool Deleted = false;
             public bool Visible;
-            public int SeqNo;
-            public int LineCount;
             public int RequestNo;
             public int OrderNo;
             public string ConstructionName;
-            public string ConstructionNameRow;
+            //public string ConstructionNameRow;
             //public string PaymentSchedule;
             public string BillCreationDate;
             public long BillPrice;
@@ -397,62 +274,28 @@
             public long CnstrPrice;
             public long Fees;
             public long OtherAdjustments;
-            public long CarryAmount;
-            public string ApprovalPersonName;
-            public int ApprovalPersonCode;
-            public string ApprovalDate;
-            public int ApprovalEndFlg;
+            public long DifferenceAmount;
+            public string ConfirmationPersonName;
+            public int ConfirmationPersonCode;
+            public string ConfirmationDate;
+            public int ConfirmationEndFlg;
+            public string Note;
+            public string EntryDate;
             public int DepartmentCode;
             public int ConstructionCode;
             public int ConstructionPersonCode;
             public int ConstrSubPersonCode;
             public int ConstructionInstructor;
-            public ApprovalStatus Status = ApprovalStatus.None;
             public bool UpperApprovalInUser = false;
-            public List<DepositApproval> DepositApprovals = new List<DepositApproval>();
             public bool IsApprovedByStaff
             {
-                get { return !string.IsNullOrEmpty(ApprovalDate); }
+                get { return !string.IsNullOrEmpty(ConfirmationDate); }
             }
-            public bool IsApprovedByApprover
-            {
-                get
-                {
-                    if (DepositApprovals.Count == 0)
-                        return false;
-                    return DepositApprovals.First().ApprovalDate != "";
-                }
-            }
-            public bool IsApprovedByLastApprover
-            {
-                get
-                {
-                    if (DepositApprovals.Count == 0)
-                        return false;
-                    return DepositApprovals.Last().ApprovalDate != "";
-                }
-            }
         }
         #endregion
 
-        #region 入金確認承認情報クラス定義
-        /// <summary>
-        /// 入金確認承認情報
-        /// </summary>
-        private class DepositApproval
-        {
-            public bool Added = false;
-            public bool Editted = false;
-            public int ApprovalNo;
-            public int ApprovalPerson;
-            public string ApprovalPersonName;
-            public int ApprovalAuthority;
-            public string ApprovalDate;
-        }
         #endregion
 
-        #endregion
-
         #region 変数
         /// <summary>
         /// 入金請求先情報リスト
@@ -515,19 +358,19 @@
         private void FrmSelectPayment_Load(object sender, EventArgs e)
         {
             // 対象月コンボBOX設定
-            IODepositData IoDd = new IODepositData();
+            IORequestHead IoDd = new IORequestHead();
 
             try
             {
                 string now = DateTime.Now.ToString("yyyy/MM");
-                List<DepositData> lstDd = new List<DepositData>();
+                List<RequestHead> lstDd = new List<RequestHead>();
                 List<string> lstDate = new List<string>();
 
-                IoDd.SelectAction(" group by TargetDate order by TargetDate desc", ref lstDd);
+                IoDd.SelectAction(" group by RequestMonth order by RequestMonth desc", ref lstDd);
 
-                foreach (DepositData DdInfo in lstDd)
+                foreach (RequestHead DdInfo in lstDd)
                 {
-                    lstDate.Add(DdInfo.TargetDate.Insert(4, "/"));
+                    lstDate.Add(DdInfo.RequestMonth.ToString().Insert(4, "/"));
                 }
                 if (lstDate.IndexOf(now) < 0)
                 {
@@ -563,153 +406,6 @@
         }
         #endregion
 
-        #region 発注者追加ボタン押下時のイベント
-        /// <summary>
-        /// 発注者追加ボタン押下時のイベント
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnAddCmp_Click(object sender, EventArgs e)
-        {
-            try
-            {
-                ResetTargetDate();
-                var f = new FrmSelectRequest(FrmSelectRequest.OpenMode.AddCmp);
-                f.FormClosed += new FormClosedEventHandler(NotifyAddCmp_FormClosed);
-                f.ShowDialog(this);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region 発注者削除ボタン押下時のイベント
-        /// <summary>
-        /// 発注者削除ボタン押下時のイベント
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnDelCmp_Click(object sender, EventArgs e)
-        {
-            try
-            {
-                ResetTargetDate();
-                if (dgvMaster.RowCount <= 0)
-                    return;
-                var depositOrderer = FindDepositOrderer(dgvMaster.CurrentCell.RowIndex);
-                if (depositOrderer.DepositDetails.Count > 0)
-                {
-                    MessageBox.Show("すでに現場が登録されているため、削除できません。", "削除エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                    return;
-                }
-
-                if (MessageBox.Show("発注者を削除します。", "削除確認", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
-                {
-                    return;
-                }
-
-                // 保存前のものは削除する
-                if (depositOrderer.Added)
-                    depositOrderers.Remove(depositOrderer);
-                // 保存済みのものは削除フラグを付与
-                else
-                    depositOrderer.Deleted = true;
-                RemoveDepositOrdererRows(depositOrderer);
-                isDirty = true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region 現場追加ボタン押下時のイベント
-        /// <summary>
-        /// 現場追加ボタン押下時のイベント
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnAddFld_Click(object sender, EventArgs e)
-        {
-            try
-            {
-                ResetTargetDate();
-                if (dgvMaster.RowCount <= 0)
-                    return;
-                // 現場が不明の場合のみ追加可能
-                //if (!IsUnknownRow(dgvMaster.CurrentCell.RowIndex))
-                //{
-                //    MessageBox.Show("不明以外の行が選択されています。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                //    return;
-                //}
-                var depositOrderer = FindDepositOrderer(dgvMaster.CurrentCell.RowIndex);
-                var f = new FrmSelectRegField();
-                f.m_OrderersDivision = depositOrderer.OrderersDivision;
-                f.m_OrderersCode = depositOrderer.OrderersCode;
-                //foreach (var depositDetail in depositOrderer.VisibleDepositDetails)
-                foreach (var depositDetail in depositOrderer.DepositDetails)
-                {
-                    f.m_lstMyField.Add(new FrmSelectRegField.MyFieldData()
-                    {
-                        OrderersDivision = depositOrderer.OrderersDivision,
-                        OrderersCode = depositOrderer.OrderersCode,
-                        RequestNo = depositDetail.RequestNo,
-                        OrderNo = depositDetail.OrderNo,
-                        ConstructionName = depositDetail.ConstructionName,
-                        ConstructionName_Raw = depositDetail.ConstructionNameRow,
-                        BillCreationDate = depositDetail.BillCreationDate,
-                        BillPrice = depositDetail.BillPrice,
-                        TaxPrice = depositDetail.TaxPrice,
-                        DepositAmount = depositDetail.DepositAmount,
-                        PersonCode = depositDetail.ApprovalPersonCode,
-                        DeleteFlg = false,
-                        ReadOnly = depositDetail.IsApprovedByStaff,
-                        DepartmentCode = depositDetail.DepartmentCode,
-                        SubPersonCode = depositDetail.ConstrSubPersonCode,
-                        InstructorPersonCode = depositDetail.ConstructionInstructor,
-                    });
-                }
-                // 不明行を渡す必要がある
-                var unknownIndex = DetectUnknownIndex(dgvMaster.CurrentCell.RowIndex);
-                if (unknownIndex > -1)
-                {
-                    var unknownCell = dgvMaster.Rows[unknownIndex].Cells;
-                    f.m_lstMyField.Add(new FrmSelectRegField.MyFieldData()
-                    {
-                        OrderersDivision = depositOrderer.OrderersDivision,
-                        OrderersCode = depositOrderer.OrderersCode,
-                        ConstructionName = CommonMotions.cnvString(unknownCell[(int)DispColumn.ConstructionName].Value),
-                        ConstructionName_Raw = CommonMotions.cnvString(unknownCell[(int)DispColumn.ConstructionName_Raw].Value),
-                        DepositAmount = CommonMotions.cnvLong(unknownCell[(int)DispColumn.DepositAmount].Value),
-                        ReadOnly = true,
-                    });
-                }
-                else
-                {
-                    f.m_lstMyField.Add(new FrmSelectRegField.MyFieldData()
-                    {
-                        OrderersDivision = depositOrderer.OrderersDivision,
-                        OrderersCode = depositOrderer.OrderersCode,
-                        ConstructionName = "",
-                        ConstructionName_Raw = "",
-                        DepositAmount = 0,
-                        ReadOnly = true,
-                    });
-                }
-
-                f.FormClosed += new FormClosedEventHandler(NotifyAddFld_FormClosed);
-                f.ShowDialog(this);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
         #region 表示ボタン押下時のイベント
         /// <summary>
         /// 表示ボタン押下時のイベント
@@ -806,138 +502,6 @@
         }
         #endregion
 
-        #region 入金情報掲示板データ登録
-        /// <summary>
-        /// 入金情報掲示板データ登録
-        /// </summary>
-        /// <returns></returns>
-        private bool MessageBoardEntry(DepositOrderer depositOder)
-        {
-            IOMessageBoardData mbdDB = new IOMessageBoardData();
-            IOMessageBoardTerget mbtDB = new IOMessageBoardTerget();
-
-            try
-            {
-                mbdDB.connect();
-                mbdDB.beginTran();
-
-                mbtDB.connect();
-                mbtDB.beginTran();
-
-                List<MessageBoardData> list = new List<MessageBoardData>();
-                MessageBoardData data = new MessageBoardData();
-
-                // キーコードセット
-                data.RecordNumber = mbtDB.SelectMaxMessageBoardTergetKeyCount("", false) + 1;
-                data.BranchNumber = 0;
-                string strWhere = mbdDB.CreatePrimarykeyString(data.RecordNumber, data.BranchNumber);
-
-                // 送信者セット
-                data.FromCode = CommonMotions.LoginUserData.PersonCode;
-                data.FromName = CommonMotions.LoginUserData.PersonName;
-
-                data.MessageTitle = string.Format("入金確認（{0}）", depositOder.OrderersName);
-                data.MessageContent = string.Format("{0}様より入金がありました。\r\n", depositOder.OrderersName);
-                data.MessageContent += "入金内容の確認をよろしくお願いします。";
-
-                // リンク情報
-                data.LinkType = 0;
-                data.LinkMessage = "";
-                data.LinkCode = "";
-
-                // メッセージ色セット
-                data.MessageColor = String.Format("0x{0:X2}{1:X2}{2:X2}", Color.White.R
-                                                                        , Color.White.G
-                                                                        , Color.White.B);
-                data.BackColor = String.Format("0x{0:X2}{1:X2}{2:X2}", Color.Green.R
-                                                                        , Color.Green.G
-                                                                        , Color.Green.B);
-                data.WritingDate = DateTime.Now;
-                data.PersonCode = CommonMotions.LoginUserData.PersonCode;
-                data.ShareFlag = 1;
-
-                list.Add(data);
-                // データ登録
-                if (!mbdDB.InsertAction(list, false))
-                {
-                    MessageBox.Show("登録に失敗しました。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                    mbdDB.rollback();
-                    mbtDB.rollback();
-                    return false;
-                }
-
-                string strMBT = mbtDB.CreatePrimarykeyString(data.RecordNumber, data.BranchNumber);
-                mbtDB.DeleteAction(strMBT, false);
-                // 対象者書込み
-                int icnt = 0;
-
-                List<MessageBoardTerget> terList = new List<MessageBoardTerget>();
-                MessageBoardTerget wrkTer = new MessageBoardTerget();
-
-                // キーコードセット
-                wrkTer.RecordNumber = data.RecordNumber;
-                wrkTer.BranchNumber = data.BranchNumber;
-                wrkTer.SeqNum = ++icnt;
-                wrkTer.ToCode = 99999999;
-                wrkTer.ToName = "全　　員";
-
-                terList.Add(wrkTer);
-
-                // データ登録
-                if (!mbtDB.InsertAction(terList, false))
-                {
-                    mbdDB.rollback();
-                    mbtDB.rollback();
-                    return false;
-                }
-
-                mbdDB.commit();
-                mbtDB.commit();
-
-                return true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                mbdDB.close(); 
-                mbdDB = null;
-                mbtDB.close(); 
-                mbtDB = null;
-            }
-        }
-        #endregion
-
-        #region 承認完了フラグの判定
-        /// <summary>
-        /// 承認完了フラグの判定
-        /// </summary>
-        /// <param name="lstApprovals"></param>
-        /// <returns></returns>
-        private bool jadgeApprovalEndFlg(List<DepositApproval> lstApprovals)
-        {
-            bool ret = true;
-
-            foreach (DepositApproval app in lstApprovals)
-            {
-
-                if(( app.ApprovalAuthority == 1 )&&(app.ApprovalDate != string.Empty))
-                {
-                    return true;
-                }
-
-                if (app.ApprovalDate == string.Empty)
-                {
-                    ret = false;
-                }
-            }
-            return ret;
-        }
-        #endregion
-
         #region 登録ボタンクリック時のイベント
         /// <summary>
         /// 登録ボタンクリック時のイベント
@@ -950,9 +514,7 @@
             dgvMaster.CellEnter -= DataGridView_CellEnter;
             dgvMaster.CellValueChanged -= DataGridView_CellValueChanged;
 
-            var ioDepositData = new IODepositData();
             var ioDepositDataDetail = new IODepositDataDetail();
-            var ioDepositApprovalInfo = new IODepositApprovalInfo();
             var ioRequestHead = new IORequestHead();
 
             try
@@ -959,54 +521,16 @@
             {
                 ResetTargetDate();
                 if (MessageBox.Show("表示中のデータを登録します。", "登録確認", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
+                {
                     return;
+                }
 
                 // エラー表示を一旦クリア
                 UnsetErrorDisp();
 
-                if (!isDirty)
-                    return;
-
                 // 入力内容をチェック
-                foreach (var depositOrderer in depositOrderers)
-                {
-                    foreach (var deposit in depositOrderer.VisibleDeposits)
-                    {
-                        // 入金日入力済みで入金金額が入力されていない
-                        if (!string.IsNullOrEmpty(deposit.DepositDate)
-                            && !deposit.DepositAmountCash.HasValue
-                            && !deposit.DepositAmountBill.HasValue)
-                        {
-                            // エラー表示
-                            int trow = GetRowIndexFromDeposit(depositOrderer, deposit);
-                            SetErrorDisp(trow, new List<int>() { (int)DispColumn.DepositAmountCash, (int)DispColumn.DepositAmountBill });
-
-                            MessageBox.Show("入金日が登録されている行に入金金額が入力されていません。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
-
-                            return;
-                        }
-                        // 入金金額入力済みで入金日が入力されていない
-                        if (string.IsNullOrEmpty(deposit.DepositDate)
-                            && (deposit.DepositAmountCash.HasValue
-                            || deposit.DepositAmountBill.HasValue))
-                        {
-                            // エラー表示
-                            int trow = GetRowIndexFromDeposit(depositOrderer, deposit);
-                            SetErrorDisp(trow, new List<int>() { (int)DispColumn.DepositDate });
-
-                            MessageBox.Show("入金金額が登録されている行に入金日が入力されていません。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
-
-                            return;
-                        }
-                    }
-                }
-
-                ioDepositData.connect();
-                ioDepositData.beginTran();
                 ioDepositDataDetail.connect();
                 ioDepositDataDetail.beginTran();
-                ioDepositApprovalInfo.connect();
-                ioDepositApprovalInfo.beginTran();
                 ioRequestHead.connect();
                 ioRequestHead.beginTran();
 
@@ -1013,90 +537,14 @@
                 // 登録処理
                 foreach (var depositOrderer in depositOrderers)
                 {
-                    // 入金データの登録
-                    foreach (var deposit in depositOrderer.Deposits)
-                    {
-                        // 削除処理
-                        if (deposit.Deleted)
-                        {
-                            var sql = String.Format(" where OrderersDivision = {0} and OrderersCode = {1} and TargetDate = {2} and SeqNo = {3} ",
-                                depositOrderer.OrderersDivision, depositOrderer.OrderersCode, m_Select_TargetDate, deposit.SeqNo);
-                            if (!ioDepositData.DeleteAction(sql))
-                                throw new Exception();
-                            continue;
-                        }
-
-                        var depositData = new DepositData()
-                        {
-                            OrderersDivision = depositOrderer.OrderersDivision,
-                            OrderersCode = depositOrderer.OrderersCode,
-                            TargetDate = m_Select_TargetDate.ToString(),
-                            SeqNo = deposit.SeqNo,
-                            BusinessPeriod = CommonMotions.SystemMasterData.BusinessPeriod,
-                            DepositDate = DateTime.Parse(deposit.DepositDate),
-                            DepositAmount = deposit.DepositAmountCash.GetValueOrDefault(0) + deposit.DepositAmountBill.GetValueOrDefault(0),
-                            DepositAmountCash = deposit.DepositAmountCash.GetValueOrDefault(0),
-                            DepositAmountBill = deposit.DepositAmountBill.GetValueOrDefault(0),
-                        };
-
-                        // 登録処理
-                        if (deposit.Added)
-                        {
-                            if (!ioDepositData.InsertAction(depositData))
-                            {
-                                throw new Exception();
-                            }
-                            else
-                            {
-                                // 総務担当
-                                if (m_UserInfo.m_GeneralAffairsFlg == 1)
-                                {
-                                    MessageBoardEntry(depositOrderer);
-                                }
-                            }
-                        }
-                        // 更新処理
-                        else if (deposit.Editted)
-                        {
-                            var sql = String.Format(" where OrderersDivision = {0} and OrderersCode = {1} and TargetDate = {2} and SeqNo = {3} ",
-                                depositData.OrderersDivision, depositData.OrderersCode, depositData.TargetDate, depositData.SeqNo);
-                            if (!ioDepositData.UpdateAction(sql, depositData))
-                                throw new Exception();
-                        }
-                    }
                     // 入金明細データの登録
                     foreach (var depositDetail in depositOrderer.DepositDetails)
                     {
-                        // 削除処理
-                        if (depositDetail.Deleted)
-                        {
-                            var sql = String.Format(" where OrderersDivision = {0} and OrderersCode = {1} and TargetDate = {2} and SeqNo = {3} and LineCount = {4} ",
-                                depositOrderer.OrderersDivision, depositOrderer.OrderersCode, m_Select_TargetDate, depositDetail.SeqNo, depositDetail.LineCount);
-                            if (!ioDepositDataDetail.DeleteAction(sql))
-                                throw new Exception();
-                            // 入金確認承認データもあわせて削除
-                            if (!ioDepositApprovalInfo.DeleteAction(sql))
-                                throw new Exception();
-                            // 入金明細データを削除した場合は、対応する請求合計データを割当未とする
-                            sql = string.Format(" where RequestNo = {0} ", depositDetail.RequestNo);
-                            var lstRtd = new List<RequestHead>();
-                            if (!ioRequestHead.SelectAction(sql, ref lstRtd))
-                                throw new Exception();
-                            foreach (var rtd in lstRtd)
-                            {
-                                rtd.AssignedFlg = 0;
-                                if (!ioRequestHead.UpdateAction(sql, rtd))
-                                    throw new Exception();
-                            }
-                            continue;
-                        }
                         var depositDataDetail = new DepositDataDetail()
                         {
                             OrderersDivision = depositOrderer.OrderersDivision,
                             OrderersCode = depositOrderer.OrderersCode,
                             TargetDate = m_Select_TargetDate.ToString(),
-                            SeqNo = depositDetail.SeqNo,
-                            LineCount = depositDetail.LineCount,
                             RequestNo = depositDetail.RequestNo,
                             OrderNo = depositDetail.OrderNo,
                             DepositAmount = depositDetail.DepositAmount,
@@ -1104,21 +552,25 @@
                             CnstrPrice = depositDetail.CnstrPrice,
                             Fees = depositDetail.Fees,
                             OtherAdjustments = depositDetail.OtherAdjustments,
-                            CarryAmount = depositDetail.CarryAmount,
-                            ApprovalPersonCode = depositDetail.ApprovalPersonCode,
-                            ApprovalEndFlg = jadgeApprovalEndFlg(depositDetail.DepositApprovals), 
+                            DifferenceAmount = depositDetail.DifferenceAmount,
+                            ConfirmationPersonCode = depositDetail.ConfirmationPersonCode,
+                            ConfirmationEndFlg = depositDetail.ConfirmationEndFlg,
+                            Note = depositDetail.Note
                         };
                         var approvalDate = new DateTime(2000, 1, 1);
-                        if (DateTime.TryParse(depositDetail.ApprovalDate, out approvalDate))
+                        if (DateTime.TryParse(depositDetail.ConfirmationDate, out approvalDate))
                         {
-                            depositDataDetail.ApprovalDate = approvalDate;
+                            depositDataDetail.ConfirmationDate = approvalDate;
                         }
 
                         // 登録処理
-                        if (depositDetail.Added)
-                        {
+                        if (depositDetail.EntryDate == "" && depositDetail.Editted)
+                        {                          
                             if (!ioDepositDataDetail.InsertAction(depositDataDetail))
+                            {
                                 throw new Exception();
+                            }
+
                             // 入金明細データを追加した場合は、対応する請求合計データを割当済みとする
                             var sql = string.Format(" where RequestNo = {0}", depositDataDetail.RequestNo);
                             var lstRtd = new List<RequestHead>();
@@ -1130,88 +582,32 @@
                                 if (!ioRequestHead.UpdateAction(sql, rtd))
                                     throw new Exception();
                             }
-                            // 入金確認承認データの登録
-                            foreach (var approval in depositDetail.DepositApprovals)
-                            {
-                                var da = new DepositApprovalInfo()
-                                {
-                                    OrderersDivision = depositOrderer.OrderersDivision,
-                                    OrderersCode = depositOrderer.OrderersCode,
-                                    TargetDate = m_Select_TargetDate.ToString(),
-                                    SeqNo = depositDetail.SeqNo,
-                                    LineCount = depositDetail.LineCount,
-                                    ApprovalNo = approval.ApprovalNo,
-                                    ApprovalPerson = approval.ApprovalPerson,
-                                    ApprovalPersonName = approval.ApprovalPersonName,
-                                    ApprovalAuthority = approval.ApprovalAuthority,
-                                };
-                                DateTime ad = new DateTime(2000, 1, 1);
-                                if (DateTime.TryParse(approval.ApprovalDate, out ad))
-                                { 
-                                    da.ApprovalDate = ad;
-                                }
-                                if (!ioDepositApprovalInfo.InsertAction(da))
-                                    throw new Exception();
-                            }
                         }
                         // 更新処理
                         else
                         {
-                            // 入金確認承認データの更新
-                            foreach (var approval in depositDetail.DepositApprovals)
-                            {
-                                if (approval.Editted)
-                                {
-                                    // 承認に変更があるケースは強制的に明細も更新
-                                    depositDetail.Editted = true;
-
-                                    var da = new DepositApprovalInfo()
-                                    {
-                                        OrderersDivision = depositOrderer.OrderersDivision,
-                                        OrderersCode = depositOrderer.OrderersCode,
-                                        TargetDate = m_Select_TargetDate.ToString(),
-                                        SeqNo = depositDetail.SeqNo,
-                                        LineCount = depositDetail.LineCount,
-                                        ApprovalNo = approval.ApprovalNo,
-                                        ApprovalPerson = approval.ApprovalPerson,
-                                        ApprovalPersonName = approval.ApprovalPersonName,
-                                        ApprovalAuthority = approval.ApprovalAuthority,
-                                    };
-                                    DateTime ad = new DateTime(2000, 1, 1);
-                                    if (DateTime.TryParse(approval.ApprovalDate, out ad))
-                                    {
-                                        da.ApprovalDate = ad;
-                                    }
-                                    var sql = string.Format(" where OrderersDivision = {0} and OrderersCode = {1} and TargetDate = {2} and SeqNo = {3} and LineCount = {4} and ApprovalNo = {5}",
-                                        da.OrderersDivision, da.OrderersCode, da.TargetDate, da.SeqNo, da.LineCount, da.ApprovalNo);
-                                    if (!ioDepositApprovalInfo.UpdateAction(sql, da))
-                                        throw new Exception();
-                                }
-                            }
-
                             if (depositDetail.Editted)
                             {
                                 if (!ioDepositDataDetail.UpdateAction("", depositDataDetail))
+                                {
                                     throw new Exception();
+                                }
                             }
 
                         }
                     }
                 }
-                
-                ioDepositData.commit();
+
                 ioDepositDataDetail.commit();
-                ioDepositApprovalInfo.commit();
                 ioRequestHead.commit();
 
+                CommonMotions.EntryEndMessage("入金確認");
                 // グリッド表示
                 DisplayData();
             }
             catch (Exception ex)
             {
-                ioDepositData.rollback();
                 ioDepositDataDetail.rollback();
-                ioDepositApprovalInfo.rollback();
                 ioRequestHead.rollback();
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
@@ -1221,26 +617,22 @@
                 dgvMaster.CellEnter += DataGridView_CellEnter;
                 dgvMaster.CellValueChanged += DataGridView_CellValueChanged;
 
-                ioDepositData.close();
                 ioDepositDataDetail.close();
-                ioDepositApprovalInfo.close();
                 ioRequestHead.close();
 
-                ioDepositData = null;
                 ioDepositDataDetail = null;
-                ioDepositApprovalInfo = null;
                 ioRequestHead = null;
             }
         }
         #endregion
 
-        #region セルダブルクリックイベント
+        #region セルダブルクリック
         /// <summary>
-        /// セルダブルクリックイベント
+        /// セルダブルクリック
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
-        private void DataGridView_DoubleCellClick(object sender, DataGridViewCellEventArgs e)
+        private void  DataGridView_DoubleCellClick(object sender, DataGridViewCellEventArgs e)
         {
             dgvMaster.CellDoubleClick -= DataGridView_DoubleCellClick;
             dgvMaster.CellEnter -= DataGridView_CellEnter;
@@ -1252,19 +644,27 @@
                 {
                     return;
                 }
+                
+                // 入金入力画面の表示
+                if (e.ColumnIndex == (int)DispColumn.DepositAmountBill
+                    || e.ColumnIndex == (int)DispColumn.DepositAmountCash)
+                {
+                    if (CommonMotions.LoginUserData.DepartmentCode == 4 ||
+                        CommonMotions.LoginUserData.SecCode == 2 ||
+                        m_UserInfo.m_Type == CommonDefine.SecurityRankPos.SpecialAuthority)
+                    {
+                        var cells = dgvMaster.Rows[e.RowIndex].Cells;
+                        var orderersDiv = CommonMotions.cnvInt(cells[(int)DispColumn.OrderersDivision].Value);
+                        var orderersCode = CommonMotions.cnvInt(cells[(int)DispColumn.OrderersCode].Value);
+                        string reqDate = CommonMotions.cnvInt(cells[(int)DispColumn.RequestMonth].Value).ToString();
 
+                        EntryDeposit(orderersDiv, orderersCode, reqDate);
+                        return;
+                    }
+                }
+
                 // 承認セル以外は無視
-                if ((e.ColumnIndex == (int)DispColumn.PersonName) ||
-                    (e.ColumnIndex == (int)DispColumn.ApprovalName_1) ||
-                    (e.ColumnIndex == (int)DispColumn.ApprovalName_2) ||
-                    (e.ColumnIndex == (int)DispColumn.ApprovalName_3) ||
-                    (e.ColumnIndex == (int)DispColumn.ApprovalName_4) ||
-                    (e.ColumnIndex == (int)DispColumn.ApprovalName_5) ||
-                    (e.ColumnIndex == (int)DispColumn.ApprovalName_6) ||
-                    (e.ColumnIndex == (int)DispColumn.ApprovalName_7) ||
-                    (e.ColumnIndex == (int)DispColumn.ApprovalName_8) ||
-                    (e.ColumnIndex == (int)DispColumn.ApprovalName_9) ||
-                    (e.ColumnIndex == (int)DispColumn.ApprovalName_10))
+                if (e.ColumnIndex == (int)DispColumn.PersonName)
                 {
                     // エラー表示解除
                     UnsetErrorDisp();
@@ -1271,121 +671,53 @@
 
                     var cells = dgvMaster.Rows[e.RowIndex].Cells;
                     // 自分以外のセルは編集不可
-                    if (CommonMotions.cnvInt(dgvMaster[e.ColumnIndex + 1, e.RowIndex].Value) != CommonMotions.LoginUserData.PersonCode)
+                    if (CommonMotions.cnvInt(dgvMaster[(int)DispColumn.ConfirmationPersonCode, e.RowIndex].Value) != CommonMotions.LoginUserData.PersonCode)
+                    {
                         return;
+                    }
 
                     var depositOrderer = FindDepositOrderer(e.RowIndex);
-                    var depositDetail = depositOrderer.FindDepositDetailByLineCount(CommonMotions.cnvInt(cells[(int)DispColumn.LineCount].Value));
+                    var depositDetail = depositOrderer.FindDepositDetailByRequestNo(CommonMotions.cnvInt(cells[(int)DispColumn.RequestNo].Value));
                     // 担当者承認
                     if (e.ColumnIndex == (int)DispColumn.PersonName)
                     {
-                        // 上位が承認済みの場合は編集不可
-                        if (!depositDetail.IsApprovedByApprover)
+                        // 担当者承認金額チェック
+                        if (CheckStaffApproval(e.RowIndex, depositDetail) == false)
                         {
-                            // 担当者承認金額チェック
-                            if (CheckStaffApproval(e.RowIndex, depositDetail) == false)
-                            {
-                                return;
-                            }
-
-                            // 未承認→承認の場合
-                            if (depositDetail.IsApprovedByStaff == false)
-                            {
-                                depositDetail.ApprovalDate = DateTime.Now.ToString("yyyy-MM-dd");
-                            }
-                            else
-                            {
-                                depositDetail.ApprovalDate = "";
-                            }
-
-                            depositDetail.Editted = true;
-                        }
-                    }
-                    else
-                    {
-                        if (depositDetail.DepositApprovals.Count == 0)
                             return;
-
-                        // 担当者承認されていない場合はエラー
-                        if (depositDetail.IsApprovedByStaff == false)
-                        {
-                            MessageBox.Show("担当者の承認が実施されていないため、承認できません。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                            return;
                         }
 
-                        // 承認者に含まれるか確認
-                        var approvalIndex = depositDetail.DepositApprovals.FindIndex(a => a.ApprovalPerson == CommonMotions.LoginUserData.PersonCode);
-                        if (approvalIndex < 0)
-                            return;
-
-                        // 最終承認以外の場合
-                        if (approvalIndex != depositDetail.DepositApprovals.Count - 1)
+                        // 未承認→承認の場合
+                        if (CommonMotions.cnvInt(dgvMaster[(int)DispColumn.ConfirmationEndFlg, e.RowIndex].Value) != 1)
                         {
-                            // 下位の承認者が承認済みかつ上位の承認者が未承認
-                            var lower = true;
-                            var i = 0;
-                            var enableEdit = true;
-                            foreach (var a in depositDetail.DepositApprovals)
+                            if (MessageBox.Show("担当者確認を登録しますか？", "担当者確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
                             {
-                                if (a.ApprovalPerson == CommonMotions.LoginUserData.PersonCode)
-                                {
-                                    lower = false;
-                                    approvalIndex = i;
-                                }
-                                else
-                                {
-                                    if (lower)
-                                    {
-                                        if (a.ApprovalDate == "")
-                                        {
-                                            enableEdit = false;
-                                            break;
-                                        }
-                                    }
-                                    else
-                                    {
-                                        if (a.ApprovalDate != "")
-                                        {
-                                            enableEdit = false;
-                                            break;
-                                        }
-                                    }
-                                }
-                                i++;
-                            }
-                            if (!enableEdit)
-                            {
-                                if (approvalIndex != 0 && depositDetail.DepositApprovals[approvalIndex - 1].ApprovalDate == "")
-                                {
-                                    MessageBox.Show("直前の承認が実施されていないため、承認できません。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                                }
                                 return;
                             }
+
+                            depositDetail.ConfirmationDate = DateTime.Now.ToString("yyyy/MM/dd");
+                            depositDetail.ConfirmationEndFlg = 1;
+                            depositDetail.ConfirmationPersonCode = CommonMotions.LoginUserData.PersonCode;
+                            depositDetail.Editted = true;
+                            var headerIndex = DetectHeaderIndex(e.RowIndex);
+                            UpdateDepositOrdererRows(depositOrderer, headerIndex);
                         }
-                        var approval = depositDetail.DepositApprovals.ElementAt(approvalIndex);
-                        // 未承認 → 承認
-                        if (approval.ApprovalDate == "")
+                        else if (CommonMotions.cnvInt(dgvMaster[(int)DispColumn.ConfirmationEndFlg, e.RowIndex].Value) == 1)
                         {
-                            if (CalculateDifference(depositOrderer) != 0)
+                            if (MessageBox.Show("担当者確認を外しますか？", "担当者確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
                             {
-                                // 差額の確認
-                                if (MessageBox.Show("入金金額と調整金額が一致しませんが承認してよろしいですか？。", "確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
-                                    return;
+                                return;
                             }
-                            approval.ApprovalDate = DateTime.Now.ToString("yyyy-MM-dd");
-                        }
-                        // 承認 → 未承認
-                        else
-                        {
-                            approval.ApprovalDate = "";
-                        }
-                        approval.Editted = true;
+                            depositDetail.ConfirmationDate = "";
+                            depositDetail.ConfirmationEndFlg = 0;
+                            depositDetail.ConfirmationPersonCode = 0;
+                            depositDetail.Editted = true;
+                            var headerIndex = DetectHeaderIndex(e.RowIndex);
+                            UpdateDepositOrdererRows(depositOrderer, headerIndex);
+                        }                     
                     }
-                    var headerIndex = DetectHeaderIndex(e.RowIndex);
-                    UpdateDepositOrdererRows(depositOrderer, headerIndex);
-                    isDirty = true;
                 }
-            }
+            }            
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
@@ -1399,60 +731,50 @@
         }
         #endregion
 
+        #region 入金入力画面表示
+        /// <summary>
+        /// 入金入力画面表示
+        /// </summary>
+        /// <returns></returns>
+        private void EntryDeposit(int OrderesDivision, int OrderesCode, string TargetMonth)
+        {
+            DepositData DepositData = new DepositData();
+            FrmEntryDeposit frmEntryDeposit = new FrmEntryDeposit();
+            DepositData.OrderersDivision = OrderesDivision;
+            DepositData.OrderersCode = OrderesCode;
+            DepositData.TargetDate = TargetMonth;
+            frmEntryDeposit.depositdata = DepositData;
+
+            frmEntryDeposit.ShowDialog();
+            DisplayData();
+        }
+        #endregion
+
         #region 担当者承認チェック
         private bool CheckStaffApproval(int trow, DepositDetail depositDetail)
         {
-            if (depositDetail.IsApprovedByStaff == true)
+            if (depositDetail.ConfirmationEndFlg == 1)
             {
                 return true;
             }
 
-            List<int> lst = new List<int>();
-
-            // 入金金額がマイナス
-            if (depositDetail.DepositAmount < 0)
-            {
-                lst.Add((int)DispColumn.DepositAmount);
+            // 未入金がある
+            if (depositDetail.DifferenceAmount < 0)
+            {                
+                if (MessageBox.Show("未入金が存在しますがこのまま進めてよろしいですか？", "金額確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
+                {
+                    return false;
+                }
             }
 
-            // 値引金額がマイナス
-            if (depositDetail.DiscountAmount < 0)
+            // 繰越金が存在する
+            if (depositDetail.DifferenceAmount > 0)
             {
-                lst.Add((int)DispColumn.DiscountAmount);
-            }
-
-            // 協力金がマイナス
-            if (depositDetail.CnstrPrice < 0)
-            {
-                lst.Add((int)DispColumn.CnstrPrice);
-            }
-
-            // 手数料がマイナス
-            if (depositDetail.Fees < 0)
-            {
-                lst.Add((int)DispColumn.Fees);
-            }
-
-            // その他調整額がマイナス
-            if (depositDetail.OtherAdjustments < 0)
-            {
-                lst.Add((int)DispColumn.OtherAdjustments);
-            }
-
-            // 次回繰越がマイナス
-            if (depositDetail.CarryAmount < 0)
-            {
-                lst.Add((int)DispColumn.CarryAmount);
-            }
-
-            if (lst.Count > 0)
-            {
-                if (MessageBox.Show("マイナスの金額が存在しますがこのまま進めてよろしいですか？。", "金額確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
+                if (MessageBox.Show("繰越金が存在しますがこのまま進めてよろしいですか？", "金額確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
                 {
                     return false;
                 }
             }
-
             return true;
         }
         #endregion
@@ -1479,6 +801,54 @@
         }
         #endregion
 
+        #region セル編集開始
+        /// <summary>
+        /// セル編集開始
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgvMaster_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
+        {
+            dgvMaster.CellBeginEdit -= dgvMaster_CellBeginEdit;
+            dgvMaster.CellValueChanged -= DataGridView_CellValueChanged;
+
+
+            int tcol = e.ColumnIndex;
+            int trow = e.RowIndex;
+
+            if ((tcol == (int)DispColumn.DepositAmount) ||
+                (tcol == (int)DispColumn.DiscountAmount) ||
+                (tcol == (int)DispColumn.CnstrPrice) ||
+                (tcol == (int)DispColumn.Fees) ||
+                (tcol == (int)DispColumn.OtherAdjustments) ||
+                (tcol == (int)DispColumn.DifferentAmount))
+            {
+                string val;
+
+                // セルに値が格納されている場合
+                if (dgvMaster[tcol, trow].Value != null)
+                {
+                    // カンマ区切りを解除
+                    val = dgvMaster[tcol, trow].Value.ToString().Replace(",", string.Empty);
+                }
+                else
+                {
+                    // 0を入力
+                    val = "0";
+                }
+                dgvMaster[tcol, trow].Value = val;
+
+                // 文字色は一律黒
+                dgvMaster[tcol, trow].Style.ForeColor = Color.Black;
+
+            }
+            dgvMaster.CellBeginEdit += dgvMaster_CellBeginEdit;
+            dgvMaster.CellValueChanged += DataGridView_CellValueChanged;
+
+
+        }
+        #endregion
+
         #region セル編集完了時のイベント
         /// <summary>
         /// セル編集完了時のイベント
@@ -1492,84 +862,51 @@
             dgvMaster.CellValueChanged -= DataGridView_CellValueChanged;
             try
             {
+
+                // 行が追加されたときではなく、セルの内容が変更されているときだけ処理を実行する。
+                if (e.RowIndex == dgvMaster.NewRowIndex ||
+                    !dgvMaster.IsCurrentCellDirty)
+                {
+                    return;
+                }
+
                 if (dgvMaster.RowCount == 0)
+                {
                     return;
+                }
+
                 var cells = dgvMaster.Rows[e.RowIndex].Cells;
                 var cellValue = CommonMotions.cnvString(cells[e.ColumnIndex].Value);
+
                 if (oldCellValue == cellValue)
-                    return;
+                { 
+                    return; 
+                }
+
                 var key = GetOrderersKey(e.RowIndex);
                 var depositOrderer = FindDepositOrderer(key.OrderersDivision, key.OrderersCode);
 
                 if ((e.ColumnIndex == (int)DispColumn.DepositAmount) ||
-                    (e.ColumnIndex == (int)DispColumn.DepositAmountCash) ||
-                    (e.ColumnIndex == (int)DispColumn.DepositAmountBill) ||
                     (e.ColumnIndex == (int)DispColumn.DiscountAmount) ||
                     (e.ColumnIndex == (int)DispColumn.CnstrPrice) ||
                     (e.ColumnIndex == (int)DispColumn.Fees) ||
                     (e.ColumnIndex == (int)DispColumn.OtherAdjustments) ||
-                    (e.ColumnIndex == (int)DispColumn.CarryAmount))
+                    (e.ColumnIndex == (int)DispColumn.DifferentAmount))
                 {
                     long val = long.Parse(cellValue);
                     SetPrice(cells, e.ColumnIndex, val);
                 }
 
-                // 入金情報を編集
-                if (e.ColumnIndex == (int)DispColumn.DepositAmountCash
-                    || e.ColumnIndex == (int)DispColumn.DepositAmountBill
-                    || e.ColumnIndex == (int)DispColumn.DepositDate)
-                {
-
-                    var deposit = depositOrderer.FindDepositBySeqNo(CommonMotions.cnvInt(cells[(int)DispColumn.SeqNo].Value));
-                    if (deposit == null)
-                    {
-                        deposit = new Deposit()
-                        {
-                            Added = true,
-                            SeqNo = depositOrderer.GetNextSeqNo(),
-                        };
-                        depositOrderer.Deposits.Add(deposit);
-                    }
-                    switch (e.ColumnIndex)
-                    {
-                        case (int)DispColumn.DepositAmountCash:
-                            if (cellValue != "")
-                                deposit.DepositAmountCash = CommonMotions.cnvLong(cellValue);
-                            else
-                                deposit.DepositAmountCash = null;
-                            break;
-                        case (int)DispColumn.DepositAmountBill:
-                            if (cellValue != "")
-                                deposit.DepositAmountBill = CommonMotions.cnvLong(cellValue);
-                            else
-                                deposit.DepositAmountBill = null;
-                            break;
-                        case (int)DispColumn.DepositDate:
-                            DateTime dt;
-                            if (DateTime.TryParse(cellValue, out dt))
-                                deposit.DepositDate = dt.ToString("yyyy/MM/dd");
-                            else
-                                deposit.DepositDate = "";
-                            break;
-                    }
-                    if (string.IsNullOrEmpty(deposit.DepositDate)
-                        && !deposit.DepositAmountCash.HasValue
-                        && !deposit.DepositAmountBill.HasValue)
-                        deposit.Deleted = true;
-                    deposit.Editted = true;
-                    if (deposit.CanRemove)
-                        depositOrderer.Deposits.Remove(deposit);
-                }
                 // 入金明細金額を編集
-                else if (e.ColumnIndex == (int)DispColumn.DepositAmount
+                if (e.ColumnIndex == (int)DispColumn.DepositAmount
                     || e.ColumnIndex == (int)DispColumn.DiscountAmount
                     || e.ColumnIndex == (int)DispColumn.CnstrPrice
                     || e.ColumnIndex == (int)DispColumn.Fees
                     || e.ColumnIndex == (int)DispColumn.OtherAdjustments
-                    || e.ColumnIndex == (int)DispColumn.CarryAmount)
+                    || e.ColumnIndex == (int)DispColumn.DifferentAmount)
                 {
-                    var depositDetail = depositOrderer.FindDepositDetailByLineCount(CommonMotions.cnvInt(cells[(int)DispColumn.LineCount].Value));
                     long amount = CommonMotions.cnvLong(cellValue);
+                    var depositDetail = depositOrderer.FindDepositDetailByRequestNo(CommonMotions.cnvInt(cells[(int)DispColumn.RequestNo].Value));
                     bool bUpdateCarryAmount = false;
                     switch (e.ColumnIndex)
                     {
@@ -1593,8 +930,8 @@
                             depositDetail.OtherAdjustments = amount;
                             bUpdateCarryAmount = true;
                             break;
-                        case (int)DispColumn.CarryAmount:
-                            depositDetail.CarryAmount = amount;
+                        case (int)DispColumn.DifferentAmount:
+                            depositDetail.DifferenceAmount = amount;
                             break;
                     }
                     long RequestAmount = depositDetail.BillPrice + depositDetail.TaxPrice;
@@ -1602,196 +939,30 @@
                     // 繰越金以外を修正した場合、
                     if (bUpdateCarryAmount == true)
                     {
-                        long DepositAmount = depositDetail.DepositAmount + depositDetail.DiscountAmount + depositDetail.CnstrPrice + depositDetail.Fees + depositDetail.OtherAdjustments;
-                        depositDetail.CarryAmount = RequestAmount - DepositAmount;
+                        long DepositAmount = depositDetail.DepositAmount + depositDetail.DiscountAmount
+                            + depositDetail.CnstrPrice + depositDetail.Fees + depositDetail.OtherAdjustments;
+                        depositDetail.DifferenceAmount = DepositAmount - RequestAmount;
                     }
-                    else
-                    {
-                        long AdjustmentAmount =  depositDetail.DiscountAmount + depositDetail.CnstrPrice + depositDetail.Fees + depositDetail.OtherAdjustments + depositDetail.CarryAmount;
-                        // 繰越金を修正した場合は、入金金額で調整
-                        depositDetail.DepositAmount = RequestAmount - AdjustmentAmount;
-                    }
 
                     depositDetail.Editted = true;
                 }
-                var headerIndex = DetectHeaderIndex(e.RowIndex);
-                UpdateDepositOrdererRows(depositOrderer, headerIndex);
-                dgvMaster.CurrentCell = dgvMaster[e.ColumnIndex, e.RowIndex];
-                isDirty = true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                dgvMaster.CellDoubleClick += DataGridView_DoubleCellClick;
-                dgvMaster.CellEnter += DataGridView_CellEnter;
-                dgvMaster.CellValueChanged += DataGridView_CellValueChanged;
-            }
-        }
-        #endregion
-
-        #region 発注者追加ダイアログクローズ通知
-        /// <summary>
-        /// 発注者追加ダイアログクローズ通知
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void NotifyAddCmp_FormClosed(object sender, FormClosedEventArgs e)
-        {
-            try
-            {
-                dgvMaster.CellDoubleClick -= DataGridView_DoubleCellClick;
-                dgvMaster.CellEnter -= DataGridView_CellEnter;
-                dgvMaster.CellValueChanged -= DataGridView_CellValueChanged;
-                var f = (FrmSelectRequest)sender;
-                // 発注者追加あり
-                if (f.m_AddCmpData.isEdit)
+                else if (e.ColumnIndex == (int)DispColumn.NoteDD)
                 {
-                    foreach (var h in depositOrderers)
+                    var depositDetail = depositOrderer.FindDepositDetailByRequestNo(CommonMotions.cnvInt(cells[(int)DispColumn.RequestNo].Value));
+                    switch (e.ColumnIndex)
                     {
-                        if (h.Deleted)
-                            continue;
-                        // 表示済みの発注者の場合は何もしない
-                        if (h.OrderersDivision == f.m_AddCmpData.OrderersDivision
-                            && h.OrderersCode == f.m_AddCmpData.OrderersCode)
-                        {
-                            return;
-                        }
-                    }
-                    // データに追加
-                    var depositOrderer = new DepositOrderer();
-                    depositOrderer.Added = true;
-                    if (depositOrderers.Count == 0)
-                        depositOrderer.No = 1;
-                    else
-                        depositOrderer.No = depositOrderers.Last().No + 1;
-                    depositOrderer.OrderersDivision = f.m_AddCmpData.OrderersDivision;
-                    depositOrderer.OrderersCode = f.m_AddCmpData.OrderersCode;
-                    depositOrderer.OrderersName = f.m_AddCmpData.OrderersName;
-                    depositOrderers.Add(depositOrderer);
-                    AddDepositOrdererRows(depositOrderer, dgvMaster.Rows.Count);
-                    isDirty = true;
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                dgvMaster.CellDoubleClick += DataGridView_DoubleCellClick;
-                dgvMaster.CellEnter += DataGridView_CellEnter;
-                dgvMaster.CellValueChanged += DataGridView_CellValueChanged;
-            }
-        }
-        #endregion
-
-        #region 現場登録ダイアログクローズ通知
-        /// <summary>
-        /// 現場登録ダイアログクローズ通知
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void NotifyAddFld_FormClosed(object sender, FormClosedEventArgs e)
-        {
-            try
-            {
-                dgvMaster.CellDoubleClick -= DataGridView_DoubleCellClick;
-                dgvMaster.CellEnter -= DataGridView_CellEnter;
-                dgvMaster.CellValueChanged -= DataGridView_CellValueChanged;
-                var f = (FrmSelectRegField)sender;
-                if (f.EndButton != DialogResult.OK)
-                    return;
-                var headerIndex = DetectHeaderIndex(dgvMaster.CurrentRow.Index);
-                var depositOrderer = FindDepositOrderer(dgvMaster.CurrentRow.Index);
-                foreach (var item in f.m_lstMyField)
-                {
-                    if (item.ConstructionName == "不明" && item.ConstructionName_Raw == "")
-                        continue;
-                    // 担当データのみを対象とする
-                    if (item.PersonCode != CommonMotions.LoginUserData.PersonCode)
-                        continue;
-
-                    var depositDetail = depositOrderer.DepositDetails.Find(d => d.RequestNo == item.RequestNo);
-                    // 追加・更新
-                    if (!item.DeleteFlg)
-                    {
-                        // 追加
-                        if (depositDetail == null)
-                        {
-                            depositDetail = new DepositDetail()
-                            {
-                                Added = true,
-                                Visible = true,
-                                SeqNo = 1,
-                                LineCount = depositOrderer.GetNextLineCount(),
-                                RequestNo = item.RequestNo,
-                                OrderNo = item.OrderNo,
-                                ConstructionName = item.ConstructionName,
-                                ConstructionNameRow = item.ConstructionName_Raw,
-                                DepartmentCode = item.DepartmentCode,
-                                BillCreationDate = item.BillCreationDate,
-                                BillPrice = item.BillPrice,
-                                TaxPrice = item.TaxPrice,
-                                DepositAmount = item.DepositAmount,
-                                ApprovalPersonCode = item.PersonCode,
-                                ApprovalPersonName = CommonMotions.LoginUserData.SealPrintName,
-                                ApprovalDate = "",
-                                CarryAmount = ( item.BillPrice + item.TaxPrice ) - item.DepositAmount,
-                            };
-                            var defaultApproves = new List<ApproveData>();
-                            if (!SelectDefaultApprove(depositDetail.DepartmentCode, ref defaultApproves))
-                                return;
-                            foreach (var approve in defaultApproves)
-                            {
-                                var da = new DepositApproval()
-                                {
-                                    Added = true,
-                                    ApprovalPersonName = approve.Value,
-                                    ApprovalPerson = approve.Key,
-                                    ApprovalDate = "",
-                                    ApprovalNo = approve.Order,
-                                    ApprovalAuthority = approve.ApprovalAuthority,
-                                };
-                                depositDetail.DepositApprovals.Add(da);
-                            }
-                            depositOrderer.DepositDetails.Add(depositDetail);
-                        }
-                        // 更新
-                        else
-                        {
-                            depositDetail.Editted = true;
-                            depositDetail.BillPrice = item.BillPrice;
-                            depositDetail.TaxPrice = item.TaxPrice;
-                            depositDetail.DepositAmount = item.DepositAmount;
-                            depositDetail.DiscountAmount = 0;
-                            depositDetail.CnstrPrice = 0;
-                            depositDetail.Fees = 0;
-                            depositDetail.OtherAdjustments = 0;
-                            depositDetail.CarryAmount = (item.BillPrice + item.TaxPrice) - item.DepositAmount;
-                        }
-                    }
-                    // 削除
-                    else
-                    {
-                        if (depositDetail != null)
-                        {
-                            if (depositDetail.Added)
-                            {
-                                // 未存在のデータは削除
-                                depositOrderer.DepositDetails.Remove(depositDetail);
-                            }
+                        case (int)DispColumn.NoteDD:
+                            if (cellValue != "")
+                                depositDetail.Note = CommonMotions.cnvString(cellValue);
                             else
-                            {
-                                // 存在するデータは削除フラグを立てる
-                                depositDetail.Deleted = true;
-                            }
-                        }
+                                depositDetail.Note = "";
+                            break;
                     }
+                    depositDetail.Editted = true;
                 }
+                var headerIndex = DetectHeaderIndex(e.RowIndex);
                 UpdateDepositOrdererRows(depositOrderer, headerIndex);
+                dgvMaster.CurrentCell = dgvMaster[e.ColumnIndex, e.RowIndex];
                 isDirty = true;
             }
             catch (Exception ex)
@@ -1825,136 +996,88 @@
         /// <returns></returns>
         private List<DepositOrderer> SelectDepositOrderers()
         {
-            var depositData = SelectDepositData().OfType<object[]>()
-                .GroupBy(d =>
-                {
-                    return string.Format("{0} {1}",
-                        CommonMotions.cnvInt(d[(int)ClickGetData.OrderersDivision]),
-                        CommonMotions.cnvInt(d[(int)ClickGetData.OrderersCode]));
-                });
+            var invoiceData = SelectInvoiceData().OfType<object[]>();
             var data = new List<DepositOrderer>();
             var no = 1;
-            foreach (var deposits in depositData)
+
+            foreach (var invoice in invoiceData)
             {
-                var orderer = deposits.First();
                 // 請求先情報
                 var o = new DepositOrderer();
-                o.OrderersDivision = CommonMotions.cnvInt(orderer[(int)ClickGetData.OrderersDivision]);
-                o.OrderersCode = CommonMotions.cnvInt(orderer[(int)ClickGetData.OrderersCode]);
-                o.OrderersName = ToOrdererName(CommonMotions.cnvInt(orderer[(int)ClickGetData.CorporateStatusPoint]),
-                                        CommonMotions.cnvString(orderer[(int)ClickGetData.CorporateStatusName]),
-                                        CommonMotions.cnvString(orderer[(int)ClickGetData.OrderersName1]),
-                                        CommonMotions.cnvString(orderer[(int)ClickGetData.OrderersName2]));
+                o.KB = CommonMotions.cnvInt(invoice[(int)GetDataFirst.KB]);
+                o.RequestMonth = m_Select_TargetDate;
+                o.OrderersCode = CommonMotions.cnvInt(invoice[(int)GetDataFirst.OrderersCode]);
+                o.OrderersDivision = CommonMotions.cnvInt(invoice[(int)GetDataFirst.OrderersDivision]);
+                o.OrderersName = CommonMotions.cnvString(invoice[(int)GetDataFirst.OrderersName]);
+
                 // 表示権限がない場合は次へ
                 if (!CheckOrdererPermission(o))
                 {
                     continue;
                 }
-                o.No = no;
-                no++;
+
+                if (o.KB == 1)
+                {
+                    o.No = 0;
+                }
+                else
+                {
+                    o.No = no;
+                    no++;
+                }
+
                 o.Deposits = new List<Deposit>();
                 o.DepositDetails = new List<DepositDetail>();
+
                 // 入金データ情報
-                foreach (var deposit in deposits)
-                {
-                    var d = new Deposit();
-                    d.SeqNo = CommonMotions.cnvInt(deposit[(int)ClickGetData.SeqNo]);
-                    d.DepositDate = CommonMotions.cnvString(deposit[(int)ClickGetData.DepositDate]);
-                    d.DepositAmountCash = CommonMotions.cnvLong(deposit[(int)ClickGetData.DepositAmountCash]);
-                    d.DepositAmountBill = CommonMotions.cnvLong(deposit[(int)ClickGetData.DepositAmountBill]);
-                    o.Deposits.Add(d);
-                }
+
+                var d = new Deposit();
+                d.SeqNo = CommonMotions.cnvInt(invoice[(int)GetDataFirst.SeqNoD]);
+                d.DepositDate = CommonMotions.cnvString(invoice[(int)GetDataFirst.DepositDate]);
+                d.DepositAmountCash = CommonMotions.cnvLong(invoice[(int)GetDataFirst.DepositAmountCash]);
+                d.DepositAmountBill = CommonMotions.cnvLong(invoice[(int)GetDataFirst.DepositAmountBill]);
+                d.Note = CommonMotions.cnvString(invoice[(int)GetDataFirst.NoteD]);
+                o.Deposits.Add(d);
+
+
                 // 入金明細データ
-                var details = SelectDepositDetailData(o.OrderersDivision, o.OrderersCode, m_Select_TargetDate).OfType<object[]>();
-                foreach (var detail in details)
+
+                var dd = new DepositDetail();
+                dd.RequestNo = CommonMotions.cnvInt(invoice[(int)GetDataFirst.RequestNo]);
+                dd.OrderNo = CommonMotions.cnvInt(invoice[(int)GetDataFirst.OrderNo]);
+                if (dd.OrderNo > 1)
                 {
-                    var dd = new DepositDetail();
-                    dd.SeqNo = CommonMotions.cnvInt(detail[(int)ClickGetData.SeqNo]);
-                    dd.LineCount = CommonMotions.cnvInt(detail[(int)ClickGetData.LineCount]);
-                    dd.RequestNo = CommonMotions.cnvInt(detail[(int)ClickGetData.RequestNo]);
-                    dd.OrderNo = CommonMotions.cnvInt(detail[(int)ClickGetData.OrderNo]);
-                    dd.ConstructionNameRow = CommonMotions.cnvString(detail[(int)ClickGetData.DetailString]);
-                    dd.ConstructionName = dd.ConstructionNameRow;
-                    if (dd.OrderNo > 1)
-                    {
-                        dd.ConstructionName += "（" + dd.OrderNo + "回目）";
-                    }
-                    dd.BillCreationDate = CommonMotions.cnvString(detail[(int)ClickGetData.BillCreationDate]);
-                    dd.BillPrice = CommonMotions.cnvLong(detail[(int)ClickGetData.BillPrice]);
-                    dd.TaxPrice = CommonMotions.cnvLong(detail[(int)ClickGetData.TaxPrice]);
-                    dd.DepositAmount = CommonMotions.cnvLong(detail[(int)ClickGetData.DepositAmount]);
-                    dd.DiscountAmount = CommonMotions.cnvLong(detail[(int)ClickGetData.DiscountAmount]);
-                    dd.CnstrPrice = CommonMotions.cnvLong(detail[(int)ClickGetData.CnstrPrice]);
-                    dd.Fees = CommonMotions.cnvLong(detail[(int)ClickGetData.Fees]);
-                    dd.OtherAdjustments = CommonMotions.cnvLong(detail[(int)ClickGetData.OtherAdjustments]);
-                    dd.CarryAmount = CommonMotions.cnvLong(detail[(int)ClickGetData.CarryAmount]);
-                    dd.ApprovalPersonCode = CommonMotions.cnvInt(detail[(int)ClickGetData.ApprovalPersonCode]);
-                    dd.ApprovalEndFlg = CommonMotions.cnvInt(detail[(int)ClickGetData.ApprovalEndFlg]);
-                    dd.ApprovalPersonName = CommonMotions.cnvString(detail[(int)ClickGetData.PersonName]);
-                    dd.DepartmentCode = CommonMotions.cnvInt(detail[(int)ClickGetData.DepartmentCode]);
-                    dd.ConstructionCode = CommonMotions.cnvInt(detail[(int)ClickGetData.ConstructionCode]);
-                    dd.ConstructionPersonCode = CommonMotions.cnvInt(detail[(int)ClickGetData.ConstructionPersonCode]);
-                    dd.ConstrSubPersonCode = CommonMotions.cnvInt(detail[(int)ClickGetData.ConstrSubPersonCode]);
-                    dd.ConstructionInstructor = CommonMotions.cnvInt(detail[(int)ClickGetData.ConstructionInstructor]);
-                    dd.DepositApprovals = new List<DepositApproval>();
-                    dd.Visible = CheckPermission(dd.DepartmentCode, dd.ConstructionPersonCode, dd.ConstrSubPersonCode, dd.ConstructionInstructor);
-                    dd.ApprovalDate = "";
-                    if (CommonMotions.cnvString(detail[(int)ClickGetData.ApprovalDate]) != "0001-01-01")
-                        dd.ApprovalDate = CommonMotions.cnvString(detail[(int)ClickGetData.ApprovalDate]);
-                    // 担当者承認済みの場合
-                    if (dd.IsApprovedByStaff)
-                    {
-                        var depositApprovals = new List<DepositApprovalInfo>();
-                        if (!SelectApprove(o.OrderersDivision, o.OrderersCode, dd.SeqNo, dd.LineCount, ref depositApprovals))
-                            return null;
-                        var detectApproval = false;
-                        var detectNonApproval = false;
-                        var upperApprovalInUser = false;
-                        foreach (var appInfo in depositApprovals)
-                        {
-                            var da = new DepositApproval()
-                            {
-                                ApprovalNo = appInfo.ApprovalNo,
-                                ApprovalPersonName = appInfo.ApprovalPersonName,
-                                ApprovalPerson = appInfo.ApprovalPerson,
-                                ApprovalAuthority = appInfo.ApprovalAuthority,
-                                ApprovalDate = "",
-                            };
-                            if (appInfo.ApprovalDate != DateTime.MinValue)
-                                da.ApprovalDate = appInfo.ApprovalDate.ToString("yyyy-MM-dd");
-                            dd.DepositApprovals.Add(da);
-                        }
-                        // 承認状態を設定
-                        if (!detectApproval)
-                            dd.Status = ApprovalStatus.InCharge;
-                        else if (detectNonApproval)
-                            dd.Status = ApprovalStatus.InApproval;
-                        else
-                            dd.Status = ApprovalStatus.Approved;
-                        dd.UpperApprovalInUser = upperApprovalInUser;
-                    }
-                    // 担当者未承認
-                    else
-                    {
-                        var defaultApproves = new List<ApproveData>();
-                        if (!SelectDefaultApprove(dd.DepartmentCode, ref defaultApproves))
-                            return null;
-                        foreach (var approve in defaultApproves)
-                        {
-                            var da = new DepositApproval()
-                            {
-                                Added = true,
-                                ApprovalPersonName = approve.Value,
-                                ApprovalPerson = approve.Key,
-                                ApprovalDate = "",
-                                ApprovalNo = approve.Order,
-                                ApprovalAuthority = approve.ApprovalAuthority,
-                            };
-                            dd.DepositApprovals.Add(da);
-                        }
-                    }
-                    o.DepositDetails.Add(dd);
+                    dd.ConstructionName += "（" + dd.OrderNo + "回目）";
                 }
+                dd.ConstructionName = CommonMotions.cnvString(invoice[(int)GetDataFirst.ConstructionName]);
+                dd.BillCreationDate = CommonMotions.cnvString(invoice[(int)GetDataFirst.BillCreationDate]);
+                dd.BillPrice = CommonMotions.cnvLong(invoice[(int)GetDataFirst.BillPrice]);
+                dd.TaxPrice = CommonMotions.cnvLong(invoice[(int)GetDataFirst.TaxPrice]);
+                dd.DepositAmount = CommonMotions.cnvLong(invoice[(int)GetDataFirst.DepositAmount]);
+                dd.DiscountAmount = CommonMotions.cnvLong(invoice[(int)GetDataFirst.DiscountAmount]);
+                dd.CnstrPrice = CommonMotions.cnvLong(invoice[(int)GetDataFirst.CnstrPrice]);
+                dd.Fees = CommonMotions.cnvLong(invoice[(int)GetDataFirst.Fees]);
+                dd.OtherAdjustments = CommonMotions.cnvLong(invoice[(int)GetDataFirst.OtherAdjustments]);
+                dd.DifferenceAmount = CommonMotions.cnvLong(invoice[(int)GetDataFirst.DifferentAmount]);
+                dd.ConfirmationPersonCode = CommonMotions.cnvInt(invoice[(int)GetDataFirst.ConfirmationPersonCode]);
+                dd.ConfirmationEndFlg = CommonMotions.cnvInt(invoice[(int)GetDataFirst.ConfirmationEndFlg]);
+                dd.Note = CommonMotions.cnvString(invoice[(int)GetDataFirst.NoteDD]);
+                dd.EntryDate = CommonMotions.cnvString(invoice[(int)GetDataFirst.EntryDate]);
+
+                dd.ConfirmationPersonName = CommonMotions.cnvString(invoice[(int)GetDataFirst.PersonName]);
+                dd.DepartmentCode = CommonMotions.cnvInt(invoice[(int)GetDataFirst.DepartmentCode]);
+                dd.ConstructionCode = CommonMotions.cnvInt(invoice[(int)GetDataFirst.ConstructionCode]);
+                dd.ConstructionPersonCode = CommonMotions.cnvInt(invoice[(int)GetDataFirst.ConstructionPersonCode]);
+                dd.ConstrSubPersonCode = CommonMotions.cnvInt(invoice[(int)GetDataFirst.ConstrSubPersonCode]);
+                dd.ConstructionInstructor = CommonMotions.cnvInt(invoice[(int)GetDataFirst.ConstructionInstructor]);
+
+                dd.Visible = CheckPermission(dd.DepartmentCode, dd.ConstructionPersonCode, dd.ConstrSubPersonCode, dd.ConstructionInstructor);
+                dd.ConfirmationDate = "";
+                if (CommonMotions.cnvString(invoice[(int)GetDataFirst.ConfirmationDate]) != "0001-01-01")
+                    dd.ConfirmationDate = CommonMotions.cnvString(invoice[(int)GetDataFirst.ConfirmationDate]);
+
+                o.DepositDetails.Add(dd);
+
                 data.Add(o);
             }
             return data;
@@ -1961,38 +1084,124 @@
         }
         #endregion
 
-        #region 入金データを取得する。
+        #region 請求書データを取得する。
         /// <summary>
-        /// 入金データを取得する。
+        /// 請求書データを取得する。
         /// </summary>
         /// <returns></returns>
-        private ArrayList SelectDepositData()
+        private ArrayList SelectInvoiceData()
         {
-            var depDb = new IODepositData();
+            var ivD = new IOInvoiceData();
 
             try
             {
                 var sql = new StringBuilder();
-                sql.Append("select ");
-                sql.Append("Dep.OrderersDivision, ");
-                sql.Append("Dep.OrderersCode, ");
-                sql.Append("Dep.TargetDate, ");
-                sql.Append("Dep.SeqNo, ");
-                sql.Append("DATE_FORMAT(Dep.DepositDate, '%Y/%m/%d') as DepositDate, ");
-                sql.Append("Dep.DepositAmountCash, ");
-                sql.Append("Dep.DepositAmountBill, ");
-                sql.Append("OdrM.CorporateStatusName, ");
-                sql.Append("OdrM.CorporateStatusPoint, ");
-                sql.Append("OdrM.OrderersName1, ");
-                sql.Append("OdrM.OrderersName2 ");
-                sql.Append("from DepositData Dep ");
-                sql.Append("left outer join OrderersMaster as OdrM ");
-                sql.Append("on OdrM. OrderCotegory = Dep.OrderersDivision and OdrM.OrderersCode = Dep.OrderersCode ");
-                sql.AppendFormat("where Dep.TargetDate = {0} ", m_Select_TargetDate);
-                sql.Append("order by Dep.OrderersDivision, Dep.OrderersCode, Dep.SeqNo ");
+                sql.Append(" ( ");
+                sql.Append("  SELECT ");
+                sql.Append("    DISTINCT CONCAT(O.ORDERERSNAME1, '　', O.ORDERERSNAME2) AS ORDERERSNAME ");
+                sql.Append("   , NULL AS REQUESTMONTH ");
+                sql.Append("   , NULL AS REQUESTNO ");
+                sql.Append("   , H.ORDERERSDIVISION ");
+                sql.Append("   , H.ORDERERSCODE ");
+                sql.Append("   , NULL AS CRETATEDATE ");
+                sql.Append("   , NULL AS REQCONSTRUCTIONCODE ");
+                sql.Append("   , NULL AS REQCONSTRUCTIONNAME ");
+                sql.Append("   , NULL AS REQUESTAMOUNT ");
+                sql.Append("   , NULL AS TAXAMOUNT ");
+                sql.Append("   , 1 AS KB ");
+                sql.Append("   , NULL AS SEQNOD ");
+                sql.Append("   , NULL AS DEPOSITDATE ");
+                sql.Append("   , NULL AS DEPOSITAMOUNTCASH ");
+                sql.Append("   , NULL AS DEPOSITAMOUNTBILL ");
+                sql.Append("   , NULL AS DEPOSITPERSONCODE ");
+                sql.Append("   , NULL AS NOTE ");
+                sql.Append("   , NULL AS ORDERNO ");
+                sql.Append("   , NULL AS DEPOSITAMOUNT ");
+                sql.Append("   , NULL AS DISCOUNTAMOUNT ");
+                sql.Append("   , NULL AS CNSTRPRICE ");
+                sql.Append("   , NULL AS FEES ");
+                sql.Append("   , NULL AS OTHERADJUSTMENTS ");
+                sql.Append("   , NULL AS DIFFERENCEAMOUNT ");
+                sql.Append("   , NULL AS CONFIRMATIONPERSONCODE ");
+                sql.Append("   , NULL AS CONFIRMATIONDATE ");
+                sql.Append("   , NULL AS CONFIRMATIONENDFLG ");
+                sql.Append("   , NULL AS NOTE ");
+                sql.Append("   , NULL AS ENTRYDATE ");
+                sql.Append("   , NULL AS CONSTRUCTIONPERSONCODEAS ");
+                sql.Append("   , NULL AS CONSTRSUBPERSONCODEAS ");
+                sql.Append("   , NULL AS CONSTRUCTIONINSTRUCTORAS ");
+                sql.Append("   , NULL AS PERSONNAME ");
+                sql.Append("   , NULL AS DEPARTMENTCODE ");
+                sql.Append("  FROM ");
+                sql.Append("   REQUESTHEAD AS H ");
+                sql.Append("  INNER JOIN ORDERERSMASTER AS O ");
+                sql.Append("   ON O.ORDERERSCODE = H.ORDERERSCODE ");
+                sql.Append("   AND O.ORDERCOTEGORY = H.ORDERERSDIVISION ");
+                sql.Append("  WHERE ");
+                sql.Append("   H.REQUESTMONTH = 201706 ");
+                sql.Append(" ) ");
+                sql.Append(" UNION ( ");
+                sql.Append("  SELECT ");
+                sql.Append("   CONCAT(O.ORDERERSNAME1, '　', O.ORDERERSNAME2) AS ORDERERSNAME ");
+                sql.Append("   , I.REQUESTMONTH AS TARGETDATE ");
+                sql.Append("   , H.REQUESTNO ");
+                sql.Append("   , I.ORDERERSDIVISION ");
+                sql.Append("   , I.ORDERERSCODE ");
+                sql.Append("   , DATE_FORMAT(I.CRETATEDATE, '%m/%d') AS CRETATEDATE ");
+                sql.Append("   , H.REQCONSTRUCTIONCODE ");
+                sql.Append("   , H.REQCONSTRUCTIONNAME ");
+                sql.Append("   , H.REQUESTAMOUNT ");
+                sql.Append("   , H.TAXAMOUNT ");
+                sql.Append("   , 2 AS KB ");
+                sql.Append("   , NULL AS SEQNOD ");
+                sql.Append("   , NULL AS DEPOSITDATE ");
+                sql.Append("   , NULL AS DEPOSITAMOUNTCASH ");
+                sql.Append("   , NULL AS DEPOSITAMOUNTBILL ");
+                sql.Append("   , NULL AS DEPOSITPERSONCODE ");
+                sql.Append("   , NULL AS NOTE ");
+                sql.Append("   , H.ORDERNO ");
+                sql.Append("   , DPDE.DEPOSITAMOUNT ");
+                sql.Append("   , DPDE.DISCOUNTAMOUNT ");
+                sql.Append("   , DPDE.CNSTRPRICE ");
+                sql.Append("   , DPDE.FEES ");
+                sql.Append("   , DPDE.OTHERADJUSTMENTS ");
+                sql.Append("   , DPDE.DIFFERENCEAMOUNT ");
+                sql.Append("   , DPDE.CONFIRMATIONPERSONCODE ");
+                sql.Append("   , DPDE.CONFIRMATIONDATE ");
+                sql.Append("   , DPDE.CONFIRMATIONENDFLG ");
+                sql.Append("   , DPDE.NOTE ");
+                sql.Append("   , DPDE.ENTRYDATE ");
+                sql.Append("   , CBI.CONSTRUCTIONPERSONCODE ");
+                sql.Append("   , CBI.CONSTRSUBPERSONCODE ");
+                sql.Append("   , CBI.CONSTRUCTIONINSTRUCTOR ");
+                sql.Append("   , PICM.SEALPRINTNAME AS PERSONNAME ");
+                sql.Append("   , PICM.DEPARTMENTCODE ");
+                sql.Append("  FROM ");
+                sql.Append("   REQUESTHEAD AS H ");
+                sql.Append("  INNER JOIN ORDERERSMASTER AS O ");
+                sql.Append("   ON O.ORDERERSCODE = H.ORDERERSCODE ");
+                sql.Append("   AND O.ORDERCOTEGORY = H.ORDERERSDIVISION ");
+                sql.Append("  INNER JOIN INVOICEDATA AS I ");
+                sql.Append("   ON I.INVOICENO = H.INVOICENO ");
+                sql.Append("  LEFT OUTER JOIN DEPOSITDATADETAIL AS DPDE ");
+                sql.Append("   ON DPDE.TARGETDATE = H.REQUESTMONTH ");
+                sql.Append("   AND DPDE.REQUESTNO = H.REQUESTNO ");
+                sql.Append("   AND DPDE.ORDERERSCODE = H.ORDERERSCODE ");
+                sql.Append("  LEFT OUTER JOIN CONSTRUCTIONBASEINFO CBI ");
+                sql.Append("   ON H.REQCONSTRUCTIONCODE = CBI.CONSTRUCTIONCODE ");
+                sql.Append("  LEFT OUTER JOIN PERSONINCHARGEMASTER PICM ");
+                sql.Append("   ON CBI.CONSTRUCTIONPERSONCODE = PICM.PERSONCODE ");
+                sql.Append("  WHERE ");
+                sql.Append("   I.REQUESTMONTH = 201706 ");
+                sql.Append(" ) ");
+                sql.Append(" ORDER BY ");
+                sql.Append("  ORDERERSCODE ");
+                sql.Append("  , CRETATEDATE ");
+                sql.Append("  , REQCONSTRUCTIONCODE ");
+                sql.Append("  , KB; ");
 
                 var data = new ArrayList();
-                if (!depDb.ExecuteReader(sql.ToString(), ref data)) return new ArrayList();
+                if (!ivD.ExecuteReader(sql.ToString(), ref data)) return new ArrayList();
                 return data;
             }
             catch (Exception ex)
@@ -2002,84 +1211,46 @@
             }
             finally
             {
-                depDb.close();
-                depDb = null;
+                ivD.close();
+                ivD = null;
             }
         }
         #endregion
 
-        #region 入金明細データを取得する。
+        #region 入金合計を取得
         /// <summary>
-        /// 入金明細データを取得する。
+        /// 入金合計を取得
         /// </summary>
-        /// <param name="orderersDivision"></param>
-        /// <param name="orderersCode"></param>
-        /// <param name="targetDate"></param>
         /// <returns></returns>
-        private ArrayList SelectDepositDetailData(int orderersDivision, int orderersCode, int targetDate)
+        private ArrayList DepositSumCalc(int orderersDiv, int orderersCd, int targetDate, int tgl)
         {
-            var depDb = new IODepositData();
+            var ivD = new IODepositData();
 
             try
             {
                 var sql = new StringBuilder();
-                sql.Append("SELECT");
-                sql.Append(" DepD.OrderersDivision");
-                sql.Append(" ,DepD.OrderersCode");
-                sql.Append(" ,DepD.TargetDate");
-                sql.Append(" ,DepD.SeqNo");
-                sql.Append(" ,null as DepositDate");
-                sql.Append(" ,null");
-                sql.Append(" ,null");
-                sql.Append(" ,null");
-                sql.Append(" ,null");
-                sql.Append(" ,null");
-                sql.Append(" ,null");
-                sql.Append(" ,DepD.LineCount");
-                sql.Append(" ,ifnull(DepD.RequestNo, 0) as RequestNo");
-                sql.Append(" ,ifnull(DepD.OrderNo, 0) as OrderNo");
-                sql.Append(" ,DepD.DepositAmount");
-                sql.Append(" ,ifnull(DepD.DiscountAmount, 0) as DiscountAmount");
-                sql.Append(" ,ifnull(DepD.CnstrPrice, 0) as CnstrPrice");
-                sql.Append(" ,ifnull(DepD.Fees, 0) as Fees");
-                sql.Append(" ,ifnull(DepD.OtherAdjustments, 0) as OtherAdjustments");
-                sql.Append(" ,ifnull(DepD.CarryAmount, 0) as CarryAmount");
-                sql.Append(" ,ifnull(DepD.ApprovalPersonCode, 0) as ApprovalPersonCode");
-                sql.Append(" ,ifnull(DepD.ApprovalDate, 0) as ApprovalDate");
-                sql.Append(" ,DepD.ApprovalEndFlg");
-                sql.Append(" ,PicM.SealPrintName");
-                sql.Append(" ,PicM2.DepartmentCode");
-                sql.Append(" ,DATE_FORMAT(InvD.CretateDate, '%Y/%m/%d') as BillCreationDate");
-                sql.Append(" ,ReqH.RequestAmount + ReqH.UnpaidAmount as BillPrice");
-                sql.Append(" ,ReqH.TaxAmount as TaxPrice");
-                sql.Append(" ,Cbi.ConstructionCode");
-                sql.Append(" ,Cbi.ConstructionPersonCode");
-                sql.Append(" ,Cbi.ConstrSubPersonCode");
-                sql.Append(" ,Cbi.ConstructionInstructor");
-                sql.Append(" ,0");
-                sql.Append(" ,ReqH.ReqConstructionName");
-                sql.Append(" FROM");
-                sql.Append(" DepositDataDetail DepD");
-                sql.Append(" LEFT OUTER JOIN PersonInChargeMaster PicM ON");
-                sql.Append(" DepD.ApprovalPersonCode = PicM.PersonCode");
-                sql.Append(" LEFT OUTER JOIN RequestHead ReqH ON");
-                sql.Append(" DepD.RequestNo = ReqH.RequestNo");
-                sql.Append(" LEFT OUTER JOIN ConstructionBaseInfo Cbi ON");
-                sql.Append(" ReqH.ReqConstructionCode = Cbi.ConstructionCode");
-                sql.Append(" LEFT OUTER JOIN PersonInChargeMaster PicM2 ON");
-                sql.Append(" Cbi.ConstructionPersonCode = PicM2.PersonCode");
-                sql.Append(" LEFT OUTER JOIN InvoiceData InvD ON");
-                sql.Append(" ReqH.InvoiceNo = InvD.InvoiceNo");
-                sql.Append(" WHERE");
-                sql.AppendFormat(" DepD.OrderersDivision = {0}", orderersDivision);
-                sql.AppendFormat(" AND DepD.OrderersCode = {0}", orderersCode);
-                sql.AppendFormat(" AND DepD.TargetDate = {0}", m_Select_TargetDate);
-                sql.Append(" ORDER BY");
-                sql.Append(" DepD.RequestNo");
+                sql.Append(" SELECT ");
+                sql.Append("     SUM(DEPOSITAMOUNTCASH) ");
+                sql.Append("     , SUM(DEPOSITAMOUNTBILL) ");
+                sql.Append(" FROM ");
+                sql.Append("     DEPOSITDATA ");
+                sql.Append(" WHERE ");
+                if (tgl == 1)
+                {
+                    sql.AppendFormat("     ORDERERSDIVISION = {0} ", orderersDiv);
+                    sql.AppendFormat("     AND ORDERERSCODE = {0} ", orderersCd);
+                    sql.AppendFormat("     AND TARGETDATE = {0} ", targetDate);
+                }
+                else if(tgl == 2)
+                {
+                    sql.AppendFormat("     TARGETDATE = {0} ", targetDate);
+                }
 
                 var data = new ArrayList();
-
-                if (!depDb.ExecuteReader(sql.ToString(), ref data)) return new ArrayList();
+                if (!ivD.ExecuteReader(sql.ToString(), ref data))
+                {
+                    return new ArrayList();
+                }
                 return data;
             }
             catch (Exception ex)
@@ -2089,49 +1260,63 @@
             }
             finally
             {
-                depDb.close();
-                depDb = null;
+                ivD.close();
+                ivD = null;
             }
         }
         #endregion
 
-        #region 入金確認承認データより、承認者を取得する。
+        #region 請求金額の合計を取得
         /// <summary>
-        /// 入金確認承認データより、承認者を取得する。
+        /// 請求金額の合計を取得
         /// </summary>
-        /// <param name="orderersDivision"></param>
-        /// <param name="orderersCode"></param>
-        /// <param name="seqNo"></param>
-        /// <param name="lineCount"></param>
-        /// <param name="depositApprovals"></param>
         /// <returns></returns>
-        private bool SelectApprove(int orderersDivision, int orderersCode, int seqNo, int lineCount, ref List<DepositApprovalInfo> depositApprovals)
+        private ArrayList RequestSumCalc(int orderersDiv, int orderersCd, int targetDate, int tgl)
         {
-            IODepositApprovalInfo ioDai = new IODepositApprovalInfo();
+            var ivD = new IORequestHead();
+
             try
             {
-                var sql = string.Format(" where OrderersDivision = {0} and OrderersCode = {1} and TargetDate = {2} and SeqNo = {3} and LineCount = {4} order by ApprovalNo",
-                    orderersDivision, orderersCode, m_Select_TargetDate.ToString(), seqNo, lineCount);
-                if (!ioDai.SelectAction(sql, ref depositApprovals))
-                    return false;
-                return true;
+                var sql = new StringBuilder();
+                sql.Append(" SELECT ");
+                sql.Append("     SUM(REQUESTAMOUNT) ");
+                sql.Append("     , SUM(TAXAMOUNT) ");
+                sql.Append(" FROM ");
+                sql.Append("     REQUESTHEAD ");
+                sql.Append(" WHERE ");
+                if (tgl == 1)
+                {
+                    sql.AppendFormat("     ORDERERSDIVISION = {0} ", orderersDiv);
+                    sql.AppendFormat("     AND ORDERERSCODE = {0} ", orderersCd);
+                    sql.AppendFormat("     AND REQUESTMONTH = {0} ", targetDate);
+                }
+                else if(tgl == 2)
+                {
+                    sql.AppendFormat("     REQUESTMONTH = {0} ", targetDate);
+                }
+                var data = new ArrayList();
+                if (!ivD.ExecuteReader(sql.ToString(), ref data))
+                {
+                    return new ArrayList();
+                }
+                return data;
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
+                return new ArrayList();
             }
             finally
             {
-                ioDai.close();
-                ioDai = null;
+                ivD.close();
+                ivD = null;
             }
         }
         #endregion
 
-        #region 業者行の内容を更新する。
+        #region 変更行の内容を更新する。
         /// <summary>
-        /// 業者行の内容を更新する。
+        /// 変更行の内容を更新する。
         /// </summary>
         /// <param name="depositOrderer"></param>
         /// <param name="position"></param>
@@ -2142,7 +1327,7 @@
             var y = dgvMaster.FirstDisplayedScrollingRowIndex;
             try
             {
-                RemoveDepositOrdererRows(depositOrderer);
+                dgvMaster.Rows.RemoveAt(position);
                 AddDepositOrdererRows(depositOrderer, position);
             }
             catch (Exception ex)
@@ -2158,30 +1343,11 @@
         }
         #endregion
 
-        #region 業者行を削除する。
+        #region データをカラムに追加する。
         /// <summary>
-        /// 業者行を削除する。
+        /// データをカラムに追加する。
         /// </summary>
         /// <param name="depositOrderer"></param>
-        private void RemoveDepositOrdererRows(DepositOrderer depositOrderer)
-        {
-            for (var i = dgvMaster.RowCount - 1; i >= 0; i--)
-            {
-                var cells = dgvMaster.Rows[i].Cells;
-                if (CommonMotions.cnvInt(cells[(int)DispColumn.OrderersDivision].Value) == depositOrderer.OrderersDivision
-                    && CommonMotions.cnvInt(cells[(int)DispColumn.OrderersCode].Value) == depositOrderer.OrderersCode)
-                {
-                    dgvMaster.Rows.RemoveAt(i);
-                }
-            }
-        }
-        #endregion
-
-        #region 業者行を追加する。
-        /// <summary>
-        /// 業者行を追加する。
-        /// </summary>
-        /// <param name="depositOrderer"></param>
         /// <param name="position"></param>
         private void AddDepositOrdererRows(DepositOrderer depositOrderer, int position)
         {
@@ -2188,107 +1354,214 @@
             try
             {
                 if (depositOrderer.Deleted)
+                {
                     return;
+                }
                 // 明細行を作成
                 dgvMaster.Rows.Insert(position, depositOrderer.Size);
-                // いったんすべての行をReadOnlyにしておく
-                for (var i = position; i < position + depositOrderer.Size; i++)
-                    dgvMaster.Rows[i].ReadOnly = true;
+                
                 var ordererRow = dgvMaster.Rows[position];
-                // 請求先情報の表示
-                ordererRow.Cells[(int)DispColumn.No].Value = depositOrderer.No;
-                ordererRow.Cells[(int)DispColumn.OrderersDivision].Value = depositOrderer.OrderersDivision;
-                ordererRow.Cells[(int)DispColumn.OrderersCode].Value = depositOrderer.OrderersCode;
-                ordererRow.Cells[(int)DispColumn.OrderersName].Value = depositOrderer.OrderersName;
-                if (depositOrderer.VisibleDepositDetails.Count == 0)
-                {
-                    ordererRow.Cells[(int)DispColumn.DepositDate].ReadOnly = false;
-                    ordererRow.Cells[(int)DispColumn.DepositAmountCash].ReadOnly = false;
-                    ordererRow.Cells[(int)DispColumn.DepositAmountBill].ReadOnly = false;
-                }
-                // 入金情報の表示
                 var index = 0;
-                foreach (var deposit in depositOrderer.VisibleDeposits)
+
+                if (depositOrderer.KB == 1)
                 {
-                    var row = dgvMaster.Rows[position + index];
-                    row.Cells[(int)DispColumn.OrderersDivision].Value = depositOrderer.OrderersDivision;
-                    row.Cells[(int)DispColumn.OrderersCode].Value = depositOrderer.OrderersCode;
-                    row.Cells[(int)DispColumn.SeqNo].Value = deposit.SeqNo;
-                    row.Cells[(int)DispColumn.DepositDate].Value = deposit.DepositDate;
-                    if (deposit.DepositAmountCash.HasValue)
-                        SetPrice(row.Cells, (int)DispColumn.DepositAmountCash, deposit.DepositAmountCash.Value);
-                    if (deposit.DepositAmountBill.HasValue)
-                        SetPrice(row.Cells, (int)DispColumn.DepositAmountBill, deposit.DepositAmountBill.Value);
-                    // 編集設定
-                    if (CanEditDeposit(depositOrderer))
+                    // 請求先情報の表示
+                    ordererRow.Cells[(int)DispColumn.No].Style.BackColor = Color.Gainsboro;
+                    ordererRow.Cells[(int)DispColumn.RequestMonth].Style.BackColor = Color.Gainsboro;
+                    ordererRow.Cells[(int)DispColumn.OrderersName].Style.BackColor = Color.Gainsboro;
+
+                    ordererRow.Cells[(int)DispColumn.RequestMonth].Value = depositOrderer.RequestMonth;
+                    ordererRow.Cells[(int)DispColumn.OrderersDivision].Value = depositOrderer.OrderersDivision;
+                    ordererRow.Cells[(int)DispColumn.OrderersCode].Value = depositOrderer.OrderersCode;
+                    ordererRow.Cells[(int)DispColumn.OrderersName].Value = depositOrderer.OrderersName;
+
+                    // 入金金額の合計を算出
+                    int tgl = 1;
+                    var DepositSum = DepositSumCalc(depositOrderer.OrderersDivision, depositOrderer.OrderersCode, depositOrderer.RequestMonth, tgl).OfType<object[]>();
+                    int SumDepositAmountCash = 0;
+                    int SumDepositAmountBill = 0;
+                    foreach (var sum in DepositSum)
                     {
-                        row.Cells[(int)DispColumn.DepositDate].ReadOnly = false;
-                        row.Cells[(int)DispColumn.DepositAmountCash].ReadOnly = false;
-                        row.Cells[(int)DispColumn.DepositAmountBill].ReadOnly = false;
+                        SumDepositAmountCash = CommonMotions.cnvInt(sum[0]);
+                        SumDepositAmountBill = CommonMotions.cnvInt(sum[1]);
                     }
-                    index++;
-                }
-                index = 0;
-                foreach (var depositDetail in depositOrderer.VisibleDepositDetails)
-                {
-                    var row = dgvMaster.Rows[position + index];
-                    row.Cells[(int)DispColumn.OrderersDivision].Value = depositOrderer.OrderersDivision;
-                    row.Cells[(int)DispColumn.OrderersCode].Value = depositOrderer.OrderersCode;
-                    row.Cells[(int)DispColumn.RequestNo].Value = depositDetail.RequestNo;
-                    row.Cells[(int)DispColumn.LineCount].Value = depositDetail.LineCount;
-                    row.Cells[(int)DispColumn.OrderNo].Value = depositDetail.OrderNo;
-                    row.Cells[(int)DispColumn.ConstructionName].Value = depositDetail.ConstructionName;
-                    row.Cells[(int)DispColumn.ConstructionName_Raw].Value = depositDetail.ConstructionNameRow;
-                    // TODO 入金予定日
-                    row.Cells[(int)DispColumn.BillCreationDate].Value = depositDetail.BillCreationDate;
-                    SetPrice(row.Cells, (int)DispColumn.BillPrice, depositDetail.BillPrice);
-                    SetPrice(row.Cells, (int)DispColumn.TaxPrice, depositDetail.TaxPrice);
-                    SetPrice(row.Cells, (int)DispColumn.DepositAmount, depositDetail.DepositAmount);
-                    SetPrice(row.Cells, (int)DispColumn.DiscountAmount, depositDetail.DiscountAmount);
-                    SetPrice(row.Cells, (int)DispColumn.CnstrPrice, depositDetail.CnstrPrice);
-                    SetPrice(row.Cells, (int)DispColumn.Fees, depositDetail.Fees);
-                    SetPrice(row.Cells, (int)DispColumn.OtherAdjustments, depositDetail.OtherAdjustments);
-                    SetPrice(row.Cells, (int)DispColumn.CarryAmount, depositDetail.CarryAmount);
-                    row.Cells[(int)DispColumn.PersonCode].Value = depositDetail.ApprovalPersonCode;
-                    row.Cells[(int)DispColumn.PersonName].Value = depositDetail.ApprovalPersonName;
-                    // 担当者未承認
-                    if (!depositDetail.IsApprovedByStaff)
+
+                    // 請求金額合計の合計を算出
+                    var RequestSum = RequestSumCalc(depositOrderer.OrderersDivision, depositOrderer.OrderersCode, depositOrderer.RequestMonth, tgl).OfType<object[]>();
+                    int SumRequestBill = 0;
+                    int SumRequestTax = 0;
+                    foreach (var sum in RequestSum)
                     {
-                        row.Cells[(int)DispColumn.PersonName].Style.ForeColor = Color.Gray;
-                        row.Cells[(int)DispColumn.PersonDate].Value = "";
+                        SumRequestBill = CommonMotions.cnvInt(sum[0]);
+                        SumRequestTax = CommonMotions.cnvInt(sum[1]);
                     }
-                    var j = (int)DispColumn.ApprovalName_1;
-                    foreach (var depositeApproval in depositDetail.DepositApprovals)
+
+
+
+                    index = 0;
+                    foreach (var deposit in depositOrderer.VisibleDeposits)
                     {
-                        row.Cells[j].Value = depositeApproval.ApprovalPersonName;
-                        row.Cells[j + 1].Value = depositeApproval.ApprovalPerson;
-                        if (depositeApproval.ApprovalDate == "")
-                            row.Cells[j].Style.ForeColor = Color.Gray;
-                        dgvMaster.Columns[j].Visible = true;
-                        j += 5;
+                        var row = dgvMaster.Rows[position + index];
+                        ordererRow.Cells[(int)DispColumn.DepositAmountCash].Style.BackColor = Color.Gainsboro;
+                        ordererRow.Cells[(int)DispColumn.DepositAmountBill].Style.BackColor = Color.Gainsboro;
+
+                        SetPrice(row.Cells, (int)DispColumn.DepositAmountCash, (long)SumDepositAmountCash);
+                        SetPrice(row.Cells, (int)DispColumn.DepositAmountBill, (long)SumDepositAmountBill);
+                        index++;
                     }
-                    // 現場が存在する行は、総務入力側のセルも編集可能か判定しておく
-                    if (CanEditDeposit(depositOrderer))
+
+                    // 入金明細情報の表示       
+                    index = 0;
+                    foreach (var depositDetail in depositOrderer.VisibleDepositDetails)
                     {
-                        row.Cells[(int)DispColumn.DepositDate].ReadOnly = false;
-                        row.Cells[(int)DispColumn.DepositAmountCash].ReadOnly = false;
-                        row.Cells[(int)DispColumn.DepositAmountBill].ReadOnly = false;
+                        var row = dgvMaster.Rows[position + index];
+                        row.Cells[(int)DispColumn.ConstructionCode].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.RequestNo].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.ConstructionName].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.OrderNo].Style.BackColor = Color.Gainsboro;
+
+                        row.Cells[(int)DispColumn.TaxPrice].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.BillPrice].Style.BackColor = Color.Gainsboro;
+
+                        SetPrice(row.Cells, (int)DispColumn.BillPrice, SumRequestBill);
+                        SetPrice(row.Cells, (int)DispColumn.TaxPrice, SumRequestTax);
+
+                        row.Cells[(int)DispColumn.DepositAmount].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.DiscountAmount].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.CnstrPrice].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.Fees].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.OtherAdjustments].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.DifferentAmount].Style.BackColor = Color.Gainsboro;
+
+                        row.Cells[(int)DispColumn.DepositAmount].ReadOnly = true;
+                        row.Cells[(int)DispColumn.DiscountAmount].ReadOnly = true;
+                        row.Cells[(int)DispColumn.CnstrPrice].ReadOnly = true;
+                        row.Cells[(int)DispColumn.Fees].ReadOnly = true;
+                        row.Cells[(int)DispColumn.OtherAdjustments].ReadOnly = true;
+                        row.Cells[(int)DispColumn.NoteDD].ReadOnly = true;
+
+                        row.Cells[(int)DispColumn.ConfirmationPersonCode].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.ConfirmationDate].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.ConfirmationEndFlg].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.ConstructionPersonCode].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.ConstrSubPersonCode].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.ConstructionInstructor].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.DepartmentCode].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.PersonName].Style.BackColor = Color.Gainsboro;
+                        row.Cells[(int)DispColumn.NoteDD].Style.BackColor = Color.Gainsboro;
+
+
+                        // 担当者承認
+                        if (depositDetail.ConfirmationEndFlg == 1)
+                        {
+                            row.Cells[(int)DispColumn.PersonName].Style.ForeColor = Color.Red;
+                        }
+                        // 担当者未承認
+                        else
+                        {
+                            row.Cells[(int)DispColumn.PersonName].Style.ForeColor = Color.Gray;
+                        }
+
+                        index++;
                     }
-                    if (CanEditDepositDetail(depositDetail))
+                }
+                else
+                {
+                    // 請求先情報の表示
+                    ordererRow.Cells[(int)DispColumn.No].Value = depositOrderer.No;
+                    ordererRow.Cells[(int)DispColumn.RequestMonth].Value = depositOrderer.RequestMonth;
+                    ordererRow.Cells[(int)DispColumn.OrderersDivision].Value = depositOrderer.OrderersDivision;
+                    ordererRow.Cells[(int)DispColumn.OrderersCode].Value = depositOrderer.OrderersCode;
+
+                    ordererRow.Cells[(int)DispColumn.No].Style.BackColor = Color.FromArgb(192, 255, 192);
+                    ordererRow.Cells[(int)DispColumn.DepositAmountCash].Style.BackColor = Color.PeachPuff;
+                    ordererRow.Cells[(int)DispColumn.DepositAmountBill].Style.BackColor = Color.PeachPuff;
+
+                    index = 0;
+                    foreach (var depositDetail in depositOrderer.VisibleDepositDetails)
                     {
-                        row.Cells[(int)DispColumn.DepositAmount].ReadOnly = false;
-                        row.Cells[(int)DispColumn.DiscountAmount].ReadOnly = false;
-                        row.Cells[(int)DispColumn.CnstrPrice].ReadOnly = false;
-                        row.Cells[(int)DispColumn.Fees].ReadOnly = false;
-                        row.Cells[(int)DispColumn.OtherAdjustments].ReadOnly = false;
-                        row.Cells[(int)DispColumn.CarryAmount].ReadOnly = false;
+                        var row = dgvMaster.Rows[position + index];
+                        row.Cells[(int)DispColumn.ConstructionCode].Value = depositDetail.ConstructionCode;
+                        row.Cells[(int)DispColumn.RequestNo].Value = depositDetail.RequestNo;
+                        row.Cells[(int)DispColumn.ConstructionName].Value = depositDetail.ConstructionName;
+                        row.Cells[(int)DispColumn.OrderNo].Value = depositDetail.OrderNo;
+                        row.Cells[(int)DispColumn.OrderersName].Value = depositDetail.BillCreationDate;
+
+                        row.Cells[(int)DispColumn.OrderersName].Style.BackColor = Color.FromArgb(192, 255, 192);
+                        row.Cells[(int)DispColumn.BillPrice].Style.BackColor = Color.FromArgb(192, 255, 192);
+                        row.Cells[(int)DispColumn.TaxPrice].Style.BackColor = Color.FromArgb(192, 255, 192);
+                        row.Cells[(int)DispColumn.ConstructionName].Style.BackColor = Color.FromArgb(192, 255, 192);
+
+                        SetPrice(row.Cells, (int)DispColumn.BillPrice, depositDetail.BillPrice);
+                        SetPrice(row.Cells, (int)DispColumn.TaxPrice, depositDetail.TaxPrice);
+                        SetPrice(row.Cells, (int)DispColumn.DepositAmount, depositDetail.DepositAmount);
+                        SetPrice(row.Cells, (int)DispColumn.DiscountAmount, depositDetail.DiscountAmount);
+                        SetPrice(row.Cells, (int)DispColumn.CnstrPrice, depositDetail.CnstrPrice);
+                        SetPrice(row.Cells, (int)DispColumn.Fees, depositDetail.Fees);
+                        SetPrice(row.Cells, (int)DispColumn.OtherAdjustments, depositDetail.OtherAdjustments);
+
+                        row.Cells[(int)DispColumn.DepositAmount].Style.BackColor = Color.LightCyan;
+                        row.Cells[(int)DispColumn.DiscountAmount].Style.BackColor = Color.LightCyan;
+                        row.Cells[(int)DispColumn.CnstrPrice].Style.BackColor = Color.LightCyan;
+                        row.Cells[(int)DispColumn.Fees].Style.BackColor = Color.LightCyan;
+                        row.Cells[(int)DispColumn.OtherAdjustments].Style.BackColor = Color.LightCyan;
+                        row.Cells[(int)DispColumn.DifferentAmount].Style.BackColor = Color.LightCyan;
+
+                        long RequestAmount = depositDetail.BillPrice + depositDetail.TaxPrice;
+                        long DepositAmount = depositDetail.DepositAmount + depositDetail.DiscountAmount
+                            + depositDetail.CnstrPrice + depositDetail.Fees + depositDetail.OtherAdjustments;
+                        depositDetail.DifferenceAmount = DepositAmount - RequestAmount;
+
+                        SetPrice(row.Cells, (int)DispColumn.DifferentAmount, depositDetail.DifferenceAmount);
+
+                        row.Cells[(int)DispColumn.ConfirmationPersonCode].Value = depositDetail.ConstructionPersonCode;
+                        row.Cells[(int)DispColumn.ConfirmationDate].Value = depositDetail.ConfirmationDate;
+                        row.Cells[(int)DispColumn.ConfirmationEndFlg].Value = depositDetail.ConfirmationEndFlg;
+                        row.Cells[(int)DispColumn.ConstructionPersonCode].Value = depositDetail.ConstructionPersonCode;
+                        row.Cells[(int)DispColumn.ConstrSubPersonCode].Value = depositDetail.ConstrSubPersonCode;
+                        row.Cells[(int)DispColumn.ConstructionInstructor].Value = depositDetail.ConstructionInstructor;
+                        row.Cells[(int)DispColumn.DepartmentCode].Value = depositDetail.DepartmentCode;
+                        row.Cells[(int)DispColumn.PersonName].Value = depositDetail.ConfirmationPersonName;
+                        row.Cells[(int)DispColumn.NoteDD].Value = depositDetail.Note;
+
+                        row.Cells[(int)DispColumn.PersonName].Style.BackColor = Color.LightCyan;
+                        row.Cells[(int)DispColumn.NoteDD].Style.BackColor = Color.LightCyan;
+
+                        if (CanEditDepositDetail(depositDetail))
+                        {
+                            row.Cells[(int)DispColumn.DepositAmount].ReadOnly = false;
+                            row.Cells[(int)DispColumn.DiscountAmount].ReadOnly = false;
+                            row.Cells[(int)DispColumn.CnstrPrice].ReadOnly = false;
+                            row.Cells[(int)DispColumn.Fees].ReadOnly = false;
+                            row.Cells[(int)DispColumn.OtherAdjustments].ReadOnly = false;
+                            row.Cells[(int)DispColumn.NoteDD].ReadOnly = false;
+                        }
+                        else
+                        {
+                            row.Cells[(int)DispColumn.DepositAmount].ReadOnly = true;
+                            row.Cells[(int)DispColumn.DiscountAmount].ReadOnly = true;
+                            row.Cells[(int)DispColumn.CnstrPrice].ReadOnly = true;
+                            row.Cells[(int)DispColumn.Fees].ReadOnly = true;
+                            row.Cells[(int)DispColumn.OtherAdjustments].ReadOnly = true;
+                            row.Cells[(int)DispColumn.NoteDD].ReadOnly = true;
+                        }
+
+                        // 担当者承認
+                        if (depositDetail.ConfirmationEndFlg == 1)
+                        {
+                            row.Cells[(int)DispColumn.PersonName].Style.ForeColor = Color.Red;
+                        }
+                        // 担当者未承認
+                        else
+                        {
+                            row.Cells[(int)DispColumn.PersonName].Style.ForeColor = Color.Gray;
+                        }
+
+                        index++;
                     }
-                    index++;
                 }
-                AddUnknownRow(depositOrderer, position);
-                AddBlankRow(depositOrderer, position);
-                AddTotalRow(depositOrderer, position);
             }
+
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
@@ -2296,9 +1569,9 @@
         }
         #endregion
 
-        #region データを表示する。
+        #region データを表示する
         /// <summary>
-        /// データを表示する。
+        /// データを表示する
         /// </summary>
         private void DisplayData()
         {
@@ -2312,14 +1585,16 @@
                 depositOrderers = SelectDepositOrderers();
                 // 請求先単位で設定を行う。
                 dgvMaster.SuspendLayout();
-                for (var i = (int)DispColumn.ApprovalName_1; i <= (int)DispColumn.ApprovalName_10; i += 5)
-                    dgvMaster.Columns[i].Visible = false;
+
                 foreach (var deposit in depositOrderers)
                 {
                     AddDepositOrdererRows(deposit, dgvMaster.RowCount);
                 }
+
+                // 金額の合計を表示する
+                TotalCount(m_Select_TargetDate);
+
                 isDirty = false;
-                ControlButton();
             }
             catch (Exception ex)
             {
@@ -2328,203 +1603,51 @@
             finally
             {
                 dgvMaster.ResumeLayout();
-                if (dgvMaster.Rows.Count > 0)
-                {
-                    dgvMaster.FirstDisplayedScrollingRowIndex = 0;
-                    dgvMaster.FirstDisplayedScrollingColumnIndex = 15;
-                    dgvMaster.CurrentCell = dgvMaster[1, 0];
-                }
             }
         }
         #endregion
 
-        #region 不明行かを判定する。
+        #region 請求金額と入金金額の合計
         /// <summary>
-        /// 不明行かを判定する。
+        /// 請求金額と入金金額の合計
         /// </summary>
-        /// <param name="index"></param>
-        /// <returns></returns>
-        private bool IsUnknownRow(int index)
+        private void TotalCount(int targetDate)
         {
-            var cells = dgvMaster.Rows[index].Cells;
-            return CommonMotions.cnvString(cells[(int)DispColumn.ConstructionName].Value) == "不明"
-                && CommonMotions.cnvString(cells[(int)DispColumn.ConstructionName_Raw].Value) == "";
-        }
-        #endregion
-
-        #region 空白行かを判定する。
-        /// <summary>
-        /// 空白行かを判定する。
-        /// </summary>
-        /// <param name="index"></param>
-        /// <returns></returns>
-        private bool IsBlankRow(int index)
-        {
-            var cells = dgvMaster.Rows[index].Cells;
-            return CommonMotions.cnvString(cells[(int)DispColumn.SeqNo]) == ""
-                && CommonMotions.cnvString(cells[(int)DispColumn.LineCount]) == ""
-                && CommonMotions.cnvString(cells[(int)DispColumn.ConstructionName].Value) == ""
-                && CommonMotions.cnvString(cells[(int)DispColumn.ConstructionName_Raw].Value) == "";
-        }
-        #endregion
-
-        #region 不明行の設定を行う。
-        /// <summary>
-        /// 不明行の設定を行う。
-        /// </summary>
-        /// <param name="index"></param>
-        private void AddUnknownRow(DepositOrderer depositOrderer, int index)
-        {
-            // 不明行金額の計算
-            long depositAmountCash = 0;
-            long depositAmountBill = 0;
-            foreach (var deposit in depositOrderer.Deposits)
+            int depositTotal = 0;
+            int requestTotal = 0;
+            try
             {
-                depositAmountCash += deposit.DepositAmountCash.GetValueOrDefault(0);
-                depositAmountBill += deposit.DepositAmountBill.GetValueOrDefault(0);
-            }
-            long depositAmount = 0;
-            foreach (var depositDetail in depositOrderer.DepositDetails)
-            {
-                depositAmount += depositDetail.DepositAmount;
-            }
-            long unknownAmount = (depositAmountCash + depositAmountBill) - depositAmount;
-            if (unknownAmount == 0)
-                return;
-            // 不明行は入金明細の一番下に作成する
-            var unknownIndex = index + depositOrderer.VisibleDepositDetails.Count;
-            // 入金明細が入金より多い場合は不明行を追加
-            if (depositOrderer.VisibleDepositDetails.Count >= depositOrderer.VisibleDeposits.Count)
-            {
-                dgvMaster.Rows.Insert(unknownIndex);
-                dgvMaster.Rows[unknownIndex].ReadOnly = true;
-            }
-            var row = dgvMaster.Rows[unknownIndex];
-            row.Cells[(int)DispColumn.OrderersDivision].Value = depositOrderer.OrderersDivision;
-            row.Cells[(int)DispColumn.OrderersCode].Value = depositOrderer.OrderersCode;
-            row.Cells[(int)DispColumn.ConstructionName].Value = "不明";
-            // 編集設定
-            var readOnly = !CanEditDeposit(depositOrderer);
-            row.Cells[(int)DispColumn.DepositDate].ReadOnly = readOnly;
-            row.Cells[(int)DispColumn.DepositAmountCash].ReadOnly = readOnly;
-            row.Cells[(int)DispColumn.DepositAmountBill].ReadOnly = readOnly;
-            SetPrice(row.Cells, (int)DispColumn.DepositAmount, unknownAmount);
-        }
-        #endregion
+                // 入金金額の合計を算出
+                int tgl = 2;
+                var DepositSum = DepositSumCalc(0, 0, targetDate, tgl).OfType<object[]>();
+                int SumDepositAmountCash = 0;
+                int SumDepositAmountBill = 0;
+                foreach (var sum in DepositSum)
+                {
+                    SumDepositAmountCash = CommonMotions.cnvInt(sum[0]);
+                    SumDepositAmountBill = CommonMotions.cnvInt(sum[1]);
+                }
 
-        #region 差額の算出
-        /// <summary>
-        /// 差額の算出
-        /// </summary>
-        /// <param name="depositOrderer"></param>
-        /// <returns></returns>
-        private long CalculateDifference(DepositOrderer depositOrderer)
-        {
-            long depositAmountCash = 0;
-            long depositAmountBill = 0;
-            foreach (var deposit in depositOrderer.Deposits)
-            {
-                depositAmountCash += deposit.DepositAmountCash.GetValueOrDefault(0);
-                depositAmountBill += deposit.DepositAmountBill.GetValueOrDefault(0);
-            }
-            long depositAmount = 0;
-            foreach (var depositDetail in depositOrderer.DepositDetails)
-            {
-                depositAmount += depositDetail.DepositAmount;
-            }
-            return depositAmountCash + depositAmountBill - depositAmount;
-        }
-        #endregion
+                // 請求金額合計の合計を算出
+                var RequestSum = RequestSumCalc(0, 0, targetDate, tgl).OfType<object[]>();
+                int SumRequestBill = 0;
+                int SumRequestTax = 0;
+                foreach (var sum in RequestSum)
+                {
+                    SumRequestBill = CommonMotions.cnvInt(sum[0]);
+                    SumRequestTax = CommonMotions.cnvInt(sum[1]);
+                }
 
-        #region 合計行の設定を行う。
-        /// <summary>
-        /// 合計行の設定を行う。
-        /// </summary>
-        /// <param name="index"></param>
-        private void AddTotalRow(DepositOrderer depositOrderer, int index)
-        {
-            long depositAmountCash = 0;
-            long depositAmountBill = 0;
-            foreach (var deposit in depositOrderer.Deposits)
-            {
-                depositAmountCash += deposit.DepositAmountCash.GetValueOrDefault(0);
-                depositAmountBill += deposit.DepositAmountBill.GetValueOrDefault(0);
+                depositTotal = SumDepositAmountCash+SumDepositAmountBill;
+                requestTotal = SumRequestBill + SumRequestTax;
+                lblDepositTotal.Text = depositTotal.ToString("#,0") + " 円";
+                lblRequestTotal.Text = requestTotal.ToString("#,0") + " 円";
+                lblRequestAmount.Text = SumRequestBill.ToString("#,0") + " 円";
             }
-            long billPrice = 0;
-            long taxPrice = 0;
-            long depositAmount = 0;
-            long discountAmount = 0;
-            long cnstrPrice = 0;
-            long fees = 0;
-            long otherAdjustments = 0;
-            long carryAmount = 0;
-
-            foreach (var depositDetail in depositOrderer.VisibleDepositDetails)
+            catch(Exception ex)
             {
-                billPrice += depositDetail.BillPrice;
-                taxPrice += depositDetail.TaxPrice;
-                depositAmount += depositDetail.DepositAmount;
-                discountAmount += depositDetail.DiscountAmount;
-                cnstrPrice += depositDetail.CnstrPrice;
-                fees += depositDetail.Fees;
-                otherAdjustments += depositDetail.OtherAdjustments;
-                carryAmount += depositDetail.CarryAmount;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-            var headerIndex = DetectHeaderIndex(index);
-            var headerCells = dgvMaster.Rows[headerIndex].Cells;
-            var subtotalIndex = dgvMaster.RowCount;
-            for (var i = headerIndex; i < dgvMaster.RowCount; i++)
-            {
-                var cells = dgvMaster.Rows[i].Cells;
-                if (CommonMotions.cnvInt(headerCells[(int)DispColumn.OrderersDivision].Value) != CommonMotions.cnvInt(cells[(int)DispColumn.OrderersDivision].Value)
-                    || CommonMotions.cnvInt(headerCells[(int)DispColumn.OrderersCode].Value) != CommonMotions.cnvInt(cells[(int)DispColumn.OrderersCode].Value))
-                {
-                    subtotalIndex = i;
-                    break;
-                }
-            }
-            dgvMaster.Rows.Insert(subtotalIndex, 4);
-            // 小計
-            dgvMaster.Rows[subtotalIndex].DefaultCellStyle.BackColor = Color.Coral;
-            dgvMaster.Rows[subtotalIndex].ReadOnly = true;
-            var subtotalCells = dgvMaster.Rows[subtotalIndex].Cells;
-            subtotalCells[(int)DispColumn.OrderersDivision].Value = depositOrderer.OrderersDivision;
-            subtotalCells[(int)DispColumn.OrderersCode].Value = depositOrderer.OrderersCode;
-            subtotalCells[(int)DispColumn.OrderersName].Value = "小計";
-            SetPrice(subtotalCells, (int)DispColumn.DepositAmountCash, depositAmountCash);
-            SetPrice(subtotalCells, (int)DispColumn.DepositAmountBill, depositAmountBill);
-            SetPrice(subtotalCells, (int)DispColumn.BillPrice, billPrice);
-            SetPrice(subtotalCells, (int)DispColumn.TaxPrice, taxPrice);
-            SetPrice(subtotalCells, (int)DispColumn.DepositAmount, depositAmount);
-            SetPrice(subtotalCells, (int)DispColumn.DiscountAmount, discountAmount);
-            SetPrice(subtotalCells, (int)DispColumn.CnstrPrice, cnstrPrice);
-            SetPrice(subtotalCells, (int)DispColumn.Fees, fees);
-            SetPrice(subtotalCells, (int)DispColumn.OtherAdjustments, otherAdjustments);
-            SetPrice(subtotalCells, (int)DispColumn.CarryAmount, carryAmount);
-            // 入金金額
-            dgvMaster.Rows[subtotalIndex + 1].DefaultCellStyle.BackColor = Color.Yellow;
-            dgvMaster.Rows[subtotalIndex + 1].ReadOnly = true;
-            var depositCells = dgvMaster.Rows[subtotalIndex + 1].Cells;
-            depositCells[(int)DispColumn.OrderersDivision].Value = depositOrderer.OrderersDivision;
-            depositCells[(int)DispColumn.OrderersCode].Value = depositOrderer.OrderersCode;
-            depositCells[(int)DispColumn.OrderersName].Value = "入金金額";
-            SetPrice(depositCells, (int)DispColumn.DepositAmountCash, depositAmountCash + depositAmountBill);
-            // 調整後金額
-            dgvMaster.Rows[subtotalIndex + 2].DefaultCellStyle.BackColor = Color.PaleTurquoise;
-            dgvMaster.Rows[subtotalIndex + 2].ReadOnly = true;
-            var adjustmentCells = dgvMaster.Rows[subtotalIndex + 2].Cells;
-            adjustmentCells[(int)DispColumn.OrderersDivision].Value = depositOrderer.OrderersDivision;
-            adjustmentCells[(int)DispColumn.OrderersCode].Value = depositOrderer.OrderersCode;
-            adjustmentCells[(int)DispColumn.OrderersName].Value = "調整後金額";
-            SetPrice(adjustmentCells, (int)DispColumn.DepositAmountCash, depositAmount);
-            // 差額
-            dgvMaster.Rows[subtotalIndex + 3].DefaultCellStyle.BackColor = Color.Chartreuse;
-            dgvMaster.Rows[subtotalIndex + 3].ReadOnly = true;
-            var differentCells = dgvMaster.Rows[subtotalIndex + 3].Cells;
-            differentCells[(int)DispColumn.OrderersDivision].Value = depositOrderer.OrderersDivision;
-            differentCells[(int)DispColumn.OrderersCode].Value = depositOrderer.OrderersCode;
-            differentCells[(int)DispColumn.OrderersName].Value = "差額";
-            SetPrice(differentCells, (int)DispColumn.DepositAmountCash, depositAmountCash + depositAmountBill - depositAmount);
         }
         #endregion
 
@@ -2558,11 +1681,11 @@
             for (var i = 0; i < dgvMaster.RowCount; i++)
             {
                 var cells = dgvMaster.Rows[i].Cells;
-                if (CommonMotions.cnvInt(cells[(int)DispColumn.OrderersDivision].Value) == depositOrderer.OrderersDivision
-                    && CommonMotions.cnvInt(cells[(int)DispColumn.OrderersCode].Value) == depositOrderer.OrderersCode)
-                {
-                    return i;
-                }
+                //if (CommonMotions.cnvInt(cells[(int)DispColumn.OrderersDivision].Value) == depositOrderer.OrderersDivision
+                //    && CommonMotions.cnvInt(cells[(int)DispColumn.OrderersCode].Value) == depositOrderer.OrderersCode)
+                //{
+                //    return i;
+                //}
             }
             return 0;
         }
@@ -2580,81 +1703,16 @@
             {
                 var cells = dgvMaster.Rows[i].Cells;
 
-                if (CommonMotions.cnvInt(cells[(int)DispColumn.OrderersDivision].Value) == nDivision
-                    && CommonMotions.cnvInt(cells[(int)DispColumn.OrderersCode].Value) == nCode)
-                {
-                    return i;
-                }
+                //if (CommonMotions.cnvInt(cells[(int)DispColumn.OrderersDivision].Value) == nDivision
+                //    && CommonMotions.cnvInt(cells[(int)DispColumn.OrderersCode].Value) == nCode)
+                //{
+                //    return i;
+                //}
             }
             return 0;
         }
         #endregion
 
-        #region 不明行インデックスの検索
-        /// <summary>
-        /// 不明行インデックスの検索
-        /// </summary>
-        /// <param name="index"></param>
-        /// <returns></returns>
-        private int DetectUnknownIndex(int index)
-        {
-            var cells = dgvMaster.Rows[index].Cells;
-            int nDivision = int.Parse(cells[(int)DispColumn.OrderersDivision].Value.ToString());
-            int nCode = int.Parse(cells[(int)DispColumn.OrderersCode].Value.ToString());
-
-            var headerIndex = DetectHeaderIndex(nDivision,nCode);
-            for (var i = headerIndex; i < dgvMaster.Rows.Count; i++)
-            {
-                var constructionName = CommonMotions.cnvString(dgvMaster.Rows[i].Cells[(int)DispColumn.ConstructionName].Value);
-                if (constructionName == "" || constructionName == "不明")
-                {
-                    return i;
-                }
-
-                // 最終行超え
-                if (dgvMaster[(int)DispColumn.OrderersDivision, i].Value == null)
-                {
-                    break;
-                }
-
-                // 対象の発注者が変わった場合は検索終了
-                if ((int.Parse(dgvMaster[(int)DispColumn.OrderersDivision, i].Value.ToString()) != nDivision)||
-                    (int.Parse(dgvMaster[(int)DispColumn.OrderersCode, i].Value.ToString()) != nCode))
-                {
-                    break;
-                }
-
-            }
-            return -1;
-        }
-        #endregion
-
-        #region 入金情報から行インデックスを取得
-        /// <summary>
-        /// 入金情報から行インデックスを取得
-        /// </summary>
-        /// <param name="depositOrderer"></param>
-        /// <param name="deposit"></param>
-        /// <returns></returns>
-        private int GetRowIndexFromDeposit(DepositOrderer depositOrderer, Deposit deposit)
-        {
-            // ヘッダ行を取得
-            int HdIndex = DetectHeaderIndex(depositOrderer);
-
-            for (int i = HdIndex; i < dgvMaster.Rows.Count; i++)
-            {
-                var cells = dgvMaster.Rows[i].Cells;
-
-                if (CommonMotions.cnvInt(cells[(int)DispColumn.SeqNo].Value) == deposit.SeqNo)
-                {
-                    return i;
-                }
-            }
-
-            return -1;
-        }
-        #endregion
-
         #region 金額の設定
         /// <summary>
         /// 金額の設定
@@ -2673,44 +1731,6 @@
         }
         #endregion
 
-        #region 請求先名の取得
-        /// <summary>
-        /// 請求先名の取得
-        /// </summary>
-        /// <param name="corporateStatusPoint"></param>
-        /// <param name="corporateStatusName"></param>
-        /// <param name="orderersName1"></param>
-        /// <param name="orderersName2"></param>
-        /// <returns></returns>
-        private string ToOrdererName(int corporateStatusPoint, string corporateStatusName, string orderersName1, string orderersName2)
-        {
-            // 発注者名１△発注者名２
-            if (corporateStatusPoint == 0)
-            {
-                if (orderersName2 == "")
-                {
-                    return orderersName1;
-                }
-                return orderersName1 + "　" + orderersName2;
-            }
-            // 法人格名称△発注者名１△発注者名２
-            else if (corporateStatusPoint == 1)
-            {
-                if (orderersName2 == "")
-                {
-                    return corporateStatusName + "　" + orderersName1;
-                }
-                return corporateStatusName + orderersName1 + orderersName2;
-            }
-            // 発注者名１△法人格名称△発注者名２
-            if (orderersName2 == "")
-            {
-                return orderersName1 + "　" + corporateStatusName;
-            }
-            return orderersName1 + corporateStatusName + orderersName2;
-        }
-        #endregion
-
         #region DataGridヘッダ色表示
         /// <summary>
         /// DataGridヘッダ色表示
@@ -2719,90 +1739,44 @@
         {
             // ヘッダ色、-1:非表示、0:自動計算、1:総務、2：工事
             int[] mc = {
-                -1,                     // ■編集状態
-                0,                      // No
-                -1,                     // ■発注先区分
-                -1,                     // ■発注者コード
-                -1,                     // ■連番
-                -1,                     // ■行番号
-                0,                      // 請求先名
-                1,                      // 入金日
-                1,                      // 入金金額 (振込み)
-                1,                      // 入金金額 (手形)
-                -1,                     // 請求No.
-                -1,                     // 受付番号
+                0,                      // No  
+                -1,                     // ■請求月
+                -1,                     // ■請求No.
+                -1,                     // ■発注者区分
+                -1,                     // ■発注先コード
+                0,                      // 請求先名・請求日
+                -1,                     // ■工事番号
                 0,                      // 現場名
-                -1,                     // ■現場名 (DB登録値)
-                0,                      // 入金予定日
-                0,                      // 請求日
                 0,                      // 請求金額 (税抜)
                 0,                      // 請求金額 (消費税)
+
+                1,                      // 入金金額 (振込み)
+                1,                      // 入金金額 (手形)
+
+                2,                      // ■受付番号
                 2,                      // 入金金額
                 2,                      // 値引金額
                 2,                      // 協力金
                 2,                      // 手数料
-                2,                      // その他調整
-                2,                      // 次回繰越
-                0,                      // 担当者承認
+                2,                      // 送料
+                2,                      // 差分
+
                 -1,                     // ■担当者コード
-                -1,                     // ■担当者日付
-                0,                      // 承認者１承認
-                -1,                     // ■承認者コード_1
-                -1,                     // ■承認権限区分_1
-                -1,                     // ■承認日付_1
-                -1,                     // ■承認順番_1
-                0,                      // 承認者２承認
-                -1,                     // ■承認者コード_2
-                -1,                     // ■承認権限区分_2
-                -1,                     // ■承認日付_2
-                -1,                     // ■承認順番_2
-                0,                      // 承認者３承認
-                -1,                     // ■承認者コード_3
-                -1,                     // ■承認権限区分_3
-                -1,                     // ■承認日付_3
-                -1,                     // ■承認順番_3
-                0,                      // 承認者４承認
-                -1,                     // ■承認者コード_4
-                -1,                     // ■承認権限区分_4
-                -1,                     // ■承認日付_4
-                -1,                     // ■承認順番_4
-                0,                      // 承認者５承認
-                -1,                     // ■承認者コード_5
-                -1,                     // ■承認権限区分_5
-                -1,                     // ■承認日付_5
-                -1,                     // ■承認順番_5
-                0,                      // 承認者６承認
-                -1,                     // ■承認者コード_6
-                -1,                     // ■承認権限区分_6
-                -1,                     // ■承認日付_6
-                -1,                     // ■承認順番_6
-                0,                      // 承認者７承認
-                -1,                     // ■承認者コード_7
-                -1,                     // ■承認権限区分_7
-                -1,                     // ■承認日付_7
-                -1,                     // ■承認順番_7
-                0,                      // 承認者８承認
-                -1,                     // ■承認者コード_8
-                -1,                     // ■承認権限区分_8
-                -1,                     // ■承認日付_8
-                -1,                     // ■承認順番_8
-                0,                      // 承認者９承認
-                -1,                     // ■承認者コード_9
-                -1,                     // ■承認権限区分_9
-                -1,                     // ■承認日付_9
-                -1,                     // ■承認順番_9
-                0,                      // 承認者１０承認
-                -1,                     // ■承認者コード_10
-                -1,                     // ■承認権限区分_10
-                -1,                     // ■承認日付_10
-                -1,                     // ■承認順番_10
+                -1,                     // ■担当者確認日
+                -1,                     // ■担当者確認フラグ
+                -1,                     // ■工事担当者
+                -1,                     // ■工事副担当
+                -1,                     // ■指導員
+                -1,                     // ■部署コード
+                2,                      // 担当者名
+                2,                      // 備考（入金明細）
             };
 
             dgvMaster.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             dgvMaster.ColumnHeadersHeight = dgvMaster.ColumnHeadersHeight + 10;
-
+            int colmunNum = mc.Count();
             // ヘッダーセルの値の設定
-            for (int i = 0; i < 77; i++)
+            for (int i = 0; i < colmunNum; i++)
             {
                 // ヘッダーセルの色を設定
                 // 総務
@@ -2818,7 +1792,7 @@
                 // 表示・自動計算
                 else
                 {
-                    dgvMaster.Columns[i].HeaderCell.Style.BackColor = Color.PaleGreen;
+                    dgvMaster.Columns[i].HeaderCell.Style.BackColor = Color.LightGreen;
                 }
             }
         }
@@ -2832,136 +1806,102 @@
         /// <returns></returns>
         private bool CheckOrdererPermission(DepositOrderer orderer)
         {
-            var ioDepData = new IODepositData();
-            var ioDepDtl = new IODepositDataDetail();
 
-            try
-            {
-                // 全部署対象
-                if (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.AllDepartment)
-                {
-                    return true;
-                }
+            // すべて表示させる
+            return true;
 
-                var sql = new StringBuilder();
+            #region 表示権限
+            //var ioDepData = new IODepositData();
+            //var ioDepDtl = new IODepositDataDetail();
 
-                var arWork = new ArrayList();
+            //try
+            //{
+            //    // 全部署対象
+            //    if (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.AllDepartment)
+            //    {
+            //        return true;
+            //    }
 
-                sql.Append("SELECT");
-                sql.Append(" SUM(DepData.DepositAmount) AS DatDepAmount");
-                sql.Append(" FROM");
-                sql.Append(" DepositData DepData");
-                sql.Append(" WHERE");
-                sql.AppendFormat(" DepData.ORDERERSDIVISION = {0}", orderer.OrderersDivision);
-                sql.AppendFormat(" AND DepData.ORDERERSCODE = {0}", orderer.OrderersCode);
-                sql.AppendFormat(" AND DepData.TARGETDATE = {0}", m_Select_TargetDate);
+            //    var sql = new StringBuilder();
+            //    var arWork = new ArrayList();
+            //    sql.Length = 0;
+            //    var arDataPdm = new ArrayList();
 
-                if (!ioDepData.ExecuteReader(sql.ToString(), ref arWork))
-                    return false;
+            //    // 担当分のみ対象の場合
+            //    if (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.InCharge)
+            //    {
+            //        sql.Append("SELECT COUNT(*) FROM DepositDataDetail DepDtl ");
+            //        sql.Append("INNER JOIN RequestHead ReqHead ON ");
+            //        sql.Append("DepDtl.RequestNo = ReqHead.RequestNo ");
+            //        sql.Append("INNER JOIN ConstructionBaseInfo Info ON ");
+            //        sql.Append("ReqHead.ReqConstructionCode = Info.ConstructionCode ");
+            //        sql.AppendFormat("WHERE DepDtl.OrderersDivision = {0} ", orderer.OrderersDivision);
+            //        sql.AppendFormat("AND DepDtl.OrderersCode = {0} ", orderer.OrderersCode);
+            //        sql.AppendFormat("AND DepDtl.TargetDate = {0} ", m_Select_TargetDate);
+            //        sql.AppendFormat("AND (Info.ConstructionPersonCode = {0} OR Info.ConstrSubPersonCode = {0} OR Info.ConstructionInstructor = {0}) ", CommonMotions.LoginUserData.PersonCode);
+            //    }
+            //    // 自部署のみ
+            //    else if (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.OneDepartment)
+            //    {
+            //        sql.Append("SELECT COUNT(*) FROM DepositDataDetail DepDtl ");
+            //        sql.Append("INNER JOIN RequestHead ReqHead ON ");
+            //        sql.Append("DepDtl.RequestNo = ReqHead.RequestNo ");
+            //        sql.Append("INNER JOIN ConstructionBaseInfo Info ON ");
+            //        sql.Append("ReqHead.ReqConstructionCode = Info.ConstructionCode ");
+            //        sql.Append("INNER JOIN PersonInChargeMaster Prsn ON ");
+            //        sql.Append("Info.ConstructionPersonCode = Prsn.PersonCode ");
+            //        sql.AppendFormat("WHERE DepDtl.OrderersDivision = {0} ", orderer.OrderersDivision);
+            //        sql.AppendFormat("AND DepDtl.OrderersCode = {0} ", orderer.OrderersCode);
+            //        sql.AppendFormat("AND DepDtl.TargetDate = {0} ", m_Select_TargetDate);
+            //        sql.AppendFormat("AND Prsn.DepartmentCode = {0} ", CommonMotions.LoginUserData.DepartmentCode);
+            //    }
+            //    // 複数部署
+            //    else if (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.MultiDepartment)
+            //    {
+            //        sql.Append("SELECT COUNT(*) FROM DepositDataDetail DepDtl ");
+            //        sql.Append("INNER JOIN RequestHead ReqHead ON ");
+            //        sql.Append("DepDtl.RequestNo = ReqHead.RequestNo ");
+            //        sql.Append("INNER JOIN ConstructionBaseInfo Info ON ");
+            //        sql.Append("ReqHead.ReqConstructionCode = Info.ConstructionCode ");
+            //        sql.Append("INNER JOIN PersonInChargeMaster Prsn ON ");
+            //        sql.Append("Info.ConstructionPersonCode = Prsn.PersonCode ");
+            //        sql.Append("INNER JOIN PersonDepartmentMaster PrsnDep ON ");
+            //        sql.Append("Prsn.DepartmentCode = PrsnDep.DepartmentCode ");
+            //        sql.AppendFormat("WHERE DepDtl.OrderersDivision = {0} ", orderer.OrderersDivision);
+            //        sql.AppendFormat("AND DepDtl.OrderersCode = {0} ", orderer.OrderersCode);
+            //        sql.AppendFormat("AND DepDtl.TargetDate = {0} ", m_Select_TargetDate);
+            //        sql.AppendFormat("AND PrsnDep.PersonCode = {0} ", CommonMotions.LoginUserData.PersonCode);
 
-                long lDatDepAmount = CommonMotions.cnvLong(((object[])arWork[0])[0]);
+            //    }
 
-                arWork.Clear();
-                sql.Length = 0;
+            //    if (!ioDepDtl.ExecuteReader(sql.ToString(), ref arDataPdm))
+            //        return false;
 
-                sql.Append("SELECT");
-                sql.Append(" IFNULL(SUM(DepDetail.DEPOSITAMOUNT), 0) AS DtlDepAmount");
-                sql.Append(" FROM");
-                sql.Append(" DepositDataDetail DepDetail");
-                sql.Append(" WHERE");
-                sql.AppendFormat(" DepDetail.ORDERERSDIVISION = {0}", orderer.OrderersDivision);
-                sql.AppendFormat(" AND DepDetail.ORDERERSCODE = {0}", orderer.OrderersCode);
-                sql.AppendFormat(" AND DepDetail.TARGETDATE = {0}", m_Select_TargetDate);
+            //    int nCount = CommonMotions.cnvInt(((object[])arDataPdm[0])[0]);
 
-                if (!ioDepDtl.ExecuteReader(sql.ToString(), ref arWork))
-                    return false;
-
-                long lDtlDepAmount = CommonMotions.cnvLong(((object[])arWork[0])[0]);
-
-                // 入金データと入金データ明細の金額が一致しない（＝不明行がある）場合は、無条件で表示対象
-                if (lDatDepAmount != lDtlDepAmount)
-                {
-                    return true;
-                }
-
-                sql.Length = 0;
-
-                var arDataPdm = new ArrayList();
-
-                // 担当分のみ対象の場合
-                if (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.InCharge)
-                {
-                    sql.Append("SELECT COUNT(*) FROM DepositDataDetail DepDtl ");
-                    sql.Append("INNER JOIN RequestHead ReqHead ON ");
-                    sql.Append("DepDtl.RequestNo = ReqHead.RequestNo ");
-                    sql.Append("INNER JOIN ConstructionBaseInfo Info ON ");
-                    sql.Append("ReqHead.ReqConstructionCode = Info.ConstructionCode ");
-                    sql.AppendFormat("WHERE DepDtl.OrderersDivision = {0} ", orderer.OrderersDivision);
-                    sql.AppendFormat("AND DepDtl.OrderersCode = {0} ", orderer.OrderersCode);
-                    sql.AppendFormat("AND DepDtl.TargetDate = {0} ", m_Select_TargetDate);
-                    sql.AppendFormat("AND (Info.ConstructionPersonCode = {0} OR Info.ConstrSubPersonCode = {0} OR Info.ConstructionInstructor = {0}) ", CommonMotions.LoginUserData.PersonCode);
-                }
-                // 自部署のみ
-                else if (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.OneDepartment)
-                {
-                    sql.Append("SELECT COUNT(*) FROM DepositDataDetail DepDtl ");
-                    sql.Append("INNER JOIN RequestHead ReqHead ON ");
-                    sql.Append("DepDtl.RequestNo = ReqHead.RequestNo ");
-                    sql.Append("INNER JOIN ConstructionBaseInfo Info ON ");
-                    sql.Append("ReqHead.ReqConstructionCode = Info.ConstructionCode ");
-                    sql.Append("INNER JOIN PersonInChargeMaster Prsn ON ");
-                    sql.Append("Info.ConstructionPersonCode = Prsn.PersonCode ");
-                    sql.AppendFormat("WHERE DepDtl.OrderersDivision = {0} ", orderer.OrderersDivision);
-                    sql.AppendFormat("AND DepDtl.OrderersCode = {0} ", orderer.OrderersCode);
-                    sql.AppendFormat("AND DepDtl.TargetDate = {0} ", m_Select_TargetDate);
-                    sql.AppendFormat("AND Prsn.DepartmentCode = {0} ", CommonMotions.LoginUserData.DepartmentCode);
-                }
-                // 複数部署
-                else if (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.MultiDepartment)
-                {
-                    sql.Append("SELECT COUNT(*) FROM DepositDataDetail DepDtl ");
-                    sql.Append("INNER JOIN RequestHead ReqHead ON ");
-                    sql.Append("DepDtl.RequestNo = ReqHead.RequestNo ");
-                    sql.Append("INNER JOIN ConstructionBaseInfo Info ON ");
-                    sql.Append("ReqHead.ReqConstructionCode = Info.ConstructionCode ");
-                    sql.Append("INNER JOIN PersonInChargeMaster Prsn ON ");
-                    sql.Append("Info.ConstructionPersonCode = Prsn.PersonCode ");
-                    sql.Append("INNER JOIN PersonDepartmentMaster PrsnDep ON ");
-                    sql.Append("Prsn.DepartmentCode = PrsnDep.DepartmentCode ");
-                    sql.AppendFormat("WHERE DepDtl.OrderersDivision = {0} ", orderer.OrderersDivision);
-                    sql.AppendFormat("AND DepDtl.OrderersCode = {0} ", orderer.OrderersCode);
-                    sql.AppendFormat("AND DepDtl.TargetDate = {0} ", m_Select_TargetDate);
-                    sql.AppendFormat("AND PrsnDep.PersonCode = {0} ", CommonMotions.LoginUserData.PersonCode);
-
-                }
-
-                if (!ioDepDtl.ExecuteReader(sql.ToString(), ref arDataPdm))
-                    return false;
-
-                int nCount = CommonMotions.cnvInt(((object[])arDataPdm[0])[0]);
-
-                // 権限を所有する工事がある場合は保持
-                if (nCount > 0)
-                {
-                    return true;
-                }
-                else
-                {
-                    return false;
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                ioDepData.close();
-                ioDepData = null;
-                ioDepDtl.close();
-                ioDepDtl = null;
-            }
+            //    // 権限を所有する工事がある場合は保持
+            //    if (nCount > 0)
+            //    {
+            //        return true;
+            //    }
+            //    else
+            //    {
+            //        return false;
+            //    }
+            //}
+            //catch (Exception ex)
+            //{
+            //    logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            //    return false;
+            //}
+            //finally
+            //{
+            //    ioDepData.close();
+            //    ioDepData = null;
+            //    ioDepDtl.close();
+            //    ioDepDtl = null;
+            //}
+            #endregion
         }
         #endregion
 
@@ -2976,168 +1916,69 @@
         /// <returns></returns>
         private bool CheckPermission(int DepartmentCode, int ConstructionPersonCode, int ConstrSubPersonCode, int ConstructionInstructor)
         {
-            var ioPdm = new IOMPersonDepartment();
+            // すべて表示させる
+            return true;
 
-            try
-            {
-                // 全部署対象
-                if (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.AllDepartment)
-                {
-                    return true;
-                }
+            #region 表示権限
+            //var ioPdm = new IOMPersonDepartment();
 
-                // 複数部署対象、または自部署のみ対象
-                else if ((m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.MultiDepartment) || (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.OneDepartment))
-                {
-                    var arDataPdm = new ArrayList();
-                    var sql = new StringBuilder();
-                    sql.AppendLine("select Pdm.DepartmentCode ");
-                    sql.AppendLine("from PersonDepartmentMaster as Pdm ");
-                    sql.AppendFormat("where Pdm.PersonCode = {0} ", CommonMotions.LoginUserData.PersonCode);
-                    if (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.OneDepartment)
-                    {
-                        sql.AppendLine("and Pdm.AffiliationFlg = 1 ");
-                    }
-                    if (!ioPdm.ExecuteReader(sql.ToString(), ref arDataPdm))
-                        return false;
-                    foreach (object[] work in arDataPdm)
-                    {
-                        if (CommonMotions.cnvInt(work[0]) == DepartmentCode)
-                        {
-                            return true;
-                        }
-                    }
-                    return false;
-                }
-                // 担当分のみ対象
-                else
-                {
-                    if ((CommonMotions.LoginUserData.PersonCode == ConstructionPersonCode) ||
-                        (CommonMotions.LoginUserData.PersonCode == ConstrSubPersonCode) ||
-                        (CommonMotions.LoginUserData.PersonCode == ConstructionInstructor))
-                    {
-                        return true;
-                    }
-                    else
-                    {
-                        return false;
-                    }
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                ioPdm.close();
-                ioPdm = null;
-            }
-        }
-        #endregion
+            //try
+            //{
+            //    // 全部署対象
+            //    if (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.AllDepartment)
+            //    {
+            //        return true;
+            //    }
 
-        #region 担当未承認の承認者リスト
-        /// <summary>
-        /// 担当未承認の承認者リスト
-        /// </summary>
-        /// <param name="departmentCode"></param>
-        /// <param name="approves"></param>
-        /// <returns></returns>
-        private bool SelectDefaultApprove(int departmentCode, ref List<ApproveData> approves)
-        {
-            var IoAm = new IOMApproval();
-
-            var arDataAm = new ArrayList();
-            var sql = new StringBuilder();
-
-            try
-            {
-                sql.AppendLine("select Am.APPROVALPERSON, Picm.SealPrintName,Am.ApprovalAuthority ");
-                sql.AppendLine("from ApprovalMaster as Am left join PersonInChargeMaster as Picm on Am.APPROVALPERSON = Picm.PERSONCODE ");
-                sql.AppendLine("where Am.APPROVALCODE = 98 ");
-                sql.AppendFormat("and Am.DepartmentCode = {0} ", departmentCode);
-                sql.AppendLine("order by Am.SEQNO desc ");
-
-                if (!IoAm.ExecuteReader(sql.ToString(), ref arDataAm)) return false;
-                approves = new List<ApproveData>();
-                int Order = 1;
-                foreach (object[] work in arDataAm)
-                {
-                    approves.Add(new ApproveData()
-                    {
-                        Key = CommonMotions.cnvInt(work[0]),
-                        Value = CommonMotions.cnvString(work[1]),
-                        Order = Order,
-                        ApprovalAuthority = CommonMotions.cnvInt(work[2])
-                    });
-                    Order++;
-                }
-
-                return true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                IoAm.close();
-                IoAm = null;
-            }
-        }
-        #endregion
-
-        #region 入金データが編集可能か判定
-        /// <summary>
-        /// 入金データの編集可能か判定
-        /// </summary>
-        /// <param name="depositOrderer"></param>
-        /// <returns></returns>
-        private bool CanEditDeposit(DepositOrderer depositOrderer)
-        {
-            //// 最終承認済の場合
-            //if (depositOrderer.HasApprovedByLastApprover)
+            //    // 複数部署対象、または自部署のみ対象
+            //    else if ((m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.MultiDepartment) || (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.OneDepartment))
+            //    {
+            //        var arDataPdm = new ArrayList();
+            //        var sql = new StringBuilder();
+            //        sql.AppendLine("select Pdm.DepartmentCode ");
+            //        sql.AppendLine("from PersonDepartmentMaster as Pdm ");
+            //        sql.AppendFormat("where Pdm.PersonCode = {0} ", CommonMotions.LoginUserData.PersonCode);
+            //        if (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.OneDepartment)
+            //        {
+            //            sql.AppendLine("and Pdm.AffiliationFlg = 1 ");
+            //        }
+            //        if (!ioPdm.ExecuteReader(sql.ToString(), ref arDataPdm))
+            //            return false;
+            //        foreach (object[] work in arDataPdm)
+            //        {
+            //            if (CommonMotions.cnvInt(work[0]) == DepartmentCode)
+            //            {
+            //                return true;
+            //            }
+            //        }
+            //        return false;
+            //    }
+            //    // 担当分のみ対象
+            //    else
+            //    {
+            //        if ((CommonMotions.LoginUserData.PersonCode == ConstructionPersonCode) ||
+            //            (CommonMotions.LoginUserData.PersonCode == ConstrSubPersonCode) ||
+            //            (CommonMotions.LoginUserData.PersonCode == ConstructionInstructor))
+            //        {
+            //            return true;
+            //        }
+            //        else
+            //        {
+            //            return false;
+            //        }
+            //    }
+            //}
+            //catch (Exception ex)
             //{
+            //    logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             //    return false;
             //}
-
-            long lTotalDatAmount = 0;
-            long lTotalDtlAmount = 0;
-
-            // 入金請求先データから入金金額（総務担当者）を取得
-            foreach (Deposit Dep in depositOrderer.Deposits)
-            {
-                lTotalDatAmount += (Dep.DepositAmountBill.GetValueOrDefault(0) + Dep.DepositAmountCash.GetValueOrDefault(0));    
-            }
-
-            bool bApprovalEnd = true;  // 承認完了フラグ
-
-            // 入金データ明細（工事担当者）から入金金額を取得
-            foreach (DepositDetail DepDtl in depositOrderer.DepositDetails)
-            {
-                lTotalDtlAmount += DepDtl.DepositAmount;
-
-                // 最終承認が完了していない入金データ明細が存在する場合
-                if (DepDtl.IsApprovedByLastApprover == false)
-                {
-                    bApprovalEnd = false;
-                }
-            }
-
-            // 不明行が存在する場合は、編集可能とする。
-            if (lTotalDtlAmount != lTotalDatAmount)
-            {
-                return m_UserInfo.CanEditDeposit;
-            }
-
-            if (bApprovalEnd == false)
-            {
-                return m_UserInfo.CanEditDeposit;
-            } 
-   
-            return false;
+            //finally
+            //{
+            //    ioPdm.close();
+            //    ioPdm = null;
+            //}
+            #endregion
         }
         #endregion
 
@@ -3149,29 +1990,33 @@
         /// <returns></returns>
         private bool CanEditDepositDetail(DepositDetail depositDetail)
         {
-            // 担当者の場合
-            if (m_UserInfo.m_Type == CommonDefine.SecurityRankPos.NormalAuthority)
+            // 担当者、副担当、指導員の場合
+            if (CommonMotions.LoginUserData.PersonCode == depositDetail.ConstructionPersonCode ||
+                CommonMotions.LoginUserData.PersonCode == depositDetail.ConstrSubPersonCode ||
+                CommonMotions.LoginUserData.PersonCode == depositDetail.ConstructionInstructor)
             {
                 // 承認済みなら編集不可
-                if (depositDetail.IsApprovedByStaff || depositDetail.IsApprovedByApprover)
+                if (depositDetail.ConfirmationEndFlg == 1)
+                {
                     return false;
+                }
+                return true;
             }
             // 所属長、統括者の場合
             else if (m_UserInfo.m_Type == CommonDefine.SecurityRankPos.LimitedAuthority || m_UserInfo.m_Type == CommonDefine.SecurityRankPos.FreeAuthority)
             {
-                // 上位の承認者でなければ編集不可
-                if (!IsUpperLevelApprover(depositDetail))
+                // 上属の上長でなければ編集不可
+                if ((int)CommonMotions.LoginUserData.DepartmentCode != depositDetail.DepartmentCode)
+                {
                     return false;
+                }
             }
             // 特別権限の場合
             else if (m_UserInfo.m_Type == CommonDefine.SecurityRankPos.SpecialAuthority)
             {
-                if (depositDetail.IsApprovedByLastApprover)
-                    return false;
-
                 return true;
             }
-            return m_UserInfo.CanEditDepositDetail;
+            return false;
         }
         #endregion
 
@@ -3181,94 +2026,16 @@
         /// </summary>
         /// <param name="depositDetail"></param>
         /// <returns></returns>
-        private bool IsUpperLevelApprover(DepositDetail depositDetail)
-        {
-            if (depositDetail.DepositApprovals.Count == 0)
-                return true;
-            var lastApproverIndex = depositDetail.DepositApprovals.FindLastIndex(da => da.ApprovalDate != "");
-            var myIndex = depositDetail.DepositApprovals.FindLastIndex(da => da.ApprovalPerson == CommonMotions.LoginUserData.PersonCode);
-            return myIndex > lastApproverIndex;
-        }
+        //private bool IsUpperLevelApprover(DepositDetail depositDetail)
+        //{
+        //    if (depositDetail.DepositApprovals.Count == 0)
+        //        return true;
+        //    var lastApproverIndex = depositDetail.DepositApprovals.FindLastIndex(da => da.ApprovalDate != "");
+        //    var myIndex = depositDetail.DepositApprovals.FindLastIndex(da => da.ApprovalPerson == CommonMotions.LoginUserData.PersonCode);
+        //    return myIndex > lastApproverIndex;
+        //}
         #endregion
 
-        #region 編集用空白行追加
-        /// <summary>
-        /// 編集用空白行追加
-        /// </summary>
-        /// <param name="index"></param>
-        private void AddBlankRow(DepositOrderer depositOrderer, int index)
-        {
-            var headerIndex = DetectHeaderIndex(index);
-            var headerCells = dgvMaster.Rows[headerIndex].Cells;
-            var blankIndex = dgvMaster.RowCount;
-            for (var i = headerIndex; i < dgvMaster.RowCount; i++)
-            {
-                var cells = dgvMaster.Rows[i].Cells;
-                if (CommonMotions.cnvInt(headerCells[(int)DispColumn.OrderersDivision].Value) != CommonMotions.cnvInt(cells[(int)DispColumn.OrderersDivision].Value)
-                    || CommonMotions.cnvInt(headerCells[(int)DispColumn.OrderersCode].Value) != CommonMotions.cnvInt(cells[(int)DispColumn.OrderersCode].Value))
-                {
-                    blankIndex = i;
-                    break;
-                }
-            }
-            dgvMaster.Rows.Insert(blankIndex);
-            var row = dgvMaster.Rows[blankIndex];
-            row.ReadOnly = true;
-            row.Cells[(int)DispColumn.OrderersDivision].Value = headerCells[(int)DispColumn.OrderersDivision].Value;
-            row.Cells[(int)DispColumn.OrderersCode].Value = headerCells[(int)DispColumn.OrderersCode].Value;
-            var readOnly = !CanEditDeposit(depositOrderer);
-            row.Cells[(int)DispColumn.DepositDate].ReadOnly = readOnly;
-            row.Cells[(int)DispColumn.DepositAmountCash].ReadOnly = readOnly;
-            row.Cells[(int)DispColumn.DepositAmountBill].ReadOnly = readOnly;
-        }
-        #endregion
-
-        #region ボタン制御
-        /// <summary>
-        /// ボタン制御
-        /// </summary>
-        private void ControlButton()
-        {
-            try
-            {
-                // 特別権限は、無条件でボタン有効
-                if( m_UserInfo.m_Type == (int)CommonDefine.SecurityRankPos.SpecialAuthority)
-                {
-                    btnAddCmp.Enabled = true;
-                    btnDelCmp.Enabled = true;
-                    btnAddFld.Enabled = true;
-
-                    return;
-                }
-
-                // 総務担当外
-                if (m_UserInfo.m_GeneralAffairsFlg == 0)
-                {
-                    btnAddCmp.Enabled = false;
-                    btnDelCmp.Enabled = false;
-                    btnAddFld.Enabled = true;
-                }
-                // 総務担当
-                else
-                {
-                    btnAddCmp.Enabled = true;
-                    btnDelCmp.Enabled = true;
-                    btnAddFld.Enabled = false;
-                }
-
-                // 表示件数が0の場合は「現場追加」を無効
-                if (dgvMaster.RowCount <= 0)
-                {
-                    btnAddFld.Enabled = false;
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
         #region 入金請求先情報を取得する。
         /// <summary>
         /// 入金請求先情報を取得する。
@@ -3280,7 +2047,9 @@
             var cells = dgvMaster.Rows[index].Cells;
             var orderersDivision = CommonMotions.cnvInt(cells[(int)DispColumn.OrderersDivision].Value);
             var orderersCode = CommonMotions.cnvInt(cells[(int)DispColumn.OrderersCode].Value);
-            return FindDepositOrderer(orderersDivision, orderersCode);
+            var no = CommonMotions.cnvInt(cells[(int)DispColumn.No].Value);
+
+            return FindDepositOrderer(no, orderersCode);
         }
         #endregion
 
@@ -3291,9 +2060,9 @@
         /// <param name="orderersDivision"></param>
         /// <param name="orderersCode"></param>
         /// <returns></returns>
-        private DepositOrderer FindDepositOrderer(int orderersDivision, int orderersCode)
+        private DepositOrderer FindDepositOrderer(int No, int orderersCode)
         {
-            return depositOrderers.Find(dh => !dh.Deleted && dh.OrderersDivision == orderersDivision && dh.OrderersCode == orderersCode);
+            return depositOrderers.Find(dh => !dh.Deleted && dh.No == No && dh.OrderersCode == orderersCode);
         }
         #endregion
 
@@ -3308,7 +2077,7 @@
             var cells = dgvMaster.Rows[index].Cells;
             return new OrderersKey()
             {
-                OrderersDivision = CommonMotions.cnvInt(cells[(int)DispColumn.OrderersDivision].Value),
+                OrderersDivision = CommonMotions.cnvInt(cells[(int)DispColumn.No].Value),
                 OrderersCode = CommonMotions.cnvInt(cells[(int)DispColumn.OrderersCode].Value),
             };
         }
@@ -3367,9 +2136,9 @@
         }
         #endregion
 
-        #region セル検証
+        #region 金額セル検証
         /// <summary>
-        /// セル検証
+        /// 金額セル検証
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
@@ -3383,14 +2152,12 @@
                 return;
             }
 
-            if ((tcol == (int)DispColumn.DepositAmountCash) ||              // 入金金額（振込）
-               (tcol == (int)DispColumn.DepositAmountBill)||                // 入金金額（手形）
-               (tcol == (int)DispColumn.DepositAmount) ||                   // 入金金額
+            if ((tcol == (int)DispColumn.DepositAmount) ||                  // 入金金額
                (tcol == (int)DispColumn.DiscountAmount) ||                  // 値引金額
                (tcol == (int)DispColumn.CnstrPrice) ||                      // 協力金
                (tcol == (int)DispColumn.Fees) ||                            // 手数料
                (tcol == (int)DispColumn.OtherAdjustments) ||                // その他調整
-               (tcol == (int)DispColumn.CarryAmount))                       // 次回繰越
+               (tcol == (int)DispColumn.DifferentAmount))                   // 次回繰越
             {
                 // カンマは一旦削除して文字列を取得
                 string str = e.FormattedValue.ToString().Replace(",", string.Empty); ;
@@ -3427,50 +2194,56 @@
         }
         #endregion
 
-        #region セル編集開始
+        #region セルフォーマッティング
         /// <summary>
-        /// セル編集開始
+        /// セルフォーマッティング
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
-        private void dgvMaster_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
+
+        private void dgvMaster_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
         {
-            dgvMaster.CellBeginEdit -= dgvMaster_CellBeginEdit;
+            DataGridView dgv = (DataGridView)sender;
 
-            int tcol = e.ColumnIndex;
-            int trow = e.RowIndex;
-
-            if ((tcol == (int)DispColumn.DepositAmountCash) ||
-                (tcol == (int)DispColumn.DepositAmountBill) ||
-                (tcol == (int)DispColumn.DepositAmount) ||
-                (tcol == (int)DispColumn.DiscountAmount) ||
-                (tcol == (int)DispColumn.CnstrPrice) ||
-                (tcol == (int)DispColumn.Fees) ||
-                (tcol == (int)DispColumn.OtherAdjustments) ||
-                (tcol == (int)DispColumn.CarryAmount))
+            try
             {
-                string val;
+                if (dgv.RowCount == 0)
+                {
+                    return;
+                }
 
-                // セルに値が格納されている場合
-                if (dgvMaster[tcol, trow].Value != null)
+                if (CommonMotions.cnvString(dgv[(int)DispColumn.No, e.RowIndex].Value) == "")
                 {
-                    // カンマ区切りを解除
-                    val = dgvMaster[tcol, trow].Value.ToString().Replace(",", string.Empty);
+                    return;
                 }
-                else
+                else if (e.ColumnIndex == (int)DispColumn.DepositAmount
+                    || e.ColumnIndex == (int)DispColumn.DiscountAmount
+                    || e.ColumnIndex == (int)DispColumn.CnstrPrice
+                    || e.ColumnIndex == (int)DispColumn.Fees
+                    || e.ColumnIndex == (int)DispColumn.OtherAdjustments
+                    || e.ColumnIndex == (int)DispColumn.DifferentAmount)
                 {
-                    // 0を入力
-                    val = "0";
+                    // マイナス値は赤
+                    if (CommonMotions.cnvInt(dgv[e.ColumnIndex, e.RowIndex].Value) < 0)
+                    {
+                        dgv[e.ColumnIndex, e.RowIndex].Style.ForeColor = Color.Red;
+                    }
+                    else
+                    {
+                        dgv[e.ColumnIndex, e.RowIndex].Style.ForeColor = SystemColors.ControlText;
+                    }
+
+                    dgv[e.ColumnIndex, e.RowIndex].Value = CommonMotions.cnvInt(dgv[e.ColumnIndex, e.RowIndex].Value).ToString("#,0");
                 }
-                dgvMaster[tcol, trow].Value = val;
 
-                // 文字色は一律黒
-                dgvMaster[tcol, trow].Style.ForeColor = Color.Black;
-
             }
-            dgvMaster.CellBeginEdit += dgvMaster_CellBeginEdit;
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
 
         }
         #endregion
+
     }
 }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.resx	(revision 184)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.resx	(revision 185)
@@ -117,58 +117,43 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
-  <metadata name="EditStatus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
   <metadata name="No.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="OrderersDivision.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="RequestMonth.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="OrderersCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="RequestNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="SeqNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="OrderersDivision.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="LineCount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="OrderersCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
   <metadata name="OrderersName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="DepositDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="ConstructionCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="DepositAmountCash.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="DepositAmountBill.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="RequestNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="OrderNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
   <metadata name="ConstructionName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="ConstructionName_Raw.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="BillPrice.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="PaymentSchedule.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="TaxPrice.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="BillCreationDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="DepositAmountCash.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="BillPrice.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="DepositAmountBill.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="TaxPrice.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="OrderNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
   <metadata name="DepositAmount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
@@ -189,163 +174,31 @@
   <metadata name="CarryAmount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="PersonName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="ConfirmationPersonCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="PersonCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="ConfirmationDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="PersonDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="ConfirmationEndFlg.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="ApprovalName_1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="ConstructionPersonCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="ApprovalCode_1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="ConstrSubPersonCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="ApprovalAuthority_1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="ConstructionInstructor.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="ApprovalDate_1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="DepartmentCode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="ApprovalOrder_1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="PersonName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="ApprovalName_2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="NoteDD.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="ApprovalCode_2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalAuthority_2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalDate_2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalOrder_2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalName_3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalCode_3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalAuthority_3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalDate_3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalOrder_3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalName_4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalCode_4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalAuthority_4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalDate_4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalOrder_4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalName_5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalCode_5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalAuthority_5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalDate_5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalOrder_5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalName_6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalCode_6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalAuthority_6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalDate_6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalOrder_6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalName_7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalCode_7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalAuthority_7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalDate_7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalOrder_7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalName_8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalCode_8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalAuthority_8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalDate_8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalOrder_8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalName_9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalCode_9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalAuthority_9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalDate_9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalOrder_9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalName_10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalCode_10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalAuthority_10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalDate_10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="ApprovalOrder_10.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/ProcessManagement.csproj
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj	(revision 184)
+++ branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj	(revision 185)
@@ -196,10 +196,12 @@
     <Compile Include="DataModel\ProcessApprovalCommnet.cs" />
     <Compile Include="DataModel\ProcessApprovalDetail.cs" />
     <Compile Include="DataModel\ProcessExcuter.cs" />
+    <Compile Include="DataModel\PurchaseOrderDate.cs" />
     <Compile Include="DataModel\RequestData.cs" />
     <Compile Include="DataModel\RequestDataDetail.cs" />
     <Compile Include="DataModel\RequestGridKeys.cs" />
     <Compile Include="DataModel\RequestHead.cs" />
+    <Compile Include="DataModel\RequestOrderDate.cs" />
     <Compile Include="DataModel\SubConstrJobItemRegist.cs" />
     <Compile Include="DataModel\SubConstrJobLinkRegist.cs" />
     <Compile Include="DataModel\SubConstrRegist.cs" />
@@ -242,9 +244,11 @@
     <Compile Include="DB\IOAccess\IOProceedingsDataAttend.cs" />
     <Compile Include="DB\IOAccess\IOProcessApprovalCommnet.cs" />
     <Compile Include="DB\IOAccess\IOProcessApprovalDetail.cs" />
+    <Compile Include="DB\IOAccess\IOPurchaseOrderDate.cs" />
     <Compile Include="DB\IOAccess\IORequestData.cs" />
     <Compile Include="DB\IOAccess\IORequestDataDetail.cs" />
     <Compile Include="DB\IOAccess\IORequestHead.cs" />
+    <Compile Include="DB\IOAccess\IORequestOrderDate.cs" />
     <Compile Include="DB\IOAccess\IOSubConstrJobItemRegist.cs" />
     <Compile Include="DB\IOAccess\IOSubConstrJobLinkRegist.cs" />
     <Compile Include="DB\IOAccess\IOSubConstrRegist.cs" />
@@ -334,11 +338,15 @@
     <Compile Include="Forms\DataEntry\DRWork\FrmDRWorkList.Designer.cs">
       <DependentUpon>FrmDRWorkList.cs</DependentUpon>
     </Compile>
-    <Compile Include="Forms\DataEntry\Material\ConstrMATLList\FrmConstrMATLList.cs" />
+    <Compile Include="Forms\DataEntry\Material\ConstrMATLList\FrmConstrMATLList.cs">
+      <SubType>Form</SubType>
+    </Compile>
     <Compile Include="Forms\DataEntry\Material\ConstrMATLList\FrmConstrMATLList.designer.cs">
       <DependentUpon>FrmConstrMATLList.cs</DependentUpon>
     </Compile>
-    <Compile Include="Forms\DataEntry\Material\ConstrMATLList\FrmConstrMATLListAuxiliary.cs" />
+    <Compile Include="Forms\DataEntry\Material\ConstrMATLList\FrmConstrMATLListAuxiliary.cs">
+      <SubType>Form</SubType>
+    </Compile>
     <Compile Include="Forms\DataEntry\Material\MaterialCountEntry\FrmMaterialCountEntry.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -574,11 +582,30 @@
     <Compile Include="Forms\DataEntry\PurchaseOrderStatus\FrmPurchaseOrderStatusAuxiliary.cs">
       <SubType>Form</SubType>
     </Compile>
-    <Compile Include="Forms\DataEntry\Request\ConstrReqList\FrmConstrReqList.cs" />
+    <Compile Include="Forms\DataEntry\PurchaseStatusInput\FrmPurchaseStatusInput.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Forms\DataEntry\PurchaseStatusInput\FrmPurchaseStatusInput.designer.cs">
+      <DependentUpon>FrmPurchaseStatusInput.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Forms\DataEntry\PurchaseStatusInput\FrmPurchaseStatusInputAuxiliary.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Forms\DataEntry\Request\ConstrReqList\FrmConstrReqList.cs">
+      <SubType>Form</SubType>
+    </Compile>
     <Compile Include="Forms\DataEntry\Request\ConstrReqList\FrmConstrReqList.designer.cs">
       <DependentUpon>FrmConstrReqList.cs</DependentUpon>
     </Compile>
-    <Compile Include="Forms\DataEntry\Request\ConstrReqList\FrmConstrReqListAuxiliary.cs" />
+    <Compile Include="Forms\DataEntry\Request\ConstrReqList\FrmConstrReqListAuxiliary.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Forms\DataEntry\Request\FrmEntryDeposit.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Forms\DataEntry\Request\FrmEntryDeposit.Designer.cs">
+      <DependentUpon>FrmEntryDeposit.cs</DependentUpon>
+    </Compile>
     <Compile Include="Forms\DataEntry\Request\FrmRegField.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -642,6 +669,9 @@
     <Compile Include="Forms\DataEntry\Request\SalesConfirm\FrmSalesConfirm.Designer.cs">
       <DependentUpon>FrmSalesConfirm.cs</DependentUpon>
     </Compile>
+    <Compile Include="Forms\DataEntry\Request\SalesConfirm\FrmSalesConfirmAuxiliary.cs">
+      <SubType>Form</SubType>
+    </Compile>
     <Compile Include="Forms\DataEntry\Request\SelectPayment\FrmSelectPayment.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -1361,9 +1391,15 @@
     <EmbeddedResource Include="Forms\DataEntry\PurchaseOrderStatus\FrmPurchaseOrderStatus.resx">
       <DependentUpon>FrmPurchaseOrderStatus.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="Forms\DataEntry\PurchaseStatusInput\FrmPurchaseStatusInput.resx">
+      <DependentUpon>FrmPurchaseStatusInput.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="Forms\DataEntry\Request\ConstrReqList\FrmConstrReqList.resx">
       <DependentUpon>FrmConstrReqList.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="Forms\DataEntry\Request\FrmEntryDeposit.resx">
+      <DependentUpon>FrmEntryDeposit.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="Forms\DataEntry\Request\FrmRegField.resx">
       <DependentUpon>FrmRegField.cs</DependentUpon>
     </EmbeddedResource>
Index: branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj.user
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj.user	(revision 184)
+++ branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj.user	(revision 185)
@@ -3,7 +3,7 @@
   <PropertyGroup>
     <ReferencePath>
     </ReferencePath>
-    <ProjectView>ProjectFiles</ProjectView>
+    <ProjectView>ShowAllFiles</ProjectView>
     <PublishUrlHistory>publish\</PublishUrlHistory>
     <InstallUrlHistory />
     <SupportUrlHistory />
