Exemplo n.º 1
0
        private static string GetListScript()
        {
            string message;
            var    templateList = new TemplateInfoSectionList
            {
                ScriptServiceUrl = UtilsGeneric.GetCurrentService(ServiceUrl)
            };

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

            return(htmlScript);
        }
Exemplo n.º 2
0
        public static string GetListView(long pageNo, long itemsPerPage, long dataIndex, string templateSuffix, long infoPageId, bool loadListScript, bool loadList)
        {
            string htmlListScript = "";

            if (loadListScript == true)
            {
                htmlListScript = GetListScript();
            }
            string htmlListDetail = GetListDetailView(pageNo, itemsPerPage, dataIndex, templateSuffix, infoPageId, loadList);

            string message;
            var    templateList = new TemplateInfoSectionList
            {
                ListScript = htmlListScript,
                ListDetail = htmlListDetail,
                InfoPageId = infoPageId.ToString()
            };
            string htmlList = templateList.GetFilled(templateSuffix, UtilsGeneric.Validate, UtilsGeneric.ThrowException,
                                                     out message);

            return(htmlList);
        }