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
| namespace TOI1
{
partial class PositionForm : StdActForm
{
/// <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()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.Label fullnameLabel;
System.Windows.Forms.Label salaryLabel;
System.Windows.Forms.Label dept_idLabel;
this.companyDataSet = new TOI1.companyDataSet();
this.positionPrintBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.positionPrintTableAdapter = new TOI1.companyDataSetTableAdapters.positionPrintTableAdapter();
this.tableAdapterManager = new TOI1.companyDataSetTableAdapters.TableAdapterManager();
this.deptTableAdapter = new TOI1.companyDataSetTableAdapters.deptTableAdapter();
this.positionTableAdapter = new TOI1.companyDataSetTableAdapters.positionTableAdapter();
this.positionPrintDataGridView = new System.Windows.Forms.DataGridView();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.positionBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.fullnameTextBox = new System.Windows.Forms.TextBox();
this.salaryTextBox = new System.Windows.Forms.TextBox();
this.dept_idComboBox = new System.Windows.Forms.ComboBox();
this.deptBindingSource = new System.Windows.Forms.BindingSource(this.components);
fullnameLabel = new System.Windows.Forms.Label();
salaryLabel = new System.Windows.Forms.Label();
dept_idLabel = new System.Windows.Forms.Label();
this.rowManager.SuspendLayout();
this.panelTop.SuspendLayout();
this.panelRight.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.companyDataSet)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.positionPrintBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.positionPrintDataGridView)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.positionBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.deptBindingSource)).BeginInit();
this.SuspendLayout();
//
// butRemove
//
this.butRemove.Click += new System.EventHandler(this.butRemove_Click);
//
// butChange
//
this.butChange.Click += new System.EventHandler(this.butChange_Click);
//
// butAdd
//
this.butAdd.Click += new System.EventHandler(this.butAdd_Click);
//
// rowManager
//
this.rowManager.Controls.Add(fullnameLabel);
this.rowManager.Controls.Add(this.fullnameTextBox);
this.rowManager.Controls.Add(salaryLabel);
this.rowManager.Controls.Add(this.salaryTextBox);
this.rowManager.Controls.Add(dept_idLabel);
this.rowManager.Controls.Add(this.dept_idComboBox);
this.rowManager.Size = new System.Drawing.Size(214, 509);
this.rowManager.Visible = false;
this.rowManager.Controls.SetChildIndex(this.butOk, 0);
this.rowManager.Controls.SetChildIndex(this.butCancel, 0);
this.rowManager.Controls.SetChildIndex(this.dept_idComboBox, 0);
this.rowManager.Controls.SetChildIndex(dept_idLabel, 0);
this.rowManager.Controls.SetChildIndex(this.salaryTextBox, 0);
this.rowManager.Controls.SetChildIndex(salaryLabel, 0);
this.rowManager.Controls.SetChildIndex(this.fullnameTextBox, 0);
this.rowManager.Controls.SetChildIndex(fullnameLabel, 0);
//
// butCancel
//
this.butCancel.Location = new System.Drawing.Point(119, 480);
this.butCancel.Click += new System.EventHandler(this.butCancel_Click);
//
// butOk
//
this.butOk.Location = new System.Drawing.Point(38, 480);
this.butOk.Click += new System.EventHandler(this.butOk_Click);
//
// panelTop
//
this.panelTop.Size = new System.Drawing.Size(879, 50);
//
// labName
//
this.labName.Size = new System.Drawing.Size(127, 50);
this.labName.Text = "Должности";
//
// panelRight
//
this.panelRight.Location = new System.Drawing.Point(729, 50);
this.panelRight.Size = new System.Drawing.Size(150, 509);
//
// fullnameLabel
//
fullnameLabel.AutoSize = true;
fullnameLabel.Location = new System.Drawing.Point(12, 18);
fullnameLabel.Name = "fullnameLabel";
fullnameLabel.Size = new System.Drawing.Size(55, 13);
fullnameLabel.TabIndex = 2;
fullnameLabel.Text = "fullname:";
//
// salaryLabel
//
salaryLabel.AutoSize = true;
salaryLabel.Location = new System.Drawing.Point(12, 46);
salaryLabel.Name = "salaryLabel";
salaryLabel.Size = new System.Drawing.Size(39, 13);
salaryLabel.TabIndex = 4;
salaryLabel.Text = "salary:";
//
// dept_idLabel
//
dept_idLabel.AutoSize = true;
dept_idLabel.Location = new System.Drawing.Point(12, 74);
dept_idLabel.Name = "dept_idLabel";
dept_idLabel.Size = new System.Drawing.Size(47, 13);
dept_idLabel.TabIndex = 6;
dept_idLabel.Text = "dept id:";
//
// companyDataSet
//
this.companyDataSet.DataSetName = "companyDataSet";
this.companyDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// positionPrintBindingSource
//
this.positionPrintBindingSource.DataMember = "positionPrint";
this.positionPrintBindingSource.DataSource = this.companyDataSet;
//
// positionPrintTableAdapter
//
this.positionPrintTableAdapter.ClearBeforeFill = true;
//
// tableAdapterManager
//
this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
this.tableAdapterManager.deptPrintTableAdapter = null;
this.tableAdapterManager.deptTableAdapter = this.deptTableAdapter;
this.tableAdapterManager.employeeTableAdapter = null;
this.tableAdapterManager.positionTableAdapter = this.positionTableAdapter;
this.tableAdapterManager.UpdateOrder = TOI1.companyDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
// deptTableAdapter
//
this.deptTableAdapter.ClearBeforeFill = true;
//
// positionTableAdapter
//
this.positionTableAdapter.ClearBeforeFill = true;
//
// positionPrintDataGridView
//
this.positionPrintDataGridView.AutoGenerateColumns = false;
this.positionPrintDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.positionPrintDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2,
this.dataGridViewTextBoxColumn3,
this.dataGridViewTextBoxColumn4});
this.positionPrintDataGridView.DataSource = this.positionPrintBindingSource;
this.positionPrintDataGridView.Location = new System.Drawing.Point(353, 197);
this.positionPrintDataGridView.Name = "positionPrintDataGridView";
this.positionPrintDataGridView.Size = new System.Drawing.Size(278, 220);
this.positionPrintDataGridView.TabIndex = 4;
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "Должность";
this.dataGridViewTextBoxColumn1.HeaderText = "Должность";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "Заработная плата";
this.dataGridViewTextBoxColumn2.HeaderText = "Заработная плата";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.DataPropertyName = "Отдел";
this.dataGridViewTextBoxColumn3.HeaderText = "Отдел";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.DataPropertyName = "dept_id";
this.dataGridViewTextBoxColumn4.HeaderText = "dept_id";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
this.dataGridViewTextBoxColumn4.Visible = false;
//
// positionBindingSource
//
this.positionBindingSource.DataMember = "position";
this.positionBindingSource.DataSource = this.companyDataSet;
//
// fullnameTextBox
//
this.fullnameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.positionBindingSource, "fullname", true));
this.fullnameTextBox.Location = new System.Drawing.Point(73, 15);
this.fullnameTextBox.Name = "fullnameTextBox";
this.fullnameTextBox.Size = new System.Drawing.Size(121, 22);
this.fullnameTextBox.TabIndex = 3;
//
// salaryTextBox
//
this.salaryTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.positionBindingSource, "salary", true));
this.salaryTextBox.Location = new System.Drawing.Point(73, 43);
this.salaryTextBox.Name = "salaryTextBox";
this.salaryTextBox.Size = new System.Drawing.Size(121, 22);
this.salaryTextBox.TabIndex = 5;
//
// dept_idComboBox
//
this.dept_idComboBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.positionBindingSource, "dept_id", true));
this.dept_idComboBox.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.positionBindingSource, "dept_id", true));
this.dept_idComboBox.DataSource = this.deptBindingSource;
this.dept_idComboBox.DisplayMember = "fullname";
this.dept_idComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.dept_idComboBox.Location = new System.Drawing.Point(73, 71);
this.dept_idComboBox.Name = "dept_idComboBox";
this.dept_idComboBox.Size = new System.Drawing.Size(121, 21);
this.dept_idComboBox.TabIndex = 7;
this.dept_idComboBox.ValueMember = "id_dept";
this.dept_idComboBox.SelectedIndexChanged += new System.EventHandler(this.dept_idComboBox_SelectedIndexChanged);
//
// deptBindingSource
//
this.deptBindingSource.DataMember = "dept";
this.deptBindingSource.DataSource = this.companyDataSet;
//
// PositionForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(879, 559);
this.Controls.Add(this.positionPrintDataGridView);
this.Name = "PositionForm";
this.Text = "Должности";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.PositionForm_FormClosing);
this.Load += new System.EventHandler(this.PositionForm_Load);
this.Controls.SetChildIndex(this.panelTop, 0);
this.Controls.SetChildIndex(this.panelRight, 0);
this.Controls.SetChildIndex(this.positionPrintDataGridView, 0);
this.Controls.SetChildIndex(this.rowManager, 0);
this.rowManager.ResumeLayout(false);
this.rowManager.PerformLayout();
this.panelTop.ResumeLayout(false);
this.panelTop.PerformLayout();
this.panelRight.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.companyDataSet)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.positionPrintBindingSource)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.positionPrintDataGridView)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.positionBindingSource)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.deptBindingSource)).EndInit();
this.ResumeLayout(false);
}
#endregion
private companyDataSet companyDataSet;
private System.Windows.Forms.BindingSource positionPrintBindingSource;
private companyDataSetTableAdapters.positionPrintTableAdapter positionPrintTableAdapter;
private companyDataSetTableAdapters.TableAdapterManager tableAdapterManager;
private System.Windows.Forms.DataGridView positionPrintDataGridView;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.BindingSource positionBindingSource;
private companyDataSetTableAdapters.positionTableAdapter positionTableAdapter;
private System.Windows.Forms.TextBox fullnameTextBox;
private System.Windows.Forms.TextBox salaryTextBox;
private System.Windows.Forms.ComboBox dept_idComboBox;
private System.Windows.Forms.BindingSource deptBindingSource;
private companyDataSetTableAdapters.deptTableAdapter deptTableAdapter;
}
} |