Exemple #1
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;
        }
Exemple #2
0
        private void cboCampaignList_EditValueChanged(object sender, EventArgs e)
        {
            if (cboCampaignList.Text.Length < 1 || m_CampaignListModule == null || cboCampaignList.EditValue == null)
                return;

            WaitDialog.Show("Loading data ...");
            string cboCampaignListEditValueToString = cboCampaignList.EditValue.ToString();
            string[] _ids = cboCampaignListEditValueToString.Split(';');
            m_oCallLogBar.EndClock();
            m_oCallLogBar.Default();
            m_oCallViewBar.PhoneCallEnded();
            m_oCallViewBar.Default();
            this.SetStateCallerBarGroup(false);
            pcCampaignBooking.Controls.Clear();
            m_CampaignBookingModule = null;

            if (m_CampaignListModule != null) {
                string[] _customer = _ids[0].Split('|');
                string[] _campaign = _ids[1].Split('|');
                string[] _sub_campaign = _ids[2].Split('|');

                m_CustomerId = Convert.ToInt32(_customer[0]);
                m_CustomerName = _customer[1].ToString();
                m_CampaignId = Convert.ToInt32(_campaign[0]);
                m_CampaignName = _campaign[1].ToString();
                m_SubCampaignId = Convert.ToInt32(_sub_campaign[0]);
                m_SubCampaignName = _sub_campaign[1].ToString();

                m_BrightSalesProperty.CommonProperty.CustomerId = m_CustomerId;
                m_BrightSalesProperty.CommonProperty.CustomerName = m_CustomerName;
                m_BrightSalesProperty.CommonProperty.CampaignId = m_CampaignId;
                m_BrightSalesProperty.CommonProperty.CampaignName = m_CampaignName;
                m_BrightSalesProperty.CommonProperty.SubCampaignId = m_SubCampaignId;
                m_BrightSalesProperty.CommonProperty.SubCampaignName = m_SubCampaignName;

                m_CampaignListModule.LoadSelectedCampaign(cboCampaignListEditValueToString);
                if (m_CampaignBookingModule != null) {
                    WaitDialog.Close();
                    WaitDialog.Show("Checking/saving for changes.");
                    this.CampaignBookingDataSaved();
                    m_CampaignBookingModule.SaveCampaignBookingOnWorkAnotherCompany();
                    WaitDialog.Close();
                    WaitDialog.Show("Loading data ...");
                }

                m_oFollowUp.SubCampaignId = m_SubCampaignId;
                m_oFollowUp.Prepare();
                m_oFollowUp.LoadSalesUsers();
                m_oFollowUp.SetCampaignInfo(m_CustomerName, m_CampaignName, m_SubCampaignName);

                if (m_MyFollowUpModule != null)
                    m_MyFollowUpModule.SetCampaignInfo(m_CampaignName);

                m_BrightSalesProperty.CommonProperty.IsEmptyCampaignList = true;
                if (m_CampaignListModule.CampaignListHasRows())
                    m_BrightSalesProperty.CommonProperty.IsEmptyCampaignList = false;

                //m_EventBus.Notify(new CampaignListEvents.GetLatestProperties() { ForWorkModePurpose = false });
                if (m_OutsideModuleCall) {
                    m_OutsideModuleCall = false;
                    if (m_CampaignListModule != null) {
                        m_CampaignListModule.CompanySetFocus(m_LoadSpecificDataAccountId);
                        m_EventBus.Notify(new CampaignListEvents.GetLatestProperties() { ForWorkModePurpose = false });
                        m_CampaignListModule.WorkCompanyOnCampaignListLoad();
                        m_EventBus.Notify(new FrmSalesConsultantEvents.OnSubCampaignChange());
                    }

                    if (m_CampaignBookingModule != null)
                        m_CampaignBookingModule.ContactSetFocus(m_LoadSpecificDataContactId);
                }
                else if (!m_BrightSalesProperty.CommonProperty.IsEmptyCampaignList && tcSalesConsultant.SelectedTabPage == tabCampaignBooking) {
                    m_EventBus.Notify(new CampaignListEvents.GetLatestProperties() { ForWorkModePurpose = false });
                    m_CampaignListModule.WorkCompanyOnCampaignListLoad();
                    m_EventBus.Notify(new FrmSalesConsultantEvents.OnSubCampaignChange());
                }
                else
                    m_EventBus.Notify(new FrmSalesConsultantEvents.TryFocusRowChange());

                if (tcSalesConsultant.SelectedTabPage.Name.Equals(tabCallLogs.Name))
                {
                    this.InitializeCallLogs();
                }
                else if (tcSalesConsultant.SelectedTabPage.Name.Equals(tabViewMessageLogs.Name))
                {
                    this.InitializeViewMessageLogs();
                }
                else if (tcSalesConsultant.SelectedTabPage.Name.Equals(tabMyFollowUp.Name))
                {
                    //this.InitializeViewMessageLogs();
                    m_MyFollowUpModule.UpdateGrid();
                }
                else if (tcSalesConsultant.SelectedTabPage.Name.Equals(tabDashboard.Name))
                {
                    this.InitializeDashboard();

                }

                /** /
                CampaignList.CampaignListArgs _args = m_CampaignListModule.GetCampaignListArgs();
                if (m_CampaignListModule.CampaignListHasRows())
                {
                    m_EventBus.Notify(new SalesConsultantSubCampaignChangeEventNotifier());
                    //m_CampaignListModule.SubCampaignList_OnEditvalueChanged(sender, _args);
                    if (tcSalesConsultant.SelectedTabPage == tabCampaignBooking)
                        m_CampaignListModule.WorkCompanyOnCampaignListLoad();
                }
                else
                {
                    //_args.IsEmptyList = true;
                    m_EventBus.Notify(new SalesConsultantSubCampaignChangeEventNotifier());
                    //m_CampaignListModule.SubCampaignList_OnEditvalueChanged(sender, _args);
                    //m_CampaignListModule.SubCampaignList_OnEditvalueChanged(sender, m_CampaignListModule.GetCampaignListArgs());
                }
                /**/
            }
            WaitDialog.Close();
        }
