プロジェクト

全般

プロフィール

リビジョン 256

堀内7年以上前に追加

請求まとめ一覧追加中
交通費及び購入品入力改修(表示・上長以上の登録後表示)
承認処理ToolTip改行対応

差分を表示:

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

  
19 19
        /// <summary>
20 20
        /// コピー・環境バージョン
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs
88 88
            ReqBillingStatus = 41,              // 41:請求書発給一覧
89 89
            ReqBillingStatInput = 42,           // 42:請求書状況入力
90 90
            SafetyPatrol = 43,                  // 43:安全パトロール申請
91
            ReqSumTotalList = 44,               // 44:手間・通常業者一覧
91 92
        }
92 93
        #endregion
93 94

  
......
196 197
                                                                                { (int)ProcessExecuteNo.ReqBillingStatus,       "請求書発給一覧-表示"},
197 198
                                                                                { (int)ProcessExecuteNo.ReqBillingStatInput,    "請求書状況-入力"},
198 199
                                                                                { (int)ProcessExecuteNo.SafetyPatrol,           "安全パトロール申請"},
199

  
200
                                                                                { (int)ProcessExecuteNo.ReqSumTotalList,        "手間・通常業者一覧-表示"},
200 201
        };
201 202

  
202 203
        #endregion
......
662 663
                            ProcessExecuteNo_SafetyPatrol(m_ProcControlPara[NowPoint]);
663 664
                            break;
664 665

  
666
                        case (int)ProcessExecuteNo.ReqSumTotalList:                     // 44:手間・通常業者一覧
667
                            break;
665 668
                        #endregion
666 669

  
667 670
                        #region マスタメンテ
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSystem.cs
353 353
        }
354 354
        #endregion
355 355

  
356
        #region 1項目更新処理
357
        /// <summary>
358
        /// 1項目の更新を行う
359
        /// </summary>
360
        /// <returns></returns>
361
        public bool UpdateFeild(int SystemCode, int FeildNo, object value, bool bConnect = true)
362
        {
363
            StringBuilder strcmd = new StringBuilder();
364
            try
365
            {
366
                strcmd.Append("UPDATE SystemMaster");
367

  
368
                strcmd.Append(" SET");
369
                switch (FeildNo)
370
                {
371
                    case (int)SystemColumn.SYSTEMCODE:
372
                        strcmd.AppendFormat(" SystemCode = {0}", ((int)value).ToString());
373
                        break;
374
                    case (int)SystemColumn.COMPANYNAME1:
375
                        strcmd.AppendFormat(" CompanyName1 = '{0}'", value.ToString());
376
                        break;
377
                    case (int)SystemColumn.COMPANYNAME2:
378
                        strcmd.AppendFormat(" CompanyName2 = '{0}'", value.ToString());
379
                        break;
380
                    case (int)SystemColumn.CEONAME:
381
                        strcmd.AppendFormat(" CeoName = '{0}'", value.ToString());
382
                        break;
383
                    case (int)SystemColumn.CEOPOSITIONNAME:
384
                        strcmd.AppendFormat(" CeoName = '{0}'", value.ToString());
385
                        break;
386
                    case (int)SystemColumn.ZIPCODE:
387
                        strcmd.AppendFormat(" CeoName = '{0}'", value.ToString());
388
                        break;
389
                    case (int)SystemColumn.ADDRESS1:
390
                        strcmd.AppendFormat(" Address1 = '{0}'", value.ToString());
391
                        break;
392
                    case (int)SystemColumn.ADDRESS2:
393
                        strcmd.AppendFormat(" Address2 = '{0}'", value.ToString());
394
                        break;
395
                    case (int)SystemColumn.ADDRESS3:
396
                        strcmd.AppendFormat(" Address3 = '{0}'", value.ToString());
397
                        break;
398
                    case (int)SystemColumn.PHONENUMBER:
399
                        strcmd.AppendFormat(" PhoneNumber = '{0}'", value.ToString());
400
                        break;
401
                    case (int)SystemColumn.FAXNUMBER:
402
                        strcmd.AppendFormat(" FaxNumber = '{0}'", value.ToString());
403
                        break;
404
                    case (int)SystemColumn.HOMEPAGEURL:
405
                        strcmd.AppendFormat(" HomePageURL = '{0}'", value.ToString());
406
                        break;
407
                    case (int)SystemColumn.CONSTRUCTIONEXPENSES:
408
                        strcmd.AppendFormat(" ConstructionExpenses = {0}", ((int)value).ToString());
409
                        break;
410
                    case (int)SystemColumn.OFFICEEXPENSES:
411
                        strcmd.AppendFormat(" OfficeExpenses = {0}", ((int)value).ToString());
412
                        break;
413
                    case (int)SystemColumn.OPERATINGEXPENSES:
414
                        strcmd.AppendFormat(" PperatingExpenses = {0}", ((int)value).ToString());
415
                        break;
416
                    case (int)SystemColumn.CONSUMPTIONTAX:
417
                        strcmd.AppendFormat(" ConsumptionTax = {0}", ((int)value).ToString());
418
                        break;
419
                    case (int)SystemColumn.COOPERATIONRATE:
420
                        strcmd.AppendFormat(" CooperationRate = {0}", ((int)value).ToString());
421
                        break;
422
                    case (int)SystemColumn.STATUTORYWELFARERATE:
423
                        strcmd.AppendFormat(" StatutoryWelfareRate = {0}", ((int)value).ToString());
424
                        break;
425
                    case (int)SystemColumn.FuelPrice:
426
                        strcmd.AppendFormat(" FuelPrice = {0}", ((int)value).ToString());
427
                        break;
428
                    case (int)SystemColumn.AreaDistance:
429
                        strcmd.AppendFormat(" AreaDistance = {0}", ((int)value).ToString());
430
                        break;
431
                    case (int)SystemColumn.EXCELSAVEPATH:
432
                        strcmd.AppendFormat(" ExcelSavePath = '{0}'", value.ToString());
433
                        break;
434
                    case (int)SystemColumn.BUSINESSPERIOD:
435
                        strcmd.AppendFormat(" BusinessPeriod = {0}", ((int)value).ToString());
436
                        break;
437
                    case (int)SystemColumn.ConstructionYear:
438
                        strcmd.AppendFormat(" ConstructionYear = {0}", ((int)value).ToString());
439
                        break;
440
                    case (int)SystemColumn.BusinessBeginningDate:
441
                        strcmd.AppendFormat(" BusinessBeginningDate = '{0}'", value.ToString());
442
                        break;
443
                    case (int)SystemColumn.ConstructionBeginningDate:
444
                        strcmd.AppendFormat(" ConstructionBeginningDate = '{0}'", value.ToString());
445
                        break;
446
                    case (int)SystemColumn.ConstructionNoBase:
447
                        strcmd.AppendFormat(" ConstructionNoBase = {0}", ((int)value).ToString());
448
                        break;
449
                    case (int)SystemColumn.SloganString1:
450
                        strcmd.AppendFormat(" SloganString1 = '{0}'", value.ToString());
451
                        break;
452
                    case (int)SystemColumn.SloganString2:
453
                        strcmd.AppendFormat(" SloganString2 = '{0}'", value.ToString());
454
                        break;
455
                    case (int)SystemColumn.SloganString3:
456
                        strcmd.AppendFormat(" SloganString3 = '{0}'", value.ToString());
457
                        break;
458
                }
459

  
460
                strcmd.Append(", UpdateDate = NOW()");
461
                strcmd.AppendFormat(" Where SystemCode = {0}", SystemCode);
462

  
463
                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
464

  
465
                return true;
466
            }
467
            catch (Exception ex)
468
            {
469
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
470
                return false;
471
            }
472
        }
473
        #endregion
474

  
356 475
        #region システムマスタ削除
357 476
        /// <summary>
358 477
        /// システムマスタ削除
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPerson.cs
82 82
        Point[] s_ButtonPosition = new Point[] { new Point(6, 58), new Point(258, 58), new Point(510, 58) };
83 83
        #endregion
