update 2024-09-11

This commit is contained in:
Stefan Hutter
2024-09-11 15:54:56 +02:00
parent bf8e19e19f
commit 3d8d977a04
49 changed files with 1256 additions and 141 deletions

View File

@@ -41,7 +41,10 @@
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.toolStrip2 = new System.Windows.Forms.ToolStrip();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.GrpUnterschrifte = new System.Windows.Forms.GroupBox();
this.cbUnterschriftpruefung = new System.Windows.Forms.CheckBox();
this.lblStandard = new System.Windows.Forms.Label();
this.lbUnterschriftStandard = new System.Windows.Forms.ListBox();
this.cbUnterschriftrechts = new System.Windows.Forms.CheckBox();
@@ -49,18 +52,17 @@
this.cbDigitaleUnterschrift = new System.Windows.Forms.CheckBox();
this.cbUnterschriftlinks = new System.Windows.Forms.CheckBox();
this.GrpBewilligung = new System.Windows.Forms.GroupBox();
this.chkBewilligungFaksimileUnterschriften = new System.Windows.Forms.CheckBox();
this.chkBewilliigungZwingend = new System.Windows.Forms.CheckBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.cbbearbeitungzwingend = new System.Windows.Forms.CheckBox();
this.cbPDFDirekteArchivierung = new System.Windows.Forms.CheckBox();
this.cbPDFDokument = new System.Windows.Forms.CheckBox();
this.cbOfficeDokument = new System.Windows.Forms.CheckBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.TreeDokumentArt = new Syncfusion.Windows.Forms.Tools.TreeViewAdv();
this.GroupBox2 = new System.Windows.Forms.GroupBox();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.vbDokumenterstellungPerson = new System.Windows.Forms.RadioButton();
this.cbaktiv = new System.Windows.Forms.CheckBox();
this.rbDokumenterstellungPerson = new System.Windows.Forms.RadioButton();
this.rbDokumenterstellungBP = new System.Windows.Forms.RadioButton();
this.cbAnzeigeVorlagenauswahl = new System.Windows.Forms.CheckBox();
this.cbbezeichnungmutierbar = new System.Windows.Forms.CheckBox();
@@ -81,6 +83,8 @@
this.tabPageAdv2 = new Syncfusion.Windows.Forms.Tools.TabPageAdv();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.sfDataGrid1 = new Syncfusion.WinForms.DataGrid.SfDataGrid();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.grpVorlagenfeld = new System.Windows.Forms.GroupBox();
this.lblFeldregel = new System.Windows.Forms.TextBox();
this.txtTechbezeichnung = new System.Windows.Forms.TextBox();
@@ -115,13 +119,10 @@
this.lblfeldregeliddesc = new System.Windows.Forms.Label();
this.lblID = new System.Windows.Forms.Label();
this.lbliddesc = new System.Windows.Forms.Label();
this.toolStrip2 = new System.Windows.Forms.ToolStrip();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
((System.ComponentModel.ISupportInitialize)(this.tabControlAdv1)).BeginInit();
this.tabControlAdv1.SuspendLayout();
this.tabPageAdv1.SuspendLayout();
this.toolStrip2.SuspendLayout();
this.GrpUnterschrifte.SuspendLayout();
this.GrpBewilligung.SuspendLayout();
this.groupBox4.SuspendLayout();
@@ -138,9 +139,8 @@
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).BeginInit();
this.grpVorlagenfeld.SuspendLayout();
this.toolStrip2.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.grpVorlagenfeld.SuspendLayout();
this.SuspendLayout();
//
// tabControlAdv1
@@ -173,8 +173,31 @@
this.tabPageAdv1.Text = "Allgemein";
this.tabPageAdv1.ThemesEnabled = false;
//
// toolStrip2
//
this.toolStrip2.AutoSize = false;
this.toolStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton1});
this.toolStrip2.Location = new System.Drawing.Point(0, 0);
this.toolStrip2.Name = "toolStrip2";
this.toolStrip2.Size = new System.Drawing.Size(1283, 42);
this.toolStrip2.TabIndex = 27;
this.toolStrip2.Text = "toolStrip2";
//
// toolStripButton1
//
this.toolStripButton1.AutoSize = false;
this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButton1.Image = global::OnDoc.Properties.Resources.save_32x32_32;
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(32, 32);
this.toolStripButton1.Text = "toolStripButton1";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// GrpUnterschrifte
//
this.GrpUnterschrifte.Controls.Add(this.cbUnterschriftpruefung);
this.GrpUnterschrifte.Controls.Add(this.lblStandard);
this.GrpUnterschrifte.Controls.Add(this.lbUnterschriftStandard);
this.GrpUnterschrifte.Controls.Add(this.cbUnterschriftrechts);
@@ -183,15 +206,25 @@
this.GrpUnterschrifte.Controls.Add(this.cbUnterschriftlinks);
this.GrpUnterschrifte.Location = new System.Drawing.Point(13, 347);
this.GrpUnterschrifte.Name = "GrpUnterschrifte";
this.GrpUnterschrifte.Size = new System.Drawing.Size(488, 100);
this.GrpUnterschrifte.Size = new System.Drawing.Size(488, 128);
this.GrpUnterschrifte.TabIndex = 26;
this.GrpUnterschrifte.TabStop = false;
this.GrpUnterschrifte.Text = "Unterschriften";
//
// cbUnterschriftpruefung
//
this.cbUnterschriftpruefung.AutoSize = true;
this.cbUnterschriftpruefung.Location = new System.Drawing.Point(15, 105);
this.cbUnterschriftpruefung.Name = "cbUnterschriftpruefung";
this.cbUnterschriftpruefung.Size = new System.Drawing.Size(176, 17);
this.cbUnterschriftpruefung.TabIndex = 1;
this.cbUnterschriftpruefung.Text = "Unterschriftenprüfung zwingend";
this.cbUnterschriftpruefung.UseVisualStyleBackColor = true;
//
// lblStandard
//
this.lblStandard.AutoSize = true;
this.lblStandard.Location = new System.Drawing.Point(352, 28);
this.lblStandard.Location = new System.Drawing.Point(336, 28);
this.lblStandard.Name = "lblStandard";
this.lblStandard.Size = new System.Drawing.Size(50, 13);
this.lblStandard.TabIndex = 26;
@@ -204,16 +237,16 @@
"Unterschriften",
"Faksimle Unterschriften",
"Formular ohne Unterschrift"});
this.lbUnterschriftStandard.Location = new System.Drawing.Point(352, 49);
this.lbUnterschriftStandard.Location = new System.Drawing.Point(339, 49);
this.lbUnterschriftStandard.Name = "lbUnterschriftStandard";
this.lbUnterschriftStandard.Size = new System.Drawing.Size(120, 43);
this.lbUnterschriftStandard.Size = new System.Drawing.Size(133, 43);
this.lbUnterschriftStandard.TabIndex = 25;
//
// cbUnterschriftrechts
//
this.cbUnterschriftrechts.Location = new System.Drawing.Point(130, 28);
this.cbUnterschriftrechts.Name = "cbUnterschriftrechts";
this.cbUnterschriftrechts.Size = new System.Drawing.Size(216, 24);
this.cbUnterschriftrechts.Size = new System.Drawing.Size(114, 24);
this.cbUnterschriftrechts.TabIndex = 6;
this.cbUnterschriftrechts.Text = "Unterschrift rechts";
//
@@ -237,30 +270,20 @@
//
this.cbUnterschriftlinks.Location = new System.Drawing.Point(15, 28);
this.cbUnterschriftlinks.Name = "cbUnterschriftlinks";
this.cbUnterschriftlinks.Size = new System.Drawing.Size(216, 24);
this.cbUnterschriftlinks.Size = new System.Drawing.Size(119, 24);
this.cbUnterschriftlinks.TabIndex = 5;
this.cbUnterschriftlinks.Text = "Unterschrift links";
//
// GrpBewilligung
//
this.GrpBewilligung.Controls.Add(this.chkBewilligungFaksimileUnterschriften);
this.GrpBewilligung.Controls.Add(this.chkBewilliigungZwingend);
this.GrpBewilligung.Location = new System.Drawing.Point(13, 453);
this.GrpBewilligung.Location = new System.Drawing.Point(13, 481);
this.GrpBewilligung.Name = "GrpBewilligung";
this.GrpBewilligung.Size = new System.Drawing.Size(488, 71);
this.GrpBewilligung.Size = new System.Drawing.Size(488, 43);
this.GrpBewilligung.TabIndex = 25;
this.GrpBewilligung.TabStop = false;
this.GrpBewilligung.Text = "Bewilligung";
//
// chkBewilligungFaksimileUnterschriften
//
this.chkBewilligungFaksimileUnterschriften.AutoSize = true;
this.chkBewilligungFaksimileUnterschriften.Location = new System.Drawing.Point(19, 43);
this.chkBewilligungFaksimileUnterschriften.Name = "chkBewilligungFaksimileUnterschriften";
this.chkBewilligungFaksimileUnterschriften.Size = new System.Drawing.Size(191, 17);
this.chkBewilligungFaksimileUnterschriften.TabIndex = 1;
this.chkBewilligungFaksimileUnterschriften.Text = "Bewilligung faksimile Unterschriften";
this.chkBewilligungFaksimileUnterschriften.UseVisualStyleBackColor = true;
this.GrpBewilligung.Text = "Unterschriftenprüfung";
this.GrpBewilligung.Visible = false;
//
// chkBewilliigungZwingend
//
@@ -274,7 +297,7 @@
//
// groupBox4
//
this.groupBox4.Controls.Add(this.checkBox1);
this.groupBox4.Controls.Add(this.cbbearbeitungzwingend);
this.groupBox4.Controls.Add(this.cbPDFDirekteArchivierung);
this.groupBox4.Controls.Add(this.cbPDFDokument);
this.groupBox4.Controls.Add(this.cbOfficeDokument);
@@ -285,19 +308,17 @@
this.groupBox4.TabStop = false;
this.groupBox4.Text = "Dokument-Produktion";
//
// checkBox1
// cbbearbeitungzwingend
//
this.checkBox1.Enabled = false;
this.checkBox1.Location = new System.Drawing.Point(259, 19);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(221, 24);
this.checkBox1.TabIndex = 9;
this.checkBox1.Text = "Bearbeitung zwingend";
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
this.cbbearbeitungzwingend.Location = new System.Drawing.Point(259, 19);
this.cbbearbeitungzwingend.Name = "cbbearbeitungzwingend";
this.cbbearbeitungzwingend.Size = new System.Drawing.Size(221, 24);
this.cbbearbeitungzwingend.TabIndex = 9;
this.cbbearbeitungzwingend.Text = "Bearbeitung zwingend";
this.cbbearbeitungzwingend.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// cbPDFDirekteArchivierung
//
this.cbPDFDirekteArchivierung.Enabled = false;
this.cbPDFDirekteArchivierung.Location = new System.Drawing.Point(16, 59);
this.cbPDFDirekteArchivierung.Name = "cbPDFDirekteArchivierung";
this.cbPDFDirekteArchivierung.Size = new System.Drawing.Size(280, 24);
@@ -307,7 +328,6 @@
//
// cbPDFDokument
//
this.cbPDFDokument.Enabled = false;
this.cbPDFDokument.Location = new System.Drawing.Point(16, 40);
this.cbPDFDokument.Name = "cbPDFDokument";
this.cbPDFDokument.Size = new System.Drawing.Size(280, 24);
@@ -482,8 +502,8 @@
//
// GroupBox2
//
this.GroupBox2.Controls.Add(this.checkBox3);
this.GroupBox2.Controls.Add(this.vbDokumenterstellungPerson);
this.GroupBox2.Controls.Add(this.cbaktiv);
this.GroupBox2.Controls.Add(this.rbDokumenterstellungPerson);
this.GroupBox2.Controls.Add(this.rbDokumenterstellungBP);
this.GroupBox2.Controls.Add(this.cbAnzeigeVorlagenauswahl);
this.GroupBox2.Controls.Add(this.cbbezeichnungmutierbar);
@@ -495,23 +515,23 @@
this.GroupBox2.TabStop = false;
this.GroupBox2.Text = "Diverses";
//
// checkBox3
// cbaktiv
//
this.checkBox3.Location = new System.Drawing.Point(291, 78);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(189, 24);
this.checkBox3.TabIndex = 25;
this.checkBox3.Text = "Aktiv";
this.cbaktiv.Location = new System.Drawing.Point(291, 78);
this.cbaktiv.Name = "cbaktiv";
this.cbaktiv.Size = new System.Drawing.Size(189, 24);
this.cbaktiv.TabIndex = 25;
this.cbaktiv.Text = "Aktiv";
//
// vbDokumenterstellungPerson
// rbDokumenterstellungPerson
//
this.vbDokumenterstellungPerson.AutoSize = true;
this.vbDokumenterstellungPerson.Location = new System.Drawing.Point(293, 32);
this.vbDokumenterstellungPerson.Name = "vbDokumenterstellungPerson";
this.vbDokumenterstellungPerson.Size = new System.Drawing.Size(155, 17);
this.vbDokumenterstellungPerson.TabIndex = 22;
this.vbDokumenterstellungPerson.Text = "Dokumenterstellung Person";
this.vbDokumenterstellungPerson.UseVisualStyleBackColor = true;
this.rbDokumenterstellungPerson.AutoSize = true;
this.rbDokumenterstellungPerson.Location = new System.Drawing.Point(293, 32);
this.rbDokumenterstellungPerson.Name = "rbDokumenterstellungPerson";
this.rbDokumenterstellungPerson.Size = new System.Drawing.Size(155, 17);
this.rbDokumenterstellungPerson.TabIndex = 22;
this.rbDokumenterstellungPerson.Text = "Dokumenterstellung Person";
this.rbDokumenterstellungPerson.UseVisualStyleBackColor = true;
//
// rbDokumenterstellungBP
//
@@ -593,6 +613,7 @@
//
// cbboxofficevorlage
//
this.cbboxofficevorlage.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.cbboxofficevorlage.DropDownPosition = Syncfusion.WinForms.Core.Enums.PopupRelativeAlignment.Center;
this.cbboxofficevorlage.Location = new System.Drawing.Point(120, 13);
this.cbboxofficevorlage.Name = "cbboxofficevorlage";
@@ -718,6 +739,27 @@
this.sfDataGrid1.TabIndex = 1;
this.sfDataGrid1.CellClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.sfDataGrid1_CellClick);
//
// toolStrip1
//
this.toolStrip1.AutoSize = false;
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton2});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(930, 42);
this.toolStrip1.TabIndex = 28;
this.toolStrip1.Text = "toolStrip1";
//
// toolStripButton2
//
this.toolStripButton2.AutoSize = false;
this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButton2.Image = global::OnDoc.Properties.Resources.save_32x32_32;
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(32, 32);
this.toolStripButton2.Text = "toolStripButton1";
//
// grpVorlagenfeld
//
this.grpVorlagenfeld.Controls.Add(this.lblFeldregel);
@@ -1049,48 +1091,6 @@
this.lbliddesc.TabIndex = 0;
this.lbliddesc.Text = "ID";
//
// toolStrip2
//
this.toolStrip2.AutoSize = false;
this.toolStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton1});
this.toolStrip2.Location = new System.Drawing.Point(0, 0);
this.toolStrip2.Name = "toolStrip2";
this.toolStrip2.Size = new System.Drawing.Size(1283, 42);
this.toolStrip2.TabIndex = 27;
this.toolStrip2.Text = "toolStrip2";
//
// toolStripButton1
//
this.toolStripButton1.AutoSize = false;
this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButton1.Image = global::OnDoc.Properties.Resources.save_32x32_32;
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(32, 32);
this.toolStripButton1.Text = "toolStripButton1";
//
// toolStrip1
//
this.toolStrip1.AutoSize = false;
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton2});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(930, 42);
this.toolStrip1.TabIndex = 28;
this.toolStrip1.Text = "toolStrip1";
//
// toolStripButton2
//
this.toolStripButton2.AutoSize = false;
this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButton2.Image = global::OnDoc.Properties.Resources.save_32x32_32;
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(32, 32);
this.toolStripButton2.Text = "toolStripButton1";
//
// Dokumenttyp
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -1106,6 +1106,8 @@
((System.ComponentModel.ISupportInitialize)(this.tabControlAdv1)).EndInit();
this.tabControlAdv1.ResumeLayout(false);
this.tabPageAdv1.ResumeLayout(false);
this.toolStrip2.ResumeLayout(false);
this.toolStrip2.PerformLayout();
this.GrpUnterschrifte.ResumeLayout(false);
this.GrpUnterschrifte.PerformLayout();
this.GrpBewilligung.ResumeLayout(false);
@@ -1126,12 +1128,10 @@
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).EndInit();
this.grpVorlagenfeld.ResumeLayout(false);
this.grpVorlagenfeld.PerformLayout();
this.toolStrip2.ResumeLayout(false);
this.toolStrip2.PerformLayout();
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.grpVorlagenfeld.ResumeLayout(false);
this.grpVorlagenfeld.PerformLayout();
this.ResumeLayout(false);
}
@@ -1156,7 +1156,7 @@
internal System.Windows.Forms.TextBox TxTBezeichnung;
internal System.Windows.Forms.Label Label1;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.RadioButton vbDokumenterstellungPerson;
private System.Windows.Forms.RadioButton rbDokumenterstellungPerson;
private System.Windows.Forms.RadioButton rbDokumenterstellungBP;
internal System.Windows.Forms.CheckBox cbAnzeigeVorlagenauswahl;
private Syncfusion.Windows.Forms.Tools.TabPageAdv tabPageAdv2;
@@ -1167,14 +1167,14 @@
internal System.Windows.Forms.CheckBox cbDigitaleUnterschrift;
internal System.Windows.Forms.CheckBox cbFormularOhneUnterschrift;
internal System.Windows.Forms.CheckBox cbPDFDirekteArchivierung;
internal System.Windows.Forms.CheckBox checkBox3;
internal System.Windows.Forms.CheckBox cbaktiv;
private Syncfusion.WinForms.ListView.SfComboBox cbboxofficevorlage;
private Syncfusion.WinForms.ListView.SfComboBox cbboxOwner;
internal System.Windows.Forms.CheckBox checkBox1;
internal System.Windows.Forms.CheckBox cbbearbeitungzwingend;
private Syncfusion.WinForms.ListView.SfComboBox cbboxFachverantwortung;
private System.Windows.Forms.GroupBox GrpUnterschrifte;
private System.Windows.Forms.GroupBox GrpBewilligung;
private System.Windows.Forms.CheckBox chkBewilligungFaksimileUnterschriften;
private System.Windows.Forms.CheckBox cbUnterschriftpruefung;
private System.Windows.Forms.CheckBox chkBewilliigungZwingend;
private System.Windows.Forms.Label lblStandard;
private System.Windows.Forms.ListBox lbUnterschriftStandard;

