プロジェクト

全般

プロフィール

リビジョン 123

山内7年以上前に追加

資材管理(資材貸出、資材返却で工事を選択されていない時の対処)
支払明細データの構造体設定(CommonMotions.chkCellBlankを実装)
入金確認(空行に金額0が表示されるのを廃止)

差分を表示:

branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs
14 14
        /// <summary>
15 15
        /// 本体バージョン
16 16
        /// </summary>
17
        public static int s_SystemVersion = 26;
17
        public static int s_SystemVersion = 27;
18 18

  
19 19
        /// <summary>
20 20
        /// コピー・環境バージョン
21 21
        /// </summary>
22
        public static int s_UpDateCopyVersion = 1;
22
        public static int s_UpDateCopyVersion = 2;
23 23
    }
24 24
}
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPaymentDataDetail.cs
256 256
            try
257 257
            {
258 258
                // データ取得
259
                wrk.CompanyCode = int.Parse(objwrk[(int)NameColumn.CompanyCode].ToString());
260
                wrk.TargetDate = int.Parse(objwrk[(int)NameColumn.TargetDate].ToString());
261
                wrk.SeqNo = int.Parse(objwrk[(int)NameColumn.SeqNo].ToString());
262
                wrk.LineCount = int.Parse(objwrk[(int)NameColumn.LineCount].ToString());
263
                wrk.BillPrice = long.Parse(objwrk[(int)NameColumn.BillPrice].ToString());
264
                wrk.DiscountPrice = long.Parse(objwrk[(int)NameColumn.DiscountPrice].ToString());
259
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.CompanyCode])) wrk.CompanyCode = int.Parse(objwrk[(int)NameColumn.CompanyCode].ToString());
260
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.TargetDate])) wrk.TargetDate = int.Parse(objwrk[(int)NameColumn.TargetDate].ToString());
261
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.SeqNo])) wrk.SeqNo = int.Parse(objwrk[(int)NameColumn.SeqNo].ToString());
262
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.LineCount])) wrk.LineCount = int.Parse(objwrk[(int)NameColumn.LineCount].ToString());
265 263

  
266
                wrk.OffsetPrice = long.Parse(objwrk[(int)NameColumn.OffsetPrice].ToString());
267
                wrk.NextCoPrice = long.Parse(objwrk[(int)NameColumn.NextCoPrice].ToString());
268
                wrk.HighwPrice = long.Parse(objwrk[(int)NameColumn.HighwPrice].ToString());
269
                wrk.HardwPrice = long.Parse(objwrk[(int)NameColumn.HardwPrice].ToString());
270
                wrk.IndsWasteTax = long.Parse(objwrk[(int)NameColumn.IndsWasteTax].ToString());
264
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.BillPrice])) wrk.BillPrice = long.Parse(objwrk[(int)NameColumn.BillPrice].ToString());
265
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.DiscountPrice])) wrk.DiscountPrice = long.Parse(objwrk[(int)NameColumn.DiscountPrice].ToString());
266
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.OffsetPrice])) wrk.OffsetPrice = long.Parse(objwrk[(int)NameColumn.OffsetPrice].ToString());
267
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.NextCoPrice])) wrk.NextCoPrice = long.Parse(objwrk[(int)NameColumn.NextCoPrice].ToString());
268
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.HighwPrice])) wrk.HighwPrice = long.Parse(objwrk[(int)NameColumn.HighwPrice].ToString());
269
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.HardwPrice])) wrk.HardwPrice = long.Parse(objwrk[(int)NameColumn.HardwPrice].ToString());
270
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.IndsWasteTax])) wrk.IndsWasteTax = long.Parse(objwrk[(int)NameColumn.IndsWasteTax].ToString());
271
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.CnstrPrice])) wrk.CnstrPrice = long.Parse(objwrk[(int)NameColumn.CnstrPrice].ToString());
272
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.CnstrPriceExist])) wrk.CnstrPriceExist = int.Parse(objwrk[(int)NameColumn.CnstrPriceExist].ToString());
273
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.ApprovalPersonCode])) wrk.ApprovalPersonCode = int.Parse(objwrk[(int)NameColumn.ApprovalPersonCode].ToString());
271 274

  
272
                wrk.CnstrPrice = long.Parse(objwrk[(int)NameColumn.CnstrPrice].ToString());
273
                wrk.CnstrPriceExist = int.Parse(objwrk[(int)NameColumn.CnstrPriceExist].ToString());
274
                wrk.ApprovalPersonCode = int.Parse(objwrk[(int)NameColumn.ApprovalPersonCode].ToString());
275
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.ApprovalDate])) wrk.ApprovalDate = DateTime.Parse(objwrk[(int)NameColumn.ApprovalDate].ToString());
276
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.ApprovalEndFlg])) wrk.ApprovalEndFlg = int.Parse(objwrk[(int)NameColumn.ApprovalEndFlg].ToString());
275 277

  
276
                wrk.ApprovalDate = DateTime.Parse(objwrk[(int)NameColumn.ApprovalDate].ToString());
277
                wrk.ApprovalEndFlg = int.Parse(objwrk[(int)NameColumn.ApprovalEndFlg].ToString());
278

  
279
                wrk.EntryDate = DateTime.Parse(objwrk[(int)NameColumn.EntryDate].ToString());
280
                wrk.UpdateDate = DateTime.Parse(objwrk[(int)NameColumn.UpdateDate].ToString());
278
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.EntryDate])) wrk.EntryDate = DateTime.Parse(objwrk[(int)NameColumn.EntryDate].ToString());
279
                if (!CommonMotions.chkCellBlank(objwrk[(int)NameColumn.UpdateDate])) wrk.UpdateDate = DateTime.Parse(objwrk[(int)NameColumn.UpdateDate].ToString());
281 280
            }
282 281
            catch (MySqlException myex)
283 282
            {
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/MaterialReserveEntry/FrmMaterialReserveEntry.cs
303 303

  
304 304
            }
305 305
        }
306

  
306 307
        /// <summary>
307 308
        /// 終了ボタン押下
308 309
        /// </summary>
......
320 321
        /// <param name="e"></param>
321 322
        private void FrmMaterialReserveEntry_Load(object sender, EventArgs e)
322 323
        {
324
            // 工事情報が選択されていない時
325
            if (this.ConstructionCode == 0)
326
            {
327
                this.Close();
328
                return;
329
            }
323 330

  
324 331
            // ロックを実行する為
325 332
            try
......
356 363
            // *-----* 処理移動ボタン設定 *-----*
357 364
            CreateProcessContextMenu(m_SubForm);
358 365
            // *-----* 処理移動ボタン設定 *-----*
359

  
360 366
        }
361 367

  
362 368
        /// <summary>
......
383 389
                    r.Cells[(int)DispColumn.DisplayOrder].Value = "0";
384 390
            }
385 391
        }
392

  
386 393
        /// <summary>
387 394
        /// 行追加ボタン押下
388 395
        /// </summary>
......
1703 1710
        }
1704 1711
    #endregion
1705 1712

  
1706

  
1707

  
1708 1713
    }
1709 1714
}
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/MaterialReturnEntry/FrmMaterialReturnEntry.cs
24 24
using ProcessManagement.Forms.CustomControls;
25 25
using ProcessManagement.Forms.ControlsAction;
26 26

  
27
//*------------------------ 単位マスタメンテ画面 ----------------------*
27
//*------------------------ 資材返却画面 ----------------------*
28 28
//  2015/07/14  Ver1.0.0.0      Create Source           
29 29
//
30 30
//
......
209 209
            // 前プロセスに戻る
210 210
            ClsExcute.BackProcess();
211 211
        }
212

  
212 213
        /// <summary>
213 214
        /// 終了ボタン押下
214 215
        /// </summary>
......
226 227
        /// <param name="e"></param>
227 228
        private void FrmMaterialReturnEntry_Load(object sender, EventArgs e)