84 84

  
85
        #region ?R?????gToolTip??????
86
        /// <summary>
87
        /// ?R?????gToolTip??????
88
        /// </summary>
89
        private int s_CommentToolTipLength = 30;
85 90
        #endregion
86 91

  
92
        #endregion
93

  
87 94
        #region ???
88 95
        /// <summary>
89 96
        /// ???x???R???g???[??????z??
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPersonAuxiliary.cs
1401 1401
                {
1402 1402
                    if (CommentList[i].ParentNo == 0)
1403 1403
                    {
1404
                        treeNode = tvDispData.Nodes.Add(CommentList[i].ApproValComment);
1404
                        treeNode = tvDispData.Nodes.Add(StringBuiltInReturn(CommentList[i].ApproValComment, s_CommentToolTipLength));
1405 1405
                    }
1406 1406
                    else
1407 1407
                    {
......
1424 1424
        }
1425 1425
        #endregion
1426 1426

  
1427
        #region 文字列の指定位置に改行コードを入れる
1428
        /// <summary>
1429
        /// 文字列の指定位置に改行コードを入れる
1430
        /// </summary>
1431
        /// <param name="InpString"></param>
1432
        /// <param name="CutLength"></param>
1433
        /// <returns></returns>
1434
        private string StringBuiltInReturn(string InpString, int CutLength)
1435
        {
1436
            try
1437
            {
1438
                List<string> textList = new List<string>();
1439
                for (int i = 0; i < InpString.Length; i += CutLength)
1440
                {
1441
                    if ((i + CutLength) < InpString.Length)
1442
                        textList.Add(InpString.Substring(i, CutLength));
1443
                    else
1444
                        textList.Add(InpString.Substring(i));
1445
                }
1446

  
1447
                return string.Join("\r\n", textList.ToArray());
1448
            }
1449
            catch (Exception ex)
1450
            {
1451
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
1452
                return string.Empty;
1453
            }
1454
        }
1455
        #endregion
1456

  
1427 1457
        #region 下位ノード表示処理
1428 1458
        /// <summary>
1429 1459
        /// 下位ノード表示処理
......
1441 1471
                {
1442 1472
                    if (DataList[DataIndex].ParentNo == ParentCode)
1443 1473
                    {
1444
                        tn = treeNode.Nodes.Add(DataList[DataIndex].ApproValComment);
1474
                        tn = treeNode.Nodes.Add(StringBuiltInReturn(DataList[DataIndex].ApproValComment, s_CommentToolTipLength));
1445 1475
                    }
1446 1476
                    else if (DataList[DataIndex].ParentNo < ParentCode)
1447 1477
                    {
......
1496 1526
                // コメント追加
1497 1527
                if (bNewComment)
1498 1528
                {
1499
                    tvDispData.Nodes.Add(DispString);
1529
                    tvDispData.Nodes.Add(StringBuiltInReturn(DispString, s_CommentToolTipLength));
1500 1530
                    tvDispData.TopNode.Expand();
1501 1531
                }
1502 1532
                else
1503 1533
                {
1504
                    TargetNodes.Nodes.Add(DispString);
1534
                    TargetNodes.Nodes.Add(StringBuiltInReturn(DispString, s_CommentToolTipLength));
1505 1535
                    tvDispData.SelectedNode.Expand();
1506 1536
                }
1507 1537
                // データ登録
......
1700 1730
                // 親コメント番号
1701 1731
                NewRec.ParentNo = m_InsertParentNo;
1702 1732
                // 指示・連絡コメント
1703
                NewRec.ApproValComment = strComment;
1733
                NewRec.ApproValComment = strComment.Replace("\r\n", "");
1704 1734

  
1705 1735
                NewList.Add(NewRec);
1706 1736
            }
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.cs
86 86
        Point[] s_ButtonPosition = new Point[] { new Point(6, 58), new Point(258, 58), new Point(510, 58) };
87 87
        #endregion
88 88

  
89
        #region ?R?????gToolTip??????
90
        /// <summary>
91
        /// ?R?????gToolTip??????
92
        /// </summary>
93
        private int s_CommentToolTipLength = 30;
89 94
        #endregion
90 95

  
96
        #endregion
97

  
91 98
        #region ???
92 99
        /// <summary>
93 100
        /// ???x???R???g???[??????z??
......
782 789
            RemoveTreeViewComment();
783 790
        }
784 791
        #endregion
785

  
786 792
    }
787 793
}
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.designer.cs
41 41
            this.label1 = new System.Windows.Forms.Label();
42 42
            this.btnEnd = new System.Windows.Forms.Button();
43 43
            this.panel2 = new System.Windows.Forms.Panel();
44
            this.dgvEntryData = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
45
            this.Column01 = new System.Windows.Forms.DataGridViewTextBoxColumn();
46
            this.Column02 = new System.Windows.Forms.DataGridViewTextBoxColumn();
47
            this.Column03 = new System.Windows.Forms.DataGridViewTextBoxColumn();
48
            this.Column06 = new System.Windows.Forms.DataGridViewTextBoxColumn();
49
            this.Column07 = new System.Windows.Forms.DataGridViewTextBoxColumn();
50
            this.Column04 = new System.Windows.Forms.DataGridViewTextBoxColumn();
51
            this.Column05 = new System.Windows.Forms.DataGridViewTextBoxColumn();
44 52
            this.panel3 = new System.Windows.Forms.Panel();
45 53
            this.lblLabel05 = new System.Windows.Forms.Label();
46 54
            this.label6 = new System.Windows.Forms.Label();
......
54 62
            this.btnNotApproval = new System.Windows.Forms.Button();
55 63
            this.btnOnHold = new System.Windows.Forms.Button();
56 64
            this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
65
            this.btnTargetData = new System.Windows.Forms.Button();
66
            this.btnPetition = new System.Windows.Forms.Button();
67
            this.btnRePetition = new System.Windows.Forms.Button();
57 68
            this.panel5 = new System.Windows.Forms.Panel();
58 69
            this.btnReturnComment = new System.Windows.Forms.Button();
59 70
            this.btnRemoveComment = new System.Windows.Forms.Button();
......
62 73
            this.tvDispData = new System.Windows.Forms.TreeView();
63 74
            this.lblLabel15 = new System.Windows.Forms.Label();
64 75
            this.label17 = new System.Windows.Forms.Label();
65
            this.btnTargetData = new System.Windows.Forms.Button();
66 76
            this.label13 = new System.Windows.Forms.Label();
67 77
            this.lblLabel12 = new System.Windows.Forms.Label();
68 78
            this.label3 = new System.Windows.Forms.Label();
......
78 88
            this.label15 = new System.Windows.Forms.Label();
79 89
            this.lblLabel17 = new System.Windows.Forms.Label();
80 90
            this.panel1 = new System.Windows.Forms.Panel();
81
            this.btnPetition = new System.Windows.Forms.Button();
82
            this.btnRePetition = new System.Windows.Forms.Button();
91
            this.label19 = new System.Windows.Forms.Label();
83 92
            this.txtHoppesDate = new System.Windows.Forms.TextBox();
84 93
            this.label12 = new System.Windows.Forms.Label();
85 94
            this.label11 = new System.Windows.Forms.Label();
......
92 101
            this.lblLabel09 = new System.Windows.Forms.Label();
93 102
            this.btnNotPetition = new System.Windows.Forms.Button();
94 103
            this.panel4 = new System.Windows.Forms.Panel();
95
            this.label19 = new System.Windows.Forms.Label();
96
            this.dgvEntryData = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
97
            this.Column01 = new System.Windows.Forms.DataGridViewTextBoxColumn();
98
            this.Column02 = new System.Windows.Forms.DataGridViewTextBoxColumn();
99
            this.Column03 = new System.Windows.Forms.DataGridViewTextBoxColumn();
100
            this.Column06 = new System.Windows.Forms.DataGridViewTextBoxColumn();
101
            this.Column07 = new System.Windows.Forms.DataGridViewTextBoxColumn();
