Beispiel #1
0
 private void m_CampaignExtraDetail_tcCampaignExtraDetail_OnSelectedPageChange(object sender, CampaignExtraDetail.CampaignExtraDetailArgs e)
 {
 }
Beispiel #2
0
 private void SetCampaignExtraDetailSelectedPage(CampaignExtraDetail.eSelectedPage pSelectedPage)
 {
     if (tcSalesConsultant.SelectedTabPage.Equals(tabCampaignList))
     {
         if (m_CampaignListModule != null)
             m_CampaignListModule.SetCampaignExtraDetailSelectedPage(pSelectedPage);
     }
     else if (tcSalesConsultant.SelectedTabPage.Equals(tabCampaignBooking))
     {
         if (m_CampaignBookingModule != null)
             m_CampaignBookingModule.SetCampaignExtraDetailSelectedPage(pSelectedPage);
     }
 }
Beispiel #3
0
 //private void m_CampaignExtraDetail_CallLog_WorkNurtureEvent(MyFollowUps.CampaignBookingArgs e)
 //{
 //    if (CampaignExtraDetail_CallLog_WorkNurtureEvent != null)
 //        CampaignExtraDetail_CallLog_WorkNurtureEvent(e);
 //}
 private void m_CampaignExtraDetail_tcCampaignExtraDetail_OnSelectedPageChange(object sender, CampaignExtraDetail.CampaignExtraDetailArgs e)
 {
     /**
      * event raiser
      */
     if (tcCampaignExtraDetail_OnSelectedPageChange != null)
         tcCampaignExtraDetail_OnSelectedPageChange(sender, e);
 }