228 229
        {
230
            // 工事情報が選択されていない時
231
            if (this.ConstructionCode == 0)
232
            {
233
                this.Close();
234
                return;
235
            }
236

  
229 237
            // 初期表示
230 238
            InitDataLoad();
231 239

  
......
273 281
                    r.Cells[(int)DispColumn.DisplayOrder].Value = "0";
274 282
            }
275 283
        }
284

  
276 285
        /// <summary>
277 286
        /// 行追加ボタン押下
278 287
        /// </summary>
......
448 457
            }
449 458
        }
450 459

  
451

  
452 460
        /// <summary>
453 461
        /// セルクリック
454 462
        /// </summary>
......
586 594
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
587 595
                return false;
588 596
            }
589
      }
597
        }
590 598

  
591 599
        /// <summary>
592 600
        /// データ登録
......
1019 1027

  
1020 1028
        #endregion
1021 1029

  
1022

  
1023

  
1024

  
1025 1030
    }
1026 1031
}
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmSelectRegField.cs
377 377
                }
378 378

  
379 379
                // 空文字も無視
380
                if (dgv1[tcol, trow].Value == string.Empty)
380
                if (dgv1[tcol, trow].Value.ToString() == string.Empty)
381 381
                {
382 382
                    return;
383 383
                }
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.Designer.cs
28 28
        /// </summary>
29 29
        private void InitializeComponent()
30 30
        {
31
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle43 = new System.Windows.Forms.DataGridViewCellStyle();
32
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle44 = new System.Windows.Forms.DataGridViewCellStyle();
33
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle45 = new System.Windows.Forms.DataGridViewCellStyle();
34
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle46 = new System.Windows.Forms.DataGridViewCellStyle();
35
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle47 = new System.Windows.Forms.DataGridViewCellStyle();
36
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle48 = new System.Windows.Forms.DataGridViewCellStyle();
37
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle49 = new System.Windows.Forms.DataGridViewCellStyle();
38
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle50 = new System.Windows.Forms.DataGridViewCellStyle();
39
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle51 = new System.Windows.Forms.DataGridViewCellStyle();
40
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle52 = new System.Windows.Forms.DataGridViewCellStyle();
41
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle53 = new System.Windows.Forms.DataGridViewCellStyle();
42
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle54 = new System.Windows.Forms.DataGridViewCellStyle();
43
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle55 = new System.Windows.Forms.DataGridViewCellStyle();
44
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle56 = new System.Windows.Forms.DataGridViewCellStyle();
45
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle57 = new System.Windows.Forms.DataGridViewCellStyle();
46
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle58 = new System.Windows.Forms.DataGridViewCellStyle();
47
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle59 = new System.Windows.Forms.DataGridViewCellStyle();
48
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle60 = new System.Windows.Forms.DataGridViewCellStyle();
49
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle61 = new System.Windows.Forms.DataGridViewCellStyle();
50
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle62 = new System.Windows.Forms.DataGridViewCellStyle();
51
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle63 = new System.Windows.Forms.DataGridViewCellStyle();
31
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
32
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
33
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
34
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
35
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
36
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
37
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
38
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
39
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
40
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
41
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
42
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
43
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
44
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
45
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
46
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
47
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
48
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
49
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
50
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
51
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
52 52
            this.label3 = new System.Windows.Forms.Label();
53 53
            this.dgv1 = new System.Windows.Forms.DataGridView();
54
            this.label2 = new System.Windows.Forms.Label();
55
            this.btnEntry = new System.Windows.Forms.Button();
56
            this.btnEnd = new System.Windows.Forms.Button();
57
            this.btnAdd = new System.Windows.Forms.Button();
58
            this.btnOtherProc = new System.Windows.Forms.Button();
59
            this.lblStatus = new System.Windows.Forms.Label();
60
            this.label4 = new System.Windows.Forms.Label();
61
            this.cbReqMonth = new System.Windows.Forms.ComboBox();
62
            this.label5 = new System.Windows.Forms.Label();
63
            this.lblReqOrder = new System.Windows.Forms.Label();
64
            this.btnApproval = new System.Windows.Forms.Button();
65
            this.txtOrderer = new System.Windows.Forms.TextBox();
66
            this.button1 = new System.Windows.Forms.Button();
67
            this.pnlNormal = new System.Windows.Forms.Panel();
68
            this.pnlApproval = new System.Windows.Forms.Panel();
69
            this.btnDeny = new System.Windows.Forms.Button();
70
            this.btnPend = new System.Windows.Forms.Button();
71
            this.btnAgree = new System.Windows.Forms.Button();
72 54
            this.col001 = new System.Windows.Forms.DataGridViewTextBoxColumn();
73 55
            this.col002 = new System.Windows.Forms.DataGridViewTextBoxColumn();
74 56
            this.col003 = new System.Windows.Forms.DataGridViewTextBoxColumn();
......
94 76
            this.col23 = new System.Windows.Forms.DataGridViewTextBoxColumn();
95 77
            this.col098 = new System.Windows.Forms.DataGridViewTextBoxColumn();
96 78
            this.col99 = new System.Windows.Forms.DataGridViewTextBoxColumn();
79
            this.label2 = new System.Windows.Forms.Label();
80
            this.btnEntry = new System.Windows.Forms.Button();
81
            this.btnEnd = new System.Windows.Forms.Button();
82
            this.btnAdd = new System.Windows.Forms.Button();
83
            this.btnOtherProc = new System.Windows.Forms.Button();
84
            this.lblStatus = new System.Windows.Forms.Label();
85
            this.label4 = new System.Windows.Forms.Label();
86
            this.cbReqMonth = new System.Windows.Forms.ComboBox();
87
            this.label5 = new System.Windows.Forms.Label();
88
            this.lblReqOrder = new System.Windows.Forms.Label();
89
            this.btnApproval = new System.Windows.Forms.Button();
90
            this.txtOrderer = new System.Windows.Forms.TextBox();
91
            this.button1 = new System.Windows.Forms.Button();
92
            this.pnlNormal = new System.Windows.Forms.Panel();
93
            this.pnlApproval = new System.Windows.Forms.Panel();
94
            this.btnDeny = new System.Windows.Forms.Button();
95
            this.btnPend = new System.Windows.Forms.Button();
96
            this.btnAgree = new System.Windows.Forms.Button();
97 97
            ((System.ComponentModel.ISupportInitialize)(this.dgv1)).BeginInit();
98 98
            this.pnlNormal.SuspendLayout();
99 99
            this.pnlApproval.SuspendLayout();
......
153 153
            this.dgv1.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dgv1_CellValidating);
154 154
            this.dgv1.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv1_CellValueChanged);
155 155
            // 
156
            // label2
157
            // 
158
            this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
159
            this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
160
            this.label2.CausesValidation = false;
161
            this.label2.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
162
            this.label2.Location = new System.Drawing.Point(12, 63);
163
            this.label2.Name = "label2";
164
            this.label2.Size = new System.Drawing.Size(100, 25);
165
            this.label2.TabIndex = 2;
166
            this.label2.Text = "請求先";
167
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
168
            // 
169
            // btnEntry
170
            // 
171
            this.btnEntry.BackColor = System.Drawing.Color.GreenYellow;
172
            this.btnEntry.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
173
            this.btnEntry.ForeColor = System.Drawing.Color.Black;
174
            this.btnEntry.Location = new System.Drawing.Point(1071, 585);
175
            this.btnEntry.Name = "btnEntry";
176
            this.btnEntry.Size = new System.Drawing.Size(120, 28);
177
            this.btnEntry.TabIndex = 13;
178
            this.btnEntry.Text = "登 録";
179
            this.btnEntry.UseVisualStyleBackColor = false;
180
            this.btnEntry.Click += new System.EventHandler(this.btnEntry_Click);
181
            // 
182
            // btnEnd
183
            // 
184
            this.btnEnd.BackColor = System.Drawing.Color.Magenta;
185
            this.btnEnd.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
186
            this.btnEnd.ForeColor = System.Drawing.Color.Black;
187
            this.btnEnd.Location = new System.Drawing.Point(1197, 585);
