資源簡介
c++商品庫存管理系統c++商品庫存管理系統c++商品庫存管理系統

代碼片段和文件信息
//?AlertDlg.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“GMS.h“
#include?“AlertDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAlertDlg?dialog
CAlertDlg::CAlertDlg(CWnd*?pParent?/*=NULL*/)
:?CDialog(CAlertDlg::IDD?pParent)
{
//{{AFX_DATA_INIT(CAlertDlg)
//?NOTE:?the?ClassWizard?will?add?member?initialization?here
//}}AFX_DATA_INIT
}
void?CAlertDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAlertDlg)
DDX_Control(pDX?IDC_LIST_LOWDISP?m_listLowDisp);
DDX_Control(pDX?IDC_LIST_HIGHDISP?m_listHighDisp);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAlertDlg?CDialog)
//{{AFX_MSG_MAP(CAlertDlg)
ON_BN_CLICKED(IDC_BUTTON_OK?OnButtonOk)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CAlertDlg?message?handlers
void?CAlertDlg::OnButtonOk()?
{
OnOK();
//?TODO:?Add?your?control?notification?handler?code?here
}
BOOL?CAlertDlg::OnInitDialog()?
{
RECT?rect;
int?wid;
CDialog::OnInitDialog();
m_listLowDisp.InsertColumn(0“商品編號“);
m_listLowDisp.InsertColumn(1“商品名稱“);
m_listLowDisp.InsertColumn(2“當前庫存“);
m_listLowDisp.InsertColumn(3“最大庫容“);
m_listLowDisp.InsertColumn(4“最小庫容“);
m_listLowDisp.GetWindowRect(&rect);
wid?=?rect.right?-?rect.left;
m_listLowDisp.SetColumnWidth(0wid/5);
m_listLowDisp.SetColumnWidth(1wid/5);
m_listLowDisp.SetColumnWidth(2wid/5);
m_listLowDisp.SetColumnWidth(3wid/5);
m_listLowDisp.SetColumnWidth(4wid/5);
m_listLowDisp.SetExtendedstyle(LVS_EX_FULLROWSELECT);
m_listHighDisp.InsertColumn(0“商品編號“);
m_listHighDisp.InsertColumn(1“商品名稱“);
m_listHighDisp.InsertColumn(2“當前庫存“);
m_listHighDisp.InsertColumn(3“最大庫容“);
m_listHighDisp.InsertColumn(4“最小庫容“);
m_listHighDisp.GetWindowRect(&rect);
wid?=?rect.right?-?rect.left;
m_listHighDisp.SetColumnWidth(0wid/5);
m_listHighDisp.SetColumnWidth(1wid/5);
m_listHighDisp.SetColumnWidth(2wid/5);
m_listHighDisp.SetColumnWidth(3wid/5);
m_listHighDisp.SetColumnWidth(4wid/5);
m_listHighDisp.SetExtendedstyle(LVS_EX_FULLROWSELECT);
RefreshData();
//?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?CAlertDlg::RefreshData()
{
m_listLowDisp.DeleteAllItems();
m_listLowDisp.SetRedraw(FALSE);
_variant_t?Holder?strQuery;
????strQuery=?“select?*?from?goods?where?Current_number<=Min_number“;
theApp.ADOExecute(theApp.m_pRs?strQuery);
????int?iCount?=?theApp.m_pRs->GetRecordCount();
if?(?0==iCount?)?
return;
theApp.m_pRs->MoveFirst();
int?i=0;
while(!theApp.m_pRs->adoEOF)
{
Holder?=?theApp.m_pRs->GetCollect(“G_code“);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4903??2008-02-28?23:06??ch07?商品庫存管理系統\GMS\AlertDlg.cpp
?????文件???????1277??2008-02-28?22:54??ch07?商品庫存管理系統\GMS\AlertDlg.h
?????文件?????299768??2008-02-29?00:06??ch07?商品庫存管理系統\GMS\GMS.APS
?????文件???????7497??2008-02-29?08:55??ch07?商品庫存管理系統\GMS\GMS.clw
?????文件???????3027??2008-02-26?16:36??ch07?商品庫存管理系統\GMS\GMS.cpp
?????文件???????5325??2008-02-28?22:58??ch07?商品庫存管理系統\GMS\GMS.dsp
?????文件????????531??2008-02-25?17:14??ch07?商品庫存管理系統\GMS\GMS.dsw
?????文件???????1528??2008-02-26?16:36??ch07?商品庫存管理系統\GMS\GMS.h
?????文件?????238592??2008-02-29?09:13??ch07?商品庫存管理系統\GMS\GMS.ncb
?????文件??????62976??2008-02-29?09:13??ch07?商品庫存管理系統\GMS\GMS.opt
?????文件???????2549??2008-02-29?00:06??ch07?商品庫存管理系統\GMS\GMS.plg
?????文件??????15119??2008-02-28?22:57??ch07?商品庫存管理系統\GMS\GMS.rc
?????文件???????4594??2008-02-26?16:28??ch07?商品庫存管理系統\GMS\GMSDlg.cpp
?????文件???????1798??2008-02-25?23:25??ch07?商品庫存管理系統\GMS\GMSDlg.h
?????文件???????5295??2008-02-29?00:04??ch07?商品庫存管理系統\GMS\GoodsDlg.cpp
?????文件???????1516??2008-02-28?23:58??ch07?商品庫存管理系統\GMS\GoodsDlg.h
?????文件???????4928??2008-02-27?23:05??ch07?商品庫存管理系統\GMS\InDlg.cpp
?????文件???????1567??2008-02-27?22:53??ch07?商品庫存管理系統\GMS\InDlg.h
?????文件????????966??2008-02-26?16:28??ch07?商品庫存管理系統\GMS\LogManager.cpp
?????文件????????552??2008-02-26?16:14??ch07?商品庫存管理系統\GMS\LogManager.h
?????文件???????4323??2008-02-28?23:07??ch07?商品庫存管理系統\GMS\MainDlg.cpp
?????文件???????1630??2008-02-25?23:14??ch07?商品庫存管理系統\GMS\MainDlg.h
?????文件???????4842??2008-02-27?23:23??ch07?商品庫存管理系統\GMS\OutDlg.cpp
?????文件???????1543??2008-02-27?23:19??ch07?商品庫存管理系統\GMS\OutDlg.h
?????文件???????1633??2008-02-28?21:19??ch07?商品庫存管理系統\GMS\PasswdDlg.cpp
?????文件???????1218??2008-02-28?21:15??ch07?商品庫存管理系統\GMS\PasswdDlg.h
?????文件???????6072??2008-02-29?00:00??ch07?商品庫存管理系統\GMS\ProviderDlg.cpp
?????文件???????1594??2008-02-28?23:59??ch07?商品庫存管理系統\GMS\ProviderDlg.h
?????文件???????3525??2008-02-25?17:14??ch07?商品庫存管理系統\GMS\ReadMe.txt
?????文件?????270454??2008-02-25?18:43??ch07?商品庫存管理系統\GMS\res\Blue?hills.bmp
............此處省略19個文件信息
- 上一篇:c語言課程設計_實驗設備管理系統
- 下一篇:運動會分數統計系統 c語言
評論
共有 條評論