- campo input txtCodAzi - btnConverti - btnXmlInv Aggiunti: 8 btn per azienda per generazione xml/xml inv creati nuovi eventi per bottoni e due nuovi metodi per generazione xml.
357 lines
18 KiB
C#
357 lines
18 KiB
C#
namespace CSVToXML
|
|
{
|
|
partial class frmCSVToXML
|
|
{
|
|
/// <summary>
|
|
/// Variabile di progettazione necessaria.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Pulire le risorse in uso.
|
|
/// </summary>
|
|
/// <param name="disposing">ha valore true se le risorse gestite devono essere eliminate, false in caso contrario.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Codice generato da Progettazione Windows Form
|
|
|
|
/// <summary>
|
|
/// Metodo necessario per il supporto della finestra di progettazione. Non modificare
|
|
/// il contenuto del metodo con l'editor di codice.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.txtArea = new System.Windows.Forms.TextBox();
|
|
this.lblCSV = new System.Windows.Forms.Label();
|
|
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
|
this.txtFile = new System.Windows.Forms.TextBox();
|
|
this.btnCercaFile = new System.Windows.Forms.Button();
|
|
this.btnConverti = new System.Windows.Forms.Button();
|
|
this.lblCodAzi = new System.Windows.Forms.Label();
|
|
this.lblData = new System.Windows.Forms.Label();
|
|
this.txtCodAzi = new System.Windows.Forms.TextBox();
|
|
this.dtpAnnoMese = new System.Windows.Forms.DateTimePicker();
|
|
this.btnXmlInv = new System.Windows.Forms.Button();
|
|
this.btnDekra = new System.Windows.Forms.Button();
|
|
this.btnDekraInv = new System.Windows.Forms.Button();
|
|
this.btnDtcInv = new System.Windows.Forms.Button();
|
|
this.btnDtc = new System.Windows.Forms.Button();
|
|
this.btnDakInv = new System.Windows.Forms.Button();
|
|
this.btnDak = new System.Windows.Forms.Button();
|
|
this.btnDinvestInv = new System.Windows.Forms.Button();
|
|
this.btnDinvest = new System.Windows.Forms.Button();
|
|
this.lblDekra = new System.Windows.Forms.Label();
|
|
this.lblDtc = new System.Windows.Forms.Label();
|
|
this.lblDak = new System.Windows.Forms.Label();
|
|
this.lblDinvest = new System.Windows.Forms.Label();
|
|
this.SuspendLayout();
|
|
//
|
|
// txtArea
|
|
//
|
|
this.txtArea.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.txtArea.Location = new System.Drawing.Point(12, 202);
|
|
this.txtArea.Multiline = true;
|
|
this.txtArea.Name = "txtArea";
|
|
this.txtArea.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
|
this.txtArea.Size = new System.Drawing.Size(611, 367);
|
|
this.txtArea.TabIndex = 7;
|
|
//
|
|
// lblCSV
|
|
//
|
|
this.lblCSV.AutoSize = true;
|
|
this.lblCSV.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblCSV.Location = new System.Drawing.Point(15, 50);
|
|
this.lblCSV.Name = "lblCSV";
|
|
this.lblCSV.Size = new System.Drawing.Size(124, 15);
|
|
this.lblCSV.TabIndex = 1;
|
|
this.lblCSV.Text = "File CSV da convertire:";
|
|
//
|
|
// openFileDialog1
|
|
//
|
|
this.openFileDialog1.FileName = "openFileDialog1";
|
|
this.openFileDialog1.InitialDirectory = "@\"C:\\\"";
|
|
this.openFileDialog1.RestoreDirectory = true;
|
|
//
|
|
// txtFile
|
|
//
|
|
this.txtFile.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.txtFile.Location = new System.Drawing.Point(17, 68);
|
|
this.txtFile.Name = "txtFile";
|
|
this.txtFile.Size = new System.Drawing.Size(516, 23);
|
|
this.txtFile.TabIndex = 3;
|
|
//
|
|
// btnCercaFile
|
|
//
|
|
this.btnCercaFile.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnCercaFile.Location = new System.Drawing.Point(540, 68);
|
|
this.btnCercaFile.Name = "btnCercaFile";
|
|
this.btnCercaFile.Size = new System.Drawing.Size(83, 23);
|
|
this.btnCercaFile.TabIndex = 4;
|
|
this.btnCercaFile.Text = "Cerca";
|
|
this.btnCercaFile.UseVisualStyleBackColor = true;
|
|
this.btnCercaFile.Click += new System.EventHandler(this.btnCercaFile_Click);
|
|
//
|
|
// btnConverti
|
|
//
|
|
this.btnConverti.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnConverti.Location = new System.Drawing.Point(454, 35);
|
|
this.btnConverti.Name = "btnConverti";
|
|
this.btnConverti.Size = new System.Drawing.Size(79, 27);
|
|
this.btnConverti.TabIndex = 5;
|
|
this.btnConverti.Text = "Genera XML";
|
|
this.btnConverti.UseVisualStyleBackColor = true;
|
|
this.btnConverti.Visible = false;
|
|
//
|
|
// lblCodAzi
|
|
//
|
|
this.lblCodAzi.AutoSize = true;
|
|
this.lblCodAzi.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblCodAzi.Location = new System.Drawing.Point(427, 11);
|
|
this.lblCodAzi.Name = "lblCodAzi";
|
|
this.lblCodAzi.Size = new System.Drawing.Size(92, 15);
|
|
this.lblCodAzi.TabIndex = 6;
|
|
this.lblCodAzi.Text = "Codice Azienda:";
|
|
this.lblCodAzi.Visible = false;
|
|
//
|
|
// lblData
|
|
//
|
|
this.lblData.AutoSize = true;
|
|
this.lblData.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblData.Location = new System.Drawing.Point(15, 16);
|
|
this.lblData.Name = "lblData";
|
|
this.lblData.Size = new System.Drawing.Size(75, 15);
|
|
this.lblData.TabIndex = 7;
|
|
this.lblData.Text = "Data calcolo:";
|
|
//
|
|
// txtCodAzi
|
|
//
|
|
this.txtCodAzi.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.txtCodAzi.Location = new System.Drawing.Point(525, 8);
|
|
this.txtCodAzi.MaxLength = 4;
|
|
this.txtCodAzi.Name = "txtCodAzi";
|
|
this.txtCodAzi.Size = new System.Drawing.Size(98, 23);
|
|
this.txtCodAzi.TabIndex = 1;
|
|
this.txtCodAzi.Visible = false;
|
|
//
|
|
// dtpAnnoMese
|
|
//
|
|
this.dtpAnnoMese.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.dtpAnnoMese.Location = new System.Drawing.Point(94, 12);
|
|
this.dtpAnnoMese.Name = "dtpAnnoMese";
|
|
this.dtpAnnoMese.Size = new System.Drawing.Size(194, 23);
|
|
this.dtpAnnoMese.TabIndex = 2;
|
|
//
|
|
// btnXmlInv
|
|
//
|
|
this.btnXmlInv.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnXmlInv.Location = new System.Drawing.Point(539, 35);
|
|
this.btnXmlInv.Name = "btnXmlInv";
|
|
this.btnXmlInv.Size = new System.Drawing.Size(84, 27);
|
|
this.btnXmlInv.TabIndex = 6;
|
|
this.btnXmlInv.Text = "XML Inv.";
|
|
this.btnXmlInv.UseVisualStyleBackColor = true;
|
|
this.btnXmlInv.Visible = false;
|
|
//
|
|
// btnDekra
|
|
//
|
|
this.btnDekra.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnDekra.Location = new System.Drawing.Point(17, 123);
|
|
this.btnDekra.Name = "btnDekra";
|
|
this.btnDekra.Size = new System.Drawing.Size(93, 27);
|
|
this.btnDekra.TabIndex = 8;
|
|
this.btnDekra.Text = "DEKRA IT.";
|
|
this.btnDekra.UseVisualStyleBackColor = true;
|
|
this.btnDekra.Click += new System.EventHandler(this.btnDekra_Click);
|
|
//
|
|
// btnDekraInv
|
|
//
|
|
this.btnDekraInv.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnDekraInv.Location = new System.Drawing.Point(17, 156);
|
|
this.btnDekraInv.Name = "btnDekraInv";
|
|
this.btnDekraInv.Size = new System.Drawing.Size(93, 27);
|
|
this.btnDekraInv.TabIndex = 9;
|
|
this.btnDekraInv.Text = "DEKRA IT. INV.";
|
|
this.btnDekraInv.UseVisualStyleBackColor = true;
|
|
this.btnDekraInv.Click += new System.EventHandler(this.btnDekraInv_Click);
|
|
//
|
|
// btnDtcInv
|
|
//
|
|
this.btnDtcInv.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnDtcInv.Location = new System.Drawing.Point(196, 156);
|
|
this.btnDtcInv.Name = "btnDtcInv";
|
|
this.btnDtcInv.Size = new System.Drawing.Size(79, 27);
|
|
this.btnDtcInv.TabIndex = 11;
|
|
this.btnDtcInv.Text = "DTC INV.";
|
|
this.btnDtcInv.UseVisualStyleBackColor = true;
|
|
this.btnDtcInv.Click += new System.EventHandler(this.btnDtcInv_Click);
|
|
//
|
|
// btnDtc
|
|
//
|
|
this.btnDtc.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnDtc.Location = new System.Drawing.Point(196, 123);
|
|
this.btnDtc.Name = "btnDtc";
|
|
this.btnDtc.Size = new System.Drawing.Size(79, 27);
|
|
this.btnDtc.TabIndex = 10;
|
|
this.btnDtc.Text = "DTC";
|
|
this.btnDtc.UseVisualStyleBackColor = true;
|
|
this.btnDtc.Click += new System.EventHandler(this.btnDtc_Click);
|
|
//
|
|
// btnDakInv
|
|
//
|
|
this.btnDakInv.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnDakInv.Location = new System.Drawing.Point(372, 156);
|
|
this.btnDakInv.Name = "btnDakInv";
|
|
this.btnDakInv.Size = new System.Drawing.Size(79, 27);
|
|
this.btnDakInv.TabIndex = 13;
|
|
this.btnDakInv.Text = "DAK INV.";
|
|
this.btnDakInv.UseVisualStyleBackColor = true;
|
|
this.btnDakInv.Click += new System.EventHandler(this.btnDakInv_Click);
|
|
//
|
|
// btnDak
|
|
//
|
|
this.btnDak.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnDak.Location = new System.Drawing.Point(372, 123);
|
|
this.btnDak.Name = "btnDak";
|
|
this.btnDak.Size = new System.Drawing.Size(79, 27);
|
|
this.btnDak.TabIndex = 12;
|
|
this.btnDak.Text = "DAK";
|
|
this.btnDak.UseVisualStyleBackColor = true;
|
|
this.btnDak.Click += new System.EventHandler(this.btnDak_Click);
|
|
//
|
|
// btnDinvestInv
|
|
//
|
|
this.btnDinvestInv.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnDinvestInv.Location = new System.Drawing.Point(525, 156);
|
|
this.btnDinvestInv.Name = "btnDinvestInv";
|
|
this.btnDinvestInv.Size = new System.Drawing.Size(98, 27);
|
|
this.btnDinvestInv.TabIndex = 15;
|
|
this.btnDinvestInv.Text = "DINVEST INV.";
|
|
this.btnDinvestInv.UseVisualStyleBackColor = true;
|
|
this.btnDinvestInv.Click += new System.EventHandler(this.btnDinvestInv_Click);
|
|
//
|
|
// btnDinvest
|
|
//
|
|
this.btnDinvest.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnDinvest.Location = new System.Drawing.Point(525, 123);
|
|
this.btnDinvest.Name = "btnDinvest";
|
|
this.btnDinvest.Size = new System.Drawing.Size(98, 27);
|
|
this.btnDinvest.TabIndex = 14;
|
|
this.btnDinvest.Text = "DINVEST";
|
|
this.btnDinvest.UseVisualStyleBackColor = true;
|
|
this.btnDinvest.Click += new System.EventHandler(this.btnDinvest_Click);
|
|
//
|
|
// lblDekra
|
|
//
|
|
this.lblDekra.AutoSize = true;
|
|
this.lblDekra.BackColor = System.Drawing.Color.Transparent;
|
|
this.lblDekra.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblDekra.Location = new System.Drawing.Point(25, 105);
|
|
this.lblDekra.Name = "lblDekra";
|
|
this.lblDekra.Size = new System.Drawing.Size(79, 15);
|
|
this.lblDekra.TabIndex = 16;
|
|
this.lblDekra.Text = "DEKRA ITALIA";
|
|
//
|
|
// lblDtc
|
|
//
|
|
this.lblDtc.AutoSize = true;
|
|
this.lblDtc.BackColor = System.Drawing.Color.Transparent;
|
|
this.lblDtc.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblDtc.Location = new System.Drawing.Point(222, 105);
|
|
this.lblDtc.Name = "lblDtc";
|
|
this.lblDtc.Size = new System.Drawing.Size(27, 15);
|
|
this.lblDtc.TabIndex = 17;
|
|
this.lblDtc.Text = "DTC";
|
|
//
|
|
// lblDak
|
|
//
|
|
this.lblDak.AutoSize = true;
|
|
this.lblDak.BackColor = System.Drawing.Color.Transparent;
|
|
this.lblDak.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblDak.Location = new System.Drawing.Point(395, 105);
|
|
this.lblDak.Name = "lblDak";
|
|
this.lblDak.Size = new System.Drawing.Size(30, 15);
|
|
this.lblDak.TabIndex = 18;
|
|
this.lblDak.Text = "DAK";
|
|
//
|
|
// lblDinvest
|
|
//
|
|
this.lblDinvest.AutoSize = true;
|
|
this.lblDinvest.BackColor = System.Drawing.Color.Transparent;
|
|
this.lblDinvest.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblDinvest.Location = new System.Drawing.Point(548, 105);
|
|
this.lblDinvest.Name = "lblDinvest";
|
|
this.lblDinvest.Size = new System.Drawing.Size(52, 15);
|
|
this.lblDinvest.TabIndex = 19;
|
|
this.lblDinvest.Text = "DINVEST";
|
|
//
|
|
// frmCSVToXML
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(633, 576);
|
|
this.Controls.Add(this.lblDinvest);
|
|
this.Controls.Add(this.lblDak);
|
|
this.Controls.Add(this.lblDtc);
|
|
this.Controls.Add(this.lblDekra);
|
|
this.Controls.Add(this.btnDinvestInv);
|
|
this.Controls.Add(this.btnDinvest);
|
|
this.Controls.Add(this.btnDakInv);
|
|
this.Controls.Add(this.btnDak);
|
|
this.Controls.Add(this.btnDtcInv);
|
|
this.Controls.Add(this.btnDtc);
|
|
this.Controls.Add(this.btnDekraInv);
|
|
this.Controls.Add(this.btnDekra);
|
|
this.Controls.Add(this.btnXmlInv);
|
|
this.Controls.Add(this.dtpAnnoMese);
|
|
this.Controls.Add(this.txtCodAzi);
|
|
this.Controls.Add(this.lblData);
|
|
this.Controls.Add(this.lblCodAzi);
|
|
this.Controls.Add(this.btnConverti);
|
|
this.Controls.Add(this.btnCercaFile);
|
|
this.Controls.Add(this.txtFile);
|
|
this.Controls.Add(this.lblCSV);
|
|
this.Controls.Add(this.txtArea);
|
|
this.Name = "frmCSVToXML";
|
|
this.ShowIcon = false;
|
|
this.Text = "Converti da CSV a XML";
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.TextBox txtArea;
|
|
private System.Windows.Forms.Label lblCSV;
|
|
private System.Windows.Forms.OpenFileDialog openFileDialog1;
|
|
private System.Windows.Forms.TextBox txtFile;
|
|
private System.Windows.Forms.Button btnCercaFile;
|
|
private System.Windows.Forms.Button btnConverti;
|
|
private System.Windows.Forms.Label lblCodAzi;
|
|
private System.Windows.Forms.Label lblData;
|
|
private System.Windows.Forms.TextBox txtCodAzi;
|
|
private System.Windows.Forms.DateTimePicker dtpAnnoMese;
|
|
private System.Windows.Forms.Button btnXmlInv;
|
|
private System.Windows.Forms.Button btnDekra;
|
|
private System.Windows.Forms.Button btnDekraInv;
|
|
private System.Windows.Forms.Button btnDtcInv;
|
|
private System.Windows.Forms.Button btnDtc;
|
|
private System.Windows.Forms.Button btnDakInv;
|
|
private System.Windows.Forms.Button btnDak;
|
|
private System.Windows.Forms.Button btnDinvestInv;
|
|
private System.Windows.Forms.Button btnDinvest;
|
|
private System.Windows.Forms.Label lblDekra;
|
|
private System.Windows.Forms.Label lblDtc;
|
|
private System.Windows.Forms.Label lblDak;
|
|
private System.Windows.Forms.Label lblDinvest;
|
|
}
|
|
}
|
|
|