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

            if (rowsCount > 0)
            {
                DigiPower.Onlinecol.Standard.Model.T_Search_Field_MDL model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new DigiPower.Onlinecol.Standard.Model.T_Search_Field_MDL();
                    if (dt.Rows[n]["Search_Field_ID"].ToString() != "")
                    {
                        model.Search_Field_ID = int.Parse(dt.Rows[n]["Search_Field_ID"].ToString());
                    }
                    model.ReportCode  = dt.Rows[n]["ReportCode"].ToString();
                    model.TableName   = dt.Rows[n]["TableName"].ToString();
                    model.TableNameCN = dt.Rows[n]["TableNameCN"].ToString();
                    model.LabelName   = dt.Rows[n]["LabelName"].ToString();
                    model.FieldName   = dt.Rows[n]["FieldName"].ToString();
                    if (dt.Rows[n]["Line"].ToString() != "")
                    {
                        model.Line = int.Parse(dt.Rows[n]["Line"].ToString());
                    }
                    if (dt.Rows[n]["OrderId"].ToString() != "")
                    {
                        model.OrderId = int.Parse(dt.Rows[n]["OrderId"].ToString());
                    }
                    if (dt.Rows[n]["IsDictionary"].ToString() != "")
                    {
                        model.IsDictionary = int.Parse(dt.Rows[n]["IsDictionary"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(DigiPower.Onlinecol.Standard.Model.T_Search_Field_MDL model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(DigiPower.Onlinecol.Standard.Model.T_Search_Field_MDL model)
 {
     return(dal.Add(model));
 }