//得到专业信息
        public List <object> GetProfessionalInfo(string xueyuan)
        {
            System.Data.DataSet newinfo   = new System.Data.DataSet();
            Maticsoft.DAL.专业表   zhuanyeOp = new Maticsoft.DAL.专业表();

            newinfo = zhuanyeOp.GetList("学院='" + xueyuan + "'");
            //ProId',
            //             title: '专业编号'
            //         }, {
            //             field: 'ProName',
            //             title: '专业名称'

            var data = new List <object>();


            int length = newinfo.Tables["ds"].Rows.Count;

            for (int i = 0; i < length; i++)
            {
                data.Add(new { ProId = newinfo.Tables["ds"].Rows[i]["专业编号"], ProName = newinfo.Tables["ds"].Rows[i]["专业"] });
            }

            return(data);
        }
Beispiel #2
0
 /// <summary>
 /// 获得数据列表
 /// </summary>
 public DataSet GetList(string strWhere)
 {
     return(dal.GetList(strWhere));
 }