Ejemplo n.º 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.Base.EntityWorkPlace entity = new project.Entity.Base.EntityWorkPlace();
         entity.WPNo         = dr["WPNo"].ToString();
         entity.WPType       = dr["WPType"].ToString();
         entity.WPSeat       = ParseIntForString(dr["WPSeat"].ToString());
         entity.WPSeatPrice  = ParseDecimalForString(dr["WPSeatPrice"].ToString());
         entity.WPLOCNo1     = dr["WPLOCNo1"].ToString();
         entity.WPLOCNo1Name = dr["WPLOCNo1Name"].ToString();
         entity.WPLOCNo2     = dr["WPLOCNo2"].ToString();
         entity.WPLOCNo2Name = dr["WPLOCNo2Name"].ToString();
         entity.WPLOCNo3     = dr["WPLOCNo3"].ToString();
         entity.WPLOCNo3Name = dr["WPLOCNo3Name"].ToString();
         entity.WPLOCNo4     = dr["WPLOCNo4"].ToString();
         entity.WPLOCNo4Name = dr["WPLOCNo4Name"].ToString();
         entity.WPRMID       = dr["WPRMID"].ToString();
         entity.WPProject    = dr["WPProject"].ToString();
         entity.WPAddr       = dr["WPAddr"].ToString();
         entity.WPStatus     = dr["WPStatus"].ToString();
         entity.WPISEnable   = bool.Parse(dr["WPISEnable"].ToString());
         entity.WPCreateDate = ParseDateTimeForString(dr["WPCreateDate"].ToString());
         entity.WPCreator    = dr["WPCreator"].ToString();
         result.Add(entity);
     }
     return(result);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 带参数的构函数
 /// </summary>
 /// <param name="entity">实体类</param>
 public BusinessWorkPlace(project.Entity.Base.EntityWorkPlace entity)
 {
     this._entity = entity;
 }