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

📄 outcommand.cpp

📁 物资的入库、出库、借用和归还等。还提供日志 信息记录和报表显示功能
💻 CPP
字号:
// OutCommand.cpp: implementation of the COutCommand class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "WhMgr.h"
#include "OutCommand.h"

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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

COutCommand::COutCommand()
{

}

COutCommand::~COutCommand()
{

}

BOOL COutCommand::DoOut()
{
	CString strData;
	CTime time = CTime::GetCurrentTime();
	strData.Format("%d-%d-%d %d:%d:%d", 
		time.GetYear(), 
		time.GetMonth(), 
		time.GetDay(),
		time.GetHour(),
		time.GetMinute(),
		time.GetSecond());

	CString strSQL;
	strSQL = "Insert into tblOut([MaterialNum], [Count], [Department], [Data], [Use], [State], [Jsr], [Lqr]) Values("
		+ m_MaterialNum + ", " 
		+ m_Count + ", \"" 
		+ m_Department + "\", #" 
		+ strData + "#, \""
		+ m_Use + "\", \""
		+ m_State + "\", \""
		+ m_Jsr + "\", \""
		+ m_Lqr + "\")";

	return ExecuteSQL(strSQL);
}

⌨️ 快捷键说明

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