Пример #1
0
        protected static Dictionary <string, object> GetPageRecord(int pageId, string token, int recordId)
        {
            var platformResult = PlatformUtils.Call <SelectQueryResult>(token,
                                                                        platformClient => platformClient.GetPageRecord(pageId, recordId, false));

            return(MpFormatToDictionary(platformResult));
        }
Пример #2
0
        protected static List <Dictionary <string, object> > GetSubPageRecords(int subPageId, int recordId, String token)
        {
            var platformResult = PlatformUtils.Call <SelectQueryResult>(token,
                                                                        platformClient => platformClient.GetSubpageRecords(subPageId, recordId, string.Empty, string.Empty, 0));

            return(MpFormatToList(platformResult));
        }
Пример #3
0
        protected static List <Dictionary <string, object> > GetPageRecords(int pageId, string token, string searchString)
        {
            var platformResult = PlatformUtils.Call <SelectQueryResult>(token,
                                                                        platformClient => platformClient.GetPageRecords(pageId, searchString, string.Empty, 0));

            return(MpFormatToList(platformResult));
        }
Пример #4
0
        public static List <Dictionary <string, object> > GetSubpageViewRecords(int viewId, int parentRecordId,
                                                                                string token, string searchString = "", string sort = "", int top = 0)
        {
            var result = PlatformUtils.Call <SelectQueryResult>(token,
                                                                platformClient => platformClient.GetSubpageViewRecords(viewId, parentRecordId, searchString, sort, top));

            return(MPFormatConversion.MPFormatToList(result));
        }
Пример #5
0
        protected static int CreateSubPageRecord(int pageId, int parentRecordId, Dictionary <string, object> dictionary, String token)
        {
            var recordId = PlatformUtils.Call(token, platformClient => platformClient.CreateSubpageRecord(pageId, parentRecordId, dictionary, false));

            return(recordId);
        }
Пример #6
0
 public static int CreateRecord(int pageId, Dictionary <string, object> dictionary, String token, bool quickadd = true)
 {
     return(PlatformUtils.Call <int>(token, platformClient => platformClient.CreatePageRecord(pageId, dictionary, quickadd)));
 }
Пример #7
0
 public static int CreateSubRecord(int subPageId, int parentRecordId, Dictionary <string, object> dictionary,
                                   String token, bool quickadd = false)
 {
     return(PlatformUtils.Call <int>(token,
                                     platformClient => platformClient.CreateSubpageRecord(subPageId, parentRecordId, dictionary, quickadd)));
 }
Пример #8
0
 public static SelectQueryResult GetRecord(int pageId, int recordId, String token, bool quickadd = false)
 {
     return(PlatformUtils.Call <SelectQueryResult>(token,
                                                   platformClient => platformClient.GetPageRecord(pageId, recordId, quickadd)));
 }
Пример #9
0
 public static SelectQueryResult GetRecords(int pageId, String token, String search = "", String sort = "")
 {
     return(PlatformUtils.Call <SelectQueryResult>(token,
                                                   platformClient => platformClient.GetPageRecords(pageId, search, sort, 0)));
 }