188
            this.btnEnd.Name = "btnEnd";
189
            this.btnEnd.Size = new System.Drawing.Size(120, 28);
190
            this.btnEnd.TabIndex = 14;
191
            this.btnEnd.Text = "終 了";
192
            this.btnEnd.UseVisualStyleBackColor = false;
193
            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
194
            // 
195
            // btnAdd
196
            // 
197
            this.btnAdd.BackColor = System.Drawing.Color.Orange;
198
            this.btnAdd.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
199
            this.btnAdd.ForeColor = System.Drawing.Color.Black;
200
            this.btnAdd.Location = new System.Drawing.Point(158, 585);
201
            this.btnAdd.Name = "btnAdd";
202
            this.btnAdd.Size = new System.Drawing.Size(120, 28);
203
            this.btnAdd.TabIndex = 12;
204
            this.btnAdd.Text = "回数追加";
205
            this.btnAdd.UseVisualStyleBackColor = false;
206
            this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
207
            // 
208
            // btnOtherProc
209
            // 
210
            this.btnOtherProc.BackColor = System.Drawing.Color.Lime;
211
            this.btnOtherProc.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
212
            this.btnOtherProc.ForeColor = System.Drawing.Color.Black;
213
            this.btnOtherProc.Location = new System.Drawing.Point(12, 585);
214
            this.btnOtherProc.Name = "btnOtherProc";
215
            this.btnOtherProc.Size = new System.Drawing.Size(140, 28);
216
            this.btnOtherProc.TabIndex = 11;
217
            this.btnOtherProc.Text = "他の画面へ";
218
            this.btnOtherProc.UseVisualStyleBackColor = false;
219
            this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click);
220
            // 
221
            // lblStatus
222
            // 
223
            this.lblStatus.BackColor = System.Drawing.Color.GreenYellow;
224
            this.lblStatus.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
225
            this.lblStatus.Location = new System.Drawing.Point(132, 25);
226
            this.lblStatus.Name = "lblStatus";
227
            this.lblStatus.Size = new System.Drawing.Size(35, 16);
228
            this.lblStatus.TabIndex = 1;
229
            this.lblStatus.Text = "請求準備";
230
            this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
231
            this.lblStatus.Visible = false;
232
            // 
233
            // label4
234
            // 
235
            this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
236
            this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
237
            this.label4.CausesValidation = false;
238
            this.label4.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
239
            this.label4.Location = new System.Drawing.Point(594, 64);
240
            this.label4.Name = "label4";
241
            this.label4.Size = new System.Drawing.Size(100, 25);
242
            this.label4.TabIndex = 4;
243
            this.label4.Text = "請求月";
244
            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
245
            // 
246
            // cbReqMonth
247
            // 
248
            this.cbReqMonth.BackColor = System.Drawing.Color.White;
249
            this.cbReqMonth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
250
            this.cbReqMonth.FormattingEnabled = true;
251
            this.cbReqMonth.Location = new System.Drawing.Point(699, 64);
252
            this.cbReqMonth.Name = "cbReqMonth";
253
            this.cbReqMonth.Size = new System.Drawing.Size(109, 24);
254
            this.cbReqMonth.TabIndex = 5;
255
            // 
256
            // label5
257
            // 
258
            this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
259
            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
260
            this.label5.CausesValidation = false;
261
            this.label5.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
262
            this.label5.Location = new System.Drawing.Point(819, 64);
263
            this.label5.Name = "label5";
264
            this.label5.Size = new System.Drawing.Size(100, 25);
265
            this.label5.TabIndex = 6;
266
            this.label5.Text = "請求回数";
267
            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
268
            // 
269
            // lblReqOrder
270
            // 
271
            this.lblReqOrder.BackColor = System.Drawing.Color.White;
272
            this.lblReqOrder.Location = new System.Drawing.Point(924, 64);
273
            this.lblReqOrder.Name = "lblReqOrder";
274
            this.lblReqOrder.Size = new System.Drawing.Size(85, 24);
275
            this.lblReqOrder.TabIndex = 7;
276
            this.lblReqOrder.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
277
            // 
278
            // btnApproval
279
            // 
280
            this.btnApproval.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
281
            this.btnApproval.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
282
            this.btnApproval.Location = new System.Drawing.Point(2, 6);
283
            this.btnApproval.Name = "btnApproval";
284
            this.btnApproval.Size = new System.Drawing.Size(130, 27);
285
            this.btnApproval.TabIndex = 0;
286
            this.btnApproval.Text = "請求書申請";
287
            this.btnApproval.UseVisualStyleBackColor = false;
288
            this.btnApproval.Click += new System.EventHandler(this.btnApproval_Click);
289
            // 
290
            // txtOrderer
291
            // 
292
            this.txtOrderer.BackColor = System.Drawing.Color.White;
293
            this.txtOrderer.Location = new System.Drawing.Point(117, 65);
294
            this.txtOrderer.Name = "txtOrderer";
295
            this.txtOrderer.ReadOnly = true;
296
            this.txtOrderer.Size = new System.Drawing.Size(470, 23);
297
            this.txtOrderer.TabIndex = 3;
298
            this.txtOrderer.TextChanged += new System.EventHandler(this.txtOrderer_TextChanged);
299
            this.txtOrderer.Validating += new System.ComponentModel.CancelEventHandler(this.txtOrderer_Validating);
300
            // 
301
            // button1
302
            // 
