Update 20240723
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user