プロジェクト

全般

プロフィール

リビジョン 114

山内7年以上前に追加

差分を表示:

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

  
19 19
        /// <summary>
20 20
        /// コピー・環境バージョン
branches/src/ProcessManagement/ProcessManagement/Forms/CustomControls/MoveLabel.cs
1
using System;
2
using System.Collections.Generic;
3
using System.ComponentModel;
4
using System.Data;
5
using System.Drawing;
6
using System.Linq;
7
using System.Text;
8
using System.Threading.Tasks;
9
using System.Windows.Forms;
10

  
11
using Microsoft.VisualBasic.PowerPacks;
12

  
13
namespace ProcessManagement.Forms.CustomControls
14
{
15
    public class MoveLabel : Label
16
    {
17
        #region 変数
18

  
19
        /// <summary>
20
        /// 引き出し線
21
        /// </summary>
22
        private LineShape m_MyLine = null;
23

  
24
        /// <summary>
25
        /// 線のコンテナ
26
        /// </summary>
27
        private ShapeContainer m_MyshapeContainer = null;
28

  
29
        /// <summary>
30
        /// 描画色
31
        /// </summary>
32
        private Color m_MyDrowColor = Color.White;
33

  
34
        /// <summary>
35
        /// 親のポイント
36
        /// </summary>
37
        private Point m_ParentPoint = new Point(0, 0);
38

  
39
        /// <summary>
40
        /// 自分の初期ポイント
41
        /// </summary>
42
        private Point m_MyDrowPoint = new Point(0, 0);
43
        #endregion
44

  
45
        #region プロパティ
46

  
47
        /// <summary>
48
        /// 親のポイント
49
        /// </summary>
50
        public Point ParentPoint
51
        {
52
            get { return m_ParentPoint; }
53
            set { m_ParentPoint = value; }
54
        }
55

  
56
        /// <summary>
57
        /// 描画色
58
        /// </summary>
59
        public Color DrowColor
60
        {
61
            get { return m_MyDrowColor; }
62
            set { m_MyDrowColor = value; }
63
        }
64

  
65
        /// <summary>
66
        /// 自分の初期ポイント
67
        /// </summary>
68
        public Point StartPoint
69
        {
70
            get { return m_MyDrowPoint; }
71
            set { m_MyDrowPoint = value; }
72
        }
73
        #endregion
74

  
75
        #region 線を描く
76
        /// <summary>
77
        /// 引き出し線を描く
78
        /// </summary>
79
        private void DrowLeadLine()
80
        {
81
            // ShapeContainerを探す
82
            bool bFindContaner = false;
83
            foreach (Control ctrl in this.Parent.Controls)
84
            {
85
                if (ctrl.GetType().Equals(typeof(ShapeContainer)))
86
                {
87
                    m_MyshapeContainer = (ShapeContainer)ctrl;
88
                    bFindContaner = true;
89
                    break;
90
                }
91
            }
92
            // ShapeContainerが無い場合は作る
93
            if (!bFindContaner)
94
            {
95
                m_MyshapeContainer = new ShapeContainer();
96
                m_MyshapeContainer.Parent = this.Parent;
97
            }
98
            // 線を描く
99
            m_MyLine = new LineShape();
100
            m_MyLine.Parent = m_MyshapeContainer;
101
            m_MyLine.StartPoint = m_ParentPoint;
102
            m_MyLine.EndPoint = this.Location;
103
            m_MyLine.BorderColor = m_MyDrowColor;
104
        }
105
        #endregion
106

  
107
        #region フォームに登録された時点で親フォーム取得
108
        /// <summary>
109
        /// OnParentChanged
110
        /// </summary>
111
        /// <param name="e"></param>
112
        protected override void OnParentChanged(EventArgs e)
113
        {
114
            // ラベルのプロパティ
115
            this.BackColor = m_MyDrowColor;
116

  
117
            // 線を描く
118
            DrowLeadLine();
119
        }
120
        #endregion
121

  
122
        #region マウスイベント
123
        /// <summary>
124
        /// 移動フラグ
125
        /// </summary>
126
        private bool m_isDraggable = false;
127
        /// <summary>
128
        /// 描画ポイント
129
        /// </summary>
130
        private Point m_point;
131
        /// <summary>
132
        /// マウスダウン
133
        /// </summary>
134
        /// <param name="sender"></param>
135
        /// <param name="e"></param>
136
        protected override void OnMouseDown(MouseEventArgs e)
137
        {
138
            m_isDraggable = true;
139
            m_point.X = e.X;
140
            m_point.Y = e.Y;
141
        }
142
        /// <summary>
143
        /// マウスムーヴ
144
        /// </summary>
145
        /// <param name="e"></param>
146
        protected override void OnMouseMove(MouseEventArgs e)
147
        {
148
            // マウスダウン時以外は処理しない
149
            if (!m_isDraggable) return;
150

  
151
            //移動処理
152
            this.Left += e.X - m_point.X;
153
            this.Top += e.Y - m_point.Y;
154

  
155
            // 線も同時に移動する
156
            int LineX = m_MyLine.EndPoint.X;
157
            int LineY = m_MyLine.EndPoint.Y;
158
            LineX += e.X - m_point.X;
159
            LineY += e.Y - m_point.Y;
160
            m_MyLine.EndPoint = new Point(LineX, LineY);
161
        }
162
        /// <summary>
163
        /// マウスアップ
164
        /// </summary>
165
        /// <param name="e"></param>
166
        protected override void OnMouseUp(MouseEventArgs e)
167
        {
168
            m_isDraggable = false;
169
        }
170
        #endregion
171
    }
172
}
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/_FrmPurchaseOrderPrint.Designer.cs
1
namespace ProcessManagement.Forms.DataEntry
2
{
3
    partial class FrmPurchaseOrderPrint
4
    {
5
        /// <summary>
6
        /// Required designer variable.
7
        /// </summary>
8
        private System.ComponentModel.IContainer components = null;
9

  
10
        /// <summary>
11
        /// Clean up any resources being used.
12
        /// </summary>
13
        /// <param name="disposing">true if managed resources should be disposed; otherwise, 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 Form Designer generated code
24

  
25
        /// <summary>
26
        /// Required method for Designer support - do not modify
27
        /// the contents of this method with the code editor.
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 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
            this.label1 = new System.Windows.Forms.Label();
37
            this.panel1 = new System.Windows.Forms.Panel();
38
            this.label2 = new System.Windows.Forms.Label();
39
            this.lblLabel01 = new System.Windows.Forms.Label();
40
            this.label17 = new System.Windows.Forms.Label();
41
            this.label16 = new System.Windows.Forms.Label();
42
            this.lblConstructionCodelabel = new System.Windows.Forms.Label();
43
            this.label3 = new System.Windows.Forms.Label();
44
            this.lblLabel03 = new System.Windows.Forms.Label();
45
            this.lblLabel02 = new System.Windows.Forms.Label();
46
            this.label6 = new System.Windows.Forms.Label();
47
            this.label14 = new System.Windows.Forms.Label();
48
            this.label4 = new System.Windows.Forms.Label();
49
            this.label9 = new System.Windows.Forms.Label();
50
            this.label5 = new System.Windows.Forms.Label();
51
            this.label7 = new System.Windows.Forms.Label();
52
            this.label11 = new System.Windows.Forms.Label();
53
            this.label8 = new System.Windows.Forms.Label();
54
            this.lblLabel04 = new System.Windows.Forms.Label();
55
            this.btnEnd = new System.Windows.Forms.Button();
56
            this.btnOtherProc = new System.Windows.Forms.Button();
57
            this.btnCancel = new System.Windows.Forms.Button();
58
            this.btnPrint = new System.Windows.Forms.Button();
59
            this.groupBox2 = new System.Windows.Forms.GroupBox();
60
            this.PrintProgress = new System.Windows.Forms.ProgressBar();
61
            this.dgvAllDisplay = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
62
            this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
63
            this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
64
            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
65
            this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
66
            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
67
            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
68
            this.Column2 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
69
            this.panel1.SuspendLayout();
70
            this.groupBox2.SuspendLayout();
71
            ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).BeginInit();
72
            this.SuspendLayout();
73
            // 
74
            // label1
75
            // 
76
            this.label1.Anchor = System.Windows.Forms.AnchorStyles.Top;
77
            this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
78
            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
79
            this.label1.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
80
            this.label1.ForeColor = System.Drawing.Color.Black;
81
            this.label1.Location = new System.Drawing.Point(422, 10);
82
            this.label1.Name = "label1";
83
            this.label1.Size = new System.Drawing.Size(500, 20);
84
            this.label1.TabIndex = 7;
85
            this.label1.Text = "注  文  書  印  刷";
86
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
87
            // 
88
            // panel1
89
            // 
90
            this.panel1.Anchor = System.Windows.Forms.AnchorStyles.Top;
91
            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
92
            this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
93
            this.panel1.Controls.Add(this.label2);
94
            this.panel1.Controls.Add(this.lblLabel01);
95
            this.panel1.Controls.Add(this.label17);
96
            this.panel1.Controls.Add(this.label16);
97
            this.panel1.Controls.Add(this.lblConstructionCodelabel);
98
            this.panel1.Controls.Add(this.label3);
99
            this.panel1.Controls.Add(this.lblLabel03);
100
            this.panel1.Controls.Add(this.lblLabel02);
101
            this.panel1.Controls.Add(this.label6);
102
            this.panel1.Controls.Add(this.label14);
103
            this.panel1.Controls.Add(this.label4);
104
            this.panel1.Controls.Add(this.label9);
105
            this.panel1.Controls.Add(this.label5);
106
            this.panel1.Controls.Add(this.label7);
107
            this.panel1.Controls.Add(this.label11);
108
            this.panel1.Controls.Add(this.label8);
109
            this.panel1.Controls.Add(this.lblLabel04);
110
            this.panel1.Location = new System.Drawing.Point(7, 40);
111
            this.panel1.Name = "panel1";
112
            this.panel1.Size = new System.Drawing.Size(1330, 108);
113
            this.panel1.TabIndex = 8;
114
            // 
115
            // label2
116
            // 
117
            this.label2.BackColor = System.Drawing.Color.White;
118
            this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
119
            this.label2.ForeColor = System.Drawing.Color.Black;
120
            this.label2.Location = new System.Drawing.Point(818, 36);
121
            this.label2.Name = "label2";
122
            this.label2.Size = new System.Drawing.Size(253, 27);
123
            this.label2.TabIndex = 53;
124
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
125
            // 
126
            // lblLabel01
127
            // 
128
            this.lblLabel01.BackColor = System.Drawing.Color.White;
129
            this.lblLabel01.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
130
            this.lblLabel01.ForeColor = System.Drawing.Color.Black;
131
            this.lblLabel01.Location = new System.Drawing.Point(134, 5);
132
            this.lblLabel01.Name = "lblLabel01";
133
            this.lblLabel01.Size = new System.Drawing.Size(115, 25);
134
            this.lblLabel01.TabIndex = 52;
135
            this.lblLabel01.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
136
            // 
137
            // label17
138
            // 
139
            this.label17.BackColor = System.Drawing.Color.White;
140
            this.label17.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
141
            this.label17.ForeColor = System.Drawing.Color.Black;
142
            this.label17.Location = new System.Drawing.Point(462, 71);
143
            this.label17.Name = "label17";
144
            this.label17.Size = new System.Drawing.Size(350, 25);
145
            this.label17.TabIndex = 47;
146
            this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
147
            // 
148
            // label16
149
            // 
150
            this.label16.BackColor = System.Drawing.Color.SandyBrown;
151
            this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
152
            this.label16.Location = new System.Drawing.Point(334, 71);
153
            this.label16.Name = "label16";
154
            this.label16.Size = new System.Drawing.Size(120, 25);
155
            this.label16.TabIndex = 46;
156
            this.label16.Text = "工事種別";
157
            this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
158
            // 
159
            // lblConstructionCodelabel
160
            // 
161
            this.lblConstructionCodelabel.BackColor = System.Drawing.Color.SandyBrown;
162
            this.lblConstructionCodelabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
163
            this.lblConstructionCodelabel.ForeColor = System.Drawing.Color.White;
164
            this.lblConstructionCodelabel.Location = new System.Drawing.Point(8, 5);
165
            this.lblConstructionCodelabel.Name = "lblConstructionCodelabel";
166
            this.lblConstructionCodelabel.Size = new System.Drawing.Size(120, 25);
167
            this.lblConstructionCodelabel.TabIndex = 30;
168
            this.lblConstructionCodelabel.Text = "工事名称";
169
            this.lblConstructionCodelabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
170
            // 
171
            // label3
172
            // 
173
            this.label3.BackColor = System.Drawing.Color.SandyBrown;
174
            this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
175
            this.label3.Font = new System.Drawing.Font("MS 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
176
            this.label3.Location = new System.Drawing.Point(8, 38);
177
            this.label3.Name = "label3";
178
            this.label3.Size = new System.Drawing.Size(120, 25);
179
            this.label3.TabIndex = 33;
180
            this.label3.Text = "施工及び納入場所";
181
            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
182
            // 
183
            // lblLabel03
184
            // 
185
            this.lblLabel03.BackColor = System.Drawing.Color.White;
186
            this.lblLabel03.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
187
            this.lblLabel03.ForeColor = System.Drawing.Color.Black;
188
            this.lblLabel03.Location = new System.Drawing.Point(134, 38);
189
            this.lblLabel03.Name = "lblLabel03";
190
            this.lblLabel03.Size = new System.Drawing.Size(550, 25);
191
            this.lblLabel03.TabIndex = 34;
192
            this.lblLabel03.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
193
            // 
194
            // lblLabel02
195
            // 
196
            this.lblLabel02.BackColor = System.Drawing.Color.White;
197
            this.lblLabel02.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
198
            this.lblLabel02.ForeColor = System.Drawing.Color.Black;
199
            this.lblLabel02.Location = new System.Drawing.Point(255, 5);
200
            this.lblLabel02.Name = "lblLabel02";
201
            this.lblLabel02.Size = new System.Drawing.Size(816, 25);
202
            this.lblLabel02.TabIndex = 32;
203
            this.lblLabel02.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
204
            // 
205
            // label6
206
            // 
207
            this.label6.BackColor = System.Drawing.Color.SandyBrown;
208
            this.label6.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
209
            this.label6.Location = new System.Drawing.Point(1081, 71);
210
            this.label6.Name = "label6";
211
            this.label6.Size = new System.Drawing.Size(120, 25);
212
            this.label6.TabIndex = 35;
213
            this.label6.Text = "注文書作成日";
214
            this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
215
            // 
216
            // label14
217
            // 
218
            this.label14.BackColor = System.Drawing.Color.SandyBrown;
219
            this.label14.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
220
            this.label14.Location = new System.Drawing.Point(1081, 38);
221
            this.label14.Name = "label14";
222
            this.label14.Size = new System.Drawing.Size(120, 25);
223
            this.label14.TabIndex = 35;
224
            this.label14.Text = "完 了 日";
225
            this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
226
            // 
227
            // label4
228
            // 
229
            this.label4.BackColor = System.Drawing.Color.SandyBrown;
230
            this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
231
            this.label4.Location = new System.Drawing.Point(692, 38);
232
            this.label4.Name = "label4";
233
            this.label4.Size = new System.Drawing.Size(120, 25);
234
            this.label4.TabIndex = 35;
235
            this.label4.Text = "発注書タイプ";
236
            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
237
            // 
238
            // label9
239
            // 
240
            this.label9.BackColor = System.Drawing.Color.SandyBrown;
241
            this.label9.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
242
            this.label9.Location = new System.Drawing.Point(1081, 5);
243
            this.label9.Name = "label9";
244
            this.label9.Size = new System.Drawing.Size(120, 25);
245
            this.label9.TabIndex = 35;
246
            this.label9.Text = "着 工 日";
247
            this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
248
            // 
249
            // label5
250
            // 
251
            this.label5.BackColor = System.Drawing.Color.SandyBrown;
252
            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
253
            this.label5.Location = new System.Drawing.Point(8, 71);
254
            this.label5.Name = "label5";
255
            this.label5.Size = new System.Drawing.Size(120, 25);
256
            this.label5.TabIndex = 35;
257
            this.label5.Text = "工事担当者";
258
            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
259
            // 
260
            // label7
261
            // 
262
            this.label7.BackColor = System.Drawing.Color.White;
263
            this.label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
264
            this.label7.ForeColor = System.Drawing.Color.Black;
265
            this.label7.Location = new System.Drawing.Point(1208, 71);
266
            this.label7.Name = "label7";
267
            this.label7.Size = new System.Drawing.Size(114, 25);
268
            this.label7.TabIndex = 36;
269
            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
270
            // 
271
            // label11
272
            // 
273
            this.label11.BackColor = System.Drawing.Color.White;
274
            this.label11.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
275
            this.label11.ForeColor = System.Drawing.Color.Black;
276
            this.label11.Location = new System.Drawing.Point(1209, 38);
277
            this.label11.Name = "label11";
278
            this.label11.Size = new System.Drawing.Size(114, 25);
279
            this.label11.TabIndex = 36;
280
            this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
281
            // 
282
            // label8
283
            // 
284
            this.label8.BackColor = System.Drawing.Color.White;
285
            this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
286
            this.label8.ForeColor = System.Drawing.Color.Black;
287
            this.label8.Location = new System.Drawing.Point(1209, 5);
288
            this.label8.Name = "label8";
289
            this.label8.Size = new System.Drawing.Size(114, 25);
290
            this.label8.TabIndex = 36;
291
            this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
292
            // 
293
            // lblLabel04
294
            // 
295
            this.lblLabel04.BackColor = System.Drawing.Color.White;
296
            this.lblLabel04.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
297
            this.lblLabel04.ForeColor = System.Drawing.Color.Black;
298
            this.lblLabel04.Location = new System.Drawing.Point(134, 71);
299
            this.lblLabel04.Name = "lblLabel04";
300
            this.lblLabel04.Size = new System.Drawing.Size(190, 25);
301
            this.lblLabel04.TabIndex = 36;
302
            this.lblLabel04.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
303
            // 
304
            // btnEnd
305
            // 
306
            this.btnEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
307
            this.btnEnd.BackColor = System.Drawing.Color.Blue;
308
            this.btnEnd.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
309
            this.btnEnd.ForeColor = System.Drawing.Color.White;
310
            this.btnEnd.Location = new System.Drawing.Point(1217, 656);
311
            this.btnEnd.Name = "btnEnd";
312
            this.btnEnd.Size = new System.Drawing.Size(120, 30);
313
            this.btnEnd.TabIndex = 53;
314
            this.btnEnd.Text = "終 了";
315
            this.btnEnd.UseVisualStyleBackColor = false;
316
            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
317
            // 
318
            // btnOtherProc
319
            // 
320
            this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
321
            this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen;
322
            this.btnOtherProc.Location = new System.Drawing.Point(7, 656);
323
            this.btnOtherProc.Name = "btnOtherProc";
324
            this.btnOtherProc.Size = new System.Drawing.Size(200, 30);
325
            this.btnOtherProc.TabIndex = 95;
326
            this.btnOtherProc.TabStop = false;
327
            this.btnOtherProc.Text = "他の画面へ";
328
            this.btnOtherProc.UseVisualStyleBackColor = false;
329
            this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click);
330
            // 
331
            // btnCancel
332
            // 
333
            this.btnCancel.BackColor = System.Drawing.Color.Red;
334
            this.btnCancel.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
335
            this.btnCancel.ForeColor = System.Drawing.Color.White;
336
            this.btnCancel.Location = new System.Drawing.Point(1089, 656);
337
            this.btnCancel.Name = "btnCancel";
338
            this.btnCancel.Size = new System.Drawing.Size(120, 30);
339
            this.btnCancel.TabIndex = 97;
340
            this.btnCancel.Text = "印刷中止";
341
            this.btnCancel.UseVisualStyleBackColor = false;
342
            this.btnCancel.Visible = false;
343
            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
344
            // 
345
            // btnPrint
346
            // 
347
            this.btnPrint.BackColor = System.Drawing.Color.Green;
348
            this.btnPrint.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
349
            this.btnPrint.ForeColor = System.Drawing.Color.White;
350
            this.btnPrint.Location = new System.Drawing.Point(961, 656);
351
            this.btnPrint.Name = "btnPrint";
352
            this.btnPrint.Size = new System.Drawing.Size(120, 30);
353
            this.btnPrint.TabIndex = 96;
354
            this.btnPrint.Text = "印 刷";
355
            this.btnPrint.UseVisualStyleBackColor = false;
356
            this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
357
            // 
358
            // groupBox2
359
            // 
360
            this.groupBox2.BackColor = System.Drawing.Color.WhiteSmoke;
361
            //this.groupBox2.BorderColor = System.Drawing.Color.Black;
362
            this.groupBox2.Controls.Add(this.PrintProgress);
363
            this.groupBox2.Controls.Add(this.dgvAllDisplay);
364
            this.groupBox2.Location = new System.Drawing.Point(7, 154);
365
            this.groupBox2.Name = "groupBox2";
366
            this.groupBox2.Size = new System.Drawing.Size(1330, 483);
367
            this.groupBox2.TabIndex = 0;
368
            this.groupBox2.TabStop = false;
369
            this.groupBox2.Text = "発 注 先 一 覧";
370
            // 
371
            // PrintProgress
372
            // 
373
            this.PrintProgress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 
374
            | System.Windows.Forms.AnchorStyles.Right)));