303
            this.button1.Font = new System.Drawing.Font("MS 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
304
            this.button1.Location = new System.Drawing.Point(1271, 25);
305
            this.button1.Name = "button1";
306
            this.button1.Size = new System.Drawing.Size(45, 23);
307
            this.button1.TabIndex = 15;
308
            this.button1.Text = "・・・";
309
            this.button1.UseVisualStyleBackColor = true;
310
            this.button1.Click += new System.EventHandler(this.button1_Click_1);
311
            // 
312
            // pnlNormal
313
            // 
314
            this.pnlNormal.Controls.Add(this.btnApproval);
315
            this.pnlNormal.Location = new System.Drawing.Point(1014, 56);
316
            this.pnlNormal.Name = "pnlNormal";
317
            this.pnlNormal.Size = new System.Drawing.Size(136, 36);
318
            this.pnlNormal.TabIndex = 8;
319
            // 
320
            // pnlApproval
321
            // 
322
            this.pnlApproval.Controls.Add(this.btnDeny);
323
            this.pnlApproval.Controls.Add(this.btnPend);
324
            this.pnlApproval.Controls.Add(this.btnAgree);
325
            this.pnlApproval.Location = new System.Drawing.Point(1014, 56);
326
            this.pnlApproval.Name = "pnlApproval";
327
            this.pnlApproval.Size = new System.Drawing.Size(254, 36);
328
            this.pnlApproval.TabIndex = 9;
329
            this.pnlApproval.Visible = false;
330
            // 
331
            // btnDeny
332
            // 
333
            this.btnDeny.BackColor = System.Drawing.Color.Red;
334
            this.btnDeny.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
335
            this.btnDeny.Location = new System.Drawing.Point(169, 5);
336
            this.btnDeny.Name = "btnDeny";
337
            this.btnDeny.Size = new System.Drawing.Size(80, 27);
338
            this.btnDeny.TabIndex = 2;
339
            this.btnDeny.Text = "不承認";
340
            this.btnDeny.UseVisualStyleBackColor = false;
341
            this.btnDeny.Click += new System.EventHandler(this.btnDeny_Click);
342
            // 
343
            // btnPend
344
            // 
345
            this.btnPend.BackColor = System.Drawing.Color.Yellow;
346
            this.btnPend.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
347
            this.btnPend.Location = new System.Drawing.Point(86, 5);
348
            this.btnPend.Name = "btnPend";
349
            this.btnPend.Size = new System.Drawing.Size(80, 27);
350
            this.btnPend.TabIndex = 1;
351
            this.btnPend.Text = "保留";
352
            this.btnPend.UseVisualStyleBackColor = false;
353
            this.btnPend.Click += new System.EventHandler(this.btnPend_Click);
354
            // 
355
            // btnAgree
356
            // 
357
            this.btnAgree.BackColor = System.Drawing.Color.Lime;
358
            this.btnAgree.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
359
            this.btnAgree.Location = new System.Drawing.Point(3, 5);
360
            this.btnAgree.Name = "btnAgree";
361
            this.btnAgree.Size = new System.Drawing.Size(80, 27);
362
            this.btnAgree.TabIndex = 0;
363
            this.btnAgree.Text = "承認";
364
            this.btnAgree.UseVisualStyleBackColor = false;
365
            this.btnAgree.Click += new System.EventHandler(this.btnAgree_Click);
366
            // 
367 156
            // col001
368 157
            // 
369 158
            this.col001.Frozen = true;
......
390 179
            // col004
391 180
            // 
392 181
            this.col004.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
393
            dataGridViewCellStyle43.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
394
            dataGridViewCellStyle43.BackColor = System.Drawing.SystemColors.Control;
395
            this.col004.DefaultCellStyle = dataGridViewCellStyle43;
182
            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
183
            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
184
            this.col004.DefaultCellStyle = dataGridViewCellStyle1;
396 185
            this.col004.Frozen = true;
397 186
            this.col004.HeaderText = "";
398 187
            this.col004.Name = "col004";
......
403 192
            // 
404 193
            // col005
405 194
            // 
406
            dataGridViewCellStyle44.BackColor = System.Drawing.Color.White;
407
            this.col005.DefaultCellStyle = dataGridViewCellStyle44;
195
            dataGridViewCellStyle2.BackColor = System.Drawing.Color.White;
196
            this.col005.DefaultCellStyle = dataGridViewCellStyle2;
408 197
            this.col005.Frozen = true;
409 198
            this.col005.HeaderText = "";
410 199
            this.col005.Name = "col005";
......
415 204
            // 
416 205
            // col006
417 206
            // 
418
            dataGridViewCellStyle45.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
419
            dataGridViewCellStyle45.BackColor = System.Drawing.Color.White;
420
            this.col006.DefaultCellStyle = dataGridViewCellStyle45;
207
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
208
            dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
209
            this.col006.DefaultCellStyle = dataGridViewCellStyle3;
421 210
            this.col006.Frozen = true;
422 211
            this.col006.HeaderText = "受注金額";
423 212
            this.col006.Name = "col006";
......
427 216
            // 
428 217
            // col007
429 218
            // 
430
            dataGridViewCellStyle46.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
431
            dataGridViewCellStyle46.BackColor = System.Drawing.SystemColors.Control;
432
            this.col007.DefaultCellStyle = dataGridViewCellStyle46;
219
            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
220
            dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
221
            this.col007.DefaultCellStyle = dataGridViewCellStyle4;
433 222
            this.col007.Frozen = true;
434 223
            this.col007.HeaderText = "";
435 224
            this.col007.Name = "col007";
......
439 228
            // 
440 229
            // col008
441 230
            // 
442
            dataGridViewCellStyle47.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
443
            this.col008.DefaultCellStyle = dataGridViewCellStyle47;
231
            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
232
            this.col008.DefaultCellStyle = dataGridViewCellStyle5;
444 233
            this.col008.FillWeight = 120F;
445 234
            this.col008.Frozen = true;
446 235
            this.col008.HeaderText = "合計";
......
451 240
            // 
452 241
            // col009
453 242
            // 
454
            dataGridViewCellStyle48.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
455
            this.col009.DefaultCellStyle = dataGridViewCellStyle48;
243
            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
244
            this.col009.DefaultCellStyle = dataGridViewCellStyle6;
456 245
            this.col009.HeaderText = "1回目";
457 246
            this.col009.Name = "col009";
458 247
            this.col009.ReadOnly = true;
......
461 250
            // 
462 251
            // col010
463 252
            // 
464
            dataGridViewCellStyle49.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
465
            this.col010.DefaultCellStyle = dataGridViewCellStyle49;
253
            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
254
            this.col010.DefaultCellStyle = dataGridViewCellStyle7;
466 255
            this.col010.HeaderText = "2回目";
467 256
            this.col010.Name = "col010";
468 257
            this.col010.ReadOnly = true;
......
471 260
            // 
472 261
            // col011
473 262
            // 
474
            dataGridViewCellStyle50.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
475
            this.col011.DefaultCellStyle = dataGridViewCellStyle50;
263
            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
264
            this.col011.DefaultCellStyle = dataGridViewCellStyle8;
476 265
            this.col011.HeaderText = "3回目";
477 266
            this.col011.Name = "col011";
478 267
            this.col011.ReadOnly = true;
......
481 270
            // 
482 271
            // col12
483 272
            // 
484
            dataGridViewCellStyle51.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
485
            this.col12.DefaultCellStyle = dataGridViewCellStyle51;
273
            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
274
            this.col12.DefaultCellStyle = dataGridViewCellStyle9;
486 275
            this.col12.HeaderText = "4回目";
487 276
            this.col12.Name = "col12";
488 277
            this.col12.ReadOnly = true;
......
492 281
            // 
493 282
            // col13
494 283
            // 
495
            dataGridViewCellStyle52.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
496
            this.col13.DefaultCellStyle = dataGridViewCellStyle52;
284
            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
285
            this.col13.DefaultCellStyle = dataGridViewCellStyle10;
497 286
            this.col13.HeaderText = "5回目";
498 287
            this.col13.Name = "col13";
499 288
            this.col13.ReadOnly = true;
......
503 292
            // 
504 293
            // col14
505 294
            // 
506
            dataGridViewCellStyle53.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
507
            this.col14.DefaultCellStyle = dataGridViewCellStyle53;
295
            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
296
            this.col14.DefaultCellStyle = dataGridViewCellStyle11;
508 297
            this.col14.HeaderText = "6回目";
509 298
            this.col14.Name = "col14";
510 299
            this.col14.ReadOnly = true;
......
514 303
            // 
515 304
            // col15
516 305
            // 
517
            dataGridViewCellStyle54.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
518
            this.col15.DefaultCellStyle = dataGridViewCellStyle54;
306
            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
307
            this.col15.DefaultCellStyle = dataGridViewCellStyle12;
519 308
            this.col15.HeaderText = "7回目";
520 309
            this.col15.Name = "col15";
521 310
            this.col15.ReadOnly = true;
......
525 314
            // 
526 315
            // col16
527 316
            // 
528
            dataGridViewCellStyle55.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
529
            this.col16.DefaultCellStyle = dataGridViewCellStyle55;
317
            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
318
            this.col16.DefaultCellStyle = dataGridViewCellStyle13;
530 319
            this.col16.HeaderText = "8回目";
531 320
            this.col16.Name = "col16";
532 321
            this.col16.ReadOnly = true;
......
536 325
            // 
537 326
            // col17
538 327
            // 
539
            dataGridViewCellStyle56.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
540
            this.col17.DefaultCellStyle = dataGridViewCellStyle56;
328
            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
329
            this.col17.DefaultCellStyle = dataGridViewCellStyle14;
541 330
            this.col17.HeaderText = "9回目";
542 331
            this.col17.Name = "col17";
543 332
            this.col17.ReadOnly = true;
......
547 336
            // 
548 337
            // col18
549 338
            // 
550
            dataGridViewCellStyle57.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
551
            this.col18.DefaultCellStyle = dataGridViewCellStyle57;
339
            dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
340
            this.col18.DefaultCellStyle = dataGridViewCellStyle15;
552 341
            this.col18.HeaderText = "10回目";
553 342
            this.col18.Name = "col18";
554 343
            this.col18.ReadOnly = true;
......
558 347
            // 
559 348
            // col19
560 349
            // 
561
            dataGridViewCellStyle58.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
562
            this.col19.DefaultCellStyle = dataGridViewCellStyle58;
350
            dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
351
            this.col19.DefaultCellStyle = dataGridViewCellStyle16;
563 352
            this.col19.HeaderText = "11回目";
564 353
            this.col19.Name = "col19";
565 354
            this.col19.ReadOnly = true;
......
569 358
            // 
570 359
            // col20
571 360
            // 
572
            dataGridViewCellStyle59.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
573
            this.col20.DefaultCellStyle = dataGridViewCellStyle59;
361
            dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
362
            this.col20.DefaultCellStyle = dataGridViewCellStyle17;
574 363
            this.col20.HeaderText = "12回目";
575 364
            this.col20.Name = "col20";
576 365
            this.col20.ReadOnly = true;
......
580 369
            // 
581 370
            // col21
582 371
            // 
583
            dataGridViewCellStyle60.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
584
            this.col21.DefaultCellStyle = dataGridViewCellStyle60;
372
            dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
373
            this.col21.DefaultCellStyle = dataGridViewCellStyle18;
585 374
            this.col21.HeaderText = "13回目";
586 375
            this.col21.Name = "col21";
587 376
            this.col21.ReadOnly = true;
......
591 380
            // 
592 381
            // col22
593 382
            // 
594
            dataGridViewCellStyle61.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
595
            this.col22.DefaultCellStyle = dataGridViewCellStyle61;
383
            dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
384
            this.col22.DefaultCellStyle = dataGridViewCellStyle19;
596 385
            this.col22.HeaderText = "14回目";
597 386
            this.col22.Name = "col22";
598 387
            this.col22.ReadOnly = true;
......
602 391
            // 
603 392
            // col23
604 393
            // 
605
            dataGridViewCellStyle62.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
606
            this.col23.DefaultCellStyle = dataGridViewCellStyle62;
394
            dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
395
            this.col23.DefaultCellStyle = dataGridViewCellStyle20;
607 396
            this.col23.HeaderText = "15回目";
608 397
            this.col23.Name = "col23";
609 398
            this.col23.ReadOnly = true;
......
613 402
            // 
614 403
            // col098
615 404
            // 
616
            dataGridViewCellStyle63.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
617
            this.col098.DefaultCellStyle = dataGridViewCellStyle63;
405
            dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
406
            this.col098.DefaultCellStyle = dataGridViewCellStyle21;
618 407
            this.col098.HeaderText = "残り";
619 408
            this.col098.Name = "col098";
620 409
            this.col098.ReadOnly = true;
......
631 420
            this.col99.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
632 421
            this.col99.Width = 240;
633 422
            // 
423
            // label2
424
            // 
425
            this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
426
            this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
427
            this.label2.CausesValidation = false;
428
            this.label2.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
429
            this.label2.Location = new System.Drawing.Point(12, 63);
430
            this.label2.Name = "label2";
431
            this.label2.Size = new System.Drawing.Size(100, 25);
432
            this.label2.TabIndex = 2;
433
            this.label2.Text = "請求先";
434
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
435
            // 
436
            // btnEntry
437
            // 
438
            this.btnEntry.BackColor = System.Drawing.Color.GreenYellow;
439
            this.btnEntry.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
440
            this.btnEntry.ForeColor = System.Drawing.Color.Black;
441
            this.btnEntry.Location = new System.Drawing.Point(1071, 585);
442
            this.btnEntry.Name = "btnEntry";
443
            this.btnEntry.Size = new System.Drawing.Size(120, 28);
444
            this.btnEntry.TabIndex = 13;
445
            this.btnEntry.Text = "登 録";
446
            this.btnEntry.UseVisualStyleBackColor = false;
447
            this.btnEntry.Click += new System.EventHandler(this.btnEntry_Click);
448
            // 
449
            // btnEnd
450
            // 
451
            this.btnEnd.BackColor = System.Drawing.Color.Magenta;
452
            this.btnEnd.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
453
            this.btnEnd.ForeColor = System.Drawing.Color.Black;
454
            this.btnEnd.Location = new System.Drawing.Point(1197, 585);
455
            this.btnEnd.Name = "btnEnd";
456
            this.btnEnd.Size = new System.Drawing.Size(120, 28);
457
            this.btnEnd.TabIndex = 14;
458
            this.btnEnd.Text = "終 了";
459
            this.btnEnd.UseVisualStyleBackColor = false;
460
            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
461
            // 
462
            // btnAdd
463
            // 
464
            this.btnAdd.BackColor = System.Drawing.Color.Orange;
465
            this.btnAdd.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
466
            this.btnAdd.ForeColor = System.Drawing.Color.Black;
467
            this.btnAdd.Location = new System.Drawing.Point(158, 585);
468
            this.btnAdd.Name = "btnAdd";
469
            this.btnAdd.Size = new System.Drawing.Size(120, 28);
470
            this.btnAdd.TabIndex = 12;
471
            this.btnAdd.Text = "回数追加";
472
            this.btnAdd.UseVisualStyleBackColor = false;
473
            this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
474
            // 
475
            // btnOtherProc
476
            // 
477
            this.btnOtherProc.BackColor = System.Drawing.Color.Lime;
478
            this.btnOtherProc.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
479
            this.btnOtherProc.ForeColor = System.Drawing.Color.Black;
480
            this.btnOtherProc.Location = new System.Drawing.Point(12, 585);
481
            this.btnOtherProc.Name = "btnOtherProc";
482
            this.btnOtherProc.Size = new System.Drawing.Size(140, 28);
483
            this.btnOtherProc.TabIndex = 11;
484
            this.btnOtherProc.Text = "他の画面へ";
485
            this.btnOtherProc.UseVisualStyleBackColor = false;
486
            this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click);
