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

📄 store.cpp

📁 面向软件工程的Visual C++网络程序开发
💻 CPP
字号:
// Store.cpp : implementation file
//

#include "stdafx.h"
#include "falcon_jxc.h"
#include "Store.h"
#include "Ruku.h"
#include "Shangpinyanshou.h"
#include "DlgJBZL_SP.h"
#include "Gongyingshangjibenziliao.h"
#include "DlgDiaobo.h"
#include "DlgChuku.h"
#include "DlgTuihuo.h"
#include "mainfrm.h"
#include "falcon_jxcview.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CStore dialog

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


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


BEGIN_MESSAGE_MAP(CStore, CDialog)
	//{{AFX_MSG_MAP(CStore)
	ON_BN_CLICKED(IDC_BUTTON9, OnButton9)
	ON_BN_CLICKED(IDC_BUTTON10, OnButton10)
	ON_BN_CLICKED(IDC_BUTTON11, OnButton11)
	ON_BN_CLICKED(IDC_BUTTON12, OnButton12)
	ON_BN_CLICKED(IDC_BUTTON13, OnButton13)
	ON_BN_CLICKED(IDC_BUTTON17, OnButton17)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CStore message handlers

BOOL CStore::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// 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 CStore::OnButton9() 
{
	CMainFrame* pwnd=(CMainFrame*)AfxGetApp()->m_pMainWnd;
	CFALCON_JXCView* pView=(CFALCON_JXCView*)pwnd->GetActiveView();

	if(pView->GetDocument()->m_sQuanXianArray[9]=="0")
	{
		AfxMessageBox("你没有权限!");
		return ;
	}
	CRuku RukuDlg;
	RukuDlg.DoModal();	
}

void CStore::OnButton10() 
{
	CMainFrame* pwnd=(CMainFrame*)AfxGetApp()->m_pMainWnd;
	CFALCON_JXCView* pView=(CFALCON_JXCView*)pwnd->GetActiveView();

	if(pView->GetDocument()->m_sQuanXianArray[10]=="0")
	{
		AfxMessageBox("你没有权限!");
		return ;
	}
	CShangpinyanshou dlg;
	dlg.DoModal();
}

void CStore::OnButton11() 
{
	CMainFrame* pwnd=(CMainFrame*)AfxGetApp()->m_pMainWnd;
	CFALCON_JXCView* pView=(CFALCON_JXCView*)pwnd->GetActiveView();

	if(pView->GetDocument()->m_sQuanXianArray[11]=="0")
	{
		AfxMessageBox("你没有权限!");
		return ;
	}
	CDlgChuku dlg;
	dlg.DoModal();
}

void CStore::OnButton12() 
{
	CMainFrame* pwnd=(CMainFrame*)AfxGetApp()->m_pMainWnd;
	CFALCON_JXCView* pView=(CFALCON_JXCView*)pwnd->GetActiveView();

	if(pView->GetDocument()->m_sQuanXianArray[13]=="0")
	{
		AfxMessageBox("你没有权限!");
		return ;
	}
	CDlgJBZL_SP dlg;
	dlg.DoModal();
}

void CStore::OnButton13() 
{
	CMainFrame* pwnd=(CMainFrame*)AfxGetApp()->m_pMainWnd;
	CFALCON_JXCView* pView=(CFALCON_JXCView*)pwnd->GetActiveView();

	if(pView->GetDocument()->m_sQuanXianArray[14]=="0")
	{
		AfxMessageBox("你没有权限!");
		return ;
	}
	CGongyingshangjibenziliao GyszlDlg;
	GyszlDlg.DoModal();	
}

void CStore::OnButton17() 
{
	CMainFrame* pwnd=(CMainFrame*)AfxGetApp()->m_pMainWnd;
	CFALCON_JXCView* pView=(CFALCON_JXCView*)pwnd->GetActiveView();

	if(pView->GetDocument()->m_sQuanXianArray[12]=="0")
	{
		AfxMessageBox("你没有权限!");
		return ;
	}
	CDlgTuihuo dlg;
	dlg.DoModal();
}

⌨️ 快捷键说明

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