/// </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.Order.EntityWorkOrderCostDetail entity = new project.Entity.Order.EntityWorkOrderCostDetail();
         entity.InnerEntityOID = dr["RowPointer"].ToString();
         entity.AccID          = dr["AccID"].ToString();
         entity.CostNo         = dr["CostNo"].ToString();
         entity.OrderNo        = dr["OrderNo"].ToString();
         entity.CostType       = dr["CostType"].ToString();
         entity.Context        = dr["Context"].ToString();
         entity.CostDate       = ParseDateTimeForString(dr["CostDate"].ToString());
         entity.CostAmount     = ParseDecimalForString(dr["CostAmount"].ToString());
         entity.UserNo         = dr["UserNo"].ToString();
         entity.CreateDate     = ParseDateTimeForString(dr["CreateDate"].ToString());
         entity.CreateUser     = dr["CreateUser"].ToString();
         entity.UpdateDate     = ParseDateTimeForString(dr["UpdateDate"].ToString());
         entity.UpdateUser     = dr["UpdateUser"].ToString();
         result.Add(entity);
     }
     return(result);
 }
 /// <summary>
 /// 带参数的构函数
 /// </summary>
 /// <param name="entity">实体类</param>
 public BusinessWorkOrderCostDetail(project.Entity.Order.EntityWorkOrderCostDetail entity)
 {
     this._entity = entity;
 }