Object/DataSet Relational Mapping(对象/数据集…
2008-02-22 09:40:18来源:互联网 阅读 ()
IList list = SourceRow.ItemArray;
object[] tObj = new object[SourceRow.Table.Columns.Count];
for (int i = 0; i < SourceRow.Table.Columns.Count; i )
{
tObj[SourceRow.Table.Columns.IndexOf(SourceRow.Table.Columns[i].ColumnName)] = SourceRow.Table.Columns[i].ColumnName;
}
for (int x = 0; x < list.Count; x )
{
hTable.Add(tObj[x].ToString(), list[x]);
}
return hTable;
}
}
5. PageBase.cs
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Reflection;
using System.Text;
using System.Collections;
//namespace可要可不要
//namespace Framework.Web.UIProcess
//{
/// <summary>
/// PageBase 的摘要说明
/// </summary>
/// <summary>
/// 页面层(表示层)基类,所有页面继承该页面
/// </summary>
public class PageBase : System.Web.UI.Page
{
#region 整个系统存在部分
private string _baseselect;
/// <summary>
/// 查询字段
/// </summary>
protected string baseselect
{
get
{
// TODO: 添加 BaseRule.OperationCode getter 实现
return _baseselect;
}
set
{
// TODO: 添加 BaseRule.OperationCode setter 实现
_baseselect = value;
}
}
/// <summary>
/// 基类哈希表,在整个系统中存在
/// </summary>
protected Hashtable baseHashtable = new Hashtable();
/// <summary>
/// 界面哈希表,获取UI工厂获取的控件和控件值
/// </summary>
protected Hashtable UIhashtable = new Hashtable();
/// <summary>
/// 出错提示,默认值""
/// </summary>
protected string errMsg = "";
/// <summary>
/// 出错状态,默认值false
/// </summary>
protected bool errState = false;
/// <summary>
/// 私有变量_UISet
/// </summary>
private DataSet _UISet = new DataSet();
/// <summary>
/// 界面层数据集
/// </summary>
protected DataSet UISet
{
get
{
// TODO: 添加 BaseRule.OperationCode getter 实现
return _UISet;
}
set
{
// TODO: 添加 BaseRule.OperationCode setter 实现
_UISet = value;
}
}
private DataTable _UITable = new DataTable();
/// <summary>
/// 界面层数据表
/// </summary>
protected DataTable UITable
{
get
{
// TODO: 添加 BaseRule.OperationCode getter 实现
return _UITable;
}
set
{
// TODO: 添加 BaseRule.OperationCode setter 实现
_UITable = value;
}
}
private string _pageTitle = "";
/// <summary>
/// 页面标题
/// </summary>
protected string pageTitle
{
get
{
// TODO: 添加 BaseRule.OperationCode getter 实现
return _pageTitle;
}
set
{
// TODO: 添加 BaseRule.OperationCode setter 实现
_pageTitle = value;
}
}
#endregion
#region 查询页面存在部分
/// <summary>
/// List页面基类哈希表
/// </summary>
protected Hashtable baseListHashtable = new Hashtable();
/// <summary>
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash
