示例#1
0
 private void m_CampaignListModule_CallLogAfterDelete(object sender, ManageCampaignList.CallLogAfterDeleteEventArgs e)
 {
     if (m_CampaignBookingModule != null)
         m_CampaignBookingModule.DeleteCallLog(e.DeletedId);
 }
示例#2
0
        private void barButtonLogout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (this.CampaignBooking_DialogEditor_OnEditMode())
                return;

            if (m_BrightSalesProperty.CommonProperty.OnCallMode) {
                NotificationDialog.Information("Bright Sales", "Call is already in progress. Please hang-up and save call log first.");
                return;
            }
            else if (!m_BrightSalesProperty.CommonProperty.CallLogSaved) {
                NotificationDialog.Error("Bright Sales", "Please kindly save your call log first.");
                return;
            }

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

            if (!this.LogoutApplication())
                return;

            //m_CampaignListModule.ReleaseCurrentCompanyLock();
            Business.ObjectLocking.ReleaseUserLock();
            this.Hide();
            m_LogoutInitiated = true;
            m_CampaignListModule = null;
            m_MyFollowUpModule = null;
            m_CampaignBookingModule = null;
            m_ReportModule = null;
            pcCampaignBooking.Controls.Clear();
            pnlMyFollowups.Controls.Clear();
            pnlReports.Controls.Clear();

            m_oCallLogBar.EndClock();
            m_oCallLogBar.Default();
            m_oCallLogBar.UnRegisterPhone();
            m_oCallViewBar.PhoneCallEnded();
            m_oCallViewBar.Default();
            m_oFollowUpBar.Clear();
            this.SetStateCallerBarGroup(false);

            //m_oCallLogBar.Default();
            //m_oCallViewBar.Default();
            //m_oCallLogBar.Visible = false;
            //m_oCallViewBar.Visible = true;
            //pnlToggleBar.Enabled = false;
            //btnOpenFollowUpWindow.Enabled = false;
            m_BrightSalesProperty.CommonProperty.SubCampaignId = 0;
            tcSalesConsultant.SelectedTabPage = tabCampaignList;
            this.SetFormControls(false);
            this.LoadUserLoginForm();
            m_LogoutInitiated = false;
        }
