C# Class TPConfAddin.ThisAddIn

Inheritance: Microsoft.Office.Tools.Outlook.OutlookAddInBase
ファイルを表示 Open project: eSDK/esdk_OutlookPlugin

Public Properties

Property Type Description
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

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Application_ItemLoad() public method

application ItemLoad
public Application_ItemLoad ( object Item ) : void
Item object
return void

GetNotificationCurrentLanguage() public static method

public static GetNotificationCurrentLanguage ( string strLanguage ) : string
strLanguage string
return string

GetTPSitesFromLocation() public static method

从地址栏获取会场地址
public static GetTPSitesFromLocation ( Microsoft.Office.Interop.Outlook ai ) : List
ai Microsoft.Office.Interop.Outlook Outlook Appointment Item
return List

GetUserProperties() public static method

获取用户自定义属性
public static GetUserProperties ( ConferenceInfo &confInfo, Microsoft.Office.Interop.Outlook.AppointmentItem ai ) : void
confInfo ConferenceInfo
ai Microsoft.Office.Interop.Outlook.AppointmentItem
return void

Inspectors_NewInspector() public method

public Inspectors_NewInspector ( Microsoft.Office.Interop.Outlook.Inspector Inspector ) : void
Inspector Microsoft.Office.Interop.Outlook.Inspector
return void

Item_Property_Change() public static method

item property change
public static Item_Property_Change ( string Name ) : void
Name string
return void

OutlookItemSend() public method

响应Outlook的ItemSend事件
public OutlookItemSend ( object Item, bool &Cancel ) : void
Item object
Cancel bool
return void

ReadLineFile() public static method

按行读取
public static ReadLineFile ( string filePath ) : string>.Dictionary
filePath string
return string>.Dictionary

SaveRecurrenceReturnUserProperties() public static method

public static SaveRecurrenceReturnUserProperties ( RecurrenceConfInfo confInfo, Microsoft.Office.Interop.Outlook.AppointmentItem ai, List rAppoints ) : void
confInfo RecurrenceConfInfo
ai Microsoft.Office.Interop.Outlook.AppointmentItem
rAppoints List
return void

SaveReturnUserProperties() public static method

保存用户自定义属性
public static SaveReturnUserProperties ( ConferenceInfo confInfo, Microsoft.Office.Interop.Outlook.AppointmentItem ai ) : void
confInfo ConferenceInfo
ai Microsoft.Office.Interop.Outlook.AppointmentItem
return void

SetNotificationLanguage() public static method

根据language后缀,返回通知模板路径
public static SetNotificationLanguage ( string strLanguage ) : string
strLanguage string
return string

UpgradeMessageCallBackEx() public static method

升级消息回调函数
public static UpgradeMessageCallBackEx ( int iMsgID, StringBuilder pchDescription ) : bool
iMsgID int
pchDescription StringBuilder
return bool

item_BeforeCheckNames() public method

public item_BeforeCheckNames ( bool &Cancel ) : void
Cancel bool
return void

Property Details

AppSubjectDic public_oe static_oe property

public static Dictionary AppSubjectDic
return BackUpAppointment>.Dictionary

delRecuMeet public_oe static_oe property

public static bool delRecuMeet
return bool

editBack public_oe static_oe property

2014/12/15 修改单次会议,editBack=true回滚修改,false正常修改
public static bool editBack
return bool

errorMessage public_oe static_oe property

public static Dictionary errorMessage
return string>.Dictionary

g_AccountInfo public_oe static_oe property

public static AccountInfoClass,TPConfAddin g_AccountInfo
return AccountInfoClass

g_SystemSettings public_oe static_oe property

public static SystemSettingsClass,TPConfAddin g_SystemSettings
return SystemSettingsClass

g_currentAppointItem public_oe static_oe property

public static AppointmentItem,Microsoft.Office.Interop.Outlook g_currentAppointItem
return Microsoft.Office.Interop.Outlook.AppointmentItem

g_listAppt public_oe static_oe property

public static List g_listAppt
return List

g_log public_oe static_oe property

public static ILog g_log
return ILog

helpFilePath public_oe static_oe property

public static string helpFilePath
return string

loginRecipient public_oe property

public Recipient loginRecipient
return Recipient

templateFilePath public_oe static_oe property

public static string templateFilePath
return string

tp_Loaded public_oe static_oe property

插件加载成功:true
public static bool tp_Loaded
return bool