375
            this.PrintProgress.Location = new System.Drawing.Point(10, 434);
376
            this.PrintProgress.Name = "PrintProgress";
377
            this.PrintProgress.Size = new System.Drawing.Size(1310, 36);
378
            this.PrintProgress.TabIndex = 22;
379
            this.PrintProgress.Visible = false;
380
            // 
381
            // dgvAllDisplay
382
            // 
383
            this.dgvAllDisplay.AllowUserToAddRows = false;
384
            this.dgvAllDisplay.AllowUserToDeleteRows = false;
385
            this.dgvAllDisplay.AllowUserToResizeColumns = false;
386
            this.dgvAllDisplay.AllowUserToResizeRows = false;
387
            this.dgvAllDisplay.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
388
            this.dgvAllDisplay.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
389
            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
390
            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
391
            dataGridViewCellStyle1.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
392
            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
393
            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
394
            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
395
            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
396
            this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
397
            this.dgvAllDisplay.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
398
            this.dgvAllDisplay.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
399
            this.dataGridViewTextBoxColumn1,
400
            this.dataGridViewTextBoxColumn3,
401
            this.Column5,
402
            this.Column6,
403
            this.Column1,
404
            this.Column3,
405
            this.Column2});
406
            this.dgvAllDisplay.Location = new System.Drawing.Point(10, 22);
