updaet 20250123

This commit is contained in:
Stefan Hutter
2025-01-24 16:25:47 +01:00
parent 52a3fecee5
commit 608c67d21b
156 changed files with 2055 additions and 1660 deletions

View File

@@ -111,7 +111,7 @@ namespace OnDoc.DocMgmt
this.ribbon1.OrbStyle = System.Windows.Forms.RibbonOrbStyle.Office_2013;
this.ribbon1.OrbVisible = false;
this.ribbon1.RibbonTabFont = new System.Drawing.Font("Trebuchet MS", 9F);
this.ribbon1.Size = new System.Drawing.Size(488, 74);
this.ribbon1.Size = new System.Drawing.Size(495, 74);
this.ribbon1.TabIndex = 0;
this.ribbon1.Tabs.Add(this.ribbonTab1);
this.ribbon1.TabSpacing = 4;
@@ -262,7 +262,7 @@ namespace OnDoc.DocMgmt
this.sfListView1.HotTracking = true;
this.sfListView1.Location = new System.Drawing.Point(2, 76);
this.sfListView1.Name = "sfListView1";
this.sfListView1.Size = new System.Drawing.Size(488, 584);
this.sfListView1.Size = new System.Drawing.Size(495, 584);
this.sfListView1.TabIndex = 1;
this.sfListView1.Text = "sfListView1";
this.sfListView1.DoubleClick += new System.EventHandler(this.sfListView1_DoubleClick);
@@ -550,6 +550,8 @@ namespace OnDoc.DocMgmt
// toolStrip2
//
this.toolStrip2.AutoSize = false;
this.toolStrip2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.toolStrip2.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
this.toolStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripLabel1,
this.toolstriptextboxsearch,
@@ -585,7 +587,7 @@ namespace OnDoc.DocMgmt
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(23, 45);
this.toolStripButton1.Text = "toolStripButton1";
this.toolStripButton1.Text = "Suchen";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// toolStripButton2
@@ -595,13 +597,14 @@ namespace OnDoc.DocMgmt
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(23, 45);
this.toolStripButton2.Text = "toolStripButton2";
this.toolStripButton2.Text = "Suchfeld initialisieren";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//
// toolStripSeparator2
//
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 48);
this.toolStripSeparator2.Visible = false;
//
// toolStripLabel2
//
@@ -612,7 +615,7 @@ namespace OnDoc.DocMgmt
// toolstripCombobox_Fachverantwortung
//
this.toolstripCombobox_Fachverantwortung.Name = "toolstripCombobox_Fachverantwortung";
this.toolstripCombobox_Fachverantwortung.Size = new System.Drawing.Size(130, 23);
this.toolstripCombobox_Fachverantwortung.Size = new System.Drawing.Size(130, 48);
this.toolstripCombobox_Fachverantwortung.SelectedIndexChanged += new System.EventHandler(this.toolstripCombobox_Fachverantwortung_SelectedIndexChanged);
//
// toolStripButton4
@@ -622,7 +625,7 @@ namespace OnDoc.DocMgmt
this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton4.Name = "toolStripButton4";
this.toolStripButton4.Size = new System.Drawing.Size(23, 20);
this.toolStripButton4.Text = "toolStripButton2";
this.toolStripButton4.Text = "Fachverantwortung initialisieren";
this.toolStripButton4.Click += new System.EventHandler(this.toolStripButton4_Click);
//
// DokTypSelect

View File

@@ -284,7 +284,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAi
DAAAAk1TRnQBSQFMAgEBBgEAAdgBAAHYAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
DAAAAk1TRnQBSQFMAgEBBgEAAeABAAHgAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
@@ -344,6 +344,9 @@
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>618, 16</value>
</metadata>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>618, 16</value>
</metadata>
<metadata name="toolStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>723, 16</value>
</metadata>

View File

