Vous consultez une page technique concernant le logiciel de gestion Mercator. Celle-ci contient des informations spécifiques destinées aux professionnels de Mercator. Souhaitez-vous être redirigés vers des informations plus générales ?


   Ne plus poser cette question

Lancer le calendrier ou les tâches

0000002528     -      03/04/2025

Voici le code pour montrer, respectivement, le calendrier et la fenêtre des tâches du CRM.

Zoom
MercatorUi.Globals.Main.ShowExternalForm(typeof(MercatorUi.Forms.Action.CrmTasksForm), "CrmTasksForm");

MercatorUi.Globals.Main.ShowExternalForm(typeof(MercatorUi.Forms.Action.CrmCalendarForm), "CrmCalendarForm");

 

Pour ouvrir le calendrier à une date déterminée :

Zoom
MercatorUi.Globals.Main.ShowExternalForm(typeof(MercatorUi.Forms.Action.CrmCalendarForm), "CrmCalendarForm", new object[1] { DateTime.Today.AddDays(-3) });

 

Pour ouvrir le calendrier à une date déterminée, en sélectionnant un rendez-vous déterminé :

Zoom
MercatorUi.Engine.Crm.Tools.ActionDescriptor actionToSelect = new MercatorUi.Engine.Crm.Tools.ActionDescriptor("ACYINRX27R", MercatorUi.Sig._SigEnum.CLI, "C19");
MercatorUi.Globals.Main.ShowExternalForm(typeof(MercatorUi.Forms.Action.CrmCalendarForm), "CrmCalendarForm", new object[2] { DateTime.Today.AddDays(-3), actionToSelect });

 

Code identique au précédent, mais l'action à sélectionner est déterminée par un ActionEngine :

Zoom
MercatorUi.Engine.Crm.Tools.ActionDescriptor actionToSelect = new MercatorUi.Engine.Crm.Tools.ActionDescriptor(actionEngine);
MercatorUi.Globals.Main.ShowExternalForm(typeof(MercatorUi.Forms.Action.CrmCalendarForm), "CrmCalendarForm", new object[2] { DateTime.Today.AddDays(-3), actionToSelect });



Pourrais-je disposer du code pour lancer le calendrier ?