/// </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.Op.EntityContractBBRentalDetail entity = new project.Entity.Op.EntityContractBBRentalDetail(); entity.RowPointer = dr["RowPointer"].ToString(); entity.RefRP = dr["RefRP"].ToString(); entity.SRVNo = dr["SRVNo"].ToString(); entity.SRVName = dr["SRVName"].ToString(); entity.BBNo = dr["BBNo"].ToString(); entity.BBName = dr["BBName"].ToString(); entity.BBSize = dr["BBSize"].ToString(); entity.BBAddr = dr["BBAddr"].ToString(); entity.BBStartDate = ParseDateTimeForString(dr["BBStartDate"].ToString()); entity.BBEndDate = ParseDateTimeForString(dr["BBEndDate"].ToString()); entity.TimeUnit = dr["TimeUnit"].ToString(); entity.BBRentalMonths = ParseIntForString(dr["BBRentalMonths"].ToString()); entity.RentalUnitPrice = ParseDecimalForString(dr["RentalUnitPrice"].ToString()); entity.RentalAmount = ParseDecimalForString(dr["RentalAmount"].ToString()); entity.Remark = dr["Remark"].ToString(); entity.Creator = dr["Creator"].ToString(); entity.CreateDate = ParseDateTimeForString(dr["CreateDate"].ToString()); entity.LastReviser = dr["LastReviser"].ToString(); entity.LastReviseDate = ParseDateTimeForString(dr["LastReviseDate"].ToString()); result.Add(entity); } return(result); }
/// <summary> /// 带参数的构函数 /// </summary> /// <param name="entity">实体类</param> public BusinessContractBBRentalDetail(project.Entity.Op.EntityContractBBRentalDetail entity) { this._entity = entity; }