/// </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.EntityAutoAllocation entity = new project.Entity.Base.EntityAutoAllocation(); entity.RowPointer = dr["RowPointer"].ToString(); entity.AccID = dr["AccID"].ToString(); entity.OrderType = dr["OrderType"].ToString(); entity.RegionNo = dr["RegionNo"].ToString(); entity.DeptNo = dr["DeptNo"].ToString(); entity.UserNo = dr["UserNo"].ToString(); entity.UserName = dr["UserName"].ToString(); result.Add(entity); } return(result); }
/// <summary> /// 带参数的构函数 /// </summary> /// <param name="entity">实体类</param> public BusinessAutoAllocation(project.Entity.Base.EntityAutoAllocation entity) { this._entity = entity; }