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

            if (rowsCount > 0)
            {
                CLDC_Dispatcher.Model.DSPTCH_CUR_SCHEME model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new CLDC_Dispatcher.Model.DSPTCH_CUR_SCHEME();
                    model.FK_DEVICE_MADE_NO = dt.Rows[n]["FK_DEVICE_MADE_NO"].ToString();
                    model.AVR_SCHEME_ID     = dt.Rows[n]["AVR_SCHEME_ID"].ToString();


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