487
            // 
488
            // lblStatus
489
            // 
490
            this.lblStatus.BackColor = System.Drawing.Color.GreenYellow;
491
            this.lblStatus.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
492
            this.lblStatus.Location = new System.Drawing.Point(132, 25);
493
            this.lblStatus.Name = "lblStatus";
494
            this.lblStatus.Size = new System.Drawing.Size(35, 16);
495
            this.lblStatus.TabIndex = 1;
496
            this.lblStatus.Text = "請求準備";
497
            this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
498
            this.lblStatus.Visible = false;
499
            // 
500
            // label4
501
            // 
502
            this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
503
            this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
504
            this.label4.CausesValidation = false;
505
            this.label4.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
506
            this.label4.Location = new System.Drawing.Point(594, 64);
507
            this.label4.Name = "label4";
508
            this.label4.Size = new System.Drawing.Size(100, 25);
509
            this.label4.TabIndex = 4;
510
            this.label4.Text = "請求月";
511
            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
512
            // 
513
            // cbReqMonth
514
            // 
515
            this.cbReqMonth.BackColor = System.Drawing.Color.White;
516
            this.cbReqMonth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
517
            this.cbReqMonth.FormattingEnabled = true;
518
            this.cbReqMonth.Location = new System.Drawing.Point(699, 64);
519
            this.cbReqMonth.Name = "cbReqMonth";
520
            this.cbReqMonth.Size = new System.Drawing.Size(109, 24);
521
            this.cbReqMonth.TabIndex = 5;
522
            // 
523
            // label5
524
            // 
525
            this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
526
            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
527
            this.label5.CausesValidation = false;
528
            this.label5.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
529
            this.label5.Location = new System.Drawing.Point(819, 64);
530
            this.label5.Name = "label5";
531
            this.label5.Size = new System.Drawing.Size(100, 25);
532
            this.label5.TabIndex = 6;
533
            this.label5.Text = "請求回数";
534
            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
535
            // 
536
            // lblReqOrder
537
            // 
538
            this.lblReqOrder.BackColor = System.Drawing.Color.White;
539
            this.lblReqOrder.Location = new System.Drawing.Point(924, 64);
540
            this.lblReqOrder.Name = "lblReqOrder";
541
            this.lblReqOrder.Size = new System.Drawing.Size(85, 24);
542
            this.lblReqOrder.TabIndex = 7;
543
            this.lblReqOrder.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
544
            // 
545
            // btnApproval
546
            // 
547
            this.btnApproval.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
548
            this.btnApproval.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
549
            this.btnApproval.Location = new System.Drawing.Point(2, 6);
