123
This commit is contained in:
parent
fd6651fa5d
commit
09f10a924c
Binary file not shown.
BIN
.vs/Diplom O/v16/TestStore/0/000.testlog
Normal file
BIN
.vs/Diplom O/v16/TestStore/0/000.testlog
Normal file
Binary file not shown.
BIN
.vs/Diplom O/v16/TestStore/0/testlog.manifest
Normal file
BIN
.vs/Diplom O/v16/TestStore/0/testlog.manifest
Normal file
Binary file not shown.
@ -172,14 +172,14 @@ namespace Diplom_O.DataBase
|
||||
select a).ToArray() :
|
||||
(from a in db.Chely
|
||||
where
|
||||
a.FName.ToLower().Contains(f) ||
|
||||
a.SName.ToLower().Contains(f) ||
|
||||
a.TName.ToLower().Contains(f) ||
|
||||
(!string.IsNullOrEmpty(a.FName) && a.FName.ToLower().Contains(f)) ||
|
||||
(!string.IsNullOrEmpty(a.SName) && a.SName.ToLower().Contains(f)) ||
|
||||
(!string.IsNullOrEmpty(a.TName) && a.TName.ToLower().Contains(f)) ||
|
||||
a.Birthday.ToString("yyyy.MM.dd").ToLower().Contains(f) ||
|
||||
a.Address.ToLower().Contains(f) ||
|
||||
a.INN.ToLower().Contains(f) ||
|
||||
a.SNILS.ToLower().Contains(f) ||
|
||||
a.Pasport.ToLower().Contains(f)
|
||||
(!string.IsNullOrEmpty(a.Address) && a.Address.ToLower().Contains(f)) ||
|
||||
(!string.IsNullOrEmpty(a.INN) && a.INN.ToLower().Contains(f)) ||
|
||||
(!string.IsNullOrEmpty(a.SNILS) && a.SNILS.ToLower().Contains(f)) ||
|
||||
(!string.IsNullOrEmpty(a.Pasport) && a.Pasport.ToLower().Contains(f))
|
||||
select a).ToArray();
|
||||
}
|
||||
}
|
||||
@ -320,5 +320,21 @@ namespace Diplom_O.DataBase
|
||||
}
|
||||
catch { throw; }
|
||||
}
|
||||
|
||||
public static ChelToChel GetChelToChel(int id)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (var db = new MainDB())
|
||||
{
|
||||
var res = from a in db.ChelToChely
|
||||
where a.Id == id
|
||||
select a;
|
||||
try { return res.Single(); }
|
||||
catch { return null; }
|
||||
}
|
||||
}
|
||||
catch { throw; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -283,6 +283,12 @@
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SupportForms\SelectChelForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SupportForms\SelectChelForm.Designer.cs">
|
||||
<DependentUpon>SelectChelForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SupportForms\WorkChelForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@ -310,6 +316,9 @@
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="SupportForms\SelectChelForm.resx">
|
||||
<DependentUpon>SelectChelForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="SupportForms\WorkChelForm.resx">
|
||||
<DependentUpon>WorkChelForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
109
MainForms/ChelForm.Designer.cs
generated
109
MainForms/ChelForm.Designer.cs
generated
@ -39,13 +39,10 @@ namespace Diplom_O
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.rodGridView = new System.Windows.Forms.DataGridView();
|
||||
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
||||
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||
this.chelRodLabel = new System.Windows.Forms.LinkLabel();
|
||||
this.delRodButton = new System.Windows.Forms.Button();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.changeRodButton = new System.Windows.Forms.Button();
|
||||
this.addRodButton = new System.Windows.Forms.Button();
|
||||
this.chelGridView = new System.Windows.Forms.DataGridView();
|
||||
this.selectButton = new System.Windows.Forms.Button();
|
||||
this.delButton = new System.Windows.Forms.Button();
|
||||
this.changeButton = new System.Windows.Forms.Button();
|
||||
this.addButton = new System.Windows.Forms.Button();
|
||||
@ -69,7 +66,7 @@ namespace Diplom_O
|
||||
this.chelRodMI});
|
||||
this.menuStrip.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip.Name = "menuStrip";
|
||||
this.menuStrip.Size = new System.Drawing.Size(1144, 24);
|
||||
this.menuStrip.Size = new System.Drawing.Size(1186, 24);
|
||||
this.menuStrip.TabIndex = 1;
|
||||
this.menuStrip.Text = "menuStrip1";
|
||||
//
|
||||
@ -112,7 +109,7 @@ namespace Diplom_O
|
||||
this.errorLabel});
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 386);
|
||||
this.statusStrip1.Name = "statusStrip1";
|
||||
this.statusStrip1.Size = new System.Drawing.Size(1144, 22);
|
||||
this.statusStrip1.Size = new System.Drawing.Size(1186, 22);
|
||||
this.statusStrip1.TabIndex = 16;
|
||||
this.statusStrip1.Text = "statusStrip1";
|
||||
//
|
||||
@ -122,12 +119,10 @@ namespace Diplom_O
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBox1.Controls.Add(this.rodGridView);
|
||||
this.groupBox1.Controls.Add(this.comboBox1);
|
||||
this.groupBox1.Controls.Add(this.linkLabel1);
|
||||
this.groupBox1.Controls.Add(this.chelRodLabel);
|
||||
this.groupBox1.Controls.Add(this.delRodButton);
|
||||
this.groupBox1.Controls.Add(this.button1);
|
||||
this.groupBox1.Controls.Add(this.changeRodButton);
|
||||
this.groupBox1.Controls.Add(this.addRodButton);
|
||||
this.groupBox1.Location = new System.Drawing.Point(802, 27);
|
||||
this.groupBox1.Location = new System.Drawing.Point(844, 27);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(330, 356);
|
||||
this.groupBox1.TabIndex = 26;
|
||||
@ -149,7 +144,7 @@ namespace Diplom_O
|
||||
this.rodGridView.RowHeadersVisible = false;
|
||||
this.rodGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.rodGridView.Size = new System.Drawing.Size(318, 265);
|
||||
this.rodGridView.TabIndex = 32;
|
||||
this.rodGridView.TabIndex = 12;
|
||||
//
|
||||
// comboBox1
|
||||
//
|
||||
@ -160,51 +155,34 @@ namespace Diplom_O
|
||||
this.comboBox1.Location = new System.Drawing.Point(168, 21);
|
||||
this.comboBox1.Name = "comboBox1";
|
||||
this.comboBox1.Size = new System.Drawing.Size(156, 21);
|
||||
this.comboBox1.TabIndex = 31;
|
||||
this.comboBox1.TabIndex = 7;
|
||||
//
|
||||
// linkLabel1
|
||||
// chelRodLabel
|
||||
//
|
||||
this.linkLabel1.AutoSize = true;
|
||||
this.linkLabel1.Location = new System.Drawing.Point(37, 24);
|
||||
this.linkLabel1.Name = "linkLabel1";
|
||||
this.linkLabel1.Size = new System.Drawing.Size(81, 13);
|
||||
this.linkLabel1.TabIndex = 30;
|
||||
this.linkLabel1.TabStop = true;
|
||||
this.linkLabel1.Text = "Фамилия И.О.";
|
||||
this.chelRodLabel.AutoSize = true;
|
||||
this.chelRodLabel.Location = new System.Drawing.Point(6, 24);
|
||||
this.chelRodLabel.Name = "chelRodLabel";
|
||||
this.chelRodLabel.Size = new System.Drawing.Size(81, 13);
|
||||
this.chelRodLabel.TabIndex = 6;
|
||||
this.chelRodLabel.TabStop = true;
|
||||
this.chelRodLabel.Text = "Фамилия И.О.";
|
||||
this.chelRodLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.chelRodLabel_Clicked);
|
||||
//
|
||||
// delRodButton
|
||||
//
|
||||
this.delRodButton.Location = new System.Drawing.Point(168, 56);
|
||||
this.delRodButton.Location = new System.Drawing.Point(87, 56);
|
||||
this.delRodButton.Name = "delRodButton";
|
||||
this.delRodButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.delRodButton.TabIndex = 29;
|
||||
this.delRodButton.TabIndex = 10;
|
||||
this.delRodButton.Text = "Удалить";
|
||||
this.delRodButton.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(6, 19);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(25, 23);
|
||||
this.button1.TabIndex = 27;
|
||||
this.button1.Text = "...";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// changeRodButton
|
||||
//
|
||||
this.changeRodButton.Location = new System.Drawing.Point(87, 56);
|
||||
this.changeRodButton.Name = "changeRodButton";
|
||||
this.changeRodButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.changeRodButton.TabIndex = 28;
|
||||
this.changeRodButton.Text = "Изменить";
|
||||
this.changeRodButton.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// addRodButton
|
||||
//
|
||||
this.addRodButton.Location = new System.Drawing.Point(6, 56);
|
||||
this.addRodButton.Name = "addRodButton";
|
||||
this.addRodButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.addRodButton.TabIndex = 27;
|
||||
this.addRodButton.TabIndex = 8;
|
||||
this.addRodButton.Text = "Добавить";
|
||||
this.addRodButton.UseVisualStyleBackColor = true;
|
||||
//
|
||||
@ -222,45 +200,35 @@ namespace Diplom_O
|
||||
this.chelGridView.ReadOnly = true;
|
||||
this.chelGridView.RowHeadersVisible = false;
|
||||
this.chelGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.chelGridView.Size = new System.Drawing.Size(784, 298);
|
||||
this.chelGridView.TabIndex = 35;
|
||||
//
|
||||
// selectButton
|
||||
//
|
||||
this.selectButton.Location = new System.Drawing.Point(12, 27);
|
||||
this.selectButton.Name = "selectButton";
|
||||
this.selectButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.selectButton.TabIndex = 34;
|
||||
this.selectButton.Text = "Выбрать";
|
||||
this.selectButton.UseVisualStyleBackColor = true;
|
||||
this.selectButton.Visible = false;
|
||||
this.chelGridView.Size = new System.Drawing.Size(826, 298);
|
||||
this.chelGridView.TabIndex = 11;
|
||||
//
|
||||
// delButton
|
||||
//
|
||||
this.delButton.Location = new System.Drawing.Point(255, 27);
|
||||
this.delButton.Location = new System.Drawing.Point(174, 27);
|
||||
this.delButton.Name = "delButton";
|
||||
this.delButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.delButton.TabIndex = 33;
|
||||
this.delButton.TabIndex = 2;
|
||||
this.delButton.Text = "Удалить";
|
||||
this.delButton.UseVisualStyleBackColor = true;
|
||||
this.delButton.Click += new System.EventHandler(this.delButton_Click);
|
||||
//
|
||||
// changeButton
|
||||
//
|
||||
this.changeButton.Location = new System.Drawing.Point(174, 27);
|
||||
this.changeButton.Location = new System.Drawing.Point(93, 27);
|
||||
this.changeButton.Name = "changeButton";
|
||||
this.changeButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.changeButton.TabIndex = 32;
|
||||
this.changeButton.TabIndex = 1;
|
||||
this.changeButton.Text = "Изменить";
|
||||
this.changeButton.UseVisualStyleBackColor = true;
|
||||
this.changeButton.Click += new System.EventHandler(this.changeButton_Click);
|
||||
//
|
||||
// addButton
|
||||
//
|
||||
this.addButton.Location = new System.Drawing.Point(93, 27);
|
||||
this.addButton.Location = new System.Drawing.Point(12, 27);
|
||||
this.addButton.Name = "addButton";
|
||||
this.addButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.addButton.TabIndex = 31;
|
||||
this.addButton.TabIndex = 0;
|
||||
this.addButton.Text = "Добавить";
|
||||
this.addButton.UseVisualStyleBackColor = true;
|
||||
this.addButton.Click += new System.EventHandler(this.addButton_Click);
|
||||
@ -270,22 +238,24 @@ namespace Diplom_O
|
||||
this.showWorkerCheckBox.AutoSize = true;
|
||||
this.showWorkerCheckBox.Checked = true;
|
||||
this.showWorkerCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.showWorkerCheckBox.Location = new System.Drawing.Point(336, 31);
|
||||
this.showWorkerCheckBox.Location = new System.Drawing.Point(255, 31);
|
||||
this.showWorkerCheckBox.Name = "showWorkerCheckBox";
|
||||
this.showWorkerCheckBox.Size = new System.Drawing.Size(204, 17);
|
||||
this.showWorkerCheckBox.TabIndex = 30;
|
||||
this.showWorkerCheckBox.TabIndex = 3;
|
||||
this.showWorkerCheckBox.Text = "Поrазать/скрыть трудоустроенных";
|
||||
this.showWorkerCheckBox.UseVisualStyleBackColor = true;
|
||||
this.showWorkerCheckBox.CheckedChanged += new System.EventHandler(this.checkBox_CheckedChanged);
|
||||
//
|
||||
// dropFindButton
|
||||
//
|
||||
this.dropFindButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.dropFindButton.Location = new System.Drawing.Point(721, 360);
|
||||
this.dropFindButton.Location = new System.Drawing.Point(763, 360);
|
||||
this.dropFindButton.Name = "dropFindButton";
|
||||
this.dropFindButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.dropFindButton.TabIndex = 29;
|
||||
this.dropFindButton.TabIndex = 5;
|
||||
this.dropFindButton.Text = "Сбросить";
|
||||
this.dropFindButton.UseVisualStyleBackColor = true;
|
||||
this.dropFindButton.Click += new System.EventHandler(this.dropFindButton_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
@ -303,16 +273,16 @@ namespace Diplom_O
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.findBox.Location = new System.Drawing.Point(57, 362);
|
||||
this.findBox.Name = "findBox";
|
||||
this.findBox.Size = new System.Drawing.Size(658, 20);
|
||||
this.findBox.TabIndex = 27;
|
||||
this.findBox.Size = new System.Drawing.Size(700, 20);
|
||||
this.findBox.TabIndex = 4;
|
||||
this.findBox.TextChanged += new System.EventHandler(this.findBox_TextChanged);
|
||||
//
|
||||
// ChelForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1144, 408);
|
||||
this.ClientSize = new System.Drawing.Size(1186, 408);
|
||||
this.Controls.Add(this.chelGridView);
|
||||
this.Controls.Add(this.selectButton);
|
||||
this.Controls.Add(this.delButton);
|
||||
this.Controls.Add(this.changeButton);
|
||||
this.Controls.Add(this.addButton);
|
||||
@ -350,13 +320,10 @@ namespace Diplom_O
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.DataGridView rodGridView;
|
||||
private System.Windows.Forms.ComboBox comboBox1;
|
||||
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||
private System.Windows.Forms.LinkLabel chelRodLabel;
|
||||
private System.Windows.Forms.Button delRodButton;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button changeRodButton;
|
||||
private System.Windows.Forms.Button addRodButton;
|
||||
private System.Windows.Forms.DataGridView chelGridView;
|
||||
private System.Windows.Forms.Button selectButton;
|
||||
private System.Windows.Forms.Button delButton;
|
||||
private System.Windows.Forms.Button changeButton;
|
||||
private System.Windows.Forms.Button addButton;
|
||||
|
@ -42,14 +42,12 @@ namespace Diplom_O
|
||||
});
|
||||
filterDrop.Start();
|
||||
}
|
||||
|
||||
private void dropFindButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
findBox.Text = "";
|
||||
filterDrop = new Task(() => { return; });
|
||||
resetChelTable();
|
||||
}
|
||||
|
||||
private void resetChelTable()
|
||||
{
|
||||
try
|
||||
@ -111,22 +109,16 @@ namespace Diplom_O
|
||||
catch (Exception e) { ShowError(e.Message); return null; }
|
||||
}
|
||||
|
||||
public Shtat formResult = null;
|
||||
public ChelForm(bool select = false)
|
||||
public ChelForm()
|
||||
{
|
||||
try
|
||||
{
|
||||
InitializeComponent();
|
||||
Init(select);
|
||||
chelRodMI.Enabled = false;
|
||||
resetChelTable();
|
||||
}
|
||||
catch { this.Close(); }
|
||||
}
|
||||
public void Init(bool s)
|
||||
{
|
||||
if (s) selectButton.Visible = true;
|
||||
chelRodMI.Enabled = false;
|
||||
}
|
||||
|
||||
private void addButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
@ -178,10 +170,18 @@ namespace Diplom_O
|
||||
}
|
||||
ShowError("Ошибка перехода на новую форму.");
|
||||
}
|
||||
|
||||
private void checkBox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
resetChelTable();
|
||||
}
|
||||
|
||||
private Chel chelRod = null;
|
||||
private void chelRodLabel_Clicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
var chelForm = new SupportForms.SelectChelForm();
|
||||
chelForm.ShowDialog();
|
||||
if(chelForm.isCanceled)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
18
MainForms/ShtatForm.Designer.cs
generated
18
MainForms/ShtatForm.Designer.cs
generated
@ -60,7 +60,7 @@ namespace Diplom_O
|
||||
this.menuStrip.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip.Name = "menuStrip";
|
||||
this.menuStrip.Size = new System.Drawing.Size(342, 24);
|
||||
this.menuStrip.TabIndex = 0;
|
||||
this.menuStrip.TabIndex = 8;
|
||||
this.menuStrip.Text = "menuStrip1";
|
||||
//
|
||||
// shtatMI
|
||||
@ -98,7 +98,7 @@ namespace Diplom_O
|
||||
this.findBox.Location = new System.Drawing.Point(57, 490);
|
||||
this.findBox.Name = "findBox";
|
||||
this.findBox.Size = new System.Drawing.Size(192, 20);
|
||||
this.findBox.TabIndex = 1;
|
||||
this.findBox.TabIndex = 5;
|
||||
this.findBox.TextChanged += new System.EventHandler(this.findBox_TextChanged);
|
||||
//
|
||||
// label1
|
||||
@ -117,7 +117,7 @@ namespace Diplom_O
|
||||
this.dropFindButton.Location = new System.Drawing.Point(255, 488);
|
||||
this.dropFindButton.Name = "dropFindButton";
|
||||
this.dropFindButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.dropFindButton.TabIndex = 4;
|
||||
this.dropFindButton.TabIndex = 6;
|
||||
this.dropFindButton.Text = "Сбросить";
|
||||
this.dropFindButton.UseVisualStyleBackColor = true;
|
||||
this.dropFindButton.TextChanged += new System.EventHandler(this.dropFindButton_Click);
|
||||
@ -130,7 +130,7 @@ namespace Diplom_O
|
||||
this.freeShtatCheckBox.Location = new System.Drawing.Point(12, 56);
|
||||
this.freeShtatCheckBox.Name = "freeShtatCheckBox";
|
||||
this.freeShtatCheckBox.Size = new System.Drawing.Size(218, 17);
|
||||
this.freeShtatCheckBox.TabIndex = 6;
|
||||
this.freeShtatCheckBox.TabIndex = 4;
|
||||
this.freeShtatCheckBox.Text = "Поrазать/скрыть занятые должности";
|
||||
this.freeShtatCheckBox.UseVisualStyleBackColor = true;
|
||||
this.freeShtatCheckBox.CheckedChanged += new System.EventHandler(this.checkBox_CheckedChanged);
|
||||
@ -140,7 +140,7 @@ namespace Diplom_O
|
||||
this.addButton.Location = new System.Drawing.Point(93, 27);
|
||||
this.addButton.Name = "addButton";
|
||||
this.addButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.addButton.TabIndex = 7;
|
||||
this.addButton.TabIndex = 1;
|
||||
this.addButton.Text = "Добавить";
|
||||
this.addButton.UseVisualStyleBackColor = true;
|
||||
this.addButton.Click += new System.EventHandler(this.addButton_Click);
|
||||
@ -150,7 +150,7 @@ namespace Diplom_O
|
||||
this.changeButton.Location = new System.Drawing.Point(174, 27);
|
||||
this.changeButton.Name = "changeButton";
|
||||
this.changeButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.changeButton.TabIndex = 8;
|
||||
this.changeButton.TabIndex = 2;
|
||||
this.changeButton.Text = "Изменить";
|
||||
this.changeButton.UseVisualStyleBackColor = true;
|
||||
this.changeButton.Click += new System.EventHandler(this.changeButton_Click);
|
||||
@ -160,7 +160,7 @@ namespace Diplom_O
|
||||
this.delButton.Location = new System.Drawing.Point(255, 27);
|
||||
this.delButton.Name = "delButton";
|
||||
this.delButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.delButton.TabIndex = 9;
|
||||
this.delButton.TabIndex = 3;
|
||||
this.delButton.Text = "Удалить";
|
||||
this.delButton.UseVisualStyleBackColor = true;
|
||||
this.delButton.Click += new System.EventHandler(this.delButton_Click);
|
||||
@ -170,7 +170,7 @@ namespace Diplom_O
|
||||
this.selectButton.Location = new System.Drawing.Point(12, 27);
|
||||
this.selectButton.Name = "selectButton";
|
||||
this.selectButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.selectButton.TabIndex = 13;
|
||||
this.selectButton.TabIndex = 0;
|
||||
this.selectButton.Text = "Выбрать";
|
||||
this.selectButton.UseVisualStyleBackColor = true;
|
||||
this.selectButton.Visible = false;
|
||||
@ -190,7 +190,7 @@ namespace Diplom_O
|
||||
this.shtatGridView.RowHeadersVisible = false;
|
||||
this.shtatGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.shtatGridView.Size = new System.Drawing.Size(318, 403);
|
||||
this.shtatGridView.TabIndex = 14;
|
||||
this.shtatGridView.TabIndex = 7;
|
||||
//
|
||||
// statusStrip1
|
||||
//
|
||||
|
165
SupportForms/SelectChelForm.Designer.cs
generated
Normal file
165
SupportForms/SelectChelForm.Designer.cs
generated
Normal file
@ -0,0 +1,165 @@
|
||||
|
||||
namespace Diplom_O.SupportForms
|
||||
{
|
||||
partial class SelectChelForm
|
||||
{
|
||||
/// <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.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
||||
this.errorLabel = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.chelGridView = new System.Windows.Forms.DataGridView();
|
||||
this.dropFindButton = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.findBox = new System.Windows.Forms.TextBox();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.canceledButton = new System.Windows.Forms.Button();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chelGridView)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// statusStrip1
|
||||
//
|
||||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.errorLabel});
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 529);
|
||||
this.statusStrip1.Name = "statusStrip1";
|
||||
this.statusStrip1.Size = new System.Drawing.Size(352, 22);
|
||||
this.statusStrip1.TabIndex = 2;
|
||||
this.statusStrip1.Text = "statusStrip1";
|
||||
//
|
||||
// errorLabel
|
||||
//
|
||||
this.errorLabel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold);
|
||||
this.errorLabel.ForeColor = System.Drawing.Color.Red;
|
||||
this.errorLabel.Name = "errorLabel";
|
||||
this.errorLabel.Size = new System.Drawing.Size(57, 17);
|
||||
this.errorLabel.Text = "Ошибка.";
|
||||
this.errorLabel.Visible = false;
|
||||
//
|
||||
// chelGridView
|
||||
//
|
||||
this.chelGridView.AllowUserToAddRows = false;
|
||||
this.chelGridView.AllowUserToDeleteRows = false;
|
||||
this.chelGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chelGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.chelGridView.Location = new System.Drawing.Point(12, 41);
|
||||
this.chelGridView.MultiSelect = false;
|
||||
this.chelGridView.Name = "chelGridView";
|
||||
this.chelGridView.ReadOnly = true;
|
||||
this.chelGridView.RowHeadersVisible = false;
|
||||
this.chelGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.chelGridView.Size = new System.Drawing.Size(328, 456);
|
||||
this.chelGridView.TabIndex = 4;
|
||||
//
|
||||
// dropFindButton
|
||||
//
|
||||
this.dropFindButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.dropFindButton.Location = new System.Drawing.Point(265, 503);
|
||||
this.dropFindButton.Name = "dropFindButton";
|
||||
this.dropFindButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.dropFindButton.TabIndex = 3;
|
||||
this.dropFindButton.Text = "Сбросить";
|
||||
this.dropFindButton.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 508);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(39, 13);
|
||||
this.label1.TabIndex = 37;
|
||||
this.label1.Text = "Поиск";
|
||||
//
|
||||
// findBox
|
||||
//
|
||||
this.findBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.findBox.Location = new System.Drawing.Point(57, 505);
|
||||
this.findBox.Name = "findBox";
|
||||
this.findBox.Size = new System.Drawing.Size(202, 20);
|
||||
this.findBox.TabIndex = 2;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(12, 12);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "Выбрать";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.workButton_Click);
|
||||
//
|
||||
// canceledButton
|
||||
//
|
||||
this.canceledButton.Location = new System.Drawing.Point(93, 12);
|
||||
this.canceledButton.Name = "canceledButton";
|
||||
this.canceledButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.canceledButton.TabIndex = 1;
|
||||
this.canceledButton.Text = "Отмена";
|
||||
this.canceledButton.UseVisualStyleBackColor = true;
|
||||
this.canceledButton.Click += new System.EventHandler(this.canceledButton_Click);
|
||||
//
|
||||
// SelectChelForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(352, 551);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.canceledButton);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.chelGridView);
|
||||
this.Controls.Add(this.dropFindButton);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.findBox);
|
||||
this.Controls.Add(this.statusStrip1);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "SelectChelForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Человек";
|
||||
this.statusStrip1.ResumeLayout(false);
|
||||
this.statusStrip1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chelGridView)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private System.Windows.Forms.StatusStrip statusStrip1;
|
||||
private System.Windows.Forms.ToolStripStatusLabel errorLabel;
|
||||
private System.Windows.Forms.DataGridView chelGridView;
|
||||
private System.Windows.Forms.Button dropFindButton;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox findBox;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button canceledButton;
|
||||
}
|
||||
}
|
108
SupportForms/SelectChelForm.cs
Normal file
108
SupportForms/SelectChelForm.cs
Normal file
@ -0,0 +1,108 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using Diplom_O.DataBase;
|
||||
|
||||
namespace Diplom_O.SupportForms
|
||||
{
|
||||
public partial class SelectChelForm : Form
|
||||
{
|
||||
private Task errDrop;
|
||||
private void ShowError(string msg = null)
|
||||
{
|
||||
errorLabel.Text = string.IsNullOrEmpty(msg) ? "Неизвестная ошибка." : msg;
|
||||
errorLabel.Visible = true;
|
||||
errDrop = new Task(() =>
|
||||
{
|
||||
var fd = errDrop.Id;
|
||||
Task.Delay(5000).Wait();
|
||||
if (errDrop.Id == fd)
|
||||
if (InvokeRequired) Invoke((Action)(() => { errorLabel.Visible = false; }));
|
||||
else errorLabel.Visible = false;
|
||||
});
|
||||
errDrop.Start();
|
||||
}
|
||||
|
||||
private void resetChelTable()
|
||||
{
|
||||
try
|
||||
{
|
||||
{
|
||||
chelGridView.Rows.Clear();
|
||||
chelGridView.Columns.Clear();
|
||||
var c = chelGridView.Columns;
|
||||
c.Add("Id", "№");
|
||||
c.Add("FName", "Фамилия");
|
||||
c.Add("SName", "Имя");
|
||||
c.Add("TName", "Отчество");
|
||||
c.Add("Birthday", "Дата рождения");
|
||||
c.Add("Male", "Пол");
|
||||
c[0].Width = 40;
|
||||
c[1].Width = 120;
|
||||
c[1].Width = 120;
|
||||
c[1].Width = 120;
|
||||
c[4].Width = 80;
|
||||
c[5].Width = 80;
|
||||
}
|
||||
{
|
||||
var arr = FuncDB.ListChel(findBox.Text);
|
||||
var r = chelGridView.Rows;
|
||||
foreach (var chel in arr)
|
||||
r.Add(new object[] {
|
||||
chel.Id,
|
||||
chel.FName,
|
||||
chel.SName,
|
||||
chel.TName,
|
||||
chel.Birthday.ToString("yyyy.MM.dd"),
|
||||
chel.Male ? "Муж" : "Жен"
|
||||
});
|
||||
}
|
||||
if (chelGridView.Rows.Count > 0)
|
||||
chelGridView.Rows[0].Selected = true;
|
||||
}
|
||||
catch (Exception e) { ShowError(e.Message); }
|
||||
}
|
||||
private Chel selectedChel()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (chelGridView.SelectedRows.Count != 1) throw new Exception("Человек не выбран.");
|
||||
var chel = FuncDB.GetChel((int)chelGridView.SelectedRows[0].Cells[0].Value);
|
||||
return chel;
|
||||
}
|
||||
catch (Exception e) { ShowError(e.Message); return null; }
|
||||
}
|
||||
|
||||
public bool isCanceled = false;
|
||||
private Chel chel = null;
|
||||
public SelectChelForm(Chel chel = null)
|
||||
{
|
||||
InitializeComponent();
|
||||
resetChelTable();
|
||||
}
|
||||
|
||||
private void workButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
chel = selectedChel();
|
||||
this.Close();
|
||||
}
|
||||
catch (Exception ex) {
|
||||
chel = null;
|
||||
ShowError(ex.Message);
|
||||
}
|
||||
}
|
||||
private void canceledButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
isCanceled = true;
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
126
SupportForms/SelectChelForm.resx
Normal file
126
SupportForms/SelectChelForm.resx
Normal file
@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
18
SupportForms/WorkChelForm.Designer.cs
generated
18
SupportForms/WorkChelForm.Designer.cs
generated
@ -92,7 +92,7 @@ namespace Diplom_O.SupportForms
|
||||
this.workButton.Location = new System.Drawing.Point(245, 402);
|
||||
this.workButton.Name = "workButton";
|
||||
this.workButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.workButton.TabIndex = 5;
|
||||
this.workButton.TabIndex = 9;
|
||||
this.workButton.Text = "Добавить";
|
||||
this.workButton.UseVisualStyleBackColor = true;
|
||||
this.workButton.Click += new System.EventHandler(this.workButton_Click);
|
||||
@ -102,7 +102,7 @@ namespace Diplom_O.SupportForms
|
||||
this.canceledButton.Location = new System.Drawing.Point(164, 402);
|
||||
this.canceledButton.Name = "canceledButton";
|
||||
this.canceledButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.canceledButton.TabIndex = 6;
|
||||
this.canceledButton.TabIndex = 10;
|
||||
this.canceledButton.Text = "Отмена";
|
||||
this.canceledButton.UseVisualStyleBackColor = true;
|
||||
this.canceledButton.Click += new System.EventHandler(this.canceledButton_Click);
|
||||
@ -112,7 +112,7 @@ namespace Diplom_O.SupportForms
|
||||
this.tNameBox.Location = new System.Drawing.Point(104, 64);
|
||||
this.tNameBox.Name = "tNameBox";
|
||||
this.tNameBox.Size = new System.Drawing.Size(216, 20);
|
||||
this.tNameBox.TabIndex = 7;
|
||||
this.tNameBox.TabIndex = 2;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
@ -200,7 +200,7 @@ namespace Diplom_O.SupportForms
|
||||
this.addressBox.Location = new System.Drawing.Point(104, 142);
|
||||
this.addressBox.Name = "addressBox";
|
||||
this.addressBox.Size = new System.Drawing.Size(216, 98);
|
||||
this.addressBox.TabIndex = 38;
|
||||
this.addressBox.TabIndex = 5;
|
||||
this.addressBox.Text = "";
|
||||
//
|
||||
// pasportBox
|
||||
@ -208,7 +208,7 @@ namespace Diplom_O.SupportForms
|
||||
this.pasportBox.Location = new System.Drawing.Point(104, 298);
|
||||
this.pasportBox.Name = "pasportBox";
|
||||
this.pasportBox.Size = new System.Drawing.Size(216, 98);
|
||||
this.pasportBox.TabIndex = 39;
|
||||
this.pasportBox.TabIndex = 8;
|
||||
this.pasportBox.Text = "";
|
||||
//
|
||||
// maleBox
|
||||
@ -221,7 +221,7 @@ namespace Diplom_O.SupportForms
|
||||
this.maleBox.Location = new System.Drawing.Point(104, 90);
|
||||
this.maleBox.Name = "maleBox";
|
||||
this.maleBox.Size = new System.Drawing.Size(216, 21);
|
||||
this.maleBox.TabIndex = 40;
|
||||
this.maleBox.TabIndex = 3;
|
||||
//
|
||||
// birthdayBox
|
||||
//
|
||||
@ -229,7 +229,7 @@ namespace Diplom_O.SupportForms
|
||||
this.birthdayBox.Location = new System.Drawing.Point(104, 116);
|
||||
this.birthdayBox.Name = "birthdayBox";
|
||||
this.birthdayBox.Size = new System.Drawing.Size(216, 20);
|
||||
this.birthdayBox.TabIndex = 41;
|
||||
this.birthdayBox.TabIndex = 4;
|
||||
//
|
||||
// snilsBox
|
||||
//
|
||||
@ -237,7 +237,7 @@ namespace Diplom_O.SupportForms
|
||||
this.snilsBox.Mask = "000-000-000 00";
|
||||
this.snilsBox.Name = "snilsBox";
|
||||
this.snilsBox.Size = new System.Drawing.Size(216, 20);
|
||||
this.snilsBox.TabIndex = 42;
|
||||
this.snilsBox.TabIndex = 7;
|
||||
//
|
||||
// innBox
|
||||
//
|
||||
@ -245,7 +245,7 @@ namespace Diplom_O.SupportForms
|
||||
this.innBox.Mask = "000000000000";
|
||||
this.innBox.Name = "innBox";
|
||||
this.innBox.Size = new System.Drawing.Size(216, 20);
|
||||
this.innBox.TabIndex = 43;
|
||||
this.innBox.TabIndex = 6;
|
||||
//
|
||||
// WorkChelForm
|
||||
//
|
||||
|
20
SupportForms/WorkShtatForm.Designer.cs
generated
20
SupportForms/WorkShtatForm.Designer.cs
generated
@ -33,11 +33,11 @@ namespace Diplom_O.SupportForms
|
||||
this.kolvoBox = new System.Windows.Forms.TextBox();
|
||||
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
||||
this.errorLabel = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.busySizeLabel = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.workButton = new System.Windows.Forms.Button();
|
||||
this.canceledButton = new System.Windows.Forms.Button();
|
||||
this.busySizeLabel = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
@ -75,6 +75,13 @@ namespace Diplom_O.SupportForms
|
||||
this.errorLabel.Text = "Ошибка.";
|
||||
this.errorLabel.Visible = false;
|
||||
//
|
||||
// busySizeLabel
|
||||
//
|
||||
this.busySizeLabel.Name = "busySizeLabel";
|
||||
this.busySizeLabel.Size = new System.Drawing.Size(51, 17);
|
||||
this.busySizeLabel.Text = "Занято: ";
|
||||
this.busySizeLabel.Visible = false;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
@ -98,7 +105,7 @@ namespace Diplom_O.SupportForms
|
||||
this.workButton.Location = new System.Drawing.Point(175, 64);
|
||||
this.workButton.Name = "workButton";
|
||||
this.workButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.workButton.TabIndex = 5;
|
||||
this.workButton.TabIndex = 2;
|
||||
this.workButton.Text = "Добавить";
|
||||
this.workButton.UseVisualStyleBackColor = true;
|
||||
this.workButton.Click += new System.EventHandler(this.workButton_Click);
|
||||
@ -108,18 +115,11 @@ namespace Diplom_O.SupportForms
|
||||
this.canceledButton.Location = new System.Drawing.Point(94, 64);
|
||||
this.canceledButton.Name = "canceledButton";
|
||||
this.canceledButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.canceledButton.TabIndex = 6;
|
||||
this.canceledButton.TabIndex = 3;
|
||||
this.canceledButton.Text = "Отмена";
|
||||
this.canceledButton.UseVisualStyleBackColor = true;
|
||||
this.canceledButton.Click += new System.EventHandler(this.canceledButton_Click);
|
||||
//
|
||||
// busySizeLabel
|
||||
//
|
||||
this.busySizeLabel.Name = "busySizeLabel";
|
||||
this.busySizeLabel.Size = new System.Drawing.Size(51, 17);
|
||||
this.busySizeLabel.Text = "Занято: ";
|
||||
this.busySizeLabel.Visible = false;
|
||||
//
|
||||
// WorkShtatForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
204ad71c07c2e68492bf31d8fc5ca1880f83504e
|
||||
1148ccb2a31d1ac77568480045306c60e78ce74a
|
||||
|
@ -63,3 +63,69 @@ D:\GIT\Diplom O\obj\Debug\Diplom O.csproj.CopyComplete
|
||||
D:\GIT\Diplom O\obj\Debug\Diplom_O.SupportForms.WorkShtatForm.resources
|
||||
D:\GIT\Diplom O\obj\Debug\Diplom_O.ChelForm.resources
|
||||
D:\GIT\Diplom O\obj\Debug\Diplom_O.SupportForms.WorkChelForm.resources
|
||||
F:\GIT\Diplom_O\bin\Debug\runtimes\win-x86\native\e_sqlite3.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\runtimes\win-x64\native\e_sqlite3.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\runtimes\win-arm\native\e_sqlite3.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Diplom O.exe.config
|
||||
F:\GIT\Diplom_O\bin\Debug\Diplom O.exe
|
||||
F:\GIT\Diplom_O\bin\Debug\Diplom O.pdb
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Data.Sqlite.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.EntityFrameworkCore.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.EntityFrameworkCore.Relational.Design.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.EntityFrameworkCore.Relational.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.EntityFrameworkCore.Sqlite.Design.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.EntityFrameworkCore.Sqlite.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.Caching.Abstractions.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.Caching.Memory.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.DependencyInjection.Abstractions.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.DependencyInjection.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.Logging.Abstractions.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.Logging.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.Options.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.Primitives.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Remotion.Linq.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\SQLitePCLRaw.batteries_v2.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\SQLitePCLRaw.core.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\SQLitePCLRaw.nativelibrary.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\SQLitePCLRaw.provider.dynamic_cdecl.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Buffers.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Collections.Immutable.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Diagnostics.DiagnosticSource.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Interactive.Async.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Memory.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Numerics.Vectors.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Runtime.CompilerServices.Unsafe.dll
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Data.Sqlite.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.EntityFrameworkCore.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.EntityFrameworkCore.Relational.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.EntityFrameworkCore.Relational.Design.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.EntityFrameworkCore.Sqlite.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.EntityFrameworkCore.Sqlite.Design.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.Caching.Abstractions.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.Caching.Memory.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.DependencyInjection.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.DependencyInjection.Abstractions.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.Logging.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.Logging.Abstractions.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.Options.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Microsoft.Extensions.Primitives.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\Remotion.Linq.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Buffers.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Collections.Immutable.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Diagnostics.DiagnosticSource.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Interactive.Async.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Memory.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Numerics.Vectors.xml
|
||||
F:\GIT\Diplom_O\bin\Debug\System.Runtime.CompilerServices.Unsafe.xml
|
||||
F:\GIT\Diplom_O\obj\Debug\Diplom O.csproj.AssemblyReference.cache
|
||||
F:\GIT\Diplom_O\obj\Debug\Diplom_O.ChelForm.resources
|
||||
F:\GIT\Diplom_O\obj\Debug\Diplom_O.ShtatForm.resources
|
||||
F:\GIT\Diplom_O\obj\Debug\Diplom_O.Properties.Resources.resources
|
||||
F:\GIT\Diplom_O\obj\Debug\Diplom_O.SupportForms.WorkChelForm.resources
|
||||
F:\GIT\Diplom_O\obj\Debug\Diplom_O.SupportForms.WorkShtatForm.resources
|
||||
F:\GIT\Diplom_O\obj\Debug\Diplom O.csproj.GenerateResource.cache
|
||||
F:\GIT\Diplom_O\obj\Debug\Diplom O.csproj.CoreCompileInputs.cache
|
||||
F:\GIT\Diplom_O\obj\Debug\Diplom O.csproj.CopyComplete
|
||||
F:\GIT\Diplom_O\obj\Debug\Diplom O.exe
|
||||
F:\GIT\Diplom_O\obj\Debug\Diplom O.pdb
|
||||
F:\GIT\Diplom_O\obj\Debug\Diplom_O.SupportForms.SelectChelForm.resources
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
obj/Debug/Diplom_O.SupportForms.SelectChelForm.resources
Normal file
BIN
obj/Debug/Diplom_O.SupportForms.SelectChelForm.resources
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user