⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 consultationdlgv2.cpp

📁 csta协议的开发
💻 CPP
字号:
// ConsultationDlgV2.cpp : implementation file
//

#include "stdafx.h"
#include "cstatst32.h"
#include "ConsultationDlgV2.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CConsultationDlgV2 dialog


CConsultationDlgV2::CConsultationDlgV2(CWnd* pParent /*=NULL*/)
	: CDialog(CConsultationDlgV2::IDD, pParent)
{
	//{{AFX_DATA_INIT(CConsultationDlgV2)
	m_sActiveCallID = _T("");
	m_sActiveDeviceID = _T("");
	m_bsupervisorCall = FALSE;
	m_sCorrelatorStr = _T("0");
	m_iAuthCode = 0;
	m_iAccountCode = 0;
	m_sCalledDevice = _T("");
	m_sPrivateData = _T("");
	m_sPrivateDataIdentifier = _T("");
	m_bFalse = FALSE;
	m_bTrue = FALSE;
	m_bValidated = FALSE;
	m_sVrid = _T("");
	m_acrDeviceID = _T("");
	m_iacrExpertEval = 0;
	m_iacrSkillNumber = 0;
	m_bacrStatus = FALSE;
	//}}AFX_DATA_INIT
}


void CConsultationDlgV2::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CConsultationDlgV2)
	DDX_Text(pDX, IDC_ACTIVE_CALL_ID, m_sActiveCallID);
	DDX_Text(pDX, IDC_ACTIVE_DEVICE_ID, m_sActiveDeviceID);
	DDX_Check(pDX, IDC_SUPERVISOR_CALL, m_bsupervisorCall);
	DDX_Text(pDX, IDC_CORRELATOR_DATA, m_sCorrelatorStr);
	DDX_Text(pDX, IDC_AUTH_CODE, m_iAuthCode);
	DDX_Text(pDX, IDC_ACCOUNT_CODE, m_iAccountCode);
	DDX_Text(pDX, IDC_CALLED_DEVICE_ID, m_sCalledDevice);
	DDX_Text(pDX, IDC_PRIVATE_DATA, m_sPrivateData);
	DDV_MaxChars(pDX, m_sPrivateData, 60);
	DDX_Text(pDX, IDC_PRIVATE_DATA_IDENTIFIER, m_sPrivateDataIdentifier);
	DDV_MaxChars(pDX, m_sPrivateDataIdentifier, 30);
	DDX_Check(pDX, IDC_FALSE, m_bFalse);
	DDX_Check(pDX, IDC_TRUE, m_bTrue);
	DDX_Check(pDX, IDC_VALIDATED, m_bValidated);
	DDX_Text(pDX, IDC_VRID, m_sVrid);
	DDX_Text(pDX, IDC_ACR_AGENT_NUMBER, m_acrDeviceID);
	DDX_Text(pDX, IDC_ACR_EXPERT_NUMBER, m_iacrExpertEval);
	DDX_Text(pDX, IDC_ACR_SKILL_NUMBER, m_iacrSkillNumber);
	DDX_Check(pDX, IDC_ACR_STATUS, m_bacrStatus);
	//}}AFX_DATA_MAP
}
	

BEGIN_MESSAGE_MAP(CConsultationDlgV2, CDialog)
	//{{AFX_MSG_MAP(CConsultationDlgV2)
	ON_EN_CHANGE(IDC_VRID, OnChangeVrid)
	ON_EN_CHANGE(IDC_PRIVATE_DATA_IDENTIFIER, OnChangePrivateDataIdentifier)
	ON_EN_CHANGE(IDC_PRIVATE_DATA, OnChangePrivateData)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CConsultationDlgV2 message handlers

BOOL CConsultationDlgV2::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	OnChangeVrid();
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CConsultationDlgV2::OnChangeVrid() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function to send the EM_SETEVENTMASK message to the control
	// with the ENM_CHANGE flag ORed into the lParam mask.
	
	// TODO: Add your control notification handler code here
	
	CString szValue;

	GetDlgItemText(IDC_VRID, szValue);

	BOOL bEnable = szValue.IsEmpty();

	GetDlgItem( IDC_PRIVATE_DATA_IDENTIFIER )->EnableWindow( bEnable );
	GetDlgItem( IDC_PRIVATE_DATA )->EnableWindow( bEnable );
	
}


void CConsultationDlgV2::OnChangePrivateDataIdentifier() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function to send the EM_SETEVENTMASK message to the control
	// with the ENM_CHANGE flag ORed into the lParam mask.
	
	// TODO: Add your control notification handler code here
	CString szValue;

	GetDlgItemText(IDC_PRIVATE_DATA_IDENTIFIER, szValue);

	BOOL bEnable = szValue.IsEmpty();

	GetDlgItem( IDC_VRID )->EnableWindow( bEnable );
	
}

void CConsultationDlgV2::OnChangePrivateData() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function to send the EM_SETEVENTMASK message to the control
	// with the ENM_CHANGE flag ORed into the lParam mask.
	
	// TODO: Add your control notification handler code here
	CString szValue;

	GetDlgItemText(IDC_PRIVATE_DATA, szValue);

	BOOL bEnable = szValue.IsEmpty();

	GetDlgItem( IDC_VRID )->EnableWindow( bEnable );
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -