New dialog box to manage the importing and exporting of docversions

This commit is contained in:
Rich 2014-06-14 01:13:52 +00:00
parent 6c2555609e
commit ad7307ab87
3 changed files with 3075 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,385 @@
namespace VEPROMS
{
partial class dlgExportImport
{
/// <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.pnlExport = new System.Windows.Forms.Panel();
this.lblExportTime = new System.Windows.Forms.Label();
this.lblExportStatus = new System.Windows.Forms.Label();
this.pbExportStep = new System.Windows.Forms.ProgressBar();
this.lblExportStep = new System.Windows.Forms.Label();
this.pbExportSection = new System.Windows.Forms.ProgressBar();
this.lblExportSection = new System.Windows.Forms.Label();
this.pbExportProcedure = new System.Windows.Forms.ProgressBar();
this.lblExportProcedure = new System.Windows.Forms.Label();
this.btnDoExport = new System.Windows.Forms.Button();
this.btnExport = new System.Windows.Forms.Button();
this.txtExport = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.pnlImport = new System.Windows.Forms.Panel();
this.lblImportTime = new System.Windows.Forms.Label();
this.lblImportStatus = new System.Windows.Forms.Label();
this.pbImportStep = new System.Windows.Forms.ProgressBar();
this.lblImportStep = new System.Windows.Forms.Label();
this.pbImportSection = new System.Windows.Forms.ProgressBar();
this.lblImportSection = new System.Windows.Forms.Label();
this.pbImportProcedure = new System.Windows.Forms.ProgressBar();
this.lblImportProcedure = new System.Windows.Forms.Label();
this.btnDoImport = new System.Windows.Forms.Button();
this.btnImport = new System.Windows.Forms.Button();
this.txtImport = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.ofd = new System.Windows.Forms.OpenFileDialog();
this.sfd = new System.Windows.Forms.SaveFileDialog();
this.pnlExport.SuspendLayout();
this.pnlImport.SuspendLayout();
this.SuspendLayout();
//
// pnlExport
//
this.pnlExport.Controls.Add(this.lblExportTime);
this.pnlExport.Controls.Add(this.lblExportStatus);
this.pnlExport.Controls.Add(this.pbExportStep);
this.pnlExport.Controls.Add(this.lblExportStep);
this.pnlExport.Controls.Add(this.pbExportSection);
this.pnlExport.Controls.Add(this.lblExportSection);
this.pnlExport.Controls.Add(this.pbExportProcedure);
this.pnlExport.Controls.Add(this.lblExportProcedure);
this.pnlExport.Controls.Add(this.btnDoExport);
this.pnlExport.Controls.Add(this.btnExport);
this.pnlExport.Controls.Add(this.txtExport);
this.pnlExport.Controls.Add(this.label1);
this.pnlExport.Location = new System.Drawing.Point(12, 12);
this.pnlExport.Name = "pnlExport";
this.pnlExport.Size = new System.Drawing.Size(610, 199);
this.pnlExport.TabIndex = 0;
//
// lblExportTime
//
this.lblExportTime.AutoSize = true;
this.lblExportTime.Location = new System.Drawing.Point(407, 30);
this.lblExportTime.Name = "lblExportTime";
this.lblExportTime.Size = new System.Drawing.Size(28, 13);
this.lblExportTime.TabIndex = 11;
this.lblExportTime.Text = "0:00";
this.lblExportTime.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblExportStatus
//
this.lblExportStatus.AutoSize = true;
this.lblExportStatus.Location = new System.Drawing.Point(140, 30);
this.lblExportStatus.Name = "lblExportStatus";
this.lblExportStatus.Size = new System.Drawing.Size(133, 13);
this.lblExportStatus.TabIndex = 10;
this.lblExportStatus.Text = "Awaiting Export File Name:";
//
// pbExportStep
//
this.pbExportStep.Location = new System.Drawing.Point(15, 155);
this.pbExportStep.Name = "pbExportStep";
this.pbExportStep.Size = new System.Drawing.Size(561, 20);
this.pbExportStep.Step = 1;
this.pbExportStep.TabIndex = 9;
//
// lblExportStep
//
this.lblExportStep.AutoSize = true;
this.lblExportStep.Location = new System.Drawing.Point(12, 139);
this.lblExportStep.Name = "lblExportStep";
this.lblExportStep.Size = new System.Drawing.Size(34, 13);
this.lblExportStep.TabIndex = 8;
this.lblExportStep.Text = "Steps";
//
// pbExportSection
//
this.pbExportSection.Location = new System.Drawing.Point(15, 116);
this.pbExportSection.Name = "pbExportSection";
this.pbExportSection.Size = new System.Drawing.Size(561, 20);
this.pbExportSection.Step = 1;
this.pbExportSection.TabIndex = 7;
//
// lblExportSection
//
this.lblExportSection.AutoSize = true;
this.lblExportSection.Location = new System.Drawing.Point(12, 100);
this.lblExportSection.Name = "lblExportSection";
this.lblExportSection.Size = new System.Drawing.Size(48, 13);
this.lblExportSection.TabIndex = 6;
this.lblExportSection.Text = "Sections";
//
// pbExportProcedure
//
this.pbExportProcedure.Location = new System.Drawing.Point(15, 77);
this.pbExportProcedure.Name = "pbExportProcedure";
this.pbExportProcedure.Size = new System.Drawing.Size(561, 20);
this.pbExportProcedure.Step = 1;
this.pbExportProcedure.TabIndex = 5;
//
// lblExportProcedure
//
this.lblExportProcedure.AutoSize = true;
this.lblExportProcedure.Location = new System.Drawing.Point(12, 61);
this.lblExportProcedure.Name = "lblExportProcedure";
this.lblExportProcedure.Size = new System.Drawing.Size(61, 13);
this.lblExportProcedure.TabIndex = 4;
this.lblExportProcedure.Text = "Procedures";
//
// btnDoExport
//
this.btnDoExport.Enabled = false;
this.btnDoExport.Location = new System.Drawing.Point(15, 25);
this.btnDoExport.Name = "btnDoExport";
this.btnDoExport.Size = new System.Drawing.Size(119, 23);
this.btnDoExport.TabIndex = 3;
this.btnDoExport.Text = "Process Export";
this.btnDoExport.UseVisualStyleBackColor = true;
this.btnDoExport.Click += new System.EventHandler(this.btnDoExport_Click);
//
// btnExport
//
this.btnExport.Location = new System.Drawing.Point(582, 3);
this.btnExport.Name = "btnExport";
this.btnExport.Size = new System.Drawing.Size(25, 23);
this.btnExport.TabIndex = 2;
this.btnExport.Text = "...";
this.btnExport.UseVisualStyleBackColor = true;
this.btnExport.Click += new System.EventHandler(this.btnExport_Click);
//
// txtExport
//
this.txtExport.Location = new System.Drawing.Point(141, 6);
this.txtExport.Name = "txtExport";
this.txtExport.ReadOnly = true;
this.txtExport.Size = new System.Drawing.Size(435, 20);
this.txtExport.TabIndex = 1;
this.txtExport.TextChanged += new System.EventHandler(this.txtExport_TextChanged);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(123, 13);
this.label1.TabIndex = 0;
this.label1.Text = "Select Export File Name:";
//
// pnlImport
//
this.pnlImport.Controls.Add(this.lblImportTime);
this.pnlImport.Controls.Add(this.lblImportStatus);
this.pnlImport.Controls.Add(this.pbImportStep);
this.pnlImport.Controls.Add(this.lblImportStep);
this.pnlImport.Controls.Add(this.pbImportSection);
this.pnlImport.Controls.Add(this.lblImportSection);
this.pnlImport.Controls.Add(this.pbImportProcedure);
this.pnlImport.Controls.Add(this.lblImportProcedure);
this.pnlImport.Controls.Add(this.btnDoImport);
this.pnlImport.Controls.Add(this.btnImport);
this.pnlImport.Controls.Add(this.txtImport);
this.pnlImport.Controls.Add(this.label2);
this.pnlImport.Location = new System.Drawing.Point(12, 217);
this.pnlImport.Name = "pnlImport";
this.pnlImport.Size = new System.Drawing.Size(610, 225);
this.pnlImport.TabIndex = 1;
//
// lblImportTime
//
this.lblImportTime.AutoSize = true;
this.lblImportTime.Location = new System.Drawing.Point(407, 31);
this.lblImportTime.Name = "lblImportTime";
this.lblImportTime.Size = new System.Drawing.Size(28, 13);
this.lblImportTime.TabIndex = 17;
this.lblImportTime.Text = "0.00";
this.lblImportTime.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblImportStatus
//
this.lblImportStatus.AutoSize = true;
this.lblImportStatus.Location = new System.Drawing.Point(137, 31);
this.lblImportStatus.Name = "lblImportStatus";
this.lblImportStatus.Size = new System.Drawing.Size(132, 13);
this.lblImportStatus.TabIndex = 16;
this.lblImportStatus.Text = "Awaiting Import File Name:";
//
// pbImportStep
//
this.pbImportStep.Location = new System.Drawing.Point(15, 156);
this.pbImportStep.Name = "pbImportStep";
this.pbImportStep.Size = new System.Drawing.Size(561, 20);
this.pbImportStep.Step = 1;
this.pbImportStep.TabIndex = 15;
//
// lblImportStep
//
this.lblImportStep.AutoSize = true;
this.lblImportStep.Location = new System.Drawing.Point(12, 140);
this.lblImportStep.Name = "lblImportStep";
this.lblImportStep.Size = new System.Drawing.Size(34, 13);
this.lblImportStep.TabIndex = 14;
this.lblImportStep.Text = "Steps";
//
// pbImportSection
//
this.pbImportSection.Location = new System.Drawing.Point(14, 117);
this.pbImportSection.Name = "pbImportSection";
this.pbImportSection.Size = new System.Drawing.Size(561, 20);
this.pbImportSection.Step = 1;
this.pbImportSection.TabIndex = 13;
//
// lblImportSection
//
this.lblImportSection.AutoSize = true;
this.lblImportSection.Location = new System.Drawing.Point(12, 101);
this.lblImportSection.Name = "lblImportSection";
this.lblImportSection.Size = new System.Drawing.Size(48, 13);
this.lblImportSection.TabIndex = 12;
this.lblImportSection.Text = "Sections";
//
// pbImportProcedure
//
this.pbImportProcedure.Location = new System.Drawing.Point(14, 78);
this.pbImportProcedure.Name = "pbImportProcedure";
this.pbImportProcedure.Size = new System.Drawing.Size(561, 20);
this.pbImportProcedure.Step = 1;
this.pbImportProcedure.TabIndex = 11;
//
// lblImportProcedure
//
this.lblImportProcedure.AutoSize = true;
this.lblImportProcedure.Location = new System.Drawing.Point(12, 62);
this.lblImportProcedure.Name = "lblImportProcedure";
this.lblImportProcedure.Size = new System.Drawing.Size(61, 13);
this.lblImportProcedure.TabIndex = 10;
this.lblImportProcedure.Text = "Procedures";
//
// btnDoImport
//
this.btnDoImport.Enabled = false;
this.btnDoImport.Location = new System.Drawing.Point(15, 26);
this.btnDoImport.Name = "btnDoImport";
this.btnDoImport.Size = new System.Drawing.Size(119, 23);
this.btnDoImport.TabIndex = 5;
this.btnDoImport.Text = "Process Import";
this.btnDoImport.UseVisualStyleBackColor = true;
this.btnDoImport.Click += new System.EventHandler(this.btnDoImport_Click);
//
// btnImport
//
this.btnImport.Location = new System.Drawing.Point(581, 4);
this.btnImport.Name = "btnImport";
this.btnImport.Size = new System.Drawing.Size(25, 23);
this.btnImport.TabIndex = 4;
this.btnImport.Text = "...";
this.btnImport.UseVisualStyleBackColor = true;
this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
//
// txtImport
//
this.txtImport.Location = new System.Drawing.Point(140, 7);
this.txtImport.Name = "txtImport";
this.txtImport.ReadOnly = true;
this.txtImport.Size = new System.Drawing.Size(435, 20);
this.txtImport.TabIndex = 3;
this.txtImport.TextChanged += new System.EventHandler(this.txtImport_TextChanged);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 10);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(122, 13);
this.label2.TabIndex = 1;
this.label2.Text = "Select Import File Name:";
//
// ofd
//
this.ofd.AddExtension = false;
this.ofd.Filter = "PROMS Export Files|*.expx";
this.ofd.Title = "Import File Name";
//
// sfd
//
this.sfd.DefaultExt = "expx";
this.sfd.Filter = "PROMS Export Files|*.expx";
this.sfd.Title = "Export File Name";
//
// dlgExportImport
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(633, 452);
this.Controls.Add(this.pnlImport);
this.Controls.Add(this.pnlExport);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "dlgExportImport";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Export Import Dialog";
this.Load += new System.EventHandler(this.dlgExportImport_Load);
this.pnlExport.ResumeLayout(false);
this.pnlExport.PerformLayout();
this.pnlImport.ResumeLayout(false);
this.pnlImport.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel pnlExport;
private System.Windows.Forms.Panel pnlImport;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button btnExport;
private System.Windows.Forms.TextBox txtExport;
private System.Windows.Forms.Button btnImport;
private System.Windows.Forms.TextBox txtImport;
private System.Windows.Forms.Button btnDoExport;
private System.Windows.Forms.Button btnDoImport;
private System.Windows.Forms.ProgressBar pbExportStep;
private System.Windows.Forms.Label lblExportStep;
private System.Windows.Forms.ProgressBar pbExportSection;
private System.Windows.Forms.Label lblExportSection;
private System.Windows.Forms.ProgressBar pbExportProcedure;
private System.Windows.Forms.Label lblExportProcedure;
private System.Windows.Forms.ProgressBar pbImportStep;
private System.Windows.Forms.Label lblImportStep;
private System.Windows.Forms.ProgressBar pbImportSection;
private System.Windows.Forms.Label lblImportSection;
private System.Windows.Forms.ProgressBar pbImportProcedure;
private System.Windows.Forms.Label lblImportProcedure;
private System.Windows.Forms.OpenFileDialog ofd;
private System.Windows.Forms.SaveFileDialog sfd;
private System.Windows.Forms.Label lblExportStatus;
private System.Windows.Forms.Label lblImportStatus;
private System.Windows.Forms.Label lblExportTime;
private System.Windows.Forms.Label lblImportTime;
}
}

View 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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="ofd.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="sfd.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>87, 17</value>
</metadata>
</root>