通知模組設計

2022-01-31 23:00:40 字數 1855 閱讀 8433

entemail表

name

code

type

isnull

主鍵entemailid

intnot null

收件人toemailaddress

varchar(max)

not null

抄送人列表

ccemailaddress

varchar(max)

null

暗抄送人列表

bccemailaddress

varchar(max)

null

發件人fromemailaddress

varchar(255)

not null

郵件主題

subject

varchar(max)

not null

郵件內容

body

varchar(max)

not null

傳送狀態

emailstatusflag

tinyint

not null

entnotification表(使用者可以選擇接收的通知列表)

name

code

type

isnull

主鍵entnotificationid

intnot null

說明description

varchar(255)

not null

郵件傳送賬號

fromemailaddress

varchar(255)

not null

郵件主題

subject

varchar(max)

not null

通知模板

body

varchar(max)

not null

模板資料:

insert [dbo].[entnotification] ([entnotificationid], [description], [fromemailaddress], [subject], [body]) values (1, n'i became the owner of an item.', n'[email protected]', n'you become the owner of the following item: ', n'please review the following item.

item id:

state:

owner:

submit date:

')entnotificationentuseraccount(註冊接收特定通知的使用者)

name

code

type

isnull

主鍵entnotificationentuseraccountid

intnot null

通知id

entnotificationid

intnot null

使用者id

entuseraccountid

intnot null

entnotificationentwfstate(使用者訂閱請求到達某個指定狀態的通知)

name

code

type

isnull

主鍵entnotificationentwfstateid

intnot null

使用者id

entnotificationentuseraccountid

intnot null

狀態id

entwfstateid

intnot null

Cocoa設計模式之通知

以前覺得通知比較難搞,總是避免。但是折騰一番後發現真的是個好東西,用起來很好。整理下使用方法。一 首先,在viewdidload或者其他地方新增通知 nsnotificationcenter defaultcenter addobserver self selector selector updat...

異常通知輔助模組 5 3 try catch

這個是純原始碼嗷。絕對不能錯過 模組介紹 該模組功能是補足易錯誤管理器無法捕捉的異常。本模組可以截獲許多異常,比如記憶體讀寫錯誤,非法彙編指令,算術異常,其他異常等等。本模組擁有try catch的異常處理模型,支援多層巢狀,支援向上處理。允許使用者自己設定跳過致命異常。並且支援易原錯誤管理器接管 ...

返回通知 異常通知 環繞通知

返回通知 是在方法正常結束之後執行的通知,可以訪問方法返回值。使用 afterreturning注釋,我們還可以在注釋裡面指定乙個返回值的名字,然後再方法中使用它。當方法出異常,就不會有這個通知了 異常通知 是在方法出現異常後執行的通知,可以訪問異常物件 使用 afterthrowing注釋,我們還...