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

            if (rowsCount > 0)
            {
                university.Model.CCOM.Admin_agency model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new university.Model.CCOM.Admin_agency();
                    if (dt.Rows[n]["Aa_id"].ToString() != "")
                    {
                        model.Aa_id = int.Parse(dt.Rows[n]["Aa_id"].ToString());
                    }
                    if (dt.Rows[n]["User_id"].ToString() != "")
                    {
                        model.User_id = long.Parse(dt.Rows[n]["User_id"].ToString());
                    }
                    if (dt.Rows[n]["Agency_id"].ToString() != "")
                    {
                        model.Agency_id = int.Parse(dt.Rows[n]["Agency_id"].ToString());
                    }


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