Beispiel #1
0
        /// <summary>获得数据列表
        ///
        /// </summary>
        public DataSet GetMenusRibbon()
        {
            IMsSqlDataAccessService h = ServiceHelper.GetMsSqlDataAccessService();

            h.CreateStoredCommand("Sp_GetMenus_Ribbon");
            DataSet ds = h.ExecuteQueryDataSet();

            return(ds);
        }
Beispiel #2
0
        /// <summary>分页获取数据列表
        ///
        /// </summary>
        public DataSet GetList(string fileds, string order, string ordertype, int PageSize, int PageIndex, string strWhere)
        {
            IMsSqlDataAccessService h = ServiceHelper.GetMsSqlDataAccessService();

            h.CreateStoredCommand("[proc_SplitPage]");
            h.AddParameter("@tblName", "Bse_Role_Menu");
            h.AddParameter("@strFields", fileds);
            h.AddParameter("@strOrder", order);
            h.AddParameter("@strOrderType", ordertype);
            h.AddParameter("@PageSize", PageSize);
            h.AddParameter("@PageIndex", PageIndex);
            h.AddParameter("@strWhere", strWhere);
            DataTable dt = h.ExecuteQuery();
            DataSet   ds = new DataSet();

            ds.Tables.Add(dt);
            return(ds);
        }