public static void Init(AppPressDemo p, ChangeHistoryClass ChangeHistory) { var formData = ChangeHistory.FormDataPopupCaller; if (formData != null && !formData.IsNew) { ChangeHistory.ChangeHistory.val = p.GetHtmlTableFromQuery(@" Select [dbo].[FullName](FirstName,Middlename,LastName) as ""By"",time as ""When"",""Change"" From ""application_audit"" Left Outer Join ""application.users"" On ""application.users"".id=LoginUserId Where TableName='" + formData.GetTableName() + "' and auditType in (100,102) and rowId=" + formData.id + @" ", false, null); } }
public static void OnClick(AppPressDemo p, ChangeHistoryAnchorClass.ChangeHistoryFieldClass ChangeHistory) { ChangeHistoryClass.Popup(p, null, null); }