프로젝트

일반

사용자정보

개정판 1a379be0

ID1a379be0f039b0c3fc8875d5a2802ddcd100dd2f
상위 4b6b7319
하위 62848390, c8f04a65, c6503eaa

gaqhf 이(가) 3년 이상 전에 추가함

dev issue #000 : dev

Change-Id: Ibb762691f7bc5fd454affb242533697be809ec8f

차이점 보기:

DTI_PID/ID2PSN/Form/MainForm.Designer.cs
38 38
            this.btnRun = new DevExpress.XtraEditors.SimpleButton();
39 39
            this.btnTopologySetting = new DevExpress.XtraEditors.SimpleButton();
40 40
            this.btnHeaderSetting = new DevExpress.XtraEditors.SimpleButton();
41
            this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl();
42
            this.pageTopologys = new DevExpress.XtraTab.XtraTabPage();
43
            this.gridControlTopologys = new DevExpress.XtraGrid.GridControl();
44
            this.gridViewTopologys = new DevExpress.XtraGrid.Views.Grid.GridView();
41
            this.xtraTabControlPSN = new DevExpress.XtraTab.XtraTabControl();
45 42
            this.pagePSN = new DevExpress.XtraTab.XtraTabPage();
46 43
            this.gridControlPSN = new DevExpress.XtraGrid.GridControl();
47 44
            this.gridViewPSN = new DevExpress.XtraGrid.Views.Grid.GridView();
45
            this.pageTopologys = new DevExpress.XtraTab.XtraTabPage();
46
            this.gridControlTopologys = new DevExpress.XtraGrid.GridControl();
47
            this.gridViewTopologys = new DevExpress.XtraGrid.Views.Grid.GridView();
48
            this.pagePathItems = new DevExpress.XtraTab.XtraTabPage();
49
            this.gridControlPathItems = new DevExpress.XtraGrid.GridControl();
50
            this.gridViewPathItems = new DevExpress.XtraGrid.Views.Grid.GridView();
48 51
            this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
49 52
            this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
50 53
            this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
......
56 59
            this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
57 60
            this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
58 61
            this.splitterItem1 = new DevExpress.XtraLayout.SplitterItem();
62
            this.contextMenuPSN = new System.Windows.Forms.ContextMenuStrip(this.components);
63
            this.toolStripMenuItemPathItems = new System.Windows.Forms.ToolStripMenuItem();
59 64
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit();
60 65
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
61 66
            this.layoutControl1.SuspendLayout();
62
            ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
63
            this.xtraTabControl1.SuspendLayout();
64
            this.pageTopologys.SuspendLayout();
65
            ((System.ComponentModel.ISupportInitialize)(this.gridControlTopologys)).BeginInit();
66
            ((System.ComponentModel.ISupportInitialize)(this.gridViewTopologys)).BeginInit();
67
            ((System.ComponentModel.ISupportInitialize)(this.xtraTabControlPSN)).BeginInit();
68
            this.xtraTabControlPSN.SuspendLayout();
67 69
            this.pagePSN.SuspendLayout();
68 70
            ((System.ComponentModel.ISupportInitialize)(this.gridControlPSN)).BeginInit();
69 71
            ((System.ComponentModel.ISupportInitialize)(this.gridViewPSN)).BeginInit();
72
            this.pageTopologys.SuspendLayout();
73
            ((System.ComponentModel.ISupportInitialize)(this.gridControlTopologys)).BeginInit();
74
            ((System.ComponentModel.ISupportInitialize)(this.gridViewTopologys)).BeginInit();
75
            this.pagePathItems.SuspendLayout();
76
            ((System.ComponentModel.ISupportInitialize)(this.gridControlPathItems)).BeginInit();
77
            ((System.ComponentModel.ISupportInitialize)(this.gridViewPathItems)).BeginInit();
70 78
            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
71 79
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
72 80
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
......
78 86
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
79 87
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
80 88
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).BeginInit();
89
            this.contextMenuPSN.SuspendLayout();
81 90
            this.SuspendLayout();
82 91
            // 
83 92
            // ribbonControl
......
107 116
            this.layoutControl1.Controls.Add(this.btnRun);
108 117
            this.layoutControl1.Controls.Add(this.btnTopologySetting);