Exemple #3
0
 //private void m_CampaignBookingModule_LoadCampaignBookingData_Initiated(object sender, ManageCampaignBooking.LoadCampaignBookingDataArgs e)
 //{
 //    m_oCallViewBar.AccountId = e.CampaignBookingArgs.CampaignBookingAppointment.AccountId;
 //    m_oCallViewBar.SubCampaignId = e.CampaignBookingArgs.CampaignBookingAppointment.SubCampaignId;
 //    m_oCallViewBar.FinalListId = e.CampaignBookingArgs.CampaignBookingAppointment.FinalListId;
 //    m_oCallViewBar.CompanyBoardNo = e.CampaignBookingArgs.CampaignBookingAppointment.CompanyBoardNumber;
 //    m_oCallViewBar.ContactPerson = e.ContactPerson;
 //    m_oCallViewBar.Default();
 //    m_oCallViewBar.SetContactNumbers();
 //    m_oCallLogBar.AccountId = e.CampaignBookingArgs.CampaignBookingAppointment.AccountId;
 //    m_oCallLogBar.SubCampaignId = e.CampaignBookingArgs.CampaignBookingAppointment.SubCampaignId;
 //    m_oCallLogBar.Default();
 //    m_oFollowUp.AccountId = e.CampaignBookingArgs.CampaignBookingAppointment.AccountId;
 //    m_oFollowUp.SetCompanyInfo();
 //}
 private void m_CampaignBookingModule_oContactView_PopulateContactView_Initiated(object sender, ManageCampaignBooking.ContactViewPopulateContactView e)
 {
     m_oFollowUp.LoadContactPersons(e.ContactPersons);
     if (e.ContactPersons.Count > 0) {
         m_oCallViewBar.ContactPerson = e.ContactPersons[e.SelectedContactPersonIndex];
         if (!m_BrightSalesProperty.CommonProperty.OnCallMode)
             m_oCallViewBar.SetContactNumbers();
     }
 }
