private static string GetSaveScript(string refreshCallback) { string message; var templateSave = new TemplateInfoCategorySave { ScriptRefreshCallback = refreshCallback, ScriptServiceUrl = UtilsGeneric.GetCurrentService(ServiceUrl) }; string htmlScript = templateSave.GetScriptFilled(true, UtilsGeneric.LoadMinJs, UtilsGeneric.Validate, UtilsGeneric.ThrowException, out message); return htmlScript; }
public static string GetSaveView(long infoCategoryId, long pageNo, long itemsPerPage, long dataIndex, string templateSuffix, bool hideDisplay, string refreshCallback) { string message; string htmlSaveScript = GetSaveScript(refreshCallback); string htmlSaveDetail = ""; //GetSaveDetailView(infoCategoryId, pageNo, itemsPerPage, dataIndex, templateSuffix, hideDisplay); var templateSave = new TemplateInfoCategorySave { DataIndex = dataIndex.ToString(), SaveScript = htmlSaveScript, SaveDetail = htmlSaveDetail, SaveViewHidden= hideDisplay, }; string htmlSave = templateSave.GetFilled(templateSuffix, UtilsGeneric.Validate, UtilsGeneric.ThrowException, out message); return htmlSave; }