本系统提供对企业单位内物资的管理
源代码在线查看: borrowdataset.cpp
// BorrowDataSet.cpp: implementation of the CBorrowDataSet class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "WhMgr.h"
#include "BorrowDataSet.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CBorrowDataSet::CBorrowDataSet()
{
}
CBorrowDataSet::~CBorrowDataSet()
{
}
BOOL CBorrowDataSet::LoadData()
{
return Open("Select * From tblBorrow");
}
BOOL CBorrowDataSet::LoadDataByID(CString ID)
{
return Open("Select * From tblBorrow Where ID = " + ID);
}
CString CBorrowDataSet::GetCount()
{
return GetAsString("Count");
}
void CBorrowDataSet::SetCount(CString Value)
{
SetAsString("Count", Value);
}
CString CBorrowDataSet::GetMaterialNum()
{
return GetAsString("MaterialNum");
}
CString CBorrowDataSet::GetID()
{
return GetAsString("ID");
}
CString CBorrowDataSet::GetJsr()
{
return GetAsString("Jsr");
}
CString CBorrowDataSet::GetDepartment()
{
return GetAsString("Department");
}
CString CBorrowDataSet::GetData()
{
return GetAsString("Data");
}
CString CBorrowDataSet::GetState()
{
return GetAsString("State");
}
CString CBorrowDataSet::GetLqr()
{
return GetAsString("Lqr");
}
CString CBorrowDataSet::GetUse()
{
return GetAsString("Use");
}