ningshuxia
2025-03-27 0b0f37c86f484b10d911b56b77968f832ce69bbb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
namespace PBS.WinFrmUI
{
    partial class AddElectricDlg
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
 
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        #region Windows Form Designer generated code
 
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddElectricDlg));
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject();
            dataLayoutControl1 = new DevExpress.XtraDataLayout.DataLayoutControl();
            Btncancel = new DevExpress.XtraEditors.SimpleButton();
            btnOk = new DevExpress.XtraEditors.SimpleButton();
            txtStartMonth = new DevExpress.XtraEditors.TextEdit();
            txtEndMonth = new DevExpress.XtraEditors.TextEdit();
            gridControl11 = new DevExpress.XtraGrid.GridControl();
            bindingSource1 = new BindingSource(components);
            gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView();
            colStartHour = new DevExpress.XtraGrid.Columns.GridColumn();
            colStartTime = new DevExpress.XtraGrid.Columns.GridColumn();
            colEndTime = new DevExpress.XtraGrid.Columns.GridColumn();
            colPrice = new DevExpress.XtraGrid.Columns.GridColumn();
            ColDelete = new DevExpress.XtraGrid.Columns.GridColumn();
            repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit();
            Root = new DevExpress.XtraLayout.LayoutControlGroup();
            StartName = new DevExpress.XtraLayout.LayoutControlItem();
            结束月份 = new DevExpress.XtraLayout.LayoutControlItem();
            layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
            layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
            emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
            layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
            repositoryItemButtonEdit11 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit();
            dxErrorProvider1 = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(components);
            ((System.ComponentModel.ISupportInitialize)dataLayoutControl1).BeginInit();
            dataLayoutControl1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)txtStartMonth.Properties).BeginInit();
            ((System.ComponentModel.ISupportInitialize)txtEndMonth.Properties).BeginInit();
            ((System.ComponentModel.ISupportInitialize)gridControl11).BeginInit();
            ((System.ComponentModel.ISupportInitialize)bindingSource1).BeginInit();
            ((System.ComponentModel.ISupportInitialize)gridView2).BeginInit();
            ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit1).BeginInit();
            ((System.ComponentModel.ISupportInitialize)Root).BeginInit();
            ((System.ComponentModel.ISupportInitialize)StartName).BeginInit();
            ((System.ComponentModel.ISupportInitialize)结束月份).BeginInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit();
            ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem3).BeginInit();
            ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit11).BeginInit();
            ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).BeginInit();
            SuspendLayout();
            // 
            // dataLayoutControl1
            // 
            dataLayoutControl1.Controls.Add(Btncancel);
            dataLayoutControl1.Controls.Add(btnOk);
            dataLayoutControl1.Controls.Add(txtStartMonth);
            dataLayoutControl1.Controls.Add(txtEndMonth);
            dataLayoutControl1.Controls.Add(gridControl11);
            dataLayoutControl1.Dock = DockStyle.Fill;
            dataLayoutControl1.Location = new Point(0, 0);
            dataLayoutControl1.Margin = new Padding(3, 4, 3, 4);
            dataLayoutControl1.Name = "dataLayoutControl1";
            dataLayoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(964, 147, 650, 400);
            dataLayoutControl1.Root = Root;
            dataLayoutControl1.Size = new Size(610, 514);
            dataLayoutControl1.TabIndex = 0;
            dataLayoutControl1.Text = "dataLayoutControl1";
            // 
            // Btncancel
            // 
            Btncancel.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning;
            Btncancel.Appearance.Options.UseBackColor = true;
            Btncancel.DialogResult = DialogResult.Cancel;
            Btncancel.Location = new Point(460, 470);
            Btncancel.Margin = new Padding(3, 4, 3, 4);
            Btncancel.MaximumSize = new Size(137, 28);
            Btncancel.MinimumSize = new Size(137, 28);
            Btncancel.Name = "Btncancel";
            Btncancel.Size = new Size(137, 28);
            Btncancel.StyleController = dataLayoutControl1;
            Btncancel.TabIndex = 8;
            Btncancel.Text = "取消";
            // 
            // btnOk
            // 
            btnOk.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Question;
            btnOk.Appearance.Options.UseBackColor = true;
            btnOk.Location = new Point(319, 470);
            btnOk.Margin = new Padding(3, 4, 3, 4);
            btnOk.MaximumSize = new Size(137, 28);
            btnOk.MinimumSize = new Size(137, 28);
            btnOk.Name = "btnOk";
            btnOk.Size = new Size(137, 28);
            btnOk.StyleController = dataLayoutControl1;
            btnOk.TabIndex = 7;
            btnOk.Text = "确定";
            btnOk.Click += btnOk_Click;
            // 
            // txtStartMonth
            // 
            txtStartMonth.Location = new Point(92, 16);
            txtStartMonth.Margin = new Padding(3, 4, 3, 4);
            txtStartMonth.Name = "txtStartMonth";
            txtStartMonth.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager));
            txtStartMonth.Properties.MaskSettings.Set("MaskManagerSignature", "allowNull=False");
            txtStartMonth.Properties.MaskSettings.Set("mask", "d");
            txtStartMonth.Size = new Size(505, 24);
            txtStartMonth.StyleController = dataLayoutControl1;
            txtStartMonth.TabIndex = 4;
            // 
            // txtEndMonth
            // 
            txtEndMonth.Location = new Point(92, 46);
            txtEndMonth.Margin = new Padding(3, 4, 3, 4);
            txtEndMonth.Name = "txtEndMonth";
            txtEndMonth.Properties.MaskSettings.Set("MaskManagerType", typeof(DevExpress.Data.Mask.NumericMaskManager));
            txtEndMonth.Properties.MaskSettings.Set("MaskManagerSignature", "allowNull=False");
            txtEndMonth.Properties.MaskSettings.Set("mask", "d");
            txtEndMonth.Size = new Size(505, 24);
            txtEndMonth.StyleController = dataLayoutControl1;
            txtEndMonth.TabIndex = 5;
            // 
            // gridControl11
            // 
            gridControl11.DataSource = bindingSource1;
            gridControl11.EmbeddedNavigator.Margin = new Padding(3, 5, 3, 5);
            gridControl11.Location = new Point(13, 76);
            gridControl11.MainView = gridView2;
            gridControl11.Margin = new Padding(3, 4, 3, 4);
            gridControl11.Name = "gridControl11";
            gridControl11.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemButtonEdit1 });
            gridControl11.Size = new Size(584, 388);
            gridControl11.TabIndex = 4;
            gridControl11.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView2 });
            // 
            // gridView2
            // 
            gridView2.Appearance.Row.Options.UseTextOptions = true;
            gridView2.Appearance.Row.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colStartHour, colStartTime, colEndTime, colPrice, ColDelete });
            gridView2.DetailHeight = 450;
            gridView2.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
            gridView2.GridControl = gridControl11;
            gridView2.Name = "gridView2";
            gridView2.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.True;
            gridView2.OptionsCustomization.AllowFilter = false;
            gridView2.OptionsCustomization.AllowQuickHideColumns = false;
            gridView2.OptionsCustomization.AllowSort = false;
            gridView2.OptionsEditForm.PopupEditFormWidth = 914;
            gridView2.OptionsMenu.EnableColumnMenu = false;
            gridView2.OptionsView.EnableAppearanceEvenRow = true;
            gridView2.OptionsView.EnableAppearanceOddRow = true;
            gridView2.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.Bottom;
            gridView2.OptionsView.ShowGroupPanel = false;
            gridView2.OptionsView.ShowIndicator = false;
            gridView2.RowCellClick += gridView2_RowCellClick;
            // 
            // colStartHour
            // 
            colStartHour.Caption = "时段";
            colStartHour.FieldName = "TimeFrame";
            colStartHour.MinWidth = 23;
            colStartHour.Name = "colStartHour";
            colStartHour.Visible = true;
            colStartHour.VisibleIndex = 0;
            colStartHour.Width = 145;
            // 
            // colStartTime
            // 
            colStartTime.Caption = "开始时间";
            colStartTime.FieldName = "StartHour";
            colStartTime.MinWidth = 23;
            colStartTime.Name = "colStartTime";
            colStartTime.Visible = true;
            colStartTime.VisibleIndex = 1;
            colStartTime.Width = 145;
            // 
            // colEndTime
            // 
            colEndTime.Caption = "结束时间";
            colEndTime.FieldName = "EndHour";
            colEndTime.MinWidth = 23;
            colEndTime.Name = "colEndTime";
            colEndTime.Visible = true;
            colEndTime.VisibleIndex = 2;
            colEndTime.Width = 213;
            // 
            // colPrice
            // 
            colPrice.Caption = "价格";
            colPrice.FieldName = "Price";
            colPrice.MinWidth = 23;
            colPrice.Name = "colPrice";
            colPrice.Visible = true;
            colPrice.VisibleIndex = 3;
            colPrice.Width = 167;
            // 
            // ColDelete
            // 
            ColDelete.Caption = "删除";
            ColDelete.ColumnEdit = repositoryItemButtonEdit1;
            ColDelete.MinWidth = 23;
            ColDelete.Name = "ColDelete";
            ColDelete.OptionsColumn.AllowEdit = false;
            ColDelete.Visible = true;
            ColDelete.VisibleIndex = 4;
            ColDelete.Width = 59;
            // 
            // repositoryItemButtonEdit1
            // 
            repositoryItemButtonEdit1.AutoHeight = false;
            editorButtonImageOptions1.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions1.SvgImage");
            repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) });
            repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1";
            repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor;
            // 
            // Root
            // 
            Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
            Root.GroupBordersVisible = false;
            Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { StartName, 结束月份, layoutControlItem1, layoutControlItem2, emptySpaceItem1, layoutControlItem3 });
            Root.Name = "Root";
            Root.Size = new Size(610, 514);
            Root.TextVisible = false;
            // 
            // StartName
            // 
            StartName.Control = txtStartMonth;
            StartName.ControlAlignment = ContentAlignment.TopLeft;
            StartName.CustomizationFormText = "开始月份:";
            StartName.Location = new Point(0, 0);
            StartName.Name = "StartName";
            StartName.Size = new Size(588, 30);
            StartName.Text = "开始月份:";
            StartName.TextSize = new Size(65, 18);
            // 
            // 结束月份
            // 
            结束月份.Control = txtEndMonth;
            结束月份.ControlAlignment = ContentAlignment.TopLeft;
            结束月份.CustomizationFormText = "结束月份:";
            结束月份.Location = new Point(0, 30);
            结束月份.Name = "结束月份";
            结束月份.Size = new Size(588, 30);
            结束月份.Text = "结束月份:";
            结束月份.TextSize = new Size(65, 18);
            // 
            // layoutControlItem1
            // 
            layoutControlItem1.Control = gridControl11;
            layoutControlItem1.ControlAlignment = ContentAlignment.TopLeft;
            layoutControlItem1.CustomizationFormText = "layoutControlItem1";
            layoutControlItem1.Location = new Point(0, 60);
            layoutControlItem1.Name = "layoutControlItem1";
            layoutControlItem1.Size = new Size(588, 394);
            layoutControlItem1.TextSize = new Size(0, 0);
            layoutControlItem1.TextVisible = false;
            // 
            // layoutControlItem2
            // 
            layoutControlItem2.Control = btnOk;
            layoutControlItem2.Location = new Point(306, 454);
            layoutControlItem2.Name = "layoutControlItem2";
            layoutControlItem2.Size = new Size(141, 34);
            layoutControlItem2.TextSize = new Size(0, 0);
            layoutControlItem2.TextVisible = false;
            // 
            // emptySpaceItem1
            // 
            emptySpaceItem1.AllowHotTrack = false;
            emptySpaceItem1.Location = new Point(0, 454);
            emptySpaceItem1.Name = "emptySpaceItem1";
            emptySpaceItem1.Size = new Size(306, 34);
            emptySpaceItem1.TextSize = new Size(0, 0);
            // 
            // layoutControlItem3
            // 
            layoutControlItem3.Control = Btncancel;
            layoutControlItem3.Location = new Point(447, 454);
            layoutControlItem3.Name = "layoutControlItem3";
            layoutControlItem3.Size = new Size(141, 34);
            layoutControlItem3.TextSize = new Size(0, 0);
            layoutControlItem3.TextVisible = false;
            // 
            // repositoryItemButtonEdit11
            // 
            repositoryItemButtonEdit11.AllowFocused = false;
            repositoryItemButtonEdit11.AutoHeight = false;
            repositoryItemButtonEdit11.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph) });
            repositoryItemButtonEdit11.Name = "repositoryItemButtonEdit11";
            repositoryItemButtonEdit11.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor;
            // 
            // dxErrorProvider1
            // 
            dxErrorProvider1.ContainerControl = this;
            // 
            // AddElectricDlg
            // 
            AutoScaleDimensions = new SizeF(8F, 18F);
            AutoScaleMode = AutoScaleMode.Font;
            ClientSize = new Size(610, 514);
            Controls.Add(dataLayoutControl1);
            Margin = new Padding(3, 4, 3, 4);
            MaximizeBox = false;
            MaximumSize = new Size(550, 441);
            MinimumSize = new Size(536, 441);
            Name = "AddElectricDlg";
            StartPosition = FormStartPosition.CenterScreen;
            Text = "添加电费";
            ((System.ComponentModel.ISupportInitialize)dataLayoutControl1).EndInit();
            dataLayoutControl1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)txtStartMonth.Properties).EndInit();
            ((System.ComponentModel.ISupportInitialize)txtEndMonth.Properties).EndInit();
            ((System.ComponentModel.ISupportInitialize)gridControl11).EndInit();
            ((System.ComponentModel.ISupportInitialize)bindingSource1).EndInit();
            ((System.ComponentModel.ISupportInitialize)gridView2).EndInit();
            ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit1).EndInit();
            ((System.ComponentModel.ISupportInitialize)Root).EndInit();
            ((System.ComponentModel.ISupportInitialize)StartName).EndInit();
            ((System.ComponentModel.ISupportInitialize)结束月份).EndInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit();
            ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem3).EndInit();
            ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit11).EndInit();
            ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).EndInit();
            ResumeLayout(false);
        }
 
        #endregion
 
        private DevExpress.XtraDataLayout.DataLayoutControl dataLayoutControl1;
        private DevExpress.XtraLayout.LayoutControlGroup Root;
        private DevExpress.XtraEditors.TextEdit txtStartMonth;
        private DevExpress.XtraLayout.LayoutControlItem StartName;
        private DevExpress.XtraEditors.TextEdit txtEndMonth;
        private DevExpress.XtraLayout.LayoutControlItem 结束月份;
        private DevExpress.XtraGrid.GridControl gridControl11;
        private DevExpress.XtraGrid.Views.Grid.GridView gridView2;
        private DevExpress.XtraGrid.Columns.GridColumn colStartHour;
        private DevExpress.XtraGrid.Columns.GridColumn colStartTime;
        private DevExpress.XtraGrid.Columns.GridColumn colEndTime;
        private DevExpress.XtraGrid.Columns.GridColumn colPrice;
        private DevExpress.XtraGrid.Columns.GridColumn ColDelete;
        private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit11;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
        private System.Windows.Forms.BindingSource bindingSource1;
        private DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider dxErrorProvider1;
        private DevExpress.XtraEditors.SimpleButton btnOk;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
        private DevExpress.XtraEditors.SimpleButton Btncancel;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
        private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1;
    }
}