C# Класс TPConfAddin.ThisAddIn

Наследование: Microsoft.Office.Tools.Outlook.OutlookAddInBase
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
AppSubjectDic BackUpAppointment>.Dictionary
delRecuMeet bool
editBack bool
errorMessage string>.Dictionary
g_AccountInfo AccountInfoClass
g_SystemSettings SystemSettingsClass
g_currentAppointItem Microsoft.Office.Interop.Outlook.AppointmentItem
g_listAppt List
g_log ILog
helpFilePath string
loginRecipient Recipient
templateFilePath string
tp_Loaded bool

Открытые методы

Метод Описание
Application_ItemLoad ( object Item ) : void

application ItemLoad

GetNotificationCurrentLanguage ( string strLanguage ) : string
GetTPSitesFromLocation ( Microsoft.Office.Interop.Outlook ai ) : List

从地址栏获取会场地址

GetUserProperties ( ConferenceInfo &confInfo, Microsoft.Office.Interop.Outlook.AppointmentItem ai ) : void

获取用户自定义属性

Inspectors_NewInspector ( Microsoft.Office.Interop.Outlook.Inspector Inspector ) : void
Item_Property_Change ( string Name ) : void

item property change

OutlookItemSend ( object Item, bool &Cancel ) : void

响应Outlook的ItemSend事件

ReadLineFile ( string filePath ) : string>.Dictionary

按行读取

SaveRecurrenceReturnUserProperties ( RecurrenceConfInfo confInfo, Microsoft.Office.Interop.Outlook.AppointmentItem ai, List rAppoints ) : void
SaveReturnUserProperties ( ConferenceInfo confInfo, Microsoft.Office.Interop.Outlook.AppointmentItem ai ) : void

保存用户自定义属性

SetNotificationLanguage ( string strLanguage ) : string

根据language后缀,返回通知模板路径

UpgradeMessageCallBackEx ( int iMsgID, StringBuilder pchDescription ) : bool

升级消息回调函数

item_BeforeCheckNames ( bool &Cancel ) : void

Приватные методы

Метод Описание
AddMenuBar ( ) : void

添加智真会议工具栏

BeginInitialization ( ) : void
BindToData ( ) : void
BoolToSMC ( Microsoft.Office.Interop.Outlook.AppointmentItem ai ) : bool

判断会场数量>2,是否从插件进入,满足条件,与SMC交互

CompareRecipient ( Microsoft.Office.Interop.Outlook.AppointmentItem appItem, MeetingItem mItem ) : bool

比较用户,判断是修改还是删除

CompareUserProperty ( BackUpAppointment bak_appointment, Microsoft.Office.Interop.Outlook.AppointmentItem ai ) : bool
CopyBody ( Microsoft.Office.Interop.Outlook.AppointmentItem ai, Microsoft.Office.Interop.Outlook.MailItem mailItem ) : void
CopyBodyToMeeting ( Microsoft.Office.Interop.Outlook.AppointmentItem ai, MeetingItem &meetingItem ) : void
CreateConference ( Microsoft.Office.Interop.Outlook.AppointmentItem tempAppt, MeetingItem meetingItem ) : int

创建预约会议

DeleteConference ( Microsoft.Office.Interop.Outlook.AppointmentItem tempAppt, Recipients recipients ) : int

删除预约会议

DeleteConferenceWithTime ( Microsoft.Office.Interop.Outlook.AppointmentItem tempAppt, Recipients recipients, DateTime date ) : int

删除周期会议的子会议

EditConference ( Microsoft.Office.Interop.Outlook.AppointmentItem &tempAppt, MeetingItem tempMeet ) : int

修改预约会议

EditConferenceCompare ( MeetingItem meetingItem, Microsoft.Office.Interop.Outlook.AppointmentItem ai, BackUpAppointment bak_appointment ) : bool

避免与SMC交互两次

EndInitialization ( ) : void
FinishInitialization ( ) : void
GetConfInfoUserProperty ( Microsoft.Office.Interop.Outlook.AppointmentItem ai ) : ConferenceInfo

Initialize ( ) : void
InitializeCachedData ( ) : void
InitializeComponents ( ) : void
InitializeControls ( ) : void
InitializeData ( ) : void
InitializeDataBindings ( ) : void
InternalStartup ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IsCached ( string MemberName ) : bool
IsConfInfoUserPropertyExist ( Microsoft.Office.Interop.Outlook.AppointmentItem ai ) : bool