@@ -36,9 +36,13 @@ namespace OnDoc.DocMgmt
public int DocFunction = 0;
public bool interop { get; set; } = false;
public bool runmacros { get; set; } = false;
public string dokumentid = "";
public string dokumentid { get; set; } = "";
public string filename { get; set; } = "";
public bool editdoc { get; set; } = false;
public Dokumenterstellung()
{
InitializeComponent();
@@ -69,6 +73,15 @@ namespace OnDoc.DocMgmt
Closing += Form_Closing;
}
public Dokumenterstellung(string dokumentid)
{
InitializeComponent();
Broadcaster().AddListener(this);
Closing += Form_Closing;
this.dokumentid=dokumentid;
this.editdoc = true;
}
private void Form_Closing(object sender, CancelEventArgs e)
{
Broadcaster().RemoveListener(this);
@@ -84,7 +97,7 @@ namespace OnDoc.DocMgmt
}
if (message == "AdminDokErstellung")
{
Dokument_Erstellen();
Dokument_Erstellen("",false);
}
@@ -95,10 +108,18 @@ namespace OnDoc.DocMgmt
this.Style.TitleBar.ForeColor = Theaming.TitelFontColor();
this.Style.ShadowOpacity = Theaming.ShadowOpacity;
this.Style.InactiveShadowOpacity = Theaming.InactivShadowOpacity;
ucAllgemeineDokumentParam1.dokumenttypnr = dokumenttypnr;
ucAllgemeineDokumentParam1.partnernr = partnernr;
ucAllgemeineDokumentParam1.profilnr = profilnr;
ucAllgemeineDokumentParam1.Refresh_Details();
if (dokumentid != "")
{
ucAllgemeineDokumentParam1.dokumentid = dokumentid;
ucAllgemeineDokumentParam1.load_doc();
}
else
{
ucAllgemeineDokumentParam1.dokumenttypnr = dokumenttypnr;
ucAllgemeineDokumentParam1.partnernr = partnernr;
ucAllgemeineDokumentParam1.profilnr = profilnr;
ucAllgemeineDokumentParam1.Refresh_Details();
}
//if (ucAllgemeineDokumentParam1.check_bp_person() == false)
//{
// btnDokumenterstellen.Enabled = false;
@@ -113,11 +134,11 @@ namespace OnDoc.DocMgmt
private void sfButton2_Click(object sender, EventArgs e)
{
Cursor = Cursors.WaitCursor;
Dokument_Erstellen();
Dokument_Erstellen(this.dokumentid,this.editdoc);
Cursor = Cursors.Default;
}
public void Dokument_Erstellen()
public void Dokument_Erstellen(string dokumentid, bool editdoc)
{
this.filename = "";
if (ucAllgemeineDokumentParam1.check_fields()==false) {
@@ -128,7 +149,8 @@ namespace OnDoc.DocMgmt
ucAllgemeineDokumentParam1.update_dokdata(ref dokdata);
DOCGEN.DocGen docgen = new DOCGEN.DocGen(AppParams.connectionstring);
string dokumentid = docgen.GenDocID(dokdata);
dokumentid = docgen.GenDocID(dokdata, editdoc, dokumentid);
dokdata.Dokumentid = dokumentid;
ucAllgemeineDokumentParam1.genertated_dokumentid = dokumentid;
this.dokumentid=dokdata.Dokumentid;
@@ -175,7 +197,7 @@ namespace OnDoc.DocMgmt
DOCGEN.Generator.DocGenerator_from_EDOKA Generator = new DOCGEN.Generator.DocGenerator_from_EDOKA(AppParams.connectionstring, AppParams.tempdir, AppParams.RESTURI, AppParams.apikey,AppParams.Office_Fill_DocIO);
clsdok dok = new clsdok("", "", "");
Logging.Logging.Debug("Generate_Doc_EDOKA", "Dokumenterstellung", dokumentid);
dok = Generator.Generate_Doc_EDOKA(dokumentid, ref dokdata, ucAllgemeineDokumentParam1.ErstellungInOffice,AppParams.OfficeSpleep1, AppParams.vbvorlagenmanagement=="Yes");
dok = Generator.Generate_Doc_EDOKA(dokumentid, ref dokdata, ucAllgemeineDokumentParam1.ErstellungInOffice,AppParams.OfficeSpleep1, AppParams.vbvorlagenmanagement=="Yes",this.editdoc);
Logging.Logging.Debug("Generate_Doc_EDOKA - Ende", "Dokumenterstellung", dokumentid);

View File

@@ -485,7 +485,7 @@ namespace OnDoc.DocMgmt
uc.update_dokdata(ref dokdata);
uc.update_partner();
DOCGEN.DocGen docgen = new DOCGEN.DocGen(AppParams.connectionstring);
string dokumentid = docgen.GenDocID(dokdata);
string dokumentid = docgen.GenDocID(dokdata, false, "");
dokdata.Dokumentid = dokumentid;
uc.genertated_dokumentid = dokumentid;
uc.Show_Neugenerieren();

View File

@@ -1,651 +0,0 @@
namespace OnDoc.DocMgmt
{
partial class FrmDokumenterstellung
{
/// <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(FrmDokumenterstellung));
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.lblPartner = new System.Windows.Forms.Label();
this.lblPartnerInhaber = new System.Windows.Forms.Label();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.groupBox8 = new System.Windows.Forms.GroupBox();
this.cbboxteam = new Syncfusion.WinForms.ListView.SfComboBox();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.cbformularohneunterschrfit = new System.Windows.Forms.CheckBox();
this.cbdigitaleunterschrfiten = new System.Windows.Forms.CheckBox();
this.cbboxunterschriftrechts = new Syncfusion.WinForms.ListView.SfComboBox();
this.cbboxunterschriftlinks = new Syncfusion.WinForms.ListView.SfComboBox();
this.lblUnterschriftrechts = new System.Windows.Forms.Label();
this.lblUnterschriftlinks = new System.Windows.Forms.Label();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.cbboxzustaendigmitarbeiter = new Syncfusion.WinForms.ListView.SfComboBox();
this.cbboxzustaendigkube = new Syncfusion.WinForms.ListView.SfComboBox();
this.rbzustaendigmitarbeiter = new System.Windows.Forms.RadioButton();
this.rbzustaendigkube = new System.Windows.Forms.RadioButton();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.DateTermin = new Syncfusion.WinForms.Input.SfDateTimeEdit();
this.lblTermin = new System.Windows.Forms.Label();
this.DateDokumentDatum = new Syncfusion.WinForms.Input.SfDateTimeEdit();
this.lblDokumentDatum = new System.Windows.Forms.Label();
this.cbboxpostzustellung = new Syncfusion.WinForms.ListView.SfComboBox();
this.lblPostzustellung = new System.Windows.Forms.Label();
this.lblBezeichnung = new System.Windows.Forms.Label();
this.txtbezeichnung = new System.Windows.Forms.TextBox();
this.cbboxstatus = new Syncfusion.WinForms.ListView.SfComboBox();
this.lblstatus = new System.Windows.Forms.Label();
this.lblVerantwortlich = new System.Windows.Forms.Label();
this.cbboxverantwortlich = new Syncfusion.WinForms.ListView.SfComboBox();
this.rbDokumentbearbeiten = new System.Windows.Forms.RadioButton();
this.rbEditlater = new System.Windows.Forms.RadioButton();
this.rbasPDFarchivieren = new System.Windows.Forms.RadioButton();
this.groupBox11 = new System.Windows.Forms.GroupBox();
this.gridDokwertlist = new Syncfusion.WinForms.DataGrid.SfDataGrid();
this.sfButton2 = new Syncfusion.WinForms.Controls.SfButton();
this.groupBox9 = new System.Windows.Forms.GroupBox();
this.rbasPDF = new System.Windows.Forms.RadioButton();
this.sfButton3 = new Syncfusion.WinForms.Controls.SfButton();
this.sfButton1 = new Syncfusion.WinForms.Controls.SfButton();
this.groupBox1.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox8.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cbboxteam)).BeginInit();
this.groupBox7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cbboxunterschriftrechts)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbboxunterschriftlinks)).BeginInit();
this.groupBox6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cbboxzustaendigmitarbeiter)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbboxzustaendigkube)).BeginInit();
this.groupBox5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cbboxpostzustellung)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbboxstatus)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbboxverantwortlich)).BeginInit();
this.groupBox11.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gridDokwertlist)).BeginInit();
this.groupBox9.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.groupBox3);
this.groupBox1.Controls.Add(this.groupBox2);
this.groupBox1.Controls.Add(this.sfButton1);
this.groupBox1.Controls.Add(this.lblPartner);
this.groupBox1.Controls.Add(this.lblPartnerInhaber);
this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox1.Location = new System.Drawing.Point(5, 15);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(540, 164);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Partner";
//
// groupBox3
//
this.groupBox3.Location = new System.Drawing.Point(298, 49);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(200, 100);
this.groupBox3.TabIndex = 4;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Zustell-Adresse";
//
// groupBox2
//
this.groupBox2.Location = new System.Drawing.Point(83, 49);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(200, 100);
this.groupBox2.TabIndex = 3;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Inhaber-Adresse";
//
// lblPartner
//
this.lblPartner.AutoSize = true;
this.lblPartner.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblPartner.Location = new System.Drawing.Point(194, 25);
this.lblPartner.Name = "lblPartner";
this.lblPartner.Size = new System.Drawing.Size(107, 13);
this.lblPartner.TabIndex = 1;
this.lblPartner.Text = "Partner-Kurzname";
//
// lblPartnerInhaber
//
this.lblPartnerInhaber.AutoSize = true;
this.lblPartnerInhaber.Location = new System.Drawing.Point(80, 25);
this.lblPartnerInhaber.Name = "lblPartnerInhaber";
this.lblPartnerInhaber.Size = new System.Drawing.Size(80, 13);
this.lblPartnerInhaber.TabIndex = 0;
this.lblPartnerInhaber.Text = "Partner-Inhaber";
//
// groupBox4
//
this.groupBox4.Controls.Add(this.groupBox8);
this.groupBox4.Controls.Add(this.groupBox7);
this.groupBox4.Controls.Add(this.groupBox6);
this.groupBox4.Controls.Add(this.groupBox5);
this.groupBox4.Location = new System.Drawing.Point(5, 230);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(540, 420);
this.groupBox4.TabIndex = 1;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "Dokument-Inhalt";
//
// groupBox8
//
this.groupBox8.Controls.Add(this.cbboxteam);
this.groupBox8.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox8.Location = new System.Drawing.Point(3, 347);
this.groupBox8.Name = "groupBox8";
this.groupBox8.Size = new System.Drawing.Size(534, 55);
this.groupBox8.TabIndex = 3;
this.groupBox8.TabStop = false;
this.groupBox8.Text = "Team";
//
// cbboxteam
//
this.cbboxteam.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.cbboxteam.DropDownPosition = Syncfusion.WinForms.Core.Enums.PopupRelativeAlignment.Center;
this.cbboxteam.Location = new System.Drawing.Point(151, 19);
this.cbboxteam.Name = "cbboxteam";
this.cbboxteam.Size = new System.Drawing.Size(354, 19);
this.cbboxteam.Style.DropDownStyle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
this.cbboxteam.Style.TokenStyle.CloseButtonBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.cbboxteam.TabIndex = 12;
this.cbboxteam.TabStop = false;
//
// groupBox7
//
this.groupBox7.Controls.Add(this.cbformularohneunterschrfit);
this.groupBox7.Controls.Add(this.cbdigitaleunterschrfiten);
this.groupBox7.Controls.Add(this.cbboxunterschriftrechts);
this.groupBox7.Controls.Add(this.cbboxunterschriftlinks);
this.groupBox7.Controls.Add(this.lblUnterschriftrechts);
this.groupBox7.Controls.Add(this.lblUnterschriftlinks);
this.groupBox7.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox7.Location = new System.Drawing.Point(3, 202);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(534, 145);
this.groupBox7.TabIndex = 2;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "Unterschriften";
//
// cbformularohneunterschrfit
//
this.cbformularohneunterschrfit.AutoSize = true;
this.cbformularohneunterschrfit.Location = new System.Drawing.Point(22, 19);
this.cbformularohneunterschrfit.Name = "cbformularohneunterschrfit";
this.cbformularohneunterschrfit.Size = new System.Drawing.Size(150, 17);
this.cbformularohneunterschrfit.TabIndex = 11;
this.cbformularohneunterschrfit.Text = "Formular ohne Unterschrift";
this.cbformularohneunterschrfit.UseVisualStyleBackColor = true;
//
// cbdigitaleunterschrfiten
//
this.cbdigitaleunterschrfiten.AutoSize = true;
this.cbdigitaleunterschrfiten.Location = new System.Drawing.Point(22, 113);
this.cbdigitaleunterschrfiten.Name = "cbdigitaleunterschrfiten";
this.cbdigitaleunterschrfiten.Size = new System.Drawing.Size(130, 17);
this.cbdigitaleunterschrfiten.TabIndex = 10;
this.cbdigitaleunterschrfiten.Text = "Digitale Unterschriften";
this.cbdigitaleunterschrfiten.UseVisualStyleBackColor = true;
//
// cbboxunterschriftrechts
//
this.cbboxunterschriftrechts.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.cbboxunterschriftrechts.DropDownPosition = Syncfusion.WinForms.Core.Enums.PopupRelativeAlignment.Center;
this.cbboxunterschriftrechts.Location = new System.Drawing.Point(151, 79);
this.cbboxunterschriftrechts.Name = "cbboxunterschriftrechts";
this.cbboxunterschriftrechts.Size = new System.Drawing.Size(354, 19);
this.cbboxunterschriftrechts.Style.DropDownStyle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
this.cbboxunterschriftrechts.Style.TokenStyle.CloseButtonBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.cbboxunterschriftrechts.TabIndex = 9;
this.cbboxunterschriftrechts.TabStop = false;
//
// cbboxunterschriftlinks
//
this.cbboxunterschriftlinks.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.cbboxunterschriftlinks.DropDownPosition = Syncfusion.WinForms.Core.Enums.PopupRelativeAlignment.Center;
this.cbboxunterschriftlinks.Location = new System.Drawing.Point(151, 50);
this.cbboxunterschriftlinks.Name = "cbboxunterschriftlinks";
this.cbboxunterschriftlinks.Size = new System.Drawing.Size(354, 19);
this.cbboxunterschriftlinks.Style.DropDownStyle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
this.cbboxunterschriftlinks.Style.TokenStyle.CloseButtonBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.cbboxunterschriftlinks.TabIndex = 8;
this.cbboxunterschriftlinks.TabStop = false;
//
// lblUnterschriftrechts
//
this.lblUnterschriftrechts.AutoSize = true;
this.lblUnterschriftrechts.Location = new System.Drawing.Point(17, 79);
this.lblUnterschriftrechts.Name = "lblUnterschriftrechts";
this.lblUnterschriftrechts.Size = new System.Drawing.Size(93, 13);
this.lblUnterschriftrechts.TabIndex = 7;
this.lblUnterschriftrechts.Text = "Unterschrift rechts";
//
// lblUnterschriftlinks
//
this.lblUnterschriftlinks.AutoSize = true;
this.lblUnterschriftlinks.Location = new System.Drawing.Point(17, 50);
this.lblUnterschriftlinks.Name = "lblUnterschriftlinks";
this.lblUnterschriftlinks.Size = new System.Drawing.Size(85, 13);
this.lblUnterschriftlinks.TabIndex = 6;
this.lblUnterschriftlinks.Text = "Unterschrift links";
//
// groupBox6
//
this.groupBox6.Controls.Add(this.cbboxzustaendigmitarbeiter);
this.groupBox6.Controls.Add(this.cbboxzustaendigkube);
this.groupBox6.Controls.Add(this.rbzustaendigmitarbeiter);
this.groupBox6.Controls.Add(this.rbzustaendigkube);
this.groupBox6.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox6.Location = new System.Drawing.Point(3, 102);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(534, 100);
this.groupBox6.TabIndex = 1;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "Zuständigkeit";
//
// cbboxzustaendigmitarbeiter
//
this.cbboxzustaendigmitarbeiter.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.cbboxzustaendigmitarbeiter.DropDownPosition = Syncfusion.WinForms.Core.Enums.PopupRelativeAlignment.Center;
this.cbboxzustaendigmitarbeiter.Location = new System.Drawing.Point(151, 59);
this.cbboxzustaendigmitarbeiter.Name = "cbboxzustaendigmitarbeiter";
this.cbboxzustaendigmitarbeiter.Size = new System.Drawing.Size(354, 19);
this.cbboxzustaendigmitarbeiter.Style.DropDownStyle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
this.cbboxzustaendigmitarbeiter.Style.TokenStyle.CloseButtonBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.cbboxzustaendigmitarbeiter.TabIndex = 7;
this.cbboxzustaendigmitarbeiter.TabStop = false;
//
// cbboxzustaendigkube
//
this.cbboxzustaendigkube.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.cbboxzustaendigkube.DropDownPosition = Syncfusion.WinForms.Core.Enums.PopupRelativeAlignment.Center;
this.cbboxzustaendigkube.Location = new System.Drawing.Point(151, 33);
this.cbboxzustaendigkube.Name = "cbboxzustaendigkube";
this.cbboxzustaendigkube.Size = new System.Drawing.Size(354, 19);
this.cbboxzustaendigkube.Style.DropDownStyle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
this.cbboxzustaendigkube.Style.TokenStyle.CloseButtonBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.cbboxzustaendigkube.TabIndex = 6;
this.cbboxzustaendigkube.TabStop = false;
//
// rbzustaendigmitarbeiter
//
this.rbzustaendigmitarbeiter.AutoSize = true;
this.rbzustaendigmitarbeiter.Location = new System.Drawing.Point(22, 59);
this.rbzustaendigmitarbeiter.Name = "rbzustaendigmitarbeiter";
this.rbzustaendigmitarbeiter.Size = new System.Drawing.Size(72, 17);
this.rbzustaendigmitarbeiter.TabIndex = 1;
this.rbzustaendigmitarbeiter.TabStop = true;
this.rbzustaendigmitarbeiter.Text = "Zuständig";
this.rbzustaendigmitarbeiter.UseVisualStyleBackColor = true;
//
// rbzustaendigkube
//
this.rbzustaendigkube.AutoSize = true;
this.rbzustaendigkube.Location = new System.Drawing.Point(22, 35);
this.rbzustaendigkube.Name = "rbzustaendigkube";
this.rbzustaendigkube.Size = new System.Drawing.Size(95, 17);
this.rbzustaendigkube.TabIndex = 0;
this.rbzustaendigkube.TabStop = true;
this.rbzustaendigkube.Text = "Kundenberater";
this.rbzustaendigkube.UseVisualStyleBackColor = true;
//
// groupBox5
//
this.groupBox5.Controls.Add(this.DateTermin);
this.groupBox5.Controls.Add(this.lblTermin);
this.groupBox5.Controls.Add(this.DateDokumentDatum);
this.groupBox5.Controls.Add(this.lblDokumentDatum);
this.groupBox5.Controls.Add(this.cbboxpostzustellung);
this.groupBox5.Controls.Add(this.lblPostzustellung);
this.groupBox5.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox5.Location = new System.Drawing.Point(3, 16);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(534, 86);
this.groupBox5.TabIndex = 0;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "Allgemein";
//
// DateTermin
//
this.DateTermin.Location = new System.Drawing.Point(398, 44);
this.DateTermin.Name = "DateTermin";
this.DateTermin.Size = new System.Drawing.Size(107, 21);
this.DateTermin.TabIndex = 5;
this.DateTermin.ToolTipText = "";
//
// lblTermin
//
this.lblTermin.AutoSize = true;
this.lblTermin.Location = new System.Drawing.Point(343, 48);
this.lblTermin.Name = "lblTermin";
this.lblTermin.Size = new System.Drawing.Size(39, 13);
this.lblTermin.TabIndex = 4;
this.lblTermin.Text = "Termin";
//
// DateDokumentDatum
//
this.DateDokumentDatum.Location = new System.Drawing.Point(151, 44);
this.DateDokumentDatum.Name = "DateDokumentDatum";
this.DateDokumentDatum.Size = new System.Drawing.Size(107, 21);
this.DateDokumentDatum.TabIndex = 3;
this.DateDokumentDatum.ToolTipText = "";
//
// lblDokumentDatum
//
this.lblDokumentDatum.AutoSize = true;
this.lblDokumentDatum.Location = new System.Drawing.Point(19, 48);
this.lblDokumentDatum.Name = "lblDokumentDatum";
this.lblDokumentDatum.Size = new System.Drawing.Size(90, 13);
this.lblDokumentDatum.TabIndex = 2;
this.lblDokumentDatum.Text = "Dokument-Datum";
//
// cbboxpostzustellung
//
this.cbboxpostzustellung.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.cbboxpostzustellung.DropDownPosition = Syncfusion.WinForms.Core.Enums.PopupRelativeAlignment.Center;
this.cbboxpostzustellung.Location = new System.Drawing.Point(151, 13);
this.cbboxpostzustellung.Name = "cbboxpostzustellung";
this.cbboxpostzustellung.Size = new System.Drawing.Size(354, 19);
this.cbboxpostzustellung.Style.DropDownStyle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
this.cbboxpostzustellung.Style.TokenStyle.CloseButtonBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.cbboxpostzustellung.TabIndex = 1;
this.cbboxpostzustellung.TabStop = false;
//
// lblPostzustellung
//
this.lblPostzustellung.AutoSize = true;
this.lblPostzustellung.Location = new System.Drawing.Point(19, 20);
this.lblPostzustellung.Name = "lblPostzustellung";
this.lblPostzustellung.Size = new System.Drawing.Size(75, 13);
this.lblPostzustellung.TabIndex = 0;
this.lblPostzustellung.Text = "Postzustellung";
//
// lblBezeichnung
//
this.lblBezeichnung.AutoSize = true;
this.lblBezeichnung.Location = new System.Drawing.Point(575, 35);
this.lblBezeichnung.Name = "lblBezeichnung";
this.lblBezeichnung.Size = new System.Drawing.Size(69, 13);
this.lblBezeichnung.TabIndex = 6;
this.lblBezeichnung.Text = "Bezeichnung";
//
// txtbezeichnung
//
this.txtbezeichnung.Location = new System.Drawing.Point(686, 32);
this.txtbezeichnung.Name = "txtbezeichnung";
this.txtbezeichnung.Size = new System.Drawing.Size(354, 20);
this.txtbezeichnung.TabIndex = 7;
//
// cbboxstatus
//
this.cbboxstatus.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.cbboxstatus.DropDownPosition = Syncfusion.WinForms.Core.Enums.PopupRelativeAlignment.Center;
this.cbboxstatus.Location = new System.Drawing.Point(686, 83);
this.cbboxstatus.Name = "cbboxstatus";
this.cbboxstatus.Size = new System.Drawing.Size(354, 19);
this.cbboxstatus.Style.DropDownStyle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
this.cbboxstatus.Style.TokenStyle.CloseButtonBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.cbboxstatus.TabIndex = 7;
this.cbboxstatus.TabStop = false;
//
// lblstatus
//
this.lblstatus.AutoSize = true;
this.lblstatus.Location = new System.Drawing.Point(575, 89);
this.lblstatus.Name = "lblstatus";
this.lblstatus.Size = new System.Drawing.Size(37, 13);
this.lblstatus.TabIndex = 6;
this.lblstatus.Text = "Status";
//
// lblVerantwortlich
//
this.lblVerantwortlich.AutoSize = true;
this.lblVerantwortlich.Location = new System.Drawing.Point(575, 64);
this.lblVerantwortlich.Name = "lblVerantwortlich";
this.lblVerantwortlich.Size = new System.Drawing.Size(74, 13);
this.lblVerantwortlich.TabIndex = 8;
this.lblVerantwortlich.Text = "Verantwortlich";
//
// cbboxverantwortlich
//
this.cbboxverantwortlich.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.cbboxverantwortlich.DropDownPosition = Syncfusion.WinForms.Core.Enums.PopupRelativeAlignment.Center;
this.cbboxverantwortlich.Location = new System.Drawing.Point(686, 58);
this.cbboxverantwortlich.Name = "cbboxverantwortlich";
this.cbboxverantwortlich.Size = new System.Drawing.Size(354, 19);
this.cbboxverantwortlich.Style.DropDownStyle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
this.cbboxverantwortlich.Style.TokenStyle.CloseButtonBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.cbboxverantwortlich.TabIndex = 9;
this.cbboxverantwortlich.TabStop = false;
//
// rbDokumentbearbeiten
//
this.rbDokumentbearbeiten.AutoSize = true;
this.rbDokumentbearbeiten.Checked = true;
this.rbDokumentbearbeiten.Location = new System.Drawing.Point(16, 25);
this.rbDokumentbearbeiten.Name = "rbDokumentbearbeiten";
this.rbDokumentbearbeiten.Size = new System.Drawing.Size(156, 17);
this.rbDokumentbearbeiten.TabIndex = 10;
this.rbDokumentbearbeiten.TabStop = true;
this.rbDokumentbearbeiten.Text = "Dokument direkt bearbeiten";
this.rbDokumentbearbeiten.UseVisualStyleBackColor = true;
//
// rbEditlater
//
this.rbEditlater.AutoSize = true;
this.rbEditlater.Location = new System.Drawing.Point(16, 44);
this.rbEditlater.Name = "rbEditlater";
this.rbEditlater.Size = new System.Drawing.Size(159, 17);
this.rbEditlater.TabIndex = 11;
this.rbEditlater.Text = "Dokument später bearbeiten";
this.rbEditlater.UseVisualStyleBackColor = true;
//
// rbasPDFarchivieren
//
this.rbasPDFarchivieren.AutoSize = true;
this.rbasPDFarchivieren.Location = new System.Drawing.Point(16, 67);
this.rbasPDFarchivieren.Name = "rbasPDFarchivieren";
this.rbasPDFarchivieren.Size = new System.Drawing.Size(198, 17);
this.rbasPDFarchivieren.TabIndex = 12;
this.rbasPDFarchivieren.Text = "Dokument als PDF direkt archivieren";
this.rbasPDFarchivieren.UseVisualStyleBackColor = true;
//
// groupBox11
//
this.groupBox11.Controls.Add(this.gridDokwertlist);
this.groupBox11.Location = new System.Drawing.Point(578, 230);
this.groupBox11.Name = "groupBox11";
this.groupBox11.Size = new System.Drawing.Size(531, 420);
this.groupBox11.TabIndex = 13;
this.groupBox11.TabStop = false;
this.groupBox11.Text = "Dokument-spezifische Werte";
//
// gridDokwertlist
//
this.gridDokwertlist.AccessibleName = "Table";
this.gridDokwertlist.Dock = System.Windows.Forms.DockStyle.Fill;
this.gridDokwertlist.Location = new System.Drawing.Point(3, 16);
this.gridDokwertlist.Name = "gridDokwertlist";
this.gridDokwertlist.Size = new System.Drawing.Size(525, 401);
this.gridDokwertlist.TabIndex = 0;
this.gridDokwertlist.Text = "sfDataGrid1";
this.gridDokwertlist.CellClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.gridDokwertlist_CellClick);
this.gridDokwertlist.CellDoubleClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.gridDokwertlist_CellDoubleClick);
this.gridDokwertlist.Click += new System.EventHandler(this.gridDokwertlist_Click);
//
// sfButton2
//
this.sfButton2.Font = new System.Drawing.Font("Segoe UI Semibold", 9F);
this.sfButton2.Location = new System.Drawing.Point(982, 656);
this.sfButton2.Name = "sfButton2";
this.sfButton2.Size = new System.Drawing.Size(124, 28);
this.sfButton2.TabIndex = 14;
this.sfButton2.Text = "Dokument erstellen";
this.sfButton2.Click += new System.EventHandler(this.sfButton2_Click);
//
// groupBox9
//
this.groupBox9.Controls.Add(this.rbasPDF);
this.groupBox9.Controls.Add(this.rbDokumentbearbeiten);
this.groupBox9.Controls.Add(this.rbEditlater);
this.groupBox9.Controls.Add(this.rbasPDFarchivieren);
this.groupBox9.Location = new System.Drawing.Point(581, 111);
this.groupBox9.Name = "groupBox9";
this.groupBox9.Size = new System.Drawing.Size(459, 113);
this.groupBox9.TabIndex = 15;
this.groupBox9.TabStop = false;
this.groupBox9.Text = "Dokumentvewendung";
//
// rbasPDF
//
this.rbasPDF.AutoSize = true;
this.rbasPDF.Location = new System.Drawing.Point(16, 90);
this.rbasPDF.Name = "rbasPDF";
this.rbasPDF.Size = new System.Drawing.Size(163, 17);
this.rbasPDF.TabIndex = 13;
this.rbasPDF.Text = "Dokument als PDF speichern";
this.rbasPDF.UseVisualStyleBackColor = true;
//
// sfButton3
//
this.sfButton3.Font = new System.Drawing.Font("Segoe UI Semibold", 9F);
this.sfButton3.Location = new System.Drawing.Point(8, 656);
this.sfButton3.Name = "sfButton3";
this.sfButton3.Size = new System.Drawing.Size(124, 28);
this.sfButton3.TabIndex = 16;
this.sfButton3.Text = "Abbrechen";
this.sfButton3.Click += new System.EventHandler(this.sfButton3_Click);
//
// sfButton1
//
this.sfButton1.Font = new System.Drawing.Font("Segoe UI Semibold", 9F);
this.sfButton1.Location = new System.Drawing.Point(15, 21);
this.sfButton1.Name = "sfButton1";
this.sfButton1.Size = new System.Drawing.Size(47, 28);
this.sfButton1.TabIndex = 2;
//
// FrmDokumenterstellung
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1115, 703);
this.Controls.Add(this.sfButton3);
this.Controls.Add(this.groupBox9);
this.Controls.Add(this.sfButton2);
this.Controls.Add(this.groupBox4);
this.Controls.Add(this.groupBox11);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.lblBezeichnung);
this.Controls.Add(this.txtbezeichnung);
this.Controls.Add(this.cbboxverantwortlich);
this.Controls.Add(this.lblstatus);
this.Controls.Add(this.lblVerantwortlich);
this.Controls.Add(this.cbboxstatus);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FrmDokumenterstellung";
this.Style.MdiChild.IconHorizontalAlignment = System.Windows.Forms.HorizontalAlignment.Center;
this.Style.MdiChild.IconVerticalAlignment = System.Windows.Forms.VisualStyles.VerticalAlignment.Center;
this.Text = "Dokumenterstellung";
this.Load += new System.EventHandler(this.FrmDokumenterstellung_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox4.ResumeLayout(false);
this.groupBox8.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.cbboxteam)).EndInit();
this.groupBox7.ResumeLayout(false);
this.groupBox7.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.cbboxunterschriftrechts)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbboxunterschriftlinks)).EndInit();
this.groupBox6.ResumeLayout(false);
this.groupBox6.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.cbboxzustaendigmitarbeiter)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbboxzustaendigkube)).EndInit();
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.cbboxpostzustellung)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbboxstatus)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbboxverantwortlich)).EndInit();
this.groupBox11.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gridDokwertlist)).EndInit();
this.groupBox9.ResumeLayout(false);
this.groupBox9.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label lblPartner;
private System.Windows.Forms.Label lblPartnerInhaber;
private Syncfusion.WinForms.Controls.SfButton sfButton1;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.GroupBox groupBox8;
private System.Windows.Forms.GroupBox groupBox7;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.Label lblDokumentDatum;
private Syncfusion.WinForms.ListView.SfComboBox cbboxpostzustellung;
private System.Windows.Forms.Label lblPostzustellung;
private System.Windows.Forms.Label lblTermin;
private Syncfusion.WinForms.Input.SfDateTimeEdit DateDokumentDatum;
private Syncfusion.WinForms.Input.SfDateTimeEdit DateTermin;
private System.Windows.Forms.Label lblUnterschriftrechts;
private System.Windows.Forms.Label lblUnterschriftlinks;
private Syncfusion.WinForms.ListView.SfComboBox cbboxzustaendigmitarbeiter;
private Syncfusion.WinForms.ListView.SfComboBox cbboxzustaendigkube;
private System.Windows.Forms.RadioButton rbzustaendigmitarbeiter;
private System.Windows.Forms.RadioButton rbzustaendigkube;
private Syncfusion.WinForms.ListView.SfComboBox cbboxteam;
private System.Windows.Forms.CheckBox cbformularohneunterschrfit;
private System.Windows.Forms.CheckBox cbdigitaleunterschrfiten;
private Syncfusion.WinForms.ListView.SfComboBox cbboxunterschriftrechts;
private Syncfusion.WinForms.ListView.SfComboBox cbboxunterschriftlinks;
private System.Windows.Forms.RadioButton rbDokumentbearbeiten;
private Syncfusion.WinForms.ListView.SfComboBox cbboxverantwortlich;
private System.Windows.Forms.Label lblVerantwortlich;
private Syncfusion.WinForms.ListView.SfComboBox cbboxstatus;
private System.Windows.Forms.Label lblstatus;
private System.Windows.Forms.TextBox txtbezeichnung;
private System.Windows.Forms.Label lblBezeichnung;
private System.Windows.Forms.RadioButton rbasPDFarchivieren;
private System.Windows.Forms.RadioButton rbEditlater;
private System.Windows.Forms.GroupBox groupBox11;
private Syncfusion.WinForms.Controls.SfButton sfButton2;
private Syncfusion.WinForms.DataGrid.SfDataGrid gridDokwertlist;
private System.Windows.Forms.GroupBox groupBox9;
private System.Windows.Forms.RadioButton rbasPDF;
private Syncfusion.WinForms.Controls.SfButton sfButton3;
}
}

