1
0
mirror of https://github.com/chyzy/RSystem-MVC synced 2024-12-23 09:50:28 +01:00

Make Recruit Data page multilanguage

This commit is contained in:
Bartosz Chyży 2018-04-17 16:52:46 +02:00
parent 86e9ee979c
commit 50fb3a1d5e
5 changed files with 991 additions and 247 deletions

View File

@ -59,5 +59,428 @@ namespace RSystem.App_LocalResources.Recruit.Data {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Adres zamieszkania.
/// </summary>
public static string Address {
get {
return ResourceManager.GetString("Address", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Miejsce urodzenia.
/// </summary>
public static string BirthCity {
get {
return ResourceManager.GetString("BirthCity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kraj urodzenia.
/// </summary>
public static string BirthCountry {
get {
return ResourceManager.GetString("BirthCountry", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Anuluj.
/// </summary>
public static string Cancel {
get {
return ResourceManager.GetString("Cancel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Obywatelstwo.
/// </summary>
public static string Citizenship {
get {
return ResourceManager.GetString("Citizenship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Miasto.
/// </summary>
public static string City {
get {
return ResourceManager.GetString("City", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Dane kontaktowe.
/// </summary>
public static string Contact {
get {
return ResourceManager.GetString("Contact", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Adres do korespondencji.
/// </summary>
public static string CorespondentAddress {
get {
return ResourceManager.GetString("CorespondentAddress", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Adres do korespondencji taki sam jak adres zamieszkania.
/// </summary>
public static string CorespondentAdressSameAsResidence {
get {
return ResourceManager.GetString("CorespondentAdressSameAsResidence", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Miasto.
/// </summary>
public static string CorespondentCity {
get {
return ResourceManager.GetString("CorespondentCity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kraj.
/// </summary>
public static string CorespondentCountry {
get {
return ResourceManager.GetString("CorespondentCountry", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer mieszkania.
/// </summary>
public static string CorespondentFlat {
get {
return ResourceManager.GetString("CorespondentFlat", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer domu.
/// </summary>
public static string CorespondentHouse {
get {
return ResourceManager.GetString("CorespondentHouse", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kod pocztowy.
/// </summary>
public static string CorespondentPostalCode {
get {
return ResourceManager.GetString("CorespondentPostalCode", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ulica.
/// </summary>
public static string CorespondentStreet {
get {
return ResourceManager.GetString("CorespondentStreet", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kraj.
/// </summary>
public static string Country {
get {
return ResourceManager.GetString("Country", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Data i miejsce urodzenia.
/// </summary>
public static string DateAndPlaceOfBirth {
get {
return ResourceManager.GetString("DateAndPlaceOfBirth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Data urodzenia.
/// </summary>
public static string DayOfBirth {
get {
return ResourceManager.GetString("DayOfBirth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Niepełnosprawność.
/// </summary>
public static string Disablility {
get {
return ResourceManager.GetString("Disablility", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Dokument potwierdzający tożsamość.
/// </summary>
public static string DocumentType {
get {
return ResourceManager.GetString("DocumentType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Twój adress E-mail nie wygląda na poprawny.
/// </summary>
public static string EmailValidationError {
get {
return ResourceManager.GetString("EmailValidationError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Imię ojca.
/// </summary>
public static string FathersName {
get {
return ResourceManager.GetString("FathersName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kobieta.
/// </summary>
public static string Female {
get {
return ResourceManager.GetString("Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Imię.
/// </summary>
public static string Firstname {
get {
return ResourceManager.GetString("Firstname", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer mieszkania.
/// </summary>
public static string Flat {
get {
return ResourceManager.GetString("Flat", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer domu.
/// </summary>
public static string House {
get {
return ResourceManager.GetString("House", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Dowód Osobisty.
/// </summary>
public static string IDCard {
get {
return ResourceManager.GetString("IDCard", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Tożsamość.
/// </summary>
public static string Identity {
get {
return ResourceManager.GetString("Identity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Osoba niepełnosprawna.
/// </summary>
public static string IsDisabled {
get {
return ResourceManager.GetString("IsDisabled", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Nazwisko.
/// </summary>
public static string LastName {
get {
return ResourceManager.GetString("LastName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Mężczyzna.
/// </summary>
public static string Male {
get {
return ResourceManager.GetString("Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Wojsko.
/// </summary>
public static string Military {
get {
return ResourceManager.GetString("Military", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Status wojskowy.
/// </summary>
public static string MilitaryAttitude {
get {
return ResourceManager.GetString("MilitaryAttitude", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Imię matki.
/// </summary>
public static string MothersName {
get {
return ResourceManager.GetString("MothersName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Nie.
/// </summary>
public static string No {
get {
return ResourceManager.GetString("No", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer Dowodu Osobistego.
/// </summary>
public static string NumberOfIDCard {
get {
return ResourceManager.GetString("NumberOfIDCard", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer Paszportu.
/// </summary>
public static string NumberOfPass {
get {
return ResourceManager.GetString("NumberOfPass", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Rodzice.
/// </summary>
public static string Parents {
get {
return ResourceManager.GetString("Parents", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Paszport.
/// </summary>
public static string Passport {
get {
return ResourceManager.GetString("Passport", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Dane osobowe.
/// </summary>
public static string PersonalData {
get {
return ResourceManager.GetString("PersonalData", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Numer telefonu.
/// </summary>
public static string Phone {
get {
return ResourceManager.GetString("Phone", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Kod pocztowy.
/// </summary>
public static string PostalCode {
get {
return ResourceManager.GetString("PostalCode", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Zapisz.
/// </summary>
public static string Save {
get {
return ResourceManager.GetString("Save", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Drugie imie.
/// </summary>
public static string SecondName {
get {
return ResourceManager.GetString("SecondName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Płeć.
/// </summary>
public static string Sex {
get {
return ResourceManager.GetString("Sex", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ulica.
/// </summary>
public static string Street {
get {
return ResourceManager.GetString("Street", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Tak.
/// </summary>
public static string Yes {
get {
return ResourceManager.GetString("Yes", resourceCulture);
}
}
}
}

View File

@ -1,101 +1,261 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
<!--
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.
Version 1.3
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">1.3</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1">this is my long string</data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
[base64 mime encoded serialized .NET Framework object]
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
[base64 mime encoded string representing a byte array form of the .NET Framework object]
</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.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:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<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" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</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>1.3</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
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>
<data name="Address" xml:space="preserve">
<value>Address</value>
</data>
<data name="BirthCity" xml:space="preserve">
<value>City of birth</value>
</data>
<data name="BirthCountry" xml:space="preserve">
<value>Country of birth</value>
</data>
<data name="Cancel" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="Citizenship" xml:space="preserve">
<value>Citizenship</value>
</data>
<data name="City" xml:space="preserve">
<value>City</value>
</data>
<data name="Contact" xml:space="preserve">
<value>Contact data</value>
</data>
<data name="CorespondentAddress" xml:space="preserve">
<value>Corespondent address</value>
</data>
<data name="CorespondentAdressSameAsResidence" xml:space="preserve">
<value>Corespondent adress same as residence</value>
</data>
<data name="CorespondentCity" xml:space="preserve">
<value>City</value>
</data>
<data name="CorespondentCountry" xml:space="preserve">
<value>Country</value>
</data>
<data name="CorespondentFlat" xml:space="preserve">
<value>Flat no.</value>
</data>
<data name="CorespondentHouse" xml:space="preserve">
<value>House no.</value>
</data>
<data name="CorespondentPostalCode" xml:space="preserve">
<value>Postal code</value>
</data>
<data name="CorespondentStreet" xml:space="preserve">
<value>Street</value>
</data>
<data name="Country" xml:space="preserve">
<value>Country</value>
</data>
<data name="DateAndPlaceOfBirth" xml:space="preserve">
<value>Date and place of birth</value>
</data>
<data name="DayOfBirth" xml:space="preserve">
<value>Day of birth</value>
</data>
<data name="Disablility" xml:space="preserve">
<value>Disablility</value>
</data>
<data name="DocumentType" xml:space="preserve">
<value>Identity document</value>
</data>
<data name="EmailValidationError" xml:space="preserve">
<value>Your E-mail does't seem to valid address</value>
</data>
<data name="FathersName" xml:space="preserve">
<value>Father's name</value>
</data>
<data name="Female" xml:space="preserve">
<value>Female</value>
</data>
<data name="Firstname" xml:space="preserve">
<value>First name</value>
</data>
<data name="Flat" xml:space="preserve">
<value>Flat no.</value>
</data>
<data name="House" xml:space="preserve">
<value>House no.</value>
</data>
<data name="IDCard" xml:space="preserve">
<value>ID Card</value>
</data>
<data name="Identity" xml:space="preserve">
<value>Identity</value>
</data>
<data name="IsDisabled" xml:space="preserve">
<value>Disabled person</value>
</data>
<data name="LastName" xml:space="preserve">
<value>Last name</value>
</data>
<data name="Male" xml:space="preserve">
<value>Male</value>
</data>
<data name="Military" xml:space="preserve">
<value>Military</value>
</data>
<data name="MilitaryAttitude" xml:space="preserve">
<value>Militaty status</value>
</data>
<data name="MothersName" xml:space="preserve">
<value>Mother's name</value>
</data>
<data name="No" xml:space="preserve">
<value>No</value>
</data>
<data name="NumberOfIDCard" xml:space="preserve">
<value>Number of ID Card</value>
</data>
<data name="NumberOfPass" xml:space="preserve">
<value>Number of Passport</value>
</data>
<data name="Parents" xml:space="preserve">
<value>Parents</value>
</data>
<data name="Passport" xml:space="preserve">
<value>Passport</value>
</data>
<data name="PersonalData" xml:space="preserve">
<value>Personal data</value>
</data>
<data name="Phone" xml:space="preserve">
<value>Phone number</value>
</data>
<data name="PostalCode" xml:space="preserve">
<value>Postal code</value>
</data>
<data name="Save" xml:space="preserve">
<value>Save</value>
</data>
<data name="SecondName" xml:space="preserve">
<value>Second name</value>
</data>
<data name="Sex" xml:space="preserve">
<value>Sex</value>
</data>
<data name="Street" xml:space="preserve">
<value>Street</value>
</data>
<data name="Yes" xml:space="preserve">
<value>Yes</value>
</data>
</root>

View File

@ -1,101 +1,261 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
<!--
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.
Version 1.3
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">1.3</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1">this is my long string</data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
[base64 mime encoded serialized .NET Framework object]
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
[base64 mime encoded string representing a byte array form of the .NET Framework object]
</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.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:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<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" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</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>1.3</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
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>
<data name="Address" xml:space="preserve">
<value>Adres zamieszkania</value>
</data>
<data name="BirthCity" xml:space="preserve">
<value>Miejsce urodzenia</value>
</data>
<data name="BirthCountry" xml:space="preserve">
<value>Kraj urodzenia</value>
</data>
<data name="Cancel" xml:space="preserve">
<value>Anuluj</value>
</data>
<data name="Citizenship" xml:space="preserve">
<value>Obywatelstwo</value>
</data>
<data name="City" xml:space="preserve">
<value>Miasto</value>
</data>
<data name="Contact" xml:space="preserve">
<value>Dane kontaktowe</value>
</data>
<data name="CorespondentAddress" xml:space="preserve">
<value>Adres do korespondencji</value>
</data>
<data name="CorespondentAdressSameAsResidence" xml:space="preserve">
<value>Adres do korespondencji taki sam jak adres zamieszkania</value>
</data>
<data name="CorespondentCity" xml:space="preserve">
<value>Miasto</value>
</data>
<data name="CorespondentCountry" xml:space="preserve">
<value>Kraj</value>
</data>
<data name="CorespondentFlat" xml:space="preserve">
<value>Numer mieszkania</value>
</data>
<data name="CorespondentHouse" xml:space="preserve">
<value>Numer domu</value>
</data>
<data name="CorespondentPostalCode" xml:space="preserve">
<value>Kod pocztowy</value>
</data>
<data name="CorespondentStreet" xml:space="preserve">
<value>Ulica</value>
</data>
<data name="Country" xml:space="preserve">
<value>Kraj</value>
</data>
<data name="DateAndPlaceOfBirth" xml:space="preserve">
<value>Data i miejsce urodzenia</value>
</data>
<data name="DayOfBirth" xml:space="preserve">
<value>Data urodzenia</value>
</data>
<data name="Disablility" xml:space="preserve">
<value>Niepełnosprawność</value>
</data>
<data name="DocumentType" xml:space="preserve">
<value>Dokument potwierdzający tożsamość</value>
</data>
<data name="EmailValidationError" xml:space="preserve">
<value>Twój adress E-mail nie wygląda na poprawny</value>
</data>
<data name="FathersName" xml:space="preserve">
<value>Imię ojca</value>
</data>
<data name="Female" xml:space="preserve">
<value>Kobieta</value>
</data>
<data name="Firstname" xml:space="preserve">
<value>Imię</value>
</data>
<data name="Flat" xml:space="preserve">
<value>Numer mieszkania</value>
</data>
<data name="House" xml:space="preserve">
<value>Numer domu</value>
</data>
<data name="IDCard" xml:space="preserve">
<value>Dowód Osobisty</value>
</data>
<data name="Identity" xml:space="preserve">
<value>Tożsamość</value>
</data>
<data name="IsDisabled" xml:space="preserve">
<value>Osoba niepełnosprawna</value>
</data>
<data name="LastName" xml:space="preserve">
<value>Nazwisko</value>
</data>
<data name="Male" xml:space="preserve">
<value>Mężczyzna</value>
</data>
<data name="Military" xml:space="preserve">
<value>Wojsko</value>
</data>
<data name="MilitaryAttitude" xml:space="preserve">
<value>Status wojskowy</value>
</data>
<data name="MothersName" xml:space="preserve">
<value>Imię matki</value>
</data>
<data name="No" xml:space="preserve">
<value>Nie</value>
</data>
<data name="NumberOfIDCard" xml:space="preserve">
<value>Numer Dowodu Osobistego</value>
</data>
<data name="NumberOfPass" xml:space="preserve">
<value>Numer Paszportu</value>
</data>
<data name="Parents" xml:space="preserve">
<value>Rodzice</value>
</data>
<data name="Passport" xml:space="preserve">
<value>Paszport</value>
</data>
<data name="PersonalData" xml:space="preserve">
<value>Dane osobowe</value>
</data>
<data name="Phone" xml:space="preserve">
<value>Numer telefonu</value>
</data>
<data name="PostalCode" xml:space="preserve">
<value>Kod pocztowy</value>
</data>
<data name="Save" xml:space="preserve">
<value>Zapisz</value>
</data>
<data name="SecondName" xml:space="preserve">
<value>Drugie imie</value>
</data>
<data name="Sex" xml:space="preserve">
<value>Płeć</value>
</data>
<data name="Street" xml:space="preserve">
<value>Ulica</value>
</data>
<data name="Yes" xml:space="preserve">
<value>Tak</value>
</data>
</root>

View File

@ -5,8 +5,10 @@ using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.InteropServices;
using System.Security.AccessControl;
using System.Web.Mvc;
using RSystem.Models;
using RSystem.App_LocalResources.Recruit.Data;
namespace RSystem.ViewModels
{
@ -18,82 +20,81 @@ namespace RSystem.ViewModels
public int RecruitDataId { get; set; }
//Recruit Data
[Display(Name = "Imię")]
[Display(Name = "Firstname",ResourceType = typeof(Data))]
public string FirstName { get; set; }
[Display(Name = "Drugie imię")]
[Display(Name = "SecondName",ResourceType = typeof(Data))]
public string SecondName { get; set; }
[Display(Name = "Nazwisko")]
[Display(Name = "LastName",ResourceType = typeof(Data))]
public string LastName { get; set; }
[Display(Name = "Płeć")]
[Display(Name = "Sex",ResourceType = typeof(Data))]
public Sex Sex { get; set; }
//Identity
[Display(Name = "Obywatelstwo")]
[Display(Name = "Citizenship", ResourceType = typeof(Data))]
public string Citizenship { get; set; }
[Display(Name = "Dokument Potwierdzający tożsamość")]
[Display(Name = "DocumentType",ResourceType = typeof(Data))]
public DocumentType DocumentType { get; set; }
public string DocumentNumber { get; set; }
//Adress
[Display(Name = "Ulica")]
[Display(Name = "Street", ResourceType = typeof(Data))]
public string Street { get; set; }
[Display(Name = "Numer domu")]
[Display(Name = "House", ResourceType = typeof(Data))]
public string House { get; set; }
[Display(Name = "Numer mieszkania")]
[Display(Name = "Flat", ResourceType = typeof(Data))]
public string Flat { get; set; }
[Display(Name = "Kod pocztowy")]
[Display(Name = "PostalCode", ResourceType = typeof(Data))]
public string PostalCode { get; set; }
[Display(Name = "Miasto")]
[Display(Name = "City", ResourceType = typeof(Data))]
public string City { get; set; }
[Display(Name = "Kraj")]
[Display(Name = "Country", ResourceType = typeof(Data))]
public string Country { get; set; }
//Corespondent Adress
[Display(Name = "Adres do korespondencji taki sam jak adres zamieszkania")]
[Display(Name = "CorespondentAdressSameAsResidence", ResourceType = typeof(Data))]
public bool CorespondentAdressSameAsResidence { get; set; }
[Display(Name = "Ulica")]
[Display(Name = "CorespondentStreet", ResourceType = typeof(Data))]
public string CorespondentStreet { get; set; }
[Display(Name = "Numer domu")]
[Display(Name = "CorespondentHouse", ResourceType = typeof(Data))]
public string CorespondentHouse { get; set; }
[Display(Name = "Numer Mieszkania")]
[Display(Name = "CorespondentFlat",ResourceType = typeof(Data))]
public string CorespondentFlat { get; set; }
[Display(Name = "Kod pocztowy")]
[Display(Name = "CorespondentPostalCode", ResourceType = typeof(Data))]
public string CorespondentPostalCode { get; set; }
[Display(Name = "Miasto")]
[Display(Name = "CorespondentCity", ResourceType = typeof(Data))]
public string CorespondentCity { get; set; }
[Display(Name = "Kraj")]
[Display(Name = "CorespondentCountry", ResourceType = typeof(Data))]
public string CorespondentCountry { get; set; }
//E adress
[EmailAddress(ErrorMessage = "Adress email wygląda na niepoprawny")]
[Display(Name = "Adres E-mail")]
public string Email { get; set; }
[Display(Name = "Numer telefonu")]
[Display(Name = "Phone",ResourceType = typeof(Data))]
public string Phone { get; set; }
//Disability
[Display(Name = "Osoba niepełnosprawna")]
[Display(Name = "IsDisabled", ResourceType = typeof(Data))]
public bool IsDisabled { get; set; }
//parents
[Display(Name = "Imię ojca")]
[Display(Name = "FathersName", ResourceType = typeof(Data))]
public string FathersName { get; set; }
[Display(Name = "Imię Matki")]
[Display(Name = "MothersName", ResourceType = typeof(Data))]
public string MothersName { get; set; }
//Place and date of birth
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
[Display(Name = "Data urodzenia")]
[Display(Name = "DayOfBirth", ResourceType = typeof(Data))]
public DateTime DayOfBirth { get; set; }
[Display(Name = "Miejsce urodzenia")]
[Display(Name = "BirthCity", ResourceType = typeof(Data))]
public string BirthCity { get; set; }
[Display(Name = "Kraj urodzenia")]
[Display(Name = "Country",ResourceType = typeof(Data))]
public string BirthCountry { get; set; }
//Military
[Display(Name = "Status wojskowy")]
[Display(Name = "MilitaryAttitude", ResourceType = typeof(Data))]
public MilitaryAttitude MilitaryAttitude { get; set; }
}

View File

@ -1,8 +1,9 @@

@using RSystem.Models
@model RSystem.ViewModels.RecruitDataViewModel
@using RSystem.App_LocalResources.Recruit.Data
@{
ViewBag.Title = "Dane Osobowe";
ViewBag.Title = Data.PersonalData;
}
@using (Html.BeginForm())
@ -12,7 +13,7 @@
<div class="row py-20 ">
<div class="col-md-6 col-lg-4">
<section class="form-section">
<header>Dane Osobowe</header>
<header>@Data.PersonalData</header>
<div class="p-20">
<div class="form-group">
@Html.LabelFor(model => model.FirstName ,new { @class = "label-form required" })
@ -29,16 +30,16 @@
<div class="form-group">
@Html.LabelFor(model => model.Sex, new { @class = "label-form required" })
<div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.Sex, Sex.Female) Kobieta</label>
<label class="label-ratio">@Html.RadioButtonFor(model => model.Sex, Sex.Female) @Data.Female</label>
</div>
<div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.Sex, Sex.Male) Mężczyzna</label>
<label class="label-ratio">@Html.RadioButtonFor(model => model.Sex, Sex.Male) @Data.Male</label>
</div>
</div>
</div>
</section>
<section class="form-section">
<header>Rodzice</header>
<header>@Data.Parents</header>
<div class="p-20">
<div class="form-group">
@Html.LabelFor(model => model.FathersName, new { @class = "label-form required" })
@ -51,7 +52,7 @@
</div>
</section>
<section class="form-section">
<header>Data i miejsce urodzenia</header>
<header>@Data.DateAndPlaceOfBirth</header>
<div class="p-20">
<div class="form-group">
@Html.LabelFor(model => model.DayOfBirth, new { @class = "label-form required" })
@ -64,7 +65,6 @@
<div class="form-group">
@Html.LabelFor(model => model.BirthCountry, new { @class = "label-form required" })
@Html.DropDownListFor(model=>model.BirthCountry,Model.Countries ,new { @class = "form-control" } )
</div>
</div>
</section>
@ -73,7 +73,7 @@
<div class="col-md-6 col-lg-4">
<section class="form-section">
<header>Tożsamość</header>
<header>@Data.Identity</header>
<div class="p-20">
<div class="form-group">
@Html.LabelFor(model => model.Citizenship, new { @class = "label-form required" })
@ -82,34 +82,34 @@
<div class="form-group">
@Html.LabelFor(model => model.DocumentType, new { @class = "label-form required" })
<div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.DocumentType, DocumentType.ID, new { id = "ID-Card" }) Dowód osobisty</label>
<label class="label-ratio">@Html.RadioButtonFor(model => model.DocumentType, DocumentType.ID, new { id = "ID-Card" }) @Data.IDCard</label>
</div>
<div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.DocumentType, DocumentType.Passport, new { id = "Passport" }) Paszport</label>
<label class="label-ratio">@Html.RadioButtonFor(model => model.DocumentType, DocumentType.Passport, new { id = "Passport" }) @Data.Passport</label>
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.DocumentNumber,"Numer dowodu osobistego" ,new { @class = "label-form required", id="DocumentTypeId"})
@Html.LabelFor(model => model.DocumentNumber,Data.NumberOfIDCard ,new { @class = "label-form required", id="DocumentTypeId"})
@Html.EditorFor(model => model.DocumentNumber, new { htmlAttributes = new { @class = "form-control" } })
</div>
</div>
</section>
<section class="form-section">
<header>Niepełnosprawność</header>
<header>@Data.Disablility</header>
<div class="p-20">
<div class="form-group">
@Html.LabelFor(model => model.IsDisabled, new { @class = "label-form required" })
<div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.IsDisabled,false) Nie</label>
<label class="label-ratio">@Html.RadioButtonFor(model => model.IsDisabled,false) @Data.Yes</label>
</div>
<div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.IsDisabled, true) Tak</label>
<label class="label-ratio">@Html.RadioButtonFor(model => model.IsDisabled, true) @Data.No</label>
</div>
</div>
</div>
</section>
<section class="form-section">
<header>Dane kontaktowe</header>
<header>@Data.Contact</header>
<div class="p-20">
<div class="form-group">
@Html.LabelFor(model => model.Email, new { @class = "label-form required" })
@ -126,7 +126,7 @@
<div class="col-md-6 col-lg-4">
<section class="form-section">
<header>Adres zamieszkania</header>
<header>@Data.Address</header>
<div class="p-20">
<div class="form-group">
@Html.LabelFor(model => model.Street, new { @class = "label-form required" })
@ -161,15 +161,15 @@
</div>
</section>
<section class="form-section">
<header>Adres do korespondencji</header>
<header>@Data.CorespondentAddress</header>
<div class="p-20">
<div class="form-group">
@Html.LabelFor(model => model.CorespondentAdressSameAsResidence, new { @class = "label-form required" })
<div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.CorespondentAdressSameAsResidence, true, new { id = "SameAsResident" }) Tak</label>
<label class="label-ratio">@Html.RadioButtonFor(model => model.CorespondentAdressSameAsResidence, true, new { id = "SameAsResident" }) @Data.Yes</label>
</div>
<div class="radio-switch">
<label class="label-ratio">@Html.RadioButtonFor(model => model.CorespondentAdressSameAsResidence, false, new { id = "NotSameAsResident" }) Nie</label>
<label class="label-ratio">@Html.RadioButtonFor(model => model.CorespondentAdressSameAsResidence, false, new { id = "NotSameAsResident" }) @Data.No</label>
</div>
</div>
<div @if (Model.CorespondentAdressSameAsResidence)
@ -209,7 +209,7 @@
</div>
</section>
<section class="form-section">
<header>Wojsko</header>
<header>@Data.Military</header>
<div class="p-20">
<div class="form-group">
@Html.LabelFor(model => model.MilitaryAttitude, new { @class = "label-form required" })
@ -219,8 +219,8 @@
</section>
</div>
<div class="row col-sm-12 text-center pt-20">
<input type="submit" class="submit-blue form-btn" value="Zapisz"/>
@Html.ActionLink("Anuluj","Index","Home",new {@class="form-cancel form-btn"})
<input type="submit" class="submit-blue form-btn" value="@Data.Save"/>
@Html.ActionLink(Data.Cancel,"Index","Home",new {@class="form-cancel form-btn"})
</div>
</div>
}
@ -240,14 +240,14 @@
$("#ID-Card").click(function () {
var handler = $("#DocumentTypeId");
handler.text('Numer dowodu osobistego');
handler.text('@Data.NumberOfIDCard');
handler.prepend('<span class="glyphicon glyphicon-asterisk"></span>');
});
$("#Passport").click(function () {
var hander=$("#DocumentTypeId");
hander.text('Numer paszportu');
hander.text('@Data.NumberOfPass');
hander.prepend('<span class="glyphicon glyphicon-asterisk"></span>');
});