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

📄 resumemanagementview.cpp

📁 是老板让做的一个招聘网站后台简历录入系统。可以支持照片上传
💻 CPP
字号:
// ResumeManagementView.cpp : implementation of the CResumeManagementView class
//

#include "stdafx.h"
#include "ResumeManagement.h"

#include "ResumeManagementDoc.h"
#include "ResumeManagementView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CResumeManagementView

IMPLEMENT_DYNCREATE(CResumeManagementView, CFormView)

BEGIN_MESSAGE_MAP(CResumeManagementView, CFormView)
	//{{AFX_MSG_MAP(CResumeManagementView)
	ON_BN_CLICKED(IDC_INPUT_NEW_RESUME, OnInputNewResume)
	ON_BN_CLICKED(IDC_FIND_RESUME, OnFindResume)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CResumeManagementView construction/destruction

CResumeManagementView::CResumeManagementView()
	: CFormView(CResumeManagementView::IDD)
{
	//{{AFX_DATA_INIT(CResumeManagementView)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// TODO: add construction code here

}

CResumeManagementView::~CResumeManagementView()
{
}

void CResumeManagementView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CResumeManagementView)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}

BOOL CResumeManagementView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CFormView::PreCreateWindow(cs);
}

void CResumeManagementView::OnInitialUpdate()
{
	CFormView::OnInitialUpdate();
	GetParentFrame()->RecalcLayout();
	ResizeParentToFit();

}

/////////////////////////////////////////////////////////////////////////////
// CResumeManagementView diagnostics

#ifdef _DEBUG
void CResumeManagementView::AssertValid() const
{
	CFormView::AssertValid();
}

void CResumeManagementView::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}

CResumeManagementDoc* CResumeManagementView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CResumeManagementDoc)));
	return (CResumeManagementDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CResumeManagementView message handlers
#include "rerume1dlg.h"
#include "resume2dlg.h"
#include "resume1page.h"
#include "resume2page.h"
#include "resumesheet.h"
extern CResumeManagementApp theApp;
void CResumeManagementView::OnInputNewResume() 
{
	// TODO: Add your control notification handler code here
//***********下列代码是自动生成简历编号************/
	CString	strSQL = "select*from resume ";
	_RecordsetPtr m_set("ADODB.Recordset");//记录集
    CString id;
	try
	{
	    m_set->Open((_bstr_t)strSQL,_variant_t(theApp.m_pConn,true),adOpenDynamic,adLockPessimistic,adCmdText);
		m_set->MoveLast();
		id =(LPCSTR) (_bstr_t)m_set->GetCollect("id");
		m_set->Close();
	}
	catch(_com_error&e  ){}
	int int_ID = atoi(id);//转换为整型
	int_ID++;
	CString newID ;
	newID.Format("%d",int_ID);
    int i = strlen(newID);
	CString tmp("0000000000");
	for(int j=0;i>0;j++,i--)
		tmp.SetAt(10-i,newID[j]);
    newID = tmp;
/**************************************************/
	CResumeSheet sheet("resume");
	sheet.page1.m_id = newID;
	sheet.DoModal();
}
#include "findresume.h"
void CResumeManagementView::OnFindResume() 
{
	// TODO: Add your control notification handler code here
	CFindResume findResume;
	findResume.DoModal();
}

⌨️ 快捷键说明

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