View File

@@ -1,330 +0,0 @@
using OnDoc.Diverses;
using OnDoc.Klassen;
using Helper;
using Microsoft.Office.Interop.Excel;
using Model;
using Syncfusion.Windows.Forms.Tools;
using Syncfusion.WinForms.Controls;
using Syncfusion.WinForms.DataGrid;
using Syncfusion.WinForms.DataGrid.Interactivity;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Security.RightsManagement;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI.WebControls;
using System.Windows.Forms;
using Database;
using OnDoc.UIControls;
namespace OnDoc.DocMgmt
{
public partial class FrmDokumenterstellung : SfForm
{
private int partnernr = 0;
private int profilnr = 0;
private int dokumenttypnr = 0;
public FrmDokumenterstellung()
{
InitializeComponent();
}
public FrmDokumenterstellung(int PartnerNr, int Dokumenttpynr, int Profilnr)
{
partnernr = PartnerNr;
dokumenttypnr = Dokumenttpynr;
profilnr = Profilnr;
InitializeComponent();
}
private void FrmDokumenterstellung_Load(object sender, EventArgs e)
{
DB db = new DB(AppParams.connectionstring);
db.Get_Tabledata("Select nreintrag, bezeichnung from Postzustellung where aktiv=1 order by bezeichnung", false, true);
cbboxpostzustellung.DataSource = db.dsdaten.Tables[0];
cbboxpostzustellung.ValueMember = "nreintrag";
cbboxpostzustellung.DisplayMember = "bezeichnung";
db.clear_parameter();
db.add_parameter("@partnernr", "1000208");
db.Get_Tabledata("sp_dokumentbearbeitung_kube", true, false);
cbboxzustaendigkube.DataSource = db.dsdaten.Tables[0];
cbboxzustaendigkube.DisplayMember = "name";
cbboxzustaendigkube.ValueMember = "mitarbeiternr";
db.clear_parameter();
db.Get_Tabledata("SP_Dokumentbearbeitung_Mitarbeiter", true, false);
cbboxzustaendigmitarbeiter.DataSource = db.dsdaten.Tables[0];
cbboxzustaendigmitarbeiter.DisplayMember = "name";
cbboxzustaendigmitarbeiter.ValueMember = "mitarbeiternr";
cbboxzustaendigmitarbeiter.SelectedValue = AppParams.CurrentMitarbeiter;
cbboxunterschriftlinks.DataSource = db.dsdaten.Tables[0];
cbboxunterschriftlinks.DisplayMember = "name";
cbboxunterschriftlinks.ValueMember = "mitarbeiternr";
cbboxunterschriftrechts.DataSource = db.dsdaten.Tables[0];
cbboxunterschriftrechts.DisplayMember = "name";
cbboxunterschriftrechts.ValueMember = "mitarbeiternr";
cbboxverantwortlich.DataSource = db.dsdaten.Tables[0];
cbboxverantwortlich.DisplayMember = "name";
cbboxverantwortlich.ValueMember = "mitarbeiternr";
cbboxverantwortlich.SelectedValue = AppParams.CurrentMitarbeiter;
db.clear_parameter();
db.add_parameter("dokumenttypnr", dokumenttypnr.ToString());
db.add_parameter("@dokumentid", "");
db.add_parameter("@fnkt", "1");
db.add_parameter("@mitarbeiternr", AppParams.CurrentMitarbeiter.ToString());
db.add_parameter("@bck", "0");
db.Get_Tabledata("SP_Dokumentbearbeitung_StatusSelektion", true, false);
cbboxstatus.DataSource = db.dsdaten.Tables[0];
cbboxstatus.DisplayMember = "Bezeichnung";
cbboxstatus.ValueMember = "dokumentstatusnr";
cbboxstatus.SelectedIndex = 1;
if (partnernr != 0)
{
db.Get_Tabledata("Select * from partner where nrpar00=" + partnernr, false, true);
this.lblPartner.Text = db.dsdaten.Tables[0].Rows[0]["nrpar00"].ToString() + " " + db.dsdaten.Tables[0].Rows[0]["bkpar00"].ToString();
}
if (dokumenttypnr != 0)
{
db.Get_Tabledata("Select * from dokumenttyp where dokumenttypnr=" + dokumenttypnr, false, true);
this.txtbezeichnung.Text = db.dsdaten.Tables[0].Rows[0]["Bezeichnung"].ToString();
}
if (profilnr != 0)
{
db.Get_Tabledata("Select * from profil where profilnr=" + profilnr, false, true);
int ulinks = 0;
int urechts = 0;
try
{
ulinks = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["unterschriftlinks"].ToString());
cbboxunterschriftlinks.SelectedValue = ulinks;
}
catch { ulinks = 0; }
try
{
urechts = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["unterschriftrechts"].ToString());
cbboxunterschriftrechts.SelectedValue = urechts;
}
catch { urechts = 0; }
}
System.Data.DataTable dokwertlist = new System.Data.DataTable();
dokwertlist = db.Get_DokumentWertList("", dokumenttypnr);
gridDokwertlist.DataSource = dokwertlist;
for (int i = 3; i < gridDokwertlist.Columns.Count; i++)
{
gridDokwertlist.Columns[i].Visible = false;
}
gridDokwertlist.Columns[0].AllowEditing = false;
gridDokwertlist.Columns[1].AllowEditing = false;
gridDokwertlist.Columns[0].Width = gridDokwertlist.Width * 0.35;
gridDokwertlist.Columns[1].Width = gridDokwertlist.Width * 0.15;
gridDokwertlist.Columns[2].Width = gridDokwertlist.Width * 0.35;
gridDokwertlist.Columns.Add(new GridImageColumn() { MappingName = "S", ImageLayout = ImageLayout.Center });
gridDokwertlist.Columns["S"].Width = 25;
gridDokwertlist.QueryImageCellStyle += gridDokwertlist_QueryImageCellStyle;
db = null;
Refresh_Team();
this.cbboxteam.SelectedIndex = 0;
}
private void gridDokwertlist_QueryImageCellStyle(object sender, Syncfusion.WinForms.DataGrid.Events.QueryImageCellStyleEventArgs e)
{
var rowdata = (DataRowView)e.Record;
var feldtyp = rowdata.Row.ItemArray[5].ToString();
var datenherkunft = rowdata.Row.ItemArray[6].ToString();
try
{
if (feldtyp.ToUpper().Substring(0, 5) == "DATUM")
{
e.Image = (System.Drawing.Image.FromFile(System.Windows.Forms.Application.StartupPath + @"\images\calendar.png"));
return;
}
}
catch { }
try
{
if (datenherkunft.ToString().Trim() != "")
{
e.Image = (System.Drawing.Image.FromFile(System.Windows.Forms.Application.StartupPath + @"\images\Search.png"));
}
if (datenherkunft.Substring(0, 3).ToUpper() == "&PA")
{
e.Image = (System.Drawing.Image.FromFile(System.Windows.Forms.Application.StartupPath + @"\images\Partner.png"));
}
}
catch { }
//e.Image = (Image.FromFile(System.Windows.Forms.Application.StartupPath + @"\images\Search_16x16.png"));
}
private void Refresh_Team()
{
DB dbteam = new DB(AppParams.connectionstring);
dbteam.clear_parameter();
dbteam.add_parameter("@profilnr", profilnr.ToString());
dbteam.add_parameter("@mitarbeiternr", cbboxzustaendigmitarbeiter.SelectedValue.ToString());
dbteam.Get_Tabledata("sp_dokumentbearbeitung_team", true, false);
cbboxteam.DataSource = null;
cbboxteam.DataSource = dbteam.dsdaten.Tables[0];
cbboxteam.ValueMember = "teamnr";
cbboxteam.DisplayMember = "bezeichnung";
}
private void sfButton2_Click(object sender, EventArgs e)
{
clsDocData dokdata = new clsDocData();
dokdata.PartnerNr = partnernr.ToString();
dokdata.UseEDOKA_Values = "True";
dokdata.DokumenttypNr = dokumenttypnr.ToString();
dokdata.Unterschrift_Links = cbboxunterschriftlinks.SelectedValue.ToString();
dokdata.Unterschrift_Rechts = cbboxunterschriftrechts.SelectedValue.ToString();
dokdata.Verantwortlich = cbboxverantwortlich.SelectedValue.ToString();
dokdata.Team = cbboxteam.SelectedValue.ToString();
if (rbzustaendigkube.Checked) { dokdata.Zustaendig = cbboxzustaendigkube.SelectedValue.ToString(); } else { dokdata.Zustaendig = cbboxzustaendigmitarbeiter.SelectedValue.ToString(); }
dokdata.Status = cbboxstatus.SelectedValue.ToString();
dokdata.Ersteller = AppParams.CurrentMitarbeiter.ToString();
dokdata.DokumentDatum = DateDokumentDatum.DateTimeText.ToString();
dokdata.Bezeichnung = txtbezeichnung.Text;
dokdata.UseEDOKA_Values = "True";
if (rbasPDFarchivieren.Checked) { dokdata.Result_as_PDF = "True"; } else { dokdata.Result_as_PDF = ""; }
if (cbdigitaleunterschrfiten.Checked) { dokdata.As_Faksimile = "True"; } else { dokdata.As_Faksimile = "False"; }
DOCGEN.DocGen docgen = new DOCGEN.DocGen(AppParams.connectionstring);
string dokumentid = docgen.GenDocID(dokdata);
dokdata.Dokumentid = dokumentid;
if (dokumentid != "")
{
if (dokdata.barcode_type == "1")
{
DB dB = new DB(AppParams.connectionstring);
dB.clear_parameter();
dB.add_parameter("@dokumentid", dokumentid);
dB.add_parameter("@DokumentidBR", "");
dB.Get_Tabledata("sp_get_barcodetype_and_value", true, false);
dokdata.barcode_content = dB.daten.Tables[0].Rows[0][1].ToString();
dB = null;
}
DOCGEN.Generator.DocGenerator_from_EDOKA Generator = new DOCGEN.Generator.DocGenerator_from_EDOKA(AppParams.connectionstring, AppParams.tempdir, AppParams.RESTURI, AppParams.apikey, AppParams.Office_Fill_DocIO);
clsdok dok = new clsdok("", "", "");
dok = Generator.Generate_Doc_EDOKA(dokumentid, ref dokdata);
if (rbDokumentbearbeiten.Checked)
{
string filename = AppParams.tempdir + dokumentid + "." + dok.extension;
System.IO.File.WriteAllBytes(filename, Convert.FromBase64String(dok.dokument));
DB db = new DB(AppParams.connectionstring);
db.Save_To_DB(dokdata.Dokumentid, filename);
db = null;
System.Diagnostics.Process.Start("winword.exe", filename);
clsProcessWatch.AddToList(dokdata.Dokumentid, filename, "Word");
}
if (rbasPDFarchivieren.Checked)
{
dok.extension = "pdf";
string filename = AppParams.tempdir + dokumentid + "." + dok.extension;
System.IO.File.WriteAllBytes(filename, Convert.FromBase64String(dok.dokument));
DB db = new DB(AppParams.connectionstring);
db.Save_To_DB(dokdata.Dokumentid, filename);
}
if (rbEditlater.Checked)
{
string filename = AppParams.tempdir + dokumentid + "." + dok.extension;
System.IO.File.WriteAllBytes(filename, Convert.FromBase64String(dok.dokument));
DB db = new DB(AppParams.connectionstring);
db.Save_To_DB(dokdata.Dokumentid, filename);
db = null;
}
this.Close();
}
}
private void gridDokwertlist_Click(object sender, EventArgs e)
{
}
private void gridDokwertlist_CellDoubleClick(object sender, Syncfusion.WinForms.DataGrid.Events.CellClickEventArgs e)
{
var rowIndex = DataGridIndexResolver.ResolveToRecordIndex(this.gridDokwertlist.TableControl, this.gridDokwertlist.CurrentCell.RowIndex);
if (rowIndex != -1)
{
Set_CellValue(rowIndex, "Gaga");
return;
var record = (this.gridDokwertlist.View.Records[rowIndex].Data);
//MessageBox.Show(record.OrderID.ToString());
var selectedItem = e.DataRow;
var dataRow = (e.DataRow.RowData as DataRowView).Row;
var ft = dataRow["feldtyp"].ToString();
var da = dataRow["datenherkunft"].ToString();
if (ft.ToUpper().Substring(0, 5) == "DATUM")
{
frmCalendar fcal = new frmCalendar();
fcal.ShowDialog();
if (fcal.DialogResult == DialogResult.OK)
{
Set_CellValue(rowIndex,"Gaga");
}
}
}
}
private void Set_CellValue(int row,string wert)
{
int rowIndex = row + 1;
int columnIndex = gridDokwertlist.TableControl.ResolveToGridVisibleColumnIndex(2);
columnIndex = 2;
if (columnIndex < 0)
return;
var mappingName = gridDokwertlist.Columns[columnIndex].MappingName;
var recordIndex = gridDokwertlist.TableControl.ResolveToRecordIndex(rowIndex);
//recordIndex = 0;
if (recordIndex < 0)
return;
object data;
if (gridDokwertlist.View.TopLevelGroup != null)
{
var record = gridDokwertlist.View.TopLevelGroup.DisplayElements[recordIndex];
if (!record.IsRecords)
return;
data = (record as Syncfusion.Data.RecordEntry).Data;
}
else
data = gridDokwertlist.View.Records.GetItemAt(recordIndex);
this.gridDokwertlist.View.GetPropertyAccessProvider().SetValue(data, mappingName, "Modified Value");
}
private void gridDokwertlist_CellClick(object sender, Syncfusion.WinForms.DataGrid.Events.CellClickEventArgs e)
{
int columnIndex = gridDokwertlist.TableControl.ResolveToGridVisibleColumnIndex(2);
}
private void sfButton3_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Abort;
this.Close();
}
}
}