Exemple #4
0
        private void barButtonItemRefreshCampaignLists_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (this.CampaignBooking_DialogEditor_OnEditMode())
                return;

            if (m_CampaignListModule == null)
                return;

            //if (m_CampaignListModule.UserOnWorkMode()) {
            //    MessageBox.Show("You are currently working on a company. Please kindly close it first before refreshing the dropdown list.", "Bright Sales", MessageBoxButtons.OK, MessageBoxIcon.Information);
            //    return;
            //}
            //else

            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;
            }

            DialogResult _dlg = MessageBox.Show("Are you sure to refresh the dropdown list? This will close any subcampains you are working on.", "Bright Sales", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (_dlg == DialogResult.No)
                return;

            WaitDialog.Show(this.ParentForm, "Refreshing list...");
            if (m_CampaignBookingModule != null)
                m_CampaignBookingModule.SaveCampaignBookingOnWorkAnotherCompany();
            //m_RefreshSubCampaignList = true;
            //m_MyFollowUpModule = null;
            m_CampaignBookingModule = null;
            pcCampaignBooking.Controls.Clear();
            //pnlMyFollowups.Controls.Clear();
            barStaticItemCurrentWorkedCompany.Caption = "";

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

            this.LoadCampaignListSelection();
            this.SetFormControls(true);
            this.Focus();

            if (m_CampaignListModule != null)
                m_CampaignListModule.SetExtraDetailModuleAsReadOnly(false);

            //DAN: Reset variable value as when on call logs or events tab, it still show results even though no subcampaign select which is needed by the modules
            m_BrightSalesProperty.CommonProperty.SubCampaignId = 0;
            if (tcSalesConsultant.SelectedTabPage.Name.Equals(tabCallLogs.Name))
            {
                this.InitializeCallLogs();
            }
            else if (tcSalesConsultant.SelectedTabPage.Name.Equals(tabViewMessageLogs.Name))
            {
                this.InitializeViewMessageLogs();
            }
            else if (tcSalesConsultant.SelectedTabPage.Name.Equals(tabMyFollowUp.Name))
            {
                m_MyFollowUpModule.UpdateGrid();
            }

            //m_RefreshSubCampaignList = false;
            WaitDialog.Close();
        }
Exemple #5
0
        //private void m_CampaignBookingModule_UserWorkModeChanged(bool WorkModeState)
        //{
        //    if (m_CampaignBookingModule.ParentView == ManageCampaignBooking.eParentView.CampaignList)
        //        m_CampaignListModule.SetWorkModeState(WorkModeState);
        //    else if (m_CampaignBookingModule.ParentView == ManageCampaignBooking.eParentView.MyFollowUp)
        //        m_MyFollowUpModule.SetWorkModeState(WorkModeState);
        //}
        //private void m_CampaignBookingModule_CampaignBookingCallAttemptMade(object sender, EventArgs e)
        //{
        //    if (m_CampaignListModule != null)
        //        m_CampaignListModule.CallAttemptMade();
        //}
        //private void m_CampaignBookingModule_CallerViewCallLogAdded(object sender, EventArgs e)
        //{
        //    //if (m_CampaignListModule != null)
        //    //    m_CampaignListModule.ReloadCallLogTab();
        //}
        //private void m_CampaignBookingModule_CallLogAfterDelete(object sender, ManageCampaignBooking.CallLogAfterDeleteEvent e)
        //{
        //    if (m_CampaignListModule != null)
        //        m_CampaignListModule.DeleteCallLog(e.DeletedId);
        //}
        private void m_CampaignBookingModule_ModuleSetStateInitiated(object sender, ManageCampaignBooking.ModuleSetStateArgs e)
        {
            if (m_BrightSalesProperty.CampaignBooking.Mode == SelectionProperty.CampaignBookingMode.Browse)
                this.m_oCallLogBar_EndCall_Initiated(null, null);

            else if (m_BrightSalesProperty.CampaignBooking.Mode == SelectionProperty.CampaignBookingMode.Work)
                m_oCallViewBar.SetContactNumbers();

            m_oCallViewBar.SetState();
        }