判断appointmentitem是否含有ConfInfo属性

IsEnterFromSelfUserPropertyExist ( Microsoft.Office.Interop.Outlook.AppointmentItem ai ) : bool

判断appointmentitem是否含有EnterFromSelf属性

NeedsFill ( string MemberName ) : bool
OnShutdown ( ) : void
RemoveMenubar ( ) : void

移除工具栏

SaveRecuConfReturnUserProperties ( RecurrenceConfInfo confInfo, Microsoft.Office.Interop.Outlook.AppointmentItem ai, List rAppoints ) : void

2014/10/24 保存会议属性,不包含ConfId

SendRecipientsInfo ( Microsoft.Office.Interop.Outlook.AppointmentItem ai, MeetingItem meetingItem ) : void

选择发送人员信息

StartCaching ( string MemberName ) : void
StopCaching ( string MemberName ) : void
ThisAddIn ( global factory, global serviceProvider )
ThisAddIn_Shutdown ( object sender, System e ) : void
ThisAddIn_Startup ( object sender, System e ) : void

Update ( ) : void
ValueBackAppointMent ( Microsoft.Office.Interop.Outlook.AppointmentItem &ai, BackUpAppointment bak_appointment ) : void

会议修改失败,会议属性回滚 2014/11/6

WetherContainTPSites ( Microsoft.Office.Interop.Outlook.AppointmentItem appt ) : int
copyAppointMentItem ( Microsoft.Office.Interop.Outlook.AppointmentItem item ) : BackUpAppointment

保存打开的约会信息 2014/11/6

editRecurrenceTPConf ( Microsoft.Office.Interop.Outlook.AppointmentItem ai, RecurrenceConfInfo &ConfInfo, MeetingItem meetingItem ) : int

修改周期性智真会议

editTPConf ( Microsoft.Office.Interop.Outlook.AppointmentItem ai, ConferenceInfo &ConfInfo, MeetingItem meetingItem ) : int

修改非周期性智真会议

getConfLasts ( Microsoft.Office.Interop.Outlook.AppointmentItem item ) : string

根据格式,获取会议时长

getWeekDays ( OlDaysOfWeek dayOfWeek ) : int[]

获取一周中有几天。周日~周六分别对应0~6

keybd_event ( byte bVk, byte bScan, int dwFlags, int dwExtraInfo ) : void
replaceContentsInTemplate ( Microsoft.Office.Interop.Outlook.AppointmentItem ai, string textTemplate, ConferenceInfo &confInfo ) : string

替换通知模板中的内容

replaceContentsInTemplateRecurrence ( Microsoft.Office.Interop.Outlook.AppointmentItem ai, string textTemplate, RecurrenceConfInfo &confInfo ) : string

替换通知模板中的内容

scheduleRecurrenceTPConf ( Microsoft.Office.Interop.Outlook.AppointmentItem &ai ) : int

预约周期性智真会议

scheduleTPConf ( Microsoft.Office.Interop.Outlook.AppointmentItem ai ) : int

预约非周期性智真会议

sendMailNotifications ( Microsoft.Office.Interop.Outlook.AppointmentItem appt, OperatorType opType, Recipients recipients ) : void

发送邮件通知

setConferenceInfo ( ConferenceInfo &ConfInfo, Microsoft.Office.Interop.Outlook.AppointmentItem tempAppt ) : void

从约会界面,获取非周期性会议信息

setRecurrenceConferenceInfo ( RecurrenceConfInfo &recurrenceConfInfo, Microsoft.Office.Interop.Outlook.AppointmentItem ai, bool bSingle ) : void

获取周期性会议信息

setRecurrenceConferenceInfo ( RecurrenceConfInfo &recurrenceConfInfo, Microsoft.Office.Interop.Outlook.AppointmentItem ai, bool bSingle, MeetingItem meeting ) : void

获取周期性会议信息

transSysTimezone2SMC ( Microsoft.Office.Interop.Outlook tz ) : string

Описание методов

Application_ItemLoad() публичный Метод

application ItemLoad
public Application_ItemLoad ( object Item ) : void
Item object
Результат void