View File

@@ -1,287 +0,0 @@
<?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=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>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAMDAAAAEAIACoJQAAFgAAACgAAAAwAAAAYAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAABkAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAA
AEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAA
AEAAAABAAAAAQAAAAEAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALcAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA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AAAAB/wAA/AAAAAH/
AAA=
</value>
</data>
</root>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -28,21 +28,26 @@
/// </summary>
private void InitializeComponent()
{
Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo1 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmBewilligung));
this.approval1 = new OnDoc.UIControls.Approval();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.tabControlAdv1 = new Syncfusion.Windows.Forms.Tools.TabControlAdv();
this.tabPageAdv1 = new Syncfusion.Windows.Forms.Tools.TabPageAdv();
this.approval1 = new OnDoc.UIControls.Approval();
this.tabPageAdv2 = new Syncfusion.Windows.Forms.Tools.TabPageAdv();
this.serienbrief1 = new OnDoc.UIControls.Serienbrief();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.treeViewAdv1 = new Syncfusion.Windows.Forms.Tools.TreeViewAdv();
this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.tabControlAdv1)).BeginInit();
this.tabControlAdv1.SuspendLayout();
this.tabPageAdv1.SuspendLayout();
this.tabPageAdv2.SuspendLayout();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.treeViewAdv1)).BeginInit();
this.SuspendLayout();
//
// approval1
//
this.approval1.Dock = System.Windows.Forms.DockStyle.Fill;
this.approval1.Location = new System.Drawing.Point(2, 33);
this.approval1.Name = "approval1";
this.approval1.Size = new System.Drawing.Size(1608, 917);
this.approval1.TabIndex = 0;
//
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
@@ -53,6 +58,7 @@
this.toolStrip1.Size = new System.Drawing.Size(1608, 31);
this.toolStrip1.TabIndex = 1;
this.toolStrip1.Text = "toolStrip1";
this.toolStrip1.Visible = false;
//
// toolStripButton1
//
@@ -64,12 +70,122 @@
this.toolStripButton1.Text = "toolStripButton1";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// tabControlAdv1
//
this.tabControlAdv1.Controls.Add(this.tabPageAdv1);
this.tabControlAdv1.Controls.Add(this.tabPageAdv2);
this.tabControlAdv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlAdv1.Location = new System.Drawing.Point(2, 2);
this.tabControlAdv1.Name = "tabControlAdv1";
this.tabControlAdv1.Size = new System.Drawing.Size(1608, 759);
this.tabControlAdv1.TabIndex = 2;
this.tabControlAdv1.ThemeStyle.PrimitiveButtonStyle.DisabledNextPageImage = null;
this.tabControlAdv1.SelectedIndexChanged += new System.EventHandler(this.tabControlAdv1_SelectedIndexChanged);
//
// tabPageAdv1
//
this.tabPageAdv1.Controls.Add(this.approval1);
this.tabPageAdv1.Image = null;
this.tabPageAdv1.ImageSize = new System.Drawing.Size(16, 16);
this.tabPageAdv1.Location = new System.Drawing.Point(1, 25);
this.tabPageAdv1.Name = "tabPageAdv1";
this.tabPageAdv1.ShowCloseButton = true;
this.tabPageAdv1.Size = new System.Drawing.Size(1605, 732);
this.tabPageAdv1.Text = "Dokument-Prüfung";
this.tabPageAdv1.ThemesEnabled = false;
//
// approval1
//
this.approval1.Dock = System.Windows.Forms.DockStyle.Fill;
this.approval1.Location = new System.Drawing.Point(0, 0);
this.approval1.Name = "approval1";
this.approval1.Size = new System.Drawing.Size(1605, 732);
this.approval1.TabIndex = 0;
//
// tabPageAdv2
//
this.tabPageAdv2.Controls.Add(this.serienbrief1);
this.tabPageAdv2.Controls.Add(this.groupBox1);
this.tabPageAdv2.Image = null;
this.tabPageAdv2.ImageSize = new System.Drawing.Size(16, 16);
this.tabPageAdv2.Location = new System.Drawing.Point(1, 25);
this.tabPageAdv2.Name = "tabPageAdv2";
this.tabPageAdv2.ShowCloseButton = true;
this.tabPageAdv2.Size = new System.Drawing.Size(1605, 732);
this.tabPageAdv2.Text = "Serienbrief";
this.tabPageAdv2.ThemesEnabled = false;
//
// serienbrief1
//
this.serienbrief1.Dock = System.Windows.Forms.DockStyle.Fill;
this.serienbrief1.Location = new System.Drawing.Point(200, 0);
this.serienbrief1.Name = "serienbrief1";
this.serienbrief1.Size = new System.Drawing.Size(1405, 732);
this.serienbrief1.TabIndex = 1;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.treeViewAdv1);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Left;
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(200, 732);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
//
// treeViewAdv1
//
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;
this.treeViewAdv1.BaseStylePairs.AddRange(new Syncfusion.Windows.Forms.Tools.StyleNamePair[] {
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo1)});
this.treeViewAdv1.BeforeTouchSize = new System.Drawing.Size(194, 713);
this.treeViewAdv1.Dock = System.Windows.Forms.DockStyle.Fill;
//
//
//
this.treeViewAdv1.HelpTextControl.BaseThemeName = null;
this.treeViewAdv1.HelpTextControl.Location = new System.Drawing.Point(0, 0);
this.treeViewAdv1.HelpTextControl.Name = "";
this.treeViewAdv1.HelpTextControl.Size = new System.Drawing.Size(392, 112);
this.treeViewAdv1.HelpTextControl.TabIndex = 0;
this.treeViewAdv1.HelpTextControl.Visible = true;
this.treeViewAdv1.InactiveSelectedNodeForeColor = System.Drawing.SystemColors.ControlText;
this.treeViewAdv1.Location = new System.Drawing.Point(3, 16);
this.treeViewAdv1.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220)))));
this.treeViewAdv1.Name = "treeViewAdv1";
this.treeViewAdv1.SelectedNodeForeColor = System.Drawing.SystemColors.HighlightText;
this.treeViewAdv1.Size = new System.Drawing.Size(194, 713);
this.treeViewAdv1.TabIndex = 0;
this.treeViewAdv1.Text = "treeViewAdv1";
this.treeViewAdv1.ThemeStyle.TreeNodeAdvStyle.CheckBoxTickThickness = 1;
this.treeViewAdv1.ThemeStyle.TreeNodeAdvStyle.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.treeViewAdv1.ThemeStyle.TreeNodeAdvStyle.EnsureDefaultOptionedChild = true;
this.treeViewAdv1.ThemeStyle.TreeNodeAdvStyle.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.treeViewAdv1.ThemeStyle.TreeNodeAdvStyle.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.treeViewAdv1.ThemeStyle.TreeNodeAdvStyle.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
//
//
//
this.treeViewAdv1.ToolTipControl.BaseThemeName = null;
this.treeViewAdv1.ToolTipControl.Location = new System.Drawing.Point(0, 0);
this.treeViewAdv1.ToolTipControl.Name = "";
this.treeViewAdv1.ToolTipControl.Size = new System.Drawing.Size(392, 112);
this.treeViewAdv1.ToolTipControl.TabIndex = 0;
this.treeViewAdv1.ToolTipControl.Visible = true;
this.treeViewAdv1.NodeMouseClick += new Syncfusion.Windows.Forms.Tools.TreeNodeAdvMouseClickArgs(this.treeViewAdv1_NodeMouseClick);
//
// frmBewilligung
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1612, 952);
this.Controls.Add(this.approval1);
this.ClientSize = new System.Drawing.Size(1612, 763);
this.Controls.Add(this.tabControlAdv1);
this.Controls.Add(this.toolStrip1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "frmBewilligung";
@@ -79,6 +195,12 @@
this.Load += new System.EventHandler(this.frmBewilligung_Load);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.tabControlAdv1)).EndInit();
this.tabControlAdv1.ResumeLayout(false);
this.tabPageAdv1.ResumeLayout(false);
this.tabPageAdv2.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.treeViewAdv1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -89,5 +211,11 @@
private UIControls.Approval approval1;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripButton toolStripButton1;
private Syncfusion.Windows.Forms.Tools.TabControlAdv tabControlAdv1;
private Syncfusion.Windows.Forms.Tools.TabPageAdv tabPageAdv1;
private Syncfusion.Windows.Forms.Tools.TabPageAdv tabPageAdv2;
private UIControls.Serienbrief serienbrief1;
private System.Windows.Forms.GroupBox groupBox1;
private Syncfusion.Windows.Forms.Tools.TreeViewAdv treeViewAdv1;
}
}

