Esempio n. 1
0
        private static string GetSaveScript()
        {
            string message;
            var templateSave = new TemplateInfoSectionSave
            {
                ScriptServiceUrl = UtilsGeneric.GetCurrentService(ServiceUrl)
            };

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

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

            return htmlSave;
        }