102
            this.Column04 = new System.Windows.Forms.DataGridViewTextBoxColumn();
103
            this.Column05 = new System.Windows.Forms.DataGridViewTextBoxColumn();
104 104
            this.panel2.SuspendLayout();
105
            ((System.ComponentModel.ISupportInitialize)(this.dgvEntryData)).BeginInit();
105 106
            this.panel3.SuspendLayout();
106 107
            this.panel5.SuspendLayout();
107 108
            this.panel1.SuspendLayout();
108 109
            this.panel4.SuspendLayout();
109
            ((System.ComponentModel.ISupportInitialize)(this.dgvEntryData)).BeginInit();
110 110
            this.SuspendLayout();
111 111
            // 
112 112
            // label1
......
146 146
            this.panel2.Size = new System.Drawing.Size(760, 160);
147 147
            this.panel2.TabIndex = 15;
148 148
            // 
149
            // dgvEntryData
150
            // 
151
            this.dgvEntryData.AllowUserToAddRows = false;
152
            this.dgvEntryData.AllowUserToDeleteRows = false;
153
            this.dgvEntryData.AllowUserToResizeColumns = false;
154
            this.dgvEntryData.AllowUserToResizeRows = false;
155
            this.dgvEntryData.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
156
            this.dgvEntryData.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
157
            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
158
            dataGridViewCellStyle1.BackColor = System.Drawing.Color.Black;
159
            dataGridViewCellStyle1.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
160
            dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White;
161
            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
162
            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
163
            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
164
            this.dgvEntryData.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
165
            this.dgvEntryData.ColumnHeadersHeight = 24;
166
            this.dgvEntryData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
167
            this.dgvEntryData.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
168
            this.Column01,
169
            this.Column02,
170
            this.Column03,
171
            this.Column06,
172
            this.Column07,
173
            this.Column04,
174
            this.Column05});
175
            this.dgvEntryData.EnableHeadersVisualStyles = false;
176
            this.dgvEntryData.Location = new System.Drawing.Point(6, 5);
177
            this.dgvEntryData.Name = "dgvEntryData";
178
            this.dgvEntryData.RowHeadersVisible = false;
179
            this.dgvEntryData.RowHeadersWidth = 20;
180
            this.dgvEntryData.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
181
            this.dgvEntryData.RowTemplate.Height = 24;
182
            this.dgvEntryData.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
183
            this.dgvEntryData.Size = new System.Drawing.Size(744, 146);
184
            this.dgvEntryData.TabIndex = 8;
185
            // 
186
            // Column01
187
            // 
188
            this.Column01.Frozen = true;
189
            this.Column01.HeaderText = "承認者コード";
190
            this.Column01.Name = "Column01";
191
            this.Column01.ReadOnly = true;
192
            this.Column01.Resizable = System.Windows.Forms.DataGridViewTriState.False;
193
            this.Column01.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
194
            this.Column01.Visible = false;
195
            this.Column01.Width = 5;
196
            // 
197
            // Column02
198
            // 
199
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
200
            dataGridViewCellStyle2.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
201
            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.Black;
202
            this.Column02.DefaultCellStyle = dataGridViewCellStyle2;
203
            this.Column02.Frozen = true;
204
            this.Column02.HeaderText = "№";
205
            this.Column02.Name = "Column02";
206
            this.Column02.ReadOnly = true;
207
            this.Column02.Resizable = System.Windows.Forms.DataGridViewTriState.False;
208
            this.Column02.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
209
            this.Column02.Width = 44;
210
            // 
211
            // Column03
212
            // 
213
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
214
            this.Column03.DefaultCellStyle = dataGridViewCellStyle3;
215
            this.Column03.Frozen = true;
216
            this.Column03.HeaderText = "承認者名";
217
            this.Column03.Name = "Column03";
218
            this.Column03.ReadOnly = true;
219
            this.Column03.Resizable = System.Windows.Forms.DataGridViewTriState.False;
220
            this.Column03.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
221
            this.Column03.Width = 150;
222
            // 
223
            // Column06
224
            // 
225
            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
226
            this.Column06.DefaultCellStyle = dataGridViewCellStyle4;
227
            this.Column06.Frozen = true;
228
            this.Column06.HeaderText = "承認状態";
229
            this.Column06.Name = "Column06";
230
            this.Column06.ReadOnly = true;
231
            this.Column06.Resizable = System.Windows.Forms.DataGridViewTriState.False;
232
            this.Column06.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
233
            this.Column06.Width = 125;
234
            // 
235
            // Column07
236
            // 
237
            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
238
            dataGridViewCellStyle5.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
239
            this.Column07.DefaultCellStyle = dataGridViewCellStyle5;
240
            this.Column07.Frozen = true;
241
            this.Column07.HeaderText = "処理日付";
242
            this.Column07.Name = "Column07";
243
            this.Column07.ReadOnly = true;
244
            this.Column07.Resizable = System.Windows.Forms.DataGridViewTriState.False;
245
            this.Column07.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
246
            this.Column07.Width = 120;
247
            // 
248
            // Column04
249
            // 
250
            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
251
            this.Column04.DefaultCellStyle = dataGridViewCellStyle6;
252
            this.Column04.HeaderText = "所 属";
253
            this.Column04.Name = "Column04";
254
            this.Column04.ReadOnly = true;
255
            this.Column04.Resizable = System.Windows.Forms.DataGridViewTriState.False;
256
            this.Column04.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
257
            this.Column04.Width = 145;
258
            // 
259
            // Column05
260
            // 
261
            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
262
            this.Column05.DefaultCellStyle = dataGridViewCellStyle7;
263
            this.Column05.HeaderText = "役 職";
264
            this.Column05.Name = "Column05";
265
            this.Column05.ReadOnly = true;
266
            this.Column05.Resizable = System.Windows.Forms.DataGridViewTriState.False;
267
            this.Column05.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
268
            this.Column05.Width = 157;
269
            // 
149 270
            // panel3
150 271
            // 
151 272
            this.panel3.BackColor = System.Drawing.Color.Gold;
......
290 411
            this.btnOnHold.UseVisualStyleBackColor = false;
291 412
            this.btnOnHold.Click += new System.EventHandler(this.btnOnHold_Click);
292 413
            // 
414
            // btnTargetData
415
            // 
416
            this.btnTargetData.BackColor = System.Drawing.Color.DarkCyan;
417
            this.btnTargetData.ForeColor = System.Drawing.Color.White;
418
            this.btnTargetData.Location = new System.Drawing.Point(930, 90);
419
            this.btnTargetData.Name = "btnTargetData";
420
            this.btnTargetData.Size = new System.Drawing.Size(380, 34);
421
            this.btnTargetData.TabIndex = 45;
422
            this.btnTargetData.TabStop = false;
423
            this.btnTargetData.Text = "承認対象データを見る";
424
            this.toolTip1.SetToolTip(this.btnTargetData, "承認対象のデータを確認します。");
425
            this.btnTargetData.UseVisualStyleBackColor = false;
426
            this.btnTargetData.Click += new System.EventHandler(this.btnTargetData_Click);
427
            // 
428
            // btnPetition
429
            // 
430
            this.btnPetition.BackColor = System.Drawing.Color.Lime;
431
            this.btnPetition.Location = new System.Drawing.Point(6, 58);
432
            this.btnPetition.Name = "btnPetition";
433
            this.btnPetition.Size = new System.Drawing.Size(240, 30);
434
            this.btnPetition.TabIndex = 31;
435
            this.btnPetition.Text = "申 請 す る";
436
            this.toolTip1.SetToolTip(this.btnPetition, "承認を申請します。");
437
            this.btnPetition.UseVisualStyleBackColor = false;
438
            this.btnPetition.Visible = false;
439
            this.btnPetition.Click += new System.EventHandler(this.btnPetition_Click);
440
            // 
441
            // btnRePetition
442
            // 
443
            this.btnRePetition.BackColor = System.Drawing.Color.MediumSeaGreen;
444
            this.btnRePetition.Location = new System.Drawing.Point(258, 58);