View File

@@ -10,10 +10,13 @@ using System.Windows.Forms;
using OnDoc.Klassen;
using Syncfusion.Windows.Forms.Tools;
using Syncfusion.WinForms.Controls;
using BroadcastListener.Classes;
using BroadcastListener.Interfaces;
using static BroadcastListener.Classes.Factory;
namespace OnDoc.DocMgmt
{
public partial class frmBewilligung : SfForm
public partial class frmBewilligung : SfForm, IMessageListener1
{
public frmBewilligung()
{
@@ -22,16 +25,96 @@ namespace OnDoc.DocMgmt
this.Style.TitleBar.ForeColor = Theaming.TitelFontColor();
this.Style.ShadowOpacity = Theaming.ShadowOpacity;
this.Style.InactiveShadowOpacity = Theaming.InactivShadowOpacity;
Broadcaster().AddListener(this);
Closing += Form_Closing;
}
private void frmBewilligung_Load(object sender, EventArgs e)
private void Form_Closing(object sender, CancelEventArgs e)
{
Broadcaster().RemoveListener(this);
}
public void OnListen(string message, SenderInfo sender)
{
if (message == "Serienbrief")
{
if (sender.SenderName == "Removesbfromlist")
{
refresh_serienbief();
}
}
}
private void frmBewilligung_Load(object sender, EventArgs e)
{
this.approval1.Update_Docs(AppParams.CurrentMitarbeiter);
if (approval1.anzahl_dokument() == 0)
{
this.tabControlAdv1.TabPages.RemoveAt(0);
refresh_serienbief();
}
else
{
refresh_serienbief();
}
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
this.Close();
}
private void refresh_serienbief()
{
treeViewAdv1.Nodes.Clear();
Database.DB db = new Database.DB(AppParams.connectionstring);
db.Get_Tabledata("Select * from view_relaunch_approval_Serienbrief where mitarbeiter_bewilligung=" + AppParams.CurrentMitarbeiter.ToString() + " order by bezeichnung", false, true);
foreach (DataRow dr in db.dsdaten.Tables[0].Rows)
{
TreeNodeAdv node = new TreeNodeAdv();
node.Text = dr["bezeichnung"].ToString();
node.Tag = dr["serienbriefnr"].ToString();
node.TagObject = dr;
treeViewAdv1.Nodes.Add(node);
}
if (treeViewAdv1.Nodes.Count > 0)
{
treeViewAdv1.SelectedNode = treeViewAdv1.Nodes[0];
update_serienbrief();
serienbrief1.setfuncitons(true);
}
else
{
serienbrief1.setfuncitons(false);
}
}
private void tabControlAdv1_SelectedIndexChanged(object sender, EventArgs e)
{
if (tabControlAdv1.SelectedIndex > 1 && tabControlAdv1.SelectedIndex==1)
{
refresh_serienbief();
}
}
private void treeViewAdv1_NodeMouseClick(object sender, TreeViewAdvMouseClickEventArgs e)
{
update_serienbrief();
}
private void update_serienbrief()
{
serienbrief1.approval = true;
//serienbrief1.approvaldata = new DataTable();
serienbrief1.approvaldata = treeViewAdv1.SelectedNode.TagObject as DataRow;
serienbrief1.Init();
//refresh_serienbief();
try
{
serienbrief1.open_sb(Convert.ToInt32(treeViewAdv1.SelectedNode.Tag));
}
catch { }
}
}
}

