资源简介

航班信息用链表存储 可订票 退票 查询 但没有用文件存储。 MFC

资源截图

代码片段和文件信息

// DlgInsert.cpp : 实现文件
//

#include “stdafx.h“
#include “FlightOrderSystem.h“
#include “DlgInsert.h“


// CDlgInsert 对话框

IMPLEMENT_DYNAMIC(CDlgInsert CDialog)

CDlgInsert::CDlgInsert(CWnd* pParent /*=NULL*/)
: CDialog(CDlgInsert::IDD pParent)
CStrFlightID(_T(““))
 CStrS_Place(_T(““))
 CStrA_Place(_T(““))
 CStrS_Time(_T(““))
 CStrA_Time(_T(““))
 CStrRest(_T(““))
 CStrPrice(_T(““))
{

}

CDlgInsert::~CDlgInsert()
{
}

void CDlgInsert::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX IDC_EDIT_FLIGHTIDCStrFlightID);
DDX_Text(pDX IDC_EDIT_S_PLACE CStrS_Place);
DDX_Text(pDX IDC_EDIT_A_PLACE CStrA_Place);
DDX_Text(pDX IDC_EDIT_S_TIME CStrS_Time);
DDX_Text(pDX IDC_EDIT_A_TIME CStrA_Time);
DDX_Text(pDX IDC_EDIT_REST CStrRest);
DDX_Text(pDX IDC_EDIT_PRICE CStrPrice);
}


BEGIN_MESSAGE_MAP(CDlgInsert CDialog)
ON_BN_CLICKED(IDOK &CDlgInsert::OnBnClickedOk)
END_MESSAGE_MAP()


// CDlgInsert 消息处理程序

void CDlgInsert::OnBnClickedOk()
{
// TODO: 在此添加控件通知处理程序代码
UpdateData( true );
/*if( CStrFlightID&&CStrS_Place&&CStrS_Time&&CStrA_Time&&CStrRest&&CStrPrice )
{
MessageBox( “信息不能为空!“); //不能判断为空,否则会一直提示为空!!!!!!!
}*/
if( !theApp.MyFlightList.m_InsertFlightNode( CStrFlightID CStrS_Place CStrA_Place CStrS_Time CStrA_Time atoi( CStrRest ) atof( CStrPrice )) )
{
MessageBox( “该航班已存在!“ );
}
else
{
MessageBox( “ 添加成功!“ );
OnOK();
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     132608  2009-09-20 20:24  FlightOrderSystem\Debug\FlightOrderSystem.exe

     文件    1001640  2009-09-20 20:24  FlightOrderSystem\Debug\FlightOrderSystem.ilk

     文件    3550208  2009-09-20 20:24  FlightOrderSystem\Debug\FlightOrderSystem.pdb

     文件       7296  2009-09-20 20:24  FlightOrderSystem\FlightOrderSystem\Debug\BuildLog.htm

     文件      31380  2009-09-20 20:07  FlightOrderSystem\FlightOrderSystem\Debug\DlgInsert.obj

     文件      30360  2009-09-20 20:20  FlightOrderSystem\FlightOrderSystem\Debug\DlgModify.obj

     文件      42448  2009-09-20 18:49  FlightOrderSystem\FlightOrderSystem\Debug\DlgOrder.obj

     文件      23205  2009-09-20 18:49  FlightOrderSystem\FlightOrderSystem\Debug\DlgQuitOrder.obj

     文件      57606  2009-09-20 20:24  FlightOrderSystem\FlightOrderSystem\Debug\DlgSearch.obj

     文件      21586  2009-09-20 20:17  FlightOrderSystem\FlightOrderSystem\Debug\FlightList.obj

     文件        920  2009-09-19 22:43  FlightOrderSystem\FlightOrderSystem\Debug\FlightOrderSystem.exe.embed.manifest

     文件        984  2009-09-19 22:43  FlightOrderSystem\FlightOrderSystem\Debug\FlightOrderSystem.exe.embed.manifest.res

     文件        861  2009-09-20 20:24  FlightOrderSystem\FlightOrderSystem\Debug\FlightOrderSystem.exe.intermediate.manifest

     文件      21949  2009-09-20 19:41  FlightOrderSystem\FlightOrderSystem\Debug\FlightOrderSystem.obj

     文件   25296896  2009-09-19 22:43  FlightOrderSystem\FlightOrderSystem\Debug\FlightOrderSystem.pch

     文件      26444  2009-09-20 19:42  FlightOrderSystem\FlightOrderSystem\Debug\FlightOrderSystem.res

     文件      49374  2009-09-20 19:42  FlightOrderSystem\FlightOrderSystem\Debug\FlightOrderSystemDlg.obj

     文件         65  2009-09-20 20:24  FlightOrderSystem\FlightOrderSystem\Debug\mt.dep

     文件      16529  2009-09-20 18:49  FlightOrderSystem\FlightOrderSystem\Debug\OrderList.obj

     文件     465671  2009-09-19 22:43  FlightOrderSystem\FlightOrderSystem\Debug\stdafx.obj

     文件     936960  2009-09-20 20:24  FlightOrderSystem\FlightOrderSystem\Debug\vc90.idb

     文件    2019328  2009-09-20 20:24  FlightOrderSystem\FlightOrderSystem\Debug\vc90.pdb

     文件       1573  2009-09-20 20:07  FlightOrderSystem\FlightOrderSystem\DlgInsert.cpp

     文件        563  2009-09-20 02:12  FlightOrderSystem\FlightOrderSystem\DlgInsert.h

     文件       1316  2009-09-20 20:20  FlightOrderSystem\FlightOrderSystem\DlgModify.cpp

     文件        547  2009-09-20 19:42  FlightOrderSystem\FlightOrderSystem\DlgModify.h

     文件       1443  2009-09-20 18:19  FlightOrderSystem\FlightOrderSystem\DlgOrder.cpp

     文件        468  2009-09-20 18:18  FlightOrderSystem\FlightOrderSystem\DlgOrder.h

     文件        915  2009-09-20 18:38  FlightOrderSystem\FlightOrderSystem\DlgQuitOrder.cpp

     文件        439  2009-09-20 18:38  FlightOrderSystem\FlightOrderSystem\DlgQuitOrder.h

............此处省略32个文件信息

评论

共有 条评论