445
            this.btnRePetition.Name = "btnRePetition";
446
            this.btnRePetition.Size = new System.Drawing.Size(240, 30);
447
            this.btnRePetition.TabIndex = 31;
448
            this.btnRePetition.Text = "再 申 請 す る";
449
            this.toolTip1.SetToolTip(this.btnRePetition, "指摘事項等の変更後、再度申請をし直すときに押下します。\r\n初めから承認をやり直します。");
450
            this.btnRePetition.UseVisualStyleBackColor = false;
451
            this.btnRePetition.Visible = false;
452
            this.btnRePetition.Click += new System.EventHandler(this.btnRePetition_Click);
453
            // 
293 454
            // panel5
294 455
            // 
295 456
            this.panel5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
......
365 526
            this.tvDispData.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
366 527
            | System.Windows.Forms.AnchorStyles.Left) 
367 528
            | System.Windows.Forms.AnchorStyles.Right)));
529
            this.tvDispData.ItemHeight = 20;
368 530
            this.tvDispData.Location = new System.Drawing.Point(6, 33);
369 531
            this.tvDispData.Name = "tvDispData";
370 532
            this.tvDispData.Size = new System.Drawing.Size(544, 308);
......
392 554
            this.label17.Text = "見積種別";
393 555
            this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
394 556
            // 
395
            // btnTargetData
396
            // 
397
            this.btnTargetData.BackColor = System.Drawing.Color.DarkCyan;
398
            this.btnTargetData.ForeColor = System.Drawing.Color.White;
399
            this.btnTargetData.Location = new System.Drawing.Point(930, 90);
400
            this.btnTargetData.Name = "btnTargetData";
401
            this.btnTargetData.Size = new System.Drawing.Size(380, 34);
402
            this.btnTargetData.TabIndex = 45;
403
            this.btnTargetData.TabStop = false;
404
            this.btnTargetData.Text = "承認対象データを見る";
405
            this.toolTip1.SetToolTip(this.btnTargetData, "承認対象のデータを確認します。");
406
            this.btnTargetData.UseVisualStyleBackColor = false;
407
            this.btnTargetData.Click += new System.EventHandler(this.btnTargetData_Click);
408
            // 
409 557
            // label13
410 558
            // 
411 559
            this.label13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
......
592 740
            this.panel1.Size = new System.Drawing.Size(1320, 130);
593 741
            this.panel1.TabIndex = 16;
594 742
            // 
595
            // btnPetition
743
            // label19
596 744
            // 
597
            this.btnPetition.BackColor = System.Drawing.Color.Lime;
598
            this.btnPetition.Location = new System.Drawing.Point(6, 58);
599
            this.btnPetition.Name = "btnPetition";
600
            this.btnPetition.Size = new System.Drawing.Size(240, 30);
601
            this.btnPetition.TabIndex = 31;
602
            this.btnPetition.Text = "申 請 す る";
603
            this.toolTip1.SetToolTip(this.btnPetition, "承認を申請します。");
604
            this.btnPetition.UseVisualStyleBackColor = false;
605
            this.btnPetition.Visible = false;
606
            this.btnPetition.Click += new System.EventHandler(this.btnPetition_Click);
745
            this.label19.BackColor = System.Drawing.Color.White;
746
            this.label19.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
747
            this.label19.Location = new System.Drawing.Point(500, 36);
748
            this.label19.Name = "label19";
749
            this.label19.Size = new System.Drawing.Size(36, 25);
750
            this.label19.TabIndex = 50;
751
            this.label19.Text = "期";
752
            this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
607 753
            // 
608
            // btnRePetition
609
            // 
610
            this.btnRePetition.BackColor = System.Drawing.Color.MediumSeaGreen;
611
            this.btnRePetition.Location = new System.Drawing.Point(258, 58);
612
            this.btnRePetition.Name = "btnRePetition";
613
            this.btnRePetition.Size = new System.Drawing.Size(240, 30);
614
            this.btnRePetition.TabIndex = 31;
615
            this.btnRePetition.Text = "再 申 請 す る";
616
            this.toolTip1.SetToolTip(this.btnRePetition, "指摘事項等の変更後、再度申請をし直すときに押下します。\r\n初めから承認をやり直します。");
617
            this.btnRePetition.UseVisualStyleBackColor = false;
618
            this.btnRePetition.Visible = false;
619
            this.btnRePetition.Click += new System.EventHandler(this.btnRePetition_Click);
620
            // 
621 754
            // txtHoppesDate
622 755
            // 
623 756
            this.txtHoppesDate.Enabled = false;
......
766 899
            this.panel4.Size = new System.Drawing.Size(760, 94);
767 900
            this.panel4.TabIndex = 18;
768 901
            // 
769
            // label19
770
            // 
771
            this.label19.BackColor = System.Drawing.Color.White;
772
            this.label19.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
773
            this.label19.Location = new System.Drawing.Point(500, 36);
774
            this.label19.Name = "label19";
775
            this.label19.Size = new System.Drawing.Size(36, 25);
776
            this.label19.TabIndex = 50;
777
            this.label19.Text = "期";
778
            this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
779
            // 
780
            // dgvEntryData
781
            // 
782
            this.dgvEntryData.AllowUserToAddRows = false;
783
            this.dgvEntryData.AllowUserToDeleteRows = false;
784
            this.dgvEntryData.AllowUserToResizeColumns = false;
785
            this.dgvEntryData.AllowUserToResizeRows = false;
786
            this.dgvEntryData.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
787
            this.dgvEntryData.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
788
            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
789
            dataGridViewCellStyle1.BackColor = System.Drawing.Color.Black;
790
            dataGridViewCellStyle1.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
791
            dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White;
792
            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
793
            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
794
            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
795
            this.dgvEntryData.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
796
            this.dgvEntryData.ColumnHeadersHeight = 24;
797
            this.dgvEntryData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
798
            this.dgvEntryData.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
799
            this.Column01,
800
            this.Column02,
801
            this.Column03,
802
            this.Column06,
803
            this.Column07,
804
            this.Column04,
805
            this.Column05});
806
            this.dgvEntryData.EnableHeadersVisualStyles = false;
807
            this.dgvEntryData.Location = new System.Drawing.Point(6, 5);
808
            this.dgvEntryData.Name = "dgvEntryData";
809
            this.dgvEntryData.RowHeadersVisible = false;
810
            this.dgvEntryData.RowHeadersWidth = 20;
811
            this.dgvEntryData.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
812
            this.dgvEntryData.RowTemplate.Height = 24;
813
            this.dgvEntryData.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
814
            this.dgvEntryData.Size = new System.Drawing.Size(744, 146);
815
            this.dgvEntryData.TabIndex = 8;
816
            // 
817
            // Column01
818
            // 
819
            this.Column01.Frozen = true;
820
            this.Column01.HeaderText = "承認者コード";
821
            this.Column01.Name = "Column01";
822
            this.Column01.ReadOnly = true;
823
            this.Column01.Resizable = System.Windows.Forms.DataGridViewTriState.False;
824
            this.Column01.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
825
            this.Column01.Visible = false;
826
            this.Column01.Width = 5;
827
            // 
828
            // Column02
829
            // 
830
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
831
            dataGridViewCellStyle2.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
832
            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.Black;
833
            this.Column02.DefaultCellStyle = dataGridViewCellStyle2;
834
            this.Column02.Frozen = true;
835
            this.Column02.HeaderText = "№";
836
            this.Column02.Name = "Column02";
837
            this.Column02.ReadOnly = true;
838
            this.Column02.Resizable = System.Windows.Forms.DataGridViewTriState.False;
839
            this.Column02.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
840
            this.Column02.Width = 44;
841
            // 
842
            // Column03
843
            // 
844
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
845
            this.Column03.DefaultCellStyle = dataGridViewCellStyle3;
846
            this.Column03.Frozen = true;
847
            this.Column03.HeaderText = "承認者名";
848
            this.Column03.Name = "Column03";