550
            this.btnApproval.Name = "btnApproval";
551
            this.btnApproval.Size = new System.Drawing.Size(130, 27);
552
            this.btnApproval.TabIndex = 0;
553
            this.btnApproval.Text = "請求書申請";
554
            this.btnApproval.UseVisualStyleBackColor = false;
555
            this.btnApproval.Click += new System.EventHandler(this.btnApproval_Click);
556
            // 
557
            // txtOrderer
558
            // 
559
            this.txtOrderer.BackColor = System.Drawing.Color.White;
560
            this.txtOrderer.ImeMode = System.Windows.Forms.ImeMode.On;
561
            this.txtOrderer.Location = new System.Drawing.Point(117, 65);
562
            this.txtOrderer.Name = "txtOrderer";
563
            this.txtOrderer.ReadOnly = true;
564
            this.txtOrderer.Size = new System.Drawing.Size(470, 23);
565
            this.txtOrderer.TabIndex = 3;
566
            this.txtOrderer.TextChanged += new System.EventHandler(this.txtOrderer_TextChanged);
567
            this.txtOrderer.Validating += new System.ComponentModel.CancelEventHandler(this.txtOrderer_Validating);
568
            // 
569
            // button1
570
            // 
571
            this.button1.Font = new System.Drawing.Font("MS 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
572
            this.button1.Location = new System.Drawing.Point(1271, 25);
573
            this.button1.Name = "button1";
574
            this.button1.Size = new System.Drawing.Size(45, 23);
575
            this.button1.TabIndex = 15;
576
            this.button1.Text = "・・・";
577
            this.button1.UseVisualStyleBackColor = true;
578
            this.button1.Visible = false;
579
            this.button1.Click += new System.EventHandler(this.button1_Click_1);
580
            // 
581
            // pnlNormal
582
            // 
583
            this.pnlNormal.Controls.Add(this.btnApproval);
584
            this.pnlNormal.Location = new System.Drawing.Point(1014, 56);
585
            this.pnlNormal.Name = "pnlNormal";
586
            this.pnlNormal.Size = new System.Drawing.Size(136, 36);
587
            this.pnlNormal.TabIndex = 8;
588
            // 
589
            // pnlApproval
590
            // 
591
            this.pnlApproval.Controls.Add(this.btnDeny);
592
            this.pnlApproval.Controls.Add(this.btnPend);
593
            this.pnlApproval.Controls.Add(this.btnAgree);
594
            this.pnlApproval.Location = new System.Drawing.Point(1014, 56);
595
            this.pnlApproval.Name = "pnlApproval";
596
            this.pnlApproval.Size = new System.Drawing.Size(254, 36);
597
            this.pnlApproval.TabIndex = 9;
598
            this.pnlApproval.Visible = false;
599
            // 
600
            // btnDeny
601
            // 
602
            this.btnDeny.BackColor = System.Drawing.Color.Red;
603
            this.btnDeny.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
604
            this.btnDeny.Location = new System.Drawing.Point(169, 5);
605
            this.btnDeny.Name = "btnDeny";
606
            this.btnDeny.Size = new System.Drawing.Size(80, 27);
607
            this.btnDeny.TabIndex = 2;
608
            this.btnDeny.Text = "不承認";
609
            this.btnDeny.UseVisualStyleBackColor = false;
610
            this.btnDeny.Click += new System.EventHandler(this.btnDeny_Click);
611
            // 
612
            // btnPend
613
            // 
614
            this.btnPend.BackColor = System.Drawing.Color.Yellow;
615
            this.btnPend.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
616
            this.btnPend.Location = new System.Drawing.Point(86, 5);
617
            this.btnPend.Name = "btnPend";
618
            this.btnPend.Size = new System.Drawing.Size(80, 27);
619
            this.btnPend.TabIndex = 1;
620
            this.btnPend.Text = "保留";
621
            this.btnPend.UseVisualStyleBackColor = false;
622
            this.btnPend.Click += new System.EventHandler(this.btnPend_Click);
623
            // 
624
            // btnAgree
625
            // 
626
            this.btnAgree.BackColor = System.Drawing.Color.Lime;
627
            this.btnAgree.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
628
            this.btnAgree.Location = new System.Drawing.Point(3, 5);
629
            this.btnAgree.Name = "btnAgree";
630
            this.btnAgree.Size = new System.Drawing.Size(80, 27);
631
            this.btnAgree.TabIndex = 0;
632
            this.btnAgree.Text = "承認";
633
            this.btnAgree.UseVisualStyleBackColor = false;
634
            this.btnAgree.Click += new System.EventHandler(this.btnAgree_Click);
635
            // 
634 636
            // FrmRequestInput
635 637
            // 
636 638
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.cs
456 456

  
457 457
                // 文字色は一律黒
458 458
                dgv1[tcol, trow].Style.ForeColor = Color.Black;
459

  
460
                // 金額系入力時にIMEモードをオフにする
461
                dgv1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
462

  
459 463
            }
464
            else
465
            {
466
                // コメント入力時にIMEモードをオンにする
467
                dgv1.ImeMode = System.Windows.Forms.ImeMode.Hiragana;
460 468

  
469
            }
470

  
461 471
            this.dgv1.CellBeginEdit += dgv1_CellBeginEdit;
462 472
        }
463 473

  
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SalesConfirm/FrmSalesConfirm.Designer.cs
71 71
            this.comboBox2 = new System.Windows.Forms.ComboBox();
72 72
            this.label2 = new System.Windows.Forms.Label();
73 73
            this.dgvMaster = new System.Windows.Forms.DataGridView();
74
            this.btnEnd = new System.Windows.Forms.Button();
75 74
            this.EditStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
76 75
            this.No = new System.Windows.Forms.DataGridViewTextBoxColumn();
77 76
            this.OrderersDivision = new System.Windows.Forms.DataGridViewTextBoxColumn();
......
149 148
            this.ApprovalAuthority_10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
150 149
            this.ApprovalDate_10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
151 150
            this.ApprovalOrder_10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
151
            this.btnEnd = new System.Windows.Forms.Button();
152 152
            this.panel1.SuspendLayout();
153 153
            this.groupBoxEx1.SuspendLayout();
154 154
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
......
462 462
            this.dgvMaster.Size = new System.Drawing.Size(1399, 474);
463 463
            this.dgvMaster.TabIndex = 7;
464 464
            // 
465
            // btnEnd
466
            // 
467
            this.btnEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
468
            this.btnEnd.BackColor = System.Drawing.Color.Magenta;
469
            this.btnEnd.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
470
            this.btnEnd.ForeColor = System.Drawing.Color.Black;
471
            this.btnEnd.Location = new System.Drawing.Point(1287, 597);
472
            this.btnEnd.Name = "btnEnd";
473
            this.btnEnd.Size = new System.Drawing.Size(120, 30);
474
            this.btnEnd.TabIndex = 20;
475
            this.btnEnd.Text = "終 了";
476
            this.btnEnd.UseVisualStyleBackColor = false;
477
            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
478
            // 
479 465
            // EditStatus
480 466
            // 
481 467
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
......
1031 1017
            this.ApprovalOrder_10.Name = "ApprovalOrder_10";
1032 1018
            this.ApprovalOrder_10.Visible = false;
1033 1019
            // 
1020
            // btnEnd
1021
            // 
1022
            this.btnEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
1023
            this.btnEnd.BackColor = System.Drawing.Color.Magenta;
1024
            this.btnEnd.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
1025
            this.btnEnd.ForeColor = System.Drawing.Color.Black;
1026
            this.btnEnd.Location = new System.Drawing.Point(1287, 597);
1027
            this.btnEnd.Name = "btnEnd";
1028
            this.btnEnd.Size = new System.Drawing.Size(120, 30);
1029
            this.btnEnd.TabIndex = 20;
1030
            this.btnEnd.Text = "終 了";
1031
            this.btnEnd.UseVisualStyleBackColor = false;
1032
            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
1033
            // 
1034 1034
            // FrmSalesConfirm
