update 20241210
This commit is contained in:
10
Client/Diverses/NativVorlagen.Designer.cs
generated
10
Client/Diverses/NativVorlagen.Designer.cs
generated
@@ -54,7 +54,7 @@
|
||||
//
|
||||
// treeView
|
||||
//
|
||||
this.treeView.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.treeView.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.treeView.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawText;
|
||||
this.treeView.FullRowSelect = true;
|
||||
this.treeView.HideSelection = false;
|
||||
@@ -64,7 +64,7 @@
|
||||
this.treeView.Location = new System.Drawing.Point(2, 2);
|
||||
this.treeView.Name = "treeView";
|
||||
this.treeView.SelectedImageIndex = 0;
|
||||
this.treeView.Size = new System.Drawing.Size(296, 446);
|
||||
this.treeView.Size = new System.Drawing.Size(294, 403);
|
||||
this.treeView.TabIndex = 1;
|
||||
this.treeView.DrawNode += new System.Windows.Forms.DrawTreeNodeEventHandler(this.treeView_DrawNode);
|
||||
this.treeView.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView_NodeMouseDoubleClick);
|
||||
@@ -121,9 +121,9 @@
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(319, 422);
|
||||
this.button1.Location = new System.Drawing.Point(2, 411);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.Size = new System.Drawing.Size(294, 23);
|
||||
this.button1.TabIndex = 4;
|
||||
this.button1.Text = "Erstellen";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
@@ -133,7 +133,7 @@
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(533, 450);
|
||||
this.ClientSize = new System.Drawing.Size(298, 450);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.treeView);
|
||||
|
||||
@@ -97,13 +97,14 @@ namespace OnDoc.Diverses
|
||||
|
||||
foreach (FileInfo file in directoryInfo.GetFiles())
|
||||
{
|
||||
if (file.Exists && file.Name!="klassifizierung.txt")
|
||||
if (file.Exists && file.Name!="Klassifizierung.txt")
|
||||
{
|
||||
|
||||
ext = System.IO.Path.GetExtension(file.Name);
|
||||
TreeNode tnnew = new TreeNode();
|
||||
tnnew.Text = file.Name;
|
||||
tnnew.Tag = file.FullName;
|
||||
Logging.Logging.Debug("Load Nativ: " + file.FullName,"OnDoc","");
|
||||
tnnew.ImageIndex = 4;
|
||||
|
||||
if (ext.Length > 2)
|
||||
@@ -257,55 +258,72 @@ namespace OnDoc.Diverses
|
||||
catch { }
|
||||
try
|
||||
{
|
||||
|
||||
string tempfilename = treeNode.Tag.ToString();
|
||||
Logging.Logging.Debug("Nativ-Vorlage: " + tempfilename, "OnDoc", "");
|
||||
if (tempfilename == "") { return; }
|
||||
|
||||
//string tempdir = AppParams.tempdir + "\nativdoks";
|
||||
|
||||
string ext = System.IO.Path.GetExtension(tempfilename);
|
||||
Logging.Logging.Debug("Native-Vorlage erstellen", "OnDoc", tempfilename);
|
||||
if (ext.Length > 2)
|
||||
{
|
||||
ext = ext.Substring(0, 2).ToUpper();
|
||||
string tempfilename1 = "";
|
||||
switch (ext)
|
||||
{
|
||||
case ".D":
|
||||
DOCGEN.Klassen.SyncFWord sf = new DOCGEN.Klassen.SyncFWord("","");
|
||||
tempfilename1 = System.IO.Path.GetFileName(tempfilename);
|
||||
tempfilename1 = AppParams.tempdir + "" + DateTime.Now.ToString("yyyyMMddhhmmss") + tempfilename1;
|
||||
sf.create_nativ("Klassifizierung", klassifizierung, "", tempfilename, tempfilename1);
|
||||
System.Diagnostics.Process.Start("winword.exe", " /t" + tempfilename1);
|
||||
string tempfilename1 = "";
|
||||
tempfilename1 = System.IO.Path.GetFileName(tempfilename);
|
||||
tempfilename1 = AppParams.tempdir + "" + DateTime.Now.ToString("yyyyMMddhhmmss") + tempfilename1;
|
||||
|
||||
//System.Diagnostics.Process.Start("winword.exe", " /t" + tempfilename);
|
||||
break;
|
||||
case ".X":
|
||||
DOCGEN.Klassen.SyncFExcel ef = new DOCGEN.Klassen.SyncFExcel();
|
||||
tempfilename1 = System.IO.Path.GetFileName(tempfilename);
|
||||
tempfilename1 = AppParams.tempdir + "" + DateTime.Now.ToString("yyyyMMddhhmmss") + tempfilename1;
|
||||
System.IO.File.Copy(tempfilename, tempfilename1, true);
|
||||
Process.Start(tempfilename1);
|
||||
// if (ext.Length > 2)
|
||||
// {
|
||||
// ext = ext.Substring(0, 2).ToUpper();
|
||||
// string tempfilename1 = "";
|
||||
// switch (ext)
|
||||
// {
|
||||
// case ".D":
|
||||
//// DOCGEN.Klassen.SyncFWord sf = new DOCGEN.Klassen.SyncFWord("","");
|
||||
// tempfilename1 = System.IO.Path.GetFileName(tempfilename);
|
||||
// tempfilename1 = AppParams.tempdir + "" + DateTime.Now.ToString("yyyyMMddhhmmss") + tempfilename1;
|
||||
// System.IO.File.Copy(tempfilename,tempfilename1,true);
|
||||
|
||||
ef.create_nativ("Klassifizierung", klassifizierung, "", tempfilename, tempfilename1);
|
||||
// // Logging.Logging.Debug("sfcreate.native", "OnDoc", tempfilename1);
|
||||
// // sf.create_nativ("Klassifizierung", klassifizierung, "", tempfilename, tempfilename1);
|
||||
// System.Diagnostics.Process.Start("winword.exe", " /t" + tempfilename1);
|
||||
|
||||
System.Diagnostics.Process.Start("excel.exe", " /t " + tempfilename1);
|
||||
break;
|
||||
case ".P":
|
||||
DOCGEN.Klassen.SyncFPowerPoint pf = new DOCGEN.Klassen.SyncFPowerPoint();
|
||||
tempfilename1 = System.IO.Path.GetFileName(tempfilename);
|
||||
tempfilename1 = AppParams.tempdir + "" + DateTime.Now.ToString("yyyyMMddhhmmss") + tempfilename1;
|
||||
pf.create_nativ("Klassifizierung", klassifizierung,"",tempfilename,tempfilename1);
|
||||
System.Diagnostics.Process.Start("POWERPNT.EXE", " /N " + tempfilename1);
|
||||
break;
|
||||
default:
|
||||
tempfilename1 = System.IO.Path.GetFileName(tempfilename);
|
||||
tempfilename1 = AppParams.tempdir+ "" + DateTime.Now.ToString("yyyyMMddhhmmss") +tempfilename1;
|
||||
System.IO.File.Copy(tempfilename,tempfilename1, true);
|
||||
Process.Start(tempfilename1);
|
||||
break;
|
||||
}
|
||||
// //System.Diagnostics.Process.Start("winword.exe", " /t" + tempfilename);
|
||||
// break;
|
||||
// case ".X":
|
||||
// //DOCGEN.Klassen.SyncFExcel ef = new DOCGEN.Klassen.SyncFExcel();
|
||||
// tempfilename1 = System.IO.Path.GetFileName(tempfilename);
|
||||
// tempfilename1 = AppParams.tempdir + "" + DateTime.Now.ToString("yyyyMMddhhmmss") + tempfilename1;
|
||||
// System.IO.File.Copy(tempfilename,tempfilename1,true);
|
||||
|
||||
}
|
||||
// //ef.create_nativ("Klassifizierung", klassifizierung, "", tempfilename, tempfilename1);
|
||||
|
||||
// System.Diagnostics.Process.Start("excel.exe", " /t " + tempfilename1);
|
||||
// break;
|
||||
// case ".P":
|
||||
|
||||
// //DOCGEN.Klassen.SyncFPowerPoint pf = new DOCGEN.Klassen.SyncFPowerPoint();
|
||||
// tempfilename1 = System.IO.Path.GetFileName(tempfilename);
|
||||
// tempfilename1 = AppParams.tempdir + "" + DateTime.Now.ToString("yyyyMMddhhmmss") + tempfilename1;
|
||||
// System.IO.File.Copy(tempfilename, tempfilename1,true);
|
||||
// //pf.create_nativ("Klassifizierung", klassifizierung,"",tempfilename,tempfilename1);
|
||||
// System.Diagnostics.Process.Start("POWERPNT.EXE", " /N " + tempfilename1);
|
||||
// break;
|
||||
// default:
|
||||
// tempfilename1 = System.IO.Path.GetFileName(tempfilename);
|
||||
// tempfilename1 = AppParams.tempdir+ "" + DateTime.Now.ToString("yyyyMMddhhmmss") +tempfilename1;
|
||||
|
||||
// System.IO.File.Copy(tempfilename,tempfilename1, true);
|
||||
// Process.Start(tempfilename1);
|
||||
// break;
|
||||
// }
|
||||
|
||||
// }
|
||||
}
|
||||
catch (Exception e) {
|
||||
Logging.Logging.Debug("Start Nativ: " + e.Message, "OnDoc", "");
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAB4
|
||||
DAAAAk1TRnQBSQFMAgEBBQEAAUABAAFAAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||
DAAAAk1TRnQBSQFMAgEBBQEAAUgBAAFIAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||
AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
|
||||
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
|
||||
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
|
||||
|
||||
95
Client/Diverses/SplashScreen.Designer.cs
generated
Normal file
95
Client/Diverses/SplashScreen.Designer.cs
generated
Normal file
@@ -0,0 +1,95 @@
|
||||
namespace OnDoc.Diverses
|
||||
{
|
||||
partial class SplashScreen
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SplashScreen));
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.ErrorImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.ErrorImage")));
|
||||
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
|
||||
this.pictureBox1.InitialImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.InitialImage")));
|
||||
this.pictureBox1.Location = new System.Drawing.Point(104, 25);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(261, 258);
|
||||
this.pictureBox1.TabIndex = 0;
|
||||
this.pictureBox1.TabStop = false;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(164, 304);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(122, 26);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "Version 0.8";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label2.Location = new System.Drawing.Point(129, 339);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(203, 26);
|
||||
this.label2.TabIndex = 2;
|
||||
this.label2.Text = "11. Dezember 2024";
|
||||
//
|
||||
// SplashScreen
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.ClientSize = new System.Drawing.Size(469, 396);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.pictureBox1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Name = "SplashScreen";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "SplashScreen";
|
||||
this.Shown += new System.EventHandler(this.SplashScreen_Shown);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
}
|
||||
}
|
||||
39
Client/Diverses/SplashScreen.cs
Normal file
39
Client/Diverses/SplashScreen.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace OnDoc.Diverses
|
||||
{
|
||||
public partial class SplashScreen : Form
|
||||
{
|
||||
Timer tmr;
|
||||
public SplashScreen()
|
||||
{
|
||||
InitializeComponent();
|
||||
Application.DoEvents();
|
||||
}
|
||||
|
||||
private void SplashScreen_Shown(object sender, EventArgs e)
|
||||
{
|
||||
tmr = new Timer();
|
||||
tmr.Interval = 5000;
|
||||
tmr.Start();
|
||||
Application.DoEvents();
|
||||
tmr.Tick += tmr_Tick;
|
||||
}
|
||||
|
||||
void tmr_Tick(object sender, EventArgs e)
|
||||
|
||||
{
|
||||
Application.DoEvents();
|
||||
tmr.Stop();
|
||||
this.Hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
13243
Client/Diverses/SplashScreen.resx
Normal file
13243
Client/Diverses/SplashScreen.resx
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user