Update 20240723

This commit is contained in:
Stefan Hutter
2024-07-23 12:48:07 +02:00
parent ea8d48ac9e
commit c3cacbec3c
79 changed files with 1294 additions and 65 deletions

View File

@@ -152,6 +152,16 @@ namespace OnDoc.UICintrols
documentid = dataRow["dokumentid"].ToString();
selected_dokumentid = documentid;
selected_cellvalue = dataRow[e.DataColumn.ColumnIndex].ToString();
if (dataRow["Bearbeitung_Zwingend"].ToString() == "1")
{
RibbonButtonArchivToOnBase.Enabled=false;
archivierenToolStripMenuItem.Enabled=false;
}
else
{
RibbonButtonArchivToOnBase.Enabled=true;
archivierenToolStripMenuItem.Enabled= true;
}
}
catch
{
@@ -552,11 +562,25 @@ namespace OnDoc.UICintrols
var dataRow = (e.DataRow.RowData as DataRowView).Row;
if (dataRow[0].ToString().Substring(0, 1).ToUpper() == "D")
{
e.Graphics.DrawImage(OnDoc.Properties.Resources.Word_24x24_32, e.Bounds.X +20, e.Bounds.Y);
if (dataRow[11].ToString() != "1")
{
e.Graphics.DrawImage(OnDoc.Properties.Resources.Word_24x24_32, e.Bounds.X + 20, e.Bounds.Y);
}else
{
e.Graphics.DrawImage(OnDoc.Properties.Resources.Word_Edit_24x24_32, e.Bounds.X + 20, e.Bounds.Y);
}
}
if (dataRow[0].ToString().Substring(0, 1).ToUpper() == "X")
{
e.Graphics.DrawImage(OnDoc.Properties.Resources.Excel_24x24_32, e.Bounds.X + 20, e.Bounds.Y);
if (dataRow[11].ToString() != "1")
{
e.Graphics.DrawImage(OnDoc.Properties.Resources.Excel_24x24_32, e.Bounds.X + 20, e.Bounds.Y);
}
else
{
e.Graphics.DrawImage(OnDoc.Properties.Resources.Excel_Edit_24x24_32, e.Bounds.X + 20, e.Bounds.Y);
}
}
if (dataRow[0].ToString().Substring(0, 1).ToUpper() == "P")
{
@@ -597,6 +621,18 @@ namespace OnDoc.UICintrols
gd.Print_Doc(dok.dokument);
}
private void RibbonButtonTest1_Click(object sender, EventArgs e)
{
DOCGEN.DocGet dg = new DOCGEN.DocGet(AppParams.connectionstring);
clsdok doc = new clsdok("", "", "");
doc = GetDoc(false);
dg.Print_Doc(doc.dokument);
}
}
}