You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HuizhongLibrary
{
#region JavaDataTable用于JavaScript对象交互
public class JavaDataTable
{
public JavaDataTableColumns Columns { get; set; }
public JavaDataTableRows Rows { get; set; }
public JavaDataTable()
{
Columns = new JavaDataTableColumns();
Rows = new JavaDataTableRows();
}
}
public class JavaDataTableColumn
{
public string ColumnName { get; set; }
}
public class JavaDataTableColumns : List<JavaDataTableColumn>
{
public int IndexOf(string ColumnName)
{
foreach (var item in this)
{
if (item.ColumnName == ColumnName) return this.IndexOf(item);
}
return -1;
}
}
public class JavaDataTableRow
{
public List<object> ItemArray { get; set; }
public JavaDataTableRow()
{
ItemArray = new List<object>();
}
}
public class JavaDataTableRows : List<JavaDataTableRow>
{
}
#endregion
}