Update 20240802_vor_SfUpdate
This commit is contained in:
@@ -28,7 +28,11 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo1 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo();
|
||||
Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo2 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo();
|
||||
Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings2 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings();
|
||||
Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings2 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OfficeVorlage));
|
||||
Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings2 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings();
|
||||
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
|
||||
this.tsbtnClose = new System.Windows.Forms.ToolStripButton();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
@@ -51,9 +55,23 @@
|
||||
this.chkKopfzeile = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||
this.GrpBarcodeInhalt = new System.Windows.Forms.GroupBox();
|
||||
this.txtBCFontSize = new System.Windows.Forms.TextBox();
|
||||
this.txtBCFont = new System.Windows.Forms.TextBox();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.txtBCFormat = new System.Windows.Forms.TextBox();
|
||||
this.label13 = new System.Windows.Forms.Label();
|
||||
this.txtBCAnzeige = new System.Windows.Forms.TextBox();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.txtBCTrennzeichen = new System.Windows.Forms.TextBox();
|
||||
this.txtBCInhalt = new System.Windows.Forms.TextBox();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.PicBarcodeExample = new System.Windows.Forms.PictureBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.cbboxBarcodeType = new System.Windows.Forms.ComboBox();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.chkbchorizontal = new System.Windows.Forms.CheckBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.txtBcHeigth = new System.Windows.Forms.TextBox();
|
||||
@@ -63,30 +81,57 @@
|
||||
this.txtBcLeft = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.txtBcTop = new System.Windows.Forms.TextBox();
|
||||
this.PicBarcodeExample = new System.Windows.Forms.PictureBox();
|
||||
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||
this.pdfViewerControl1 = new Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl();
|
||||
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||
this.label15 = new System.Windows.Forms.Label();
|
||||
this.txtNrProduktion = new System.Windows.Forms.TextBox();
|
||||
this.chkboxfreigabe = new System.Windows.Forms.CheckBox();
|
||||
this.lblFreigabe = new System.Windows.Forms.Label();
|
||||
this.lblFreigabeam = new System.Windows.Forms.Label();
|
||||
this.lblTextFreigabeam = new System.Windows.Forms.Label();
|
||||
this.lblFreigabedurch = new System.Windows.Forms.Label();
|
||||
this.lbltextfreigabedurch = new System.Windows.Forms.Label();
|
||||
this.lblUebernahmeProd = new System.Windows.Forms.Label();
|
||||
this.lblTextÜbernahmeProd = new System.Windows.Forms.Label();
|
||||
this.btnImport = new System.Windows.Forms.Button();
|
||||
this.btnExport = new System.Windows.Forms.Button();
|
||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
|
||||
this.lblFilename = new System.Windows.Forms.Label();
|
||||
this.lbltextdateiname = new System.Windows.Forms.Label();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.label16 = new System.Windows.Forms.Label();
|
||||
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.TreeOfficeVorlagen)).BeginInit();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
this.groupBox4.SuspendLayout();
|
||||
this.GrpBarcodeInhalt.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PicBarcodeExample)).BeginInit();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.groupBox6.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// toolStrip1
|
||||
//
|
||||
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(32, 32);
|
||||
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.tsbtnClose});
|
||||
this.tsbtnClose,
|
||||
this.toolStripButton1});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(2, 2);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(1411, 25);
|
||||
this.toolStrip1.Size = new System.Drawing.Size(1566, 25);
|
||||
this.toolStrip1.TabIndex = 0;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// tsbtnClose
|
||||
//
|
||||
this.tsbtnClose.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbtnClose.Image = global::OnDoc.Properties.Resources.CloseApplication_24x24_32;
|
||||
this.tsbtnClose.Image = global::OnDoc.Properties.Resources.CloseApplication_32x32_32;
|
||||
this.tsbtnClose.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbtnClose.Name = "tsbtnClose";
|
||||
this.tsbtnClose.Size = new System.Drawing.Size(23, 22);
|
||||
@@ -95,28 +140,31 @@
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.TreeOfficeVorlagen);
|
||||
this.groupBox1.Controls.Add(this.groupBox4);
|
||||
this.groupBox1.Controls.Add(this.groupBox2);
|
||||
this.groupBox1.Controls.Add(this.groupBox3);
|
||||
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.groupBox1.Location = new System.Drawing.Point(2, 27);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(273, 873);
|
||||
this.groupBox1.Size = new System.Drawing.Size(864, 873);
|
||||
this.groupBox1.TabIndex = 1;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Office-Vorlagen";
|
||||
//
|
||||
// TreeOfficeVorlagen
|
||||
//
|
||||
treeNodeAdvStyleInfo1.CheckBoxTickThickness = 1;
|
||||
treeNodeAdvStyleInfo1.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
|
||||
treeNodeAdvStyleInfo1.EnsureDefaultOptionedChild = true;
|
||||
treeNodeAdvStyleInfo1.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
|
||||
treeNodeAdvStyleInfo1.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
|
||||
treeNodeAdvStyleInfo1.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
|
||||
treeNodeAdvStyleInfo1.TextColor = System.Drawing.Color.Black;
|
||||
treeNodeAdvStyleInfo2.CheckBoxTickThickness = 1;
|
||||
treeNodeAdvStyleInfo2.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
|
||||
treeNodeAdvStyleInfo2.EnsureDefaultOptionedChild = true;
|
||||
treeNodeAdvStyleInfo2.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
|
||||
treeNodeAdvStyleInfo2.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
|
||||
treeNodeAdvStyleInfo2.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
|
||||
treeNodeAdvStyleInfo2.ShowCheckBox = false;
|
||||
treeNodeAdvStyleInfo2.TextColor = System.Drawing.Color.Black;
|
||||
this.TreeOfficeVorlagen.BaseStylePairs.AddRange(new Syncfusion.Windows.Forms.Tools.StyleNamePair[] {
|
||||
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo1)});
|
||||
this.TreeOfficeVorlagen.BeforeTouchSize = new System.Drawing.Size(267, 790);
|
||||
this.TreeOfficeVorlagen.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo2)});
|
||||
this.TreeOfficeVorlagen.BeforeTouchSize = new System.Drawing.Size(303, 790);
|
||||
this.TreeOfficeVorlagen.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
//
|
||||
//
|
||||
//
|
||||
@@ -131,7 +179,7 @@
|
||||
this.TreeOfficeVorlagen.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220)))));
|
||||
this.TreeOfficeVorlagen.Name = "TreeOfficeVorlagen";
|
||||
this.TreeOfficeVorlagen.SelectedNodeForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
this.TreeOfficeVorlagen.Size = new System.Drawing.Size(267, 790);
|
||||
this.TreeOfficeVorlagen.Size = new System.Drawing.Size(303, 790);
|
||||
this.TreeOfficeVorlagen.SortWithChildNodes = true;
|
||||
this.TreeOfficeVorlagen.TabIndex = 0;
|
||||
this.TreeOfficeVorlagen.Text = "treeViewAdv1";
|
||||
@@ -146,6 +194,7 @@
|
||||
this.TreeOfficeVorlagen.ToolTipControl.Size = new System.Drawing.Size(392, 112);
|
||||
this.TreeOfficeVorlagen.ToolTipControl.TabIndex = 0;
|
||||
this.TreeOfficeVorlagen.ToolTipControl.Visible = true;
|
||||
this.TreeOfficeVorlagen.AfterSelect += new System.EventHandler(this.TreeOfficeVorlagen_AfterSelect);
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
@@ -157,7 +206,7 @@
|
||||
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox2.Location = new System.Drawing.Point(3, 16);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(267, 64);
|
||||
this.groupBox2.Size = new System.Drawing.Size(858, 64);
|
||||
this.groupBox2.TabIndex = 1;
|
||||
this.groupBox2.TabStop = false;
|
||||
//
|
||||
@@ -306,7 +355,7 @@
|
||||
this.groupBox3.Controls.Add(this.txtBeschreibung);
|
||||
this.groupBox3.Controls.Add(this.txtVersion);
|
||||
this.groupBox3.Controls.Add(this.lblVersion);
|
||||
this.groupBox3.Location = new System.Drawing.Point(281, 30);
|
||||
this.groupBox3.Location = new System.Drawing.Point(312, 80);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new System.Drawing.Size(535, 210);
|
||||
this.groupBox3.TabIndex = 12;
|
||||
@@ -315,10 +364,12 @@
|
||||
//
|
||||
// groupBox4
|
||||
//
|
||||
this.groupBox4.Controls.Add(this.GrpBarcodeInhalt);
|
||||
this.groupBox4.Controls.Add(this.label9);
|
||||
this.groupBox4.Controls.Add(this.PicBarcodeExample);
|
||||
this.groupBox4.Controls.Add(this.label8);
|
||||
this.groupBox4.Controls.Add(this.cbboxBarcodeType);
|
||||
this.groupBox4.Controls.Add(this.checkBox1);
|
||||
this.groupBox4.Controls.Add(this.chkbchorizontal);
|
||||
this.groupBox4.Controls.Add(this.label6);
|
||||
this.groupBox4.Controls.Add(this.label7);
|
||||
this.groupBox4.Controls.Add(this.txtBcHeigth);
|
||||
@@ -328,13 +379,141 @@
|
||||
this.groupBox4.Controls.Add(this.txtBcLeft);
|
||||
this.groupBox4.Controls.Add(this.label3);
|
||||
this.groupBox4.Controls.Add(this.txtBcTop);
|
||||
this.groupBox4.Location = new System.Drawing.Point(281, 246);
|
||||
this.groupBox4.Location = new System.Drawing.Point(312, 296);
|
||||
this.groupBox4.Name = "groupBox4";
|
||||
this.groupBox4.Size = new System.Drawing.Size(535, 291);
|
||||
this.groupBox4.Size = new System.Drawing.Size(535, 380);
|
||||
this.groupBox4.TabIndex = 13;
|
||||
this.groupBox4.TabStop = false;
|
||||
this.groupBox4.Text = "Barcode";
|
||||
//
|
||||
// GrpBarcodeInhalt
|
||||
//
|
||||
this.GrpBarcodeInhalt.Controls.Add(this.txtBCFontSize);
|
||||
this.GrpBarcodeInhalt.Controls.Add(this.txtBCFont);
|
||||
this.GrpBarcodeInhalt.Controls.Add(this.label14);
|
||||
this.GrpBarcodeInhalt.Controls.Add(this.txtBCFormat);
|
||||
this.GrpBarcodeInhalt.Controls.Add(this.label13);
|
||||
this.GrpBarcodeInhalt.Controls.Add(this.txtBCAnzeige);
|
||||
this.GrpBarcodeInhalt.Controls.Add(this.label12);
|
||||
this.GrpBarcodeInhalt.Controls.Add(this.label11);
|
||||
this.GrpBarcodeInhalt.Controls.Add(this.label10);
|
||||
this.GrpBarcodeInhalt.Controls.Add(this.txtBCTrennzeichen);
|
||||
this.GrpBarcodeInhalt.Controls.Add(this.txtBCInhalt);
|
||||
this.GrpBarcodeInhalt.Location = new System.Drawing.Point(26, 196);
|
||||
this.GrpBarcodeInhalt.Name = "GrpBarcodeInhalt";
|
||||
this.GrpBarcodeInhalt.Size = new System.Drawing.Size(503, 163);
|
||||
this.GrpBarcodeInhalt.TabIndex = 24;
|
||||
this.GrpBarcodeInhalt.TabStop = false;
|
||||
this.GrpBarcodeInhalt.Text = "Barcode-Inhalt";
|
||||
this.GrpBarcodeInhalt.Visible = false;
|
||||
//
|
||||
// txtBCFontSize
|
||||
//
|
||||
this.txtBCFontSize.Location = new System.Drawing.Point(446, 19);
|
||||
this.txtBCFontSize.Name = "txtBCFontSize";
|
||||
this.txtBCFontSize.Size = new System.Drawing.Size(51, 20);
|
||||
this.txtBCFontSize.TabIndex = 22;
|
||||
//
|
||||
// txtBCFont
|
||||
//
|
||||
this.txtBCFont.Location = new System.Drawing.Point(366, 19);
|
||||
this.txtBCFont.Name = "txtBCFont";
|
||||
this.txtBCFont.Size = new System.Drawing.Size(74, 20);
|
||||
this.txtBCFont.TabIndex = 21;
|
||||
//
|
||||
// label14
|
||||
//
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new System.Drawing.Point(285, 22);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(75, 13);
|
||||
this.label14.TabIndex = 20;
|
||||
this.label14.Text = "Schrift/Grösse";
|
||||
//
|
||||
// txtBCFormat
|
||||
//
|
||||
this.txtBCFormat.Location = new System.Drawing.Point(238, 19);
|
||||
this.txtBCFormat.Name = "txtBCFormat";
|
||||
this.txtBCFormat.Size = new System.Drawing.Size(41, 20);
|
||||
this.txtBCFormat.TabIndex = 19;
|
||||
//
|
||||
// label13
|
||||
//
|
||||
this.label13.AutoSize = true;
|
||||
this.label13.Location = new System.Drawing.Point(16, 99);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new System.Drawing.Size(92, 13);
|
||||
this.label13.TabIndex = 18;
|
||||
this.label13.Text = "Anzeigeparameter";
|
||||
//
|
||||
// txtBCAnzeige
|
||||
//
|
||||
this.txtBCAnzeige.Location = new System.Drawing.Point(114, 96);
|
||||
this.txtBCAnzeige.Multiline = true;
|
||||
this.txtBCAnzeige.Name = "txtBCAnzeige";
|
||||
this.txtBCAnzeige.Size = new System.Drawing.Size(383, 45);
|
||||
this.txtBCAnzeige.TabIndex = 17;
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(193, 22);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(39, 13);
|
||||
this.label12.TabIndex = 16;
|
||||
this.label12.Text = "Format";
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(20, 48);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(85, 13);
|
||||
this.label11.TabIndex = 15;
|
||||
this.label11.Text = "Inhaltsparameter";
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(20, 22);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(72, 13);
|
||||
this.label10.TabIndex = 14;
|
||||
this.label10.Text = "Trennzeichen";
|
||||
//
|
||||
// txtBCTrennzeichen
|
||||
//
|
||||
this.txtBCTrennzeichen.Location = new System.Drawing.Point(114, 19);
|
||||
this.txtBCTrennzeichen.Name = "txtBCTrennzeichen";
|
||||
this.txtBCTrennzeichen.Size = new System.Drawing.Size(60, 20);
|
||||
this.txtBCTrennzeichen.TabIndex = 13;
|
||||
//
|
||||
// txtBCInhalt
|
||||
//
|
||||
this.txtBCInhalt.Location = new System.Drawing.Point(114, 45);
|
||||
this.txtBCInhalt.Multiline = true;
|
||||
this.txtBCInhalt.Name = "txtBCInhalt";
|
||||
this.txtBCInhalt.Size = new System.Drawing.Size(383, 45);
|
||||
this.txtBCInhalt.TabIndex = 0;
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(250, 95);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(43, 13);
|
||||
this.label9.TabIndex = 23;
|
||||
this.label9.Text = "Beispiel";
|
||||
//
|
||||
// PicBarcodeExample
|
||||
//
|
||||
this.PicBarcodeExample.Location = new System.Drawing.Point(308, 92);
|
||||
this.PicBarcodeExample.Name = "PicBarcodeExample";
|
||||
this.PicBarcodeExample.Size = new System.Drawing.Size(221, 85);
|
||||
this.PicBarcodeExample.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.PicBarcodeExample.TabIndex = 22;
|
||||
this.PicBarcodeExample.TabStop = false;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
@@ -353,18 +532,18 @@
|
||||
"QR"});
|
||||
this.cbboxBarcodeType.Location = new System.Drawing.Point(77, 92);
|
||||
this.cbboxBarcodeType.Name = "cbboxBarcodeType";
|
||||
this.cbboxBarcodeType.Size = new System.Drawing.Size(211, 21);
|
||||
this.cbboxBarcodeType.Size = new System.Drawing.Size(123, 21);
|
||||
this.cbboxBarcodeType.TabIndex = 19;
|
||||
this.cbboxBarcodeType.SelectedIndexChanged += new System.EventHandler(this.cbboxBarcodeType_SelectedIndexChanged);
|
||||
//
|
||||
// checkBox1
|
||||
// chkbchorizontal
|
||||
//
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Location = new System.Drawing.Point(365, 21);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new System.Drawing.Size(15, 14);
|
||||
this.checkBox1.TabIndex = 13;
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
this.chkbchorizontal.AutoSize = true;
|
||||
this.chkbchorizontal.Location = new System.Drawing.Point(365, 21);
|
||||
this.chkbchorizontal.Name = "chkbchorizontal";
|
||||
this.chkbchorizontal.Size = new System.Drawing.Size(15, 14);
|
||||
this.chkbchorizontal.TabIndex = 13;
|
||||
this.chkbchorizontal.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
@@ -439,22 +618,249 @@
|
||||
this.txtBcTop.Size = new System.Drawing.Size(66, 20);
|
||||
this.txtBcTop.TabIndex = 0;
|
||||
//
|
||||
// PicBarcodeExample
|
||||
// groupBox5
|
||||
//
|
||||
this.PicBarcodeExample.Location = new System.Drawing.Point(294, 92);
|
||||
this.PicBarcodeExample.Name = "PicBarcodeExample";
|
||||
this.PicBarcodeExample.Size = new System.Drawing.Size(231, 85);
|
||||
this.PicBarcodeExample.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.PicBarcodeExample.TabIndex = 22;
|
||||
this.PicBarcodeExample.TabStop = false;
|
||||
this.groupBox5.Controls.Add(this.pdfViewerControl1);
|
||||
this.groupBox5.Controls.Add(this.groupBox6);
|
||||
this.groupBox5.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox5.Location = new System.Drawing.Point(866, 27);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new System.Drawing.Size(702, 873);
|
||||
this.groupBox5.TabIndex = 14;
|
||||
this.groupBox5.TabStop = false;
|
||||
this.groupBox5.Text = "Vorlage";
|
||||
//
|
||||
// pdfViewerControl1
|
||||
//
|
||||
this.pdfViewerControl1.CursorMode = Syncfusion.Windows.Forms.PdfViewer.PdfViewerCursorMode.SelectTool;
|
||||
this.pdfViewerControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pdfViewerControl1.EnableContextMenu = true;
|
||||
this.pdfViewerControl1.EnableNotificationBar = true;
|
||||
this.pdfViewerControl1.HorizontalScrollOffset = 0;
|
||||
this.pdfViewerControl1.IsBookmarkEnabled = true;
|
||||
this.pdfViewerControl1.IsTextSearchEnabled = true;
|
||||
this.pdfViewerControl1.IsTextSelectionEnabled = true;
|
||||
this.pdfViewerControl1.Location = new System.Drawing.Point(3, 227);
|
||||
messageBoxSettings2.EnableNotification = true;
|
||||
this.pdfViewerControl1.MessageBoxSettings = messageBoxSettings2;
|
||||
this.pdfViewerControl1.MinimumZoomPercentage = 50;
|
||||
this.pdfViewerControl1.Name = "pdfViewerControl1";
|
||||
this.pdfViewerControl1.PageBorderThickness = 1;
|
||||
pdfViewerPrinterSettings2.Copies = 1;
|
||||
pdfViewerPrinterSettings2.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto;
|
||||
pdfViewerPrinterSettings2.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize;
|
||||
pdfViewerPrinterSettings2.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings2.PrintLocation")));
|
||||
pdfViewerPrinterSettings2.ShowPrintStatusDialog = true;
|
||||
this.pdfViewerControl1.PrinterSettings = pdfViewerPrinterSettings2;
|
||||
this.pdfViewerControl1.ReferencePath = null;
|
||||
this.pdfViewerControl1.ScrollDisplacementValue = 0;
|
||||
this.pdfViewerControl1.ShowHorizontalScrollBar = true;
|
||||
this.pdfViewerControl1.ShowToolBar = true;
|
||||
this.pdfViewerControl1.ShowVerticalScrollBar = true;
|
||||
this.pdfViewerControl1.Size = new System.Drawing.Size(696, 643);
|
||||
this.pdfViewerControl1.SpaceBetweenPages = 8;
|
||||
this.pdfViewerControl1.TabIndex = 1;
|
||||
this.pdfViewerControl1.Text = "pdfViewerControl1";
|
||||
textSearchSettings2.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64)))));
|
||||
textSearchSettings2.HighlightAllInstance = true;
|
||||
textSearchSettings2.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
|
||||
this.pdfViewerControl1.TextSearchSettings = textSearchSettings2;
|
||||
this.pdfViewerControl1.ThemeName = "Default";
|
||||
this.pdfViewerControl1.VerticalScrollOffset = 0;
|
||||
this.pdfViewerControl1.VisualStyle = Syncfusion.Windows.Forms.PdfViewer.VisualStyle.Default;
|
||||
this.pdfViewerControl1.ZoomMode = Syncfusion.Windows.Forms.PdfViewer.ZoomMode.Default;
|
||||
//
|
||||
// groupBox6
|
||||
//
|
||||
this.groupBox6.Controls.Add(this.panel1);
|
||||
this.groupBox6.Controls.Add(this.lbltextdateiname);
|
||||
this.groupBox6.Controls.Add(this.lblFilename);
|
||||
this.groupBox6.Controls.Add(this.btnExport);
|
||||
this.groupBox6.Controls.Add(this.btnImport);
|
||||
this.groupBox6.Controls.Add(this.lblTextÜbernahmeProd);
|
||||
this.groupBox6.Controls.Add(this.lblUebernahmeProd);
|
||||
this.groupBox6.Controls.Add(this.lbltextfreigabedurch);
|
||||
this.groupBox6.Controls.Add(this.lblFreigabedurch);
|
||||
this.groupBox6.Controls.Add(this.lblTextFreigabeam);
|
||||
this.groupBox6.Controls.Add(this.lblFreigabeam);
|
||||
this.groupBox6.Controls.Add(this.lblFreigabe);
|
||||
this.groupBox6.Controls.Add(this.chkboxfreigabe);
|
||||
this.groupBox6.Controls.Add(this.label15);
|
||||
this.groupBox6.Controls.Add(this.txtNrProduktion);
|
||||
this.groupBox6.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox6.Location = new System.Drawing.Point(3, 16);
|
||||
this.groupBox6.Name = "groupBox6";
|
||||
this.groupBox6.Size = new System.Drawing.Size(696, 211);
|
||||
this.groupBox6.TabIndex = 0;
|
||||
this.groupBox6.TabStop = false;
|
||||
//
|
||||
// label15
|
||||
//
|
||||
this.label15.AutoSize = true;
|
||||
this.label15.Location = new System.Drawing.Point(21, 19);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new System.Drawing.Size(75, 13);
|
||||
this.label15.TabIndex = 24;
|
||||
this.label15.Text = "Nr. Produktion";
|
||||
//
|
||||
// txtNrProduktion
|
||||
//
|
||||
this.txtNrProduktion.Location = new System.Drawing.Point(115, 16);
|
||||
this.txtNrProduktion.Name = "txtNrProduktion";
|
||||
this.txtNrProduktion.Size = new System.Drawing.Size(60, 20);
|
||||
this.txtNrProduktion.TabIndex = 23;
|
||||
//
|
||||
// chkboxfreigabe
|
||||
//
|
||||
this.chkboxfreigabe.AutoSize = true;
|
||||
this.chkboxfreigabe.Location = new System.Drawing.Point(115, 46);
|
||||
this.chkboxfreigabe.Name = "chkboxfreigabe";
|
||||
this.chkboxfreigabe.Size = new System.Drawing.Size(15, 14);
|
||||
this.chkboxfreigabe.TabIndex = 25;
|
||||
this.chkboxfreigabe.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// lblFreigabe
|
||||
//
|
||||
this.lblFreigabe.AutoSize = true;
|
||||
this.lblFreigabe.Location = new System.Drawing.Point(21, 45);
|
||||
this.lblFreigabe.Name = "lblFreigabe";
|
||||
this.lblFreigabe.Size = new System.Drawing.Size(54, 13);
|
||||
this.lblFreigabe.TabIndex = 26;
|
||||
this.lblFreigabe.Text = "Freigeben";
|
||||
//
|
||||
// lblFreigabeam
|
||||
//
|
||||
this.lblFreigabeam.AutoSize = true;
|
||||
this.lblFreigabeam.Location = new System.Drawing.Point(21, 73);
|
||||
this.lblFreigabeam.Name = "lblFreigabeam";
|
||||
this.lblFreigabeam.Size = new System.Drawing.Size(86, 13);
|
||||
this.lblFreigabeam.TabIndex = 28;
|
||||
this.lblFreigabeam.Text = "Freigegeben am:";
|
||||
//
|
||||
// lblTextFreigabeam
|
||||
//
|
||||
this.lblTextFreigabeam.AutoSize = true;
|
||||
this.lblTextFreigabeam.Location = new System.Drawing.Point(114, 73);
|
||||
this.lblTextFreigabeam.Name = "lblTextFreigabeam";
|
||||
this.lblTextFreigabeam.Size = new System.Drawing.Size(61, 13);
|
||||
this.lblTextFreigabeam.TabIndex = 29;
|
||||
this.lblTextFreigabeam.Text = "01.01.2024";
|
||||
//
|
||||
// lblFreigabedurch
|
||||
//
|
||||
this.lblFreigabedurch.AutoSize = true;
|
||||
this.lblFreigabedurch.Location = new System.Drawing.Point(21, 95);
|
||||
this.lblFreigabedurch.Name = "lblFreigabedurch";
|
||||
this.lblFreigabedurch.Size = new System.Drawing.Size(81, 13);
|
||||
this.lblFreigabedurch.TabIndex = 30;
|
||||
this.lblFreigabedurch.Text = "Freigabe durch:";
|
||||
//
|
||||
// lbltextfreigabedurch
|
||||
//
|
||||
this.lbltextfreigabedurch.AutoSize = true;
|
||||
this.lbltextfreigabedurch.Location = new System.Drawing.Point(112, 95);
|
||||
this.lbltextfreigabedurch.Name = "lbltextfreigabedurch";
|
||||
this.lbltextfreigabedurch.Size = new System.Drawing.Size(13, 13);
|
||||
this.lbltextfreigabedurch.TabIndex = 31;
|
||||
this.lbltextfreigabedurch.Text = "1";
|
||||
//
|
||||
// lblUebernahmeProd
|
||||
//
|
||||
this.lblUebernahmeProd.AutoSize = true;
|
||||
this.lblUebernahmeProd.Location = new System.Drawing.Point(21, 119);
|
||||
this.lblUebernahmeProd.Name = "lblUebernahmeProd";
|
||||
this.lblUebernahmeProd.Size = new System.Drawing.Size(93, 13);
|
||||
this.lblUebernahmeProd.TabIndex = 32;
|
||||
this.lblUebernahmeProd.Text = "Übernahme Prod.:";
|
||||
//
|
||||
// lblTextÜbernahmeProd
|
||||
//
|
||||
this.lblTextÜbernahmeProd.AutoSize = true;
|
||||
this.lblTextÜbernahmeProd.Location = new System.Drawing.Point(112, 119);
|
||||
this.lblTextÜbernahmeProd.Name = "lblTextÜbernahmeProd";
|
||||
this.lblTextÜbernahmeProd.Size = new System.Drawing.Size(61, 13);
|
||||
this.lblTextÜbernahmeProd.TabIndex = 33;
|
||||
this.lblTextÜbernahmeProd.Text = "01.01.2024";
|
||||
//
|
||||
// btnImport
|
||||
//
|
||||
this.btnImport.Location = new System.Drawing.Point(408, 13);
|
||||
this.btnImport.Name = "btnImport";
|
||||
this.btnImport.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnImport.TabIndex = 35;
|
||||
this.btnImport.Text = "Improtieren";
|
||||
this.btnImport.UseVisualStyleBackColor = true;
|
||||
this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
|
||||
//
|
||||
// btnExport
|
||||
//
|
||||
this.btnExport.Location = new System.Drawing.Point(489, 13);
|
||||
this.btnExport.Name = "btnExport";
|
||||
this.btnExport.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnExport.TabIndex = 36;
|
||||
this.btnExport.Text = "Exportieren";
|
||||
this.btnExport.UseVisualStyleBackColor = true;
|
||||
this.btnExport.Click += new System.EventHandler(this.btnExport_Click);
|
||||
//
|
||||
// openFileDialog1
|
||||
//
|
||||
this.openFileDialog1.FileName = "openFileDialog1";
|
||||
//
|
||||
// lblFilename
|
||||
//
|
||||
this.lblFilename.AutoSize = true;
|
||||
this.lblFilename.Location = new System.Drawing.Point(21, 156);
|
||||
this.lblFilename.Name = "lblFilename";
|
||||
this.lblFilename.Size = new System.Drawing.Size(58, 13);
|
||||
this.lblFilename.TabIndex = 37;
|
||||
this.lblFilename.Text = "Dateiname";
|
||||
//
|
||||
// lbltextdateiname
|
||||
//
|
||||
this.lbltextdateiname.AutoSize = true;
|
||||
this.lbltextdateiname.Location = new System.Drawing.Point(112, 156);
|
||||
this.lbltextdateiname.Name = "lbltextdateiname";
|
||||
this.lbltextdateiname.Size = new System.Drawing.Size(53, 13);
|
||||
this.lbltextdateiname.TabIndex = 38;
|
||||
this.lbltextdateiname.Text = "brief.docx";
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.AllowDrop = true;
|
||||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel1.Controls.Add(this.label16);
|
||||
this.panel1.Location = new System.Drawing.Point(408, 73);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(200, 100);
|
||||
this.panel1.TabIndex = 39;
|
||||
this.panel1.DragDrop += new System.Windows.Forms.DragEventHandler(this.panel1_DragDrop);
|
||||
this.panel1.DragEnter += new System.Windows.Forms.DragEventHandler(this.panel1_DragEnter);
|
||||
//
|
||||
// label16
|
||||
//
|
||||
this.label16.AutoSize = true;
|
||||
this.label16.Location = new System.Drawing.Point(59, 42);
|
||||
this.label16.Name = "label16";
|
||||
this.label16.Size = new System.Drawing.Size(75, 13);
|
||||
this.label16.TabIndex = 0;
|
||||
this.label16.Text = "Hierher ziehen";
|
||||
//
|
||||
// toolStripButton1
|
||||
//
|
||||
this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.toolStripButton1.Image = global::OnDoc.Properties.Resources.save_32x32_32;
|
||||
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new System.Drawing.Size(23, 22);
|
||||
this.toolStripButton1.Text = "toolStripButton1";
|
||||
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
|
||||
//
|
||||
// OfficeVorlage
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1415, 902);
|
||||
this.Controls.Add(this.groupBox4);
|
||||
this.Controls.Add(this.groupBox3);
|
||||
this.ClientSize = new System.Drawing.Size(1570, 902);
|
||||
this.Controls.Add(this.groupBox5);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.toolStrip1);
|
||||
this.Name = "OfficeVorlage";
|
||||
@@ -472,7 +878,14 @@
|
||||
this.groupBox3.PerformLayout();
|
||||
this.groupBox4.ResumeLayout(false);
|
||||
this.groupBox4.PerformLayout();
|
||||
this.GrpBarcodeInhalt.ResumeLayout(false);
|
||||
this.GrpBarcodeInhalt.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PicBarcodeExample)).EndInit();
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.groupBox6.ResumeLayout(false);
|
||||
this.groupBox6.PerformLayout();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -512,8 +925,43 @@
|
||||
private System.Windows.Forms.TextBox txtBcTop;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.ComboBox cbboxBarcodeType;
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
private System.Windows.Forms.CheckBox chkbchorizontal;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.PictureBox PicBarcodeExample;
|
||||
private System.Windows.Forms.GroupBox GrpBarcodeInhalt;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.TextBox txtBCFontSize;
|
||||
private System.Windows.Forms.TextBox txtBCFont;
|
||||
private System.Windows.Forms.Label label14;
|
||||
private System.Windows.Forms.TextBox txtBCFormat;
|
||||
private System.Windows.Forms.Label label13;
|
||||
private System.Windows.Forms.TextBox txtBCAnzeige;
|
||||
private System.Windows.Forms.Label label12;
|
||||
private System.Windows.Forms.Label label11;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.TextBox txtBCTrennzeichen;
|
||||
private System.Windows.Forms.TextBox txtBCInhalt;
|
||||
private System.Windows.Forms.GroupBox groupBox5;
|
||||
private Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl pdfViewerControl1;
|
||||
private System.Windows.Forms.GroupBox groupBox6;
|
||||
private System.Windows.Forms.Label label15;
|
||||
private System.Windows.Forms.TextBox txtNrProduktion;
|
||||
private System.Windows.Forms.Button btnExport;
|
||||
private System.Windows.Forms.Button btnImport;
|
||||
private System.Windows.Forms.Label lblTextÜbernahmeProd;
|
||||
private System.Windows.Forms.Label lblUebernahmeProd;
|
||||
private System.Windows.Forms.Label lbltextfreigabedurch;
|
||||
private System.Windows.Forms.Label lblFreigabedurch;
|
||||
private System.Windows.Forms.Label lblTextFreigabeam;
|
||||
private System.Windows.Forms.Label lblFreigabeam;
|
||||
private System.Windows.Forms.Label lblFreigabe;
|
||||
private System.Windows.Forms.CheckBox chkboxfreigabe;
|
||||
private System.Windows.Forms.OpenFileDialog openFileDialog1;
|
||||
private System.Windows.Forms.SaveFileDialog saveFileDialog1;
|
||||
private System.Windows.Forms.Label lbltextdateiname;
|
||||
private System.Windows.Forms.Label lblFilename;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Label label16;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton1;
|
||||
}
|
||||
}
|
||||
@@ -3,12 +3,17 @@ using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Xml.Linq;
|
||||
using Barcoded.qr;
|
||||
using DOCGEN.Klassen;
|
||||
using Model;
|
||||
using NLog;
|
||||
using OnDoc.Helper;
|
||||
using OnDoc.Klassen;
|
||||
using Syncfusion.Windows.Forms;
|
||||
using Syncfusion.Windows.Forms.Tools;
|
||||
@@ -96,9 +101,10 @@ namespace OnDoc.UIControls.Administrator
|
||||
|
||||
System.Drawing.Image barcodeimage = barcode.Get_LinerBarcode(Barcoded.Symbology.I2of5C, "1234567890123456", "1234567890123456", "Below", "Arial", 8, 0);
|
||||
PicBarcodeExample.Image = barcodeimage;
|
||||
|
||||
GrpBarcodeInhalt.Visible=false;
|
||||
break;
|
||||
case "Datamatrix":
|
||||
GrpBarcodeInhalt.Visible = true;
|
||||
BarcodeLib.Barcode dmcode = new BarcodeLib.Barcode();
|
||||
string qr = "imaq$0002024002033986$0006$1001020854$29825487$104690562$104690562$";
|
||||
string qrvisible = "1001020854\r\n000202400203398 U";
|
||||
@@ -107,12 +113,142 @@ namespace OnDoc.UIControls.Administrator
|
||||
break;
|
||||
case "QR":
|
||||
BarcodeLib.Barcode qrcode = new BarcodeLib.Barcode();
|
||||
qrcode.Get_QRCode()
|
||||
//qrcode.Get_QRCode();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void TreeOfficeVorlagen_AfterSelect(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Database.DB db = new Database.DB(AppParams.connectionstring);
|
||||
db.Get_Tabledata("Select * from office_vorlage where office_vorlagenr = " + TreeOfficeVorlagen.SelectedNode.Tag.ToString(), false, true);
|
||||
DataRow r = db.dsdaten.Tables[0].Rows[0];
|
||||
txtBezeichnung.Text = r["bezeichnung"].ToString();
|
||||
txtBeschreibung.Text = r["beschreibung"].ToString();
|
||||
txtVersion.Text = r["Version"].ToString();
|
||||
txtPräfix.Text = r["prefix_dokumentname"].ToString();
|
||||
if (Convert.ToBoolean(r["kopfzeile_generieren"]) == true) { chkKopfzeile.Checked = true; } else { chkKopfzeile.Checked = false; }
|
||||
txtBcTop.Text = r["bcpt"].ToString();
|
||||
txtBcLeft.Text = r["bcpl"].ToString();
|
||||
txtBcWidth.Text = r["bcw"].ToString();
|
||||
txtBcHeigth.Text = r["bch"].ToString();
|
||||
if (Convert.ToBoolean(r["bchorizontal"]) == true) { chkbchorizontal.Checked = true; } else { chkbchorizontal.Checked = false; }
|
||||
cbboxBarcodeType.SelectedIndex = Convert.ToInt32(r["barcodetype"]);
|
||||
txtBCTrennzeichen.Text = r["datamatrixdelimiter"].ToString();
|
||||
txtBCFormat.Text = r["datamatrixformat"].ToString();
|
||||
txtBCFont.Text = r["Datamatrixfont"].ToString();
|
||||
txtBCFontSize.Text = r["DataMatrixFontSize"].ToString();
|
||||
txtBCInhalt.Text = r["datamatrixcontent"].ToString();
|
||||
txtBCAnzeige.Text = r["datamatrixbeschriftung"].ToString();
|
||||
|
||||
db.Get_Tabledata("Select * from office_vorlage_datei where office_vorlage_dateinr = " + TreeOfficeVorlagen.SelectedNode.Tag.ToString(), false, true);
|
||||
DataRow dr = db.dsdaten.Tables[0].Rows[0];
|
||||
lbltextdateiname.Text = dr["dateiname"].ToString();
|
||||
lblTextFreigabeam.Text = dr["fragabe_am"].ToString();
|
||||
lbltextfreigabedurch.Text = dr["freigabe_durch"].ToString();
|
||||
lblTextÜbernahmeProd.Text = dr["uebernahme_produktion"].ToString();
|
||||
txtNrProduktion.Text = dr["office_vorlagenr"].ToString();
|
||||
|
||||
|
||||
string document = db.Get_Office_Vorlage_asBase64(TreeOfficeVorlagen.SelectedNode.Tag.ToString());
|
||||
db.Get_ApplicationType_from_Vorlage(Convert.ToInt32(TreeOfficeVorlagen.SelectedNode.Tag));
|
||||
string Apptype = "";
|
||||
Apptype = db.dsdaten.Tables[0].Rows[0][0].ToString();
|
||||
DOCGEN.DocGet dg = new DOCGEN.DocGet(AppParams.connectionstring);
|
||||
string pdfdoc = "";
|
||||
switch (Apptype.ToUpper())
|
||||
{
|
||||
case "DOCX":
|
||||
case "DOCM":
|
||||
case "DOC":
|
||||
case "DOT":
|
||||
case "WORD":
|
||||
case "DOTM":
|
||||
pdfdoc = dg.Convert_Word_To_PDF(document);
|
||||
break;
|
||||
case "XLSM":
|
||||
case "XLSX":
|
||||
case "XLST":
|
||||
case "XLS":
|
||||
case "XLT":
|
||||
pdfdoc = dg.Convert_Excel_To_PDF(document);
|
||||
break;
|
||||
dg = null;
|
||||
//break;
|
||||
case "PDF":
|
||||
case "ACROBAT":
|
||||
case "FORMULAR":
|
||||
case "DOKUMENT":
|
||||
//break ;
|
||||
|
||||
default:
|
||||
break;
|
||||
//break;
|
||||
}
|
||||
if (pdfdoc != "")
|
||||
{
|
||||
var stream = new MemoryStream(Convert.FromBase64String(pdfdoc));
|
||||
pdfViewerControl1.Load(stream);
|
||||
|
||||
}
|
||||
db = null;
|
||||
dg = null;
|
||||
}
|
||||
catch { }
|
||||
|
||||
}
|
||||
|
||||
private void btnExport_Click(object sender, EventArgs e)
|
||||
{
|
||||
Database.DB db = new Database.DB(AppParams.connectionstring);
|
||||
string doc = db.Get_Office_Vorlage_asBase64(TreeOfficeVorlagen.SelectedNode.Tag.ToString());
|
||||
saveFileDialog1.FileName = lbltextdateiname.Text;
|
||||
if (saveFileDialog1.ShowDialog() == DialogResult.OK) {
|
||||
FileHelper fh = new FileHelper();
|
||||
fh.SaveBase64ToFile(doc, saveFileDialog1.FileName);
|
||||
fh = null;
|
||||
}
|
||||
db=null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void btnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (openFileDialog1.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
Database.DB db = new Database.DB(AppParams.connectionstring);
|
||||
db.save_vorlage_to_db(openFileDialog1.FileName, TreeOfficeVorlagen.SelectedNode.Tag.ToString());
|
||||
db = null;
|
||||
TreeOfficeVorlagen_AfterSelect(sender, e);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void panel1_DragEnter(object sender, DragEventArgs e)
|
||||
{
|
||||
if (e.Data.GetDataPresent(DataFormats.FileDrop)) e.Effect = DragDropEffects.Copy;
|
||||
}
|
||||
|
||||
private void panel1_DragDrop(object sender, DragEventArgs e)
|
||||
{
|
||||
string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
|
||||
if (files.Length > 1) { MessageBox.Show("Nur eine Datei möglich!","Vorlage speichern",MessageBoxButtons.OK,MessageBoxIcon.Error); return; }
|
||||
Database.DB db = new Database.DB(AppParams.connectionstring);
|
||||
db.save_vorlage_to_db(files[0], TreeOfficeVorlagen.SelectedNode.Tag.ToString());
|
||||
db = null;
|
||||
TreeOfficeVorlagen_AfterSelect(sender, e);
|
||||
|
||||
}
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,4 +120,17 @@
|
||||
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<data name="pdfViewerPrinterSettings2.PrintLocation" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>
|
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0
|
||||
dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABVTeXN0ZW0uRHJh
|
||||
d2luZy5Qb2ludEYCAAAAAXgBeQAACwsCAAAAAAAAAAAAAAAL
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>122, 17</value>
|
||||
</metadata>
|
||||
<metadata name="saveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>261, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
Reference in New Issue
Block a user