View File

@@ -120,6 +120,9 @@
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>25</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>

View File

@@ -0,0 +1,63 @@
namespace OnDoc.DocMgmt
{
partial class frmSerienbrief
{
/// <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(frmSerienbrief));
this.serienbrief1 = new OnDoc.UIControls.Serienbrief();
this.SuspendLayout();
//
// serienbrief1
//
this.serienbrief1.Dock = System.Windows.Forms.DockStyle.Fill;
this.serienbrief1.Location = new System.Drawing.Point(2, 2);
this.serienbrief1.Name = "serienbrief1";
this.serienbrief1.Size = new System.Drawing.Size(1669, 786);
this.serienbrief1.TabIndex = 0;
//
// frmSerienbrief
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1673, 790);
this.Controls.Add(this.serienbrief1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "frmSerienbrief";
this.Style.MdiChild.IconHorizontalAlignment = System.Windows.Forms.HorizontalAlignment.Center;
this.Style.MdiChild.IconVerticalAlignment = System.Windows.Forms.VisualStyles.VerticalAlignment.Center;
this.Text = "Serienbrief";
this.Load += new System.EventHandler(this.frmSerienbrief_Load);
this.ResumeLayout(false);
}
#endregion
private UIControls.Serienbrief serienbrief1;
}
}