GetNotificationCurrentLanguage() публичный статический Метод

public static GetNotificationCurrentLanguage ( string strLanguage ) : string
strLanguage string
Результат string

GetTPSitesFromLocation() публичный статический Метод

从地址栏获取会场地址
public static GetTPSitesFromLocation ( Microsoft.Office.Interop.Outlook ai ) : List
ai Microsoft.Office.Interop.Outlook Outlook Appointment Item
Результат List

GetUserProperties() публичный статический Метод

获取用户自定义属性
public static GetUserProperties ( ConferenceInfo &confInfo, Microsoft.Office.Interop.Outlook.AppointmentItem ai ) : void
confInfo ConferenceInfo
ai Microsoft.Office.Interop.Outlook.AppointmentItem
Результат void

Inspectors_NewInspector() публичный Метод

public Inspectors_NewInspector ( Microsoft.Office.Interop.Outlook.Inspector Inspector ) : void
Inspector Microsoft.Office.Interop.Outlook.Inspector
Результат void

Item_Property_Change() публичный статический Метод

item property change
public static Item_Property_Change ( string Name ) : void
Name string
Результат void

OutlookItemSend() публичный Метод

响应Outlook的ItemSend事件
public OutlookItemSend ( object Item, bool &Cancel ) : void
Item object
Cancel bool
Результат void

ReadLineFile() публичный статический Метод

按行读取
public static ReadLineFile ( string filePath ) : string>.Dictionary
filePath string
Результат string>.Dictionary

SaveRecurrenceReturnUserProperties() публичный статический Метод

public static SaveRecurrenceReturnUserProperties ( RecurrenceConfInfo confInfo, Microsoft.Office.Interop.Outlook.AppointmentItem ai, List rAppoints ) : void
confInfo RecurrenceConfInfo
ai Microsoft.Office.Interop.Outlook.AppointmentItem
rAppoints List
Результат void

SaveReturnUserProperties() публичный статический Метод

保存用户自定义属性
public static SaveReturnUserProperties ( ConferenceInfo confInfo, Microsoft.Office.Interop.Outlook.AppointmentItem ai ) : void
confInfo ConferenceInfo
ai Microsoft.Office.Interop.Outlook.AppointmentItem
Результат void

SetNotificationLanguage() публичный статический Метод

根据language后缀,返回通知模板路径
public static SetNotificationLanguage ( string strLanguage ) : string
strLanguage string
Результат string

UpgradeMessageCallBackEx() публичный статический Метод

升级消息回调函数
public static UpgradeMessageCallBackEx ( int iMsgID, StringBuilder pchDescription ) : bool
iMsgID int
pchDescription StringBuilder
Результат bool

item_BeforeCheckNames() публичный Метод

public item_BeforeCheckNames ( bool &Cancel ) : void
Cancel bool
Результат void

Описание свойств

AppSubjectDic публичное статическое свойство

public static Dictionary AppSubjectDic
Результат BackUpAppointment>.Dictionary

delRecuMeet публичное статическое свойство

public static bool delRecuMeet
Результат bool

editBack публичное статическое свойство

2014/12/15 修改单次会议,editBack=true回滚修改,false正常修改
public static bool editBack
Результат bool

errorMessage публичное статическое свойство

public static Dictionary errorMessage
Результат string>.Dictionary

g_AccountInfo публичное статическое свойство

public static AccountInfoClass,TPConfAddin g_AccountInfo
Результат AccountInfoClass

g_SystemSettings публичное статическое свойство

public static SystemSettingsClass,TPConfAddin g_SystemSettings
Результат SystemSettingsClass

g_currentAppointItem публичное статическое свойство

public static AppointmentItem,Microsoft.Office.Interop.Outlook g_currentAppointItem
Результат Microsoft.Office.Interop.Outlook.AppointmentItem

g_listAppt публичное статическое свойство

public static List g_listAppt
Результат List

g_log публичное статическое свойство

public static ILog g_log
Результат ILog

helpFilePath публичное статическое свойство

public static string helpFilePath
Результат string

loginRecipient публичное свойство

public Recipient loginRecipient
Результат Recipient

templateFilePath публичное статическое свойство

public static string templateFilePath
Результат string

tp_Loaded публичное статическое свойство

插件加载成功:true
public static bool tp_Loaded
Результат bool