Ejemplo n.º 1
0
        private void CompanyInformationOnSave(CompanyInformationEvents.OnSave.FrmSalesConsultant e)
        {
            /*
             * https://docs.google.com/a/myndconsulting.com/spreadsheet/ccc?key=0Ah8Xvlc0xaJKdG1CbEJEbWdYTkdPanpqeHJWNGtmYXc#gid=0
             */
            //this.SaveCompanyAppointment();
            if (m_CampaignBookingModule != null)
                m_CampaignBookingModule.UpdateCompanyInformation();

            if (!m_BrightSalesProperty.CommonProperty.OnCallMode) {
                m_oCallViewBar.SetContactNumbers();
                if (!string.IsNullOrEmpty(e.OnSaveArgs.Account.telephone) && !string.IsNullOrEmpty(e.OnSaveArgs.Account.telephone.Trim()))
                    m_oCallViewBar.CompanyBoardNo = e.OnSaveArgs.Account.telephone.Trim();
                else
                    m_oCallViewBar.CompanyBoardNo = string.Empty;
            }

            m_oCallViewBar.CompanyBoardNo = e.OnSaveArgs.Account.telephone;
            if (!m_BrightSalesProperty.CommonProperty.OnCallMode)
                m_oCallViewBar.SetContactNumbers();

            m_oFollowUp.SetCompanyInfo();
            if (m_CampaignBookingModule != null)
            {
                //if (m_CampaignBookingModule.ParentView == ManageCampaignBooking.eParentView.CampaignList)
                if (m_BrightSalesProperty.CampaignBooking.ParentView == SelectionProperty.ParentView.CampaignList)
                {
                    m_CampaignListModule.UpdateSelectedCompany(new CompanyInformation.CompanyInformationArgs()
                    {
                        Account = e.OnSaveArgs.Account,
                        AccountSubCampaignRemarks = e.OnSaveArgs.AccountSubCampaignRemarks
                    });
                    m_CampaignListModule.SetCompanyDetails(e.OnSaveArgs.Account.id);
                }
            }
        }
Ejemplo n.º 2
0
        private void CompanyInformationOnRefresh(CompanyInformationEvents.OnRefresh e)
        {
            if (!m_BrightSalesProperty.CommonProperty.OnCallMode) {
                m_oCallViewBar.SetContactNumbers();
                if (!string.IsNullOrEmpty(e.OnRefreshArgs.Account.telephone) && !string.IsNullOrEmpty(e.OnRefreshArgs.Account.telephone.Trim()))
                    m_oCallViewBar.CompanyBoardNo = e.OnRefreshArgs.Account.telephone.Trim();
                else
                    m_oCallViewBar.CompanyBoardNo = string.Empty;
            }

            m_oCallViewBar.CompanyBoardNo = e.OnRefreshArgs.Account.telephone;
            if (!m_BrightSalesProperty.CommonProperty.OnCallMode)
                m_oCallViewBar.SetContactNumbers();

            m_oFollowUp.SetCompanyInfo();
            if (m_CampaignBookingModule != null) {
                //if (m_CampaignBookingModule.ParentView == ManageCampaignBooking.eParentView.CampaignList) {
                if (m_BrightSalesProperty.CampaignBooking.ParentView == SelectionProperty.ParentView.CampaignList) {
                    m_CampaignListModule.UpdateSelectedCompany(new CompanyInformation.CompanyInformationArgs() {
                        Account = e.OnRefreshArgs.Account,
                        AccountSubCampaignRemarks = e.OnRefreshArgs.AccountSubCampaignRemarks
                    });
                    if (tcSalesConsultant.SelectedTabPage == tabCampaignBooking)
                        m_CampaignListModule.SetCompanyDetails(e.OnRefreshArgs.Account.id);
                }
            }
        }
Ejemplo n.º 3
0
        private void CompanyInformationOnSave(CompanyInformationEvents.OnSave.CampaignExtraDetail e)
        {
            if (m_CompanyWebsite != null)
                m_CompanyWebsite.ReloadPage = true;

            if (m_BrightSalesProperty.CampaignBooking.Appointment != null)
                m_BrightSalesProperty.CampaignBooking.Appointment.CompanyWebsite = e.OnSaveArgs.Account.www;

            //if (OnCompanyInformationSaved != null)
            //    OnCompanyInformationSaved(new object(), e);
        }
Ejemplo n.º 4
0
 private void CompanyInformationOnSave(CompanyInformationEvents.OnSave.ManageCampaignList e)
 {
     m_CampaignList.UpdateSelectedRow(e.OnSaveArgs.Account);
     //if (CampaignExtraDetail_OnCompanyInformationSaved != null)
     //    CampaignExtraDetail_OnCompanyInformationSaved();
 }
Ejemplo n.º 5
0
        private void CompanyInformationOnSave(CompanyInformationEvents.OnSave.ManageCampaignBooking e)
        {
            if (m_oEventFollowupLog != null)
                m_oEventFollowupLog.UpdateCompanyRemarks();

            this.SetCompanyDirectCallPolicyImage();
        }