private void ContactInformationOnSave(ContactInformationEvents.OnSave.ManageCampaignList e) { if (!e.OnSaveArgs.IsNewContact) m_CampaignList.UpdateSelectedRow(e.OnSaveArgs.ContactDetail); else m_CampaignList.ReloadCampaignList(e.OnSaveArgs.NewContactId); if (CampaignExtraDetail_OnContactSaved != null) CampaignExtraDetail_OnContactSaved(); }
private void ContactInformationOnDelete(ContactInformationEvents.OnDelete.ManageCampaignList e) { m_CampaignList.UpdateSelectedRow(); }
private void ContactInformationOnSave(ContactInformationEvents.OnSave.ManageCampaignBooking e) { m_oContactView.ExtraDetailContactId = e.OnSaveArgs.ContactDetail.id; if (m_oContactView.ContactList.Exists(i => i.id == e.OnSaveArgs.ContactDetail.id)) { m_oContactView.UpdateContact(e.OnSaveArgs.ContactDetail); m_oDialogEditor.BindDialogManagerData(true); //marker... } else { m_oContactView.SuspendEventDataSourceChange(true); m_oContactView.PopulateContacts(); m_oContactView.ContactSetFocus(e.OnSaveArgs.ContactDetail.id); m_oContactView.SuspendEventDataSourceChange(false); } m_oContactView.gvContact.Focus(); var _Contact = m_BrightSalesProperty.CommonProperty.ContactPerson; if (_Contact == null) return; /** * [jeff 05.16.2012]: https://brightvision.jira.com/browse/PLATFORM-1407 * when on call mode, button states should be retained, until the user * hangs up the current call session. */ if (m_BrightSalesProperty.CommonProperty.OnCallMode) return; if (CampaignExtraDetail_OnContactSaved != null) CampaignExtraDetail_OnContactSaved(this, new CampaignExtraDetailOnContactSavedArgs() { ContactPerson = _Contact }); }
private void ContactInformationOnAdd(ContactInformationEvents.OnAddNew e) { if (m_ContactInformation != null) { if (CallingEnvironment == SelectionProperty.CallingEnvironment.CampaignList) m_ContactInformation.SetAccountId(m_BrightSalesProperty.CommonProperty.AccountId); else if (CallingEnvironment == SelectionProperty.CallingEnvironment.CampaignBooking) m_ContactInformation.SetAccountId(m_BrightSalesProperty.CommonProperty.CurrentWorkedAccountId); } //if (OnAddContact != null) // OnAddContact(sender, e); }
private void ContactInformationOnDelete(ContactInformationEvents.OnDelete.ManageCampaignBooking e) { m_oContactView.DeActivateContact(); }