/// <summary> /// The method is called by Customizer for generation of events. /// </summary> /// <remarks>The parameters "ProfileCUA_Ident_InstTypeAlso" and "ProfileCUA_Ident_OSAlso" will be added to the parameter collection. /// </remarks> /// <param name="eventName">INSERT, UPDATE, DELETE</param> /// <returns>Always False</returns> protected override bool OnCustomGenerate(String eventName) { IColDbObject colChild; ISingleDbObject oProfileCUA; Hashtable param = new Hashtable(StringComparer.OrdinalIgnoreCase); long ulCo = 0; using (NoRightsCheck()) { colChild = DbObject.GetCR("ProfileCanUsedAlso", "UID_Profile").Children; foreach (IColElem colElem in colChild) { oProfileCUA = colElem.Create(); param.Add("ProfileCUA_Ident_InstTypeAlso" + ulCo.ToString(), oProfileCUA["Ident_InstTypeAlso"].New.String); param.Add("ProfileCUA_Ident_OSAlso" + ulCo.ToString(), oProfileCUA["Ident_OSAlso"].New.String); ulCo++; } if (!DbObject.IsLoaded) { JobGen.Generate(DbObject, "INSERT", param); return(false); } else if (DbObject.IsDeleted) { JobGen.Generate(DbObject, "DELETE", param); return(false); } else { JobGen.Generate(DbObject, "UPDATE", param); return(false); } } }