update 20250317
This commit is contained in:
@@ -940,6 +940,15 @@ namespace OnDoc.UICintrols
|
||||
Dokumentpaket dp = new Dokumentpaket(dokumentpaketnr, partnernr, this.profilnr);
|
||||
dp.Show();
|
||||
}
|
||||
|
||||
public void createsb(int dokumenttypnr)
|
||||
{
|
||||
frmSerienbrief sb = new frmSerienbrief(this.profilnr);
|
||||
sb.Show();
|
||||
sb.create_new_sb(dokumenttypnr);
|
||||
}
|
||||
|
||||
|
||||
public void createnewdoc(int partnernr, int dokumenttypnr, bool Favoriten = false, string interaktion = "Yes", string showdoc = "Yes")
|
||||
{
|
||||
|
||||
@@ -1173,7 +1182,7 @@ namespace OnDoc.UICintrols
|
||||
this.RibbonButtonVorschauRechts.Visible = false;
|
||||
this.RibbonBtnVorschauUnten.Visible = false;
|
||||
this.ribbonTabDokpaket_Serienbrief.Visible = false;
|
||||
this.ribbonButtonVersandstrasse.Visible = false;
|
||||
//this.ribbonButtonVersandstrasse.Visible = false;
|
||||
this.ribbonTabDokpaket_Serienbrief.Visible = false;
|
||||
this.ribbonTabProfil.Visible = false;
|
||||
this.RibbonTabNativVorlagen.Visible = false;
|
||||
@@ -1490,8 +1499,6 @@ namespace OnDoc.UICintrols
|
||||
Cursor = Cursors.WaitCursor;
|
||||
foreach (var record in records)
|
||||
{
|
||||
|
||||
|
||||
var datarow = record as DataRowView;
|
||||
string documentid = datarow["dokumentid"].ToString();
|
||||
db.Get_Tabledata("Select * from dokument_trefferliste where dokumentid='" + documentid + "'", false, true);
|
||||
@@ -1502,7 +1509,29 @@ namespace OnDoc.UICintrols
|
||||
}
|
||||
else
|
||||
{
|
||||
archivedoc(documentid);
|
||||
int res = db.Dok_in_Bearbeitung(3, documentid, AppParams.CurrentMitarbeiter);
|
||||
switch (res)
|
||||
{
|
||||
case 0:
|
||||
archivedoc(documentid);
|
||||
break;
|
||||
case 1:
|
||||
if (MessageBox.Show("Das Dokument wird aktuell bearbeitet." + Environment.NewLine + Environment.NewLine + "Sperrung aufheben?" + Environment.NewLine + Environment.NewLine + "Bitte vorgängig prüfen, ob das Dokument nicht mehr in Word/Excel geöffnet ist und die korrekte Version zur Archivierung bereit steht (Vorschau/Anzeige)!", "Dokumentsperrung aufheben", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
clsProcessWatch.RemoveFromList(documentid);
|
||||
archivedoc(documentid);
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
MessageBox.Show("Das Dokument wird aktuell bearbeitet.", "Dokumentbearbeitung", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
break;
|
||||
}
|
||||
//archivedoc(documentid);
|
||||
}
|
||||
}
|
||||
db = null;
|
||||
@@ -1732,7 +1761,7 @@ namespace OnDoc.UICintrols
|
||||
{
|
||||
|
||||
Security security = new Security();
|
||||
security.set_security(this);
|
||||
security.set_security_general(this);
|
||||
security = null;
|
||||
ribbonVorlagen.Visible = AppParams.isSysadmin;
|
||||
ribbonBerechtigung.Visible = AppParams.isSysadmin;
|
||||
@@ -2637,7 +2666,11 @@ namespace OnDoc.UICintrols
|
||||
te.Show();
|
||||
}
|
||||
|
||||
|
||||
private void ribbonbtnqdf_Click(object sender, EventArgs e)
|
||||
{
|
||||
qdfLog ql = new qdfLog();
|
||||
ql.Show();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user