Exemple #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.Op.EntityContractAirConditionFee entity = new project.Entity.Op.EntityContractAirConditionFee();
         entity.RowPointer     = dr["RowPointer"].ToString();
         entity.RefRP          = dr["RefRP"].ToString();
         entity.RMID           = dr["RMID"].ToString();
         entity.RMArea         = ParseDecimalForString(dr["RMArea"].ToString());
         entity.UnitPrice      = ParseDecimalForString(dr["UnitPrice"].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);
 }
Exemple #2
0
 /// <summary>
 /// 带参数的构函数
 /// </summary>
 /// <param name="entity">实体类</param>
 public BusinessContractAirConditionFee(project.Entity.Op.EntityContractAirConditionFee entity)
 {
     this._entity = entity;
 }