﻿// JScript 文件
function DataTable2()
{
	this.Rows = new Array();
	this.NewRow=function()
	{
		return new Row();
	}
	this.Add = function(row)
	{
		if(!row instanceof Row) 
			throw new Error(-1,"Wrong parameter..");
		this.Rows[this.Rows.length] = row;
	}
}
function Row()
{
	this.Cells = new Array();
	this.ID=0
	this.Name=""
	this.SetID=function(id){this.ID=id}
	this.SetName=function(name){this.Name=name}
	this.Add = function(cell){this.Cells[this.Cells.length] = cell;}
	this.NewCell=function()
    {
        return new Cell()
    }
    this.Select=false;
	this.SetSelect=function(obj)
	{
	   this.Select=obj;
	}
	this.Url="";
	this.SetUrl=function(obj)
	{
	    this.SetUrl=obj
	}
}
function Cell()
{
	this.Text
	this.Value
	this.SetCell=function(text,value)
	{
	    this.Text=text;
	    this.Value=value;
	}
	this.Select=false;
	this.SetSelect=function(obj)
	{
	   this.Select=obj;
	}
}
