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

            if (rowsCount > 0)
            {
                Common.Model.MouldingDefectSetting_Model model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new Common.Model.MouldingDefectSetting_Model();
                    model.defectCodeID      = dt.Rows[n]["defectCodeID"].ToString();
                    model.defectCode        = dt.Rows[n]["defectCode"].ToString();
                    model.defectDescription = dt.Rows[n]["defectDescription"].ToString();
                    model.partNumber        = dt.Rows[n]["partNumber"].ToString();
                    model.model             = dt.Rows[n]["model"].ToString();
                    model.jigNo             = dt.Rows[n]["jigNo"].ToString();
                    model.machineID         = dt.Rows[n]["machineID"].ToString();
                    model.userName          = dt.Rows[n]["userName"].ToString();
                    if (dt.Rows[n]["dateTime"].ToString() != "")
                    {
                        model.dateTime = DateTime.Parse(dt.Rows[n]["dateTime"].ToString());
                    }
                    model.remarks = dt.Rows[n]["remarks"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
        //{
        //return dal.GetList(PageSize,PageIndex,strWhere);
        //}

        /// <summary>
        /// 获得前几行数据
        /// </summary>
        public Common.Model.MouldingDefectSetting_Model CopyObj(Common.Model.MouldingDefectSetting_Model objModel)
        {
            Common.Model.MouldingDefectSetting_Model model;
            model = new Common.Model.MouldingDefectSetting_Model();
            model.defectCodeID      = objModel.defectCodeID;
            model.defectCode        = objModel.defectCode;
            model.defectDescription = objModel.defectDescription;
            model.partNumber        = objModel.partNumber;
            model.model             = objModel.model;
            model.jigNo             = objModel.jigNo;
            model.machineID         = objModel.machineID;
            model.userName          = objModel.userName;
            model.dateTime          = objModel.dateTime;
            model.remarks           = objModel.remarks;
            return(model);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public SqlCommand UpdateCommand(Common.Model.MouldingDefectSetting_Model model)
 {
     return(dal.UpdateCommand(model));
 }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Common.Model.MouldingDefectSetting_Model model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(Common.Model.MouldingDefectSetting_Model model)
 {
     dal.Add(model);
 }