407
            this.dgvAllDisplay.Name = "dgvAllDisplay";
408
            this.dgvAllDisplay.RowHeadersVisible = false;
409
            this.dgvAllDisplay.RowHeadersWidth = 20;
410
            this.dgvAllDisplay.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
411
            this.dgvAllDisplay.RowTemplate.Height = 21;
412
            this.dgvAllDisplay.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
413
            this.dgvAllDisplay.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
414
            this.dgvAllDisplay.Size = new System.Drawing.Size(1310, 405);
415
            this.dgvAllDisplay.TabIndex = 2;
416
            // 
417
            // dataGridViewTextBoxColumn1
418
            // 
419
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
420
            this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle2;
421
            this.dataGridViewTextBoxColumn1.Frozen = true;
422
            this.dataGridViewTextBoxColumn1.HeaderText = "№";
423
            this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
424
            this.dataGridViewTextBoxColumn1.ReadOnly = true;
425
            this.dataGridViewTextBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
426
            this.dataGridViewTextBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
427
            this.dataGridViewTextBoxColumn1.Width = 40;
428
            // 
429
            // dataGridViewTextBoxColumn3
430
            // 
431
            this.dataGridViewTextBoxColumn3.Frozen = true;
432
            this.dataGridViewTextBoxColumn3.HeaderText = "注文書枝番";
