protected virtual string GetEmailSubject(View view, DataRow row) { string viewName = GetTemplateViewName(); string pk = GetDefaultEmailSubject(view, row); Durados.Web.Mvc.View templateView = GetView(viewName); DataRow templateRow = templateView.GetDataRow(pk); string subject = templateView.GetDisplayValue(GetEmailTemplateFieldName(), templateRow); return(subject); }
protected virtual string GetTemplate(string templatePK, Durados.Web.Mvc.View templateView, string documentLocationFiledName, string virtualPath) { DataRow dataRow = templateView.GetDataRow(templatePK); if (dataRow == null) { throw new DuradosException("Missing document template!"); } virtualPath += templateView.GetDisplayValue(documentLocationFiledName, dataRow); string template = HttpContext.Server.MapPath(virtualPath); return(template); }
protected virtual string GetDisplayName(Durados.Web.Mvc.View view, DataRow row) { return(view.GetDisplayValue(row)); }