function OnEventAfterLoad(IDEvento, TipoEvento) { //IDEvento = '' --> New event //TipoEvento = '' -->No event type selected } function OnNewEventSetPeople() { //Return the PeopleID return ''; } function OnEventBeforeDelete(IDEvento) { //If the function return false, the event deletion is blocked return true; } function OnEventBeforeSave(IDEvento) { //IDEvento = '' --> New event //If the function return false, the event deletion is blocked return true; } function OnEventBeforeEscape(IDEvento) { //IDEvento = '' --> New event //If the function return false, the event escape is blocked //Controllo campi } //Campi free 0-19 function app_Free0_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free1_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free2_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free3_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free4_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free5_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free6_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free7_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free8_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free9_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free10_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free11_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free12_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free13_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free14_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free15_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free16_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free17_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free18_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free19_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free20_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free21_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free22_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free23_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free24_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free25_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free26_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free27_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free28_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Free29_OnChange(e, sender) { if (sender.value != null && sender.value != undefined && sender.value != "") { var eventType = $("#hdnBGEEventType").val() || $("#hdnCurrentEventType").val(); $.ajax({ type: 'POST', contentType: "application/json; charset=utf-8", dataType: 'json', async: false, url: 'Services/EventService.asmx/GetEventCustomTemplate', data: "{'fieldName':'app_Free29', 'fieldValue':'" + sender.value + "', 'eventType':'" + eventType + "'}", success: function (data) { if (data.d != "" && data.d != null && data.d != undefined && data.d != eventType) { __doPostBack('app_Free29', `${data.d}$${sender.value}`); } else { __doPostBack('app_Free29', `${eventType}$${sender.value}`); } }, error: function (a) { } }); } else { __doPostBack('app_Free29', `${$("#hdnBGEEventType").val()}$${sender.value}`); } CustomFieldChanged(e, sender); }; //Campi float function app_Float0_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Float1_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Float2_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Float3_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Float4_OnChange(e, sender) { CustomFieldChanged(e, sender); }; //Campi data function app_Date0_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Date1_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Date2_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Date3_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Date4_OnChange(e, sender) { CustomFieldChanged(e, sender); }; //Campi flag function app_Flag0_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Flag1_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Flag2_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Flag3_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Flag4_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Flag5_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Flag6_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Flag7_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Flag8_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function app_Flag9_OnChange(e, sender) { CustomFieldChanged(e, sender); }; function CustomFieldChanged(e, sender) { playFunction = window["EventIsChanged"]; if ($.isFunction(playFunction)) playFunction(); }