433
            this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
434
            this.dataGridViewTextBoxColumn3.ReadOnly = true;
435
            this.dataGridViewTextBoxColumn3.Visible = false;
436
            this.dataGridViewTextBoxColumn3.Width = 5;
437
            // 
438
            // Column5
439
            // 
440
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
441
            this.Column5.DefaultCellStyle = dataGridViewCellStyle3;
442
            this.Column5.Frozen = true;
443
            this.Column5.HeaderText = "注文書番号";
444
            this.Column5.Name = "Column5";
445
            this.Column5.Resizable = System.Windows.Forms.DataGridViewTriState.False;
446
            this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
447
            this.Column5.Width = 150;
448
            // 
449
            // Column6
450
            // 
451
            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
452
            this.Column6.DefaultCellStyle = dataGridViewCellStyle4;
453
            this.Column6.Frozen = true;
454
            this.Column6.HeaderText = "発注会社名";
455
            this.Column6.Name = "Column6";
456
            this.Column6.Resizable = System.Windows.Forms.DataGridViewTriState.False;
457
            this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
458
            this.Column6.Width = 550;
459
            // 
460
            // Column1
461
            // 
462
            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
463
            this.Column1.DefaultCellStyle = dataGridViewCellStyle5;
464
            this.Column1.Frozen = true;
465
            this.Column1.HeaderText = "発注金額";
466
            this.Column1.Name = "Column1";
467
            this.Column1.ReadOnly = true;
468
            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
469
            this.Column1.Width = 150;
470
            // 
471
            // Column3
472
            // 
473
            this.Column3.Frozen = true;
474
            this.Column3.HeaderText = "支払条件";
475
            this.Column3.Name = "Column3";
476
            this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
477
            this.Column3.Width = 300;
478
            // 
479
            // Column2
480
            // 
481
            this.Column2.Frozen = true;
482
            this.Column2.HeaderText = "印刷";
483
            this.Column2.Name = "Column2";
484
            // 
485
            // FrmPurchaseOrderPrint
486
            // 
487
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
488
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
489
            this.BackColor = System.Drawing.Color.Black;
490
            this.ClientSize = new System.Drawing.Size(1344, 692);
491
            this.Controls.Add(this.btnCancel);
492
            this.Controls.Add(this.btnPrint);
493
            this.Controls.Add(this.btnOtherProc);
494
            this.Controls.Add(this.btnEnd);
495
            this.Controls.Add(this.panel1);
496
            this.Controls.Add(this.label1);
497
            this.Controls.Add(this.groupBox2);
498
            this.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
499
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
500
            this.KeyPreview = true;
501
            this.MaximizeBox = false;
502
            this.Name = "FrmPurchaseOrderPrint";
503
            this.ShowIcon = false;
504
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
505
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.PurchaseOrderPrint_FormClosing);
506
            this.Load += new System.EventHandler(this.PurchaseOrderPrint_Load);
507
            this.panel1.ResumeLayout(false);
508
            this.groupBox2.ResumeLayout(false);
509
            ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).EndInit();
510
            this.ResumeLayout(false);
511

  
512
        }
513

  
514
        #endregion
515

  
516
        private System.Windows.Forms.Label label1;
517
        private System.Windows.Forms.Panel panel1;
518
        private System.Windows.Forms.Label label17;
519
        private System.Windows.Forms.Label label16;
520
        private System.Windows.Forms.Label lblConstructionCodelabel;
521
        private System.Windows.Forms.Label label3;
522
        private System.Windows.Forms.Label lblLabel03;
523
        private System.Windows.Forms.Label lblLabel02;
524
        private System.Windows.Forms.Label label14;
525
        private System.Windows.Forms.Label label9;
526
        private System.Windows.Forms.Label label5;
527
        private System.Windows.Forms.Label label11;
528
        private System.Windows.Forms.Label label8;
529
        private System.Windows.Forms.Label lblLabel04;
530
        private System.Windows.Forms.Label label4;
531
        private System.Windows.Forms.Button btnEnd;
532
        private System.Windows.Forms.Label lblLabel01;
533
        private System.Windows.Forms.Button btnOtherProc;
534
        private System.Windows.Forms.GroupBox groupBox2;
535
        private System.Windows.Forms.Label label2;
536
        private CustomControls.DataGridViewEX dgvAllDisplay;
537
        private System.Windows.Forms.Button btnCancel;
538
        private System.Windows.Forms.Button btnPrint;
539
        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
540
        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
541
        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
542
        private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
543
        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
544
        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
545
        private System.Windows.Forms.DataGridViewCheckBoxColumn Column2;
546
        private System.Windows.Forms.ProgressBar PrintProgress;
547
        private System.Windows.Forms.Label label6;
548
        private System.Windows.Forms.Label label7;
549
    }
550
}
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/EditWord.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace ProcessManagement.Forms.DataEntry.PurchaseOrderPrint
8
{
9
    class EditWord
10
    {
11
    }
12
}
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmSelectRegField.cs
43 43
            ReadOnly,
44 44
        }