View File

@@ -0,0 +1,63 @@
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;
using Syncfusion.Windows.Forms.Tools;
using Syncfusion.WinForms.Controls;
using NLog;
using OnDoc.DocMgmt;
using OnDoc.Helper;
using OnDoc.Klassen;
using BroadcastListener.Classes;
using BroadcastListener.Interfaces;
using static BroadcastListener.Classes.Factory;
namespace OnDoc.DocMgmt
{
public partial class frmSerienbrief : SfForm//, IMessageListener1
{
private int profilnr = 0;
public frmSerienbrief()
{
InitializeComponent();
this.Style.TitleBar.BackColor = Theaming.Titelbar();
this.Style.TitleBar.ForeColor = Theaming.TitelFontColor();
this.Style.ShadowOpacity = Theaming.ShadowOpacity;
this.Style.InactiveShadowOpacity = Theaming.InactivShadowOpacity;
//Broadcaster().AddListener(this);
Closing += Form_Closing;
}
public frmSerienbrief(int profilnr)
{
InitializeComponent();
this.Style.TitleBar.BackColor = Theaming.Titelbar();
this.Style.TitleBar.ForeColor = Theaming.TitelFontColor();
this.Style.ShadowOpacity = Theaming.ShadowOpacity;
this.Style.InactiveShadowOpacity = Theaming.InactivShadowOpacity;
this.profilnr = profilnr;
////Broadcaster().AddListener(this);
////Closing += Form_Closing;
}
private void Form_Closing(object sender, CancelEventArgs e)
{
serienbrief1.dispose();
}
private bool IsPreview = false;
private string PreviewFiename = "";
private int broadcasterdone = 0;
private void frmSerienbrief_Load(object sender, EventArgs e)
{
serienbrief1.Init();
}
}
}

View File