1035 1035
            // 
1036 1036
            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 15F);
......
1044 1044
            this.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
1045 1045
            this.Margin = new System.Windows.Forms.Padding(4);
1046 1046
            this.Name = "FrmSalesConfirm";
1047
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmSelectPayment_FormClosing);
1047
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
1048
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmSalesConfirm_FormClosing);
1048 1049
            this.Load += new System.EventHandler(this.FrmSalesConfirm_Load);
1049 1050
            this.panel1.ResumeLayout(false);
1050 1051
            this.panel1.PerformLayout();
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SalesConfirm/FrmSalesConfirm.cs
31 31
{
32 32
    public partial class FrmSalesConfirm : Form
33 33
    {
34
        #region 使用定義
34 35
        /// <summary>
35 36
        /// ロガー
36 37
        /// </summary>
37 38
        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
39
        #endregion
38 40

  
41
        #region 定数
39 42
        /// <summary>
40 43
        /// 承認状態
41 44
        /// </summary>
......
180 183
            ConstrSubPersonCode,
181 184
            ConstructionInstructor,
182 185
            DetailNo,
183
            //ReqConstructionName,
184 186
            DetailString,
185 187
            ApprovalPersonName1,
186 188
            ApprovalPerson1,
......
236 238
        }
237 239

  
238 240
        /// <summary>
239
        /// 請求先キー
240
        /// </summary>
241
        private class OrderersKey
242
        {
243
            public int OrderersDivision;
244
            public int OrderersCode;
245
        }
246

  
247
        /// <summary>
248 241
        /// 入金請求先情報
249 242
        /// </summary>
250 243
        private class DepositOrderer
......
370 363
            public int OrderNo;
371 364
            public string ConstructionName;
372 365
            public string ConstructionNameRow;
373
            //public string PaymentSchedule;
374 366
            public string BillCreationDate;
375 367
            public long BillPrice;
376 368
            public long TaxPrice;
......
432 424

  
433 425
        private List<DepositOrderer> depositOrderers;
434 426

  
435
        /// <summary>編集フラグ</summary>
436
        private bool isDirty = false;
427
        ///// <summary>編集前のセルの内容</summary>
428
        //private string oldCellValue = "";
437 429

  
438
        /// <summary>編集前のセルの内容</summary>
439
        private string oldCellValue = "";
440

  
441 430
        /// <summary>データ表示の対象営業期</summary>
442 431
        private int m_Select_TargetBusinessPeriod = 0;
443 432

  
......
450 439
        /// <summary>データ表示の対象担当者</summary>
451 440
        private int m_Select_TargetPerson = 0;
452 441

  
453
        /// <summary>終了ボタン押下フラグ</summary>
454
        private bool m_CloseingProcessOff = false;
455

  
456
        /// <summary>データ表示の対象期間</summary>
457
        private int m_TargetPeriod = 2;
458

  
459
        // ユーザー情報
442
        /// <summary> ユーザー情報</summary>
460 443
        private ClsSecurityPermission.UserInfo m_UserInfo = new ClsSecurityPermission.UserInfo()
461 444
        {
462 445
            m_Type = CommonDefine.SecurityRankPos.NormalAuthority,
......
464 447
            m_SecRange = ClsSecurityPermission.SecRangeType.InCharge
465 448
        };
466 449

  
467
        // 部署コンボボックス用リスト
450
        /// <summary> 部署コンボボックス用リスト</summary>
468 451
        public List<KeyValuePair<int, String>> listDepartment = new List<KeyValuePair<int, String>>();
469 452

  
470
        // 担当者コンボボックス用リスト
453
        /// <summary> 担当者コンボボックス用リスト</summary>
471 454
        public List<KeyValuePair<int, String>> listPerson = new List<KeyValuePair<int, String>>();
472 455

  
456
        #endregion
457

  
458
        #region コンストラクタ
473 459
        /// <summary>
474 460
        /// コンストラクタ
475 461
        /// </summary>
......
477 463
        {
478 464
            InitializeComponent();
479 465
        }
466
        #endregion
480 467

  
468
        #region フォームロード
481 469
        /// <summary>
482 470
        /// フォームロードイベント
483 471
        /// </summary>
......
487 475
        {
488 476
            try
489 477
            {
490
                // 対象月コンボBOX設定
491
                //IODepositData IoDd = new IODepositData();
492
                //string now = DateTime.UtcNow.ToString("yyyy/MM");
493
                //List<DepositData> lstDd = new List<DepositData>();
494
                //List<string> lstDate = new List<string>();
495 478

  
496
                //IoDd.SelectAction(" group by TargetDate order by TargetDate desc", ref lstDd);
497

  
498
                //foreach (DepositData DdInfo in lstDd)
499
                //{
500
                //    lstDate.Add(DdInfo.TargetDate.Insert(4, "/"));
501
                //}
502
                //if (lstDate.IndexOf(now) < 0)
503
                //{
504
                //    lstDate.Insert(0, now);
505
                //}
506

  
507
                //comboBox1.Items.AddRange(lstDate.ToArray());
508

  
509 479
                //////////////////////////////////////////////////////////////////////////////
510 480
                // ■画面表示時のイベントを停止
511 481
                //////////////////////////////////////////////////////////////////////////////
......
527 497

  
528 498
                CommonMotions.GetPeriodYear(ref minval, ref maxval);
529 499

  
530
                // 最大営業期(現在の営業期)
500
                // 最大営業期
531 501
                numericUpDown2.Maximum = maxval;
532
                // 最小営業期(現在の営業期-過去年数)
502
                // 最小営業期
533 503
                numericUpDown2.Minimum = minval;
534
                // 初期値は最大営業期
535
                numericUpDown2.Value = maxval;
504
                // 初期値は現在の営業期
505
                numericUpDown2.Value = CommonMotions.SystemMasterData.BusinessPeriod;
536 506

  
537 507

  
538 508
                // 対象月
......
593 563
                numericUpDown2.ValueChanged += new System.EventHandler(this.numericUpDown2_ValueChanged);
594 564
            }
595 565
        }
566
        #endregion
596 567

  
568
        #region フォームクローズ
597 569
        /// <summary>
570
        /// フォームクローズイベント
571
        /// </summary>
572
        /// <param name="sender"></param>
573
        /// <param name="e"></param>
574
        private void FrmSalesConfirm_FormClosing(object sender, FormClosingEventArgs e)
575
        {
576
            try
577
            {
578
                //if (m_CloseingProcessOff) return;
579

  
580
                //if (isDirty)
581
                //{
582
                //    if (MessageBox.Show("データに変更があります、登録せずに終了してよろしいですか?。", "終了確認"
583
                //                    , MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
584
                //    {
585
                //        e.Cancel = true;
586
                //        return;
587
                //    }
588
                //}
589

  
590
                // 前プロセスに戻る
591
                ClsExcute.BackProcess();
592
            }
593
            catch (Exception ex)
594
            {
595
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
596
            }
597
        }
598
        #endregion
599

  
600
        #region 部署情報取得
601
        /// <summary>
598 602
        /// 部署情報取得
599 603
        /// </summary>
600 604
        /// <param name="sender"></param>
......
626 630
        /// <param name="e"></param>
627 631
        private ArrayList getDepartmentListQuery(int iPersonCode)
628 632
        {
633
            var depDb = new IODepositData();
634

  
629 635
            try
630 636
            {
631 637
                var sql = new StringBuilder();
......
654 660
                sql.Append("ORDER BY  ");
655 661
                sql.Append("DEPM.DisplayOrder ASC");                                          // 部署マスタ.表示順(昇順)
656 662

  
657
                var depDb = new IODepositData();
658 663
                var data = new ArrayList();
659 664
                if (!depDb.ExecuteReader(sql.ToString(), ref data)) return new ArrayList();
660 665
                return data;
......
664 669
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
665 670
                return new ArrayList();
666 671
            }
672
            finally
673
            {
674
                depDb.close();
675
                depDb = null;
676
            }
667 677

  
668 678
        }
679
        #endregion
669 680

  
681
        #region 担当者情報取得
670 682
        /// <summary>
671 683
        /// 担当者情報取得
672 684
        /// </summary>
......
699 711
        /// <param name="e"></param>
700 712
        private ArrayList getPersonListQuery(int iDepartmentCode)
701 713
        {
714
            var depDb = new IODepositData();
715

  
702 716
            try
703 717
            {
704 718
                var sql = new StringBuilder();
......
725 739
                sql.Append("ORDER BY  ");
726 740
                sql.Append("PERIM.DisplayOrder ASC");                                          // 部署マスタ.表示順(昇順)
727 741

  
728
                var depDb = new IODepositData();
729 742
                var data = new ArrayList();
730 743
                if (!depDb.ExecuteReader(sql.ToString(), ref data)) return new ArrayList();
731 744
                return data;
......
735 748
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
736 749
                return new ArrayList();
737 750
            }
738

  
739
        }
740

  
741
        /// <summary>
742
        /// 発注者追加ボタン押下時のイベント
743
        /// </summary>
744
        /// <param name="sender"></param>
745
        /// <param name="e"></param>
746
        private void btnAddCmp_Click(object sender, EventArgs e)
747
        {
748
            try
749
            {
750
                ResetTargetDate();
751
                var f = new FrmSelectRequest(FrmSelectRequest.OpenMode.AddCmp);
752
                f.FormClosed += new FormClosedEventHandler(NotifyAddCmp_FormClosed);
753
                f.ShowDialog(this);
754
            }
755
            catch (Exception ex)
756
            {
757
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
758
            }
759
        }
760

  
761
        /// <summary>
762
        /// 発注者削除ボタン押下時のイベント
763
        /// </summary>
764
        /// <param name="sender"></param>
765
        /// <param name="e"></param>
766
        private void btnDelCmp_Click(object sender, EventArgs e)
767
        {
768
            try
769
            {
770
                ResetTargetDate();
771
                if (dgvMaster.RowCount <= 0)
772
                    return;
773
                var depositOrderer = FindDepositOrderer(dgvMaster.CurrentCell.RowIndex);
774
                if (depositOrderer.DepositDetails.Count > 0)
775
                {
776
                    MessageBox.Show("すでに現場が登録されているため、削除できません。", "削除エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
777
                    return;
778
                }
779
                // 保存前のものは削除する
780
                if (depositOrderer.Added)
781
                    depositOrderers.Remove(depositOrderer);
782
                // 保存済みのものは削除フラグを付与
783
                else
784
                    depositOrderer.Deleted = true;
785
                RemoveDepositOrdererRows(depositOrderer);
786
                isDirty = true;
787
            }
788
            catch (Exception ex)
789
            {
790
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
791
            }
792
        }
793

  
794
        /// <summary>
795
        /// 現場追加ボタン押下時のイベント
796
        /// </summary>
797
        /// <param name="sender"></param>
798
        /// <param name="e"></param>
799
        private void btnAddFld_Click(object sender, EventArgs e)
800
        {
801
            try
802
            {
803
                ResetTargetDate();
804
                if (dgvMaster.RowCount <= 0)
805
                    return;
806
                // 現場が不明の場合のみ追加可能
807
                if (!IsUnknownRow(dgvMaster.CurrentCell.RowIndex))
808
                {
809
                    MessageBox.Show("不明以外の行が選択されています。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
810
                    return;
811
                }
812
                var depositOrderer = FindDepositOrderer(dgvMaster.CurrentCell.RowIndex);
813
                var f = new FrmSelectRegField();
814
                f.m_OrderersDivision = depositOrderer.OrderersDivision;
815
                f.m_OrderersCode = depositOrderer.OrderersCode;
816
                foreach (var depositDetail in depositOrderer.VisibleDepositDetails)
817
                {
818
                    f.m_lstMyField.Add(new FrmSelectRegField.MyFieldData()
819
                    {
820
                        OrderersDivision = depositOrderer.OrderersDivision,
821
                        OrderersCode = depositOrderer.OrderersCode,
822
                        RequestNo = depositDetail.RequestNo,
823
                        OrderNo = depositDetail.OrderNo,
824
                        ConstructionName = depositDetail.ConstructionName,
825
                        ConstructionName_Raw = depositDetail.ConstructionNameRow,
826
                        BillCreationDate = depositDetail.BillCreationDate,
827
                        BillPrice = depositDetail.BillPrice,
828
                        TaxPrice = depositDetail.TaxPrice,
829
                        DepositAmount = depositDetail.DepositAmount,
830
                        PersonCode = depositDetail.ApprovalPersonCode,
831
                        DeleteFlg = false,
832
                        ReadOnly = depositDetail.IsApprovedByStaff,
833
                    });
834
                }
835
                // 不明行を渡す必要がある
836
                var unknownIndex = DetectUnknownIndex(dgvMaster.CurrentCell.RowIndex);
837
                var unknownCell = dgvMaster.Rows[unknownIndex].Cells;
838
                f.m_lstMyField.Add(new FrmSelectRegField.MyFieldData()
839
                {
840
                    OrderersDivision = depositOrderer.OrderersDivision,
841
                    OrderersCode = depositOrderer.OrderersCode,
842
                    ConstructionName = CommonMotions.cnvString(unknownCell[(int)DispColumn.ConstructionName].Value),
843
                    ConstructionName_Raw = CommonMotions.cnvString(unknownCell[(int)DispColumn.ConstructionName_Raw].Value),
844
                    DepositAmount = CommonMotions.cnvLong(unknownCell[(int)DispColumn.DepositAmount].Value),
845
                    ReadOnly = true,
846
                });
847
                f.FormClosed += new FormClosedEventHandler(NotifyAddFld_FormClosed);
848
                f.ShowDialog(this);
849
            }
850
            catch (Exception ex)
851
            {
852
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
853
            }
854
        }
855

  
856
        /// <summary>
857
        /// 表示ボタン押下時のイベント
858
        /// </summary>
859
        /// <param name="sender"></param>
860
        /// <param name="e"></param>
861
        private void btnShow_Click(object sender, EventArgs e)
862
        {
863
            try
864
            {
865
                if (isDirty)
866
                {
867
                    if (MessageBox.Show("データに変更があります、登録せずに対象を変更してよろしいですか?。", "確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
868
                    {
869
                        return;
870
                    }
871
                }
872
                dgvMaster.CellDoubleClick -= DataGridView_DoubleCellClick;
873
                dgvMaster.CellEnter -= DataGridView_CellEnter;
874
                dgvMaster.CellValueChanged -= DataGridView_CellValueChanged;
875
                // グリッド表示
876
                DisplayData();
877
            }
878
            catch (Exception ex)
879
            {
880
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
881
            }
882 751
            finally
883 752
            {
884
                dgvMaster.CellDoubleClick += DataGridView_DoubleCellClick;
885
                dgvMaster.CellEnter += DataGridView_CellEnter;
886
                dgvMaster.CellValueChanged += DataGridView_CellValueChanged;
753
                depDb.close();
754
                depDb = null;
887 755
            }
888
        }
889 756

  
890
        /// <summary>
891
        /// ×ボタン押下時のイベント
892
        /// </summary>
893
        /// <param name="sender"></param>
894
        /// <param name="e"></param>
895
        private void FrmSelectPayment_FormClosing(object sender, FormClosingEventArgs e)
896
        {
897
            try
898
            {
899
                if (m_CloseingProcessOff) return;
900

  
901
                if (isDirty)
902
                {
903
                    if (MessageBox.Show("データに変更があります、登録せずに終了してよろしいですか?。", "終了確認"
904
                                    , MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
905
                    {
906
                        e.Cancel = true;
907
                        return;
908
                    }
909
                }
910

  
911
                // 前プロセスに戻る
912
                ClsExcute.BackProcess();
913
            }
914
            catch (Exception ex)
915
            {
916
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
... 差分の行数が表示可能な上限を超えました。超過分は表示しません。

他の形式にエクスポート: Unified diff