/// <summary>
        /// 获得数据列表
        /// </summary>
        public List <HM.Model.Eq.Tb_EQ_TaskEquipmentLine> DataTableToList(DataTable dt)
        {
            List <HM.Model.Eq.Tb_EQ_TaskEquipmentLine> modelList = new List <HM.Model.Eq.Tb_EQ_TaskEquipmentLine>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                HM.Model.Eq.Tb_EQ_TaskEquipmentLine model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model             = new HM.Model.Eq.Tb_EQ_TaskEquipmentLine();
                    model.TaskLineId  = dt.Rows[n]["TaskLineId"].ToString();
                    model.TaskId      = dt.Rows[n]["TaskId"].ToString();
                    model.StanId      = dt.Rows[n]["StanId"].ToString();
                    model.DetailId    = dt.Rows[n]["DetailId"].ToString();
                    model.EquiId      = dt.Rows[n]["EquiId"].ToString();
                    model.PollingNote = dt.Rows[n]["PollingNote"].ToString();
                    model.ChooseValue = dt.Rows[n]["ChooseValue"].ToString();
                    if (dt.Rows[n]["NumValue"].ToString() != "")
                    {
                        model.NumValue = decimal.Parse(dt.Rows[n]["NumValue"].ToString());
                    }
                    model.TextValue = dt.Rows[n]["TextValue"].ToString();
                    if (dt.Rows[n]["IsDelete"].ToString() != "")
                    {
                        model.IsDelete = int.Parse(dt.Rows[n]["IsDelete"].ToString());
                    }
                    if (dt.Rows[n]["AddDate"].ToString() != "")
                    {
                        model.AddDate = DateTime.Parse(dt.Rows[n]["AddDate"].ToString());
                    }
                    model.AddPId = dt.Rows[n]["AddPId"].ToString();
                    if (dt.Rows[n]["Sort"].ToString() != "")
                    {
                        model.Sort = int.Parse(dt.Rows[n]["Sort"].ToString());
                    }
                    model.ReferenceValue = dt.Rows[n]["ReferenceValue"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(HM.Model.Eq.Tb_EQ_TaskEquipmentLine model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(HM.Model.Eq.Tb_EQ_TaskEquipmentLine model)
 {
     dal.Add(model);
 }