Exemple #6
0
        private void m_CampaignBookingModule_ContactView_OnContactSaved(object sender, ManageCampaignBooking.ContactViewOnContactSavedArgs e)
        {
            /*
             * https://docs.google.com/a/myndconsulting.com/spreadsheet/ccc?key=0Ah8Xvlc0xaJKdG1CbEJEbWdYTkdPanpqeHJWNGtmYXc#gid=0
             */
            //this.SaveCompanyAppointment();

            m_oFollowUp.UpdateContactPerson(e.ContactPerson);
            m_oFollowUp.ContactPerson = e.ContactPerson;
            m_oCallViewBar.ContactPerson = e.ContactPerson;
            m_oCallLogBar.ContactPerson = e.ContactPerson;
            if (!m_BrightSalesProperty.CommonProperty.OnCallMode)
                m_oCallViewBar.SetContactNumbers();

            //if (m_CampaignBookingModule.ParentView == ManageCampaignBooking.eParentView.CampaignList)
            if (m_BrightSalesProperty.CampaignBooking.ParentView == SelectionProperty.ParentView.CampaignList)
                m_CampaignListModule.UpdateContactData(e.ContactPerson.id);
        }
Exemple #7
0
        //private bool m_CampaignBookingModule_EventFollowupLog_CanWorkOnCompany()
        //{
        //    if (this.CampaignBooking_DialogEditor_OnEditMode()) {
        //        NotificationDialog.Warning("Bright Sales", "Dialog on edit mode.");
        //        return false;
        //    }
        //    else if (m_BrightSalesProperty.CommonProperty.OnCallMode)
        //    {
        //        NotificationDialog.Warning("Bright Sales", "Currently on call mode.");
        //        return false;
        //    }
        //    else if (!m_BrightSalesProperty.CommonProperty.CallLogSaved)
        //    {
        //        NotificationDialog.Warning("Bright Sales", "Please save your call log first.");
        //        return false;
        //    }
        //    return true;
        //}
        //private bool m_CampaignBookingModule_EventFollowupLog_UserOnCallOrHasPendingCallLog()
        //{
        //    if (m_BrightSalesProperty.CommonProperty.OnCallMode || !m_BrightSalesProperty.CommonProperty.CallLogSaved) {
        //        NotificationDialog.Information("Bright Sales", "A call is currently in progress or a pending call log needs to be saved first.");
        //        return true;
        //    }
        //    return false;
        //}
        //public void m_CampaignBookingModule_EventFollowupLog_EventLog_OnSave(FollowUpEditor.btnSaveOnClickArgs e)
        //{
        //    if (m_CampaignListModule != null)
        //        m_CampaignListModule.ReloadCallLogTab();
        //}
        //private void m_CampaignBookingModule_OnSave(object sender, ManageCampaignBooking.CampaignBookingArgs e)
        //{
        //    this.CampaignBookingDataSaved();
        //    this.SetStateCallerBarGroup(false);
        //    if (m_CampaignBookingModule.ParentView == ManageCampaignBooking.eParentView.CampaignList) {
        //        //m_CampaignListModule.SaveCompanyAppointment(e.CampaignBookingAppointment);
        //        m_CampaignListModule.SetCompanyDetails(e.CampaignBookingAppointment.AccountId);
        //        m_CampaignListModule.ReleaseCurrentCompanyLock();
        //    }
        //    else if (m_CampaignBookingModule.ParentView == ManageCampaignBooking.eParentView.MyFollowUp) {
        //        m_MyFollowUpModule.SaveCompanyAppointment(e.CampaignBookingAppointment);
        //        m_MyFollowUpModule.ReleaseCurrentCompanyLock();
        //    }
        //    m_oCallLogBar.EndClock();
        //    m_oCallLogBar.Default();
        //    m_oCallViewBar.PhoneCallEnded();
        //    m_oCallViewBar.Default();
        //}
        //private bool m_CampaignBookingModule_CallLogBar_IsCallLogSaved()
        //{
        //    return m_BrightSalesProperty.CallLogSaved;
        //}
        //private bool m_CampaignBookingModule_SalesUser_OnCallMode()
        //{
        //    if (m_BrightSalesProperty.OnCallMode)
        //        return true;
        //    return false;
        //}
        private void m_CampaignBookingModule_ContactView_FocusedRowChanged(object sender, ManageCampaignBooking.ContactViewFocusedRowChangedArgs e)
        {
            if (!m_BrightSalesProperty.CommonProperty.OnCallMode)
            {
                m_oCallViewBar.ContactPerson = e.ContactPerson;
                m_oFollowUp.ContactPerson = e.ContactPerson;

                if (m_oCallLogRemarksBar.Visible == false) {
                    m_oCallLogBar.ContactPerson = e.ContactPerson;
                    m_oCallLogBar.Default();
                }
                m_oCallViewBar.SetContactNumbers();
                m_oFollowUp.LoadSelectedContact();

                if (e.ContactPerson != null)
                    btnOpenFollowUpWindow.Enabled = true;
                else
                    btnOpenFollowUpWindow.Enabled = false;
            }
        }