109 118
            this.layoutControl1.Controls.Add(this.btnHeaderSetting);
110
            this.layoutControl1.Controls.Add(this.xtraTabControl1);
119
            this.layoutControl1.Controls.Add(this.xtraTabControlPSN);
111 120
            this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
112 121
            this.layoutControl1.Location = new System.Drawing.Point(0, 32);
113 122
            this.layoutControl1.Name = "layoutControl1";
......
168 177
            this.btnHeaderSetting.Text = "Header Setting";
169 178
            this.btnHeaderSetting.Click += new System.EventHandler(this.btnHeaderSetting_Click);
170 179
            // 
171
            // xtraTabControl1
180
            // xtraTabControlPSN
172 181
            // 
173
            this.xtraTabControl1.Location = new System.Drawing.Point(272, 43);
174
            this.xtraTabControl1.Name = "xtraTabControl1";
175
            this.xtraTabControl1.SelectedTabPage = this.pagePSN;
176
            this.xtraTabControl1.Size = new System.Drawing.Size(1305, 827);
177
            this.xtraTabControl1.TabIndex = 4;
178
            this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
182
            this.xtraTabControlPSN.Location = new System.Drawing.Point(272, 43);
183
            this.xtraTabControlPSN.Name = "xtraTabControlPSN";
184
            this.xtraTabControlPSN.SelectedTabPage = this.pagePSN;
185
            this.xtraTabControlPSN.Size = new System.Drawing.Size(1305, 827);
186
            this.xtraTabControlPSN.TabIndex = 4;
187
            this.xtraTabControlPSN.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
179 188
            this.pagePSN,
180
            this.pageTopologys});
189
            this.pageTopologys,
190
            this.pagePathItems});
191
            // 
192
            // pagePSN
193
            // 
194
            this.pagePSN.Controls.Add(this.gridControlPSN);
195
            this.pagePSN.Name = "pagePSN";
196
            this.pagePSN.Size = new System.Drawing.Size(1303, 801);
197
            this.pagePSN.Text = "Pipe System Networks";
198
            // 
199
            // gridControlPSN
200
            // 
201
            this.gridControlPSN.Dock = System.Windows.Forms.DockStyle.Fill;
202
            this.gridControlPSN.Location = new System.Drawing.Point(0, 0);
203
            this.gridControlPSN.MainView = this.gridViewPSN;
204
            this.gridControlPSN.MenuManager = this.ribbonControl;
205
            this.gridControlPSN.Name = "gridControlPSN";
206
            this.gridControlPSN.Size = new System.Drawing.Size(1303, 801);
207
            this.gridControlPSN.TabIndex = 0;
208
            this.gridControlPSN.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
209
            this.gridViewPSN});
210
            // 
211
            // gridViewPSN
212
            // 
213
            this.gridViewPSN.GridControl = this.gridControlPSN;
214
            this.gridViewPSN.Name = "gridViewPSN";
215
            this.gridViewPSN.OptionsView.ShowGroupPanel = false;
216
            this.gridViewPSN.MouseDown += new System.Windows.Forms.MouseEventHandler(this.gridViewPSN_MouseDown);
217
            this.gridViewPSN.ValidatingEditor += new DevExpress.XtraEditors.Controls.BaseContainerValidateEditorEventHandler(this.gridViewPSN_ValidatingEditor);
181 218
            // 
182 219
            // pageTopologys
183 220
            // 
......
204 241
            this.gridViewTopologys.Name = "gridViewTopologys";
205 242
            this.gridViewTopologys.OptionsView.ShowGroupPanel = false;
206 243
            // 
207
            // pagePSN
244
            // pagePathItems
208 245
            // 
209
            this.pagePSN.Controls.Add(this.gridControlPSN);
210
            this.pagePSN.Name = "pagePSN";
211
            this.pagePSN.Size = new System.Drawing.Size(1303, 801);
212
            this.pagePSN.Text = "Pipe System Networks";
246
            this.pagePathItems.Controls.Add(this.gridControlPathItems);
247
            this.pagePathItems.Name = "pagePathItems";
248
            this.pagePathItems.Size = new System.Drawing.Size(1303, 801);
249
            this.pagePathItems.Text = "Path Items";
213 250
            // 
