Exemplo n.º 1
0
        /// <summary>
        /// 返回分组列表
        /// </summary>
        /// <param name="str_msg"></param>
        /// <returns></returns>
        public List <TeamModel> GetTeamModel(out string str_msg)
        {
            List <TeamModel> arr_Group = new List <TeamModel>();
            DataSet          _DataSet  = new DataSet();

            if (_con.ConInit(out str_msg) && _con.SelTeam(out str_msg, ref _DataSet))
            {
                DataTable _table = _DataSet.Tables[0];
                for (int i = 0; i < _table.Rows.Count; i++)
                {
                    TeamModel _TeamModel = new TeamModel();
                    _TeamModel.Teamid     = int.Parse(_table.Rows[i]["Teamid"] + "");
                    _TeamModel.TeamName   = _table.Rows[i]["TeamName"] + "";
                    _TeamModel.Desciption = _table.Rows[i]["Desciption"] + "";
                    _TeamModel.SeqID      = _table.Rows[i]["SeqID"] + "";
                    arr_Group.Add(_TeamModel);
                }
            }
            return(arr_Group);
        }