Esempio n. 1
0
void CCallOut::OnBnClickedOk()
{
	// TODO: 在此添加控件通知处理程序代码
	UpdateData(TRUE);

	if(m_strNumber.Trim().IsEmpty())
	{
		CInfo info;
		info.SetInfo(IDI_ICON_ERROR, "坐席工号或外线号码不能为空!");
		info.DoModal();
		return;
	}

	int agentcheck = m_rdoAgent.GetCheck();
	int outcheck = m_rdoOut.GetCheck();

	if(agentcheck ==0 && outcheck == 1)
	{
		m_intAgentOrOut = 0;//外线
	}
	else if(agentcheck == 1 && outcheck == 0)
	{
		m_intAgentOrOut = 1;//坐席
	}
	else
	{
		CInfo info;
		info.SetInfo(IDI_ICON_ERROR, "坐席和外线需要至少选择一种!");
		info.DoModal();
		return;
	}
	//
	OnOK();
}
Esempio n. 2
0
void CSetting::OnButtonInfo() 
{
	// TODO: Add your control notification handler code here
	ShowWindow(SW_HIDE);
	CInfo dlg;
	dlg.m_username1=m_username;
	dlg.DoModal();
	ShowWindow(SW_SHOW);
	
}