商店管理系统源代码(一)
[cpp]
/ SalesManagementSystemDlg.h : header file
//
#if !defined(AFX_SALESMANAGEMENTSYSTEMDLG_H__105B9A75_F845_4C7E_8FEF_84A37882625E__INCLUDED_)
#define AFX_SALESMANAGEMENTSYSTEMDLG_H__105B9A75_F845_4C7E_8FEF_84A37882625E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MyButton.h"
//#define ID_BTNTIME WM_USER+100
/////////////////////////////////////////////////////////////////////////////
// CSalesManagementSystemDlg dialog
class CSalesManagementSystemDlg : public CDialog
{
// Construction
public:
CSalesManagementSystemDlg(CWnd* pParent = NULL); // standard constructor
CString strCode, strName;
// Dialog Data
//{{AFX_DATA(CSalesManagementSystemDlg)
enum { IDD = IDD_SALESMANAGEMENTSYSTEM_DIALOG };
CMyButton m_btnUserName;
CMyButton m_btnAdmin;
CMyButton m_ctrlTime;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSalesManagementSystemDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CSalesManagementSystemDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnCommodityclassify();
afx_msg void OnCommodityinfo();
afx_msg void OnClientinfo();
afx_msg void OnProviderinfo();
afx_msg void OnImport();
afx_msg void OnStockcheck();
afx_msg void OnSalebill();
afx_msg void OnAlarm();
afx_msg void OnDailyincomereport();
afx_msg void OnCommodityinforeport();
afx_msg void OnCopy();
afx_msg void OnDelete();
afx_msg void OnRestore();
afx_msg void OnBillamount();
afx_msg void OnCommoditysaleamount();
afx_msg void OnMonthaccount();
afx_msg void OnExcessalarm();
afx_msg void OnIncomereport();
afx_msg void OnLittlealarm();
afx_msg void OnUser();
afx_msg void OnPassword();
afx_msg void OnClose();
afx_msg void OnEsc();
afx_msg void OnClientintegral();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SALESMANAGEMENTSYSTEMDLG_H__105B9A75_F845_4C7E_8FEF_84A37882625E__INCLUDED_)
// SalesManagementSystemDlg.cpp : implementation file
//
#include "stdafx.h"
#include "SalesManagementSystem.h"
#include "SalesManagementSystemDlg.h"
#include "DiagLog.h"
#include "MyTime.h"
#include "MyButton.h"
#include "CommodityClassify.h"
#include "CommodityInfo.h"
#include "DlgClient.h"
#include "DlgProvider.h"
#include "DlgImport.h"
#include "DlgReport.h"
#include "SalesBill.h"
#include "DlgReport.h"
#include "DlgPasswd.h"
#include "DlgUser.h"
#include "DlgQuit.h"
#include "DlgIntegral.h"
#include "ADOConn.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAboutDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
//{{AFX_MSG(CAboutDlg)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
///////////////////////////////////////////////////////////////////////////// &n
补充:软件开发 , C++ ,