45 45

  
46
        // 取得するデータ項目
47
        private enum ClickGetData
48
        {
49
            RequestNo = 0,
50
            OrderNo,
51
            OrderersDivision,
52
            OrderersCode,
53
            BillCreationDate,
54
            BillTotalPrice,
55
            BillPrice,
56
            TaxPrice,
57
            DetailString,
58
            PersonCode,
59
            PersonName,
60
            DepartmentCode,
61
        }
62 46
        #endregion
63 47

  
64 48
        #region クラス定義
......
78 62
            public long DepositAmount { set; get; }
79 63
            public bool DeleteFlg { set; get; }
80 64
            public bool ReadOnly { set; get; }
65
            public int SubPersonCode { set; get; }
66
            public int InstructorPersonCode { set; get; } 
81 67
        }
82 68
        #endregion
83 69

  
......
390 376
                    return;
391 377
                }
392 378

  
379
                // 空文字も無視
380
                if (dgv1[tcol, trow].Value == string.Empty)
381
                {
382
                    return;
383
                }
384

  
393 385
                int RequestNo = CommonMotions.cnvInt(dgv1[(int)ColumnIndex.RequestNo, trow].Value);
394 386
                int OrderNo = CommonMotions.cnvInt(dgv1[(int)ColumnIndex.OrderNo, trow].Value);
395 387

  
......
605 597
                dgv2.Rows.Clear();
606 598

  
607 599
                // 金額行のフォーマットを指定
608
                dgv1.Columns[(int)ColumnIndex.BillPrice].DefaultCellStyle.Format = "#,0";
600
//                dgv1.Columns[(int)ColumnIndex.BillPrice].DefaultCellStyle.Format = "#,0";
609 601
                dgv2.Columns[(int)ColumnIndex.BillPrice].DefaultCellStyle.Format = "#,0";
610 602

  
611 603
                // 入金金額合計、他担当割り当て済み金額を算出
......
614 606
                foreach(MyFieldData MyData in m_lstMyField)
615 607
                {
616 608
                    TotalPrice += MyData.DepositAmount;
617
                    if ((MyData.PersonCode != CommonMotions.LoginUserData.PersonCode) &&
618
                        (MyData.PersonCode != 0))
609

  
610
                    // 対象工事でない場合
611
                    if( IsTargetConstruction( MyData ) == false )
619 612
                    {
620 613
                        OtherParsonPrice += MyData.DepositAmount;
621 614
                    }
......
635 628

  
636 629
                foreach (MyFieldData MyData in m_lstMyField)
637 630
                {
638
                    if (MyData.PersonCode == CommonMotions.LoginUserData.PersonCode)
631
                    // 対象工事の場合場合
632
                    if( IsTargetConstruction( MyData ) == true )
639 633
                    {
640 634
                        // 各現場の行を追加
641 635
                        dgv1.Rows.Add(MyData.RequestNo, MyData.OrderNo, ++rowCount, MyData.ConstructionName, MyData.DepositAmount, MyData.ReadOnly);
......
865 859
        }
866 860
        #endregion
867 861

  
862
        #region 対象工事が対象か判定する
863
        private bool IsTargetConstruction(MyFieldData MyData)
864
        {
865
            // 不明行は対象外
866
            if (MyData.RequestNo == 0)
867
            {
868
                return false;
869
            }
870
 
871
            // 保護区分ランクが特別権限の場合は全て対象
872
            if (CommonMotions.LoginUserSecurity.SecRank == CommonDefine.SecurityRankList[(int)CommonDefine.SecurityRankPos.SpecialAuthority].Key)
873
            {
874
                return true;
875
            }
868 876

  
877
            // 保護区分範囲が自担当のみは担当分工事のみ
878
            if (CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[(int)CommonDefine.SecurityRangePos.None].Key)
879
            {
880
                if ((MyData.PersonCode == CommonMotions.LoginUserData.PersonCode)||
881
                    (MyData.SubPersonCode == CommonMotions.LoginUserData.PersonCode)||
882
                    (MyData.InstructorPersonCode == CommonMotions.LoginUserData.PersonCode))
883
                {
884
                    return true;
885
                }
886
            }
887
            // 保護区分範囲が自部署のみは、部署コードが一致
888
            else if (CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[(int)CommonDefine.SecurityRangePos.Only].Key)
889
            {
890
                if (MyData.DepartmentCode == CommonMotions.LoginUserData.DepartmentCode)
891
                {
892
                    return true;
893
                }
894
            }
895
            else
896
            {
897
                // 担当者対象部署マスタに含まれるか判定                                
898
                foreach( PersonDepartmentMaster Prsn in CommonMotions.LoginUserDepartment)
899
                {
900
                    if( MyData.DepartmentCode == Prsn.DepartmentCode )
901
                    {
902
                        return true;
903
                    }
904
                }
905
            }
906

  
907
            return false;
908
        }
909
        #endregion
910

  
869 911
    }
870 912
}
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmSelectRequest.cs
514 514
                sql = new StringBuilder();
515 515
                sql.Append("SELECT");
516 516
                sql.Append(" ReqHead.RequestNo");                                               // 請求No
517
                sql.Append(",0");                                                               // 受付番号(廃止予定)
517
                sql.Append(",ReqHead.OrderNo");                                                 // 受付番号(廃止予定)
518 518
                sql.Append(",ReqHead.OrderersDivision");                                        // 発注者区分
519 519
                sql.Append(",ReqHead.OrderersCode");                                            // 発注者コード
520 520
                sql.Append(",DATE_FORMAT(InvData.CretateDate, '%Y/%m/%d') as CreateDate ");     // 請求書作成日
......
578 578
                    dgv.Rows[LineCnt].Cells[(int)DispColumn.OrderersDivision].Value = CommonMotions.cnvInt(work[(int)ClickGetData.OrderersDivision]);
579 579
                    dgv.Rows[LineCnt].Cells[(int)DispColumn.OrderersCode].Value = CommonMotions.cnvInt(work[(int)ClickGetData.OrderersCode]);
580 580
                    dgv.Rows[LineCnt].Cells[(int)DispColumn.FieldName].Value = CommonMotions.cnvString(work[(int)ClickGetData.DetailString]);
581
                    if (CommonMotions.cnvInt(work[(int)ClickGetData.OrderNo]) > 1 )
581
                    if (CommonMotions.cnvInt(work[(int)ClickGetData.OrderNo]) > 1)
582 582
                    {
583 583
                        dgv.Rows[LineCnt].Cells[(int)DispColumn.FieldName].Value += "(" + CommonMotions.cnvInt(work[(int)ClickGetData.OrderNo]).ToString() + "回目)";
584 584
                    }
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.cs
647 647
                        PersonCode = depositDetail.ApprovalPersonCode,
648 648
                        DeleteFlg = false,
649 649
                        ReadOnly = depositDetail.IsApprovedByStaff,
650
                        DepartmentCode = depositDetail.DepartmentCode,
651
                        SubPersonCode = depositDetail.ConstrSubPersonCode,
652
                        InstructorPersonCode = depositDetail.ConstructionInstructor,
650 653
                    });
651 654
                }
652 655
                // 不明行を渡す必要がある
......
1607 1610
                        // 更新
1608 1611
                        else
