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

📄 goodsimport_4.cpp

📁 库存管理系统
💻 CPP
字号:
// GoodsImport_4.cpp : implementation file
//

#include "stdafx.h"
#include "库存管理系统.h"
#include "GoodsImport_4.h"

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

/////////////////////////////////////////////////////////////////////////////
// CGoodsImport_4 dialog


CGoodsImport_4::CGoodsImport_4(CWnd* pParent /*=NULL*/)
	: CDialog(CGoodsImport_4::IDD, pParent)
{
	//{{AFX_DATA_INIT(CGoodsImport_4)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CGoodsImport_4::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CGoodsImport_4)
	DDX_Control(pDX, IDC_DATAGRID1, m_Tdatagrid);
	DDX_Control(pDX, IDC_ADODC2, m_Madodc);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CGoodsImport_4, CDialog)
	//{{AFX_MSG_MAP(CGoodsImport_4)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CGoodsImport_4 message handlers

BEGIN_EVENTSINK_MAP(CGoodsImport_4, CDialog)
    //{{AFX_EVENTSINK_MAP(CGoodsImport_4)
	ON_EVENT(CGoodsImport_4, IDC_DATAGRID1, -600 /* Click */, OnClickDatagrid1, VTS_NONE)
	//}}AFX_EVENTSINK_MAP
END_EVENTSINK_MAP()

void CGoodsImport_4::OnClickDatagrid1() 
{
	// TODO: Add your control notification handler code here
	CString dh;
	dh=m_Tdatagrid.GetItem(0);
	m_Madodc.SetRecordSource("select * from 进单明细临时 where 进单号='"+dh+"'");
    m_Madodc.Refresh();
}

⌨️ 快捷键说明

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