예제 #1
0
        public virtual QueryResult QueryAmbassadorNews(AmbassadorNewsQueryFilter filter)
        {
            int totalCount = 0;
            var ds         = ObjectFactory <IAmbassadorNewsQueryDA> .Instance.Query(filter, out totalCount);

            var dtAmbassadorNews = ds.Tables[0];

            QueryResult queryResult = new QueryResult();

            queryResult.Data       = dtAmbassadorNews;
            queryResult.TotalCount = totalCount;
            return(queryResult);
        }
예제 #2
0
        public void GetAmbassadorNewsBySysNo(int sysNo, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            PagingInfo p = new PagingInfo
            {
                PageIndex = 0,
                PageSize  = 1,
                SortBy    = ""
            };
            AmbassadorNewsQueryFilter filter = new AmbassadorNewsQueryFilter();

            filter.SysNo       = sysNo;
            filter.CompanyCode = CPApplication.Current.CompanyCode;
            filter.PagingInfo  = p;

            string relativeUrl = "/MKTService/AmbassadorNews/Query";

            restClient.QueryDynamicData(relativeUrl, filter, callback);
        }