1609 1612
                        {
1613
                            depositDetail.Editted = true;
1610 1614
                            depositDetail.BillPrice = item.BillPrice;
1611 1615
                            depositDetail.TaxPrice = item.TaxPrice;
1612 1616
                            depositDetail.DepositAmount = item.DepositAmount;
......
1872 1876
                sql.Append(" ,null");
1873 1877
                sql.Append(" ,DepD.LineCount");
1874 1878
                sql.Append(" ,ifnull(DepD.RequestNo, 0) as RequestNo");
1875
                sql.Append(" ,0 as OrderNo");
1879
                sql.Append(" ,ifnull(DepD.OrderNo, 0) as OrderNo");
1876 1880
                sql.Append(" ,DepD.DepositAmount");
1877 1881
                sql.Append(" ,ifnull(DepD.DiscountAmount, 0) as DiscountAmount");
1878 1882
                sql.Append(" ,ifnull(DepD.CnstrPrice, 0) as CnstrPrice");
......
2159 2163
                if (dgvMaster.Rows.Count > 0)
2160 2164
                {
2161 2165
                    dgvMaster.FirstDisplayedScrollingRowIndex = 0;
2162
                    dgvMaster.FirstDisplayedScrollingColumnIndex = 1;
2166
                    dgvMaster.FirstDisplayedScrollingColumnIndex = 15;
2163 2167
                    dgvMaster.CurrentCell = dgvMaster[1, 0];
2164 2168
                }
2165 2169
            }
......
3027 3031
                // 特別権限は、無条件でボタン有効
3028 3032
                if( m_UserInfo.m_Type == (int)CommonDefine.SecurityRankPos.SpecialAuthority)
