Beispiel #1
0
 protected void cmdSchedule_Click(object sender, EventArgs e)
 {
     try
     {
         if (this.cboProcessType.DataSource != null)
         {
             Plugin selectedPlugin;
             selectedPlugin = ((IList <Plugin>) this.cboProcessType.DataSource)[this.cboProcessType.SelectedIndex];
             object[] objarray = new object[] {
                 this.lueContactToScheduleFor.LookupResultValue,
                 selectedPlugin.PluginId,
                 selectedPlugin.Family,
                 selectedPlugin.Name,
                 this.ownProcessOwner.LookupResultValue
             };
             Sage.Platform.Orm.DynamicMethodLibraryHelper.Instance.Execute("Contact.ScheduleProcess", objarray);
             DialogService.CloseEventHappened(sender, e);
             Sage.Platform.WebPortal.Services.IPanelRefreshService refresher = PageWorkItem.Services.Get <Sage.Platform.WebPortal.Services.IPanelRefreshService>();
             refresher.RefreshTabWorkspace();
         }
         else
         {
             DialogService.ShowMessage(GetLocalResourceObject("Error_ProcessTypes").ToString(), "SalesLogix");
         }
     }
     catch (Exception error)
     {
         DialogService.ShowMessage(error.InnerException.Message, "SalesLogix");
     }
 }
 protected void btnSave_ClickActionBRC(object sender, EventArgs e)
 {
     Sage.Platform.WebPortal.Services.IPanelRefreshService refresher = PageWorkItem.Services.Get <Sage.Platform.WebPortal.Services.IPanelRefreshService>();
     refresher.RefreshTabWorkspace();
 }