Update 20251107
This commit is contained in:
@@ -42,6 +42,9 @@
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Dokumenttyp));
|
||||
this.tabControlAdv1 = new Syncfusion.Windows.Forms.Tools.TabControlAdv();
|
||||
this.tabPageAdv1 = new Syncfusion.Windows.Forms.Tools.TabPageAdv();
|
||||
this.groupBox8 = new System.Windows.Forms.GroupBox();
|
||||
this.txtOnBaseFormular = new System.Windows.Forms.TextBox();
|
||||
this.label19 = new System.Windows.Forms.Label();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.chkversandstrassefirstdok = new System.Windows.Forms.CheckBox();
|
||||
this.cbebanking_moeglich = new System.Windows.Forms.CheckBox();
|
||||
@@ -149,12 +152,12 @@
|
||||
this.label16 = new System.Windows.Forms.Label();
|
||||
this.rbNr = new System.Windows.Forms.RadioButton();
|
||||
this.label15 = new System.Windows.Forms.Label();
|
||||
this.groupBox8 = new System.Windows.Forms.GroupBox();
|
||||
this.label19 = new System.Windows.Forms.Label();
|
||||
this.txtOnBaseFormular = new System.Windows.Forms.TextBox();
|
||||
this.txturibeschreibung = new System.Windows.Forms.TextBox();
|
||||
this.label20 = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tabControlAdv1)).BeginInit();
|
||||
this.tabControlAdv1.SuspendLayout();
|
||||
this.tabPageAdv1.SuspendLayout();
|
||||
this.groupBox8.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.toolStrip2.SuspendLayout();
|
||||
this.GrpUnterschrifte.SuspendLayout();
|
||||
@@ -181,7 +184,6 @@
|
||||
this.groupBox7.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.TreeDokumenttyp)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.groupBox8.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tabControlAdv1
|
||||
@@ -217,6 +219,35 @@
|
||||
this.tabPageAdv1.Text = "Allgemein";
|
||||
this.tabPageAdv1.ThemesEnabled = false;
|
||||
//
|
||||
// groupBox8
|
||||
//
|
||||
this.groupBox8.Controls.Add(this.label20);
|
||||
this.groupBox8.Controls.Add(this.txturibeschreibung);
|
||||
this.groupBox8.Controls.Add(this.txtOnBaseFormular);
|
||||
this.groupBox8.Controls.Add(this.label19);
|
||||
this.groupBox8.Location = new System.Drawing.Point(521, 606);
|
||||
this.groupBox8.Name = "groupBox8";
|
||||
this.groupBox8.Size = new System.Drawing.Size(488, 124);
|
||||
this.groupBox8.TabIndex = 28;
|
||||
this.groupBox8.TabStop = false;
|
||||
this.groupBox8.Text = "OnBase Formular";
|
||||
//
|
||||
// txtOnBaseFormular
|
||||
//
|
||||
this.txtOnBaseFormular.Location = new System.Drawing.Point(43, 21);
|
||||
this.txtOnBaseFormular.Name = "txtOnBaseFormular";
|
||||
this.txtOnBaseFormular.Size = new System.Drawing.Size(439, 20);
|
||||
this.txtOnBaseFormular.TabIndex = 1;
|
||||
//
|
||||
// label19
|
||||
//
|
||||
this.label19.AutoSize = true;
|
||||
this.label19.Location = new System.Drawing.Point(7, 21);
|
||||
this.label19.Name = "label19";
|
||||
this.label19.Size = new System.Drawing.Size(29, 13);
|
||||
this.label19.TabIndex = 0;
|
||||
this.label19.Text = "URI:";
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.chkversandstrassefirstdok);
|
||||
@@ -1511,32 +1542,22 @@
|
||||
this.label15.TabIndex = 7;
|
||||
this.label15.Text = "Sort";
|
||||
//
|
||||
// groupBox8
|
||||
// txturibeschreibung
|
||||
//
|
||||
this.groupBox8.Controls.Add(this.txtOnBaseFormular);
|
||||
this.groupBox8.Controls.Add(this.label19);
|
||||
this.groupBox8.Location = new System.Drawing.Point(521, 606);
|
||||
this.groupBox8.Name = "groupBox8";
|
||||
this.groupBox8.Size = new System.Drawing.Size(488, 75);
|
||||
this.groupBox8.TabIndex = 28;
|
||||
this.groupBox8.TabStop = false;
|
||||
this.groupBox8.Text = "OnBase Formular";
|
||||
this.txturibeschreibung.Location = new System.Drawing.Point(43, 48);
|
||||
this.txturibeschreibung.Multiline = true;
|
||||
this.txturibeschreibung.Name = "txturibeschreibung";
|
||||
this.txturibeschreibung.Size = new System.Drawing.Size(439, 70);
|
||||
this.txturibeschreibung.TabIndex = 2;
|
||||
//
|
||||
// label19
|
||||
// label20
|
||||
//
|
||||
this.label19.AutoSize = true;
|
||||
this.label19.Location = new System.Drawing.Point(7, 21);
|
||||
this.label19.Name = "label19";
|
||||
this.label19.Size = new System.Drawing.Size(29, 13);
|
||||
this.label19.TabIndex = 0;
|
||||
this.label19.Text = "URI:";
|
||||
//
|
||||
// txtOnBaseFormular
|
||||
//
|
||||
this.txtOnBaseFormular.Location = new System.Drawing.Point(43, 21);
|
||||
this.txtOnBaseFormular.Name = "txtOnBaseFormular";
|
||||
this.txtOnBaseFormular.Size = new System.Drawing.Size(439, 20);
|
||||
this.txtOnBaseFormular.TabIndex = 1;
|
||||
this.label20.AutoSize = true;
|
||||
this.label20.Location = new System.Drawing.Point(8, 51);
|
||||
this.label20.Name = "label20";
|
||||
this.label20.Size = new System.Drawing.Size(28, 13);
|
||||
this.label20.TabIndex = 3;
|
||||
this.label20.Text = "Bes.";
|
||||
//
|
||||
// Dokumenttyp
|
||||
//
|
||||
@@ -1554,6 +1575,8 @@
|
||||
((System.ComponentModel.ISupportInitialize)(this.tabControlAdv1)).EndInit();
|
||||
this.tabControlAdv1.ResumeLayout(false);
|
||||
this.tabPageAdv1.ResumeLayout(false);
|
||||
this.groupBox8.ResumeLayout(false);
|
||||
this.groupBox8.PerformLayout();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.toolStrip2.ResumeLayout(false);
|
||||
@@ -1590,8 +1613,6 @@
|
||||
((System.ComponentModel.ISupportInitialize)(this.TreeDokumenttyp)).EndInit();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.groupBox8.ResumeLayout(false);
|
||||
this.groupBox8.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -1710,5 +1731,7 @@
|
||||
private System.Windows.Forms.GroupBox groupBox8;
|
||||
private System.Windows.Forms.Label label19;
|
||||
private System.Windows.Forms.TextBox txtOnBaseFormular;
|
||||
private System.Windows.Forms.Label label20;
|
||||
private System.Windows.Forms.TextBox txturibeschreibung;
|
||||
}
|
||||
}
|
||||
@@ -205,6 +205,7 @@ namespace OnDoc.UIControls.Administrator
|
||||
//catch
|
||||
//{ chkboxInOffice.Checked = false; }
|
||||
this.txtOnBaseFormular.Text = r["URI"].ToString().Trim();
|
||||
this.txturibeschreibung.Text = r["URIBeschreibung"].ToString().Trim();
|
||||
Update_Vorlagenfelder();
|
||||
}
|
||||
private void Update_Vorlagenfelder() {
|
||||
@@ -362,6 +363,7 @@ namespace OnDoc.UIControls.Administrator
|
||||
//if (cbPDFDirekteArchivierung.Checked) { r["genresultat_type"] = 3; }
|
||||
r["bearbeitung_zwingend"] = this.cbbearbeitungzwingend.Checked == true;
|
||||
r["uri"]=this.txtOnBaseFormular.Text;
|
||||
r["uriBeschreibung"]=this.txturibeschreibung.Text;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Database;
|
||||
using DOCGEN;
|
||||
using Microsoft.Office.Interop.Word;
|
||||
using NLog.LayoutRenderers;
|
||||
using OnDoc.DocMgmt;
|
||||
using OnDoc.Klassen;
|
||||
@@ -40,6 +41,7 @@ namespace OnDoc.UIControls
|
||||
}
|
||||
|
||||
private System.Data.DataTable notes = new System.Data.DataTable();
|
||||
public int pages = 0;
|
||||
|
||||
private void AddNote(string datum, string betreff, string note, string ersteller)
|
||||
{
|
||||
@@ -62,6 +64,7 @@ namespace OnDoc.UIControls
|
||||
notes.Columns.Add("Note");
|
||||
notes.Columns.Add("Notewriter");
|
||||
this.docPreview1.Show_Doc(nodetag);
|
||||
this.pages = docPreview1.Get_Page_Count();
|
||||
Database.DB db = new Database.DB(AppParams.connectionstring);
|
||||
|
||||
db.Get_Tabledata("Select * from View_Relaunach_Approval_Doc where dokumentid='" + nodetag + "'", false, true);
|
||||
@@ -194,6 +197,7 @@ namespace OnDoc.UIControls
|
||||
string threaddocid = "";
|
||||
string threadempfaenger = "";
|
||||
string threadid = "";
|
||||
|
||||
private void signdoc()
|
||||
{
|
||||
string intDokid = threaddocid;
|
||||
@@ -209,7 +213,8 @@ namespace OnDoc.UIControls
|
||||
//Application.DoEvents();
|
||||
//Cursor = Cursors.WaitCursor;
|
||||
DOCGEN.DocGen dg = new DocGen(AppParams.connectionstring, AppParams.RESTURI, AppParams.apikey);
|
||||
if (dg.signdoc(threaddocid, AppParams.tempdir))
|
||||
|
||||
if (dg.signdoc(threaddocid, AppParams.tempdir,pages))
|
||||
{
|
||||
db.Exec_SQL("Update Dokument set signiert=1, mutierer=" + AppParams.CurrentMitarbeiter.ToString() + ", mutiertam=getdate() where dokumentid='" + intDokid + "'");
|
||||
}
|
||||
@@ -264,16 +269,17 @@ namespace OnDoc.UIControls
|
||||
if (db.dsdaten.Tables[0].Rows[0]["approved"].ToString()=="True")
|
||||
{
|
||||
panelsign.Visible = true;
|
||||
Application.DoEvents();
|
||||
Cursor = Cursors.WaitCursor;
|
||||
System.Windows.Forms.Application.DoEvents();
|
||||
Cursor = Cursors.WaitCursor;
|
||||
|
||||
DOCGEN.DocGen dg = new DocGen(AppParams.connectionstring, AppParams.RESTURI, AppParams.apikey);
|
||||
if (dg.signdoc(dr["dokumentid"].ToString(), AppParams.tempdir))
|
||||
if (dg.signdoc(dr["dokumentid"].ToString(), AppParams.tempdir, pages)) ;
|
||||
{
|
||||
db.Exec_SQL("Update Dokument set signiert=1, mutierer=" + AppParams.CurrentMitarbeiter.ToString() + ", mutiertam=getdate() where dokumentid='" + dr["dokumentid"].ToString() + "'");
|
||||
}
|
||||
dg = null;
|
||||
panelsign.Visible = false;
|
||||
Application.DoEvents();
|
||||
System.Windows.Forms.Application.DoEvents();
|
||||
Cursor = Cursors.Default;
|
||||
|
||||
}
|
||||
|
||||
@@ -51,6 +51,10 @@ namespace OnDoc.UIControls
|
||||
this.pnlEdit.Visible = false;
|
||||
}
|
||||
|
||||
public int Get_Page_Count()
|
||||
{
|
||||
return pdfViewerControl1.PageCount;
|
||||
}
|
||||
public void set_zoom()
|
||||
{
|
||||
this.pdfViewerControl1.ZoomMode = ZoomMode.FitWidth;
|
||||
|
||||
@@ -385,26 +385,29 @@ namespace OnDoc.UICintrols
|
||||
|
||||
public void refresh_dokumente_filtered(string layout = "")
|
||||
{
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
int selectedIndex = RibbonCBProfil.SelectedIndex;
|
||||
try
|
||||
{
|
||||
profilnr = Convert.ToInt32(RibbonCBProfil.SelectedItem.Tag.ToString());
|
||||
}
|
||||
catch
|
||||
{
|
||||
load_Profile();
|
||||
profilnr = Convert.ToInt32(RibbonCBProfil.SelectedItem.Tag.ToString());
|
||||
}
|
||||
System.Data.DataTable dokumente = new System.Data.DataTable();
|
||||
dokumente = db.Get_Dokumente(partnernr, docartnr, profilnr, forMaNr, Search_Docid, false);
|
||||
dokumente.DefaultView.RowFilter = datafilter;
|
||||
|
||||
if (layout == "") { layout = "trefferliste_relaunch"; }
|
||||
// TableHelper.SetColumnsOrder(dokumente, "trefferliste");
|
||||
TableHelper.FormatTable(ref dokumente, layout, ref this.sfDataGrid1);
|
||||
//this.sfDataGrid1.DataSource = dokumente;
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
int selectedIndex = RibbonCBProfil.SelectedIndex;
|
||||
try
|
||||
{
|
||||
profilnr = Convert.ToInt32(RibbonCBProfil.SelectedItem.Tag.ToString());
|
||||
}
|
||||
catch
|
||||
{
|
||||
load_Profile();
|
||||
profilnr = Convert.ToInt32(RibbonCBProfil.SelectedItem.Tag.ToString());
|
||||
}
|
||||
System.Data.DataTable dokumente = new System.Data.DataTable();
|
||||
dokumente = db.Get_Dokumente(partnernr, docartnr, profilnr, forMaNr, Search_Docid, false);
|
||||
dokumente.DefaultView.RowFilter = datafilter;
|
||||
|
||||
if (layout == "") { layout = "trefferliste_relaunch"; }
|
||||
// TableHelper.SetColumnsOrder(dokumente, "trefferliste");
|
||||
TableHelper.FormatTable(ref dokumente, layout, ref this.sfDataGrid1);
|
||||
//this.sfDataGrid1.DataSource = dokumente;
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
|
||||
|
||||
182
Client/UIControls/UCAllgemeinDokumentParamExtern.Designer.cs
generated
Normal file
182
Client/UIControls/UCAllgemeinDokumentParamExtern.Designer.cs
generated
Normal file
@@ -0,0 +1,182 @@
|
||||
namespace OnDoc.UIControls
|
||||
{
|
||||
partial class UCAllgemeinDokumentParamExtern
|
||||
{
|
||||
/// <summary>
|
||||
/// Erforderliche Designervariable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Verwendete Ressourcen bereinigen.
|
||||
/// </summary>
|
||||
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Vom Komponenten-Designer generierter Code
|
||||
|
||||
/// <summary>
|
||||
/// Erforderliche Methode für die Designerunterstützung.
|
||||
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||
this.txtPartnerZusteller = new System.Windows.Forms.TextBox();
|
||||
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||
this.txtPartnerInhaber = new System.Windows.Forms.TextBox();
|
||||
this.sfButton1 = new Syncfusion.WinForms.Controls.SfButton();
|
||||
this.lblPartner = new System.Windows.Forms.Label();
|
||||
this.lblPartnerInhaber = new System.Windows.Forms.Label();
|
||||
this.btnErneutGenerierung = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.lbluridescription = new System.Windows.Forms.Label();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.groupBox6.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBox5
|
||||
//
|
||||
this.groupBox5.Controls.Add(this.txtPartnerZusteller);
|
||||
this.groupBox5.Location = new System.Drawing.Point(288, 40);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new System.Drawing.Size(200, 100);
|
||||
this.groupBox5.TabIndex = 30;
|
||||
this.groupBox5.TabStop = false;
|
||||
this.groupBox5.Text = "Zustell-Adresse";
|
||||
//
|
||||
// txtPartnerZusteller
|
||||
//
|
||||
this.txtPartnerZusteller.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtPartnerZusteller.Location = new System.Drawing.Point(3, 16);
|
||||
this.txtPartnerZusteller.Multiline = true;
|
||||
this.txtPartnerZusteller.Name = "txtPartnerZusteller";
|
||||
this.txtPartnerZusteller.ReadOnly = true;
|
||||
this.txtPartnerZusteller.Size = new System.Drawing.Size(194, 81);
|
||||
this.txtPartnerZusteller.TabIndex = 1;
|
||||
//
|
||||
// groupBox6
|
||||
//
|
||||
this.groupBox6.Controls.Add(this.txtPartnerInhaber);
|
||||
this.groupBox6.Location = new System.Drawing.Point(73, 40);
|
||||
this.groupBox6.Name = "groupBox6";
|
||||
this.groupBox6.Size = new System.Drawing.Size(200, 100);
|
||||
this.groupBox6.TabIndex = 29;
|
||||
this.groupBox6.TabStop = false;
|
||||
this.groupBox6.Text = "Inhaber-Adresse";
|
||||
//
|
||||
// txtPartnerInhaber
|
||||
//
|
||||
this.txtPartnerInhaber.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtPartnerInhaber.Location = new System.Drawing.Point(3, 16);
|
||||
this.txtPartnerInhaber.Multiline = true;
|
||||
this.txtPartnerInhaber.Name = "txtPartnerInhaber";
|
||||
this.txtPartnerInhaber.ReadOnly = true;
|
||||
this.txtPartnerInhaber.Size = new System.Drawing.Size(194, 81);
|
||||
this.txtPartnerInhaber.TabIndex = 0;
|
||||
//
|
||||
// sfButton1
|
||||
//
|
||||
this.sfButton1.Font = new System.Drawing.Font("Segoe UI Semibold", 9F);
|
||||
this.sfButton1.Location = new System.Drawing.Point(5, 12);
|
||||
this.sfButton1.Name = "sfButton1";
|
||||
this.sfButton1.Size = new System.Drawing.Size(47, 28);
|
||||
this.sfButton1.Style.Image = global::OnDoc.Properties.Resources.Search_24x24_32;
|
||||
this.sfButton1.TabIndex = 28;
|
||||
this.sfButton1.Tag = "Partner suchen";
|
||||
this.sfButton1.Click += new System.EventHandler(this.sfButton1_Click);
|
||||
//
|
||||
// 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(184, 16);
|
||||
this.lblPartner.Name = "lblPartner";
|
||||
this.lblPartner.Size = new System.Drawing.Size(107, 13);
|
||||
this.lblPartner.TabIndex = 27;
|
||||
this.lblPartner.Text = "Partner-Kurzname";
|
||||
//
|
||||
// lblPartnerInhaber
|
||||
//
|
||||
this.lblPartnerInhaber.AutoSize = true;
|
||||
this.lblPartnerInhaber.Location = new System.Drawing.Point(70, 16);
|
||||
this.lblPartnerInhaber.Name = "lblPartnerInhaber";
|
||||
this.lblPartnerInhaber.Size = new System.Drawing.Size(43, 13);
|
||||
this.lblPartnerInhaber.TabIndex = 26;
|
||||
this.lblPartnerInhaber.Text = "Inhaber";
|
||||
//
|
||||
// btnErneutGenerierung
|
||||
//
|
||||
this.btnErneutGenerierung.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||
this.btnErneutGenerierung.Location = new System.Drawing.Point(890, 55);
|
||||
this.btnErneutGenerierung.Name = "btnErneutGenerierung";
|
||||
this.btnErneutGenerierung.Size = new System.Drawing.Size(138, 23);
|
||||
this.btnErneutGenerierung.TabIndex = 31;
|
||||
this.btnErneutGenerierung.Text = "Erneut erstellen";
|
||||
this.btnErneutGenerierung.UseVisualStyleBackColor = false;
|
||||
this.btnErneutGenerierung.Visible = false;
|
||||
this.btnErneutGenerierung.Click += new System.EventHandler(this.btnErneutGenerierung_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(69, 213);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(349, 24);
|
||||
this.label1.TabIndex = 32;
|
||||
this.label1.Text = "Dokumenterstellung in externem System";
|
||||
//
|
||||
// lbluridescription
|
||||
//
|
||||
this.lbluridescription.AutoSize = true;
|
||||
this.lbluridescription.Location = new System.Drawing.Point(73, 251);
|
||||
this.lbluridescription.Name = "lbluridescription";
|
||||
this.lbluridescription.Size = new System.Drawing.Size(0, 13);
|
||||
this.lbluridescription.TabIndex = 33;
|
||||
//
|
||||
// UCAllgemeinDokumentParamExtern
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.lbluridescription);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.groupBox5);
|
||||
this.Controls.Add(this.groupBox6);
|
||||
this.Controls.Add(this.sfButton1);
|
||||
this.Controls.Add(this.lblPartner);
|
||||
this.Controls.Add(this.lblPartnerInhaber);
|
||||
this.Controls.Add(this.btnErneutGenerierung);
|
||||
this.Name = "UCAllgemeinDokumentParamExtern";
|
||||
this.Size = new System.Drawing.Size(1032, 519);
|
||||
this.Load += new System.EventHandler(this.UCAllgemeinDokumentParamExtern_Load);
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.groupBox5.PerformLayout();
|
||||
this.groupBox6.ResumeLayout(false);
|
||||
this.groupBox6.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.GroupBox groupBox5;
|
||||
private System.Windows.Forms.TextBox txtPartnerZusteller;
|
||||
private System.Windows.Forms.GroupBox groupBox6;
|
||||
private System.Windows.Forms.TextBox txtPartnerInhaber;
|
||||
private Syncfusion.WinForms.Controls.SfButton sfButton1;
|
||||
private System.Windows.Forms.Label lblPartner;
|
||||
private System.Windows.Forms.Label lblPartnerInhaber;
|
||||
private System.Windows.Forms.Button btnErneutGenerierung;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label lbluridescription;
|
||||
}
|
||||
}
|
||||
169
Client/UIControls/UCAllgemeinDokumentParamExtern.cs
Normal file
169
Client/UIControls/UCAllgemeinDokumentParamExtern.cs
Normal file
@@ -0,0 +1,169 @@
|
||||
using BroadcastListener.Classes;
|
||||
using Database;
|
||||
using OnDoc.Klassen;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Xml;
|
||||
|
||||
namespace OnDoc.UIControls
|
||||
{
|
||||
public partial class UCAllgemeinDokumentParamExtern : UserControl
|
||||
{
|
||||
public bool personendokument { get; set; } = false;
|
||||
public bool bpdokument { get; set; } = false;
|
||||
public int dokumenttypnr { get; set; } = 0;
|
||||
public string uri { get; set; } = "";
|
||||
public int partnernr { get; set; } = 0;
|
||||
public int bpperson_error_type { get; set; } = 0;
|
||||
private bool bpperson_error { get; set; } = false;
|
||||
|
||||
public UCAllgemeinDokumentParamExtern()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void sfButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
set_personendokument();
|
||||
show_partnerdialog();
|
||||
}
|
||||
|
||||
public bool set_personendokument()
|
||||
{
|
||||
|
||||
DB db1 = new DB(AppParams.connectionstring);
|
||||
db1.Get_Tabledata("select * from Dokumenttyp_BP_Person_Erstellung where dokumenttypnr=" + this.dokumenttypnr.ToString(), false, true);
|
||||
if (db1.dsdaten.Tables[0].Rows.Count == 0)
|
||||
{
|
||||
personendokument = false;
|
||||
bpdokument = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (db1.dsdaten.Tables[0].Rows[0][1].ToString() == "2") personendokument = true;
|
||||
if (db1.dsdaten.Tables[0].Rows[0][1].ToString() == "1") personendokument = false;
|
||||
if (personendokument) { bpdokument = false; }
|
||||
}
|
||||
return personendokument;
|
||||
}
|
||||
private void show_partnerdialog()
|
||||
{
|
||||
Partnersuche ps = new Partnersuche(personendokument, true, bpdokument, dokumenttypnr);
|
||||
ps.ShowDialog();
|
||||
if (ps.DialogResult == DialogResult.OK)
|
||||
{
|
||||
this.partnernr = ps.partnernr;
|
||||
if (ps.bpperson_changed) { lblPartner.ForeColor = System.Drawing.Color.Blue; } else { lblPartner.ForeColor = System.Drawing.Color.Black; }
|
||||
update_partner();
|
||||
}
|
||||
}
|
||||
public void update_partner()
|
||||
{
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
|
||||
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();
|
||||
|
||||
db.clear_parameter();
|
||||
db.add_parameter("@nrpar00", this.partnernr.ToString());
|
||||
db.Get_Tabledata("OnDoc_sp_partner_detail", true, false);
|
||||
txtPartnerInhaber.Text = "";
|
||||
txtPartnerZusteller.Text = "";
|
||||
string s = "";
|
||||
for (int i = 1; i < 8; i++)
|
||||
{
|
||||
txtPartnerInhaber.Text = txtPartnerInhaber.Text + db.dsdaten.Tables[0].Rows[0]["d" + i.ToString()].ToString() + "\r\n";
|
||||
txtPartnerZusteller.Text = txtPartnerZusteller.Text + db.dsdaten.Tables[0].Rows[0]["h" + i.ToString()].ToString() + "\r\n";
|
||||
s = s + db.dsdaten.Tables[0].Rows[0]["h" + i.ToString()].ToString();
|
||||
}
|
||||
if (s == "") { txtPartnerZusteller.Text = txtPartnerInhaber.Text; }
|
||||
|
||||
//db.clear_parameter();
|
||||
//db.add_parameter("@partnernr", this.partnernr.ToString());
|
||||
//db.Get_Tabledata("sp_dokumentbearbeitung_kube", true, false);
|
||||
|
||||
|
||||
db = null;
|
||||
|
||||
}
|
||||
|
||||
public void Refresh_Details(string uri, string description)
|
||||
{
|
||||
this.uri = uri;
|
||||
this.lbluridescription.Text = description;
|
||||
if (dokumenttypnr != 0)
|
||||
{
|
||||
set_personendokument();
|
||||
}
|
||||
|
||||
if (partnernr != 0)
|
||||
{
|
||||
update_partner();
|
||||
}
|
||||
}
|
||||
|
||||
public void gendoc()
|
||||
{
|
||||
try
|
||||
{
|
||||
string uri1 = "";
|
||||
uri1 = uri.Replace("&partnernr&", this.partnernr.ToString());
|
||||
Process.Start(uri1);
|
||||
return;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string error = "Die Erstellung im externen System konnte nicht gestartet werden ('" + uri + "')" + Environment.NewLine + ex.Message;
|
||||
MessageBox.Show(error,"Externe Dokumenterstellung",MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
public bool check_bp_person()
|
||||
{
|
||||
DB db1 = new DB(AppParams.connectionstring);
|
||||
db1.Get_Tabledata("select * from Dokumenttyp_BP_Person_Erstellung where dokumenttypnr=" + this.dokumenttypnr.ToString(), false, true);
|
||||
bpperson_error_type = 0;
|
||||
if (db1.dsdaten.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
if (db1.dsdaten.Tables[0].Rows[0][1].ToString() == "2" && this.partnernr.ToString().Length < 9)
|
||||
{
|
||||
bpperson_error = true;
|
||||
bpperson_error_type = 1;
|
||||
return false;
|
||||
|
||||
}
|
||||
if (db1.dsdaten.Tables[0].Rows[0][1].ToString() == "1" && this.partnernr.ToString().Length > 8)
|
||||
{
|
||||
bpperson_error = true;
|
||||
bpperson_error_type = 2;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
public void Show_Neugenerieren()
|
||||
{
|
||||
btnErneutGenerierung.Visible = true;
|
||||
}
|
||||
|
||||
private void btnErneutGenerierung_Click(object sender, EventArgs e)
|
||||
{
|
||||
gendoc();
|
||||
}
|
||||
|
||||
private void UCAllgemeinDokumentParamExtern_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
120
Client/UIControls/UCAllgemeinDokumentParamExtern.resx
Normal file
120
Client/UIControls/UCAllgemeinDokumentParamExtern.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?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>
|
||||
</root>
|
||||
@@ -306,6 +306,7 @@
|
||||
this.gridDokwertlist.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gridDokwertlist.Location = new System.Drawing.Point(3, 16);
|
||||
this.gridDokwertlist.Name = "gridDokwertlist";
|
||||
this.gridDokwertlist.PreviewRowHeight = 35;
|
||||
this.gridDokwertlist.SelectionUnit = Syncfusion.WinForms.DataGrid.Enums.SelectionUnit.Cell;
|
||||
this.gridDokwertlist.Size = new System.Drawing.Size(456, 376);
|
||||
this.gridDokwertlist.TabIndex = 0;
|
||||
@@ -664,6 +665,7 @@
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(61, 4);
|
||||
//
|
||||
|
||||
@@ -33,6 +33,7 @@ using System.Globalization;
|
||||
using System.Threading;
|
||||
using System.ComponentModel.Design;
|
||||
using Syncfusion.Windows.Forms.Tools.Win32API;
|
||||
using Windows.Storage.Provider;
|
||||
|
||||
|
||||
namespace OnDoc.UIControls
|
||||
@@ -80,6 +81,8 @@ namespace OnDoc.UIControls
|
||||
|
||||
|
||||
public string dokumentid { get; set; } = "";
|
||||
public bool isuri { get; set; } = false;
|
||||
public string uri { get; set; } = "";
|
||||
|
||||
|
||||
public UCAllgemeineDokumentParam()
|
||||
@@ -147,6 +150,14 @@ namespace OnDoc.UIControls
|
||||
{
|
||||
//set_personendokument();
|
||||
db.Get_Tabledata("Select * from dokumenttyp where dokumenttypnr=" + dokumenttypnr, false, true);
|
||||
//if (db.dsdaten.Tables[0].Rows[0]["URI"].ToString()!="")
|
||||
//{
|
||||
// isuri = true;
|
||||
// pnluri1.Visible = true;
|
||||
// pnluri2.Visible = true;
|
||||
// pnluri3.Visible = true;
|
||||
// pnluri4.Visible = true;
|
||||
//}
|
||||
System.Data.DataRow dr = db.dsdaten.Tables[0].Rows[0];
|
||||
this.txtbezeichnung.Text = dr["Bezeichnung"].ToString();
|
||||
this.txtbezeichnung.Enabled = Convert.ToBoolean(dr["bezeichnungmut"]);
|
||||
|
||||
Reference in New Issue
Block a user