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

            if (rowsCount > 0)
            {
                university.Model.CCOM.User_function_desktop model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new university.Model.CCOM.User_function_desktop();
                    if (dt.Rows[n]["Ufd_id"].ToString() != "")
                    {
                        model.Ufd_id = int.Parse(dt.Rows[n]["Ufd_id"].ToString());
                    }
                    if (dt.Rows[n]["Ufd_type"].ToString() != "")
                    {
                        model.Ufd_type = int.Parse(dt.Rows[n]["Ufd_type"].ToString());
                    }
                    if (dt.Rows[n]["Sf_id"].ToString() != "")
                    {
                        model.Sf_id = int.Parse(dt.Rows[n]["Sf_id"].ToString());
                    }
                    if (dt.Rows[n]["Ufd_sort"].ToString() != "")
                    {
                        model.Ufd_sort = int.Parse(dt.Rows[n]["Ufd_sort"].ToString());
                    }
                    model.Ufd_name     = dt.Rows[n]["Ufd_name"].ToString();
                    model.Ufd_showname = dt.Rows[n]["Ufd_showname"].ToString();
                    model.Ufd_icon     = dt.Rows[n]["Ufd_icon"].ToString();
                    model.Ufd_width    = dt.Rows[n]["Ufd_width"].ToString();
                    model.Ufd_color    = dt.Rows[n]["Ufd_color"].ToString();
                    model.Ufd_remark   = dt.Rows[n]["Ufd_remark"].ToString();


                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(university.Model.CCOM.User_function_desktop model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(university.Model.CCOM.User_function_desktop model)
 {
     return(dal.Add(model));
 }