资源简介
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
相关资源
- MoNyog8.5+破解补丁
- 全国4级地址库,京东数据
- B/S 网上订餐系统
- Windows异步套接字网络编程
- VC 获得文件属性 获取文件的创建时
- 基于MVC模式的会员管理系统
- silicon lab公司的收音IC SI47XX全套开发工
- 读者写者问题(读者优先,写者优先
- MFC程序-碰撞的小球
- vc 柱形图 CBarChart
- 用vc 写的导线测量,针对刚学测绘的
- 用VC 编写的仿QQ聊天室程序源代码
- 栅栏填充算法源码(VC)
- 简单的房屋租赁系统
- .net网站服装销售系统(MVC)
-
ob
jectARX给Auto CAD加工具条 - blowfish的vc2008工程.rar
- 画图程序MFC/VC/VC CRectTracker 串行化
- capon波束形成算法-VC实现
- 房屋信息咨询网动态网页
- 读取串口数据并画实时曲线的VC 程序
- VC 游戏编程—附源代码
- IpHlpApi.h&IpHlpApi.lib
- vc 6.0开发的流程图编辑器
- VC 天空盒(skyBox)实现(附源代码)
- c MFC 画多边形
- keil vcom windows 7 64bit 驱动
- vc URL编解码类
- vc编写中国象棋详细源码注释并附有视
- VC 围棋源代码
评论
共有 条评论