-
大小: 149KB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2021-05-16
- 語(yǔ)言: 其他
- 標(biāo)簽: SQL??Vc??加油站??畢業(yè)設(shè)計(jì)??管理系統(tǒng)??
資源簡(jiǎn)介
VC加油站管理系統(tǒng)(源碼)

代碼片段和文件信息
??//?AccountMgrDlg.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“gasstation.h“
#include?“AccountMgrDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAccountMgrDlg?dialog
CAccountMgrDlg::CAccountMgrDlg(CWnd*?pParent?/*=NULL*/)
:?CDialog(CAccountMgrDlg::IDD?pParent)
{
//{{AFX_DATA_INIT(CAccountMgrDlg)
m_strDayEnd?=?_T(““);
m_strDayStart?=?_T(““);
m_strMonthEnd?=?_T(““);
m_strMonthStart?=?_T(““);
m_strYearEnd?=?_T(““);
m_strYearStart?=?_T(““);
//}}AFX_DATA_INIT
}
void?CAccountMgrDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAccountMgrDlg)
DDX_Control(pDX?IDC_LIST_STOCK?m_listStock);
DDX_Control(pDX?IDC_LIST_SELL?m_listSell);
DDX_CBString(pDX?IDC_COMBO_DAY_END?m_strDayEnd);
DDX_CBString(pDX?IDC_COMBO_DAY_START?m_strDayStart);
DDX_CBString(pDX?IDC_COMBO_MONTH_END?m_strMonthEnd);
DDX_CBString(pDX?IDC_COMBO_MONTH_START?m_strMonthStart);
DDX_CBString(pDX?IDC_COMBO_YEAR_END?m_strYearEnd);
DDX_CBString(pDX?IDC_COMBO_YEAR_START?m_strYearStart);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAccountMgrDlg?CDialog)
//{{AFX_MSG_MAP(CAccountMgrDlg)
ON_WM_SHOWWINDOW()
ON_BN_CLICKED(IDC_BUTTON_QUERY?OnButtonQuery)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CAccountMgrDlg?message?handlers
BOOL?CAccountMgrDlg::OnInitDialog()?
{
CDialog::OnInitDialog();
//?TODO:?Add?extra?initialization?here
CComboBox?*pComboBoxStart?*pComboBoxEnd;
pComboBoxStart?=?(CComboBox?*)GetDlgItem(IDC_COMBO_YEAR_START);
pComboBoxEnd?=?(CComboBox?*)GetDlgItem(IDC_COMBO_YEAR_END);
for?(int?i=2010;i>1980;i?--)?{
CString?strYear;
strYear.Format(“%d“?i);
pComboBoxStart->AddString(strYear);
pComboBoxEnd->AddString(strYear);
}
pComboBoxStart?=?(CComboBox?*)GetDlgItem(IDC_COMBO_MONTH_START);
pComboBoxEnd?=?(CComboBox?*)GetDlgItem(IDC_COMBO_MONTH_END);
for?(i=1;i<=12;i?++)?{
CString?strMonth;
strMonth.Format(“%d“?i);
pComboBoxStart->AddString(strMonth);
pComboBoxEnd->AddString(strMonth);
}
pComboBoxStart?=?(CComboBox?*)GetDlgItem(IDC_COMBO_DAY_START);
pComboBoxEnd?=?(CComboBox?*)GetDlgItem(IDC_COMBO_DAY_END);
for?(i=1;i<=31;i?++)?{
CString?strDay;
strDay.Format(“%d“?i);
pComboBoxStart->AddString(strDay);
pComboBoxEnd->AddString(strDay);
}
//設(shè)置列表框控件
const?char?*stock_list_column[]?=?
{
“時(shí)間“
“油品“
“油庫(kù)“
“總量“
“進(jìn)貨價(jià)格“
“進(jìn)貨員“
““
};
i=0;
while?(*stock_list_column[i]?!=?0x00)?{
int?nWidth?=?(i==0)?120:50;
m_listStock.InsertColumn(i?stock_list_column[i++]?LVCFMT_LEFT?nWidth);
}
m_listStock.SetExtendedstyle(LVS_EX_FULLROWSELECT);
//設(shè)置列表框控件
const?char?*sell_list_column[]?=?
{
“時(shí)間“
“油品“
“油庫(kù)“
“總量“
“
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
????......R?????10923??2004-01-30?16:17??200592010122571\Src\ADODataba
????......R??????2652??2004-01-30?16:17??200592010122571\Src\ADODataba
????......R?????21390??2004-02-04?16:24??200592010122571\Src\ADODataba
????......R??????4010??2004-02-04?13:46??200592010122571\Src\ADODataba
????......R??????6073??2004-01-14?13:15??200592010122571\Src\AccountMgrDlg.cpp
????......R??????1584??2004-01-14?13:15??200592010122571\Src\AccountMgrDlg.h
????......R??????1370??2004-01-12?19:41??200592010122571\Src\DepotInfoDlg.cpp
????......R??????1283??2004-01-12?19:24??200592010122571\Src\DepotInfoDlg.h
????......R??????4286??2004-01-12?22:44??200592010122571\Src\DepotMgrDlg.cpp
????......R??????1442??2004-01-12?19:39??200592010122571\Src\DepotMgrDlg.h
????......R?????59596??2004-04-20?15:46??200592010122571\Src\GasStation.aps
????......R?????13816??2004-04-20?15:53??200592010122571\Src\GasStation.clw
????......R??????1577??2004-01-30?16:19??200592010122571\Src\GasStation.cpp
????......R??????7235??2004-01-30?16:21??200592010122571\Src\GasStation.dsp
????......R???????543??2004-01-12?21:49??200592010122571\Src\GasStation.dsw
????......R??????1335??2004-01-30?16:17??200592010122571\Src\GasStation.h
????......R????222208??2004-04-20?15:53??200592010122571\Src\GasStation.ncb
????......R?????50688??2004-04-20?15:53??200592010122571\Src\GasStation.opt
????......R??????8183??2004-04-20?15:48??200592010122571\Src\GasStation.plg
????......R?????30104??2004-02-06?20:20??200592010122571\Src\GasStation.rc
????......R?????11771??2004-02-04?13:48??200592010122571\Src\GasStationDlg.cpp
????......R??????2430??2004-02-04?12:29??200592010122571\Src\GasStationDlg.h
????......R??????1318??2004-01-12?22:57??200592010122571\Src\GasTypeInfoDlg.cpp
????......R??????1278??2004-01-12?22:40??200592010122571\Src\GasTypeInfoDlg.h
????......R??????4198??2004-01-12?23:07??200592010122571\Src\GasTypeMgrDlg.cpp
????......R??????1469??2004-01-12?22:50??200592010122571\Src\GasTypeMgrDlg.h
????......R??????5467??2004-01-08?15:00??200592010122571\Src\Global.cpp
????......R??????1557??2004-01-12?19:19??200592010122571\Src\Global.h
????......R??????1606??2004-01-12?15:50??200592010122571\Src\InputDlg.cpp
????......R??????1267??2004-01-09?02:34??200592010122571\Src\InputDlg.h
............此處省略42個(gè)文件信息
評(píng)論
共有 條評(píng)論