提交当前本机整理版本

This commit is contained in:
cyf
2026-07-02 10:11:39 +00:00
parent c10a5d64c7
commit aacefa24f8
822 changed files with 196665 additions and 14263 deletions
+40 -1
View File
@@ -6818,4 +6818,43 @@ namespace Lskj.PubBillSpecial
if (rightEdge > maxRightEdge)
{
maxRightEdge = rightEdge;
}
}
}
}
if (minLeft == int.MaxValue) minLeft = 0;
int MovingDistance = (Screen.PrimaryScreen.WorkingArea.Width - maxRightEdge) / 2;
if (dataTable.Columns.Contains("controlLeft") && MovingDistance > 0)
{
foreach (DataRow item in dataTable.Rows)
{
item["controlLeft"] = int.Parse(item["controlLeft"] + "") + MovingDistance - minLeft;
}
}
return dataTable;
}
/// <summary>
/// 判断是不是数值
/// </summary>
/// <param name="oText"></param>
/// <returns></returns>
private bool IsNumberic(string oText)
{
try
{
int var1 = Convert.ToInt32(oText);
return true;
}
catch
{
return false;
}
}
}
}