849
            this.Column03.ReadOnly = true;
850
            this.Column03.Resizable = System.Windows.Forms.DataGridViewTriState.False;
851
            this.Column03.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
852
            this.Column03.Width = 150;
853
            // 
854
            // Column06
855
            // 
856
            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
857
            this.Column06.DefaultCellStyle = dataGridViewCellStyle4;
858
            this.Column06.Frozen = true;
859
            this.Column06.HeaderText = "承認状態";
860
            this.Column06.Name = "Column06";
861
            this.Column06.ReadOnly = true;
862
            this.Column06.Resizable = System.Windows.Forms.DataGridViewTriState.False;
863
            this.Column06.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
864
            this.Column06.Width = 125;
865
            // 
866
            // Column07
867
            // 
868
            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
869
            dataGridViewCellStyle5.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
870
            this.Column07.DefaultCellStyle = dataGridViewCellStyle5;
871
            this.Column07.Frozen = true;
872
            this.Column07.HeaderText = "処理日付";
873
            this.Column07.Name = "Column07";
874
            this.Column07.ReadOnly = true;
875
            this.Column07.Resizable = System.Windows.Forms.DataGridViewTriState.False;
876
            this.Column07.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
877
            this.Column07.Width = 120;
878
            // 
879
            // Column04
880
            // 
881
            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
882
            this.Column04.DefaultCellStyle = dataGridViewCellStyle6;
883
            this.Column04.HeaderText = "所 属";
884
            this.Column04.Name = "Column04";
885
            this.Column04.ReadOnly = true;
886
            this.Column04.Resizable = System.Windows.Forms.DataGridViewTriState.False;
887
            this.Column04.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
888
            this.Column04.Width = 145;
889
            // 
890
            // Column05
891
            // 
892
            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
893
            this.Column05.DefaultCellStyle = dataGridViewCellStyle7;
894
            this.Column05.HeaderText = "役 職";
895
            this.Column05.Name = "Column05";
896
            this.Column05.ReadOnly = true;
897
            this.Column05.Resizable = System.Windows.Forms.DataGridViewTriState.False;
898
            this.Column05.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
899
            this.Column05.Width = 157;
900
            // 
901 902
            // FrmApprovalScreen
902 903
            // 
903 904
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
......
921 922
            this.Load += new System.EventHandler(this.FrmApprovalScreen_Load);
922 923
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmApprovalScreen_KeyDown);
923 924
            this.panel2.ResumeLayout(false);
925
            ((System.ComponentModel.ISupportInitialize)(this.dgvEntryData)).EndInit();
924 926
            this.panel3.ResumeLayout(false);
925 927
            this.panel5.ResumeLayout(false);
926 928
            this.panel1.ResumeLayout(false);
927 929
            this.panel4.ResumeLayout(false);
928 930
            this.panel4.PerformLayout();
929
            ((System.ComponentModel.ISupportInitialize)(this.dgvEntryData)).EndInit();
930 931
            this.ResumeLayout(false);
931 932

  
932 933
        }
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreenAuxiliary.cs
1186 1186
                if (!CommentDB.SelectAction(strSQL.ToString(), ref CommentList)) return;
1187 1187

  
1188 1188
                TreeNode treeNode = null;
1189
                for (int i = 0; i < CommentList.Count; i++)
1189
                for (int nCommentCnt = 0; nCommentCnt < CommentList.Count; nCommentCnt++)
1190 1190
                {
1191
                    if (CommentList[i].ParentNo == 0)
1191
                    if (CommentList[nCommentCnt].ParentNo == 0)
1192 1192
                    {
1193
                        treeNode = tvDispData.Nodes.Add(CommentList[i].ApproValComment);
1193
                        treeNode = tvDispData.Nodes.Add(StringBuiltInReturn(CommentList[nCommentCnt].ApproValComment, s_CommentToolTipLength));
1194 1194
                    }
1195 1195
                    else
1196 1196
                    {
1197
                        GetDataListRecursive(treeNode, CommentList, CommentList[i].ParentNo, ref i);
1197
                        GetDataListRecursive(treeNode, CommentList, CommentList[nCommentCnt].ParentNo, ref nCommentCnt);
1198 1198
                    }
1199 1199
                    if (treeNode != null)
1200 1200
                        if (treeNode.GetNodeCount(true) != 0) treeNode.Expand();
......
1213 1213
        }
1214 1214
        #endregion
1215 1215

  
1216
        #region 文字列の指定位置に改行コードを入れる
1217
        /// <summary>
1218
        /// 文字列の指定位置に改行コードを入れる
1219
        /// </summary>
1220
        /// <param name="InpString"></param>
1221
        /// <param name="CutLength"></param>
1222
        /// <returns></returns>
1223
        private string StringBuiltInReturn(string InpString, int CutLength)
1224
        {
1225
            try
1226
            {
1227
                List<string> textList = new List<string>();
1228
                for (int i = 0; i < InpString.Length; i += CutLength)
1229
                {
1230
                    if ((i + CutLength) < InpString.Length)
1231
                        textList.Add(InpString.Substring(i, CutLength));
1232
                    else
1233
                        textList.Add(InpString.Substring(i));
1234
                }
1235

  
1236
                return string.Join("\r\n", textList.ToArray());
1237
            }
1238
            catch (Exception ex)
1239
            {
1240
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
1241
                return string.Empty;
1242
            }
1243
        }
1244
        #endregion
1245

  
1216 1246
        #region 下位ノード表示処理
1217 1247
        /// <summary>
1218 1248
        /// 下位ノード表示処理
