コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public static void OnClick(AppPressDemo p, ChangeHistoryAnchorClass.ChangeHistoryFieldClass ChangeHistory)
 {
     ChangeHistoryClass.Popup(p, null, null);
 }