拆分函数
/// <summary>
/// 拆分DataTable
/// </summary>
private DataTable SplitDataTable(DataTable sourceTable)
{
if (sourceTable == null || sourceTable.Rows.Count == 0)
{
return sourceTable;
}
DataTable dataTable = sourceTable.Clone();
try
{
for (int i = 0; i < sourceTable.Rows.Count; i++)
{
dataTable.Rows.Add(sourceTable.Rows[i].ItemArray);
dataTable.Rows.Add(sourceTable.Rows[i].ItemArray);
}
for (int i = 0; i < dataTable.Rows.Count; i++)
{
bool isOdd = false;