Example #1
0
 private static string GetSaveScript()
 {
     string message;
     var templateSave = new TemplateDataRefTypeSave
     {
         ScriptServiceUrl = UtilsGeneric.GetCurrentService(ServiceUrl)
     };
     string htmlScript = templateSave.GetScriptFilled(true, UtilsGeneric.LoadMinJs, UtilsGeneric.Validate, UtilsGeneric.ThrowException,
                                                           out message);
     return htmlScript;
 }
Example #2
0
        public static string GetSaveView(long dataRefTypeId, long pageNo, long itemsPerPage, long dataIndex, string templateSuffix)
        {
            string htmlSaveScript = GetSaveScript();
            string htmlSaveDetail = ""; //GetSaveDetailView(dataRefTypeId, pageNo, itemsPerPage, dataIndex, templateSuffix);

            string message;
            var templateSave = new TemplateDataRefTypeSave
            {
                SaveScript = htmlSaveScript,
                SaveDetail = htmlSaveDetail
            };
            string htmlSave = templateSave.GetFilled(templateSuffix, UtilsGeneric.Validate, UtilsGeneric.ThrowException,
                                                                  out message);
          
            return htmlSave;
        }