214
            // gridControlPSN
251
            // gridControlPathItems
215 252
            // 
216
            this.gridControlPSN.Dock = System.Windows.Forms.DockStyle.Fill;
217
            this.gridControlPSN.Location = new System.Drawing.Point(0, 0);
218
            this.gridControlPSN.MainView = this.gridViewPSN;
219
            this.gridControlPSN.MenuManager = this.ribbonControl;
220
            this.gridControlPSN.Name = "gridControlPSN";
221
            this.gridControlPSN.Size = new System.Drawing.Size(1303, 801);
222
            this.gridControlPSN.TabIndex = 0;
223
            this.gridControlPSN.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
224
            this.gridViewPSN});
253
            this.gridControlPathItems.Dock = System.Windows.Forms.DockStyle.Fill;
254
            this.gridControlPathItems.Location = new System.Drawing.Point(0, 0);
255
            this.gridControlPathItems.MainView = this.gridViewPathItems;
256
            this.gridControlPathItems.MenuManager = this.ribbonControl;
257
            this.gridControlPathItems.Name = "gridControlPathItems";
258
            this.gridControlPathItems.Size = new System.Drawing.Size(1303, 801);
259
            this.gridControlPathItems.TabIndex = 0;
260
            this.gridControlPathItems.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
261
            this.gridViewPathItems});
225 262
            // 
226
            // gridViewPSN
263
            // gridViewPathItems
227 264
            // 
228
            this.gridViewPSN.GridControl = this.gridControlPSN;
229
            this.gridViewPSN.Name = "gridViewPSN";
230
            this.gridViewPSN.OptionsView.ShowGroupPanel = false;
231
            this.gridViewPSN.ValidatingEditor += new DevExpress.XtraEditors.Controls.BaseContainerValidateEditorEventHandler(this.gridViewPSN_ValidatingEditor);
265
            this.gridViewPathItems.GridControl = this.gridControlPathItems;
266
            this.gridViewPathItems.Name = "gridViewPathItems";
267
            this.gridViewPathItems.OptionsView.ShowGroupPanel = false;
232 268
            // 
233 269
            // Root
234 270
            // 
......
322 358
            // 
323 359
            // layoutControlItem1
324 360
            // 
325
            this.layoutControlItem1.Control = this.xtraTabControl1;
361
            this.layoutControlItem1.Control = this.xtraTabControlPSN;
326 362
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
327 363
            this.layoutControlItem1.Name = "layoutControlItem1";
328 364
            this.layoutControlItem1.Size = new System.Drawing.Size(1309, 831);
......
336 372
            this.splitterItem1.Name = "splitterItem1";
337 373
            this.splitterItem1.Size = new System.Drawing.Size(12, 874);
338 374
            // 
375
            // contextMenuPSN
376
            // 
377
            this.contextMenuPSN.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
378
            this.toolStripMenuItemPathItems});
379
            this.contextMenuPSN.Name = "contextMenuPSN";
380
            this.contextMenuPSN.Size = new System.Drawing.Size(168, 26);
381
            // 
382
            // toolStripMenuItemPathItems
383
            // 
384
            this.toolStripMenuItemPathItems.Name = "toolStripMenuItemPathItems";
385
            this.toolStripMenuItemPathItems.Size = new System.Drawing.Size(167, 22);
386
            this.toolStripMenuItemPathItems.Text = "View PSN Details";
387
            // 
339 388
            // MainForm
340 389
            // 
341 390
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
......
350 399
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit();
351 400
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
352 401
            this.layoutControl1.ResumeLayout(false);
353
            ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit();
354
            this.xtraTabControl1.ResumeLayout(false);
355
            this.pageTopologys.ResumeLayout(false);
356
            ((System.ComponentModel.ISupportInitialize)(this.gridControlTopologys)).EndInit();
357
            ((System.ComponentModel.ISupportInitialize)(this.gridViewTopologys)).EndInit();
402
            ((System.ComponentModel.ISupportInitialize)(this.xtraTabControlPSN)).EndInit();
403
            this.xtraTabControlPSN.ResumeLayout(false);
358 404
            this.pagePSN.ResumeLayout(false);
359 405
            ((System.ComponentModel.ISupportInitialize)(this.gridControlPSN)).EndInit();