Exemple #8
0
        private void m_CampaignBookingModule_CampaignExtraDetail_OnContactSaved(object sender, ManageCampaignBooking.CampaignExtraDetailOnContactSavedArgs e)
        {
            /*
             * https://docs.google.com/a/myndconsulting.com/spreadsheet/ccc?key=0Ah8Xvlc0xaJKdG1CbEJEbWdYTkdPanpqeHJWNGtmYXc#gid=0
             */
            //this.SaveCompanyAppointment();

            m_oFollowUp.UpdateContactPerson(e.ContactPerson);
            m_oFollowUp.ContactPerson = e.ContactPerson;
            m_oCallViewBar.ContactPerson = e.ContactPerson;
            m_oCallLogBar.ContactPerson = e.ContactPerson;
            if (!m_BrightSalesProperty.CommonProperty.OnCallMode)
                m_oCallViewBar.SetContactNumbers();

            //if (m_CampaignBookingModule.ParentView == ManageCampaignBooking.eParentView.CampaignList)
            if (m_BrightSalesProperty.CampaignBooking.ParentView == SelectionProperty.ParentView.CampaignList)
                m_CampaignListModule.UpdateContactData(e.ContactPerson.id);

            //m_oFollowUp.UpdateContactPerson(e.ContactPerson);
            //m_oCallViewBar.ContactPerson = e.ContactPerson;
            //m_oCallViewBar.SetContactNumbers();

            //if (!string.IsNullOrEmpty(e.ContactPerson.direct_phone))
            //    m_oCallViewBar.SetStateCallDirect = true;
            //else
            //    m_oCallViewBar.SetStateCallDirect = false;

            //if (!string.IsNullOrEmpty(e.ContactPerson.mobile))
            //    m_oCallViewBar.SetStateCallMoBile = true;
            //else
            //    m_oCallViewBar.SetStateCallMoBile = false;
        }
