リビジョン 104
不具合修正(請求まとめ、請求入力、入金確認)
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPaymentDataDetail.cs | ||
---|---|---|
142 | 142 |
strcmd += string.Format(", {0}", work.HardwPrice.ToString()); |
143 | 143 |
strcmd += string.Format(", {0}", work.IndsWasteTax.ToString()); |
144 | 144 |
strcmd += string.Format(", {0}", work.CnstrPrice.ToString()); |
145 |
|
|
146 |
strcmd += string.Format(", {0}", work.CnstrPriceExist.ToString()); |
|
145 |
if ((work.CnstrPriceExist == -1) || (work.ApprovalPersonCode == 0)) |
|
146 |
{ |
|
147 |
strcmd += ", null"; |
|
148 |
} |
|
149 |
else |
|
150 |
{ |
|
151 |
strcmd += string.Format(", {0}", work.CnstrPriceExist.ToString()); |
|
152 |
} |
|
147 | 153 |
strcmd += string.Format(", {0}", work.ApprovalPersonCode.ToString()); |
148 | 154 |
strcmd += string.Format(", DATE_FORMAT(DATE_FORMAT('{0}','%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')", work.ApprovalDate.ToString()); |
149 | 155 |
strcmd += string.Format(", {0}", work.ApprovalEndFlg.ToString()); |
... | ... | |
187 | 193 |
strcmd += string.Format(",HighwPrice = {0}", data.HighwPrice.ToString()); |
188 | 194 |
strcmd += string.Format(",HardwPrice = {0}", data.HardwPrice.ToString()); |
189 | 195 |
strcmd += string.Format(",IndsWasteTax = {0}", data.IndsWasteTax.ToString()); |
190 |
|
|
191 | 196 |
strcmd += string.Format(",CnstrPrice = {0}", data.CnstrPrice.ToString()); |
192 |
strcmd += string.Format(",CnstrPriceExist = {0}", data.CnstrPriceExist.ToString()); |
|
197 |
if ((data.CnstrPriceExist == -1) || (data.ApprovalPersonCode == 0)) |
|
198 |
{ |
|
199 |
strcmd += ",CnstrPriceExist = null"; |
|
200 |
} |
|
201 |
else |
|
202 |
{ |
|
203 |
strcmd += string.Format(",CnstrPriceExist = {0}", data.CnstrPriceExist.ToString()); |
|
204 |
} |
|
193 | 205 |
strcmd += string.Format(",ApprovalPersonCode = {0}", data.ApprovalPersonCode.ToString()); |
194 | 206 |
strcmd += string.Format(",ApprovalDate = DATE_FORMAT(DATE_FORMAT('{0}','%Y/%m/%d'),'%Y/%m/%d')", data.ApprovalDate.ToString()); |
195 | 207 |
strcmd += string.Format(",ApprovalEndFlg = {0}", data.ApprovalEndFlg.ToString()); |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmSelectRegField.Designer.cs | ||
---|---|---|
49 | 49 |
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
50 | 50 |
this.col99 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
51 | 51 |
this.dgv1 = new System.Windows.Forms.DataGridView(); |
52 |
this.btnAccept = new System.Windows.Forms.Button(); |
|
53 | 52 |
this.ConstructionCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
54 | 53 |
this.OrderNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
55 | 54 |
this.col000 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
56 | 55 |
this.col001 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
57 | 56 |
this.col002 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
58 | 57 |
this.ReadOnly = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
58 |
this.btnAccept = new System.Windows.Forms.Button(); |
|
59 | 59 |
((System.ComponentModel.ISupportInitialize)(this.dgv2)).BeginInit(); |
60 | 60 |
((System.ComponentModel.ISupportInitialize)(this.dgv1)).BeginInit(); |
61 | 61 |
this.SuspendLayout(); |
... | ... | |
247 | 247 |
this.dgv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
248 | 248 |
this.dgv1.Size = new System.Drawing.Size(610, 172); |
249 | 249 |
this.dgv1.TabIndex = 8; |
250 |
this.dgv1.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgv1_CellBeginEdit); |
|
251 |
this.dgv1.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dgv1_CellFormatting); |
|
250 | 252 |
this.dgv1.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv1_CellValueChanged); |
251 | 253 |
this.dgv1.SelectionChanged += new System.EventHandler(this.dgv1_SelectionChanged); |
252 | 254 |
// |
253 |
// btnAccept |
|
254 |
// |
|
255 |
this.btnAccept.BackColor = System.Drawing.Color.Lime; |
|
256 |
this.btnAccept.ForeColor = System.Drawing.Color.Black; |
|
257 |
this.btnAccept.Location = new System.Drawing.Point(376, 270); |
|
258 |
this.btnAccept.Name = "btnAccept"; |
|
259 |
this.btnAccept.Size = new System.Drawing.Size(120, 32); |
|
260 |
this.btnAccept.TabIndex = 10; |
|
261 |
this.btnAccept.Text = "登 録"; |
|
262 |
this.btnAccept.UseVisualStyleBackColor = false; |
|
263 |
this.btnAccept.Click += new System.EventHandler(this.btnAccept_Click); |
|
264 |
// |
|
265 | 255 |
// ConstructionCode |
266 | 256 |
// |
267 | 257 |
this.ConstructionCode.HeaderText = "■工事番号"; |
... | ... | |
314 | 304 |
this.ReadOnly.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
315 | 305 |
this.ReadOnly.Visible = false; |
316 | 306 |
// |
307 |
// btnAccept |
|
308 |
// |
|
309 |
this.btnAccept.BackColor = System.Drawing.Color.Lime; |
|
310 |
this.btnAccept.ForeColor = System.Drawing.Color.Black; |
|
311 |
this.btnAccept.Location = new System.Drawing.Point(376, 270); |
|
312 |
this.btnAccept.Name = "btnAccept"; |
|
313 |
this.btnAccept.Size = new System.Drawing.Size(120, 32); |
|
314 |
this.btnAccept.TabIndex = 10; |
|
315 |
this.btnAccept.Text = "登 録"; |
|
316 |
this.btnAccept.UseVisualStyleBackColor = false; |
|
317 |
this.btnAccept.Click += new System.EventHandler(this.btnAccept_Click); |
|
318 |
// |
|
317 | 319 |
// FrmSelectRegField |
318 | 320 |
// |
319 | 321 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmSelectRegField.cs | ||
---|---|---|
35 | 35 |
// 列インデックスenum ※■は非表示 |
36 | 36 |
private enum ColumnIndex |
37 | 37 |
{ |
38 |
ConstructionCode, // ■工事番号
|
|
38 |
RequestNo, // ■請求No
|
|
39 | 39 |
OrderNo, // ■連番 |
40 | 40 |
No, // 行番号 |
41 | 41 |
ConstructionName, // 現場名 |
... | ... | |
122 | 122 |
/// <param name="e"></param> |
123 | 123 |
private void FrmRegField_Load(object sender, EventArgs e) |
124 | 124 |
{ |
125 |
// dgvイベント抑止 |
|
126 |
dgvDisableEvents(); |
|
127 |
|
|
125 | 128 |
//フォームサイズ固定 |
126 | 129 |
this.MaximizedBounds = new Rectangle(this.Left, this.Top, this.Width, this.Height); |
127 | 130 |
|
... | ... | |
130 | 133 |
|
131 | 134 |
// 現場名表示 |
132 | 135 |
ItemListDisplay(); |
136 |
|
|
137 |
// dgvイベント抑止解除 |
|
138 |
dgvEnableEvents(); |
|
139 |
|
|
133 | 140 |
} |
134 | 141 |
#endregion |
135 | 142 |
|
... | ... | |
143 | 150 |
{ |
144 | 151 |
try |
145 | 152 |
{ |
146 |
// 一旦セルの値変更と行選択変更イベントを無効にする |
|
147 |
dgv1.CellValueChanged -= dgv1_CellValueChanged; |
|
148 |
dgv1.SelectionChanged -= dgv1_SelectionChanged; |
|
153 |
// dgvイベント抑止 |
|
154 |
dgvDisableEvents(); |
|
149 | 155 |
|
150 | 156 |
FrmSelectRequest f = new FrmSelectRequest(FrmSelectRequest.OpenMode.AddFld); |
151 | 157 |
f.m_OrderDiv = m_OrderersDivision; |
... | ... | |
154 | 160 |
f.FormClosed += new FormClosedEventHandler(NotifyEditFld_FormClosed); |
155 | 161 |
f.ShowDialog(this); |
156 | 162 |
|
157 |
// イベントハンドラ再登録 |
|
158 |
dgv1.CellValueChanged += dgv1_CellValueChanged; |
|
159 |
dgv1.SelectionChanged += dgv1_SelectionChanged; |
|
160 |
|
|
161 | 163 |
} |
162 | 164 |
catch (Exception ex) |
163 | 165 |
{ |
164 | 166 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
165 | 167 |
} |
168 |
finally |
|
169 |
{ |
|
170 |
// dgvイベント抑止解除 |
|
171 |
dgvEnableEvents(); |
|
172 |
} |
|
166 | 173 |
} |
167 | 174 |
#endregion |
168 | 175 |
|
... | ... | |
178 | 185 |
{ |
179 | 186 |
if (dgv1.CurrentCell.RowIndex <= 1) return; |
180 | 187 |
|
181 |
// 一旦セルの値変更と行選択変更イベントを無効にする |
|
182 |
dgv1.CellValueChanged -= dgv1_CellValueChanged; |
|
183 |
dgv1.SelectionChanged -= dgv1_SelectionChanged; |
|
188 |
// dgvイベント抑止 |
|
189 |
dgvDisableEvents(); |
|
184 | 190 |
|
185 | 191 |
// ダミー行の削除 |
186 | 192 |
RemoveDummyLine(); |
... | ... | |
188 | 194 |
// 内部データを更新 |
189 | 195 |
foreach (MyFieldData MyData in m_lstMyField) |
190 | 196 |
{ |
191 |
if ((MyData.RequestNo == CommonMotions.cnvInt(dgv1.Rows[dgv1.CurrentCell.RowIndex].Cells[(int)ColumnIndex.ConstructionCode].Value)) &&
|
|
197 |
if ((MyData.RequestNo == CommonMotions.cnvInt(dgv1.Rows[dgv1.CurrentCell.RowIndex].Cells[(int)ColumnIndex.RequestNo].Value)) &&
|
|
192 | 198 |
(MyData.OrderNo == CommonMotions.cnvInt(dgv1.Rows[dgv1.CurrentCell.RowIndex].Cells[(int)ColumnIndex.OrderNo].Value))) |
193 | 199 |
{ |
194 | 200 |
MyData.DeleteFlg = true; |
... | ... | |
213 | 219 |
// ダミー行追加 |
214 | 220 |
AddDummyLine(); |
215 | 221 |
|
216 |
// イベントハンドラ再登録 |
|
217 |
dgv1.CellValueChanged += dgv1_CellValueChanged; |
|
218 |
dgv1.SelectionChanged += dgv1_SelectionChanged; |
|
219 |
|
|
220 | 222 |
} |
221 | 223 |
catch (Exception ex) |
222 | 224 |
{ |
223 | 225 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
224 | 226 |
} |
227 |
finally |
|
228 |
{ |
|
229 |
// dgvイベント抑止解除 |
|
230 |
dgvEnableEvents(); |
|
231 |
} |
|
232 |
|
|
225 | 233 |
} |
226 | 234 |
#endregion |
227 | 235 |
|
... | ... | |
276 | 284 |
{ |
277 | 285 |
try |
278 | 286 |
{ |
287 |
// dgvイベント抑止 |
|
288 |
dgvDisableEvents(); |
|
289 |
|
|
279 | 290 |
if (dgv1.CurrentCell.RowIndex >= 2) |
280 | 291 |
{ |
281 | 292 |
btnDelete.Enabled = true; |
... | ... | |
295 | 306 |
{ |
296 | 307 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
297 | 308 |
} |
309 |
finally |
|
310 |
{ |
|
311 |
// dgvイベント抑止解除 |
|
312 |
dgvEnableEvents(); |
|
313 |
|
|
314 |
} |
|
298 | 315 |
} |
299 | 316 |
#endregion |
300 | 317 |
|
... | ... | |
308 | 325 |
{ |
309 | 326 |
try |
310 | 327 |
{ |
328 |
// dgvイベント抑止 |
|
329 |
dgvDisableEvents(); |
|
330 |
|
|
331 |
|
|
311 | 332 |
// 行が追加されたときではなく、セルの内容が変更されているときだけ処理を実行する。また金額以外の変更は処理を抜ける。 |
312 | 333 |
if (e.RowIndex == dgv1.NewRowIndex || !dgv1.IsCurrentCellDirty || e.ColumnIndex != (int)ColumnIndex.BillPrice) |
313 | 334 |
{ |
... | ... | |
317 | 338 |
// 内部データを更新 |
318 | 339 |
foreach (MyFieldData FldData in m_lstMyField) |
319 | 340 |
{ |
320 |
if ((FldData.RequestNo == CommonMotions.cnvInt(dgv1.Rows[e.RowIndex].Cells[(int)ColumnIndex.ConstructionCode].Value)) &&
|
|
341 |
if ((FldData.RequestNo == CommonMotions.cnvInt(dgv1.Rows[e.RowIndex].Cells[(int)ColumnIndex.RequestNo].Value)) &&
|
|
321 | 342 |
(FldData.OrderNo == CommonMotions.cnvInt(dgv1.Rows[e.RowIndex].Cells[(int)ColumnIndex.OrderNo].Value))) |
322 | 343 |
{ |
323 |
FldData.DepositAmount = CommonMotions.cnvInt(dgv1.Rows[e.RowIndex].Cells[(int)ColumnIndex.BillPrice].Value);
|
|
344 |
FldData.DepositAmount = CommonMotions.cnvLong(dgv1.Rows[e.RowIndex].Cells[(int)ColumnIndex.BillPrice].Value);
|
|
324 | 345 |
break; |
325 | 346 |
} |
326 | 347 |
} |
... | ... | |
332 | 353 |
{ |
333 | 354 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
334 | 355 |
} |
356 |
finally |
|
357 |
{ |
|
358 |
// dgvイベント抑止解除 |
|
359 |
dgvEnableEvents(); |
|
360 |
} |
|
361 |
|
|
335 | 362 |
} |
336 | 363 |
#endregion |
337 | 364 |
|
365 |
#region cellフォーマッティング |
|
366 |
/// <summary> |
|
367 |
/// cellフォーマッティング |
|
368 |
/// </summary> |
|
369 |
/// <param name="sender"></param> |
|
370 |
/// <param name="e"></param> |
|
371 |
private void dgv1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) |
|
372 |
{ |
|
373 |
try |
|
374 |
{ |
|
375 |
// dgvイベント抑止 |
|
376 |
dgvDisableEvents(); |
|
377 |
|
|
378 |
int tcol = e.ColumnIndex; |
|
379 |
int trow = e.RowIndex; |
|
380 |
|
|
381 |
// 請求金額以外は無視 |
|
382 |
if (tcol != (int)ColumnIndex.BillPrice) |
|
383 |
{ |
|
384 |
return; |
|
385 |
} |
|
386 |
|
|
387 |
// オブジェクトがnullも無視 |
|
388 |
if (dgv1[tcol, trow].Value == null) |
|
389 |
{ |
|
390 |
return; |
|
391 |
} |
|
392 |
|
|
393 |
int RequestNo = CommonMotions.cnvInt(dgv1[(int)ColumnIndex.RequestNo, trow].Value); |
|
394 |
int OrderNo = CommonMotions.cnvInt(dgv1[(int)ColumnIndex.OrderNo, trow].Value); |
|
395 |
|
|
396 |
// 金額を取得 |
|
397 |
string str = dgv1[tcol, trow].Value.ToString().Replace(",", ""); |
|
398 |
|
|
399 |
long val = 0; |
|
400 |
|
|
401 |
// 入力値が数値に変換可能な場合 |
|
402 |
if (long.TryParse(str, out val) == true) |
|
403 |
{ |
|
404 |
// セルの表示を更新 |
|
405 |
dgv1[tcol, trow].Value = val.ToString("#,0"); |
|
406 |
|
|
407 |
// 内部データを更新 |
|
408 |
UpdateMyFieldData(RequestNo, OrderNo, val); |
|
409 |
} |
|
410 |
// 不正値の場合 |
|
411 |
else |
|
412 |
{ |
|
413 |
// 内部データを取得 |
|
414 |
MyFieldData FldData = GetMyFieldData(RequestNo, OrderNo); |
|
415 |
|
|
416 |
// 内部データの値に戻す |
|
417 |
dgv1[tcol, trow].Value = FldData.BillPrice.ToString("#,0"); |
|
418 |
} |
|
419 |
|
|
420 |
return; |
|
421 |
} |
|
422 |
catch (Exception ex) |
|
423 |
{ |
|
424 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
425 |
} |
|
426 |
finally |
|
427 |
{ |
|
428 |
// dgvイベント抑止解除 |
|
429 |
dgvEnableEvents(); |
|
430 |
} |
|
431 |
|
|
432 |
} |
|
433 |
#endregion |
|
434 |
|
|
435 |
#region cell編集開始 |
|
436 |
/// <summary> |
|
437 |
/// cell編集開始 |
|
438 |
/// </summary> |
|
439 |
/// <param name="sender"></param> |
|
440 |
/// <param name="e"></param> |
|
441 |
private void dgv1_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e) |
|
442 |
{ |
|
443 |
try |
|
444 |
{ |
|
445 |
// dgvイベント抑止 |
|
446 |
dgvDisableEvents(); |
|
447 |
|
|
448 |
int tcol = e.ColumnIndex; |
|
449 |
int trow = e.RowIndex; |
|
450 |
|
|
451 |
if (tcol != (int)ColumnIndex.BillPrice) |
|
452 |
{ |
|
453 |
return; |
|
454 |
} |
|
455 |
|
|
456 |
if (dgv1[tcol, trow].Value == null) |
|
457 |
{ |
|
458 |
return; |
|
459 |
} |
|
460 |
|
|
461 |
string str = dgv1[tcol, trow].Value.ToString().Replace(",", ""); |
|
462 |
|
|
463 |
dgv1[tcol, trow].Value = str; |
|
464 |
|
|
465 |
return; |
|
466 |
} |
|
467 |
catch (Exception ex) |
|
468 |
{ |
|
469 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
470 |
} |
|
471 |
finally |
|
472 |
{ |
|
473 |
// dgvイベント抑止解除 |
|
474 |
dgvEnableEvents(); |
|
475 |
} |
|
476 |
|
|
477 |
} |
|
478 |
#endregion |
|
479 |
|
|
338 | 480 |
#region 発注者名表示 |
339 | 481 |
/// <summary> |
340 | 482 |
/// 発注者名表示 |
... | ... | |
409 | 551 |
} |
410 | 552 |
finally |
411 | 553 |
{ |
554 |
IoOm.close(); |
|
412 | 555 |
IoOm = null; |
413 | 556 |
} |
414 | 557 |
} |
... | ... | |
457 | 600 |
{ |
458 | 601 |
try |
459 | 602 |
{ |
460 |
// 一旦セルの値変更と行選択変更イベントを無効にする |
|
461 |
dgv1.CellValueChanged -= dgv1_CellValueChanged; |
|
462 |
dgv1.SelectionChanged -= dgv1_SelectionChanged; |
|
463 |
|
|
464 | 603 |
// DataGridを一旦クリア |
465 | 604 |
dgv1.Rows.Clear(); |
466 | 605 |
dgv2.Rows.Clear(); |
... | ... | |
514 | 653 |
// 不明行を再計算して表示 |
515 | 654 |
CalcUnknownBillPrice(); |
516 | 655 |
|
517 |
// イベントハンドラ再登録 |
|
518 |
dgv1.CellValueChanged += dgv1_CellValueChanged; |
|
519 |
dgv1.SelectionChanged += dgv1_SelectionChanged; |
|
520 |
|
|
521 | 656 |
} |
522 | 657 |
catch (Exception ex) |
523 | 658 |
{ |
... | ... | |
534 | 669 |
/// <param name="e"></param> |
535 | 670 |
private void NotifyEditFld_FormClosed(object sender, FormClosedEventArgs e) |
536 | 671 |
{ |
537 |
FrmSelectRequest f = (FrmSelectRequest)sender; |
|
538 |
|
|
539 | 672 |
try |
540 | 673 |
{ |
541 |
// 一旦セルの値変更と行選択変更イベントを無効にする |
|
542 |
dgv1.CellValueChanged -= dgv1_CellValueChanged; |
|
543 |
dgv1.SelectionChanged -= dgv1_SelectionChanged; |
|
674 |
FrmSelectRequest f = (FrmSelectRequest)sender; |
|
544 | 675 |
|
676 |
// イベント抑止 |
|
677 |
dgvDisableEvents(); |
|
678 |
|
|
545 | 679 |
if (f.m_lstAddFldData.Count() == 0) return; |
546 | 680 |
|
547 | 681 |
// 一旦ダミー行は削除 |
548 | 682 |
RemoveDummyLine(); |
549 | 683 |
|
550 | 684 |
// 現場追加あり |
551 |
foreach(FrmSelectRequest.AddFldData AddInfo in f.m_lstAddFldData) |
|
685 |
foreach (FrmSelectRequest.AddFldData AddInfo in f.m_lstAddFldData)
|
|
552 | 686 |
{ |
553 | 687 |
bool isExist = false; |
554 | 688 |
foreach (MyFieldData FldData in m_lstMyField) |
... | ... | |
593 | 727 |
dgv1.Rows[dgv1.RowCount - 1].Cells[(int)ColumnIndex.BillPrice].ReadOnly = false; |
594 | 728 |
dgv1.Rows[dgv1.RowCount - 1].Resizable = DataGridViewTriState.False; |
595 | 729 |
} |
730 |
|
|
596 | 731 |
} |
597 | 732 |
|
598 | 733 |
// 不明行を再計算して表示 |
... | ... | |
600 | 735 |
|
601 | 736 |
// ダミー行追加 |
602 | 737 |
AddDummyLine(); |
603 |
|
|
604 |
// イベントハンドラ再登録 |
|
605 |
dgv1.CellValueChanged += dgv1_CellValueChanged; |
|
606 |
dgv1.SelectionChanged += dgv1_SelectionChanged; |
|
607 |
|
|
608 | 738 |
} |
609 | 739 |
catch (Exception ex) |
610 | 740 |
{ |
611 | 741 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
612 | 742 |
} |
743 |
finally |
|
744 |
{ |
|
745 |
// dgvイベント抑止解除 |
|
746 |
dgvEnableEvents(); |
|
747 |
} |
|
613 | 748 |
} |
614 | 749 |
#endregion |
615 | 750 |
|
... | ... | |
648 | 783 |
for (int i = dgvRowCount - 1; i >= 0; i--) |
649 | 784 |
{ |
650 | 785 |
// 工事番号列が空の場合 |
651 |
if (dgv1[(int)ColumnIndex.ConstructionCode, i].Value.ToString() == string.Empty)
|
|
786 |
if (dgv1[(int)ColumnIndex.RequestNo, i].Value.ToString() == string.Empty)
|
|
652 | 787 |
{ |
653 | 788 |
dgv1.Rows.RemoveAt(i); |
654 | 789 |
} |
... | ... | |
662 | 797 |
} |
663 | 798 |
#endregion |
664 | 799 |
|
800 |
#region 内部データを取得 |
|
801 |
/// <summary> |
|
802 |
/// 内部データを取得 |
|
803 |
/// </summary> |
|
804 |
/// <param name="RequestNo">請求No</param> |
|
805 |
/// <param name="OrderNo">受付番号(現在、未使用)</param> |
|
806 |
/// <returns>内部データ</returns> |
|
807 |
private MyFieldData GetMyFieldData(int RequestNo, int OrderNo) |
|
808 |
{ |
|
809 |
foreach (MyFieldData FldData in m_lstMyField) |
|
810 |
{ |
|
811 |
if ((FldData.RequestNo == RequestNo) && (FldData.OrderNo == OrderNo)) |
|
812 |
{ |
|
813 |
return FldData; |
|
814 |
} |
|
815 |
} |
|
816 |
|
|
817 |
return null; |
|
818 |
} |
|
819 |
#endregion |
|
820 |
|
|
821 |
#region 内部データに反映 |
|
822 |
/// <summary> |
|
823 |
/// 内部データに反映 |
|
824 |
/// </summary> |
|
825 |
/// <param name="RequestNo">請求No</param> |
|
826 |
/// <param name="OrderNo">受付番号(現在、未使用)</param> |
|
827 |
/// <param name="BillPrice">請求金額</param> |
|
828 |
private void UpdateMyFieldData(int RequestNo, int OrderNo, long BillPrice) |
|
829 |
{ |
|
830 |
|
|
831 |
// 内部データを取得 |
|
832 |
MyFieldData FldData = GetMyFieldData(RequestNo, OrderNo); |
|
833 |
if (FldData == null) |
|
834 |
{ |
|
835 |
return; |
|
836 |
} |
|
837 |
|
|
838 |
// 請求金額を反映 |
|
839 |
FldData.DepositAmount = BillPrice; |
|
840 |
|
|
841 |
// 不明行を再計算して表示 |
|
842 |
CalcUnknownBillPrice(); |
|
843 |
|
|
844 |
return; |
|
845 |
} |
|
846 |
#endregion |
|
847 |
|
|
848 |
#region dgvイベント無効化 |
|
849 |
private void dgvDisableEvents() |
|
850 |
{ |
|
851 |
dgv1.CellBeginEdit -= dgv1_CellBeginEdit; |
|
852 |
dgv1.CellValueChanged -= dgv1_CellValueChanged; |
|
853 |
dgv1.CellFormatting -= dgv1_CellFormatting; |
|
854 |
dgv1.SelectionChanged -= dgv1_SelectionChanged; |
|
855 |
} |
|
856 |
#endregion |
|
857 |
|
|
858 |
#region dgvイベント有効化 |
|
859 |
private void dgvEnableEvents() |
|
860 |
{ |
|
861 |
dgv1.CellBeginEdit += dgv1_CellBeginEdit; |
|
862 |
dgv1.CellValueChanged += dgv1_CellValueChanged; |
|
863 |
dgv1.CellFormatting += dgv1_CellFormatting; |
|
864 |
dgv1.SelectionChanged += dgv1_SelectionChanged; |
|
865 |
} |
|
866 |
#endregion |
|
867 |
|
|
868 |
|
|
665 | 869 |
} |
666 | 870 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmSelectRequest.Designer.cs | ||
---|---|---|
38 | 38 |
this.label1 = new System.Windows.Forms.Label(); |
39 | 39 |
this.comboBoxName = new System.Windows.Forms.ComboBox(); |
40 | 40 |
this.dgvmaster = new System.Windows.Forms.DataGridView(); |
41 |
this.btnSelect = new System.Windows.Forms.Button(); |
|
42 |
this.btnEnd = new System.Windows.Forms.Button(); |
|
43 | 41 |
this.No = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
44 | 42 |
this.RequestNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
45 | 43 |
this.OrderersDivision = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
... | ... | |
53 | 51 |
this.SelectCheckBox = new System.Windows.Forms.DataGridViewCheckBoxColumn(); |
54 | 52 |
this.PersonName = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
55 | 53 |
this.DepartmentCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
54 |
this.btnSelect = new System.Windows.Forms.Button(); |
|
55 |
this.btnEnd = new System.Windows.Forms.Button(); |
|
56 | 56 |
((System.ComponentModel.ISupportInitialize)(this.dgvmaster)).BeginInit(); |
57 | 57 |
this.SuspendLayout(); |
58 | 58 |
// |
... | ... | |
149 | 149 |
this.dgvmaster.Size = new System.Drawing.Size(744, 236); |
150 | 150 |
this.dgvmaster.TabIndex = 12; |
151 | 151 |
// |
152 |
// btnSelect |
|
153 |
// |
|
154 |
this.btnSelect.BackColor = System.Drawing.Color.Green; |
|
155 |
this.btnSelect.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
156 |
this.btnSelect.ForeColor = System.Drawing.Color.White; |
|
157 |
this.btnSelect.Location = new System.Drawing.Point(506, 311); |
|
158 |
this.btnSelect.Name = "btnSelect"; |
|
159 |
this.btnSelect.Size = new System.Drawing.Size(120, 30); |
|
160 |
this.btnSelect.TabIndex = 13; |
|
161 |
this.btnSelect.Text = "選 択"; |
|
162 |
this.btnSelect.UseVisualStyleBackColor = false; |
|
163 |
this.btnSelect.Click += new System.EventHandler(this.btnSelect_Click); |
|
164 |
// |
|
165 |
// btnEnd |
|
166 |
// |
|
167 |
this.btnEnd.BackColor = System.Drawing.Color.Blue; |
|
168 |
this.btnEnd.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
169 |
this.btnEnd.ForeColor = System.Drawing.Color.White; |
|
170 |
this.btnEnd.Location = new System.Drawing.Point(632, 311); |
|
171 |
this.btnEnd.Name = "btnEnd"; |
|
172 |
this.btnEnd.Size = new System.Drawing.Size(120, 30); |
|
173 |
this.btnEnd.TabIndex = 14; |
|
174 |
this.btnEnd.Text = "終 了"; |
|
175 |
this.btnEnd.UseVisualStyleBackColor = false; |
|
176 |
this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click); |
|
177 |
// |
|
178 | 152 |
// No |
179 | 153 |
// |
180 | 154 |
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
... | ... | |
286 | 260 |
this.DepartmentCode.Name = "DepartmentCode"; |
287 | 261 |
this.DepartmentCode.Visible = false; |
288 | 262 |
// |
263 |
// btnSelect |
|
264 |
// |
|
265 |
this.btnSelect.BackColor = System.Drawing.Color.Green; |
|
266 |
this.btnSelect.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
267 |
this.btnSelect.ForeColor = System.Drawing.Color.White; |
|
268 |
this.btnSelect.Location = new System.Drawing.Point(506, 311); |
|
269 |
this.btnSelect.Name = "btnSelect"; |
|
270 |
this.btnSelect.Size = new System.Drawing.Size(120, 30); |
|
271 |
this.btnSelect.TabIndex = 13; |
|
272 |
this.btnSelect.Text = "選 択"; |
|
273 |
this.btnSelect.UseVisualStyleBackColor = false; |
|
274 |
this.btnSelect.Click += new System.EventHandler(this.btnSelect_Click); |
|
275 |
// |
|
276 |
// btnEnd |
|
277 |
// |
|
278 |
this.btnEnd.BackColor = System.Drawing.Color.Blue; |
|
279 |
this.btnEnd.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
280 |
this.btnEnd.ForeColor = System.Drawing.Color.White; |
|
281 |
this.btnEnd.Location = new System.Drawing.Point(632, 311); |
|
282 |
this.btnEnd.Name = "btnEnd"; |
|
283 |
this.btnEnd.Size = new System.Drawing.Size(120, 30); |
|
284 |
this.btnEnd.TabIndex = 14; |
|
285 |
this.btnEnd.Text = "終 了"; |
|
286 |
this.btnEnd.UseVisualStyleBackColor = false; |
|
287 |
this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click); |
|
288 |
// |
|
289 | 289 |
// FrmSelectRequest |
290 | 290 |
// |
291 | 291 |
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 16F); |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmSelectRequest.cs | ||
---|---|---|
27 | 27 |
// 「請求先/現場選択」画面 |
28 | 28 |
public partial class FrmSelectRequest : Form |
29 | 29 |
{ |
30 |
#region 使用定義 |
|
30 | 31 |
//log4netログを使用する |
31 | 32 |
private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
33 |
#endregion |
|
32 | 34 |
|
35 |
#region 定数 |
|
36 |
|
|
37 |
// 起動モード |
|
33 | 38 |
public enum OpenMode |
34 | 39 |
{ |
35 | 40 |
AddCmp, // 発注先追加 |
... | ... | |
70 | 75 |
DepartmentCode, |
71 | 76 |
} |
72 | 77 |
|
78 |
#endregion |
|
79 |
|
|
80 |
#region 変数 |
|
73 | 81 |
// オープンモード |
74 | 82 |
public OpenMode m_mode = OpenMode.AddCmp; |
75 | 83 |
|
... | ... | |
91 | 99 |
// 発注者追加:編集データ |
92 | 100 |
public AddCmpData m_AddCmpData = new AddCmpData(); |
93 | 101 |
|
94 |
|
|
95 | 102 |
// 現場追加:発注者区分情報 |
96 | 103 |
public int m_OrderDiv = 0; |
97 | 104 |
|
... | ... | |
117 | 124 |
// 現場追加:編集データ |
118 | 125 |
public List<AddFldData> m_lstAddFldData = new List<AddFldData>(); |
119 | 126 |
|
127 |
#endregion |
|
128 |
|
|
129 |
#region デフォルトコンストラクタ |
|
130 |
/// <summary> |
|
131 |
/// デフォルトコンストラクタ |
|
132 |
/// </summary> |
|
120 | 133 |
public FrmSelectRequest() |
121 | 134 |
{ |
122 | 135 |
InitializeComponent(); |
123 | 136 |
} |
137 |
#endregion |
|
124 | 138 |
|
139 |
#region コンストラクタ |
|
140 |
/// <summary> |
|
141 |
/// コンストラクタ |
|
142 |
/// </summary> |
|
143 |
/// <param name="mode">起動モード</param> |
|
125 | 144 |
public FrmSelectRequest(OpenMode mode) |
126 | 145 |
{ |
127 | 146 |
InitializeComponent(); |
... | ... | |
138 | 157 |
this.Text = "請求書選択"; |
139 | 158 |
} |
140 | 159 |
} |
160 |
#endregion |
|
141 | 161 |
|
142 |
// フォームロード時 |
|
162 |
#region フォームロード |
|
163 |
/// <summary> |
|
164 |
/// フォームロード |
|
165 |
/// </summary> |
|
166 |
/// <param name="sender"></param> |
|
167 |
/// <param name="e"></param> |
|
143 | 168 |
private void FrmSelectRequest_Load(object sender, EventArgs e) |
144 | 169 |
{ |
145 | 170 |
try |
... | ... | |
152 | 177 |
if (m_mode == OpenMode.AddCmp) |
153 | 178 |
{ |
154 | 179 |
// 仮で20行だけ空行を作成 |
155 |
for(int i=0;i<20;i++){ |
|
180 |
for (int i = 0; i < 20; i++) |
|
181 |
{ |
|
156 | 182 |
this.dgvmaster.Rows.Add(); |
157 | 183 |
} |
158 | 184 |
|
... | ... | |
174 | 200 |
string Name = ""; |
175 | 201 |
|
176 | 202 |
if (!GetDivName(m_OrderDiv, ref Name)) return; |
177 |
this.comboBoxKbn.Items.AddRange(new object[]{ Name }); |
|
203 |
this.comboBoxKbn.Items.AddRange(new object[] { Name });
|
|
178 | 204 |
this.comboBoxKbn.SelectedIndex = 0; |
179 | 205 |
this.comboBoxKbn.Enabled = false; |
180 | 206 |
|
... | ... | |
197 | 223 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
198 | 224 |
} |
199 | 225 |
} |
226 |
#endregion |
|
200 | 227 |
|
201 |
// 選択ボタン押下時 |
|
228 |
#region 選択ボタン押下 |
|
229 |
/// <summary> |
|
230 |
/// 選択ボタン押下 |
|
231 |
/// </summary> |
|
232 |
/// <param name="sender"></param> |
|
233 |
/// <param name="e"></param> |
|
202 | 234 |
private void btnSelect_Click(object sender, EventArgs e) |
203 | 235 |
{ |
204 | 236 |
DataGridView dgv = this.dgvmaster; |
... | ... | |
253 | 285 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
254 | 286 |
} |
255 | 287 |
} |
288 |
#endregion |
|
256 | 289 |
|
257 |
// 終了ボタン押下時 |
|
290 |
#region 終了ボタン押下 |
|
291 |
/// <summary> |
|
292 |
/// 終了ボタン押下 |
|
293 |
/// </summary> |
|
294 |
/// <param name="sender"></param> |
|
295 |
/// <param name="e"></param> |
|
258 | 296 |
private void btnEnd_Click(object sender, EventArgs e) |
259 | 297 |
{ |
260 | 298 |
DataGridView dgv = this.dgvmaster; |
... | ... | |
281 | 319 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
282 | 320 |
} |
283 | 321 |
} |
322 |
#endregion |
|
284 | 323 |
|
285 |
// 発注者区分コンボボックスの選択項目変更時 |
|
324 |
#region 発注者区分コンボボックスの選択項目変更 |
|
325 |
/// <summary> |
|
326 |
/// 発注者区分コンボボックスの選択項目変更 |
|
327 |
/// </summary> |
|
328 |
/// <param name="sender"></param> |
|
329 |
/// <param name="e"></param> |
|
286 | 330 |
private void comboBoxKbn_SelectedIndexChanged(object sender, EventArgs e) |
287 | 331 |
{ |
288 | 332 |
try |
... | ... | |
306 | 350 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
307 | 351 |
} |
308 | 352 |
} |
353 |
#endregion |
|
309 | 354 |
|
310 |
// 発注者名称コンボボックスの選択項目変更時 |
|
355 |
#region 発注者名称コンボボックスの選択項目変更時 |
|
356 |
/// <summary> |
|
357 |
/// 発注者名称コンボボックスの選択項目変更時 |
|
358 |
/// </summary> |
|
359 |
/// <param name="sender"></param> |
|
360 |
/// <param name="e"></param> |
|
311 | 361 |
private void comboBoxName_SelectedIndexChanged(object sender, EventArgs e) |
312 | 362 |
{ |
313 | 363 |
try |
... | ... | |
324 | 374 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
325 | 375 |
} |
326 | 376 |
} |
377 |
#endregion |
|
327 | 378 |
|
328 |
// 発注者追加:発注者区分取得 |
|
379 |
#region 発注者追加:発注者区分取得 |
|
380 |
/// <summary> |
|
381 |
/// 発注者追加:発注者区分取得 |
|
382 |
/// </summary> |
|
383 |
/// <param name="lstDiv">発注者名リスト</param> |
|
384 |
/// <returns></returns> |
|
329 | 385 |
private bool GetDivName(ref List<string> lstDiv) |
330 | 386 |
{ |
331 | 387 |
IOMDivision IoDm = new IOMDivision(); |
... | ... | |
352 | 408 |
} |
353 | 409 |
finally |
354 | 410 |
{ |
411 |
IoDm.close(); |
|
355 | 412 |
IoDm = null; |
356 | 413 |
} |
357 | 414 |
} |
415 |
#endregion |
|
358 | 416 |
|
359 |
// 発注者追加:発注者名称取得 |
|
417 |
#region 発注者追加:発注者名称取得 |
|
418 |
/// <summary> |
|
419 |
/// 発注者追加:発注者名称取得 |
|
420 |
/// </summary> |
|
421 |
/// <param name="NameCode">発注者区分</param> |
|
422 |
/// <param name="lstOdr">発注者名リスト</param> |
|
423 |
/// <returns></returns> |
|
360 | 424 |
private bool GetOrderName(int NameCode, ref List<string> lstOdr) |
361 | 425 |
{ |
362 | 426 |
IOMOrderers IoOm = new IOMOrderers(); |
... | ... | |
424 | 488 |
} |
425 | 489 |
finally |
426 | 490 |
{ |
491 |
IoOm.close(); |
|
427 | 492 |
IoOm = null; |
428 | 493 |
} |
429 | 494 |
} |
495 |
#endregion |
|
430 | 496 |
|
431 |
// 発注者追加:現場リスト表示 |
|
497 |
#region 発注者追加:現場リスト表示 |
|
498 |
/// <summary> |
|
499 |
/// 発注者追加:現場リスト表示 |
|
500 |
/// </summary> |
|
501 |
/// <param name="OrderDiv">発注者区分</param> |
|
502 |
/// <param name="OrderCode">発注者コード</param> |
|
503 |
/// <returns></returns> |
|
432 | 504 |
public bool DispFieldName(int OrderDiv, int OrderCode) |
433 | 505 |
{ |
434 | 506 |
IORequestHead IoRtd = new IORequestHead(); |
... | ... | |
441 | 513 |
// SQL作成 |
442 | 514 |
sql = new StringBuilder(); |
443 | 515 |
sql.Append("SELECT"); |
444 |
sql.Append(" ReqHead.RequestNo"); // 請求No |
|
445 |
sql.Append(",0"); // 受付番号(廃止予定) |
|
446 |
sql.Append(",ReqHead.OrderersDivision"); // 発注者区分 |
|
447 |
sql.Append(",ReqHead.OrderersCode"); // 発注者コード |
|
448 |
sql.Append(",DATE_FORMAT(InvData.CretateDate, '%Y/%m/%d') as CreateDate "); // 請求書作成日 |
|
449 |
sql.Append(",ReqHead.RequestTotalAmount"); // 請求書合計金額 |
|
450 |
sql.Append(",ReqHead.RequestAmount"); // 請求金額
|
|
451 |
sql.Append(",ReqHead.TaxAmount"); // 消費税 |
|
452 |
sql.Append(",ReqHead.ReqConstructionName"); // 請求件名 |
|
453 |
sql.Append(",Prsn.PersonName "); // 担当者名 |
|
454 |
sql.Append(",Prsn.DepartmentCode "); // 所属部署コード |
|
516 |
sql.Append(" ReqHead.RequestNo"); // 請求No
|
|
517 |
sql.Append(",0"); // 受付番号(廃止予定)
|
|
518 |
sql.Append(",ReqHead.OrderersDivision"); // 発注者区分
|
|
519 |
sql.Append(",ReqHead.OrderersCode"); // 発注者コード
|
|
520 |
sql.Append(",DATE_FORMAT(InvData.CretateDate, '%Y/%m/%d') as CreateDate "); // 請求書作成日
|
|
521 |
sql.Append(",ReqHead.RequestTotalAmount"); // 請求書合計金額
|
|
522 |
sql.Append(",ReqHead.RequestAmount + ReqHead.UnpaidAmount"); // 請求金額(未入金分はここに含める)
|
|
523 |
sql.Append(",ReqHead.TaxAmount"); // 消費税
|
|
524 |
sql.Append(",ReqHead.ReqConstructionName"); // 請求件名
|
|
525 |
sql.Append(",Prsn.PersonName "); // 担当者名
|
|
526 |
sql.Append(",Prsn.DepartmentCode "); // 所属部署コード
|
|
455 | 527 |
|
456 | 528 |
sql.Append(" FROM RequestHead AS ReqHead "); |
457 | 529 |
sql.Append(" INNER JOIN InvoiceData AS InvData ON "); |
... | ... | |
536 | 608 |
} |
537 | 609 |
finally |
538 | 610 |
{ |
611 |
IoRtd.close(); |
|
539 | 612 |
IoRtd = null; |
540 | 613 |
} |
541 | 614 |
} |
615 |
#endregion |
|
542 | 616 |
|
543 |
// 現場追加:発注者区分取得 |
|
617 |
#region 現場追加:発注者区分取得 |
|
618 |
/// <summary> |
|
619 |
/// 現場追加:発注者区分取得 |
|
620 |
/// </summary> |
|
621 |
/// <param name="OrderDiv">発注者区分</param> |
|
622 |
/// <param name="DivName">発注者区分名</param> |
|
623 |
/// <returns></returns> |
|
544 | 624 |
private bool GetDivName(int OrderDiv, ref string DivName) |
545 | 625 |
{ |
546 | 626 |
IOMDivision IoDm = new IOMDivision(); |
... | ... | |
564 | 644 |
} |
565 | 645 |
finally |
566 | 646 |
{ |
647 |
IoDm.close(); |
|
567 | 648 |
IoDm = null; |
568 | 649 |
} |
569 | 650 |
} |
651 |
#endregion |
|
570 | 652 |
|
571 |
// 現場追加:発注者名称取得 |
|
653 |
#region 現場追加:発注者名称取得 |
|
654 |
/// <summary> |
|
655 |
/// 現場追加:発注者名称取得 |
|
656 |
/// </summary> |
|
657 |
/// <param name="OrderDiv">発注者区分</param> |
|
658 |
/// <param name="OrderCode">発注者コード</param> |
|
659 |
/// <param name="OdrName">発注者名</param> |
|
660 |
/// <returns></returns> |
|
572 | 661 |
private bool GetOrderName(int OrderDiv, int OrderCode, ref string OdrName) |
573 | 662 |
{ |
574 | 663 |
IOMOrderers IoOm = new IOMOrderers(); |
... | ... | |
635 | 724 |
} |
636 | 725 |
finally |
637 | 726 |
{ |
727 |
IoOm.close(); |
|
638 | 728 |
IoOm = null; |
639 | 729 |
} |
640 | 730 |
} |
731 |
#endregion |
|
732 |
|
|
733 |
|
|
641 | 734 |
} |
642 | 735 |
} |
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 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();
|
|
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();
|
|
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(); |
|
54 | 72 |
this.col001 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
55 | 73 |
this.col002 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
56 | 74 |
this.col003 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
... | ... | |
76 | 94 |
this.col23 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
77 | 95 |
this.col098 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
78 | 96 |
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(); |
... | ... | |
146 | 146 |
this.dgv1.Name = "dgv1"; |
147 | 147 |
this.dgv1.RowHeadersWidth = 24; |
148 | 148 |
this.dgv1.RowTemplate.Height = 21; |
149 |
this.dgv1.Size = new System.Drawing.Size(1308, 455);
|
|
149 |
this.dgv1.Size = new System.Drawing.Size(1308, 477);
|
|
150 | 150 |
this.dgv1.TabIndex = 10; |
151 | 151 |
this.dgv1.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dgv1_CellBeginEdit); |
152 | 152 |
this.dgv1.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dgv1_CellFormatting); |
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 |
// |
|
156 | 367 |
// col001 |
157 | 368 |
// |
158 | 369 |
this.col001.Frozen = true; |
... | ... | |
179 | 390 |
// col004 |
180 | 391 |
// |
181 | 392 |
this.col004.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; |
182 |
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
183 |
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
|
184 |
this.col004.DefaultCellStyle = dataGridViewCellStyle1;
|
|
393 |
dataGridViewCellStyle43.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
394 |
dataGridViewCellStyle43.BackColor = System.Drawing.SystemColors.Control;
|
|
395 |
this.col004.DefaultCellStyle = dataGridViewCellStyle43;
|
|
185 | 396 |
this.col004.Frozen = true; |
186 | 397 |
this.col004.HeaderText = ""; |
187 | 398 |
this.col004.Name = "col004"; |
... | ... | |
192 | 403 |
// |
193 | 404 |
// col005 |
194 | 405 |
// |
195 |
dataGridViewCellStyle2.BackColor = System.Drawing.Color.White;
|
|
196 |
this.col005.DefaultCellStyle = dataGridViewCellStyle2;
|
|
406 |
dataGridViewCellStyle44.BackColor = System.Drawing.Color.White;
|
|
407 |
this.col005.DefaultCellStyle = dataGridViewCellStyle44;
|
|
197 | 408 |
this.col005.Frozen = true; |
198 | 409 |
this.col005.HeaderText = ""; |
199 | 410 |
this.col005.Name = "col005"; |
... | ... | |
204 | 415 |
// |
205 | 416 |
// col006 |
206 | 417 |
// |
207 |
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
208 |
dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
|
|
209 |
this.col006.DefaultCellStyle = dataGridViewCellStyle3;
|
|
418 |
dataGridViewCellStyle45.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
419 |
dataGridViewCellStyle45.BackColor = System.Drawing.Color.White;
|
|
420 |
this.col006.DefaultCellStyle = dataGridViewCellStyle45;
|
|
210 | 421 |
this.col006.Frozen = true; |
211 | 422 |
this.col006.HeaderText = "受注金額"; |
212 | 423 |
this.col006.Name = "col006"; |
... | ... | |
216 | 427 |
// |
217 | 428 |
// col007 |
218 | 429 |
// |
219 |
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
220 |
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; |
|
221 |
this.col007.DefaultCellStyle = dataGridViewCellStyle4; |
|
430 |
dataGridViewCellStyle46.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
431 |
dataGridViewCellStyle46.BackColor = System.Drawing.SystemColors.Control;
|
|
432 |
this.col007.DefaultCellStyle = dataGridViewCellStyle46;
|
|
222 | 433 |
this.col007.Frozen = true; |
223 | 434 |
this.col007.HeaderText = ""; |
224 | 435 |
this.col007.Name = "col007"; |
... | ... | |
228 | 439 |
// |
229 | 440 |
// col008 |
230 | 441 |
// |
231 |
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
232 |
this.col008.DefaultCellStyle = dataGridViewCellStyle5;
|
|
442 |
dataGridViewCellStyle47.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
443 |
this.col008.DefaultCellStyle = dataGridViewCellStyle47;
|
|
233 | 444 |
this.col008.FillWeight = 120F; |
234 | 445 |
this.col008.Frozen = true; |
235 | 446 |
this.col008.HeaderText = "合計"; |
... | ... | |
240 | 451 |
// |
241 | 452 |
// col009 |
242 | 453 |
// |
243 |
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
244 |
this.col009.DefaultCellStyle = dataGridViewCellStyle6;
|
|
454 |
dataGridViewCellStyle48.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
455 |
this.col009.DefaultCellStyle = dataGridViewCellStyle48;
|
|
245 | 456 |
this.col009.HeaderText = "1回目"; |
246 | 457 |
this.col009.Name = "col009"; |
247 | 458 |
this.col009.ReadOnly = true; |
... | ... | |
250 | 461 |
// |
251 | 462 |
// col010 |
252 | 463 |
// |
253 |
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
254 |
this.col010.DefaultCellStyle = dataGridViewCellStyle7;
|
|
464 |
dataGridViewCellStyle49.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
465 |
this.col010.DefaultCellStyle = dataGridViewCellStyle49;
|
|
255 | 466 |
this.col010.HeaderText = "2回目"; |
256 | 467 |
this.col010.Name = "col010"; |
257 | 468 |
this.col010.ReadOnly = true; |
... | ... | |
260 | 471 |
// |
261 | 472 |
// col011 |
262 | 473 |
// |
263 |
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
264 |
this.col011.DefaultCellStyle = dataGridViewCellStyle8;
|
|
474 |
dataGridViewCellStyle50.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
475 |
this.col011.DefaultCellStyle = dataGridViewCellStyle50;
|
|
265 | 476 |
this.col011.HeaderText = "3回目"; |
266 | 477 |
this.col011.Name = "col011"; |
267 | 478 |
this.col011.ReadOnly = true; |
... | ... | |
270 | 481 |
// |
271 | 482 |
// col12 |
272 | 483 |
// |
273 |
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
274 |
this.col12.DefaultCellStyle = dataGridViewCellStyle9;
|
|
484 |
dataGridViewCellStyle51.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
485 |
this.col12.DefaultCellStyle = dataGridViewCellStyle51;
|
|
275 | 486 |
this.col12.HeaderText = "4回目"; |
276 | 487 |
this.col12.Name = "col12"; |
277 | 488 |
this.col12.ReadOnly = true; |
... | ... | |
281 | 492 |
// |
282 | 493 |
// col13 |
283 | 494 |
// |
284 |
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
285 |
this.col13.DefaultCellStyle = dataGridViewCellStyle10;
|
|
495 |
dataGridViewCellStyle52.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
496 |
this.col13.DefaultCellStyle = dataGridViewCellStyle52;
|
|
286 | 497 |
this.col13.HeaderText = "5回目"; |
287 | 498 |
this.col13.Name = "col13"; |
288 | 499 |
this.col13.ReadOnly = true; |
... | ... | |
292 | 503 |
// |
293 | 504 |
// col14 |
294 | 505 |
// |
295 |
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
296 |
this.col14.DefaultCellStyle = dataGridViewCellStyle11;
|
|
506 |
dataGridViewCellStyle53.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
507 |
this.col14.DefaultCellStyle = dataGridViewCellStyle53;
|
|
297 | 508 |
this.col14.HeaderText = "6回目"; |
298 | 509 |
this.col14.Name = "col14"; |
299 | 510 |
this.col14.ReadOnly = true; |
... | ... | |
303 | 514 |
// |
304 | 515 |
// col15 |
305 | 516 |
// |
306 |
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
307 |
this.col15.DefaultCellStyle = dataGridViewCellStyle12;
|
|
517 |
dataGridViewCellStyle54.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
518 |
this.col15.DefaultCellStyle = dataGridViewCellStyle54;
|
|
308 | 519 |
this.col15.HeaderText = "7回目"; |
309 | 520 |
this.col15.Name = "col15"; |
310 | 521 |
this.col15.ReadOnly = true; |
... | ... | |
314 | 525 |
// |
315 | 526 |
// col16 |
316 | 527 |
// |
317 |
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
318 |
this.col16.DefaultCellStyle = dataGridViewCellStyle13;
|
|
528 |
dataGridViewCellStyle55.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
529 |
this.col16.DefaultCellStyle = dataGridViewCellStyle55;
|
|
319 | 530 |
this.col16.HeaderText = "8回目"; |
320 | 531 |
this.col16.Name = "col16"; |
321 | 532 |
this.col16.ReadOnly = true; |
... | ... | |
325 | 536 |
// |
326 | 537 |
// col17 |
327 | 538 |
// |
328 |
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
329 |
this.col17.DefaultCellStyle = dataGridViewCellStyle14;
|
|
539 |
dataGridViewCellStyle56.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
540 |
this.col17.DefaultCellStyle = dataGridViewCellStyle56;
|
|
330 | 541 |
this.col17.HeaderText = "9回目"; |
331 | 542 |
this.col17.Name = "col17"; |
332 | 543 |
this.col17.ReadOnly = true; |
... | ... | |
336 | 547 |
// |
337 | 548 |
// col18 |
338 | 549 |
// |
339 |
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
340 |
this.col18.DefaultCellStyle = dataGridViewCellStyle15;
|
|
550 |
dataGridViewCellStyle57.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
551 |
this.col18.DefaultCellStyle = dataGridViewCellStyle57;
|
|
341 | 552 |
this.col18.HeaderText = "10回目"; |
342 | 553 |
this.col18.Name = "col18"; |
343 | 554 |
this.col18.ReadOnly = true; |
... | ... | |
347 | 558 |
// |
348 | 559 |
// col19 |
349 | 560 |
// |
350 |
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
351 |
this.col19.DefaultCellStyle = dataGridViewCellStyle16;
|
|
561 |
dataGridViewCellStyle58.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
562 |
this.col19.DefaultCellStyle = dataGridViewCellStyle58;
|
|
352 | 563 |
this.col19.HeaderText = "11回目"; |
353 | 564 |
this.col19.Name = "col19"; |
354 | 565 |
this.col19.ReadOnly = true; |
... | ... | |
358 | 569 |
// |
359 | 570 |
// col20 |
360 | 571 |
// |
361 |
dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
362 |
this.col20.DefaultCellStyle = dataGridViewCellStyle17;
|
|
572 |
dataGridViewCellStyle59.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
573 |
this.col20.DefaultCellStyle = dataGridViewCellStyle59;
|
|
363 | 574 |
this.col20.HeaderText = "12回目"; |
364 | 575 |
this.col20.Name = "col20"; |
365 | 576 |
this.col20.ReadOnly = true; |
... | ... | |
369 | 580 |
// |
370 | 581 |
// col21 |
371 | 582 |
// |
372 |
dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
373 |
this.col21.DefaultCellStyle = dataGridViewCellStyle18;
|
|
583 |
dataGridViewCellStyle60.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
584 |
this.col21.DefaultCellStyle = dataGridViewCellStyle60;
|
|
374 | 585 |
this.col21.HeaderText = "13回目"; |
375 | 586 |
this.col21.Name = "col21"; |
376 | 587 |
this.col21.ReadOnly = true; |
... | ... | |
380 | 591 |
// |
381 | 592 |
// col22 |
382 | 593 |
// |
383 |
dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
384 |
this.col22.DefaultCellStyle = dataGridViewCellStyle19;
|
|
594 |
dataGridViewCellStyle61.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
595 |
this.col22.DefaultCellStyle = dataGridViewCellStyle61;
|
|
385 | 596 |
this.col22.HeaderText = "14回目"; |
386 | 597 |
this.col22.Name = "col22"; |
387 | 598 |
this.col22.ReadOnly = true; |
... | ... | |
391 | 602 |
// |
392 | 603 |
// col23 |
393 | 604 |
// |
394 |
dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; |
|
395 |
this.col23.DefaultCellStyle = dataGridViewCellStyle20; |
|
605 |
dataGridViewCellStyle62.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; |
|
606 |
this.col23.DefaultCellStyle = dataGridViewCellStyle62; |
他の形式にエクスポート: Unified diff