360 406
            ((System.ComponentModel.ISupportInitialize)(this.gridViewPSN)).EndInit();
407
            this.pageTopologys.ResumeLayout(false);
408
            ((System.ComponentModel.ISupportInitialize)(this.gridControlTopologys)).EndInit();
409
            ((System.ComponentModel.ISupportInitialize)(this.gridViewTopologys)).EndInit();
410
            this.pagePathItems.ResumeLayout(false);
411
            ((System.ComponentModel.ISupportInitialize)(this.gridControlPathItems)).EndInit();
412
            ((System.ComponentModel.ISupportInitialize)(this.gridViewPathItems)).EndInit();
361 413
            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
362 414
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
363 415
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
......
369 421
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
370 422
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
371 423
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).EndInit();
424
            this.contextMenuPSN.ResumeLayout(false);
372 425
            this.ResumeLayout(false);
373 426
            this.PerformLayout();
374 427

  
......
380 433
        private DevExpress.LookAndFeel.DefaultLookAndFeel defaultLookAndFeel;
381 434
        private DevExpress.XtraLayout.LayoutControl layoutControl1;
382 435
        private DevExpress.XtraLayout.LayoutControlGroup Root;
383
        private DevExpress.XtraTab.XtraTabControl xtraTabControl1;
436
        private DevExpress.XtraTab.XtraTabControl xtraTabControlPSN;
384 437
        private DevExpress.XtraTab.XtraTabPage pageTopologys;
385 438
        private DevExpress.XtraTab.XtraTabPage pagePSN;
386 439
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
......
402 455
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
403 456
        private DevExpress.XtraGrid.GridControl gridControlPSN;
404 457
        private DevExpress.XtraGrid.Views.Grid.GridView gridViewPSN;
458
        private DevExpress.XtraTab.XtraTabPage pagePathItems;
459
        private DevExpress.XtraGrid.GridControl gridControlPathItems;
460
        private DevExpress.XtraGrid.Views.Grid.GridView gridViewPathItems;
461
        private System.Windows.Forms.ContextMenuStrip contextMenuPSN;
462
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemPathItems;
405 463
    }
406 464
}
407 465

  
DTI_PID/ID2PSN/Form/MainForm.cs
48 48
            currentPSN = DB.GetDBPSN();
49 49

  
50 50
            this.Text += string.Format(" v.{0}", Assembly.GetExecutingAssembly().GetName().Version.ToString());
51
            toolStripMenuItemPathItems.Click += toolStripPathItemsClick;
51 52
        }
52 53

  
53 54
        private void showButton_Click(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
......
187 188
        {
188 189
            gridControlPSN.BeginUpdate();
189 190
            gridControlTopologys.BeginUpdate();
191
            gridControlPathItems.BeginUpdate();
190 192

  
191 193
            DataTable topologyDT = new DataTable();
192 194
            topologyDT.Columns.Add("TopologySet_OID", typeof(string));
......
239 241
                gridViewPSN.Columns["Show"].MaxWidth = 16;
240 242
            }
241 243

  
242

  
243

  
244

  
244
            #region PathItems Table
245
            DataTable pathItemsDT = new DataTable();
246
            pathItemsDT.Columns.Add("OID", typeof(string));
247
            pathItemsDT.Columns.Add("SequenceData_OID", typeof(string));
248
            pathItemsDT.Columns.Add("BranchTopologySet_OID", typeof(string));
249
            pathItemsDT.Columns.Add("PipeSystemNetwork_OID", typeof(string));
250
            pathItemsDT.Columns.Add("ITEMNAME", typeof(string));
251
            pathItemsDT.Columns.Add("ITEMTAG", typeof(string));
252
            pathItemsDT.Columns.Add("PipeLine_OID", typeof(string));
253
            pathItemsDT.Columns.Add("NPD", typeof(string));
254
            pathItemsDT.Columns.Add("PipeRun_OID", typeof(string));
255
            pathItemsDT.Columns.Add("TYPE", typeof(string));
256
            pathItemsDT.Columns.Add("PIDNAME", typeof(string));
257
            pathItemsDT.Columns.Add("TopologySet_OID", typeof(string));
258
            gridControlPathItems.DataSource = pathItemsDT;
259

  
260
            gridViewPathItems.Columns["SequenceData_OID"].Caption = "PathItem ID";
261
            gridViewPathItems.Columns["BranchTopologySet_OID"].Caption = "Branch Topology ID";
262
            gridViewPathItems.Columns["PipeSystemNetwork_OID"].Caption = "PSN OID";
263
            gridViewPathItems.Columns["ITEMNAME"].Caption = "Item Name";
264
            gridViewPathItems.Columns["ITEMTAG"].Caption = "Item Tag";
265
            gridViewPathItems.Columns["PipeLine_OID"].Caption = "PipeLine ID";
266
            gridViewPathItems.Columns["PipeRun_OID"].Caption = "PipeRun ID";
267
            gridViewPathItems.Columns["TYPE"].Caption = "Type";
268
            gridViewPathItems.Columns["PIDNAME"].Caption = "PID Drawing";
269
            gridViewPathItems.Columns["TopologySet_OID"].Caption = "Topology ID";
270
            #endregion
245 271

  
246 272
            gridControlPSN.EndUpdate();
247 273
            gridControlTopologys.EndUpdate();
274
            gridControlPathItems.EndUpdate();
248 275
        }
