uupdate 20240829
This commit is contained in:
@@ -82,6 +82,7 @@ namespace OnDoc.UICintrols
|
||||
{
|
||||
tsrbvorschau.SelectedIndex = 0;
|
||||
sfDataGrid1.AllowDraggingColumns = true;
|
||||
//Refresh_Bewilligungen();
|
||||
|
||||
}
|
||||
|
||||
@@ -138,6 +139,7 @@ namespace OnDoc.UICintrols
|
||||
|
||||
//this.sfDataGrid1.DataSource = dokumente;
|
||||
sfDataGrid1.View.AutoExpandGroups = true;
|
||||
this.timer1.Enabled = true;
|
||||
}
|
||||
|
||||
public void refresh_dokumente_filtered()
|
||||
@@ -763,6 +765,7 @@ namespace OnDoc.UICintrols
|
||||
|
||||
private void ribbonButtonApproval_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.lblToApprove.Text=="") { MessageBox.Show("Es sind keine Bewilligungen ausstehend.", "Bewilligung", MessageBoxButtons.OK, MessageBoxIcon.Information);return; }
|
||||
frmBewilligung bw = new frmBewilligung();
|
||||
bw.Show();
|
||||
}
|
||||
@@ -770,7 +773,39 @@ namespace OnDoc.UICintrols
|
||||
private void ribbonButtonToApproval_Click(object sender, EventArgs e)
|
||||
{
|
||||
frmToApproval fa = new frmToApproval();
|
||||
fa.dokumentid=selected_dokumentid;
|
||||
fa.ShowDialog();
|
||||
}
|
||||
|
||||
private void Refresh_Bewilligungen()
|
||||
{
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
db.Get_Tabledata("Select count(*) from view_relaunch_offene_Bewilligungen where mitarbeiter_bewilligung=" + AppParams.CurrentMitarbieter.ToString(), false, true);
|
||||
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][0]) == 0)
|
||||
{
|
||||
this.lblToApprove.Text = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.lblToApprove.Text = db.dsdaten.Tables[0].Rows[0][0].ToString();
|
||||
}
|
||||
db = null;
|
||||
}
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
Refresh_Bewilligungen();
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void ribbonButtonRefresh_Bewilligungen_Click(object sender, EventArgs e)
|
||||
{
|
||||
Refresh_Bewilligungen();
|
||||
}
|
||||
|
||||
private void ribbon2_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user