亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dmsdlg.cpp

?? 倉庫數據管理系統
?? CPP
字號:
// DMSDlg.cpp : implementation file
//

#include "stdafx.h"
#include "DMS.h"
#include "DMSDlg.h"
#include "DlgProxy.h"
#include "DlgLogIn.h"
#include "DlgDevcode.h"
#include "DlgReport.h"
#include "DlgViewLog.h"
#include "DlgViewDevIn.h"
#include "DlgViewRet.h"
#include "DlgViewOut.h"
#include "DlgViewNeed.h"
#include "DlgViewReport.h"
#include "DlgDev.h"
#include "DlgDevAlert.h"
#include "DlgDevIn.h"
#include "DlgDevOut.h"
#include "DlgDevRet.h"
#include "DlgDevNeed.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()

/////////////////////////////////////////////////////////////////////////////
// CDMSDlg dialog

IMPLEMENT_DYNAMIC(CDMSDlg, CDialog);

CDMSDlg::CDMSDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CDMSDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDMSDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
	m_pAutoProxy = NULL;
}

CDMSDlg::~CDMSDlg()
{
	// If there is an automation proxy for this dialog, set
	//  its back pointer to this dialog to NULL, so it knows
	//  the dialog has been deleted.
	if (m_pAutoProxy != NULL)
		m_pAutoProxy->m_pDialog = NULL;
}

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

BEGIN_MESSAGE_MAP(CDMSDlg, CDialog)
	//{{AFX_MSG_MAP(CDMSDlg)
	ON_WM_SYSCOMMAND()
	ON_WM_PAINT()
	ON_WM_QUERYDRAGICON()
	ON_WM_CLOSE()
	ON_BN_CLICKED(IDC_BTN_BUYDEV, OnBtnBuydev)
	ON_BN_CLICKED(IDC_BTN_DEVALERT, OnBtnDevalert)
	ON_BN_CLICKED(IDC_BTN_DEVCODE, OnBtnDevcode)
	ON_BN_CLICKED(IDC_BTN_DEVIN, OnBtnDevin)
	ON_BN_CLICKED(IDC_BTN_DEVOUT, OnBtnDevout)
	ON_BN_CLICKED(IDC_BTN_DEVRET, OnBtnDevret)
	ON_BN_CLICKED(IDC_BTN_INFODEV, OnBtnInfodev)
	ON_BN_CLICKED(IDC_BTN_INFOIN, OnBtnInfoin)
	ON_BN_CLICKED(IDC_BTN_INFONEED, OnBtnInfoneed)
	ON_BN_CLICKED(IDC_BTN_INFOOUT, OnBtnInfoout)
	ON_BN_CLICKED(IDC_BTN_INFORET, OnBtnInforet)
	ON_BN_CLICKED(IDC_BTN_NEED, OnBtnNeed)
	ON_BN_CLICKED(IDC_BTN_VIEWLOG, OnBtnViewlog)
	ON_BN_CLICKED(IDC_BTN_VIEWPRT, OnBtnViewprt)
	ON_WM_DESTROY()
	ON_BN_CLICKED(IDC_BTN_ABOUT, OnBtnAbout)
	ON_BN_CLICKED(IDC_BTN_HELP, OnBtnHelp)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDMSDlg message handlers

BOOL CDMSDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Add "About..." menu item to system menu.

	// IDM_ABOUTBOX must be in the system command range.
	ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
	ASSERT(IDM_ABOUTBOX < 0xF000);

	CMenu* pSysMenu = GetSystemMenu(FALSE);
	if (pSysMenu != NULL)
	{
		CString strAboutMenu;
		strAboutMenu.LoadString(IDS_ABOUTBOX);
		if (!strAboutMenu.IsEmpty())
		{
			pSysMenu->AppendMenu(MF_SEPARATOR);
			pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
		}
	}

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	
	/**
	 *  在這里彈出用戶登錄對話框
	*/
	CDlgLogIn dlg;
	do
	{
		if (!dlg.DoModal())
			EndDialog(0);
	} while (dlg.m_UsrName.GetLength()==0);

	/**
	 *  登錄數據庫,若失敗,則關閉程序。
	*/
	try
	{
		m_DBCnt.CreateInstance(__uuidof(Connection));
		CString sql_;
		sql_.Format("DSN=DMS;UID=%s;PWD=%s",dlg.m_UsrName,dlg.m_UsrPwd);
		_bstr_t sql=sql_;
		m_DBCnt->Open(sql,"","",-1);

		m_logMngr.Setup(m_DBCnt,dlg.m_UsrName);
		m_logMngr.AddLog("登錄數據庫");
	}
	catch(_com_error& e)
    {
		AfxMessageBox(e.ErrorMessage());
		this->EndDialog(0);
    }                                   

	return TRUE;  // return TRUE  unless you set the focus to a control
}

void CDMSDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
	if ((nID & 0xFFF0) == IDM_ABOUTBOX)
	{
		CAboutDlg dlgAbout;
		dlgAbout.DoModal();
	}
	else
	{
		CDialog::OnSysCommand(nID, lParam);
	}
}

// If you add a minimize button to your dialog, you will need the code below
//  to draw the icon.  For MFC applications using the document/view model,
//  this is automatically done for you by the framework.

void CDMSDlg::OnPaint() 
{
	if (IsIconic())
	{
		CPaintDC dc(this); // device context for painting

		SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);

		// Center icon in client rectangle
		int cxIcon = GetSystemMetrics(SM_CXICON);
		int cyIcon = GetSystemMetrics(SM_CYICON);
		CRect rect;
		GetClientRect(&rect);
		int x = (rect.Width() - cxIcon + 1) / 2;
		int y = (rect.Height() - cyIcon + 1) / 2;

		// Draw the icon
		dc.DrawIcon(x, y, m_hIcon);
	}
	else
	{
		CDialog::OnPaint();
	}
}

// The system calls this to obtain the cursor to display while the user drags
//  the minimized window.
HCURSOR CDMSDlg::OnQueryDragIcon()
{
	return (HCURSOR) m_hIcon;
}

// Automation servers should not exit when a user closes the UI
//  if a controller still holds on to one of its objects.  These
//  message handlers make sure that if the proxy is still in use,
//  then the UI is hidden but the dialog remains around if it
//  is dismissed.

void CDMSDlg::OnClose() 
{
	if (CanExit())
		CDialog::OnClose();
}

void CDMSDlg::OnOK() 
{
	if (CanExit())
		CDialog::OnOK();
}

void CDMSDlg::OnCancel() 
{
	if (CanExit())
		CDialog::OnCancel();
}

BOOL CDMSDlg::CanExit()
{
	// If the proxy object is still around, then the automation
	//  controller is still holding on to this application.  Leave
	//  the dialog around, but hide its UI.
	if (m_pAutoProxy != NULL)
	{
		ShowWindow(SW_HIDE);
		return FALSE;
	}

	return TRUE;
}

void CDMSDlg::OnBtnBuydev() 
{
	CDlgReport dlg;
	dlg.Setup(m_DBCnt,&m_logMngr);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);
}

void CDMSDlg::OnBtnDevalert() 
{
	CDlgDevAlert dlg;
	dlg.Setup(m_DBCnt,&m_logMngr);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);
}

void CDMSDlg::OnBtnDevcode() 
{
	CDlgDevcode dlg;
	dlg.Setup(m_DBCnt,&m_logMngr);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);
}

void CDMSDlg::OnBtnDevin() 
{
	CDlgDevIn dlg;
	dlg.Setup(m_DBCnt,&m_logMngr);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);	
}

void CDMSDlg::OnBtnDevout() 
{
	CDlgDevOut dlg;
	dlg.Setup(m_DBCnt,&m_logMngr);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);	
}

void CDMSDlg::OnBtnDevret() 
{
	CDlgDevRet dlg;
	dlg.Setup(m_DBCnt,&m_logMngr);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);		
}

void CDMSDlg::OnBtnInfodev() 
{
	CDlgDev dlg;
	dlg.Setup(m_DBCnt,&m_logMngr);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);		
}

