Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // EleWise.ELMA.BPM.Web.Common.Extensions.HtmlExtensions
- public static MvcHtmlString EventHistory([NotNull] this HtmlHelper html, [NotNull] IEntity<long> entity, bool inTab = false, string divPanelId = null, List<string> disableButtons = null, bool asyncLoading = true, List<string> hideButtons = null)
- {
- if (html == null)
- {
- throw new ArgumentNullException("html");
- }
- if (entity == null)
- {
- throw new ArgumentNullException("entity");
- }
- Guid objectUid = InterfaceActivator.UID(entity.CastAsRealType<IEntity<long>>().GetType(), true);
- return html.Partial("EntityHistoryPanel", new EntityHistoryPanelViewModel
- {
- ObjectUid = objectUid,
- DivId = ((!string.IsNullOrEmpty(divPanelId)) ? divPanelId : string.Format("eh_{0}_{1}", TagBuilder.CreateSanitizedId(entity.Implementation().GetType().FullName), entity.Id)),
- InTab = inTab,
- Entity = entity,
- DisableButtons = disableButtons,
- AsyncLoading = asyncLoading,
- HideButtons = hideButtons
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement