20250120
This commit is contained in:
@@ -205,7 +205,7 @@ namespace OnDoc.UICintrols
|
||||
}
|
||||
index = index + 1;
|
||||
}
|
||||
if (selindex>0) { ribbonCBAnsicht.SelectedIndex=selindex; }
|
||||
if (selindex>0) { ribbonCBAnsicht.SelectedIndex=selindex-1; }
|
||||
db = null;
|
||||
// if (standardview != "") { refresh_view(standardview); }
|
||||
if (standardview != null) { refresh_view(standardview); }
|
||||
@@ -376,6 +376,7 @@ namespace OnDoc.UICintrols
|
||||
private void sfDataGrid1_CellClick(object sender, Syncfusion.WinForms.DataGrid.Events.CellClickEventArgs e)
|
||||
{
|
||||
|
||||
//var rowColumnIndex = sfDataGrid1.TableControl.PointToCellRowColumnIndex(e.MouseEventArgs.Location);
|
||||
string documentid = "";
|
||||
try
|
||||
{
|
||||
@@ -391,6 +392,7 @@ namespace OnDoc.UICintrols
|
||||
selected_cellvalue = this.sfDataGrid1.View.GetPropertyAccessProvider().GetValue(e.DataRow.RowData, e.DataColumn.GridColumn.MappingName).ToString();
|
||||
|
||||
update_ansicht(dataRow["Bearbeitung_Zwingend"].ToString(), dataRow["toapprove"].ToString(), dataRow["approved"].ToString(), dataRow["faksimile"].ToString());
|
||||
sfDataGrid1.ContextMenuStrip = ctxMenuDokList;
|
||||
return;
|
||||
if (dokwerte1.Width > 0)
|
||||
{
|
||||
@@ -418,10 +420,9 @@ namespace OnDoc.UICintrols
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
selected_dokumentid = "";
|
||||
selected_partnernr = "";
|
||||
|
||||
sfDataGrid1.ContextMenuStrip = ctxMenuGroups;
|
||||
return;
|
||||
}
|
||||
if (vorschauposition == "Keine Vorschau") { return; }
|
||||
@@ -481,10 +482,11 @@ namespace OnDoc.UICintrols
|
||||
db.Get_Tabledata("Select * from dokument where dokumentid='" + selected_dokumentid + "'", false, true);
|
||||
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["verantwortlich"]) != AppParams.CurrentMitarbeiter)
|
||||
{
|
||||
if (MessageBox.Show("Durch die Bearbeitung wird die Dokument-Verantwortung übernommen.", "Dokumentbearbieutng", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
|
||||
if (MessageBox.Show("Durch die Bearbeitung wird die Dokument-Verantwortung übernommen.", "Dokumentbearbeiutng", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
|
||||
{
|
||||
db.Exec_SQL("Update dokument set verantwortlich=" + AppParams.CurrentMitarbeiter.ToString() + " where dokumentid='" + selected_dokumentid + "'");
|
||||
Logging.DocLog.Info("Verantwortung für Bearbeitung übernommen", "Doklist", selected_dokumentid, selected_partnernr, "Verantwortung übernommen");
|
||||
return;
|
||||
}
|
||||
}
|
||||
Logging.Logging.Debug("Vor Dok In Bearbeitung", "ondoc client", "");
|
||||
@@ -1723,7 +1725,10 @@ return;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
catch (Exception ex)
|
||||
{
|
||||
//MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void RibbonButtonViewStandard_Click(object sender, EventArgs e)
|
||||
@@ -1807,6 +1812,7 @@ return;
|
||||
}
|
||||
}
|
||||
db = null;
|
||||
ribbonCBAnsicht.SelectedIndex = 1;
|
||||
refresh_ansichten();
|
||||
}
|
||||
}
|
||||
@@ -1885,7 +1891,7 @@ return;
|
||||
RibbonButtonAttributeEinAusblenden.Checked = true;
|
||||
}
|
||||
show_hide_attribute();
|
||||
update_currentview();
|
||||
update_currentview();
|
||||
}
|
||||
//if (dokwerte1.Width == 0)
|
||||
//{
|
||||
@@ -2212,6 +2218,54 @@ return;
|
||||
{
|
||||
this.profilnr = Convert.ToInt32(RibbonCBProfil.SelectedItem.Tag);
|
||||
}
|
||||
|
||||
private void ctxMenuDokList_Opening(object sender, CancelEventArgs e)
|
||||
{
|
||||
|
||||
|
||||
if (this.sfDataGrid1.GroupColumnDescriptions.Count > 0)
|
||||
{
|
||||
gruppenÖffnenToolStripMenuItem.Visible = true;
|
||||
gruppenSchliessenToolStripMenuItem.Visible = true;
|
||||
toolStripMenuItem3.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
gruppenÖffnenToolStripMenuItem.Visible = false;
|
||||
gruppenSchliessenToolStripMenuItem.Visible = false;
|
||||
toolStripMenuItem3.Visible = false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
//var location = this.PointToClient(Cursor.Position);
|
||||
////System.Drawing.Point location = new System.Drawing.Point();
|
||||
// //location.X = Cursor.Position.X;
|
||||
// //location.Y = Cursor.Position.Y;
|
||||
//MessageBox.Show(location.X.ToString() + " / " + location.Y.ToString());
|
||||
}
|
||||
|
||||
private void gruppenÖffnenToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.sfDataGrid1.ExpandAllGroup();
|
||||
}
|
||||
|
||||
private void gruppenSchliessenToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.sfDataGrid1.CollapseAllGroup();
|
||||
}
|
||||
|
||||
private void gruppenÖffnenToolStripMenuItem1_Click(object sender, EventArgs e)
|
||||
{
|
||||
gruppenÖffnenToolStripMenuItem_Click(sender, e);
|
||||
}
|
||||
|
||||
private void gruppenSchliessenToolStripMenuItem1_Click(object sender, EventArgs e)
|
||||
{
|
||||
gruppenSchliessenToolStripMenuItem_Click(sender, e);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user