SVN r1006
SVN-Revision: r1006
This commit is contained in:
@@ -870,7 +870,7 @@ namespace Lskj.Control
|
|||||||
|
|
||||||
if (string.IsNullOrEmpty(model.DataFormat))
|
if (string.IsNullOrEmpty(model.DataFormat))
|
||||||
{
|
{
|
||||||
result = Math.Round(Convert.ToDouble(2), model.Decimals, MidpointRounding.AwayFromZero) + "";
|
result = Math.Round(Convert.ToDouble(result), model.Decimals, MidpointRounding.AwayFromZero) + "";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -9772,41 +9772,4 @@ namespace Lskj.Control
|
|||||||
return Rectangle.Empty;
|
return Rectangle.Empty;
|
||||||
|
|
||||||
// 转换为网格控件内的坐标(关键修正)
|
// 转换为网格控件内的坐标(关键修正)
|
||||||
Point cellLocation = view.GridControl.PointToClient(
|
|
||||||
viewInfo.GridControl.PointToScreen(cellInfo.Bounds.Location)
|
|
||||||
);
|
|
||||||
|
|
||||||
return new Rectangle(
|
|
||||||
cellLocation.X,
|
|
||||||
cellLocation.Y,
|
|
||||||
cellInfo.Bounds.Width,
|
|
||||||
cellInfo.Bounds.Height
|
|
||||||
);
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
|
||||||
return Rectangle.Empty;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 计算按钮起始X坐标(支持左右对齐)
|
|
||||||
private int GetButtonStartX(int cellWidth, int totalButtonsWidth, bool isLeftAligned)
|
|
||||||
{
|
|
||||||
if (isLeftAligned)
|
|
||||||
{
|
|
||||||
// 靠左对齐:从单元格左侧开始
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// 靠右对齐:从右侧减去总宽度
|
|
||||||
return cellWidth - totalButtonsWidth;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user