/// </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.Base.EntityCustInfo entity = new project.Entity.Base.EntityCustInfo(); entity.InnerEntityOID = dr["RowPointer"].ToString(); entity.AccID = dr["AccID"].ToString(); entity.CustNo = dr["CustNo"].ToString(); entity.CustName = dr["CustName"].ToString(); entity.CustType = dr["CustType"].ToString(); entity.Contact = dr["Contact"].ToString(); entity.Tel = dr["Tel"].ToString(); entity.Addr = dr["Addr"].ToString(); entity.Website = dr["Website"].ToString(); entity.Remark = dr["Remark"].ToString(); entity.RegDate = ParseDateTimeForString(dr["RegDate"].ToString()); entity.Valid = bool.Parse(dr["Valid"].ToString()); result.Add(entity); } return(result); }
/// <summary> /// 带参数的构函数 /// </summary> /// <param name="entity">实体类</param> public BusinessCustInfo(project.Entity.Base.EntityCustInfo entity) { this._entity = entity; }