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 { 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 ItemArray { get; set; } public JavaDataTableRow() { ItemArray = new List(); } } public class JavaDataTableRows : List { } #endregion }