public GetFilled ( string templateSuffix, bool validate, bool throwException, string &retMessage ) : string | ||
templateSuffix | string | |
validate | bool | |
throwException | bool | |
retMessage | string | |
리턴 | string |
public virtual string GetFilled(string templateSuffix, bool validate, bool throwException, out string retMessage)
{
string message = "";
string template = GetTemplate(templateSuffix, validate, throwException, out message);
if ((string.IsNullOrEmpty(template)==false) && ((validate ==false) || IsValid(throwException, out message)))
{
template = ProcessListSection(template);
template = ProcessBoolSection(template);
template = ProcessPlaceHolder(template);
}
retMessage = message;
return template;
}
public static string GetListView(long pageNo, long itemsPerPage, long dataIndex, string templateSuffix) { string htmlListScript = GetListScript(); string htmlListDetail = GetListDetailView(pageNo, itemsPerPage, dataIndex, templateSuffix); string message; var templateList = new TemplateSubscriberList { ListScript = htmlListScript, ListDetail = htmlListDetail }; string htmlList = templateList.GetFilled(templateSuffix, UtilsGeneric.Validate, UtilsGeneric.ThrowException, out message); return htmlList; }