OnPreLoad
OnLoadComplete
OnPreRuleEngine
OnPostRuleEngine
OnPreSave
OnSaveComplete
OnDelete
OnError
<?xml version="1.0" encoding="utf-8"?> <businessObjectsEvents> <businessObject ID="Company" dllName="EventPlugins.dll" Active="false"> </businessObject> <businessObject ID="Contact" dllName="EventPlugins.dll" Active="false"> </businessObject> <businessObject ID="Lead" dllName="EventPlugins.dll" Active="false"> </businessObject> <businessObject ID="Activity" codeFile="plugin.cs" Active="true"> </businessObject> <businessObject ID="Quote" dllName="EventPlugins.dll" Active="false"> </businessObject> <businessObject ID="Order" dllName="EventPlugins.dll" Active="false"> </businessObject> <businessObject ID="DDT" dllName="EventPlugins.dll" Active="false"> </businessObject> <businessObject ID="Invoice" dllName="EventPlugins.dll" Active="false"> </businessObject> <businessObject ID="Catalog" dllName="EventPlugins.dll" Active="false"> </businessObject> <businessObject ID="CatalogMovements" dllName="EventPlugins.dll" Active="false"> </businessObject> </businessObjectsEvents>
using System; using System.Collections.Generic; using System.Text; using Digita.Tustena.Base; using Digita.Tustena.Core; using Digita.Tustena.BusinessObjects; namespace NomeDllQualuque { public class NomeDllQualuque: IPlugin { #region IPlugin Membri di public void Init(CrmBusinessObjects bo) { bo.OnPreSave += new OnPreSave(bo_OnPreSave); bo.OnDelete += new OnDelete(bo_OnDelete); bo.OnLoadComplete += new OnLoadComplete(bo_OnLoadComplete); } void bo_OnPreSave(CrmBusinessObjects crmBO, BusinessObjectEventArgs e) { switch (crmBO.BusinessObject) { case Digita.Tustena.BusinessObjectType.Activity: throw new NotImplementedException(); break; } } void bo_OnLoadComplete(CrmBusinessObjects crmBO) { throw new NotImplementedException(); } void bo_OnDelete(CrmBusinessObjects crmBO, long[] al, BusinessObjectEventArgs e) { throw new NotImplementedException(); } #endregion } }