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

📄 findapersondlg.cpp

📁 一个人事档案的数据库
💻 CPP
字号:
// FindApersonDlg.cpp : implementation file
//

#include "stdafx.h"
#include "dangan.h"
#include "FindApersonDlg.h"
#include "hlinklist.h"
#include "hchage.h"
#include "fstream.h"

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

/////////////////////////////////////////////////////////////////////////////
// CFindApersonDlg dialog


CFindApersonDlg::CFindApersonDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CFindApersonDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CFindApersonDlg)
	m_find_chose = -1;
	//}}AFX_DATA_INIT
}


void CFindApersonDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFindApersonDlg)
	DDX_Control(pDX, IDC_LIST_RESALT, m_resalt);
	DDX_Control(pDX, IDC_BUTTON_FIND, m_bfind);
	DDX_Control(pDX, IDC_STATIC_MATHOD, m_static_mathod);
	DDX_Control(pDX, IDC_EDIT_MATHOD, m_mathod);
	DDX_Radio(pDX, IDC_FIND_NUM, m_find_chose);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CFindApersonDlg, CDialog)
	//{{AFX_MSG_MAP(CFindApersonDlg)
	ON_BN_CLICKED(IDC_FIND_NUM, OnFindNum)
	ON_BN_CLICKED(IDC_FIND_NAME, OnFindName)
	ON_BN_CLICKED(IDC_FIND_COMPANY, OnFindCompany)
	ON_BN_CLICKED(IDC_FIND_LEVEL, OnFindLevel)
	ON_EN_CHANGE(IDC_EDIT_MATHOD, OnChangeEditMathod)
	ON_BN_CLICKED(IDC_BUTTON_FIND, OnButtonFind)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFindApersonDlg message handlers
CString Mmathod;
LinkList Flist;
void CFindApersonDlg::OnFindNum() 
{
	m_find_chose=0;
	m_static_mathod.SetWindowText("请输入其编号:");
	UpdateData(FALSE);
}

void CFindApersonDlg::OnFindName() 
{
	m_find_chose=1;
	m_static_mathod.SetWindowText("请输入其姓名:");
	UpdateData(FALSE);
}

void CFindApersonDlg::OnFindCompany() 
{
	m_find_chose=2;
	m_static_mathod.SetWindowText("请输入其单位:");
	UpdateData(FALSE);
}

void CFindApersonDlg::OnFindLevel() 
{
	m_find_chose=3;
	m_static_mathod.SetWindowText("请输入其职称:");
	UpdateData(FALSE);
}

BOOL CFindApersonDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
//	void Input(LinkList List);
//	Input(Flist);
//	if(m_find_chose==1){
//		m_static_mathod.SetWindowText("sfsf");
//	}
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CFindApersonDlg::OnChangeEditMathod() 
{
	m_mathod.GetWindowText(Mmathod);
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	
}

void CFindApersonDlg::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}


void CFindApersonDlg::OnButtonFind() 
{
	// TODO: Add your control notification handler code here
	
}

⌨️ 快捷键说明

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