private static string GetListScript()
 {
     string message;
     var templateList = new TemplateDataRefTypeList
     {
         ScriptServiceUrl = UtilsGeneric.GetCurrentService(ServiceUrl)
     };
     string htmlScript = templateList.GetScriptFilled(true, UtilsGeneric.LoadMinJs, UtilsGeneric.Validate, UtilsGeneric.ThrowException,
                                                           out message);
     return htmlScript;
 }
        public static string GetListView(long dataRefTypeId, long pageNo, long itemsPerPage, long dataIndex, string templateSuffix)
        {
            string htmlListScript = GetListScript();
            string htmlListDetail = GetListDetailView(pageNo, itemsPerPage, dataIndex, templateSuffix);

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