......
1230 1260
                {
1231 1261
                    if (DataList[DataIndex].ParentNo == ParentCode)
1232 1262
                    {
1233
                        tn = treeNode.Nodes.Add(DataList[DataIndex].ApproValComment);
1263
                        tn = treeNode.Nodes.Add(StringBuiltInReturn(DataList[DataIndex].ApproValComment, s_CommentToolTipLength));
1234 1264
                    }
1235 1265
                    else if (DataList[DataIndex].ParentNo < ParentCode)
1236 1266
                    {
......
1285 1315
                // コメント追加
1286 1316
                if (bNewComment)
1287 1317
                {
1288
                    tvDispData.Nodes.Add(DispString);
1318
                    tvDispData.Nodes.Add(StringBuiltInReturn(DispString, s_CommentToolTipLength));
1289 1319
                    tvDispData.TopNode.Expand();
1290 1320
                }
1291 1321
                else
1292 1322
                {
1293
                    TargetNodes.Nodes.Add(DispString);
1323
                    TargetNodes.Nodes.Add(StringBuiltInReturn(DispString, s_CommentToolTipLength));
1294 1324
                    tvDispData.SelectedNode.Expand();
1295 1325
                }
1296 1326
                // データ登録
......
1486 1516
                // 親コメント番号
1487 1517
                NewRec.ParentNo = m_InsertParentNo;
1488 1518
                // 指示・連絡コメント
1489
                NewRec.ApproValComment = strComment;
1519
                NewRec.ApproValComment = strComment.Replace("\r\n", "");
1490 1520

  
1491 1521
                NewList.Add(NewRec);
1492 1522
            }
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/ReqSumTotalList/FrmReqSumTotalList.cs
1
using System;
2
using System.Collections.Generic;
3
using System.ComponentModel;
4
using System.Data;
5
using System.Drawing;
6
using System.Text;
7
using System.Windows.Forms;
8
using System.Collections;
9

  
10
using log4net;
11
using log4net.Appender;
12
using log4net.Repository.Hierarchy;
13

  
14
using ProcessManagement.Common;
15
using ProcessManagement.DB.IOAccess;
16
using ProcessManagement.DataModel;
17
using ProcessManagement.DB.Core;
18
using ProcessManagement.Forms.CustomControls;
19
using ProcessManagement.Forms.ControlsAction;
20
//*---------------------------- ???E???x??????? ------------------------*
21
//  2017/08/02  Ver1.0.0.0      Create Source           
22
//
23
//
24
//
25
//*----------------------------------------------------------------------------*
26
namespace ProcessManagement.Forms.DataEntry
27
{
28
    public partial class FrmReqSumTotalList : Form
29
    {
30
        #region ?g?p??`
31
        //log4net???O???g?p????
32
        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
33
        #endregion
34

  
35
        #region ??
36
        /// <summary>
37
        /// ?\???J????
38
        /// </summary>
39
        private enum DispColumn
40
        {
41
            No = 0,
42
            SubconstrCode,
43
            SubconstrName,
44
            BeforeValue,
45
            AfterValue,
46
            TaxPraice,
47
            CnstrPrice,
48
            PaymentValue,
49
            Note,
50
        }
51

  
52
        #endregion
53

  
54
        #region ???
55
        /// <summary>
56
        /// ???N??
57
        /// </summary>
58
        private string m_TargetMonth = string.Empty;
59

  
60
        /// <summary>
61
        /// ??????
62
        /// </summary>
63
        private int m_Labourkind = 0;
64

  
65
        /// <summary>
66
        /// ?x????
67
        /// </summary>
68
        private DateTime m_PayDate = DateTime.Now;
69
        #endregion
70

  
71
        #region ?v???p?e?B
72

  
73
        /// <summary>
74
        /// ???N??
75
        /// </summary>
76
        public string TargetMonth
77
        {
78
            get { return m_TargetMonth; }
79
            set { m_TargetMonth = value; }
80
        }
81

  
82
        /// <summary>
83
        /// ??????
84
        /// </summary>
85
        public int Labourkind
86
        {
87
            get { return m_Labourkind; }
88
            set { m_Labourkind = value; }
89
        }
90

  
91
        /// <summary>
92
        /// ?x????
93
        /// </summary>
94
        public DateTime PayDate
95
        {
96
            get { return m_PayDate; }
97
            set { m_PayDate = value; }
98
        }
99
        #endregion
100

  
101
        #region ?R???X?g???N?^
102
        public FrmReqSumTotalList()
103
        {
104
            InitializeComponent();
105
        }
106
        #endregion
107
        #region ?f?X?g???N?^
108
        ~FrmReqSumTotalList()
109
        {
110
            try
111
            {
112
                GC.Collect();
113
            }
114
            catch (Exception ex)
115
            {
116
                logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
117
            }
118
        }
119
        #endregion
120

  
121
        // ---------- ?C?x???g????
122
        #region ?I???{?^??
123
        /// <summary>
124
        /// ?I???{?^???N???b?N
125
        /// </summary>
126
        /// <param name="sender"></param>
127
        /// <param name="e"></param>
128
        private void btnEnd_Click(object sender, EventArgs e)
129
        {
130
            this.Close();
131
        }
132
        #endregion
133

  
134
        #region ?X?V?{?^??
135
        /// <summary>
136
        /// ?f?[?^?X?V?{?^??????
137
        /// </summary>
138
        /// <param name="sender"></param>
139
        /// <param name="e"></param>
140
        private void btnDataUpDate_Click(object sender, EventArgs e)
141
        {
142
            // ?f?[?^?\??
143
            DataDisplay();
144
        }
145
        #endregion
146

  
147
        #region ?t?H?[?????[?h
148
        /// <summary>
149
        /// ?????t?H?[?????[?h
150
        /// </summary>
151
        /// <param name="sender"></param>
152
        /// <param name="e"></param>
153
        private void FrmReqSumTotalList_Load(object sender, EventArgs e)
154
        {
155
            // ?^?C?g???Z?b?g
156
            InitTitleProc();
157

  
158
            // ?f?[?^?\??
159
            DataDisplay();
160
        }
161
        #endregion
162

  
163
        #region ?Z???_?u???N???b?N
164
        /// <summary>
165
        /// ?Z???_?u???N???b?N
166
        /// </summary>
167
        /// <param name="sender"></param>
168
        /// <param name="e"></param>
169
        private void dgvMaster_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
170
        {
171
            if (e.RowIndex < 0) return;
172
            // ?f?[?^??????????????
173
            if (dgvMaster.RowCount == 0) return;
174
        }
175
        #endregion
176

  
177
        // ---------- ?\??????
178
        #region ???????^?C?g???Z?b?g
179
        /// <summary>
180
        /// ???????^?C?g???Z?b?g
181
        /// </summary>
182
        private void InitTitleProc()
183
        {
184
            try
185
            {
186
                // ???x???m?F?????x???m?F????\??
187
                if (m_Labourkind == (int)CommonDefine.LabourKinds.Labor)
188
                {
189
                    lblDivision.Text = "????????";
190
                }
191
                else
192
                {
193
                    lblDivision.Text = "????????";
194
                }
195

  
196
                string strTitle = string.Empty;
197
                if (m_TargetMonth.Length > 4)
198
                    strTitle = string.Format("{0}???Y", m_TargetMonth.Substring(4));
199
                strTitle += string.Format("?@{0}/{1}????", m_PayDate.Month.ToString("00"), m_PayDate.Day.ToString("00"));
200
                
201
                lblPayInfo.Text = strTitle;
202
            }
203
            catch (Exception ex)
204
            {
205
                logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
206
            }
207
        }
208
        #endregion
209

  
210
        #region ?f?[?^?\??????
211
        /// <summary>
212
        /// ?f?[?^?\??????
213
        /// </summary>
214
        private void DataDisplay()
215
        {
216
            IOPaymentDataDetail PayDB = new IOPaymentDataDetail();
217
            try
218
            {
219
                StringBuilder strSQL = new StringBuilder();
220

  
221
                CreateSQL(ref strSQL);
222

  
223
                ArrayList arList = new ArrayList();
224
                if (!PayDB.ExecuteReader(strSQL.ToString(), ref arList)) return;
225

  
226
                int ino = 0;
227
                int nInTax = 0;
228
                int nOutTax = 0;
229
                int nOutTotal = 0;
230
                int[] nTotal = new int[5];
231
                Array.Clear(nTotal, 0, nTotal.Length);
232

  
233
                dgvMaster.Rows.Clear();
234
                foreach (object[] objRec in arList)
235
                {
236
                    nInTax = CommonMotions.cnvRound(CommonMotions.cnvDouble(objRec[3]) * (CommonMotions.SystemMasterData.ConsumptionTax / 100.0));
237
                    nOutTax = CommonMotions.cnvRound(CommonMotions.cnvDouble(objRec[9]) * (CommonMotions.SystemMasterData.ConsumptionTax / 100.0));
238
                    nOutTotal = 0;
239
                    for (int i = 9; i < objRec.Length; i++)
240
                    {
241
                        nOutTotal += CommonMotions.cnvInt(objRec[i]);
242
                    }
243
                    dgvMaster.Rows.Add(++ino,
244
                                        CommonMotions.cnvInt(objRec[0]),
245
                                        CommonMotions.cnvString(objRec[1]),
246
                                        (CommonMotions.cnvInt(objRec[3]) + nInTax).ToString("#,0"),
247
                                        CommonMotions.cnvInt(objRec[9]).ToString("#,0"),
248
                                        nOutTax.ToString("#,0"),
249
                                        CommonMotions.cnvInt(objRec[13]).ToString("#,0"),
250
                                        nOutTotal.ToString("#,0"),
251
                                        "");
252
                    // ???v???Z
253
                    nTotal[0] += (CommonMotions.cnvInt(objRec[3]) + nInTax);
254
                    nTotal[1] += CommonMotions.cnvInt(objRec[9]);
255
                    nTotal[2] += nOutTax;
256
                    nTotal[3] += CommonMotions.cnvInt(objRec[13]);
257
                    nTotal[4] += nOutTotal;
258
                }
259
                // ???v?\??
260
                dgvMaster.Rows.Add(1);
261
                int nTotalLine = dgvMaster.Rows.Add("", "", "???@?@?v",
262
                                                        nTotal[0].ToString("#,0"),
263
                                                        nTotal[1].ToString("#,0"),
264
                                                        nTotal[2].ToString("#,0"),
265
                                                        nTotal[3].ToString("#,0"),
266
                                                        nTotal[4].ToString("#,0"));
267
                dgvMaster.Rows[nTotalLine].Cells[2].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
268
                dgvMaster.Rows[nTotalLine].DefaultCellStyle.BackColor = Color.Black;
269
                dgvMaster.Rows[nTotalLine].DefaultCellStyle.ForeColor = Color.White;
270
            }
271
            catch (Exception ex)
272
            {
273
                logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
274
            }
275
            finally
276
            {
277
                if (dgvMaster.RowCount < 24) dgvMaster.RowCount += 24 - dgvMaster.RowCount;
278
                PayDB.close(); PayDB = null;
279
            }
280
        }
281
        #endregion
282

  
283
        #region ???r?p?k
284
        /// <summary>
285
        /// ???r?p?k
286
        /// </summary>
287
        /// <param name="strSQL"></param>
288
        private void CreateSQL(ref StringBuilder strSQL)
289
        {
290
            try
291
            {
292
                strSQL.Append("select");
293
                strSQL.Append(" InData.COMPANYCODE");           // 0
294
                strSQL.Append(", SubConstr.CompanyName");       // 1
295
                strSQL.Append(", InData.TARGETDATE");           // 2
296
                strSQL.Append(", InData.BILLPRICE");            // 3
297
                strSQL.Append(", InData.HIGHWPRICE");           // 4
298
                strSQL.Append(", InData.HARDWPRICE");           // 5
299
                strSQL.Append(", InData.INDSWASTETAX");         // 6
300
                strSQL.Append(", OutData.COMPANYCODE");         // 7
301
                strSQL.Append(", OutData.TARGETDATE");          // 8
302
                strSQL.Append(", OutData.BILLPRICE");           // 9
303
                strSQL.Append(", OutData.HIGHWPRICE");          // 10
304
                strSQL.Append(", OutData.HARDWPRICE");          // 11
305
                strSQL.Append(", OutData.INDSWASTETAX");        // 12
306
                strSQL.Append(", OutData.CNSTRPRICE");          // 13
307
                strSQL.Append(" From");
308
                strSQL.Append(" (select");
309
                strSQL.Append(" Bill.COMPANYCODE AS COMPANYCODE");
310
                strSQL.Append(", Bill.TARGETDATE AS TARGETDATE");
311
                strSQL.Append(", SUM(Bill.BILLPRICE) AS BILLPRICE");
312
                strSQL.Append(", SUM(Bill.HIGHWPRICE) AS HIGHWPRICE");
313
                strSQL.Append(", SUM(Bill.HARDWPRICE) AS HARDWPRICE");
314
                strSQL.Append(", SUM(Bill.INDSWASTETAX) AS INDSWASTETAX");
315
                strSQL.Append(" From");
316
                strSQL.Append(" billingdatadetail AS Bill");
317
                strSQL.AppendFormat(" where Bill.TARGETDATE = '{0}'", m_TargetMonth.ToString());
318
                strSQL.Append(" Group by Bill.COMPANYCODE, Bill.TARGETDATE) AS InData,");
319
                strSQL.Append(" (select");
320
                strSQL.Append(" Pay.COMPANYCODE AS COMPANYCODE");
321
                strSQL.Append(" , Pay.TARGETDATE AS TARGETDATE");
322
                strSQL.Append(" , SUM(Pay.BILLPRICE) AS BILLPRICE");
323
                strSQL.Append(" , SUM(Pay.HIGHWPRICE) AS HIGHWPRICE");
324
                strSQL.Append(" , SUM(Pay.HARDWPRICE) AS HARDWPRICE");
325
                strSQL.Append(" , SUM(Pay.INDSWASTETAX) AS INDSWASTETAX");
326
                strSQL.Append(" , SUM(Pay.CNSTRPRICE) AS CNSTRPRICE");
327
                strSQL.Append(" From paymentdatadetail AS Pay");
328
                strSQL.AppendFormat(" where Pay.TARGETDATE = '{0}'", m_TargetMonth.ToString());
329
                strSQL.Append(" Group by Pay.COMPANYCODE, Pay.TARGETDATE) AS OutData");
330
                strSQL.Append(", subcontractormaster AS SubConstr");
331
                strSQL.Append(" Where");
332
                strSQL.Append(" OutData.COMPANYCODE =  InData.COMPANYCODE");
333
                strSQL.Append("  And OutData.TARGETDATE = InData.TARGETDATE");
334
                strSQL.Append("  And SubConstr.CompanyCode = InData.COMPANYCODE");
335
                strSQL.AppendFormat("  And SubConstr.labourKind = {0}", m_Labourkind);
336
                strSQL.Append(" Order by InData.COMPANYCODE, InData.TARGETDATE");
337
            }
338
            catch (Exception ex)
339
            {
340
                logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
341
            }
342
        }
343
        #endregion
344
    }
345
}
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/ReqSumTotalList/FrmReqSumTotalList.designer.cs
1
namespace ProcessManagement.Forms.DataEntry
2
{
3
    partial class FrmReqSumTotalList
4
    {
5
        /// <summary>
6
        /// 必要なデザイナ変数です。
7
        /// </summary>
8
        private System.ComponentModel.IContainer components = null;
9

  
10
        /// <summary>
11
        /// 使用中のリソースをすべてクリーンアップします。
12
        /// </summary>
13
        /// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は false です。</param>
14
        protected override void Dispose(bool disposing)
15
        {
16
            if (disposing && (components != null))
17
            {
18
                components.Dispose();
19
            }
20
            base.Dispose(disposing);
21
        }
22

  
23
        #region Windows フォーム デザイナで生成されたコード
24

  
25
        /// <summary>
26
        /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
27
        /// コード エディタで変更しないでください。
28
        /// </summary>
29
        private void InitializeComponent()
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 dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
34
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
35
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
36
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
37
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
38
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
39
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
40
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
41
            this.btnEnd = new System.Windows.Forms.Button();
42
            this.label1 = new System.Windows.Forms.Label();
43
            this.btnDataUpDate = new System.Windows.Forms.Button();
44
            this.lblDivision = new System.Windows.Forms.Label();
45
            this.lblPayInfo = new System.Windows.Forms.Label();
46
            this.dgvMaster = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
47
            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
48
            this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
49
            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
50
            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
51
            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
52
            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
53
            this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
54
            this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
55
            this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
56
            ((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).BeginInit();
57
            this.SuspendLayout();
58
            // 
59
            // btnEnd
60
            // 
61
            this.btnEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
62
            this.btnEnd.BackColor = System.Drawing.Color.Blue;
63
            this.btnEnd.ForeColor = System.Drawing.Color.White;
64
            this.btnEnd.Location = new System.Drawing.Point(1152, 658);
65
            this.btnEnd.Name = "btnEnd";
66
            this.btnEnd.Size = new System.Drawing.Size(120, 30);
67
            this.btnEnd.TabIndex = 8;
68
            this.btnEnd.Text = "終 了";
69
            this.btnEnd.UseVisualStyleBackColor = false;
70
            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
71
            // 
72
            // label1
73
            // 
74
            this.label1.Anchor = System.Windows.Forms.AnchorStyles.Top;
75
            this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
76
            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
77
            this.label1.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
78
            this.label1.ForeColor = System.Drawing.Color.Black;
79
            this.label1.Location = new System.Drawing.Point(390, 10);
80
            this.label1.Name = "label1";
81
            this.label1.Size = new System.Drawing.Size(500, 20);
82
            this.label1.TabIndex = 6;
83
            this.label1.Text = "手間・通常業者支払い確認";
84
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
85
            // 
86
            // btnDataUpDate
87
            // 
88
            this.btnDataUpDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
89
            this.btnDataUpDate.BackColor = System.Drawing.Color.Aquamarine;
90
            this.btnDataUpDate.Font = new System.Drawing.Font("MS 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
91
            this.btnDataUpDate.ForeColor = System.Drawing.Color.Black;
92
            this.btnDataUpDate.Location = new System.Drawing.Point(1150, 4);
93
            this.btnDataUpDate.Name = "btnDataUpDate";
94
            this.btnDataUpDate.Size = new System.Drawing.Size(120, 30);
95
            this.btnDataUpDate.TabIndex = 7;
96
            this.btnDataUpDate.Text = "最新状態に更新";
97
            this.btnDataUpDate.UseVisualStyleBackColor = false;
98
            this.btnDataUpDate.Click += new System.EventHandler(this.btnDataUpDate_Click);
99
            // 
100
            // lblDivision
101
            // 
102
            this.lblDivision.BackColor = System.Drawing.Color.DimGray;
103
            this.lblDivision.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
104
            this.lblDivision.Font = new System.Drawing.Font("MS 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
105
            this.lblDivision.ForeColor = System.Drawing.Color.White;
106
            this.lblDivision.Location = new System.Drawing.Point(6, 6);
107
            this.lblDivision.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
108
            this.lblDivision.Name = "lblDivision";
109
            this.lblDivision.Size = new System.Drawing.Size(140, 30);
110
            this.lblDivision.TabIndex = 19;
111
            this.lblDivision.Text = "手間業者払い";
112
            this.lblDivision.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
113
            // 
114
            // lblPayInfo
115
            // 
116
            this.lblPayInfo.BackColor = System.Drawing.Color.White;
117
            this.lblPayInfo.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
118
            this.lblPayInfo.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
119
            this.lblPayInfo.ForeColor = System.Drawing.Color.Black;
120
            this.lblPayInfo.Location = new System.Drawing.Point(154, 8);
121
            this.lblPayInfo.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
122
            this.lblPayInfo.Name = "lblPayInfo";
123
            this.lblPayInfo.Size = new System.Drawing.Size(160, 26);
124
            this.lblPayInfo.TabIndex = 20;
125
            this.lblPayInfo.Text = "5月〆 6/10払い";
126
            this.lblPayInfo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
127
            // 
128
            // dgvMaster
129
            // 
130
            this.dgvMaster.AllowUserToAddRows = false;
131
            this.dgvMaster.AllowUserToDeleteRows = false;
132
            this.dgvMaster.AllowUserToResizeColumns = false;
133
            this.dgvMaster.AllowUserToResizeRows = false;
134
            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
135
            this.dgvMaster.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
136
            this.dgvMaster.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
137
            | System.Windows.Forms.AnchorStyles.Left) 
138
            | System.Windows.Forms.AnchorStyles.Right)));
139
            this.dgvMaster.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
140
            this.dgvMaster.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
141
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
142
            dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
143
            dataGridViewCellStyle2.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
144
            dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
145
            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
146
            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
147
            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
148
            this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
149
            this.dgvMaster.ColumnHeadersHeight = 24;
150
            this.dgvMaster.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
151
            this.dgvMaster.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
152
            this.Column1,
153
            this.Column9,
154
            this.Column2,
155
            this.Column3,
156
            this.Column4,
157
            this.Column5,
158
            this.Column6,
159
            this.Column7,
160
            this.Column8});
