private static string GetSaveScript()
        {
            string message;
            var templateSave = new TemplateInfoDetailSave
            {
                ScriptServiceUrl = UtilsGeneric.GetCurrentService(ServiceUrl)
            };

            string htmlScript = templateSave.GetScriptFilled(true, UtilsGeneric.LoadMinJs, UtilsGeneric.Validate, UtilsGeneric.ThrowException,
                                                                  out message);
            return htmlScript;
        }
        public static string GetSaveView(long infoDetailId, long pageNo, long itemsPerPage, long dataIndex, string templateSuffix, long infoSectionId, bool loadSaveScript, bool loadSave)
        {
            string htmlSaveScript = "";
            if (loadSaveScript == true)
            {
                htmlSaveScript = GetSaveScript();
            }
            string htmlSaveDetail = "";
            if (loadSave == true)
            {
                htmlSaveDetail = GetSaveDetailView(infoDetailId, pageNo, itemsPerPage, dataIndex, templateSuffix, infoSectionId);
            }

            string message;
            bool hideDisplay = true;
            var templateSave = new TemplateInfoDetailSave
            {
                SaveScript = htmlSaveScript,
                SaveDetail = htmlSaveDetail,
                SaveViewHidden = hideDisplay,
                InfoSectionId = infoSectionId.ToString(),
            };
            string htmlSave = templateSave.GetFilled(templateSuffix, UtilsGeneric.Validate, UtilsGeneric.ThrowException, out message);
          
            return htmlSave;
        }