Update 20240723
This commit is contained in:
@@ -14,6 +14,7 @@ using Syncfusion.WinForms.Controls;
|
||||
using Syncfusion.WinForms.DataGrid;
|
||||
using Syncfusion.WinForms.DataGrid.Interactivity;
|
||||
using Database;
|
||||
using OnDoc.UIControls;
|
||||
|
||||
namespace OnDoc.DocMgmt
|
||||
{
|
||||
@@ -113,6 +114,21 @@ namespace OnDoc.DocMgmt
|
||||
db = null;
|
||||
}
|
||||
PnlPreview.Visible = true;
|
||||
PnlPreview.Dock = DockStyle.Fill;
|
||||
|
||||
Database.DB db1 = new Database.DB(AppParams.connectionstring);
|
||||
db1.Get_Tabledata("Select coldstatus from dokument where dokumentid='"+dokumentid+"'",false,true);
|
||||
if (Convert.ToInt32(db1.dsdaten.Tables[0].Rows[0][0]) == 1)
|
||||
{
|
||||
button4.Enabled = false;
|
||||
button5.Enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
button4.Enabled = true;
|
||||
button5.Enabled = true;
|
||||
}
|
||||
|
||||
docPreview1.Show_Doc(dokumentid);
|
||||
docPreview1.Hide_Editbuttons();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user