Beispiel #4
0
        private void InitializeCampaignListModule()
        {
            m_CampaignList = new CampaignList {
                Dock = DockStyle.Fill
            };
            m_CampaignList.btnReleaseLock_OnClick += new CampaignList.btnReleaseLockOnClickEventHandler(m_CampaignList_btnReleaseLock_OnClick);
            m_CampaignList.HasPendingCallAndLog += new CampaignList.HasPendingCallAndLogEventHandler(m_CampaignList_HasPendingCallAndLog);
            //m_CampaignList.CompanyOnWorkByAnotherConsultant += new CampaignList.CompanyOnWorkByAnotherConsultantEventHandler(m_CampaignList_CompanyOnWorkByAnotherConsultant);
            pnlCampaignList.Controls.Clear();
            pnlCampaignList.Controls.Add(m_CampaignList);

            m_CampaignExtraDetail = new CampaignExtraDetail(true) {
                CallingEnvironment = SelectionProperty.CallingEnvironment.CampaignList,
                Dock = DockStyle.Fill
            };

            //m_CampaignExtraDetail.CallLog_WorkNurtureEvent += new CampaignExtraDetail.CallLogWorkNurtureEventEventHandler(m_CampaignExtraDetail_CallLog_WorkNurtureEvent);
            pnlCampaignExtraDetail.Controls.Clear();
            pnlCampaignExtraDetail.Controls.Add(m_CampaignExtraDetail);

            #region Campaign List Subscribed Events
            //m_CampaignList.btnWorkOnCompany_OnClick += new CampaignList.btnWorkOnCompanyOnClickEventHandler(m_CampaignList_btnWorkOnCompany_OnClick);
            //m_CampaignList.AccountModificationInfoChange += new CampaignList.AccountModificationInfoChangeEventhandler(m_CampaignList_OnAccountModificationInfoChange);
            //m_CampaignList.gvCampaignList_OnDoubleClick += new CampaignList.gvCampaignListDoubleClickEventHandler(m_CampaignList_gvCampaignList_OnDoubleClick);
            //m_CampaignList.gvCampaignList_OnEnter += new CampaignList.gvCampaignListOnEnterEventHandler(m_CampaignList_gvCampaignList_OnEnter);
            m_CampaignList.gvCampaignList_OnFocusedRowChange += new CampaignList.gvCampaignListFocusedRowChangedEventHandler(m_CampaignList_gvCampaignList_OnFocusedRowChange);
            m_CampaignList.gvCampaignList_OnColumnFilterChange += new CampaignList.gvCampaignListColumnFilterChangedEventHandler(m_CampaignList_gvCampaignList_OnColumnFilterChange);
            m_CampaignList.btnRemoveCompany_OnClick += new CampaignList.btnRemoveCompanyOnClickEventHandler(m_CampaignList_btnRemoveCompany_OnClick);
            //m_CampaignList.cboSubCampaignList_OnEditValueChange += new CampaignList.cboSubCampaignListEditValueChangedHandler(m_CampaignList_cboSubCampaignList_OnEditValueChange);
            m_CampaignList.btnChangeView_OnClick += new CampaignList.btnChangeViewOnClickkEventHandler(m_CampaignList_btnChangeView_OnClick);
            //m_CampaignList.gvCampaignList_OnDataSourceChange += new CampaignList.gvCampaignListDataSourceChangedEventHandler(m_CampaignList_gvCampaignList_OnDataSourceChange);
            m_CampaignList.btnRefresh_OnClick += new CampaignList.btnRefreshOnClickkEventHandler(m_CampaignList_btnRefresh_OnClick);
            m_CampaignList.btnSaveAsNotQualified_OnClick += new CampaignList.btnSaveAsNotQualifiedOnClickEventHandler(m_CampaignList_btnSaveAsNotQualified_OnClick);
            m_CampaignList.OnCampaignListEmpty += new CampaignList.OnCampaignListEmptyEventHandler(m_CampaignList_OnCampaignListEmpty);
            //m_CampaignList.btnRefreshSubCampaigns_OnClick += new CampaignList.btnRefreshSubCampaignsOnClickEventHandler(m_CampaignList_btnRefreshSubCampaigns_OnClick);
            #endregion
            #region Campaign Extra Detail Subscribed Events
            m_CampaignExtraDetail.tcCampaignExtraDetail_OnSelectedPageChange += new CampaignExtraDetail.tcCampaignExtraDetailOnSelectedPageChangedHandler(m_CampaignExtraDetail_tcCampaignExtraDetail_OnSelectedPageChange);
            //m_CampaignExtraDetail.OnAddContact += new CampaignExtraDetail.OnAddContactHandler(m_CampaignExtraDetail_OnAddContact);
            //m_CampaignExtraDetail.OnSaveContact += new CampaignExtraDetail.OnSaveContactHandler(m_CampaignExtraDetail_OnSaveContact);
            //m_CampaignExtraDetail.OnCancelContact += new CampaignExtraDetail.OnCancelContactHandler(m_CampaignExtraDetail_OnCancelContact);
            //m_CampaignExtraDetail.OnDeleteContact += new CampaignExtraDetail.OnDeleteContactHandler(m_CampaignExtraDetail_OnDeleteContact);
            //m_CampaignExtraDetail.OnCompanyInformationSaved += new CampaignExtraDetail.CompanyInformationSavedEventHandler(m_CampaignExtraDetail_OnCompanyInformationSaved);
            //m_CampaignExtraDetail.CallLogAfterDelete += new CampaignExtraDetail.CallLogAfterDeleteEventHandler(m_CampaignExtraDetail_CallLogAfterDelete);
            #endregion

            /**
             * we will need to disable first the extra details,
             * since we currently dont have a selected subcamapign yet
             * at this point. extra detail will be enabled again after
             * selecting a new sub campaign.
             * enabled on method:
             * m_CampaignList_cboSubCampaignList_OnEditValueChange
             */
            m_CampaignExtraDetail.Enabled = false;
        }