249 276

  
250 277
        private void SetDataTable(DataTable topologySetDT, DataTable pathItemDT, DataTable psnDT)
......
311 338
            }
312 339

  
313 340

  
314

  
315

  
316 341
            gridControlPSN.EndUpdate();
317 342
            gridControlTopologys.EndUpdate();
318 343
        }
......
386 411
                }
387 412
            }
388 413
        }
414

  
415
        private void gridViewPSN_MouseDown(object sender, MouseEventArgs e)
416
        {
417
            if (e.Button == MouseButtons.Right)
418
            {
419
                int handle = gridViewPSN.CalcHitInfo(e.X, e.Y).RowHandle;
420
                if (handle >= 0)
421
                {
422
                    string oid = gridViewPSN.GetRowCellDisplayText(handle, "OID");
423
                    toolStripMenuItemPathItems.Tag = oid;
424
                    contextMenuPSN.Show(gridControlPSN, e.X, e.Y);
425
                    
426
                }
427
            }
428
        }
429
        private void toolStripPathItemsClick(object sender, EventArgs e)
430
        {
431
            gridControlPathItems.BeginUpdate();
432
            DataTable gridDT = gridControlPathItems.DataSource as DataTable;
433
            gridDT.Rows.Clear();
434
            DataTable dataDT = currentPSN.PathItems;
435
            DataRow[] rows = dataDT.Select(string.Format("PipeSystemNetwork_OID = '{0}'",toolStripMenuItemPathItems.Tag));
436
            foreach (DataRow row in rows)
437
            {
438
                DataRow newRow = gridDT.NewRow();
439
                foreach (DataColumn column in dataDT.Columns)
440
                    if (gridDT.Columns[column.ColumnName] != null)
441
                        newRow[column.ColumnName] = row[column.ColumnName];
442
                gridDT.Rows.Add(newRow);
443
            }
444
            gridControlPathItems.EndUpdate();
445
            pagePathItems.Text = string.Format("Path Items - {0}", toolStripMenuItemPathItems.Tag);
446
            xtraTabControlPSN.SelectedTabPage = pagePathItems;
447
        }
389 448
    }
390 449
}
DTI_PID/ID2PSN/Form/MainForm.resx
212 212
        /Ix9FP//MSTpv2J38/BO1NSOAAAAAElFTkSuQmCC
213 213
</value>
214 214
  </data>
215
  <metadata name="contextMenuPSN.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
216
    <value>179, 17</value>
217
  </metadata>
215 218
</root>
DTI_PID/ID2PSN/PSN.cs
674 674
            pathItemsDT.Columns.Add("NPD", typeof(string));
675 675
            pathItemsDT.Columns.Add("PipeSystemNetwork_OID", typeof(string));
676 676
            pathItemsDT.Columns.Add("PipeRun_OID", typeof(string));
677
            pathItemsDT.Columns.Add("Show", typeof(string));
678 677

  
679 678
            DataTable sequenceDataDT = new DataTable();
680 679
            sequenceDataDT.Columns.Add("OID", typeof(string));

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)