コード例 #1
0
        private void _control_btnSave_OnClick(object sender, EventFollowUpLogEvents.OnSaveArguments e)
        {
            this.PopulateEventFollowUpLogView(e.EventLog.id);
            m_EventBus.Notify(new EventFollowUpLogEvents.OnSave() {
                OnSaveArgs = e
            });

            //if (EventLog_OnSave != null)
            //    EventLog_OnSave(e);
        }
コード例 #2
0
        private void m_Editor_btnSave_OnClick(object sender, EventFollowUpLogEvents.OnSaveArguments e)
        {
            m_EventBus.Notify(new FollowUpBarEvents.OnSave());

            //if (btnSave_OnClick != null)
            //    btnSave_OnClick();
        }
コード例 #3
0
        private void EventLogWorkNurtureEvent(EventFollowUpLogEvents.OnWorkNurtureEvent e)
        {
            if (e == null)
                return;

            using (BrightPlatformEntities _efDbContext = new BrightPlatformEntities(UserSession.EntityConnection)) {
                sub_campaign_account_lists _item = _efDbContext.sub_campaign_account_lists.FirstOrDefault(i =>
                    i.account_id == e.OnWorkArgs.oAppointment.AccountId &&
                    i.final_list_id == e.OnWorkArgs.oAppointment.FinalListId
                );
                if (_item != null)
                    _efDbContext.Detach(_item);

                if (_item.locked && _item.locked_by != UserSession.CurrentUser.UserId) {
                    user _user = _efDbContext.users.FirstOrDefault(i => i.id == _item.locked_by);
                    if (_user != null)
                        _efDbContext.Detach(_user);

                    NotificationDialog.Error("Bright Sales", string.Format("You cannot work on this follow up.{0}This follow up is currently worked by{0}{1}", Environment.NewLine, _user.fullname));
                    return;
                }
            }

            this.LoadSpecificData(e.OnWorkArgs);
        }
コード例 #4
0
        private void m_oFollowUp_btnSave_OnClick(object sender, EventFollowUpLogEvents.OnSaveArguments e)
        {
            /*
             * https://docs.google.com/a/myndconsulting.com/spreadsheet/ccc?key=0Ah8Xvlc0xaJKdG1CbEJEbWdYTkdPanpqeHJWNGtmYXc#gid=0
             */
            this.SaveCompanyAppointment();
            if(m_CampaignBookingModule != null)
                m_CampaignBookingModule.UpdateContactViewLastUser();

            m_oCallLogBar.Default();
            m_oCallViewBar.Default();

            if (m_CampaignBookingModule != null)
                m_CampaignBookingModule.m_oFollowUp_btnSave_OnClick();

            if (m_CampaignListModule != null)
                m_CampaignListModule.ReloadCallLogTab();
        }
コード例 #5
0
 private void EventLogOnSave(EventFollowUpLogEvents.OnSave e)
 {
     if (m_CampaignListModule != null)
         m_CampaignListModule.ReloadCallLogTab();
 }
コード例 #6
0
 private void EventLogAfterDelete(EventFollowUpLogEvents.AfterDelete e)
 {
     if (m_CampaignListModule != null)
         m_CampaignListModule.DeleteCallLog(e.DeletedCallLogId);
 }
コード例 #7
0
 private void CompanyRemarksSaved(EventFollowUpLogEvents.CompanyRemarksSaved.FrmSalesConsultant e)
 {
     this.SaveCompanyAppointment();
 }
コード例 #8
0
 private void CompanyRemarskSaved(EventFollowUpLogEvents.CompanyRemarksSaved.ManageCampaignBooking e)
 {
     if (m_CampaignExtraDetail != null) {
         if (m_CampaignExtraDetail.CompanyInformation_AccountId == m_BrightSalesProperty.CommonProperty.AccountId &&
             m_CampaignExtraDetail.CompanyInformation_FinalListId == m_BrightSalesProperty.CommonProperty.FinalListId)
             m_CampaignExtraDetail.SetCompanyRemarks(e.CompanyRemarks);
     }
 }
コード例 #9
0
        private void EventLogSelectContactGridMenuClicked(EventFollowUpLogEvents.OnSelectContactGridMenuClick e)
        {
            if (m_oDialogEditor.OnEditMode) {
                if (DialogOnEditMode != null)
                    DialogOnEditMode();

                return;
            }

            if (m_oContactView != null)
                m_oContactView.ContactSetFocus(e.ContactId);
        }