示例#3
0
        private void InitializeCampaignListModule()
        {
            //if (m_CampaignListModule != null && !m_RefreshSubCampaignList)
            if (m_CampaignListModule != null) {
                m_CampaignListModule.InitializeModules();
                return;
            }

            WaitDialog.Show(this, "Loading components.");
            m_CampaignListModule = new ManageCampaignList();

            #region Event Subscriptions
            #region Campaign List Module
            //m_CampaignListModule.btnWorkOnCompany_OnClick += new ManageCampaignList.btnWorkOnCompanyOnClickEventHandler(m_CampaignList_btnWorkOnCompany_OnClick);
            //m_CampaignListModule.OnAccountModificationInfoChange += new ManageCampaignList.AccountModificationInfoChangeEventhandler(m_CampaignList_AccountModificationInfoChange);
            //m_CampaignListModule.gvCampaignList_OnDoubleClick += new ManageCampaignList.gvCampaignListDoubleClickEventHandler(m_CampaignList_gvCampaignList_OnDoubleClick);
            //m_CampaignListModule.gvCampaignList_OnEnter += new ManageCampaignList.gvCampaignListOnEnterEventHandler(m_CampaignList_gvCampaignList_OnEnter);
            m_CampaignListModule.gvCampaignList_OnFocusedRowChange += new ManageCampaignList.gvCampaignListFocusedRowChangedEventHandler(m_CampaignList_gvCampaignList_OnFocusedRowChange);
            m_CampaignListModule.gvCampaignList_OnColumnFilterChange += new ManageCampaignList.gvCampaignListColumnFilterChangedEventHandler(m_CampaignList_gvCampaignList_OnColumnFilterChange);
            m_CampaignListModule.btnRemoveCompany_OnClick += new ManageCampaignList.btnRemoveCompanyOnClickEventHandler(m_CampaignList_btnRemoveCompany_OnClick);
            m_CampaignListModule.cboSubCampaignList_OnEditValueChange += new ManageCampaignList.cboSubCampaignListEditValueChangedHandler(m_CampaignList_cboSubCampaignList_OnEditValueChange);
            m_CampaignListModule.btnSaveAsNotQualified_OnClick += new ManageCampaignList.btnSaveAsNotQualifiedOnClickEventHandler(m_CampaignList_btnSaveAsNotQualified_OnClick);
            m_CampaignListModule.CampaignList_OnCampaignListEmpty += new ManageCampaignList.CampaignList_OnCampaignListEmptyEventHandler(m_CampaignListModule_CampaignList_OnCampaignListEmpty);
            m_CampaignListModule.btnRefreshSubCampaigns_OnClick += new ManageCampaignList.btnRefreshSubCampaignsOnClickEventHandler(m_CampaignListModule_btnRefreshSubCampaigns_OnClick);
            m_CampaignListModule.CampaignList_btnReleaseLock_OnClick += new ManageCampaignList.CampaignList_btnReleaseLockOnClickEventHandler(m_CampaignListModule_CampaignList_btnReleaseLock_OnClick);
            m_CampaignListModule.HasPendingCallAndLog += new ManageCampaignList.HasPendingCallAndLogEventHandler(m_CampaignListModule_HasPendingCallAndLog);
            //m_CampaignListModule.CampaignList_CompanyOnWorkByAnotherConsultant += new ManageCampaignList.CampaignListCompanyOnWorkByAnotherConsultantEventHandler(m_CampaignListModule_CampaignList_CompanyOnWorkByAnotherConsultant);
            //m_CampaignListModule.CampaignExtraDetail_CallLog_WorkNurtureEvent += new ManageCampaignList.CampaignExtraDetailCallLogWorkNurtureEventEventHandler(m_CampaignListModule_CampaignExtraDetail_CallLog_WorkNurtureEvent);
            #endregion

            #region Campaign Extra Detail
            //m_CampaignListModule.CampaignExtraDetail_OnCompanyInformationSaved += new ManageCampaignList.CampaignExtraDetail_OnCompanyInformationSavedEventHandler(m_CampaignListModule_CampaignExtraDetail_OnCompanyInformationSaved);
            m_CampaignListModule.tcCampaignExtraDetail_OnSelectedPageChange += new ManageCampaignList.tcCampaignExtraDetailOnSelectedPageChangedHandler(m_CampaignExtraDetail_tcCampaignExtraDetail_OnSelectedPageChange);
            m_CampaignListModule.CallLogAfterDelete += new ManageCampaignList.CallLogAfterDeleteEventHandler(m_CampaignListModule_CallLogAfterDelete);
            m_CampaignListModule.CampaignExtraDetail_OnContactSaved += new ManageCampaignList.CampaignExtraDetailOnContactSavedEventHandler(m_CampaignListModule_CampaignExtraDetail_OnContactSaved);
            #endregion
            #endregion

            //m_CampaignList.Dock = DockStyle.Fill;
            //m_CampaignListModule.pnlCampaignList.Controls.Clear();
            //m_CampaignListModule.pnlCampaignList.Controls.Add(m_CampaignList);

            //m_CampaignExtraDetail.Dock = DockStyle.Fill;
            //m_CampaignListModule.pnlCampaignExtraDetail.Controls.Clear();
            //m_CampaignListModule.pnlCampaignExtraDetail.Controls.Add(m_CampaignExtraDetail);

            m_CampaignListModule.Dock = DockStyle.Fill;
            pcCompanyContact.Controls.Clear();
            pcCompanyContact.Controls.Add(m_CampaignListModule);
            WaitDialog.Close();

            //if (m_objFrmManageCompanyContact != null)
            //    return;

            //WaitDialog.Show(this.ParentForm, ("Loading components.");
            //m_objFrmManageCompanyContact = new ManageCompanyContact(this);
            //m_objFrmManageCompanyContact.Dock = DockStyle.Fill;
            //pcCompanyContact.Controls.Clear();
            //pcCompanyContact.Controls.Add(m_objFrmManageCompanyContact);
            //WaitDialog.Close();
        }