update 20260303
This commit is contained in:
@@ -1434,6 +1434,7 @@ namespace OnDoc.UICintrols
|
||||
//e.DisplayText = e.DisplayText.ToString("dd.MM.yyyy hh:mm:ss");
|
||||
//int i = 0;
|
||||
}
|
||||
|
||||
if (e.Column.MappingName == "Termin")
|
||||
{
|
||||
var dataRow = (e.DataRow.RowData as DataRowView).Row;
|
||||
@@ -1442,6 +1443,28 @@ namespace OnDoc.UICintrols
|
||||
e.DisplayText = "";
|
||||
}
|
||||
}
|
||||
|
||||
if (e.Column.MappingName == "vs")
|
||||
{
|
||||
e.Column.CellStyle.HorizontalAlignment = HorizontalAlignment.Center;
|
||||
e.Handled = true;
|
||||
var selectedItem = e.DataRow;
|
||||
var dataRow = (e.DataRow.RowData as DataRowView).Row;
|
||||
if (Convert.ToInt32(dataRow["vs"]) == 1)
|
||||
{
|
||||
e.Graphics.DrawImage(OnDoc.Properties.Resources.one_24x24_32, e.Bounds.X + 20, e.Bounds.Y);
|
||||
}
|
||||
if (Convert.ToInt32(dataRow["vs"]) == 2)
|
||||
{
|
||||
e.Graphics.DrawImage(OnDoc.Properties.Resources.two_24x24_32, e.Bounds.X + 20, e.Bounds.Y);
|
||||
}
|
||||
Pen borderPen = new Pen(Color.LightGray);
|
||||
e.Graphics.DrawLine(borderPen, e.Bounds.Right, e.Bounds.Top, e.Bounds.Right, e.Bounds.Bottom);
|
||||
e.Graphics.DrawLine(borderPen, e.Bounds.Left, e.Bounds.Bottom, e.Bounds.Right, e.Bounds.Bottom);
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
if (e.Column.MappingName == "fileext")
|
||||
{
|
||||
try
|
||||
@@ -1537,6 +1560,7 @@ namespace OnDoc.UICintrols
|
||||
|
||||
catch { }
|
||||
}
|
||||
|
||||
|
||||
//e.Graphics.DrawImage(Image.FromFile(@"../../US.jpg"), e.Bounds.X + 20, e.Bounds.Y);
|
||||
Pen borderPen = new Pen(Color.LightGray);
|
||||
|
||||
Reference in New Issue
Block a user