3029 3033
                {
3030
                    btnAddCmp.Enabled = false;
3031
                    btnDelCmp.Enabled = false;
3034
                    btnAddCmp.Enabled = true;
3035
                    btnDelCmp.Enabled = true;
3032 3036
                    btnAddFld.Enabled = true;
3033 3037

  
3034 3038
                    return;
branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardInput.designer.cs
1
using ProcessManagement.Forms.CustomControls;
2

  
3
namespace ProcessManagement.Forms.SubForms
4
{
5
    partial class FrmMessageBoardInput
6
    {
7
        /// <summary>
8
        /// 必要なデザイナ変数です。
9
        /// </summary>
10
        private System.ComponentModel.IContainer components = null;
11

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

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

  
27
        /// <summary>
28
        /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
29
        /// コード エディタで変更しないでください。
30
        /// </summary>
31
        private void InitializeComponent()
32
        {
33
            this.btnDataEntry = new System.Windows.Forms.Button();
34
            this.btnDelete = new System.Windows.Forms.Button();
35
            this.btnEnd = new System.Windows.Forms.Button();
36
            this.label1 = new System.Windows.Forms.Label();
37
            this.cmbFrom = new System.Windows.Forms.ComboBox();
38
            this.label4 = new System.Windows.Forms.Label();
39
            this.label2 = new System.Windows.Forms.Label();
40
            this.cmbTo = new System.Windows.Forms.ComboBox();
41
            this.label3 = new System.Windows.Forms.Label();
42
            this.txtMessage = new System.Windows.Forms.TextBox();
43
            this.lblMode = new System.Windows.Forms.Label();
44
            this.SuspendLayout();
45
            // 
46
            // btnDataEntry
47
            // 
48
            this.btnDataEntry.BackColor = System.Drawing.Color.Green;
49
            this.btnDataEntry.ForeColor = System.Drawing.Color.White;
50
            this.btnDataEntry.Location = new System.Drawing.Point(279, 515);
51
            this.btnDataEntry.Name = "btnDataEntry";
52
            this.btnDataEntry.Size = new System.Drawing.Size(120, 30);
53
            this.btnDataEntry.TabIndex = 4;
54
            this.btnDataEntry.Text = "登 録";
55
            this.btnDataEntry.UseVisualStyleBackColor = false;
56
            this.btnDataEntry.Click += new System.EventHandler(this.btnDataEntry_Click);
57
            // 
58
            // btnDelete
59
            // 
60
            this.btnDelete.BackColor = System.Drawing.Color.Red;
61
            this.btnDelete.ForeColor = System.Drawing.Color.White;
62
            this.btnDelete.Location = new System.Drawing.Point(70, 515);
63
            this.btnDelete.Name = "btnDelete";
64
            this.btnDelete.Size = new System.Drawing.Size(120, 30);
65
            this.btnDelete.TabIndex = 5;
66
            this.btnDelete.Text = "削 除";
67
            this.btnDelete.UseVisualStyleBackColor = false;
68
            this.btnDelete.Visible = false;
69
            this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
70
            // 
71
            // btnEnd
72
            // 
73
            this.btnEnd.BackColor = System.Drawing.Color.Blue;
74
            this.btnEnd.ForeColor = System.Drawing.Color.White;
75
            this.btnEnd.Location = new System.Drawing.Point(405, 515);
76
            this.btnEnd.Name = "btnEnd";
77
            this.btnEnd.Size = new System.Drawing.Size(120, 30);
78
            this.btnEnd.TabIndex = 6;
79
            this.btnEnd.Text = "終 了";
80
            this.btnEnd.UseVisualStyleBackColor = false;
81
            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
82
            // 
83
            // label1
84
            // 
85
            this.label1.BackColor = System.Drawing.Color.White;
86
            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
87
            this.label1.ForeColor = System.Drawing.Color.Black;
88
            this.label1.Location = new System.Drawing.Point(25, 10);
89
            this.label1.Name = "label1";
90
            this.label1.Size = new System.Drawing.Size(500, 20);
91
            this.label1.TabIndex = 6;
92
            this.label1.Text = "掲示板データ入力";
93
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
94
            // 
95
            // cmbFrom
96
            // 
97
            this.cmbFrom.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
98
            this.cmbFrom.FormattingEnabled = true;
99
            this.cmbFrom.ImeMode = System.Windows.Forms.ImeMode.On;
100
            this.cmbFrom.Location = new System.Drawing.Point(119, 72);
101
            this.cmbFrom.Name = "cmbFrom";
102
            this.cmbFrom.Size = new System.Drawing.Size(406, 24);
103
            this.cmbFrom.TabIndex = 0;
104
            this.cmbFrom.TextChanged += new System.EventHandler(this.valueChange);
105
            // 
106
            // label4
107
            // 
108
            this.label4.BackColor = System.Drawing.Color.RoyalBlue;
109
            this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
110
            this.label4.Location = new System.Drawing.Point(25, 72);
111
            this.label4.Name = "label4";
112
            this.label4.Size = new System.Drawing.Size(86, 25);
113
            this.label4.TabIndex = 8;
114
            this.label4.Text = "誰だれ~";
115
            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
116
            // 
117
            // label2
118
            // 
119
            this.label2.BackColor = System.Drawing.Color.RoyalBlue;
120
            this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
121
            this.label2.Location = new System.Drawing.Point(25, 111);
122
            this.label2.Name = "label2";
123
            this.label2.Size = new System.Drawing.Size(86, 25);
124
            this.label2.TabIndex = 8;
125
            this.label2.Text = "~さんに";
126
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
127
            // 
128
            // cmbTo
129
            // 
130
            this.cmbTo.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
131
            this.cmbTo.FormattingEnabled = true;
132
            this.cmbTo.ImeMode = System.Windows.Forms.ImeMode.On;
133
            this.cmbTo.Location = new System.Drawing.Point(119, 111);
134
            this.cmbTo.Name = "cmbTo";
135
            this.cmbTo.Size = new System.Drawing.Size(406, 24);
136
            this.cmbTo.TabIndex = 1;
137
            this.cmbTo.TextChanged += new System.EventHandler(this.valueChange);
138
            // 
139
            // label3
140
            // 
141
            this.label3.BackColor = System.Drawing.Color.RoyalBlue;
142
            this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
143
            this.label3.Location = new System.Drawing.Point(25, 155);
144
            this.label3.Name = "label3";
145
            this.label3.Size = new System.Drawing.Size(86, 25);
146
            this.label3.TabIndex = 8;
147
            this.label3.Text = "伝言内容";
148
            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
149
            // 
150
            // txtMessage
151
            // 
152
            this.txtMessage.ImeMode = System.Windows.Forms.ImeMode.On;
153
            this.txtMessage.Location = new System.Drawing.Point(119, 157);
154
            this.txtMessage.Multiline = true;
155
            this.txtMessage.Name = "txtMessage";
156
            this.txtMessage.Size = new System.Drawing.Size(406, 345);
157
            this.txtMessage.TabIndex = 3;
158
            this.txtMessage.TextChanged += new System.EventHandler(this.valueChange);
159
            // 
160
            // lblMode
161
            // 
162
            this.lblMode.BackColor = System.Drawing.Color.White;
163
            this.lblMode.Font = new System.Drawing.Font("MS 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
164
            this.lblMode.Location = new System.Drawing.Point(25, 38);
165
            this.lblMode.Name = "lblMode";
166
            this.lblMode.Size = new System.Drawing.Size(86, 25);
167
            this.lblMode.TabIndex = 9;
168
            this.lblMode.Text = "新規";
169
            this.lblMode.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
170
            // 
171
            // FrmMessageBoardInput
172
            // 
173
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
174
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
175
            this.BackColor = System.Drawing.Color.Black;
176
            this.ClientSize = new System.Drawing.Size(550, 557);
177
            this.Controls.Add(this.lblMode);
178
            this.Controls.Add(this.txtMessage);
179
            this.Controls.Add(this.label3);
180
            this.Controls.Add(this.label2);
181
            this.Controls.Add(this.label4);
182
            this.Controls.Add(this.cmbTo);
183
            this.Controls.Add(this.cmbFrom);
184
            this.Controls.Add(this.label1);
185
            this.Controls.Add(this.btnDataEntry);
186
            this.Controls.Add(this.btnDelete);
187
            this.Controls.Add(this.btnEnd);
188
            this.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
189
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
190
            this.KeyPreview = true;
191
            this.MaximizeBox = false;
192
            this.Name = "FrmMessageBoardInput";
193
            this.ShowIcon = false;
194
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
195
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmMessageBoardInput_FormClosing);
196
            this.Load += new System.EventHandler(this.FrmMessageBoardInput_Load);
197
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmMessageBoardInput_KeyDown);
198
            this.ResumeLayout(false);
199
            this.PerformLayout();
200

  
201
        }
202

  
203
        #endregion
204

  
205
        private System.Windows.Forms.Button btnDataEntry;
206
        private System.Windows.Forms.Button btnDelete;
207
        private System.Windows.Forms.Button btnEnd;
208
        private System.Windows.Forms.Label label1;
209
        private System.Windows.Forms.ComboBox cmbFrom;
210
        private System.Windows.Forms.Label label4;
211
        private System.Windows.Forms.Label label2;
212
        private System.Windows.Forms.ComboBox cmbTo;
213
        private System.Windows.Forms.Label label3;
214
        private System.Windows.Forms.TextBox txtMessage;
215
        private System.Windows.Forms.Label lblMode;
216
    }
217
}
branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmEstimateDetailDiag.cs
1
using System;
2
using System.Collections.Generic;
3
using System.ComponentModel;
4
using System.Data;
5
using System.Drawing;
6
using System.Linq;
7
using System.Text;
8
using System.Windows.Forms;
9

  
10
using ProcessManagement.Common;
11
using ProcessManagement.DB.IOAccess;
12
using ProcessManagement.DataModel;
13
using ProcessManagement.Forms.CustomControls;
14
using ProcessManagement.Forms.ControlsAction;
15

  
16
namespace ProcessManagement.Forms.SubForms
17
{
18
    public partial class FrmEstimateDetailDiag : Form
19
    {
20
        #region ログ使用定義
21
        //log4netログを使用する
22
        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
23
        #endregion
24

  
25
        
26
        #region 定数
27
        /// <summary>
28
        /// 表示カラム
29
        /// </summary>
30
        private enum DispGridColumn
31
        {
32
            DisplayOrder = 0,
33
            PageCount,
34
            LineCount,
35
            ComponentCode,
36
            ItemCode,
37
            WorkCode,
38
            WorkName,
39
            SpecName,
40
            LineTotal,
41
            sCheck,
42
        }
43
        #endregion
44

  
45
        #region 変数
46
        /// <summary>
47
        /// 要素チェック
48
        /// </summary>
49
        private List<EstimateDataDetail> m_DetailArray_Input = new List<EstimateDataDetail>();
50
        private List<EstimateDataDetail> m_DetailtArray_Output = new List<EstimateDataDetail>();
51

  
52
        /// <summary>
53
        /// 工事番号
54
        /// </summary>
55
        private int m_ConstructionCode = 0;
56
        /// <summary>
57
        /// 終了状態フラグ
58
        /// </summary>
59
        private DialogResult m_EndButton = DialogResult.None;
60

  
61
        /// <summary>
62
        /// 構成キー
63
        /// </summary>
64
        private int m_ComponentCode = 0;
65

  
66
        /// <summary>
67
        /// 工種キー
68
        /// </summary>
69
        private int m_ItemKey = 0;
70

  
71
        /// <summary>
72
        /// イベント抑制フラグ
73
        /// </summary>
74
        private bool m_bEventStop = true;
75
        #endregion
76

  
77
        #region プロパティ
78
        /// <summary>
79
        /// 構成要素
80
        /// </summary>
81
        public List<EstimateDataDetail> DetailArray
82
        {
83
            get { return m_DetailtArray_Output; }
84
            set { m_DetailArray_Input = value; }
85
        }
86
        /// <summary>
87
        /// 工事番号
88
        /// </summary>
89
        public int ConstructionCode
90
        {
91
            get { return m_ConstructionCode; }
92
            set { m_ConstructionCode = value; }
93
        }
94

  
95
        /// <summary>
96
        /// 終了ボタン状態
97
        /// </summary>
98
        public DialogResult EndButton
99
        {
100
            get { return m_EndButton; }
101
        }
102
        /// <summary>
103
        /// 構成キー
104
        /// </summary>
105
        public int ComponentCode
106
        {
107
            get { return m_ComponentCode; }
108
            set { m_ComponentCode = value; }
109
        }
110

  
111
        /// <summary>
112
        /// 工種キー
113
        /// </summary>
114
        public int ItemKey
115
        {
116
            get { return m_ItemKey; }
117
            set { m_ItemKey = value; }
118
        }
119

  
120
        #endregion
121

  
122
        #region イベントメソッド
123
        /// <summary>
124
        /// フォーム初期化
125
        /// </summary>
126
        public FrmEstimateDetailDiag()
127
        {
128
            InitializeComponent();
129
        }
130
    
131
        /// <summary>
132
        /// フォームロード
133
        /// </summary>
134
        /// <param name="sender"></param>
135
        /// <param name="e"></param>
136
        private void FrmCostStructureDiag_Load(object sender, EventArgs e)
137
        {
138
            // 初期表示
139
            InitDataLoad();
140
            // フォームサイズ固定
141
            this.MaximizedBounds = new Rectangle(this.Left, this.Top, this.Width, this.Height);
142
        }
143

  
144
        /// <summary>
145
        /// 終了ボタン押下
146
        /// </summary>
147
        /// <param name="sender"></param>
148
        /// <param name="e"></param>
149
        private void btnEnd_Click(object sender, EventArgs e)
150
        {
151
            m_EndButton = DialogResult.None;
152
            Close();
153
        }
154

  
155
        /// <summary>
156
        /// 選択ボタン押下
157
        /// </summary>
158
        /// <param name="sender"></param>
159
        /// <param name="e"></param>
160
        private void btnSelect_Click(object sender, EventArgs e)
161
        {
162
            // 選択
163
            foreach (DataGridViewRow r in dgvMaster.Rows)
164
            {
165
                if ((bool)r.Cells[(int)DispGridColumn.sCheck].Value)
166
                {
167
                    // 空欄チェック
168
                    if (!BlanckRowCheck(r)) continue;
169

  
170
                    bool ExistFlg = false;
171
                    // すでに存在するか
172
                    ExistFlg = ChkDetailExist(CommonMotions.cnvInt(r.Cells[(int)DispGridColumn.PageCount].Value.ToString()),
173
                                                CommonMotions.cnvInt(r.Cells[(int)DispGridColumn.LineCount].Value.ToString()));
174

  
175
                    // 無ければ追加
176
                    if (!ExistFlg)
177
                    {
178
                        EstimateDataDetail SetWork = new EstimateDataDetail();
179
                        SetWork.ConstructionCode = m_ConstructionCode;	                                                            // 工事番号
180
                        SetWork.PageCount = CommonMotions.cnvInt(r.Cells[(int)DispGridColumn.PageCount].Value.ToString());          // ページ番号
181
                        SetWork.LineCount = CommonMotions.cnvInt(r.Cells[(int)DispGridColumn.LineCount].Value.ToString());          // 	行番号
182
                        SetWork.ComponentCode = CommonMotions.cnvInt(r.Cells[(int)DispGridColumn.ComponentCode].Value.ToString()); // 構成キー
183
                        SetWork.ItemCode = CommonMotions.cnvInt(r.Cells[(int)DispGridColumn.ItemCode].Value.ToString());            // 工種キー
184
                        SetWork.WorkCode = CommonMotions.cnvInt(r.Cells[(int)DispGridColumn.WorkCode].Value.ToString());            // 規格・寸法キー
185
                        SetWork.ItemName = r.Cells[(int)DispGridColumn.WorkName].Value.ToString();                                  // 作業名称
186
                        SetWork.WorkName = r.Cells[(int)DispGridColumn.SpecName].Value.ToString();                                  // 作業/品質・形状・寸法
187
                        SetWork.LineTotal = CommonMotions.cnvInt(r.Cells[(int)DispGridColumn.LineTotal].Value.ToString());          // 金額
188

  
189
                        m_DetailtArray_Output.Add(SetWork);
190
                    }
191
                }
192
            }
193
            // 選択無はエラー
194
            if (m_DetailtArray_Output.Count == 0) return;
195

  
196
            m_EndButton = DialogResult.OK;
197
            Close();
198
        }
199
        /// <summary>
200
        /// セルダブルクリック
201
        /// </summary>
202
        /// <param name="sender"></param>
203
        /// <param name="e"></param>
204
        private void dgvMaster_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
205
        {
206
            // 空白チェック
207
            if (!BlanckRowCheck(dgvMaster.CurrentRow)) return;
208
            // 一括チェックは処理しない
209
            if (e.RowIndex < 0) return;
210

  
211
            dgvMaster.CurrentRow.Cells[(int)DispGridColumn.sCheck].Value = !(bool)dgvMaster.CurrentRow.Cells[(int)DispGridColumn.sCheck].Value;
212
        }
213

  
214
        /// <summary>
215
        /// セルクリック
216
        /// </summary>
217
        /// <param name="sender"></param>
218
        /// <param name="e"></param>
219
        private void dgvMaster_CellClick(object sender, DataGridViewCellEventArgs e)
220
        {
221
            // 一括チェック禁止は処理しない
222
            if (!chkBoxAll.Enabled) return;
223

  
224
            if (e.ColumnIndex == (int)DispGridColumn.sCheck && e.RowIndex == -1)
225
            {
226
                chkBoxAll.Checked = !chkBoxAll.Checked;
227

  
228
                // すべての行のチェック状態を切り替える
229
                foreach (DataGridViewRow row in this.dgvMaster.Rows)
230
                {
231
                    row.Cells[(int)DispGridColumn.sCheck].Value = chkBoxAll.Checked;
232
                }
233
            }
234
        }
235
        /// <summary>
236
        /// 一括チェック
237
        /// </summary>
238
        /// <param name="sender"></param>
239
        /// <param name="e"></param>
240
        private void chkBoxAll_CheckedChanged(object sender, EventArgs e)
241
        {
242
            // すべての行のチェック状態を切り替える
243
            foreach (DataGridViewRow row in this.dgvMaster.Rows)
244
            {
245
                // 空白チェック
246
                if (!BlanckRowCheck(row)) return;
247

  
248
                row.Cells[(int)DispGridColumn.sCheck].Value = chkBoxAll.Checked;
249
            }
250
        }
251

  
252
        /// <summary>
253
        /// アップキー押下
254
        /// </summary>
255
        /// <param name="sender"></param>
256
        /// <param name="e"></param>
257
        private void btnDispUp_Click(object sender, EventArgs e)
258
        {
259
            try
260
            {
261
                // グリッドアップキー処理
262
                DataGridViewAction.GridRowUpAction((DataGridView)dgvMaster, (int)DispGridColumn.PageCount, (int)DispGridColumn.sCheck);
263
            }
264
            catch (System.Exception ex)
265
            {
266
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
267
            }
268
        }
269

  
270
        /// <summary>
271
        /// ダウンキー押下処理
272
        /// </summary>
273
        /// <param name="sender"></param>
274
        /// <param name="e"></param>
275
        private void btnDispDown_Click(object sender, EventArgs e)
276
        {
277
            try
278
            {
279
                // グリッドダウンキー処理
280
                DataGridViewAction.GridRowDownAction((DataGridView)dgvMaster, (int)DispGridColumn.PageCount, (int)DispGridColumn.sCheck);
281
            }
282
            catch (System.Exception ex)
283
            {
284
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
285
            }
286
        }
287

  
288
        /// <summary>
289
        /// 工種コンボボックス選択変化時
290
        /// </summary>
291
        /// <param name="sender"></param>
292
        /// <param name="e"></param>
293
        private void cmbItemType_SelectedIndexChanged(object sender, EventArgs e)
294
        {
295
            if (m_bEventStop) return;
296

  
297
            try
298
            {
299
                // グリッド一覧表示処理
300
                GridListDisplay();
301
            }
302
            catch (Exception ex)
... 差分の行数が表示可能な上限を超えました。超過分は表示しません。

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