zhekoudan.cpp

来自「一个简易超市系统,有进货,销售.等功能 对学习有C++数据库操作有一定的帮助」· C++ 代码 · 共 57 行

CPP
57
字号
// ZheKouDan.cpp : implementation file
// 设置单品折扣类

#include "stdafx.h"
#include "PosClient.h"
#include "ZheKouDan.h"

extern float zhekou;
extern float allzhekou;
extern float allmoney;
extern int count;

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

/////////////////////////////////////////////////////////////////////////////
// CZheKouDan dialog


CZheKouDan::CZheKouDan(CWnd* pParent /*=NULL*/)
	: CDialog(CZheKouDan::IDD, pParent)
{
	//{{AFX_DATA_INIT(CZheKouDan)
	m_zhekou = 1.0f;
	//}}AFX_DATA_INIT
}


void CZheKouDan::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CZheKouDan)
	DDX_Control(pDX, IDC_EDIT1, m_zk);
	DDX_Text(pDX, IDC_EDIT1, m_zhekou);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CZheKouDan, CDialog)
	//{{AFX_MSG_MAP(CZheKouDan)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CZheKouDan message handlers

void CZheKouDan::OnOK() 
{
	UpdateData(true);
	zhekou=m_zhekou;
	UpdateData(false);
	CDialog::OnOK();
}

⌨️ 快捷键说明

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