void CDMSDlg::OnBtnInfoin() 
{
	CDlgViewDevIn dlg;
	dlg.Setup(m_DBCnt,&m_logMngr);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);
}

void CDMSDlg::OnBtnInfoneed() 
{
	CDlgViewNeed dlg;
	dlg.Setup(m_DBCnt,&m_logMngr);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);
}

void CDMSDlg::OnBtnInfoout() 
{
	CDlgViewOut dlg;
	dlg.Setup(m_DBCnt,&m_logMngr);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);
}

void CDMSDlg::OnBtnInforet() 
{
	CDlgViewRet dlg;
	dlg.Setup(m_DBCnt,&m_logMngr);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);
}

void CDMSDlg::OnBtnNeed() 
{
	CDlgDevNeed dlg;
	dlg.Setup(m_DBCnt,&m_logMngr);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);
}

void CDMSDlg::OnBtnViewlog() 
{
	CDlgViewLog dlg;
	dlg.SetDBConnection(m_DBCnt);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);
}

void CDMSDlg::OnBtnViewprt() 
{
	CDlgViewReport dlg;
	dlg.Setup(m_DBCnt,&m_logMngr);
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);
}

void CDMSDlg::OnDestroy() 
{
	CDialog::OnDestroy();
	
	m_DBCnt->Close();	
}

void CDMSDlg::OnBtnAbout() 
{
	CAboutDlg dlg;
	dlg.DoModal();
}

