//显示首页进入模块 根据type查询 public DataTable ShowEnter(int type) { DataTable dt = new DataTable(); string sql = "select * from Entrance where type=@type"; SqlParameter[] sps = { new SqlParameter("@type", type), }; dt = SqlHelper.ExeDataTable(sql, sps); return(dt); }