Beispiel #5
0
 /** /
 public void SaveCompanyAppointment(SubCampaignAppointment pAccountAppointment)
 {
     m_CampaignList.SaveCompanyAppointment(pAccountAppointment);
 }
 /**/
 //public void SetWorkModeState(bool pWorkModeState)
 //{
 //    m_CampaignList.UserOnWorkMode = pWorkModeState;
 //}
 public void SetCampaignExtraDetailSelectedPage(CampaignExtraDetail.eSelectedPage pSelectedPage)
 {
     if (m_CampaignExtraDetail != null)
     //if (m_CampaignExtraDetail != null && m_CampaignList.HasAccountsAndContacts())
             m_CampaignExtraDetail.LoadSelectedPage(pSelectedPage);
 }
Beispiel #6
0
 public void SetCampaignExtraDetailSelectedPage(CampaignExtraDetail.eSelectedPage pSelectedPage)
 {
     if (m_CampaignExtraDetail != null && (oAppointment != null && oAppointment.AccountId > 0))
         m_CampaignExtraDetail.LoadSelectedPage(pSelectedPage);
 }
Beispiel #7
0
        public void InitializeCampaignBooking()
        {
            m_LoadingFromButtonPress = true;
            m_IsReleaseCancel = false;
            #region Original Code
            //public void LoadCampaignBookingData(bool InitializeOnly = false)
            //this.InitializeMySalesScriptView();
            //this.InitializeContactInformationForm();
            //this.InitializeCompanyInformationForm();
            //this.InitializeStandardQuestionView();
            //this.InitializeCompanyWebsiteView();
            //this.InitializeGoogleSearchView();
            //this.InitializeCollectedDataView();
            //this.InitializeGeoMapContactView();
            #endregion

            #region Contact View
            m_ContactViewOnInitialize = true;
            if (m_oContactView == null) {
                m_oContactView = new ContactView();
                m_oContactView.Dock = DockStyle.Fill;
                m_oContactView.OnContactSaved += new ContactView.ContactSavedEventHandler(m_oContactView_OnContactSaved);
                m_oContactView.GridControlMouseDown += new MouseEventHandler(m_oContactView_GridControlMouseDown);
                m_oContactView.GridControlMouseUp += new MouseEventHandler(m_oContactView_GridControlMouseUp);
                m_oContactView.GridControlKeyUp += new KeyEventHandler(m_oContactView_GridControlKeyUp);
                m_oContactView.GridControlKeyDown += new KeyEventHandler(m_oContactView_GridControlKeyDown);
                m_oContactView.ActiveChanged += new ContactView.ActiveChangedEventHander(m_oContactView_ActiveChanged);
                m_oContactView.PopulateContactView_Initiated += new ContactView.PopulateContactViewInitiatedEventHandler(m_oContactView_PopulateContactView_Initiated);
                pnlContactView.Controls.Clear();
                pnlContactView.Controls.Add(m_oContactView);
            }
            m_ContactViewOnInitialize = false;
            #endregion

            #region Dialog Editor
            if (m_oDialogEditor == null) {
                m_oDialogEditor = new DialogEditor() {
                    Dock = DockStyle.Fill
                };
                pnlDialogEditor.Controls.Clear();
                pnlDialogEditor.Controls.Add(m_oDialogEditor);
                m_oContactView.DialogEditorModule = m_oDialogEditor;
            }
            #endregion

            #region Event Followup Log
            if (m_oEventFollowupLog == null) {
                m_oEventFollowupLog = new EventFollowUpLog() {
                    AllowSaving = true,
                    Dock = DockStyle.Fill
                };
                pnlEventFollowUpLog.Controls.Clear();
                pnlEventFollowUpLog.Controls.Add(m_oEventFollowupLog);
            }
            #endregion

            #region Campaign Extra Detail
            if (m_CampaignExtraDetail == null) {
                m_CampaignExtraDetail = new CampaignExtraDetail() {
                    CallingEnvironment = SelectionProperty.CallingEnvironment.CampaignBooking
                };

                m_CampaignExtraDetail.Dock = DockStyle.Fill;
                pnlCampaignExtraDetail.Controls.Clear();
                pnlCampaignExtraDetail.Controls.Add(m_CampaignExtraDetail);
            }
            #endregion
        }