/// </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.EntityBillboard entity = new project.Entity.Base.EntityBillboard(); entity.BBNo = dr["BBNo"].ToString(); entity.BBName = dr["BBName"].ToString(); entity.BBSPNo = dr["BBSPNo"].ToString(); entity.BBSPName = dr["SPName"].ToString(); entity.BBLOCNo = dr["BBLOCNo"].ToString(); entity.BBLOCName = dr["BBLOCName"].ToString(); entity.BBAddr = dr["BBAddr"].ToString(); entity.BBSize = dr["BBSize"].ToString(); entity.BBType = dr["BBType"].ToString(); entity.BBTypeName = dr["BBTypeName"].ToString(); entity.BBINPriceDay = ParseDecimalForString(dr["BBINPriceDay"].ToString()); entity.BBOUTPriceDay = ParseDecimalForString(dr["BBOUTPriceDay"].ToString()); entity.BBINPriceMonth = ParseDecimalForString(dr["BBINPriceMonth"].ToString()); entity.BBOUTPriceMonth = ParseDecimalForString(dr["BBOUTPriceMonth"].ToString()); entity.BBINPriceQuarter = ParseDecimalForString(dr["BBINPriceQuarter"].ToString()); entity.BBOUTPriceQuarter = ParseDecimalForString(dr["BBOUTPriceQuarter"].ToString()); entity.BBINPriceYear = ParseDecimalForString(dr["BBINPriceYear"].ToString()); entity.BBOUTPriceYear = ParseDecimalForString(dr["BBOUTPriceYear"].ToString()); entity.BBDeposit = ParseDecimalForString(dr["BBDeposit"].ToString()); entity.BBImage = dr["BBImage"].ToString(); entity.BBISEnable = bool.Parse(dr["BBISEnable"].ToString()); entity.BBCurrentCustNo = dr["BBCurrentCustNo"].ToString(); entity.BBCurrentCustName = dr["BBCurrentCustName"].ToString(); entity.BBStatus = dr["BBStatus"].ToString(); entity.BBCreateDate = ParseDateTimeForString(dr["BBCreateDate"].ToString()); entity.BBCreator = dr["BBCreator"].ToString(); result.Add(entity); } return(result); }
/// <summary> /// 带参数的构函数 /// </summary> /// <param name="entity">实体类</param> public BusinessBillboard(project.Entity.Base.EntityBillboard entity) { this._entity = entity; }