161
            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
162
            dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Window;
163
            dataGridViewCellStyle10.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
164
            dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.ControlText;
165
            dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.LightSeaGreen;
166
            dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
167
            dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
168
            this.dgvMaster.DefaultCellStyle = dataGridViewCellStyle10;
169
            this.dgvMaster.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
170
            this.dgvMaster.Location = new System.Drawing.Point(6, 44);
171
            this.dgvMaster.MultiSelect = false;
172
            this.dgvMaster.Name = "dgvMaster";
173
            this.dgvMaster.RowHeadersVisible = false;
174
            this.dgvMaster.RowHeadersWidth = 20;
175
            this.dgvMaster.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
176
            this.dgvMaster.RowTemplate.Height = 24;
177
            this.dgvMaster.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
178
            this.dgvMaster.Size = new System.Drawing.Size(1266, 604);
179
            this.dgvMaster.TabIndex = 5;
180
            this.dgvMaster.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvMaster_CellDoubleClick);
181
            // 
182
            // Column1
183
            // 
184
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
185
            this.Column1.DefaultCellStyle = dataGridViewCellStyle3;
186
            this.Column1.Frozen = true;
187
            this.Column1.HeaderText = "№";
188
            this.Column1.Name = "Column1";
189
            this.Column1.ReadOnly = true;
