개정판 f2a63376
issue #000: No Pocket, Air Fin Cooler Setting 창 요구사항 대로 재구성
Change-Id: I6de10a1d28fa35ddc15935d9b1118148bbbb2ef1
DTI_PID/ID2PSN/DB.cs | ||
---|---|---|
38 | 38 |
|
39 | 39 |
//2022.02.03 추가 |
40 | 40 |
const string PSN_NOPOCKETSETTING = "T_PSN_NOPOCKET_SETTING"; |
41 |
const string PSN_AIRFINCOOLERSETTING = "T_PSN_AIRFINCOOLER_SETTING"; |
|
41 | 42 |
/// <summary> |
42 | 43 |
/// ID2 Project.db 데이터를 가져온다. |
43 | 44 |
/// DB 접속 정보 및 DBType (Sqlite, Mssql) 정보를 가져옴 |
... | ... | |
493 | 494 |
AddColumn(PSN_NOPOCKETSETTING, dicColCheck); |
494 | 495 |
} |
495 | 496 |
|
497 |
matched = names.FirstOrDefault(param => param == PSN_AIRFINCOOLERSETTING); |
|
498 |
dicColCheck.Clear(); |
|
499 |
dicColCheck.Add("[INDEX]", "INTEGER"); |
|
500 |
dicColCheck.Add("[TYPE]", "TEXT"); |
|
501 |
dicColCheck.Add("[NAME]", "TEXT"); |
|
502 |
if (matched == null) |
|
503 |
{ |
|
504 |
var query = $"CREATE TABLE {PSN_AIRFINCOOLERSETTING} ([INDEX] INTEGER, [TYPE] TEXT, [NAME] TEXT)"; |
|
505 |
using (var cmd = connection.GetSqlStringCommand(query)) |
|
506 |
{ |
|
507 |
cmd.ExecuteNonQuery(); |
|
508 |
} |
|
509 |
} |
|
510 |
else |
|
511 |
{ |
|
512 |
AddColumn(PSN_AIRFINCOOLERSETTING, dicColCheck); |
|
513 |
} |
|
514 |
|
|
496 | 515 |
|
497 | 516 |
void AddColumn(string TableName, Dictionary<string, string> dicCol) |
498 | 517 |
{ |
... | ... | |
1137 | 1156 |
return dt; |
1138 | 1157 |
} |
1139 | 1158 |
|
1159 |
public static DataTable SelectAirFinCoolerSetting() |
|
1160 |
{ |
|
1161 |
DataTable dt = null; |
|
1162 |
ID2Info id2Info = ID2Info.GetInstance(); |
|
1163 |
|
|
1164 |
using (IAbstractDatabase connection = id2Info.CreateConnection()) |
|
1165 |
{ |
|
1166 |
try |
|
1167 |
{ |
|
1168 |
var query = $@"SELECT [INDEX], [TYPE], [NAME] FROM {PSN_AIRFINCOOLERSETTING};"; |
|
1169 |
using (var ds = connection.ExecuteDataSet(connection.GetSqlStringCommand(query))) |
|
1170 |
{ |
|
1171 |
dt = ds.Tables[0].Copy(); |
|
1172 |
} |
|
1173 |
} |
|
1174 |
catch (Exception ex) |
|
1175 |
{ |
|
1176 |
Log.Write(ex.Message + "\r\n" + ex.StackTrace); |
|
1177 |
} |
|
1178 |
} |
|
1179 |
|
|
1180 |
return dt; |
|
1181 |
} |
|
1182 |
|
|
1140 | 1183 |
public static bool SaveHeaderSetting(List<HeaderInfo> headerInfos) |
1141 | 1184 |
{ |
1142 | 1185 |
ID2Info id2Info = ID2Info.GetInstance(); |
... | ... | |
1322 | 1365 |
return true; |
1323 | 1366 |
} |
1324 | 1367 |
|
1368 |
public static bool SaveAirFinCoolerSetting(List<EquipmentAirFinCoolerItem> keywordItems) |
|
1369 |
{ |
|
1370 |
ID2Info id2Info = ID2Info.GetInstance(); |
|
1371 |
using (IAbstractDatabase connection = id2Info.CreateConnection()) |
|
1372 |
{ |
|
1373 |
using (var txn = connection.BeginTransaction()) |
|
1374 |
{ |
|
1375 |
try |
|
1376 |
{ |
|
1377 |
var query = $"DELETE FROM {PSN_AIRFINCOOLERSETTING}"; |
|
1378 |
connection.ExecuteNonQuery(connection.GetSqlStringCommand(query), txn); |
|
1379 |
|
|
1380 |
foreach (EquipmentAirFinCoolerItem item in keywordItems) |
|
1381 |
{ |
|
1382 |
query = $"INSERT INTO {PSN_AIRFINCOOLERSETTING} ([INDEX], [TYPE], [NAME]) VALUES (@INDEX, @TYPE, @NAME)"; |
|
1383 |
var cmd = connection.GetSqlStringCommand(query); |
|
1384 |
AddWithValue(cmd, "@INDEX", item.Index); |
|
1385 |
AddWithValue(cmd, "@TYPE", item.Type); |
|
1386 |
AddWithValue(cmd, "@NAME", item.Name); |
|
1387 |
connection.ExecuteNonQuery(cmd, txn); |
|
1388 |
} |
|
1389 |
|
|
1390 |
txn.Commit(); |
|
1391 |
} |
|
1392 |
catch (Exception ex) |
|
1393 |
{ |
|
1394 |
Log.Write(ex.Message + "\r\n" + ex.StackTrace); |
|
1395 |
return false; |
|
1396 |
} |
|
1397 |
} |
|
1398 |
} |
|
1399 |
|
|
1400 |
return true; |
|
1401 |
} |
|
1402 |
|
|
1325 | 1403 |
public static bool SaveTopologyRule(DataTable dt) |
1326 | 1404 |
{ |
1327 | 1405 |
ID2Info id2Info = ID2Info.GetInstance(); |
... | ... | |
2899 | 2977 |
AddColumn(PSN_NOPOCKETSETTING, dicColCheck); |
2900 | 2978 |
} |
2901 | 2979 |
|
2980 |
matched = names.FirstOrDefault(param => param == PSN_AIRFINCOOLERSETTING); |
|
2981 |
dicColCheck.Clear(); |
|
2982 |
dicColCheck.Add("[INDEX]", "INTEGER"); |
|
2983 |
dicColCheck.Add("[TYPE]", "TEXT"); |
|
2984 |
dicColCheck.Add("[NAME]", "TEXT"); |
|
2985 |
if (matched == null) |
|
2986 |
{ |
|
2987 |
var query = $"CREATE TABLE {PSN_AIRFINCOOLERSETTING} ([INDEX] INTEGER, [TYPE] TEXT, [NAME] TEXT)"; |
|
2988 |
using (var cmd = connection.GetSqlStringCommand(query)) |
|
2989 |
{ |
|
2990 |
cmd.ExecuteNonQuery(); |
|
2991 |
} |
|
2992 |
} |
|
2993 |
else |
|
2994 |
{ |
|
2995 |
AddColumn(PSN_AIRFINCOOLERSETTING, dicColCheck); |
|
2996 |
} |
|
2997 |
|
|
2998 |
|
|
2902 | 2999 |
var query2 = $"If(db_id(N'" + PSN_COMMON + "') IS NULL) CREATE DATABASE [" + PSN_COMMON + "]"; |
2903 | 3000 |
if (id2Info.ID2DBType == AnotherID2DB_Type.MSSQL) |
2904 | 3001 |
{ |
... | ... | |
3613 | 3710 |
connection.ExecuteNonQuery(cmd, txn); |
3614 | 3711 |
} |
3615 | 3712 |
|
3713 |
//air fin cooler Setting |
|
3714 |
query = $"DELETE FROM {PSN_AIRFINCOOLERSETTING}"; |
|
3715 |
connection.ExecuteNonQuery(connection.GetSqlStringCommand(query), txn); |
|
3716 |
|
|
3717 |
foreach (DataRow row in dtnopocket.Rows) |
|
3718 |
{ |
|
3719 |
query = $"INSERT INTO {PSN_AIRFINCOOLERSETTING} ([INDEX], [TYPE], [NAME]) VALUES (@INDEX, @TYPE, @NAME)"; |
|
3720 |
var cmd = connection.GetSqlStringCommand(query); |
|
3721 |
AddWithValue(cmd, "@INDEX", row["INDEX"].ToString()); |
|
3722 |
AddWithValue(cmd, "@TYPE", row["TYPE"].ToString()); |
|
3723 |
AddWithValue(cmd, "@NAME", row["NAME"].ToString()); |
|
3724 |
connection.ExecuteNonQuery(cmd, txn); |
|
3725 |
} |
|
3726 |
|
|
3727 |
|
|
3616 | 3728 |
txn.Commit(); |
3617 | 3729 |
} |
3618 | 3730 |
catch (Exception ex) |
DTI_PID/ID2PSN/Form/EquipmentNoPocketSetting.Designer.cs | ||
---|---|---|
74 | 74 |
this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False; |
75 | 75 |
this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages; |
76 | 76 |
this.ribbonControl.ShowToolbarCustomizeItem = false; |
77 |
this.ribbonControl.Size = new System.Drawing.Size(623, 32);
|
|
77 |
this.ribbonControl.Size = new System.Drawing.Size(631, 32);
|
|
78 | 78 |
this.ribbonControl.Toolbar.ShowCustomizeItem = false; |
79 | 79 |
// |
80 | 80 |
// layoutControl1 |
... | ... | |
88 | 88 |
this.layoutControl1.Name = "layoutControl1"; |
89 | 89 |
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(488, 408, 650, 400); |
90 | 90 |
this.layoutControl1.Root = this.Root; |
91 |
this.layoutControl1.Size = new System.Drawing.Size(623, 639);
|
|
91 |
this.layoutControl1.Size = new System.Drawing.Size(631, 643);
|
|
92 | 92 |
this.layoutControl1.TabIndex = 1; |
93 | 93 |
this.layoutControl1.Text = "layoutControl1"; |
94 | 94 |
// |
... | ... | |
98 | 98 |
this.gridEquipment.MainView = this.gridViewEquipment; |
99 | 99 |
this.gridEquipment.MenuManager = this.ribbonControl; |
100 | 100 |
this.gridEquipment.Name = "gridEquipment"; |
101 |
this.gridEquipment.Size = new System.Drawing.Size(575, 506);
|
|
101 |
this.gridEquipment.Size = new System.Drawing.Size(583, 510);
|
|
102 | 102 |
this.gridEquipment.TabIndex = 4; |
103 | 103 |
this.gridEquipment.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
104 | 104 |
this.gridViewEquipment}); |
... | ... | |
112 | 112 |
// btnClose |
113 | 113 |
// |
114 | 114 |
this.btnClose.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.ImageOptions.Image"))); |
115 |
this.btnClose.Location = new System.Drawing.Point(541, 591);
|
|
115 |
this.btnClose.Location = new System.Drawing.Point(549, 595);
|
|
116 | 116 |
this.btnClose.Name = "btnClose"; |
117 | 117 |
this.btnClose.Size = new System.Drawing.Size(70, 36); |
118 | 118 |
this.btnClose.StyleController = this.layoutControl1; |
... | ... | |
123 | 123 |
// btnSave |
124 | 124 |
// |
125 | 125 |
this.btnSave.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.ImageOptions.Image"))); |
126 |
this.btnSave.Location = new System.Drawing.Point(449, 591);
|
|
126 |
this.btnSave.Location = new System.Drawing.Point(457, 595);
|
|
127 | 127 |
this.btnSave.Name = "btnSave"; |
128 | 128 |
this.btnSave.Size = new System.Drawing.Size(68, 36); |
129 | 129 |
this.btnSave.StyleController = this.layoutControl1; |
... | ... | |
133 | 133 |
// |
134 | 134 |
// btnAddValveGroup |
135 | 135 |
// |
136 |
this.btnAddValveGroup.Location = new System.Drawing.Point(472, 43);
|
|
136 |
this.btnAddValveGroup.Location = new System.Drawing.Point(478, 43);
|
|
137 | 137 |
this.btnAddValveGroup.Name = "btnAddValveGroup"; |
138 |
this.btnAddValveGroup.Size = new System.Drawing.Size(127, 22);
|
|
138 |
this.btnAddValveGroup.Size = new System.Drawing.Size(129, 22);
|
|
139 | 139 |
this.btnAddValveGroup.StyleController = this.layoutControl1; |
140 | 140 |
this.btnAddValveGroup.TabIndex = 2; |
141 | 141 |
this.btnAddValveGroup.Text = " Add Equipment"; |
... | ... | |
152 | 152 |
this.emptySpaceItem2, |
153 | 153 |
this.layoutControlGroup2}); |
154 | 154 |
this.Root.Name = "Root"; |
155 |
this.Root.Size = new System.Drawing.Size(623, 639);
|
|
155 |
this.Root.Size = new System.Drawing.Size(631, 643);
|
|
156 | 156 |
this.Root.TextVisible = false; |
157 | 157 |
// |
158 | 158 |
// emptySpaceItem3 |
159 | 159 |
// |
160 | 160 |
this.emptySpaceItem3.AllowHotTrack = false; |
161 |
this.emptySpaceItem3.Location = new System.Drawing.Point(0, 579);
|
|
161 |
this.emptySpaceItem3.Location = new System.Drawing.Point(0, 583);
|
|
162 | 162 |
this.emptySpaceItem3.Name = "emptySpaceItem3"; |
163 |
this.emptySpaceItem3.Size = new System.Drawing.Size(437, 40);
|
|
163 |
this.emptySpaceItem3.Size = new System.Drawing.Size(445, 40);
|
|
164 | 164 |
this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); |
165 | 165 |
// |
166 | 166 |
// layoutControlItem4 |
167 | 167 |
// |
168 | 168 |
this.layoutControlItem4.Control = this.btnSave; |
169 |
this.layoutControlItem4.Location = new System.Drawing.Point(437, 579);
|
|
169 |
this.layoutControlItem4.Location = new System.Drawing.Point(445, 583);
|
|
170 | 170 |
this.layoutControlItem4.MaxSize = new System.Drawing.Size(72, 40); |
171 | 171 |
this.layoutControlItem4.MinSize = new System.Drawing.Size(72, 40); |
172 | 172 |
this.layoutControlItem4.Name = "layoutControlItem4"; |
... | ... | |
178 | 178 |
// layoutControlItem5 |
179 | 179 |
// |
180 | 180 |
this.layoutControlItem5.Control = this.btnClose; |
181 |
this.layoutControlItem5.Location = new System.Drawing.Point(529, 579);
|
|
181 |
this.layoutControlItem5.Location = new System.Drawing.Point(537, 583);
|
|
182 | 182 |
this.layoutControlItem5.MaxSize = new System.Drawing.Size(74, 40); |
183 | 183 |
this.layoutControlItem5.MinSize = new System.Drawing.Size(74, 40); |
184 | 184 |
this.layoutControlItem5.Name = "layoutControlItem5"; |
... | ... | |
190 | 190 |
// emptySpaceItem2 |
191 | 191 |
// |
192 | 192 |
this.emptySpaceItem2.AllowHotTrack = false; |
193 |
this.emptySpaceItem2.Location = new System.Drawing.Point(509, 579);
|
|
193 |
this.emptySpaceItem2.Location = new System.Drawing.Point(517, 583);
|
|
194 | 194 |
this.emptySpaceItem2.MaxSize = new System.Drawing.Size(20, 40); |
195 | 195 |
this.emptySpaceItem2.MinSize = new System.Drawing.Size(20, 40); |
196 | 196 |
this.emptySpaceItem2.Name = "emptySpaceItem2"; |
... | ... | |
207 | 207 |
this.emptySpaceItem1}); |
208 | 208 |
this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0); |
209 | 209 |
this.layoutControlGroup2.Name = "layoutControlGroup2"; |
210 |
this.layoutControlGroup2.Size = new System.Drawing.Size(603, 579);
|
|
210 |
this.layoutControlGroup2.Size = new System.Drawing.Size(611, 583);
|
|
211 | 211 |
this.layoutControlGroup2.Text = "Equipment No Pocket Items"; |
212 | 212 |
// |
213 | 213 |
// layoutControlItem6 |
... | ... | |
215 | 215 |
this.layoutControlItem6.Control = this.gridEquipment; |
216 | 216 |
this.layoutControlItem6.Location = new System.Drawing.Point(0, 26); |
217 | 217 |
this.layoutControlItem6.Name = "layoutControlItem6"; |
218 |
this.layoutControlItem6.Size = new System.Drawing.Size(579, 510);
|
|
218 |
this.layoutControlItem6.Size = new System.Drawing.Size(587, 514);
|
|
219 | 219 |
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); |
220 | 220 |
this.layoutControlItem6.TextVisible = false; |
221 | 221 |
// |
222 | 222 |
// layoutControlItem3 |
223 | 223 |
// |
224 | 224 |
this.layoutControlItem3.Control = this.btnAddValveGroup; |
225 |
this.layoutControlItem3.Location = new System.Drawing.Point(448, 0);
|
|
225 |
this.layoutControlItem3.Location = new System.Drawing.Point(454, 0);
|
|
226 | 226 |
this.layoutControlItem3.Name = "layoutControlItem3"; |
227 |
this.layoutControlItem3.Size = new System.Drawing.Size(131, 26);
|
|
227 |
this.layoutControlItem3.Size = new System.Drawing.Size(133, 26);
|
|
228 | 228 |
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); |
229 | 229 |
this.layoutControlItem3.TextVisible = false; |
230 | 230 |
// |
... | ... | |
233 | 233 |
this.emptySpaceItem1.AllowHotTrack = false; |
234 | 234 |
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 0); |
235 | 235 |
this.emptySpaceItem1.Name = "emptySpaceItem1"; |
236 |
this.emptySpaceItem1.Size = new System.Drawing.Size(448, 26);
|
|
236 |
this.emptySpaceItem1.Size = new System.Drawing.Size(454, 26);
|
|
237 | 237 |
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); |
238 | 238 |
// |
239 | 239 |
// EquipmentNoPocketSetting |
240 | 240 |
// |
241 | 241 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); |
242 | 242 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
243 |
this.ClientSize = new System.Drawing.Size(623, 671);
|
|
243 |
this.ClientSize = new System.Drawing.Size(631, 675);
|
|
244 | 244 |
this.Controls.Add(this.layoutControl1); |
245 | 245 |
this.Controls.Add(this.ribbonControl); |
246 | 246 |
this.Name = "EquipmentNoPocketSetting"; |
DTI_PID/ID2PSN/Form/EquipmentSetting.Designer.cs | ||
---|---|---|
1 |
namespace ID2PSN |
|
2 |
{ |
|
3 |
partial class EquipmentSetting |
|
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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EquipmentSetting)); |
|
32 |
this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl(); |
|
33 |
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
|
34 |
this.btnClose = new DevExpress.XtraEditors.SimpleButton(); |
|
35 |
this.btnSave = new DevExpress.XtraEditors.SimpleButton(); |
|
36 |
this.xtraTabControlSetting = new DevExpress.XtraTab.XtraTabControl(); |
|
37 |
this.xtraTabPageNoPocket = new DevExpress.XtraTab.XtraTabPage(); |
|
38 |
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); |
|
39 |
this.gridEquipment = new DevExpress.XtraGrid.GridControl(); |
|
40 |
this.gridViewEquipment = new DevExpress.XtraGrid.Views.Grid.GridView(); |
|
41 |
this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); |
|
42 |
this.xtraTabPageAirPinCooler = new DevExpress.XtraTab.XtraTabPage(); |
|
43 |
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); |
|
44 |
this.gridControlAirFinCooler = new DevExpress.XtraGrid.GridControl(); |
|
45 |
this.gridViewAirFinCooler = new DevExpress.XtraGrid.Views.Grid.GridView(); |
|
46 |
this.btnAddValveGroup = new DevExpress.XtraEditors.SimpleButton(); |
|
47 |
this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
48 |
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
49 |
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
50 |
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
51 |
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); |
|
52 |
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); |
|
53 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); |
|
54 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); |
|
55 |
this.layoutControl1.SuspendLayout(); |
|
56 |
((System.ComponentModel.ISupportInitialize)(this.xtraTabControlSetting)).BeginInit(); |
|
57 |
this.xtraTabControlSetting.SuspendLayout(); |
|
58 |
this.xtraTabPageNoPocket.SuspendLayout(); |
|
59 |
this.tableLayoutPanel1.SuspendLayout(); |
|
60 |
((System.ComponentModel.ISupportInitialize)(this.gridEquipment)).BeginInit(); |
|
61 |
((System.ComponentModel.ISupportInitialize)(this.gridViewEquipment)).BeginInit(); |
|
62 |
this.xtraTabPageAirPinCooler.SuspendLayout(); |
|
63 |
this.tableLayoutPanel2.SuspendLayout(); |
|
64 |
((System.ComponentModel.ISupportInitialize)(this.gridControlAirFinCooler)).BeginInit(); |
|
65 |
((System.ComponentModel.ISupportInitialize)(this.gridViewAirFinCooler)).BeginInit(); |
|
66 |
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); |
|
67 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); |
|
68 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); |
|
69 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); |
|
70 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); |
|
71 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); |
|
72 |
this.SuspendLayout(); |
|
73 |
// |
|
74 |
// ribbonControl |
|
75 |
// |
|
76 |
this.ribbonControl.ExpandCollapseItem.Id = 0; |
|
77 |
this.ribbonControl.Items.AddRange(new DevExpress.XtraBars.BarItem[] { |
|
78 |
this.ribbonControl.ExpandCollapseItem, |
|
79 |
this.ribbonControl.SearchEditItem}); |
|
80 |
this.ribbonControl.Location = new System.Drawing.Point(0, 0); |
|
81 |
this.ribbonControl.MaxItemId = 1; |
|
82 |
this.ribbonControl.Name = "ribbonControl"; |
|
83 |
this.ribbonControl.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; |
|
84 |
this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False; |
|
85 |
this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages; |
|
86 |
this.ribbonControl.ShowToolbarCustomizeItem = false; |
|
87 |
this.ribbonControl.Size = new System.Drawing.Size(626, 32); |
|
88 |
this.ribbonControl.Toolbar.ShowCustomizeItem = false; |
|
89 |
// |
|
90 |
// layoutControl1 |
|
91 |
// |
|
92 |
this.layoutControl1.Controls.Add(this.btnClose); |
|
93 |
this.layoutControl1.Controls.Add(this.btnSave); |
|
94 |
this.layoutControl1.Controls.Add(this.xtraTabControlSetting); |
|
95 |
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; |
|
96 |
this.layoutControl1.Location = new System.Drawing.Point(0, 32); |
|
97 |
this.layoutControl1.Name = "layoutControl1"; |
|
98 |
this.layoutControl1.OptionsView.UseDefaultDragAndDropRendering = false; |
|
99 |
this.layoutControl1.Root = this.Root; |
|
100 |
this.layoutControl1.Size = new System.Drawing.Size(626, 678); |
|
101 |
this.layoutControl1.TabIndex = 1; |
|
102 |
this.layoutControl1.Text = "layoutControl1"; |
|
103 |
// |
|
104 |
// btnClose |
|
105 |
// |
|
106 |
this.btnClose.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.ImageOptions.Image"))); |
|
107 |
this.btnClose.Location = new System.Drawing.Point(544, 630); |
|
108 |
this.btnClose.Name = "btnClose"; |
|
109 |
this.btnClose.Size = new System.Drawing.Size(70, 36); |
|
110 |
this.btnClose.StyleController = this.layoutControl1; |
|
111 |
this.btnClose.TabIndex = 6; |
|
112 |
this.btnClose.Text = "Close"; |
|
113 |
this.btnClose.Click += new System.EventHandler(this.btnClose_Click); |
|
114 |
// |
|
115 |
// btnSave |
|
116 |
// |
|
117 |
this.btnSave.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.ImageOptions.Image"))); |
|
118 |
this.btnSave.Location = new System.Drawing.Point(452, 630); |
|
119 |
this.btnSave.Name = "btnSave"; |
|
120 |
this.btnSave.Size = new System.Drawing.Size(68, 36); |
|
121 |
this.btnSave.StyleController = this.layoutControl1; |
|
122 |
this.btnSave.TabIndex = 5; |
|
123 |
this.btnSave.Text = "Save"; |
|
124 |
this.btnSave.Click += new System.EventHandler(this.btnSave_Click); |
|
125 |
// |
|
126 |
// xtraTabControlSetting |
|
127 |
// |
|
128 |
this.xtraTabControlSetting.Location = new System.Drawing.Point(12, 12); |
|
129 |
this.xtraTabControlSetting.Name = "xtraTabControlSetting"; |
|
130 |
this.xtraTabControlSetting.SelectedTabPage = this.xtraTabPageNoPocket; |
|
131 |
this.xtraTabControlSetting.Size = new System.Drawing.Size(602, 614); |
|
132 |
this.xtraTabControlSetting.TabIndex = 4; |
|
133 |
this.xtraTabControlSetting.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { |
|
134 |
this.xtraTabPageNoPocket, |
|
135 |
this.xtraTabPageAirPinCooler}); |
|
136 |
// |
|
137 |
// xtraTabPageNoPocket |
|
138 |
// |
|
139 |
this.xtraTabPageNoPocket.Controls.Add(this.tableLayoutPanel1); |
|
140 |
this.xtraTabPageNoPocket.Name = "xtraTabPageNoPocket"; |
|
141 |
this.xtraTabPageNoPocket.Size = new System.Drawing.Size(600, 588); |
|
142 |
this.xtraTabPageNoPocket.Text = "Equipment for No pocket"; |
|
143 |
// |
|
144 |
// tableLayoutPanel1 |
|
145 |
// |
|
146 |
this.tableLayoutPanel1.ColumnCount = 1; |
|
147 |
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); |
|
148 |
this.tableLayoutPanel1.Controls.Add(this.gridEquipment, 0, 1); |
|
149 |
this.tableLayoutPanel1.Controls.Add(this.simpleButton1, 0, 0); |
|
150 |
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; |
|
151 |
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); |
|
152 |
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; |
|
153 |
this.tableLayoutPanel1.RowCount = 2; |
|
154 |
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); |
|
155 |
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 556F)); |
|
156 |
this.tableLayoutPanel1.Size = new System.Drawing.Size(600, 588); |
|
157 |
this.tableLayoutPanel1.TabIndex = 1; |
|
158 |
// |
|
159 |
// gridEquipment |
|
160 |
// |
|
161 |
this.gridEquipment.Dock = System.Windows.Forms.DockStyle.Fill; |
|
162 |
this.gridEquipment.Location = new System.Drawing.Point(3, 35); |
|
163 |
this.gridEquipment.MainView = this.gridViewEquipment; |
|
164 |
this.gridEquipment.MenuManager = this.ribbonControl; |
|
165 |
this.gridEquipment.Name = "gridEquipment"; |
|
166 |
this.gridEquipment.Size = new System.Drawing.Size(594, 550); |
|
167 |
this.gridEquipment.TabIndex = 5; |
|
168 |
this.gridEquipment.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
|
169 |
this.gridViewEquipment}); |
|
170 |
// |
|
171 |
// gridViewEquipment |
|
172 |
// |
|
173 |
this.gridViewEquipment.GridControl = this.gridEquipment; |
|
174 |
this.gridViewEquipment.Name = "gridViewEquipment"; |
|
175 |
this.gridViewEquipment.OptionsView.ShowGroupPanel = false; |
|
176 |
// |
|
177 |
// simpleButton1 |
|
178 |
// |
|
179 |
this.simpleButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
180 |
this.simpleButton1.Location = new System.Drawing.Point(487, 3); |
|
181 |
this.simpleButton1.Name = "simpleButton1"; |
|
182 |
this.simpleButton1.Size = new System.Drawing.Size(110, 22); |
|
183 |
this.simpleButton1.StyleController = this.layoutControl1; |
|
184 |
this.simpleButton1.TabIndex = 3; |
|
185 |
this.simpleButton1.Text = " Add Symbol"; |
|
186 |
this.simpleButton1.Click += new System.EventHandler(this.btnAddSymbol_Click); |
|
187 |
// |
|
188 |
// xtraTabPageAirPinCooler |
|
189 |
// |
|
190 |
this.xtraTabPageAirPinCooler.Controls.Add(this.tableLayoutPanel2); |
|
191 |
this.xtraTabPageAirPinCooler.Name = "xtraTabPageAirPinCooler"; |
|
192 |
this.xtraTabPageAirPinCooler.Size = new System.Drawing.Size(600, 588); |
|
193 |
this.xtraTabPageAirPinCooler.Text = "Equipment Grouping Tag"; |
|
194 |
// |
|
195 |
// tableLayoutPanel2 |
|
196 |
// |
|
197 |
this.tableLayoutPanel2.ColumnCount = 1; |
|
198 |
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); |
|
199 |
this.tableLayoutPanel2.Controls.Add(this.gridControlAirFinCooler, 0, 1); |
|
200 |
this.tableLayoutPanel2.Controls.Add(this.btnAddValveGroup, 0, 0); |
|
201 |
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; |
|
202 |
this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0); |
|
203 |
this.tableLayoutPanel2.Name = "tableLayoutPanel2"; |
|
204 |
this.tableLayoutPanel2.RowCount = 2; |
|
205 |
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.965754F)); |
|
206 |
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 95.03425F)); |
|
207 |
this.tableLayoutPanel2.Size = new System.Drawing.Size(600, 588); |
|
208 |
this.tableLayoutPanel2.TabIndex = 1; |
|
209 |
// |
|
210 |
// gridControlAirFinCooler |
|
211 |
// |
|
212 |
this.gridControlAirFinCooler.Dock = System.Windows.Forms.DockStyle.Fill; |
|
213 |
this.gridControlAirFinCooler.Location = new System.Drawing.Point(3, 32); |
|
214 |
this.gridControlAirFinCooler.MainView = this.gridViewAirFinCooler; |
|
215 |
this.gridControlAirFinCooler.MenuManager = this.ribbonControl; |
|
216 |
this.gridControlAirFinCooler.Name = "gridControlAirFinCooler"; |
|
217 |
this.gridControlAirFinCooler.Size = new System.Drawing.Size(594, 553); |
|
218 |
this.gridControlAirFinCooler.TabIndex = 0; |
|
219 |
this.gridControlAirFinCooler.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
|
220 |
this.gridViewAirFinCooler}); |
|
221 |
// |
|
222 |
// gridViewAirFinCooler |
|
223 |
// |
|
224 |
this.gridViewAirFinCooler.GridControl = this.gridControlAirFinCooler; |
|
225 |
this.gridViewAirFinCooler.Name = "gridViewAirFinCooler"; |
|
226 |
this.gridViewAirFinCooler.OptionsView.ShowGroupPanel = false; |
|
227 |
// |
|
228 |
// btnAddValveGroup |
|
229 |
// |
|
230 |
this.btnAddValveGroup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
231 |
this.btnAddValveGroup.Location = new System.Drawing.Point(487, 3); |
|
232 |
this.btnAddValveGroup.Name = "btnAddValveGroup"; |
|
233 |
this.btnAddValveGroup.Size = new System.Drawing.Size(110, 22); |
|
234 |
this.btnAddValveGroup.StyleController = this.layoutControl1; |
|
235 |
this.btnAddValveGroup.TabIndex = 3; |
|
236 |
this.btnAddValveGroup.Text = " Add Symbol"; |
|
237 |
this.btnAddValveGroup.Click += new System.EventHandler(this.btnAddAirSymbol_Click); |
|
238 |
// |
|
239 |
// Root |
|
240 |
// |
|
241 |
this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; |
|
242 |
this.Root.GroupBordersVisible = false; |
|
243 |
this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { |
|
244 |
this.layoutControlItem1, |
|
245 |
this.layoutControlItem2, |
|
246 |
this.layoutControlItem3, |
|
247 |
this.emptySpaceItem1, |
|
248 |
this.emptySpaceItem2}); |
|
249 |
this.Root.Name = "Root"; |
|
250 |
this.Root.Size = new System.Drawing.Size(626, 678); |
|
251 |
this.Root.TextVisible = false; |
|
252 |
// |
|
253 |
// layoutControlItem1 |
|
254 |
// |
|
255 |
this.layoutControlItem1.Control = this.xtraTabControlSetting; |
|
256 |
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); |
|
257 |
this.layoutControlItem1.Name = "layoutControlItem1"; |
|
258 |
this.layoutControlItem1.Size = new System.Drawing.Size(606, 618); |
|
259 |
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); |
|
260 |
this.layoutControlItem1.TextVisible = false; |
|
261 |
// |
|
262 |
// layoutControlItem2 |
|
263 |
// |
|
264 |
this.layoutControlItem2.Control = this.btnSave; |
|
265 |
this.layoutControlItem2.Location = new System.Drawing.Point(440, 618); |
|
266 |
this.layoutControlItem2.MaxSize = new System.Drawing.Size(72, 40); |
|
267 |
this.layoutControlItem2.MinSize = new System.Drawing.Size(72, 40); |
|
268 |
this.layoutControlItem2.Name = "layoutControlItem2"; |
|
269 |
this.layoutControlItem2.Size = new System.Drawing.Size(72, 40); |
|
270 |
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
271 |
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); |
|
272 |
this.layoutControlItem2.TextVisible = false; |
|
273 |
// |
|
274 |
// layoutControlItem3 |
|
275 |
// |
|
276 |
this.layoutControlItem3.Control = this.btnClose; |
|
277 |
this.layoutControlItem3.Location = new System.Drawing.Point(532, 618); |
|
278 |
this.layoutControlItem3.MaxSize = new System.Drawing.Size(74, 40); |
|
279 |
this.layoutControlItem3.MinSize = new System.Drawing.Size(74, 40); |
|
280 |
this.layoutControlItem3.Name = "layoutControlItem3"; |
|
281 |
this.layoutControlItem3.Size = new System.Drawing.Size(74, 40); |
|
282 |
this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
283 |
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); |
|
284 |
this.layoutControlItem3.TextVisible = false; |
|
285 |
// |
|
286 |
// emptySpaceItem1 |
|
287 |
// |
|
288 |
this.emptySpaceItem1.AllowHotTrack = false; |
|
289 |
this.emptySpaceItem1.Location = new System.Drawing.Point(512, 618); |
|
290 |
this.emptySpaceItem1.MaxSize = new System.Drawing.Size(20, 40); |
|
291 |
this.emptySpaceItem1.MinSize = new System.Drawing.Size(20, 40); |
|
292 |
this.emptySpaceItem1.Name = "emptySpaceItem1"; |
|
293 |
this.emptySpaceItem1.Size = new System.Drawing.Size(20, 40); |
|
294 |
this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
295 |
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); |
|
296 |
// |
|
297 |
// emptySpaceItem2 |
|
298 |
// |
|
299 |
this.emptySpaceItem2.AllowHotTrack = false; |
|
300 |
this.emptySpaceItem2.Location = new System.Drawing.Point(0, 618); |
|
301 |
this.emptySpaceItem2.Name = "emptySpaceItem2"; |
|
302 |
this.emptySpaceItem2.Size = new System.Drawing.Size(440, 40); |
|
303 |
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); |
|
304 |
// |
|
305 |
// EquipmentSetting |
|
306 |
// |
|
307 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); |
|
308 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|
309 |
this.ClientSize = new System.Drawing.Size(626, 710); |
|
310 |
this.Controls.Add(this.layoutControl1); |
|
311 |
this.Controls.Add(this.ribbonControl); |
|
312 |
this.Name = "EquipmentSetting"; |
|
313 |
this.Ribbon = this.ribbonControl; |
|
314 |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; |
|
315 |
this.Text = "Equipment Setting"; |
|
316 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit(); |
|
317 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); |
|
318 |
this.layoutControl1.ResumeLayout(false); |
|
319 |
((System.ComponentModel.ISupportInitialize)(this.xtraTabControlSetting)).EndInit(); |
|
320 |
this.xtraTabControlSetting.ResumeLayout(false); |
|
321 |
this.xtraTabPageNoPocket.ResumeLayout(false); |
|
322 |
this.tableLayoutPanel1.ResumeLayout(false); |
|
323 |
((System.ComponentModel.ISupportInitialize)(this.gridEquipment)).EndInit(); |
|
324 |
((System.ComponentModel.ISupportInitialize)(this.gridViewEquipment)).EndInit(); |
|
325 |
this.xtraTabPageAirPinCooler.ResumeLayout(false); |
|
326 |
this.tableLayoutPanel2.ResumeLayout(false); |
|
327 |
((System.ComponentModel.ISupportInitialize)(this.gridControlAirFinCooler)).EndInit(); |
|
328 |
((System.ComponentModel.ISupportInitialize)(this.gridViewAirFinCooler)).EndInit(); |
|
329 |
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); |
|
330 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); |
|
331 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); |
|
332 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); |
|
333 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); |
|
334 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); |
|
335 |
this.ResumeLayout(false); |
|
336 |
this.PerformLayout(); |
|
337 |
|
|
338 |
} |
|
339 |
|
|
340 |
#endregion |
|
341 |
|
|
342 |
private DevExpress.XtraBars.Ribbon.RibbonControl ribbonControl; |
|
343 |
private DevExpress.XtraLayout.LayoutControl layoutControl1; |
|
344 |
private DevExpress.XtraTab.XtraTabControl xtraTabControlSetting; |
|
345 |
private DevExpress.XtraTab.XtraTabPage xtraTabPageNoPocket; |
|
346 |
private DevExpress.XtraTab.XtraTabPage xtraTabPageAirPinCooler; |
|
347 |
private DevExpress.XtraLayout.LayoutControlGroup Root; |
|
348 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; |
|
349 |
private DevExpress.XtraEditors.SimpleButton btnClose; |
|
350 |
private DevExpress.XtraEditors.SimpleButton btnSave; |
|
351 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; |
|
352 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; |
|
353 |
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1; |
|
354 |
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2; |
|
355 |
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; |
|
356 |
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; |
|
357 |
private DevExpress.XtraEditors.SimpleButton simpleButton1; |
|
358 |
private DevExpress.XtraEditors.SimpleButton btnAddValveGroup; |
|
359 |
private DevExpress.XtraGrid.GridControl gridEquipment; |
|
360 |
private DevExpress.XtraGrid.Views.Grid.GridView gridViewEquipment; |
|
361 |
private DevExpress.XtraGrid.GridControl gridControlAirFinCooler; |
|
362 |
private DevExpress.XtraGrid.Views.Grid.GridView gridViewAirFinCooler; |
|
363 |
} |
|
364 |
} |
DTI_PID/ID2PSN/Form/EquipmentSetting.cs | ||
---|---|---|
1 |
using DevExpress.Utils.Drawing; |
|
2 |
using DevExpress.XtraEditors.Controls; |
|
3 |
using DevExpress.XtraEditors.Repository; |
|
4 |
using DevExpress.XtraGrid.Columns; |
|
5 |
using DevExpress.XtraGrid.Views.Grid; |
|
6 |
using System; |
|
7 |
using System.Collections.Generic; |
|
8 |
using System.ComponentModel; |
|
9 |
using System.Data; |
|
10 |
using System.Drawing; |
|
11 |
using System.IO; |
|
12 |
using System.Linq; |
|
13 |
using System.Text; |
|
14 |
using System.Threading.Tasks; |
|
15 |
using System.Windows.Forms; |
|
16 |
|
|
17 |
namespace ID2PSN |
|
18 |
{ |
|
19 |
public partial class EquipmentSetting : DevExpress.XtraBars.Ribbon.RibbonForm |
|
20 |
{ |
|
21 |
ID2Info ID2Info = ID2Info.GetInstance(); |
|
22 |
List<EquipmentNoPocketInfo> EquipmentNoPocketInfos = new List<EquipmentNoPocketInfo>(); |
|
23 |
EquipmentNoPocketInfo currentEquipmentNoPocketInfo = null; |
|
24 |
private RepositoryItemComboBox repositoryGroupType = new RepositoryItemComboBox(); |
|
25 |
|
|
26 |
List<EquipmentAirFinCoolerInfo> EquipmentAirFinCoolerInfos = new List<EquipmentAirFinCoolerInfo>(); |
|
27 |
EquipmentAirFinCoolerInfo currentEquipmentAirFinCoolerInfo = null; |
|
28 |
private RepositoryItemComboBox repositoryGroupType2 = new RepositoryItemComboBox(); |
|
29 |
|
|
30 |
public EquipmentSetting() |
|
31 |
{ |
|
32 |
InitializeComponent(); |
|
33 |
|
|
34 |
InitGridEquipmentNoPocket(); |
|
35 |
InitGridEquipmentAirFinCooler(); |
|
36 |
|
|
37 |
EquipmentNoPocketInfos = new List<EquipmentNoPocketInfo>(); |
|
38 |
currentEquipmentNoPocketInfo = new EquipmentNoPocketInfo(); |
|
39 |
|
|
40 |
EquipmentAirFinCoolerInfos = new List<EquipmentAirFinCoolerInfo>(); |
|
41 |
currentEquipmentAirFinCoolerInfo = new EquipmentAirFinCoolerInfo(); |
|
42 |
|
|
43 |
InitData(); |
|
44 |
InitAirFinCoolerData(); |
|
45 |
} |
|
46 |
|
|
47 |
//const string FluidPriorityType = "FLUIDCODE"; |
|
48 |
//const string PipingMaterialsPriorityType = "PIPINGMATERIALSCLASS"; |
|
49 |
public void InitGridEquipmentNoPocket() |
|
50 |
{ |
|
51 |
RepositoryItemButtonEdit btnRemove = new RepositoryItemButtonEdit(); |
|
52 |
btnRemove.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
|
53 |
btnRemove.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(removeSymbolButton_Click); |
|
54 |
btnRemove.Buttons[0].Kind = DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph; |
|
55 |
btnRemove.Buttons[0].ImageOptions.Image = ID2PSN.Properties.Resources.cancel_16x16; |
|
56 |
|
|
57 |
gridEquipment.RepositoryItems.Add(btnRemove); |
|
58 |
|
|
59 |
DataTable dtType = new DataTable(); |
|
60 |
dtType.Columns.Add("Index"); |
|
61 |
dtType.Columns.Add("Type"); |
|
62 |
dtType.Columns.Add("SppidSymbolName"); |
|
63 |
dtType.Columns.Add(" "); |
|
64 |
gridEquipment.DataSource = dtType; |
|
65 |
|
|
66 |
GridColumn gridColumn = gridViewEquipment.Columns[0]; |
|
67 |
|
|
68 |
|
|
69 |
gridColumn.Name = "Index"; |
|
70 |
gridColumn.Caption = "Index"; |
|
71 |
gridColumn.OptionsColumn.AllowEdit = false; |
|
72 |
gridColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; |
|
73 |
gridColumn.VisibleIndex = 0; |
|
74 |
|
|
75 |
repositoryGroupType = new RepositoryItemComboBox(); |
|
76 |
repositoryGroupType.Items.AddRange(new string[] { "Pump(To)", "Vertical Vessel" }); |
|
77 |
repositoryGroupType.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
|
78 |
|
|
79 |
gridEquipment.RepositoryItems.Add(repositoryGroupType); |
|
80 |
gridColumn = gridViewEquipment.Columns[1]; |
|
81 |
gridColumn.Name = "Type"; |
|
82 |
gridColumn.Caption = "Equipment Type"; |
|
83 |
gridColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; |
|
84 |
gridColumn.VisibleIndex = 1; |
|
85 |
gridViewEquipment.Columns["Type"].ColumnEdit = repositoryGroupType; |
|
86 |
|
|
87 |
gridColumn = gridViewEquipment.Columns[2]; |
|
88 |
gridColumn.Name = "SppidSymbolName"; |
|
89 |
gridColumn.Caption = "ID2 Symbol Name"; |
|
90 |
gridColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; |
|
91 |
gridColumn.VisibleIndex = 2; |
|
92 |
|
|
93 |
RepositoryItemTreeListLookUpEdit treeListLookUpEdit = new RepositoryItemTreeListLookUpEdit(); |
|
94 |
gridEquipment.RepositoryItems.Add(treeListLookUpEdit); |
|
95 |
SetSymbol(treeListLookUpEdit); |
|
96 |
|
|
97 |
gridViewEquipment.Columns["SppidSymbolName"].ColumnEdit = treeListLookUpEdit; |
|
98 |
|
|
99 |
gridColumn = gridViewEquipment.Columns[3]; |
|
100 |
gridColumn.Name = "Remove"; |
|
101 |
gridColumn.Caption = ""; |
|
102 |
gridColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; |
|
103 |
gridColumn.VisibleIndex = 3; |
|
104 |
gridColumn.MaxWidth = 16; |
|
105 |
|
|
106 |
gridColumn.ColumnEdit = btnRemove; |
|
107 |
gridColumn.ShowButtonMode = DevExpress.XtraGrid.Views.Base.ShowButtonModeEnum.ShowAlways; |
|
108 |
} |
|
109 |
|
|
110 |
public void InitGridEquipmentAirFinCooler() |
|
111 |
{ |
|
112 |
RepositoryItemButtonEdit btnRemove = new RepositoryItemButtonEdit(); |
|
113 |
btnRemove.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
|
114 |
btnRemove.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(removeAirSymbolButton_Click); |
|
115 |
btnRemove.Buttons[0].Kind = DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph; |
|
116 |
btnRemove.Buttons[0].ImageOptions.Image = ID2PSN.Properties.Resources.cancel_16x16; |
|
117 |
|
|
118 |
gridControlAirFinCooler.RepositoryItems.Add(btnRemove); |
|
119 |
|
|
120 |
DataTable dtType = new DataTable(); |
|
121 |
dtType.Columns.Add("Index"); |
|
122 |
dtType.Columns.Add("Type"); |
|
123 |
dtType.Columns.Add("SppidSymbolName"); |
|
124 |
dtType.Columns.Add(" "); |
|
125 |
gridControlAirFinCooler.DataSource = dtType; |
|
126 |
|
|
127 |
GridColumn gridColumn = gridViewAirFinCooler.Columns[0]; |
|
128 |
|
|
129 |
|
|
130 |
gridColumn.Name = "Index"; |
|
131 |
gridColumn.Caption = "Index"; |
|
132 |
gridColumn.OptionsColumn.AllowEdit = false; |
|
133 |
gridColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; |
|
134 |
gridColumn.VisibleIndex = 0; |
|
135 |
|
|
136 |
repositoryGroupType2 = new RepositoryItemComboBox(); |
|
137 |
repositoryGroupType2.Items.AddRange(new string[] { "Air Fin Cooler", "Pump" }); |
|
138 |
repositoryGroupType2.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
|
139 |
|
|
140 |
gridControlAirFinCooler.RepositoryItems.Add(repositoryGroupType2); |
|
141 |
gridColumn = gridViewAirFinCooler.Columns[1]; |
|
142 |
gridColumn.Name = "Type"; |
|
143 |
gridColumn.Caption = "Equipment Type"; |
|
144 |
gridColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; |
|
145 |
gridColumn.VisibleIndex = 1; |
|
146 |
gridViewAirFinCooler.Columns["Type"].ColumnEdit = repositoryGroupType2; |
|
147 |
|
|
148 |
gridColumn = gridViewAirFinCooler.Columns[2]; |
|
149 |
gridColumn.Name = "SppidSymbolName"; |
|
150 |
gridColumn.Caption = "ID2 Symbol Name"; |
|
151 |
gridColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; |
|
152 |
gridColumn.VisibleIndex = 2; |
|
153 |
|
|
154 |
RepositoryItemTreeListLookUpEdit treeListLookUpEdit = new RepositoryItemTreeListLookUpEdit(); |
|
155 |
gridControlAirFinCooler.RepositoryItems.Add(treeListLookUpEdit); |
|
156 |
SetSymbol(treeListLookUpEdit); |
|
157 |
|
|
158 |
gridViewAirFinCooler.Columns["SppidSymbolName"].ColumnEdit = treeListLookUpEdit; |
|
159 |
|
|
160 |
gridColumn = gridViewAirFinCooler.Columns[3]; |
|
161 |
gridColumn.Name = "Remove"; |
|
162 |
gridColumn.Caption = ""; |
|
163 |
gridColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; |
|
164 |
gridColumn.VisibleIndex = 3; |
|
165 |
gridColumn.MaxWidth = 16; |
|
166 |
|
|
167 |
gridColumn.ColumnEdit = btnRemove; |
|
168 |
gridColumn.ShowButtonMode = DevExpress.XtraGrid.Views.Base.ShowButtonModeEnum.ShowAlways; |
|
169 |
} |
|
170 |
|
|
171 |
private void GridViewKeyword_CustomDrawColumnHeader(object sender, ColumnHeaderCustomDrawEventArgs e) |
|
172 |
{ |
|
173 |
if (e.Column == null || (e.Column.AppearanceHeader.BackColor == Color.Empty && !e.Column.AppearanceHeader.Options.UseBackColor)) |
|
174 |
|
|
175 |
return; |
|
176 |
|
|
177 |
Rectangle rect = e.Bounds; |
|
178 |
|
|
179 |
rect.Inflate(-1, -1); |
|
180 |
|
|
181 |
// Fill the title color. |
|
182 |
|
|
183 |
e.Graphics.FillRectangle(new SolidBrush(e.Column.AppearanceHeader.BackColor), rect); |
|
184 |
|
|
185 |
e.Appearance.DrawString(e.Cache, e.Info.Caption, e.Info.CaptionRect); |
|
186 |
|
|
187 |
// Draw filter and sort buttons. |
|
188 |
|
|
189 |
foreach (DrawElementInfo info in e.Info.InnerElements) |
|
190 |
|
|
191 |
{ |
|
192 |
|
|
193 |
if (!info.Visible) continue; |
|
194 |
|
|
195 |
ObjectPainter.DrawObject(e.Cache, info.ElementPainter, info.ElementInfo); |
|
196 |
|
|
197 |
} |
|
198 |
|
|
199 |
e.Handled = true; |
|
200 |
} |
|
201 |
|
|
202 |
public void InitData() |
|
203 |
{ |
|
204 |
DataTable dt = DB.SelectEquipmentNoPocketSetting(); |
|
205 |
DataTable typeDT = gridEquipment.DataSource as DataTable; |
|
206 |
foreach (DataRow row in dt.Rows) |
|
207 |
{ |
|
208 |
int index = Convert.ToInt32(row["INDEX"]); |
|
209 |
string Type = row["TYPE"].ToString(); |
|
210 |
string SppidSymbolName = row["NAME"].ToString(); |
|
211 |
|
|
212 |
typeDT.Rows.Add(index, Type, SppidSymbolName, null); |
|
213 |
} |
|
214 |
|
|
215 |
} |
|
216 |
|
|
217 |
public void InitAirFinCoolerData() |
|
218 |
{ |
|
219 |
DataTable dt = DB.SelectAirFinCoolerSetting(); |
|
220 |
DataTable typeDT = gridViewAirFinCooler.DataSource as DataTable; |
|
221 |
foreach (DataRow row in dt.Rows) |
|
222 |
{ |
|
223 |
int index = Convert.ToInt32(row["INDEX"]); |
|
224 |
string Type = row["TYPE"].ToString(); |
|
225 |
string SppidSymbolName = row["NAME"].ToString(); |
|
226 |
|
|
227 |
typeDT.Rows.Add(index, Type, SppidSymbolName, null); |
|
228 |
} |
|
229 |
|
|
230 |
} |
|
231 |
|
|
232 |
private void removeSymbolButton_Click(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |
|
233 |
{ |
|
234 |
DataTable dt = gridEquipment.DataSource as DataTable; |
|
235 |
DataRow rows = dt.Rows[gridViewEquipment.FocusedRowHandle]; |
|
236 |
if (rows != null) |
|
237 |
dt.Rows.Remove(rows); |
|
238 |
} |
|
239 |
|
|
240 |
private void removeAirSymbolButton_Click(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |
|
241 |
{ |
|
242 |
DataTable dt = gridControlAirFinCooler.DataSource as DataTable; |
|
243 |
DataRow rows = dt.Rows[gridViewAirFinCooler.FocusedRowHandle]; |
|
244 |
if (rows != null) |
|
245 |
dt.Rows.Remove(rows); |
|
246 |
} |
|
247 |
|
|
248 |
public void SetSymbol(RepositoryItemTreeListLookUpEdit treeListLookUpEdit) |
|
249 |
{ |
|
250 |
string imgPath = ID2Info.ImageDirPath; |
|
251 |
string[] filesPath = Directory.GetFiles(imgPath, "*.png", SearchOption.AllDirectories); |
|
252 |
|
|
253 |
DataTable dt = new DataTable(); |
|
254 |
dt.Columns.Add("ID", typeof(int)); |
|
255 |
dt.Columns.Add("ParentID", typeof(int)); |
|
256 |
dt.Columns.Add("Name", typeof(string)); |
|
257 |
dt.Columns.Add("Level", typeof(int)); |
|
258 |
dt.Columns.Add("Image", typeof(Image)); |
|
259 |
dt.PrimaryKey = new DataColumn[] { dt.Columns["ID"] }; |
|
260 |
|
|
261 |
treeListLookUpEdit.DataSource = dt; |
|
262 |
treeListLookUpEdit.ValueMember = "Name"; |
|
263 |
treeListLookUpEdit.DisplayMember = "Name"; |
|
264 |
treeListLookUpEdit.TreeList.Columns["Level"].Visible = false; |
|
265 |
treeListLookUpEdit.NullText = ""; |
|
266 |
|
|
267 |
treeListLookUpEdit.EditValueChanging += new DevExpress.XtraEditors.Controls.ChangingEventHandler(TreeList_BeforeCheckNode); |
|
268 |
|
|
269 |
treeListLookUpEdit.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup; |
|
270 |
|
|
271 |
bool bLine = true; |
|
272 |
List<string> level1Index = new List<string>(); |
|
273 |
foreach (var path in filesPath) |
|
274 |
{ |
|
275 |
if (Path.GetFileNameWithoutExtension(path).Contains("_display")) |
|
276 |
continue; |
|
277 |
|
|
278 |
string root = path.Remove(0, imgPath.Length); |
|
279 |
string[] split = root.Split(new string[] { @"\" }, StringSplitOptions.None); |
|
280 |
string level1 = split[0]; |
|
281 |
if (!level1Index.Contains(level1)) |
|
282 |
{ |
|
283 |
level1Index.Add(level1); |
|
284 |
dt.Rows.Add(level1Index.IndexOf(level1) + 1, 0, level1, 0); |
|
285 |
} |
|
286 |
|
|
287 |
int parentId = level1Index.IndexOf(level1) + 1; |
|
288 |
string level2 = split[1]; |
|
289 |
//combobox image size 변경 |
|
290 |
Image image = Image.FromFile(Path.Combine(imgPath, root)); |
|
291 |
Bitmap imgbitmap = new Bitmap(image); |
|
292 |
Image resizedImage = resizeImage(imgbitmap, new Size(200, 200)); |
|
293 |
|
|
294 |
dt.Rows.Add(filesPath.ToList().IndexOf(path) + 10000, parentId, Path.GetFileNameWithoutExtension(path), 1, resizedImage); |
|
295 |
|
|
296 |
if (Path.GetFileNameWithoutExtension(path) == "Connect To Process" && bLine) |
|
297 |
{ |
|
298 |
bLine = false; |
|
299 |
dt.Rows.Add(filesPath.ToList().IndexOf(path) + 20000, parentId, "Primary", 1, resizedImage); |
|
300 |
dt.Rows.Add(filesPath.ToList().IndexOf(path) + 30000, parentId, "Secondary", 1, resizedImage); |
|
301 |
} |
|
302 |
} |
|
303 |
} |
|
304 |
|
|
305 |
public static Image resizeImage(Image imgToResize, Size size) |
|
306 |
{ |
|
307 |
return (Image)(new Bitmap(imgToResize, size)); |
|
308 |
} |
|
309 |
|
|
310 |
private void btnAddSymbol_Click(object sender, EventArgs e) |
|
311 |
{ |
|
312 |
if (currentEquipmentNoPocketInfo == null) |
|
313 |
{ |
|
314 |
currentEquipmentNoPocketInfo = new EquipmentNoPocketInfo(); |
|
315 |
} |
|
316 |
|
|
317 |
DataTable dt = gridEquipment.DataSource as DataTable; |
|
318 |
dt.Rows.Add(dt.Rows.Count + 1, null, null, null); |
|
319 |
gridViewEquipment.Columns["Index"].BestFit(); |
|
320 |
} |
|
321 |
|
|
322 |
private void btnAddAirSymbol_Click(object sender, EventArgs e) |
|
323 |
{ |
|
324 |
if (currentEquipmentAirFinCoolerInfo == null) |
|
325 |
{ |
|
326 |
currentEquipmentAirFinCoolerInfo = new EquipmentAirFinCoolerInfo(); |
|
327 |
} |
|
328 |
|
|
329 |
DataTable dt = gridControlAirFinCooler.DataSource as DataTable; |
|
330 |
dt.Rows.Add(dt.Rows.Count + 1, null, null, null); |
|
331 |
gridViewAirFinCooler.Columns["Index"].BestFit(); |
|
332 |
} |
|
333 |
|
|
334 |
public void ReNumbering(EquipmentNoPocketInfo equipmentNoPocketInfo) |
|
335 |
{ |
|
336 |
DataTable dt = gridEquipment.DataSource as DataTable; |
|
337 |
equipmentNoPocketInfo.EquipmentNoPocketItem.Clear(); |
|
338 |
for (int i = 0; i < dt.Rows.Count; i++) |
|
339 |
{ |
|
340 |
DataRow row = dt.Rows[i]; |
|
341 |
row["Index"] = i + 1; |
|
342 |
equipmentNoPocketInfo.EquipmentNoPocketItem.Add(new EquipmentNoPocketItem() |
|
343 |
{ |
|
344 |
Index = i + 1, |
|
345 |
Type = row["Type"].ToString(), |
|
346 |
Name = row["SppidSymbolName"].ToString() |
|
347 |
}); |
|
348 |
} |
|
349 |
} |
|
350 |
|
|
351 |
public void ReNumberingAir(EquipmentAirFinCoolerInfo equipmentAirFinCoolerInfo) |
|
352 |
{ |
|
353 |
DataTable dt = gridControlAirFinCooler.DataSource as DataTable; |
|
354 |
equipmentAirFinCoolerInfo.EquipmentAirFinCoolerItem.Clear(); |
|
355 |
for (int i = 0; i < dt.Rows.Count; i++) |
|
356 |
{ |
|
357 |
DataRow row = dt.Rows[i]; |
|
358 |
row["Index"] = i + 1; |
|
359 |
equipmentAirFinCoolerInfo.EquipmentAirFinCoolerItem.Add(new EquipmentAirFinCoolerItem() |
|
360 |
{ |
|
361 |
Index = i + 1, |
|
362 |
Type = row["Type"].ToString(), |
|
363 |
Name = row["SppidSymbolName"].ToString() |
|
364 |
}); |
|
365 |
} |
|
366 |
} |
|
367 |
|
|
368 |
|
|
369 |
|
|
370 |
private void TreeList_BeforeCheckNode(object sender, DevExpress.XtraEditors.Controls.ChangingEventArgs e) |
|
371 |
{ |
|
372 |
DevExpress.XtraEditors.TreeListLookUpEdit treeListLookUpEdit = sender as DevExpress.XtraEditors.TreeListLookUpEdit; |
|
373 |
if (treeListLookUpEdit.Properties.TreeList.FocusedNode == null) |
|
374 |
return; |
|
375 |
|
|
376 |
if (treeListLookUpEdit.Properties.TreeList.FocusedNode.Level == 0) |
|
377 |
e.Cancel = true; |
|
378 |
|
|
379 |
|
|
380 |
} |
|
381 |
|
|
382 |
private void btnSave_Click(object sender, EventArgs e) |
|
383 |
{ |
|
384 |
if (currentEquipmentNoPocketInfo == null) |
|
385 |
{ |
|
386 |
currentEquipmentNoPocketInfo = new EquipmentNoPocketInfo(); |
|
387 |
} |
|
388 |
|
|
389 |
if (currentEquipmentAirFinCoolerInfo == null) |
|
390 |
{ |
|
391 |
currentEquipmentAirFinCoolerInfo = new EquipmentAirFinCoolerInfo(); |
|
392 |
} |
|
393 |
|
|
394 |
ReNumbering(currentEquipmentNoPocketInfo); |
|
395 |
ReNumberingAir(currentEquipmentAirFinCoolerInfo); |
|
396 |
if (currentEquipmentNoPocketInfo.EquipmentNoPocketItem.Find(x => x.Type == string.Empty || x.Name == string.Empty) != null) |
|
397 |
{ |
|
398 |
MessageBox.Show("Please save after entering data.", "ID2 " + ID2Info.ProgramName, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
|
399 |
return; |
|
400 |
} |
|
401 |
|
|
402 |
if (DB.SaveEquipmentNopocketSetting(currentEquipmentNoPocketInfo.EquipmentNoPocketItem) && |
|
403 |
DB.SaveAirFinCoolerSetting(currentEquipmentAirFinCoolerInfo.EquipmentAirFinCoolerItem)) |
|
404 |
MessageBox.Show("Save was successful", "ID2 " + ID2Info.ProgramName, MessageBoxButtons.OK, MessageBoxIcon.Information); |
|
405 |
else |
|
406 |
MessageBox.Show("Failed to save", "ID2 " + ID2Info.ProgramName, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
|
407 |
|
|
408 |
|
|
409 |
} |
|
410 |
|
|
411 |
private void btnClose_Click(object sender, EventArgs e) |
|
412 |
{ |
|
413 |
DialogResult = DialogResult.Cancel; |
|
414 |
} |
|
415 |
} |
|
416 |
} |
DTI_PID/ID2PSN/Form/EquipmentSetting.resx | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<root> |
|
3 |
<!-- |
|
4 |
Microsoft ResX Schema |
|
5 |
|
|
6 |
Version 2.0 |
|
7 |
|
|
8 |
The primary goals of this format is to allow a simple XML format |
|
9 |
that is mostly human readable. The generation and parsing of the |
|
10 |
various data types are done through the TypeConverter classes |
|
11 |
associated with the data types. |
|
12 |
|
|
13 |
Example: |
|
14 |
|
|
15 |
... ado.net/XML headers & schema ... |
|
16 |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|
17 |
<resheader name="version">2.0</resheader> |
|
18 |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|
19 |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|
20 |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|
21 |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|
22 |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|
23 |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|
24 |
</data> |
|
25 |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|
26 |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|
27 |
<comment>This is a comment</comment> |
|
28 |
</data> |
|
29 |
|
|
30 |
There are any number of "resheader" rows that contain simple |
|
31 |
name/value pairs. |
|
32 |
|
|
33 |
Each data row contains a name, and value. The row also contains a |
|
34 |
type or mimetype. Type corresponds to a .NET class that support |
|
35 |
text/value conversion through the TypeConverter architecture. |
|
36 |
Classes that don't support this are serialized and stored with the |
|
37 |
mimetype set. |
|
38 |
|
|
39 |
The mimetype is used for serialized objects, and tells the |
|
40 |
ResXResourceReader how to depersist the object. This is currently not |
|
41 |
extensible. For a given mimetype the value must be set accordingly: |
|
42 |
|
|
43 |
Note - application/x-microsoft.net.object.binary.base64 is the format |
|
44 |
that the ResXResourceWriter will generate, however the reader can |
|
45 |
read any of the formats listed below. |
|
46 |
|
|
47 |
mimetype: application/x-microsoft.net.object.binary.base64 |
|
48 |
value : The object must be serialized with |
|
49 |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|
50 |
: and then encoded with base64 encoding. |
|
51 |
|
|
52 |
mimetype: application/x-microsoft.net.object.soap.base64 |
|
53 |
value : The object must be serialized with |
|
54 |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|
55 |
: and then encoded with base64 encoding. |
|
56 |
|
|
57 |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|
58 |
value : The object must be serialized into a byte array |
|
59 |
: using a System.ComponentModel.TypeConverter |
|
60 |
: and then encoded with base64 encoding. |
|
61 |
--> |
|
62 |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|
63 |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|
64 |
<xsd:element name="root" msdata:IsDataSet="true"> |
|
65 |
<xsd:complexType> |
|
66 |
<xsd:choice maxOccurs="unbounded"> |
|
67 |
<xsd:element name="metadata"> |
|
68 |
<xsd:complexType> |
|
69 |
<xsd:sequence> |
|
70 |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|
71 |
</xsd:sequence> |
|
72 |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|
73 |
<xsd:attribute name="type" type="xsd:string" /> |
|
74 |
<xsd:attribute name="mimetype" type="xsd:string" /> |
|
75 |
<xsd:attribute ref="xml:space" /> |
|
76 |
</xsd:complexType> |
|
77 |
</xsd:element> |
|
78 |
<xsd:element name="assembly"> |
|
79 |
<xsd:complexType> |
|
80 |
<xsd:attribute name="alias" type="xsd:string" /> |
|
81 |
<xsd:attribute name="name" type="xsd:string" /> |
|
82 |
</xsd:complexType> |
|
83 |
</xsd:element> |
|
84 |
<xsd:element name="data"> |
|
85 |
<xsd:complexType> |
|
86 |
<xsd:sequence> |
|
87 |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|
88 |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|
89 |
</xsd:sequence> |
|
90 |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|
91 |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|
92 |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|
93 |
<xsd:attribute ref="xml:space" /> |
|
94 |
</xsd:complexType> |
|
95 |
</xsd:element> |
|
96 |
<xsd:element name="resheader"> |
|
97 |
<xsd:complexType> |
|
98 |
<xsd:sequence> |
|
99 |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|
100 |
</xsd:sequence> |
|
101 |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|
102 |
</xsd:complexType> |
|
103 |
</xsd:element> |
|
104 |
</xsd:choice> |
|
105 |
</xsd:complexType> |
|
106 |
</xsd:element> |
|
107 |
</xsd:schema> |
|
108 |
<resheader name="resmimetype"> |
|
109 |
<value>text/microsoft-resx</value> |
|
110 |
</resheader> |
|
111 |
<resheader name="version"> |
|
112 |
<value>2.0</value> |
|
113 |
</resheader> |
|
114 |
<resheader name="reader"> |
|
115 |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|
116 |
</resheader> |
|
117 |
<resheader name="writer"> |
|
118 |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|
119 |
</resheader> |
|
120 |
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
|
121 |
<data name="btnClose.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|
122 |
<value> |
|
123 |
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAB10RVh0VGl0 |
|
124 |
bGUAQ2xvc2U7RXhpdDtCYXJzO1JpYmJvbjtGA7noAAAI60lEQVRYR8WXd1RUZxqHzWaz6ZqiJrFEowYE |
|
125 |
RVRAhYGBoQ1SFGRVEvvKqsGCx8AqqBQVNLoqxY49alBEiggaiUoHUcqAdFH6DEVEmuSf377vHQbBWXfP |
|
126 |
2bN79jvn8bt3Zpjn977f/e5cBwH4vyKMmuA9g2qC9vDhW/+GP/wXeKs0wJemfqP6QCBPKsEfiXeIP73G |
|
127 |
u2/gvX/B+/3gc/48fz97BgyWv53js9myItA3u3K3Hyp3++IxE+gLeg0VAcQuH2I7ylXs3IbSHSq2otTf |
|
128 |
GyWMnzeKGV8vFPluIbxR5LMF+Vv/9jDR3U1KLi6QnX2DT96p2Lld3nb/DnqqCtHztAA9T2ToqcxDz+Nc |
|
129 |
dJc/RHdZNrqLs9D1KB1dhanoyk9GZ+49dOb8ho7sX9GRlYD29BtoT4lFW9I1tN2NQFtiONpuXcTzhPOo |
|
130 |
PxuEvC0eCnJxNwZ0gU/eLaOknbmJeH7jPJ7HvaL1+jm0xp5FawwRfQat107jWeRJtESEoeXKcbSEH0PL |
|
131 |
L0fQfDEUzT8Ho+ncQTSe2Y/GU/ugCNsD+bEAyI/sRO3fvZDrsZGvvA+Jt1msGhzgvRJvT7SnxZDoFIl6 |
|
132 |
iT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KWvvUmVpImDwGh0ZrqwXgfzjAMN4iGVQR |
|
157 |
f1kafWmamL5UOKYvNabZhGeCRKk0pxoRLBApRSkMyVIMtZBCwpSZE5EyQxPJMyYiyUATcVqjETJiIgcY |
|
158 |
QfAj+oAAQ09r6wttSxVpUxWUuh8pPHMlvfQJZtK5IJpIIqUsmWRMkoEGkvS+7eO65igEfanxTzsgbMMw |
|
159 |
jWnyGB1N3NIdhwSdb4ixiJ805hXaXwvECefKY+GcoeoESBI3kdAcScJeNEYQIxE+djT2DZ/Aj+V8IxoQ |
|
160 |
QHgk2zpac9HR8VOajo/XBXNs3BS6anVwZOxkgcNjJgkc+loboaMnIXSUFkJHEiO0qLXEV5oIJoKIg1Tp |
|
161 |
wS+I4Ro4MHwC9g//FnuHjW9eO2TkUnKpHkqFADxUXeDndf6h4H3KW4Vb9Tq8fq8z8g2M6gef8w2Inwd5 |
|
162 |
yfvkPPhE1Ql+k9vzOv3/P/ifoPoeVeUDAqiG6o3/Nb1j0KB/AMYUfCkDw9hpAAAAAElFTkSuQmCC |
|
163 |
</value> |
|
164 |
</data> |
|
165 |
<data name="btnSave.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|
166 |
<value> |
|
167 |
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAt0RVh0VGl0 |
|
168 |
bGUAU2F2ZTv56PkJAAAJQElEQVRYR8WWd1TUVxbH3ZItycYkpm39d/+Ku1FRikjvvQ0ww9AZGJgBBhh6 |
|
169 |
GRh6R6RIQEWxIGKkKKLYgsEaY8EuKEWRCCrShKjnu/f9hiEhuMecPSdn3zkfHo+Zw/d77yv3LgHwf+Wn |
|
170 |
41fEr/9HfvMzUH+X6Swa7IO3iN8Tf/wJb7+Bd34m7Lvs/zMzC0ywxVth6Vsy5Hk7X0YX1COmcDfiiuvB |
|
171 |
F6fD1iMGtoIYeIhSkV+2G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AABJRU5E |
|
208 |
rkJggg== |
|
209 |
</value> |
|
210 |
</data> |
|
211 |
</root> |
DTI_PID/ID2PSN/Form/MainForm.Designer.cs | ||
---|---|---|
56 | 56 |
this.EquipmentTagNoSetting = new DevExpress.XtraEditors.SimpleButton(); |
57 | 57 |
this.PBSSetting = new DevExpress.XtraEditors.SimpleButton(); |
58 | 58 |
this.btnValveGroupItemsSetting = new DevExpress.XtraEditors.SimpleButton(); |
59 |
this.btnNoPocketSetting = new DevExpress.XtraEditors.SimpleButton();
|
|
59 |
this.btnEquipment = new DevExpress.XtraEditors.SimpleButton();
|
|
60 | 60 |
this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
61 | 61 |
this.layoutControlGroupMain = new DevExpress.XtraLayout.LayoutControlGroup(); |
62 | 62 |
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); |
... | ... | |
158 | 158 |
this.layoutControl1.Controls.Add(this.EquipmentTagNoSetting); |
159 | 159 |
this.layoutControl1.Controls.Add(this.PBSSetting); |
160 | 160 |
this.layoutControl1.Controls.Add(this.btnValveGroupItemsSetting); |
161 |
this.layoutControl1.Controls.Add(this.btnNoPocketSetting);
|
|
161 |
this.layoutControl1.Controls.Add(this.btnEquipment);
|
|
162 | 162 |
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; |
163 | 163 |
this.layoutControl1.Location = new System.Drawing.Point(0, 32); |
164 | 164 |
this.layoutControl1.Name = "layoutControl1"; |
... | ... | |
392 | 392 |
this.btnValveGroupItemsSetting.Text = "Valve Group Items Setting"; |
393 | 393 |
this.btnValveGroupItemsSetting.Click += new System.EventHandler(this.btnValveGroupItemsSetting_Click); |
394 | 394 |
// |
395 |
// btnNoPocketSetting
|
|
395 |
// btnEquipment
|
|
396 | 396 |
// |
397 |
this.btnNoPocketSetting.Location = new System.Drawing.Point(24, 199);
|
|
398 |
this.btnNoPocketSetting.Name = "btnNoPocketSetting";
|
|
399 |
this.btnNoPocketSetting.Size = new System.Drawing.Size(233, 22);
|
|
400 |
this.btnNoPocketSetting.StyleController = this.layoutControl1;
|
|
401 |
this.btnNoPocketSetting.TabIndex = 24;
|
|
402 |
this.btnNoPocketSetting.Text = "Equipment No Pocket Setting";
|
|
403 |
this.btnNoPocketSetting.Click += new System.EventHandler(this.btnNoPocketSetting_Click);
|
|
397 |
this.btnEquipment.Location = new System.Drawing.Point(24, 199);
|
|
398 |
this.btnEquipment.Name = "btnEquipment";
|
|
399 |
this.btnEquipment.Size = new System.Drawing.Size(233, 22);
|
|
400 |
this.btnEquipment.StyleController = this.layoutControl1;
|
|
401 |
this.btnEquipment.TabIndex = 24;
|
|
402 |
this.btnEquipment.Text = "Equipment Setting";
|
|
403 |
this.btnEquipment.Click += new System.EventHandler(this.btnNoPocketSetting_Click);
|
|
404 | 404 |
// |
405 | 405 |
// Root |
406 | 406 |
// |
... | ... | |
516 | 516 |
// |
517 | 517 |
// layoutControlItem8 |
518 | 518 |
// |
519 |
this.layoutControlItem8.Control = this.btnNoPocketSetting;
|
|
520 |
this.layoutControlItem8.CustomizationFormText = "layoutControlItem7";
|
|
519 |
this.layoutControlItem8.Control = this.btnEquipment;
|
|
520 |
this.layoutControlItem8.CustomizationFormText = "layoutControlItem8";
|
|
521 | 521 |
this.layoutControlItem8.Location = new System.Drawing.Point(0, 156); |
522 | 522 |
this.layoutControlItem8.Name = "layoutControlItem8"; |
523 | 523 |
this.layoutControlItem8.Size = new System.Drawing.Size(237, 26); |
... | ... | |
750 | 750 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem16; |
751 | 751 |
private DevExpress.XtraEditors.SimpleButton btnValveGroupItemsSetting; |
752 | 752 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; |
753 |
private DevExpress.XtraEditors.SimpleButton btnNoPocketSetting;
|
|
753 |
private DevExpress.XtraEditors.SimpleButton btnEquipment;
|
|
754 | 754 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; |
755 | 755 |
} |
756 | 756 |
} |
DTI_PID/ID2PSN/Form/MainForm.cs | ||
---|---|---|
800 | 800 |
foreach (DataColumn column in dataDT.Columns) |
801 | 801 |
if (gridDT.Columns[column.ColumnName] != null) |
802 | 802 |
newRow[column.ColumnName] = row[column.ColumnName]; |
803 |
|
|
803 | 804 |
gridDT.Rows.Add(newRow); |
804 | 805 |
} |
805 | 806 |
//gridDT.OrderBy(x=>x.Field<string>("")) |
... | ... | |
807 | 808 |
|
808 | 809 |
pagePathItems.Text = string.Format("Path Items - {0}", toolStripMenuItemPathItems.Tag); |
809 | 810 |
xtraTabControlPSN.SelectedTabPage = pagePathItems; |
810 |
|
|
811 |
gridControlPathItems.DataSource = gridDT; |
|
811 | 812 |
gridControlPathItems.EndUpdate(); |
812 | 813 |
} |
813 | 814 |
|
... | ... | |
1041 | 1042 |
|
1042 | 1043 |
private void btnNoPocketSetting_Click(object sender, EventArgs e) |
1043 | 1044 |
{ |
1044 |
EquipmentNoPocketSetting form = new EquipmentNoPocketSetting();
|
|
1045 |
EquipmentSetting form = new EquipmentSetting();
|
|
1045 | 1046 |
form.ShowDialog(); |
1046 | 1047 |
} |
1048 |
|
|
1049 |
//private void AirFinCoolerSetting_Click(object sender, EventArgs e) |
|
1050 |
//{ |
|
1051 |
// AirFinCoolerSetting form = new AirFinCoolerSetting(); |
|
1052 |
// form.ShowDialog(); |
|
1053 |
//} |
|
1047 | 1054 |
} |
1048 | 1055 |
} |
DTI_PID/ID2PSN/Form/MainForm.resx | ||
---|---|---|
118 | 118 |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
119 | 119 |
</resheader> |
120 | 120 |
<metadata name="defaultLookAndFeel.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
121 |
<value>17, 56</value>
|
|
121 |
<value>197, 17</value>
|
|
122 | 122 |
</metadata> |
123 | 123 |
<assembly alias="DevExpress.Data.v19.1" name="DevExpress.Data.v19.1, Version=19.1.2.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> |
124 | 124 |
<data name="btnExportPSN.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v19.1" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
... | ... | |
234 | 234 |
</value> |
235 | 235 |
</data> |
236 | 236 |
<metadata name="contextMenuPSN.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
237 |
<value>17, 95</value>
|
|
237 |
<value>359, 17</value>
|
|
238 | 238 |
</metadata> |
239 | 239 |
<metadata name="sqLiteCommandBuilder1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
240 |
<value>17, 134</value>
|
|
240 |
<value>507, 17</value>
|
|
241 | 241 |
</metadata> |
242 | 242 |
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
243 | 243 |
<value>48</value> |
DTI_PID/ID2PSN/ID2PSN.csproj | ||
---|---|---|
38 | 38 |
</PropertyGroup> |
39 | 39 |
<ItemGroup> |
40 | 40 |
<Reference Include="Accessibility" /> |
41 |
<Reference Include="DevExpress.Charts.v19.1.Core"> |
|
42 |
<HintPath>C:\Program Files (x86)\DevExpress 19.1\Components\Bin\Framework\DevExpress.Charts.v19.1.Core.dll</HintPath> |
|
43 |
</Reference> |
|
41 | 44 |
<Reference Include="DevExpress.Data.v19.1, Version=19.1.2.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> |
42 | 45 |
<Reference Include="DevExpress.Dialogs.v19.1.Core, Version=19.1.2.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> |
43 | 46 |
<Reference Include="DevExpress.Docs.v19.1, Version=19.1.2.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" /> |
44 | 47 |
<Reference Include="DevExpress.Office.v19.1.Core, Version=19.1.2.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" /> |
45 | 48 |
<Reference Include="DevExpress.Printing.v19.1.Core, Version=19.1.2.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> |
46 |
<Reference Include="DevExpress.Charts.v19.1.Core, Version=19.1.2.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" /> |
|
47 | 49 |
<Reference Include="DevExpress.Sparkline.v19.1.Core, Version=19.1.2.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> |
48 | 50 |
<Reference Include="DevExpress.Spreadsheet.v19.1.Core, Version=19.1.2.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" /> |
49 | 51 |
<Reference Include="DevExpress.Utils.v19.1, Version=19.1.2.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> |
... | ... | |
92 | 94 |
<Reference Include="System.Net.Http" /> |
93 | 95 |
<Reference Include="System.Windows.Forms" /> |
94 | 96 |
<Reference Include="System.Xml" /> |
95 |
<Reference Include="Telerik.WinControls, Version=2019.2.618.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e" /> |
|
96 |
<Reference Include="Telerik.WinControls.UI, Version=2019.2.618.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e" /> |
|
97 |
<Reference Include="TelerikCommon, Version=2019.2.618.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e" /> |
|
98 | 97 |
<Reference Include="UIAutomationClient" /> |
99 | 98 |
<Reference Include="WindowsBase" /> |
100 | 99 |
</ItemGroup> |
... | ... | |
133 | 132 |
<Compile Include="Form\EquipmentNoPocketSetting.Designer.cs"> |
134 | 133 |
<DependentUpon>EquipmentNoPocketSetting.cs</DependentUpon> |
135 | 134 |
</Compile> |
135 |
<Compile Include="Form\EquipmentSetting.cs"> |
|
136 |
<SubType>Form</SubType> |
|
137 |
</Compile> |
|
138 |
<Compile Include="Form\EquipmentSetting.Designer.cs"> |
|
139 |
<DependentUpon>EquipmentSetting.cs</DependentUpon> |
|
140 |
</Compile> |
|
136 | 141 |
<Compile Include="Form\ValveGroupingSetting.cs"> |
137 | 142 |
<SubType>Form</SubType> |
138 | 143 |
</Compile> |
내보내기 Unified diff