First Commit
This commit is contained in:
246
MainForms/ChelForm.Designer.cs
generated
Normal file
246
MainForms/ChelForm.Designer.cs
generated
Normal file
@@ -0,0 +1,246 @@
|
||||
|
||||
namespace Diplom_O
|
||||
{
|
||||
partial class ChelForm
|
||||
{
|
||||
/// <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.menuStrip = new System.Windows.Forms.MenuStrip();
|
||||
this.shtatMI = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.rabitnikiMI = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.otpBolMI = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.chelRodMI = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.errorLabel = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
||||
this.shtatGridView = 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();
|
||||
this.freeShtatCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.dropFindButton = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.findBox = new System.Windows.Forms.TextBox();
|
||||
this.menuStrip.SuspendLayout();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.shtatGridView)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// menuStrip
|
||||
//
|
||||
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.shtatMI,
|
||||
this.rabitnikiMI,
|
||||
this.otpBolMI,
|
||||
this.chelRodMI});
|
||||
this.menuStrip.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip.Name = "menuStrip";
|
||||
this.menuStrip.Size = new System.Drawing.Size(1055, 24);
|
||||
this.menuStrip.TabIndex = 1;
|
||||
this.menuStrip.Text = "menuStrip1";
|
||||
//
|
||||
// shtatMI
|
||||
//
|
||||
this.shtatMI.Name = "shtatMI";
|
||||
this.shtatMI.Size = new System.Drawing.Size(46, 20);
|
||||
this.shtatMI.Text = "Штат";
|
||||
//
|
||||
// rabitnikiMI
|
||||
//
|
||||
this.rabitnikiMI.Name = "rabitnikiMI";
|
||||
this.rabitnikiMI.Size = new System.Drawing.Size(78, 20);
|
||||
this.rabitnikiMI.Text = "Работники";
|
||||
//
|
||||
// otpBolMI
|
||||
//
|
||||
this.otpBolMI.Name = "otpBolMI";
|
||||
this.otpBolMI.Size = new System.Drawing.Size(100, 20);
|
||||
this.otpBolMI.Text = "Отпуск/Больн.";
|
||||
//
|
||||
// chelRodMI
|
||||
//
|
||||
this.chelRodMI.Name = "chelRodMI";
|
||||
this.chelRodMI.Size = new System.Drawing.Size(95, 20);
|
||||
this.chelRodMI.Text = "Люди/Родств.";
|
||||
//
|
||||
// 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(137, 17);
|
||||
this.errorLabel.Text = "Отображение ошибки";
|
||||
this.errorLabel.Visible = false;
|
||||
//
|
||||
// statusStrip1
|
||||
//
|
||||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.errorLabel});
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 545);
|
||||
this.statusStrip1.Name = "statusStrip1";
|
||||
this.statusStrip1.Size = new System.Drawing.Size(1055, 22);
|
||||
this.statusStrip1.TabIndex = 16;
|
||||
this.statusStrip1.Text = "statusStrip1";
|
||||
//
|
||||
// shtatGridView
|
||||
//
|
||||
this.shtatGridView.AllowUserToAddRows = false;
|
||||
this.shtatGridView.AllowUserToDeleteRows = false;
|
||||
this.shtatGridView.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.shtatGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.shtatGridView.Location = new System.Drawing.Point(12, 112);
|
||||
this.shtatGridView.MultiSelect = false;
|
||||
this.shtatGridView.Name = "shtatGridView";
|
||||
this.shtatGridView.ReadOnly = true;
|
||||
this.shtatGridView.RowHeadersVisible = false;
|
||||
this.shtatGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.shtatGridView.Size = new System.Drawing.Size(318, 430);
|
||||
this.shtatGridView.TabIndex = 25;
|
||||
//
|
||||
// selectButton
|
||||
//
|
||||
this.selectButton.Location = new System.Drawing.Point(255, 83);
|
||||
this.selectButton.Name = "selectButton";
|
||||
this.selectButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.selectButton.TabIndex = 24;
|
||||
this.selectButton.Text = "Выбрать";
|
||||
this.selectButton.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// delButton
|
||||
//
|
||||
this.delButton.Location = new System.Drawing.Point(174, 83);
|
||||
this.delButton.Name = "delButton";
|
||||
this.delButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.delButton.TabIndex = 23;
|
||||
this.delButton.Text = "Удалить";
|
||||
this.delButton.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// changeButton
|
||||
//
|
||||
this.changeButton.Location = new System.Drawing.Point(93, 83);
|
||||
this.changeButton.Name = "changeButton";
|
||||
this.changeButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.changeButton.TabIndex = 22;
|
||||
this.changeButton.Text = "Изменить";
|
||||
this.changeButton.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// addButton
|
||||
//
|
||||
this.addButton.Location = new System.Drawing.Point(12, 83);
|
||||
this.addButton.Name = "addButton";
|
||||
this.addButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.addButton.TabIndex = 21;
|
||||
this.addButton.Text = "Добавить";
|
||||
this.addButton.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// freeShtatCheckBox
|
||||
//
|
||||
this.freeShtatCheckBox.AutoSize = true;
|
||||
this.freeShtatCheckBox.Checked = true;
|
||||
this.freeShtatCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.freeShtatCheckBox.Location = new System.Drawing.Point(15, 58);
|
||||
this.freeShtatCheckBox.Name = "freeShtatCheckBox";
|
||||
this.freeShtatCheckBox.Size = new System.Drawing.Size(218, 17);
|
||||
this.freeShtatCheckBox.TabIndex = 20;
|
||||
this.freeShtatCheckBox.Text = "Поrазать/скрыть занятые должности";
|
||||
this.freeShtatCheckBox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// dropFindButton
|
||||
//
|
||||
this.dropFindButton.Location = new System.Drawing.Point(255, 25);
|
||||
this.dropFindButton.Name = "dropFindButton";
|
||||
this.dropFindButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.dropFindButton.TabIndex = 19;
|
||||
this.dropFindButton.Text = "Сбросить";
|
||||
this.dropFindButton.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 30);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(39, 13);
|
||||
this.label1.TabIndex = 18;
|
||||
this.label1.Text = "Поиск";
|
||||
//
|
||||
// findBox
|
||||
//
|
||||
this.findBox.Location = new System.Drawing.Point(57, 27);
|
||||
this.findBox.Name = "findBox";
|
||||
this.findBox.Size = new System.Drawing.Size(192, 20);
|
||||
this.findBox.TabIndex = 17;
|
||||
//
|
||||
// ChelForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1055, 567);
|
||||
this.Controls.Add(this.shtatGridView);
|
||||
this.Controls.Add(this.selectButton);
|
||||
this.Controls.Add(this.delButton);
|
||||
this.Controls.Add(this.changeButton);
|
||||
this.Controls.Add(this.addButton);
|
||||
this.Controls.Add(this.freeShtatCheckBox);
|
||||
this.Controls.Add(this.dropFindButton);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.findBox);
|
||||
this.Controls.Add(this.statusStrip1);
|
||||
this.Controls.Add(this.menuStrip);
|
||||
this.Name = "ChelForm";
|
||||
this.Text = "ChelForm";
|
||||
this.menuStrip.ResumeLayout(false);
|
||||
this.menuStrip.PerformLayout();
|
||||
this.statusStrip1.ResumeLayout(false);
|
||||
this.statusStrip1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.shtatGridView)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.MenuStrip menuStrip;
|
||||
private System.Windows.Forms.ToolStripMenuItem shtatMI;
|
||||
private System.Windows.Forms.ToolStripMenuItem rabitnikiMI;
|
||||
private System.Windows.Forms.ToolStripMenuItem otpBolMI;
|
||||
private System.Windows.Forms.ToolStripMenuItem chelRodMI;
|
||||
private System.Windows.Forms.ToolStripStatusLabel errorLabel;
|
||||
private System.Windows.Forms.StatusStrip statusStrip1;
|
||||
private System.Windows.Forms.DataGridView shtatGridView;
|
||||
private System.Windows.Forms.Button selectButton;
|
||||
private System.Windows.Forms.Button delButton;
|
||||
private System.Windows.Forms.Button changeButton;
|
||||
private System.Windows.Forms.Button addButton;
|
||||
private System.Windows.Forms.CheckBox freeShtatCheckBox;
|
||||
private System.Windows.Forms.Button dropFindButton;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox findBox;
|
||||
}
|
||||
}
|
50
MainForms/ChelForm.cs
Normal file
50
MainForms/ChelForm.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
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;
|
||||
|
||||
namespace Diplom_O
|
||||
{
|
||||
public partial class ChelForm : Form
|
||||
{
|
||||
public ChelForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void delButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void changeButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void addButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void freeShtatCheckBox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void dropFindButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void findBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
126
MainForms/ChelForm.resx
Normal file
126
MainForms/ChelForm.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="menuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>248, 17</value>
|
||||
</metadata>
|
||||
</root>
|
40
MainForms/OtpForm.Designer.cs
generated
Normal file
40
MainForms/OtpForm.Designer.cs
generated
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
namespace Diplom_O
|
||||
{
|
||||
partial class OtpForm
|
||||
{
|
||||
/// <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();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "OtpForm";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
20
MainForms/OtpForm.cs
Normal file
20
MainForms/OtpForm.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
|
||||
namespace Diplom_O
|
||||
{
|
||||
public partial class OtpForm : Form
|
||||
{
|
||||
public OtpForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
40
MainForms/RabForm.Designer.cs
generated
Normal file
40
MainForms/RabForm.Designer.cs
generated
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
namespace Diplom_O
|
||||
{
|
||||
partial class RabForm
|
||||
{
|
||||
/// <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();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "RabForm";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
20
MainForms/RabForm.cs
Normal file
20
MainForms/RabForm.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
|
||||
namespace Diplom_O
|
||||
{
|
||||
public partial class RabForm : Form
|
||||
{
|
||||
public RabForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
264
MainForms/ShtatForm.Designer.cs
generated
Normal file
264
MainForms/ShtatForm.Designer.cs
generated
Normal file
@@ -0,0 +1,264 @@
|
||||
|
||||
namespace Diplom_O
|
||||
{
|
||||
partial class ShtatForm
|
||||
{
|
||||
/// <summary>
|
||||
/// Обязательная переменная конструктора.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Освободить все используемые ресурсы.
|
||||
/// </summary>
|
||||
/// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Код, автоматически созданный конструктором форм Windows
|
||||
|
||||
/// <summary>
|
||||
/// Требуемый метод для поддержки конструктора — не изменяйте
|
||||
/// содержимое этого метода с помощью редактора кода.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.menuStrip = new System.Windows.Forms.MenuStrip();
|
||||
this.shtatMI = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.rabitnikiMI = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.otpBolMI = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.chelRodMI = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.findBox = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.dropFindButton = new System.Windows.Forms.Button();
|
||||
this.freeShtatCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.addButton = new System.Windows.Forms.Button();
|
||||
this.changeButton = new System.Windows.Forms.Button();
|
||||
this.delButton = new System.Windows.Forms.Button();
|
||||
this.selectButton = new System.Windows.Forms.Button();
|
||||
this.shtatGridView = new System.Windows.Forms.DataGridView();
|
||||
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
||||
this.errorLabel = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.menuStrip.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.shtatGridView)).BeginInit();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// menuStrip
|
||||
//
|
||||
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.shtatMI,
|
||||
this.rabitnikiMI,
|
||||
this.otpBolMI,
|
||||
this.chelRodMI});
|
||||
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.Text = "menuStrip1";
|
||||
//
|
||||
// shtatMI
|
||||
//
|
||||
this.shtatMI.Name = "shtatMI";
|
||||
this.shtatMI.Size = new System.Drawing.Size(46, 20);
|
||||
this.shtatMI.Text = "Штат";
|
||||
this.shtatMI.Click += new System.EventHandler(this.MI_Click);
|
||||
//
|
||||
// rabitnikiMI
|
||||
//
|
||||
this.rabitnikiMI.Name = "rabitnikiMI";
|
||||
this.rabitnikiMI.Size = new System.Drawing.Size(78, 20);
|
||||
this.rabitnikiMI.Text = "Работники";
|
||||
this.rabitnikiMI.Click += new System.EventHandler(this.MI_Click);
|
||||
//
|
||||
// otpBolMI
|
||||
//
|
||||
this.otpBolMI.Name = "otpBolMI";
|
||||
this.otpBolMI.Size = new System.Drawing.Size(100, 20);
|
||||
this.otpBolMI.Text = "Отпуск/Больн.";
|
||||
this.otpBolMI.Click += new System.EventHandler(this.MI_Click);
|
||||
//
|
||||
// chelRodMI
|
||||
//
|
||||
this.chelRodMI.Name = "chelRodMI";
|
||||
this.chelRodMI.Size = new System.Drawing.Size(95, 20);
|
||||
this.chelRodMI.Text = "Люди/Родств.";
|
||||
this.chelRodMI.Click += new System.EventHandler(this.MI_Click);
|
||||
//
|
||||
// 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, 490);
|
||||
this.findBox.Name = "findBox";
|
||||
this.findBox.Size = new System.Drawing.Size(192, 20);
|
||||
this.findBox.TabIndex = 1;
|
||||
this.findBox.TextChanged += new System.EventHandler(this.findBox_TextChanged);
|
||||
//
|
||||
// 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, 493);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(39, 13);
|
||||
this.label1.TabIndex = 3;
|
||||
this.label1.Text = "Поиск";
|
||||
//
|
||||
// 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(255, 488);
|
||||
this.dropFindButton.Name = "dropFindButton";
|
||||
this.dropFindButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.dropFindButton.TabIndex = 4;
|
||||
this.dropFindButton.Text = "Сбросить";
|
||||
this.dropFindButton.UseVisualStyleBackColor = true;
|
||||
this.dropFindButton.TextChanged += new System.EventHandler(this.dropFindButton_Click);
|
||||
//
|
||||
// freeShtatCheckBox
|
||||
//
|
||||
this.freeShtatCheckBox.AutoSize = true;
|
||||
this.freeShtatCheckBox.Checked = true;
|
||||
this.freeShtatCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
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.Text = "Поrазать/скрыть занятые должности";
|
||||
this.freeShtatCheckBox.UseVisualStyleBackColor = true;
|
||||
this.freeShtatCheckBox.CheckedChanged += new System.EventHandler(this.freeShtatCheckBox_CheckedChanged);
|
||||
//
|
||||
// addButton
|
||||
//
|
||||
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 = 7;
|
||||
this.addButton.Text = "Добавить";
|
||||
this.addButton.UseVisualStyleBackColor = true;
|
||||
this.addButton.Click += new System.EventHandler(this.addButton_Click);
|
||||
//
|
||||
// changeButton
|
||||
//
|
||||
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 = 8;
|
||||
this.changeButton.Text = "Изменить";
|
||||
this.changeButton.UseVisualStyleBackColor = true;
|
||||
this.changeButton.Click += new System.EventHandler(this.changeButton_Click);
|
||||
//
|
||||
// delButton
|
||||
//
|
||||
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 = 9;
|
||||
this.delButton.Text = "Удалить";
|
||||
this.delButton.UseVisualStyleBackColor = true;
|
||||
this.delButton.Click += new System.EventHandler(this.delButton_Click);
|
||||
//
|
||||
// selectButton
|
||||
//
|
||||
this.selectButton.Location = new System.Drawing.Point(255, 27);
|
||||
this.selectButton.Name = "selectButton";
|
||||
this.selectButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.selectButton.TabIndex = 13;
|
||||
this.selectButton.Text = "Выбрать";
|
||||
this.selectButton.UseVisualStyleBackColor = true;
|
||||
this.selectButton.Visible = false;
|
||||
//
|
||||
// shtatGridView
|
||||
//
|
||||
this.shtatGridView.AllowUserToAddRows = false;
|
||||
this.shtatGridView.AllowUserToDeleteRows = false;
|
||||
this.shtatGridView.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.shtatGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.shtatGridView.Location = new System.Drawing.Point(12, 79);
|
||||
this.shtatGridView.MultiSelect = false;
|
||||
this.shtatGridView.Name = "shtatGridView";
|
||||
this.shtatGridView.ReadOnly = true;
|
||||
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;
|
||||
//
|
||||
// statusStrip1
|
||||
//
|
||||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.errorLabel});
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 514);
|
||||
this.statusStrip1.Name = "statusStrip1";
|
||||
this.statusStrip1.Size = new System.Drawing.Size(342, 22);
|
||||
this.statusStrip1.TabIndex = 15;
|
||||
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(137, 17);
|
||||
this.errorLabel.Text = "Отображение ошибки";
|
||||
this.errorLabel.Visible = false;
|
||||
//
|
||||
// ShtatForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(342, 536);
|
||||
this.Controls.Add(this.statusStrip1);
|
||||
this.Controls.Add(this.shtatGridView);
|
||||
this.Controls.Add(this.selectButton);
|
||||
this.Controls.Add(this.delButton);
|
||||
this.Controls.Add(this.changeButton);
|
||||
this.Controls.Add(this.addButton);
|
||||
this.Controls.Add(this.freeShtatCheckBox);
|
||||
this.Controls.Add(this.dropFindButton);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.findBox);
|
||||
this.Controls.Add(this.menuStrip);
|
||||
this.MainMenuStrip = this.menuStrip;
|
||||
this.Name = "ShtatForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Штат";
|
||||
this.menuStrip.ResumeLayout(false);
|
||||
this.menuStrip.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.shtatGridView)).EndInit();
|
||||
this.statusStrip1.ResumeLayout(false);
|
||||
this.statusStrip1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.MenuStrip menuStrip;
|
||||
private System.Windows.Forms.ToolStripMenuItem rabitnikiMI;
|
||||
private System.Windows.Forms.TextBox findBox;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button dropFindButton;
|
||||
private System.Windows.Forms.CheckBox freeShtatCheckBox;
|
||||
private System.Windows.Forms.Button addButton;
|
||||
private System.Windows.Forms.Button changeButton;
|
||||
private System.Windows.Forms.Button delButton;
|
||||
private System.Windows.Forms.Button selectButton;
|
||||
private System.Windows.Forms.DataGridView shtatGridView;
|
||||
private System.Windows.Forms.StatusStrip statusStrip1;
|
||||
private System.Windows.Forms.ToolStripStatusLabel errorLabel;
|
||||
private System.Windows.Forms.ToolStripMenuItem shtatMI;
|
||||
private System.Windows.Forms.ToolStripMenuItem otpBolMI;
|
||||
private System.Windows.Forms.ToolStripMenuItem chelRodMI;
|
||||
}
|
||||
}
|
||||
|
169
MainForms/ShtatForm.cs
Normal file
169
MainForms/ShtatForm.cs
Normal file
@@ -0,0 +1,169 @@
|
||||
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
|
||||
{
|
||||
public partial class ShtatForm : 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 Task filterDrop;
|
||||
private void findBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
filterDrop = new Task(() =>
|
||||
{
|
||||
var fd = filterDrop.Id;
|
||||
Task.Delay(1000).Wait();
|
||||
if (filterDrop.Id == fd)
|
||||
if (InvokeRequired) Invoke((Action)(() => { resetShatTable(); }));
|
||||
else resetShatTable();
|
||||
});
|
||||
filterDrop.Start();
|
||||
}
|
||||
private void dropFindButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
findBox.Text = "";
|
||||
filterDrop = new Task(() => { return; });
|
||||
resetShatTable();
|
||||
}
|
||||
|
||||
private void resetShatTable()
|
||||
{
|
||||
try
|
||||
{
|
||||
{
|
||||
shtatGridView.Rows.Clear();
|
||||
shtatGridView.Columns.Clear();
|
||||
var c = shtatGridView.Columns;
|
||||
c.Add("Id", "№");
|
||||
c.Add("Dolj", "Должность");
|
||||
c.Add("Kolvo", "Кол-во");
|
||||
c.Add("Free", "Своб.");
|
||||
c[0].Width = 40;
|
||||
c[1].Width = 120;
|
||||
c[2].Width = 40;
|
||||
c[3].Width = 40;
|
||||
}
|
||||
{
|
||||
var arr = FuncDB.ListShtat(findBox.Text);
|
||||
var r = shtatGridView.Rows;
|
||||
foreach (var shtat in arr)
|
||||
if (shtat.ost != 0)
|
||||
r.Add(new object[] {
|
||||
shtat.shtat.Id,
|
||||
shtat.shtat.Doljnost,
|
||||
shtat.shtat.Size,
|
||||
shtat.ost
|
||||
});
|
||||
}
|
||||
if (shtatGridView.Rows.Count > 0)
|
||||
shtatGridView.Rows[0].Selected = true;
|
||||
}
|
||||
catch (Exception e) { ShowError(e.Message); }
|
||||
}
|
||||
private Shtat selectedShtat()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (shtatGridView.SelectedRows.Count != 1) throw new Exception("Должность не выбрана.");
|
||||
var shtat = FuncDB.GetShtat((int)shtatGridView.SelectedRows[0].Cells[0].Value);
|
||||
return shtat;
|
||||
}
|
||||
catch (Exception e) { ShowError(e.Message); return null; }
|
||||
}
|
||||
|
||||
public Shtat formResult = null;
|
||||
public ShtatForm(bool select = false)
|
||||
{
|
||||
try
|
||||
{
|
||||
InitializeComponent();
|
||||
Init(select);
|
||||
resetShatTable();
|
||||
}
|
||||
catch { this.Close(); }
|
||||
}
|
||||
public void Init(bool s)
|
||||
{
|
||||
if (s) selectButton.Visible = true;
|
||||
shtatMI.Enabled = false;
|
||||
}
|
||||
|
||||
private void addButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
var res = new SupportForms.WorkShtatForm();
|
||||
res.ShowDialog();
|
||||
if (!res.isCanceled)
|
||||
resetShatTable();
|
||||
}
|
||||
private void changeButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
var shtat = selectedShtat();
|
||||
if (shtat == null) { ShowError("Должность не выбрана."); return; }
|
||||
var res = new SupportForms.WorkShtatForm(shtat);
|
||||
res.ShowDialog();
|
||||
if (!res.isCanceled)
|
||||
resetShatTable();
|
||||
}
|
||||
private void delButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
var shtat = selectedShtat();
|
||||
if (shtat == null) { ShowError("Должность не выбрана."); return; }
|
||||
try
|
||||
{
|
||||
FuncDB.DelShtat(shtat);
|
||||
resetShatTable();
|
||||
}
|
||||
catch (Exception ex) { ShowError(ex.Message); }
|
||||
}
|
||||
public void MI_Click(object sender, EventArgs e)
|
||||
{
|
||||
object form = null;
|
||||
var idxMenu = -1;
|
||||
try { idxMenu = menuStrip.Items.IndexOf((ToolStripMenuItem)sender); }
|
||||
catch { };
|
||||
switch (idxMenu)
|
||||
{
|
||||
case 0: form = new ShtatForm(); break;
|
||||
case 1: form = new RabForm(); break;
|
||||
case 2: form = new OtpForm(); break;
|
||||
case 3: form = new ChelForm(); break;
|
||||
}
|
||||
if (form != null)
|
||||
{
|
||||
this.Hide();
|
||||
((Form)form).Closed += (s, args) => this.Close();
|
||||
((Form)form).Show();
|
||||
return;
|
||||
}
|
||||
ShowError("Ошибка перехода на новую форму.");
|
||||
}
|
||||
|
||||
private void freeShtatCheckBox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
resetShatTable();
|
||||
}
|
||||
}
|
||||
}
|
126
MainForms/ShtatForm.resx
Normal file
126
MainForms/ShtatForm.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="menuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>132, 17</value>
|
||||
</metadata>
|
||||
</root>
|
Reference in New Issue
Block a user