update 20241210
This commit is contained in:
@@ -44,10 +44,28 @@ namespace OnDoc.UIControls
|
||||
db.add_parameter("@dokumentid", dokumentid);
|
||||
db.Get_Tabledata("sp_ondoc_get_dokumentdetails", true, false);
|
||||
this.sfDataGrid1.DataSource = db.dsdaten.Tables[0];
|
||||
db = null;
|
||||
|
||||
sfDataGrid1.Columns[0].Width = 120;
|
||||
sfDataGrid1.Columns[1].Width = 170;
|
||||
|
||||
|
||||
db.Get_Tabledata("Select * from dokumentbewilligung where aktiv=1 and dokumentid='" + dokumentid + "'", false, true);
|
||||
if (db.dsdaten.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
this.grppruefung.Height = this.Height = 150;
|
||||
sfdatagridpruefung.DataSource=db.dsdaten.Tables[0];
|
||||
for (int i = 3; i < sfdatagridpruefung.ColumnCount; i++)
|
||||
{
|
||||
sfdatagridpruefung.Columns[i].Visible = false;
|
||||
}
|
||||
sfdatagridpruefung.Columns[2].Width = 80;
|
||||
sfdatagridpruefung.Columns[1].Width = 80;
|
||||
sfdatagridpruefung.Columns[0].Width = sfdatagridpruefung.Width - 170;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.grppruefung.Height = 0;
|
||||
}
|
||||
db = null;
|
||||
}
|
||||
|
||||
private void sfDataGrid1_KeyUp(object sender, KeyEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user