/// </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.EntityWorkOrder entity = new project.Entity.Order.EntityWorkOrder();
         entity.InnerEntityOID = dr["RowPointer"].ToString();
         entity.AccID          = dr["AccID"].ToString();
         entity.OrderNo        = dr["OrderNo"].ToString();
         entity.OrderName      = dr["OrderName"].ToString();
         entity.OrderDate      = ParseDateTimeForString(dr["OrderDate"].ToString());
         entity.OrderType      = dr["OrderType"].ToString();
         entity.Status         = dr["Status"].ToString();
         entity.SaleNo         = dr["SaleNo"].ToString();
         entity.AlloDept       = dr["AlloDept"].ToString();
         entity.AlloUser       = dr["AlloUser"].ToString();
         entity.CustNo         = dr["CustNo"].ToString();
         entity.LinkMan        = dr["LinkMan"].ToString();
         entity.LinkTel        = dr["LinkTel"].ToString();
         entity.Region         = dr["Region"].ToString();
         _entity.Addr          = dr["Addr"].ToString();
         entity.Remark         = dr["Remark"].ToString();
         entity.CreateTime     = ParseDateTimeForString(dr["CreateTime"].ToString());
         entity.CustneedTime   = ParseDateTimeForString(dr["CustneedTime"].ToString());
         entity.ResponseTime   = ParseDateTimeForString(dr["ResponseTime"].ToString());
         entity.AppoIntTime    = ParseDateTimeForString(dr["AppoIntTime"].ToString());
         entity.SignTime       = ParseDateTimeForString(dr["SignTime"].ToString());
         entity.WorkTime       = ParseDateTimeForString(dr["WorkTime"].ToString());
         entity.FinishTime     = ParseDateTimeForString(dr["FinishTime"].ToString());
         entity.CloseTime      = ParseDateTimeForString(dr["CloseTime"].ToString());
         entity.ConfirmTime    = ParseDateTimeForString(dr["ConfirmTime"].ToString());
         entity.CreateUser     = dr["CreateUser"].ToString();
         entity.UpdateDate     = ParseDateTimeForString(dr["UpdateDate"].ToString());
         entity.UpdateUser     = dr["UpdateUser"].ToString();
         entity.IsHangUp       = bool.Parse(dr["IsHangUp"].ToString());
         entity.HangUpDate     = ParseDateTimeForString(dr["HangUpDate"].ToString());
         entity.HangUpReason   = dr["HangUpReason"].ToString();
         entity.IsApply        = bool.Parse(dr["IsApply"].ToString());
         entity.ApplyDate      = ParseDateTimeForString(dr["ApplyDate"].ToString());
         entity.ApplyReason    = dr["ApplyReason"].ToString();
         entity.IsBack         = bool.Parse(dr["IsBack"].ToString());
         entity.BackDate       = ParseDateTimeForString(dr["BackDate"].ToString());
         entity.BackReason     = dr["BackReason"].ToString();
         entity.IsDel          = bool.Parse(dr["IsDel"].ToString());
         entity.DONo           = dr["DONo"].ToString();
         result.Add(entity);
     }
     return(result);
 }
 /// <summary>
 /// 带参数的构函数
 /// </summary>
 /// <param name="entity">实体类</param>
 public BusinessWorkOrder(project.Entity.Order.EntityWorkOrder entity)
 {
     this._entity = entity;
 }