Ejemplo n.º 1
0
        public static string GetListView(long pageNo, long itemsPerPage, long dataIndex, string templateSuffix, string configToken)
        {
            string htmlListScript = GetListScript();

            string htmlListDetail = GetListDetailView(pageNo, itemsPerPage, dataIndex, templateSuffix, configToken);

            string message;
            var templateList = new TemplateDataList
            {
                ListScript = htmlListScript,
                ListDetail = htmlListDetail
            };
            string htmlList = templateList.GetFilled(templateSuffix, UtilsGeneric.Validate, UtilsGeneric.ThrowException,
                                                                  out message);
            return htmlList;
        }
Ejemplo n.º 2
0
        private static string GetListScript()
        {
            string message;
            var templateList = new TemplateDataList
            {
                ScriptServiceUrl = UtilsGeneric.GetCurrentService(ServiceUrl)
            };

            string htmlScript = templateList.GetScriptFilled(true, UtilsGeneric.LoadMinJs, UtilsGeneric.Validate, UtilsGeneric.ThrowException,
                                                                  out message);
            return htmlScript;
        }