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

            if (rowsCount > 0)
            {
                CLDC_Dispatcher.Model.DSPTCH_DIC_CHECK model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new CLDC_Dispatcher.Model.DSPTCH_DIC_CHECK();
                    model.AVR_CHECK_NO   = dt.Rows[n]["AVR_CHECK_NO"].ToString();
                    model.AVR_CHECK_NAME = dt.Rows[n]["AVR_CHECK_NAME"].ToString();
                    model.AVR_CHECK_TYPE = dt.Rows[n]["AVR_CHECK_TYPE"].ToString();
                    model.AVR_NEED_TIME  = dt.Rows[n]["AVR_NEED_TIME"].ToString();
                    model.FK_VIEW_NO     = dt.Rows[n]["FK_VIEW_NO"].ToString();


                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(CLDC_Dispatcher.Model.DSPTCH_DIC_CHECK model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void  Add(CLDC_Dispatcher.Model.DSPTCH_DIC_CHECK model)
 {
     dal.Add(model);
 }