コード例 #1
0
        /// </summary>
        ///Query 方法 dt查询结果
        /// </summary>
        public System.Collections.IList Query(System.Data.DataTable dt)
        {
            System.Collections.IList result = new System.Collections.ArrayList();
            foreach (System.Data.DataRow dr in dt.Rows)
            {
                project.Entity.Sys.EntityAccInfo entity = new project.Entity.Sys.EntityAccInfo();

                entity.InnerEntityOID = dr["RowPointer"].ToString();
                entity.AccID          = dr["AccID"].ToString();
                entity.AccName        = dr["AccName"].ToString();
                entity.AccBrfName     = dr["AccBrfName"].ToString();
                entity.Addr           = dr["Addr"].ToString();
                entity.Tel            = dr["Tel"].ToString();
                entity.Fax            = dr["Fax"].ToString();
                entity.Website        = dr["Website"].ToString();
                entity.Contact        = dr["Contact"].ToString();
                entity.ContactTel     = dr["ContactTel"].ToString();
                entity.Pic            = dr["Pic"].ToString();
                entity.Remark         = dr["Remark"].ToString();
                entity.UserCount      = ParseIntForString(dr["UserCount"].ToString());
                entity.RegDate        = ParseDateTimeForString(dr["RegDate"].ToString());
                entity.LimitedDate    = ParseDateTimeForString(dr["LimitedDate"].ToString());
                result.Add(entity);
            }
            return(result);
        }
コード例 #2
0
 /// <summary>
 /// 带参数的构函数
 /// </summary>
 /// <param name="entity">实体类</param>
 public BusinessAccInfo(project.Entity.Sys.EntityAccInfo entity)
 {
     this._entity = entity;
 }