资源简介
VC加油站管理系统(源码)
代码片段和文件信息
// 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);
}
//设置列表框控件
const char *stock_list_column[] =
{
“时间“
“油品“
“油库“
“总量“
“进货价格“
“进货员“
““
};
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);
//设置列表框控件
const char *sell_list_column[] =
{
“时间“
“油品“
“油库“
“总量“
“
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
......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个文件信息
- 上一篇:Pixel Perfect Camera 1.42
- 下一篇:公路村村通30.zip
相关资源
- google snappy 压缩算法 源码dll 及delphi
- vc图像编程:jpeg格式转换成bmp
- VC显示图片(带滚动条完美控制)
- 捆绑文件异步同步操作vc源码
- MvCameraNode.xlsx
- vc OpenGL制作动态三维的雷达扫描效果
- VC 截获QQ聊天内容和登录密码.rar
- VC Agent动画小人仿OFFICE助手动画.ra
- VC 窗体美化源码_换肤改变窗口风格
- IDEA实现 springmvc的简单注册登录功能的
- SpringMVC+MyBatis企业应用实战+源码
- VC 6.0 补丁 FileTool.dll
- VC 实现的示波器控件 非常强大
- UVC图像获取及Extension unit数据获取
- 输入法注入源代码VC
- 学籍数据库
- VCE 汉化补丁.txt
- VC Comment注释插件
- VC轻松实现非客户区按钮及源码
- STM32F103VCT6+W5500 TCP 服务端通信成功开
- OpenGL实现下雪的效果
-
VCPA-ba
sed hybrid strategy.zip - 车牌识别VC源代码
- VC 类似迅雷的悬浮窗
- SoCKit_RevC.pdf
- 与backupdbE.bat配合使用
- 机械革命ALC269VC带低音炮机型黑苹果仿
- 台达PLC通信程序VC
- VC-easyx绘图游戏简易教程
- 国密sm2算法c实现
评论
共有 条评论