190
            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
191
            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
192
            this.Column1.Width = 46;
193
            // 
194
            // Column9
195
            // 
196
            this.Column9.Frozen = true;
197
            this.Column9.HeaderText = "業社番号";
198
            this.Column9.Name = "Column9";
199
            this.Column9.ReadOnly = true;
200
            this.Column9.Visible = false;
201
            // 
202
            // Column2
203
            // 
204
            this.Column2.Frozen = true;
205
            this.Column2.HeaderText = "業 社 名 称";
206
            this.Column2.Name = "Column2";
207
            this.Column2.ReadOnly = true;
208
            this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
209
            this.Column2.Width = 300;
210
            // 
211
            // Column3
212
            // 
213
            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
214
            dataGridViewCellStyle4.BackColor = System.Drawing.Color.White;
215
            dataGridViewCellStyle4.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
216
            dataGridViewCellStyle4.ForeColor = System.Drawing.Color.Black;
217
            this.Column3.DefaultCellStyle = dataGridViewCellStyle4;
218
            this.Column3.Frozen = true;
219
            this.Column3.HeaderText = "請求金額(税込)";
220
            this.Column3.Name = "Column3";
221
            this.Column3.ReadOnly = true;
222
            this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
223
            this.Column3.Width = 150;
224
            // 
225
            // Column4
226
            // 
227
            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
228
            dataGridViewCellStyle5.BackColor = System.Drawing.Color.White;
229
            dataGridViewCellStyle5.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
230
            dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Black;
231
            this.Column4.DefaultCellStyle = dataGridViewCellStyle5;
232
            this.Column4.Frozen = true;
233
            this.Column4.HeaderText = "確認後(税抜)";
234
            this.Column4.Name = "Column4";
235
            this.Column4.ReadOnly = true;
236
            this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
237
            this.Column4.Width = 150;
238
            // 
239
            // Column5
240
            // 
241
            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
242
            dataGridViewCellStyle6.BackColor = System.Drawing.Color.White;
243
            dataGridViewCellStyle6.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
244
            dataGridViewCellStyle6.ForeColor = System.Drawing.Color.Black;
245
            this.Column5.DefaultCellStyle = dataGridViewCellStyle6;
246
            this.Column5.Frozen = true;
247
            this.Column5.HeaderText = "消 費 税";
248
            this.Column5.Name = "Column5";
249
            this.Column5.ReadOnly = true;
250
            this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
251
            this.Column5.Width = 150;
252
            // 
253
            // Column6
254
            // 
255
            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
256
            dataGridViewCellStyle7.BackColor = System.Drawing.Color.White;
257
            dataGridViewCellStyle7.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
258
            dataGridViewCellStyle7.ForeColor = System.Drawing.Color.Black;
259
            this.Column6.DefaultCellStyle = dataGridViewCellStyle7;
260
            this.Column6.Frozen = true;
261
            this.Column6.HeaderText = "安全協力金";
262
            this.Column6.Name = "Column6";
263
            this.Column6.ReadOnly = true;
264
            this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
265
            this.Column6.Width = 150;
266
            // 
267
            // Column7
268
            // 
269
            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
270
            dataGridViewCellStyle8.BackColor = System.Drawing.Color.White;
271
            dataGridViewCellStyle8.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
272
            dataGridViewCellStyle8.ForeColor = System.Drawing.Color.Black;
273
            this.Column7.DefaultCellStyle = dataGridViewCellStyle8;
274
            this.Column7.Frozen = true;
275
            this.Column7.HeaderText = "支払確定額";
276
            this.Column7.Name = "Column7";
277
            this.Column7.ReadOnly = true;
278
            this.Column7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
... 差分の行数が表示可能な上限を超えました。超過分は表示しません。

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