Exemple #9
0
        private void InitializeCampaignBookingModule()
        {
            /**
             * if already added to the tab, just bypass
             */
            if (m_oCallViewBar != null)
                m_oCallViewBar.Enabled = true;
            if (m_CampaignBookingModule != null) {
                m_CampaignBookingModule.EnableCampaignBooking();
                return;
            }

            /**
             * https://brightvision.jira.com/browse/PLATFORM-2756
             * DAN 4.15.13: Enable custom header buttons Unhide All
             */
            tcSalesConsultant.CustomHeaderButtons[0].Enabled = true;
            tcSalesConsultant.CustomHeaderButtons[0].Visible = true;
            pcCampaignBooking.Controls.Clear();
            m_CampaignBookingModule = new ManageCampaignBooking() {
                Dock = DockStyle.Fill
            };

            //m_CampaignBookingModule.GetCampaignListArgs += new ManageCampaignBooking.GetCampaignListArgsHandler(m_CampaignBookingModule_GetCampaignListArgs);
            m_CampaignBookingModule.SetCompanyModificationInfo += new ManageCampaignBooking.SetCompanyModificationInfoHandler(m_CampaignBookingModule_SetCompanyModificationInfo);
            //m_CampaignBookingModule.CampaignBookingCallAttemptMade += new ManageCampaignBooking.CampaignBookingCallAttemptMadeEventHander(m_CampaignBookingModule_CampaignBookingCallAttemptMade);
            //m_CampaignBookingModule.CallerViewCallLogAdded += new ManageCampaignBooking.CallerViewCallLogAddedEventHandler(m_CampaignBookingModule_CallerViewCallLogAdded);
            m_CampaignBookingModule.ModuleSetStateInitiated += new ManageCampaignBooking.ModuleSetStateInitiatedEventHandler(m_CampaignBookingModule_ModuleSetStateInitiated);
            m_CampaignBookingModule.ContactView_FocusedRowChanged += new ManageCampaignBooking.ContactViewFocusedRowChangedEventHandler(m_CampaignBookingModule_ContactView_FocusedRowChanged);
            m_CampaignBookingModule.ContactView_OnContactSaved += new ManageCampaignBooking.ContactViewOnContactSavedEventHandler(m_CampaignBookingModule_ContactView_OnContactSaved);
            m_CampaignBookingModule.CampaignExtraDetail_OnContactSaved += new ManageCampaignBooking.CampaignExtraDetailOnContactSavedEventHandler(m_CampaignBookingModule_CampaignExtraDetail_OnContactSaved);
            m_CampaignBookingModule.oContactView_PopulateContactView_Initiated += new ManageCampaignBooking.ContactViewPopulateContactViewInitiatedEventHandler(m_CampaignBookingModule_oContactView_PopulateContactView_Initiated);
            //m_CampaignBookingModule.EventFollowupLog_CanWorkOnCompany += new ManageCampaignBooking.EventFollowupLogCanWorkOnCompanyEventHandler(m_CampaignBookingModule_EventFollowupLog_CanWorkOnCompany);
            m_CampaignBookingModule.EventFollowupLog_WorkNurtureEvent += new ManageCampaignBooking.EventFollowupLogWorkNurtureEventEventHandler(m_CampaignBookingModule_EventFollowupLog_WorkNurtureEvent);
            m_CampaignBookingModule.DialogOnEditMode += new ManageCampaignBooking.DialogOnEditModeEventHandler(m_CampaignBookingModule_DialogOnEditMode);

            //m_CampaignBookingModule.SalesUser_OnCallMode += new ManageCampaignBooking.SalesUserOnCallModeEventHandler(m_CampaignBookingModule_SalesUser_OnCallMode);
            //m_CampaignBookingModule.GetMyFollowUpCampaignBookingData += new ManageCampaignBooking.GetMyFollowUpAppointmentDataHandler(m_CampaignBookingModule_GetMyFollowUpCampaignBookingData);
            //m_CampaignBookingModule.btnSave_OnClick += new ManageCampaignBooking.btnSaveOnClickHandler(m_CampaignBookingModule_btnSave_OnClick);
            //m_CampaignBookingModule.CallLogAfterDelete += new ManageCampaignBooking.CallLogAfterDeleteEventHandler(m_CampaignBookingModule_CallLogAfterDelete);
            //m_CampaignBookingModule.LoadCampaignBookingData_Initiated += new ManageCampaignBooking.LoadCampaignBookingDataInitiatedEventHandler(m_CampaignBookingModule_LoadCampaignBookingData_Initiated);
            //m_CampaignBookingModule.btnCancel_OnClick += new ManageCampaignBooking.btnCancelOnClickEventHandler(m_CampaignBookingModule_btnCancel_OnClick);
            //m_CampaignBookingModule.EventFollowupLog_CompanyRemark_Saved += new ManageCampaignBooking.EventFollowupLogCompanyRemarkSavedEventHandler(m_CampaignBookingModule_EventFollowupLog_CompanyRemark_Saved);
            //m_CampaignBookingModule.CallLogBar_IsCallLogSaved += new ManageCampaignBooking.CallLogBarIsCallLogSavedEventHandler(m_CampaignBookingModule_CallLogBar_IsCallLogSaved);
            //m_CampaignBookingModule.OnSave += new ManageCampaignBooking.OnSaveEventHandler(m_CampaignBookingModule_OnSave);
            //m_CampaignBookingModule.EventFollowupLog_UserOnCallOrHasPendingCallLog += new ManageCampaignBooking.EventFollowupLogUserOnCallOrHasPendingCallLogEventHandler(m_CampaignBookingModule_EventFollowupLog_UserOnCallOrHasPendingCallLog);
            //m_CampaignBookingModule.EventFollowupLog_EventLog_OnSave += new ManageCampaignBooking.EventFollowupLogEventLogOnSaveEventHandler(m_CampaignBookingModule_EventFollowupLog_EventLog_OnSave);
            //m_CampaignBookingModule.SaveDialogAnswers += new ManageCampaignBooking.SaveDialogAnswersEventHandler(m_CampaignBookingModule_SaveDialogAnswers);
            //m_CampaignBookingModule.UserWorkModeChanged += new ManageCampaignBooking.UserWorkModeChangeEventHandler(m_CampaignBookingModule_UserWorkModeChanged);
            //m_CampaignBookingModule.CampaignListItemIsFirstRow += new ManageCampaignBooking.CampaignListItemIsFirstRowEventHandler(m_CampaignBookingModule_CampaignListItemIsFirstRow);
            //m_CampaignBookingModule.CampaignListItemIsLastRow += new ManageCampaignBooking.CampaignListItemIsLastRowEventHandler(m_CampaignBookingModule_CampaignListItemIsLastRow);
            //m_CampaignBookingModule.OnCompanyRelease += new ManageCampaignBooking.OnCompanyReleaseEventHandler(m_CampaignBookingModule_OnCompanyRelease);
            //m_CampaignBookingModule.btnClose_OnClick += new ManageCampaignBooking.btnCloseOnClickHandler(m_CampaignBookingModule_btnClose_OnClick);
            //m_CampaignBookingModule.btnPreviousRecord_OnClick += new ManageCampaignBooking.btnPreviousRecordOnClickHandler(m_CampaignBookingModule_btnPreviousRecord_OnClick);
            //m_CampaignBookingModule.btnNextRecord_OnClick += new ManageCampaignBooking.btnNextRecordOnClickHandler(m_CampaignBookingModule_btnNextRecord_OnClick);
            //m_CampaignBookingModule.OnCompanyInformationSaved += new ManageCampaignBooking.CompanyInformationSavedEventHandler(m_CampaignBookingModule_OnCompanyInformationSaved);
            //m_CampaignBookingModule.OnCompanyInformationRefresh += new ManageCampaignBooking.CompanyInformationRefreshEventHandler(m_CampaignBookingModule_OnCompanyInformationRefresh);
            //m_CampaignBookingModule.GetCampaignListViewMode += new ManageCampaignBooking.GetCampaignListViewModeEventHandler(m_CampaignBookingModule_GetCampaignListViewMode);
            //m_CampaignBookingModule.btnWork_OnClick += new ManageCampaignBooking.btnWorkOnClickHandler(m_CampaignBookingModule_btnWork_OnClick);
            //m_CampaignBookingModule.CanWorkOnCompany += new ManageCampaignBooking.CanWorkOnCompanyEventHandler(m_CampaignBookingModule_CanWorkOnCompany);

            pcCampaignBooking.Controls.Add(m_CampaignBookingModule);
        }