@@ -117,22 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="ctxmenuEmpfaenger.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>156, 17</value>
</metadata>
<metadata name="ctxmenutree.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>321, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="ribbonbuttonsavetemplate.SmallImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAABNJREFUOE9jGAWjYBSMAjBgYAAABBAAAadEfGMAAAAASUVORK5CYII=
</value>
</data>
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAUAAAAAAAEAIABVIgAAVgAAADAwAAABACAAqCUAAKsiAAAgIAAAAQAgAKgQAABTSAAAGBgAAAEA

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Drawing;
using System.Linq;
@@ -17,7 +18,11 @@ namespace OnDoc.DocMgmt
{
public partial class frmToApproval : SfForm
{
public string dokumentid { get; set; } ="";
public string dokumentid { get; set; } = "";
public string serienbriefnr { get; set; } = "";
private bool isserienbrief = false;
DB db = new DB(AppParams.connectionstring);
DB db1 = new DB(AppParams.connectionstring);
@@ -31,14 +36,14 @@ namespace OnDoc.DocMgmt
Closing += Form_Closing;
}
private void Form_Closing(object sender, CancelEventArgs e)
{
private void Form_Closing(object sender, CancelEventArgs e)
{
db = null;
db1 = null;
}
}
private void frmToApproval_Load(object sender, EventArgs e)
private void frmToApproval_Load(object sender, EventArgs e)
{
db.clear_parameter();
@@ -52,28 +57,46 @@ namespace OnDoc.DocMgmt
cbboxunterschriftrechts.DisplayMember = "name";
cbboxunterschriftrechts.ValueMember = "mitarbeiternr";
if (dokumentid=="") { return; }
update_dokdetails();
}
public void update_dokdetails() {
if (dokumentid == "" && serienbriefnr == "") { return; }
update_dokdetails();
}
public void update_dokdetails()
{
if (serienbriefnr != "") { isserienbrief = true; }
btntoapproval.Enabled = true;
db1.Get_Tabledata("Select * from dokument where dokumentid='"+dokumentid+"'",false,true);
cbboxunterschriftlinks.SelectedValue = db1.dsdaten.Tables[0].Rows[0]["unterschriftlinks"].ToString();
cbboxunterschriftrechts.SelectedValue = db1.dsdaten.Tables[0].Rows[0]["unterschriftrechts"].ToString();
pxapproval1.Visible = false;
pxapproval2.Visible = false;
cbboxunterschriftlinks.Enabled = true;
cbboxunterschriftrechts.Enabled = true;
if (!isserienbrief)
{
if (db1.dsdaten.Tables[0].Rows[0]["ersteller"].ToString()== db1.dsdaten.Tables[0].Rows[0]["unterschriftlinks"].ToString())
db1.Get_Tabledata("Select * from dokument where dokumentid='" + dokumentid + "'", false, true);
cbboxunterschriftlinks.SelectedValue = db1.dsdaten.Tables[0].Rows[0]["unterschriftlinks"].ToString();
cbboxunterschriftrechts.SelectedValue = db1.dsdaten.Tables[0].Rows[0]["unterschriftrechts"].ToString();
pxapproval1.Visible = false;
pxapproval2.Visible = false;
cbboxunterschriftlinks.Enabled = true;
cbboxunterschriftrechts.Enabled = true;
}
else
{
db1.Get_Tabledata("Select * from edex_sb_serienbrief where serienbriefnr=" + serienbriefnr, false, true);
cbboxunterschriftlinks.SelectedValue = db1.dsdaten.Tables[0].Rows[0]["unterschriftlinks"].ToString();
cbboxunterschriftrechts.SelectedValue = db1.dsdaten.Tables[0].Rows[0]["unterschriftrechts"].ToString();
pxapproval1.Visible = false;
pxapproval2.Visible = false;
cbboxunterschriftlinks.Enabled = true;
cbboxunterschriftrechts.Enabled = true;
}
if (db1.dsdaten.Tables[0].Rows[0]["mutierer"].ToString() == db1.dsdaten.Tables[0].Rows[0]["unterschriftlinks"].ToString())
{
cbboxunterschriftlinks.Enabled = false;
pxapproval1.Visible = true;
}
if (db1.dsdaten.Tables[0].Rows[0]["ersteller"].ToString() == db1.dsdaten.Tables[0].Rows[0]["unterschriftrechts"].ToString())
if (db1.dsdaten.Tables[0].Rows[0]["mutierer"].ToString() == db1.dsdaten.Tables[0].Rows[0]["unterschriftrechts"].ToString())
{
cbboxunterschriftrechts.Enabled = false;
pxapproval2.Visible = true;
@@ -92,8 +115,8 @@ namespace OnDoc.DocMgmt
}
}
if (Convert.ToBoolean(db1.dsdaten.Tables[0].Rows[0]["approved"])){
if (Convert.ToBoolean(db1.dsdaten.Tables[0].Rows[0]["approved"]))
{
cbboxunterschriftlinks.Enabled = false;
pxapproval1.Visible = true;
cbboxunterschriftrechts.Enabled = false;
@@ -122,31 +145,44 @@ namespace OnDoc.DocMgmt
}
public void insert_bewilligung() {
public void insert_bewilligung()
{
if (!btntoapproval.Enabled) { return; };
DB dB = new DB(AppParams.connectionstring);
string sql = "Update dokument_Bewilligung set aktiv=0, mutiert_am=getdate(), mutierer = " + AppParams.CurrentMitarbeiter.ToString();
sql = sql + " where dokumentid='" + dokumentid + "' and abgelehnt=0 and bewilligt=0";
dB.Exec_SQL(sql);
string sql = "";
if (!isserienbrief)
{
sql = "Update dokument_Bewilligung set aktiv=0, mutiert_am=getdate(), mutierer = " + AppParams.CurrentMitarbeiter.ToString();
sql = sql + " where dokumentid='" + dokumentid + "' and abgelehnt=0 and bewilligt=0";
dB.Exec_SQL(sql);
dB.Get_Tabledata_for_Update("select top 1 * from dokument_bewilligung where id=-2", false, true);
dB.Get_Tabledata_for_Update("select top 1 * from dokument_bewilligung where id=-2", false, true);
}
else
{
sql = "Update serienbrief_Bewilligung set aktiv=0, mutiert_am=getdate(), mutierer = " + AppParams.CurrentMitarbeiter.ToString();
sql = sql + " where serienbriefnr='" + serienbriefnr + "' and abgelehnt=0 and bewilligt=0";
dB.Exec_SQL(sql);
dB.Get_Tabledata_for_Update("select top 1 * from serienbrief_bewilligung where id=-2", false, true);
}
//dB.Exec_SQL(sql);
//dB.Get_Tabledata_for_Update("select top 1 * from dokument_bewilligung where id=-2", false, true);
if (pxapproval1.Visible == false)
{
DataRow dr = dB.daten.Tables[0].NewRow();
dr["dokumentid"] = this.dokumentid;
if (!isserienbrief) { dr["dokumentid"] = this.dokumentid; } else { dr["serienbriefnr"] = this.serienbriefnr; }
dr["mitarbeiter_bewilligung"] = cbboxunterschriftlinks.SelectedValue.ToString();
if (Convert.ToInt32(cbboxunterschriftlinks.SelectedValue) == AppParams.CurrentMitarbeiter)
{
dr["bewilligt"] = true;
dr["bewilligt_am"] = DateTime.Now;
}
else
else
{
dr["bewilligt"] = false;
}
dr["abgelehnt"] = false;
dr["bewilligungstyp"] = 1;
dr["erstellt_am"] = DateTime.Now;
@@ -159,12 +195,21 @@ namespace OnDoc.DocMgmt
clsMailer mailer = new clsMailer();
mailer.sendmail(1, cbboxunterschriftlinks.SelectedValue.ToString(), "", "", dokumentid, "");
mailer = null;
Logging.DocLog.Info("Dokument zur Prüfung", "Dokument zur Prüfung", dokumentid, "", cbboxunterschriftlinks.Text.ToString());
if (dokumentid != "")
{
Logging.DocLog.Info("Dokument zur Prüfung", "Dokument zur Prüfung", dokumentid, "", cbboxunterschriftlinks.Text.ToString());
}
else
{
Logging.DocLog.Info("Serienbrief zur Prüfung", "Serienbrief zur Prüfung", serienbriefnr, "", cbboxunterschriftlinks.Text.ToString());
}
}
if (pxapproval2.Visible == false)
{
DataRow dr = dB.daten.Tables[0].NewRow();
dr["dokumentid"] = this.dokumentid;
if (!isserienbrief) { dr["dokumentid"] = this.dokumentid; } else { dr["serienbriefnr"] = this.serienbriefnr; }
dr["mitarbeiter_bewilligung"] = cbboxunterschriftrechts.SelectedValue.ToString();
dr["bewilligt"] = false;
dr["abgelehnt"] = false;
@@ -180,18 +225,35 @@ namespace OnDoc.DocMgmt
mailer.sendmail(1, cbboxunterschriftrechts.SelectedValue.ToString(), "", "", dokumentid, "");
mailer = null;
Logging.DocLog.Info("Dokument zur Prüfung", "Dokument zur Prüfung", dokumentid, "", cbboxunterschriftrechts.Text.ToString());
}
if (pxapproval1.Visible && pxapproval2.Visible)
{
MessageBox.Show("Die Unterschriftenprüfung für dieses Dokument ist bereits erfolgt", "Unterschriftenprüfung", MessageBoxButtons.OK, MessageBoxIcon.Information);
this.Close();
if (!isserienbrief)
{
Logging.DocLog.Info("Dokument zur Prüfung", "Dokument zur Prüfung", dokumentid, "", cbboxunterschriftrechts.Text.ToString());
}
else
{
Logging.DocLog.Info("Serienbrief zur Prüfung", "Serienbrief zur Prüfung", dokumentid, "", cbboxunterschriftrechts.Text.ToString());
}
if (pxapproval1.Visible && pxapproval2.Visible)
{
if (!isserienbrief)
{
MessageBox.Show("Die Unterschriftenprüfung für dieses Dokument ist bereits erfolgt", "Unterschriftenprüfung", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("Die Unterschriftenprüfung für diesen Serienbrief ist bereits erfolgt", "Unterschriftenprüfung", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
this.Close();
}
}
if (txtnachricht.Text.Trim() != "")
{
dB.insert_note(AppParams.CurrentMitarbeiter, "Hinweis zur Unterschriftenprüfung", txtnachricht.Text, dokumentid);
}
}
public void close_window()