void CDMSDlg::OnBtnHelp() 
{
	WinExec("hh.exe dms.chm",SW_SHOW);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品欧美一区二区三区综合在| 狠狠色综合日日| 亚洲永久精品大片| 亚洲福中文字幕伊人影院| 亚洲成人综合在线| 青青草国产精品亚洲专区无| 国产一区啦啦啦在线观看| 国产成人精品一区二区三区网站观看 | 精品国产91九色蝌蚪| 精品理论电影在线| 日韩亚洲欧美成人一区| 成人av在线影院| 欧美日韩一区三区| 久久精品一区二区| 日日夜夜免费精品视频| 91麻豆免费视频| 久久久激情视频| 久久电影网电视剧免费观看| 91在线你懂得| 日韩一级视频免费观看在线| 亚洲色图色小说| 国产成人免费视| 欧美不卡激情三级在线观看| 亚洲精品国产高清久久伦理二区| 国产成人自拍在线| 26uuu国产电影一区二区| 亚洲r级在线视频| 欧洲人成人精品| 亚洲一区二区三区免费视频| 91亚洲精品久久久蜜桃| 国产免费久久精品| 国产99精品国产| 国产精品国产三级国产aⅴ中文| 久久福利视频一区二区| 欧美第一区第二区| 国内精品视频一区二区三区八戒 | 中文字幕永久在线不卡| 粉嫩绯色av一区二区在线观看| 久久午夜羞羞影院免费观看| 激情久久久久久久久久久久久久久久| 4438成人网| 国产呦精品一区二区三区网站| 日韩精品一区二区三区中文精品 | 欧美制服丝袜第一页| 亚洲综合男人的天堂| 欧美二区在线观看| 国产福利一区二区三区在线视频| 亚洲国产精品成人久久综合一区| 91麻豆免费在线观看| 日韩电影一区二区三区四区| 国产欧美视频一区二区| 色狠狠一区二区三区香蕉| 日本成人在线电影网| 国产偷v国产偷v亚洲高清| 日本福利一区二区| 国内精品不卡在线| 亚洲成人一区二区在线观看| www激情久久| 欧美午夜视频网站| 91亚洲午夜精品久久久久久| 久久黄色级2电影| 亚洲一二三四在线观看| 久久久亚洲国产美女国产盗摄 | 一区二区三区美女| 久久精品无码一区二区三区| 欧美午夜精品免费| 成人激情综合网站| 国精产品一区一区三区mba桃花| 一区二区三区在线影院| 久久久久9999亚洲精品| 26uuu亚洲| 欧美变态tickling挠脚心| 91精品婷婷国产综合久久性色 | 中文字幕日韩av资源站| 久久综合狠狠综合久久激情| 日韩欧美视频在线| 91精品国产色综合久久不卡电影| 欧美三级日韩在线| 欧美无人高清视频在线观看| 成人中文字幕合集| 成人免费看的视频| 色偷偷久久一区二区三区| 93久久精品日日躁夜夜躁欧美| www.亚洲人| 日本乱人伦aⅴ精品| 欧美日韩国产综合一区二区三区| 欧美日韩激情在线| 精品少妇一区二区三区视频免付费| 欧美成人欧美edvon| 亚洲国产精品99久久久久久久久| 欧美国产精品久久| 亚洲美女屁股眼交| 日韩成人免费电影| 成人国产亚洲欧美成人综合网| 成人app网站| 欧美电视剧免费全集观看| 久久人人97超碰com| 一区二区三区影院| 精品中文字幕一区二区小辣椒| av毛片久久久久**hd| 日韩一级片网站| 国产精品久久久久天堂| 日韩中文字幕区一区有砖一区 | 99re这里只有精品首页| 欧美麻豆精品久久久久久| 国产欧美日韩在线看| 天天av天天翘天天综合网色鬼国产| 国产伦精品一区二区三区免费迷| 91精品办公室少妇高潮对白| 日韩免费观看2025年上映的电影| 国产欧美视频一区二区| 免费久久99精品国产| 91小宝寻花一区二区三区| 久久久国产一区二区三区四区小说 | 美女免费视频一区二区| 色婷婷av一区| 亚洲四区在线观看| 国产成人啪免费观看软件 | 日韩福利视频网| 欧美日韩一级大片网址| 中文字幕高清一区| 成人av免费在线| 国产精品久久久久7777按摩| 国产成人综合自拍| 国产日韩影视精品| 丰满白嫩尤物一区二区| 日本一区二区久久| 91色九色蝌蚪| 日韩精品亚洲专区| 欧美一区二区国产| 狠狠网亚洲精品| 17c精品麻豆一区二区免费| 色综合久久久久久久久| 日韩精品一二区| 久久久午夜精品| 色婷婷综合久色| 亚洲h动漫在线| 国产欧美日韩亚州综合| 色天使久久综合网天天| 日本视频免费一区| 国产精品美女视频| 欧美日韩亚州综合| 国产精品99久久久久| 亚洲免费av在线| 欧美成人激情免费网| 成人av午夜影院| 日韩va亚洲va欧美va久久| 国产精品传媒视频| 91精品国产色综合久久ai换脸| 国产成人av福利| 青青草成人在线观看| 亚洲欧美日韩久久| 国产亚洲一二三区| 在线电影国产精品| 91在线看国产| 国产69精品久久久久777| 免费黄网站欧美| 亚洲一区二区精品3399| 国产精品卡一卡二| 精品国产乱码久久久久久久久| 欧美福利电影网| 欧美日韩一区高清| 色婷婷精品久久二区二区蜜臂av | 老司机精品视频在线| 亚洲品质自拍视频| 亚洲桃色在线一区| 亚洲欧美在线aaa| 国产精品久久久久久久午夜片| 国产午夜精品福利| 国产亚洲婷婷免费| 欧美激情在线看| 亚洲柠檬福利资源导航| 亚洲综合在线五月| 日韩av一区二| 久久国产精品色婷婷| 国产一区二区三区蝌蚪| 国产91丝袜在线播放九色| 大白屁股一区二区视频| 99久久夜色精品国产网站| 91激情在线视频| 日韩一区二区三区四区| 国产亚洲精品久| 亚洲一二三区不卡| 精品制服美女丁香| 91蜜桃在线免费视频| 欧美高清性hdvideosex| 久久先锋影音av鲁色资源| 亚洲欧洲无码一区二区三区| 亚洲一级在线观看| 国内精品久久久久影院一蜜桃| 9人人澡人人爽人人精品| 欧美剧在线免费观看网站 | 国产精品一区二区黑丝| 91黄色激情网站| 亚洲国产精品国自产拍av| 日本不卡视频一二三区| 97超碰欧美中文字幕| 26uuu亚洲婷婷狠狠天堂| 亚洲国产精品精华液网站| 不卡的av电影|