View File

@@ -12,15 +12,16 @@ using Syncfusion.WinForms.Controls;
using Syncfusion.WinForms.Controls.Styles;
using Database;
using Helper;
using System.Windows.Forms.VisualStyles;
namespace OnDoc.UIControls.Administrator
{
public partial class Dokumenttyp : SfForm
{
private int dokumenttypnr = 0;
private int dokumenttypnr = 0;
System.Data.DataRow Origin;
public Dokumenttyp()
{
InitializeComponent();
@@ -29,34 +30,79 @@ namespace OnDoc.UIControls.Administrator
public Dokumenttyp(int dokumenttypnr)
{
InitializeComponent();
this.dokumenttypnr=dokumenttypnr;
this.dokumenttypnr = dokumenttypnr;
}
private void Dokumenttyp_Load(object sender, EventArgs e)
{
DB db = new DB(AppParams.connectionstring);
db.Get_Tabledata("Select office_vorlagenr, bezeichnung from office_vorlage", false,true);
db.Get_Tabledata("Select office_vorlagenr, bezeichnung from office_vorlage", false, true);
cbboxofficevorlage.DataSource = db.dsdaten.Tables[0];
cbboxofficevorlage.DisplayMember = "Bezeichnung";
cbboxofficevorlage.ValueMember = "office_vorlagenr";
db.Get_Tabledata("select mitarbeiternr as id, name+' '+vorname+', '+tgnummer as MA from mitarbeiter where aktiv=1 order by name", false, true);
cbboxFachverantwortung.DataSource = db.dsdaten.Tables[0];
cbboxFachverantwortung.DisplayMember = "MA";
cbboxFachverantwortung.ValueMember = "id";
cbboxOwner.DataSource=db.dsdaten.Tables[0];
cbboxOwner.DataSource = db.dsdaten.Tables[0];
cbboxOwner.DisplayMember = "MA";
cbboxOwner.ValueMember = "id";
db.Get_Tabledata("Select * from dokumenttyp where dokumenttypnr = "+dokumenttypnr.ToString(),false,true);
int erstellungstyp = 0;
db.Get_Tabledata("Select * from Dokumenttyp_BP_Person_Erstellung where dokumenttypnr=" + dokumenttypnr.ToString(), false, true);
if (db.dsdaten.Tables[0].Rows.Count != 0)
{
erstellungstyp = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][0]);
}
db.Get_Tabledata("Select * from dokumenttyp where dokumenttypnr = " + dokumenttypnr.ToString(), false, true);
DataRow r = db.dsdaten.Tables[0].Rows[0];
this.TxTBezeichnung.Text = r["bezeichnung"].ToString();
this.TxTBeschreibung.Text = r["beschreibung"].ToString() ;
db.Get_Tabledata("Select * from View_Vorlagenfelder_Relaunch where doktypid=" + dokumenttypnr.ToString(),false,true);
this.sfDataGrid1.DataSource=db.dsdaten.Tables[0];
this.TxTBeschreibung.Text = r["beschreibung"].ToString();
this.cbaktiv.Checked = Convert.ToBoolean(r["aktiv"]);
this.cbboxofficevorlage.SelectedValue = r["office_vorlagenr"].ToString();
this.cbboxFachverantwortung.SelectedValue = r["fachverantwortung"].ToString();
this.cbboxOwner.SelectedValue = r["owner"].ToString();
this.cbVertrag.Checked = Convert.ToBoolean(r["vertrag"]) == true;
this.cbbezeichnungmutierbar.Checked = Convert.ToBoolean(r["bezeichnungmut"]) == true;
this.cbAnzeigeVorlagenauswahl.Checked = Convert.ToBoolean(r["AnzeigeZurDokumenterstellung"]) == true;
this.rbDokumenterstellungBP.Checked = erstellungstyp == 1;
this.rbDokumenterstellungPerson.Checked = erstellungstyp == 2;
if (rbDokumenterstellungPerson.Checked == false && rbDokumenterstellungBP.Checked == false)
{
rbDokumenterstellungBP.Checked = true;
}
this.cbUnterschriftlinks.Checked = Convert.ToBoolean(r["unterschrift_links"]) == true;
this.cbUnterschriftrechts.Checked = Convert.ToBoolean(r["unterschrift_rechts"]) == true;
this.cbDigitaleUnterschrift.Checked = Convert.ToBoolean(r["Unterschrift_Faksimile"]) == true;
this.cbFormularOhneUnterschrift.Checked = Convert.ToBoolean(r["Unterschrift_ohne"]) == true;
this.cbUnterschriftpruefung.Checked = Convert.ToBoolean(r["Unterschrift_Pruefung"]) == true;
this.lbUnterschriftStandard.SelectedIndex = Convert.ToInt32(r["unterschrift_standard"]);
switch (Convert.ToInt32(r["genresultat_type"]))
{
case 1:
cbOfficeDokument.Checked = true;
break;
case 2:
cbPDFDokument.Checked = true;
break;
case 3:
cbPDFDirekteArchivierung.Checked = true;
break;
case 4:
cbbearbeitungzwingend.Checked = true;
break;
default:
cbOfficeDokument.Checked = true;
break;
}
db.Get_Tabledata("Select * from View_Vorlagenfelder_Relaunch where doktypid=" + dokumenttypnr.ToString(), false, true);
this.sfDataGrid1.DataSource = db.dsdaten.Tables[0];
}
@@ -92,7 +138,7 @@ namespace OnDoc.UIControls.Administrator
private void Update_Vorlagenfeld(DataRow dr)
{
//Origin = dr;
lblID.Text=dr["ID"].ToString();
lblID.Text = dr["ID"].ToString();
lblfeldregelid.Text = dr["Feldregelid"].ToString();
lblFeldregel.Text = dr["feldregel"].ToString();
@@ -112,14 +158,14 @@ namespace OnDoc.UIControls.Administrator
if (Convert.ToBoolean(dr["ui"]) == true)
{
chkui.Checked = true;
txtSort.Enabled= true;
txtUIDescription.Enabled= true;
txtSort.Enabled = true;
txtUIDescription.Enabled = true;
txtTechbezeichnung.Enabled = true;
}
else
{
chkui.Checked = false;
chkui.Checked = false;
chkui.Checked = false;
txtSort.Enabled = false;
txtUIDescription.Enabled = false;
txtTechbezeichnung.Enabled = false;
@@ -133,9 +179,9 @@ namespace OnDoc.UIControls.Administrator
private void txtSort_Leave(object sender, EventArgs e)
{
TextBox tmptxtbox = new TextBox();
TextBox tmptxtbox = new TextBox();
tmptxtbox = sender as TextBox;
Origin["BTM"]=tmptxtbox.Text;
Origin["BTM"] = tmptxtbox.Text;
var record = sfDataGrid1.View.Records.GetItemAt(sfDataGrid1.SelectedIndex);
@@ -144,5 +190,68 @@ namespace OnDoc.UIControls.Administrator
Origin.AcceptChanges();
sfDataGrid1.Update();
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
DB db = new DB(AppParams.connectionstring);
db.Get_Tabledata_for_Update("Select * from dokumenttyp where dokumenttypnr=" + dokumenttypnr.ToString(), false, true);
DataRow r = db.daten.Tables[0].Rows[0];
r["bezeichnung"] = this.TxTBezeichnung.Text;
r["beschreibung"] = this.TxTBeschreibung.Text;
r["office_vorlagenr"] = this.cbboxofficevorlage.SelectedValue;
r["fachverantwortung"] = this.cbboxFachverantwortung.SelectedValue;
r["owner"] = this.cbboxOwner.SelectedValue;
r["vertrag"] = this.cbVertrag.Checked;
r["bezeichnungmut"] = this.cbbezeichnungmutierbar.Checked;
r["AnzeigeZurDokumenterstellung"] = this.cbAnzeigeVorlagenauswahl.Checked;
r["unterschrift_links"] = this.cbUnterschriftlinks.Checked;
r["unterschrift_rechts"] = this.cbUnterschriftrechts.Checked;
r["Unterschrift_Faksimile"] = this.cbDigitaleUnterschrift.Checked;
r["Unterschrift_ohne"] = this.cbFormularOhneUnterschrift.Checked;
r["Unterschrift_Pruefung"] = this.cbUnterschriftpruefung.Checked;
r["unterschrift_standard"]=this.lbUnterschriftStandard.SelectedIndex;
r["aktiv"] = this.cbaktiv.Checked;
r["mutierer"] = AppParams.CurrentMitarbieter;
r["mutiert_am"]=DateTime.Now;
if (cbOfficeDokument.Checked) { r["genresultat_type"] = 1; }
if (cbPDFDokument.Checked) { r["genresultat_type"] = 2; }
if (cbPDFDirekteArchivierung.Checked) { r["genresultat_type"] = 3; }
if (cbbearbeitungzwingend.Checked) { r["genresultat_type"] = 4; }
db.Update_Data();
db.daten.Tables.Clear();
db.Get_Tabledata_for_Update("Select * from Dokumenttyp_BP_Person_Erstellung where dokumenttypnr=" + dokumenttypnr.ToString(), false, true);
if (db.daten.Tables[0].Rows.Count > 0)
{
if (rbDokumenterstellungBP.Checked) { db.daten.Tables[0].Rows[0][1] = 1; } else { db.daten.Tables[0].Rows[0][1] = 2; }
}
else
{
DataRow dr = db.daten.Tables[0].NewRow();
dr[0] = dokumenttypnr;
if (rbDokumenterstellungBP.Checked) {dr[1] = 1; } else { dr[1] = 2; }
db.daten.Tables[0].Rows.Add(dr);
}
db.Update_Data();
ToastMessage.ShowToast("Speichern", "Dokumenttyp erfolgreich gespeichert");
}
}
}

View File

@@ -49,7 +49,7 @@ namespace OnDoc.UIControls.Administrator
var dataRow = (e.DataRow.RowData as DataRowView).Row;
dokumenttypnr = dataRow["id"].ToString();
Dokumenttyp dt = new Dokumenttyp(Convert.ToInt32(dokumenttypnr));
dt.ShowDialog();
dt.Show();
}
catch
{