通讯录管理软件系统设计方案内容摘要:
AFX_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange* pDX)。 // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: //{{AFX_MSG(CAboutDlg) //}}AFX_MSG DECLARE_MESSAGE_MAP() }。 CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX)。 //{{AFX_DATA_MAP(CAboutDlg) //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CPrj01Dlg dialog CPrj01Dlg::CPrj01Dlg(CWnd* pParent /*=NULL*/) : CDialog(CPrj01Dlg::IDD, pParent) { //{{AFX_DATA_INIT(CPrj01Dlg) m_username = _T()。 m_password = _T()。 //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()LoadIcon(IDR_MAINFRAME)。 } void CPrj01Dlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX)。 //{{AFX_DATA_MAP(CPrj01Dlg) DDX_Control(pDX, IDC_REGISTER, m_RegStatic)。 DDX_Text(pDX, IDC_EDIT1, m_username)。 DDX_Text(pDX, IDC_EDIT2, m_password)。 //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CPrj01Dlg, CDialog) //{{AFX_MSG_MAP(CPrj01Dlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_BN_CLICKED(IDC_BUTTON1, OnEnter) ON_BN_CLICKED(IDC_BUTTON2, OnButton2) ON_BN_CLICKED(IDC_REGISTER, OnRegister) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CPrj01Dlg message handlers BOOL CPrj01Dlg::OnInitDialog() { CDialog::OnInitDialog()。 // Add About... menu item to system menu. // IDM_ABOUTBOX must be in the system mand range. ASSERT((IDM_ABOUTBOX amp。 0xFFF0) == IDM_ABOUTBOX)。 ASSERT(IDM_ABOUTBOX 0xF000)。 CMenu* pSysMenu = GetSystemMenu(FALSE)。 if (pSysMenu != NULL) { CString strAboutMenu。 (IDS_ABOUTBOX)。 if (!()) { pSysMenuAppendMenu(MF_SEPARATOR)。 pSysMenuAppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu)。 } } // Set the icon for this dialog. The framework does this automatically // when the application39。 s main window is not a dialog SetIcon(m_hIcon, TRUE)。 // Set big icon SetIcon(m_hIcon, FALSE)。 // Set small icon // TODO: Add extra initialization here LoadUserData()。 return TRUE。 // return TRUE unless you set the focus to a control } void CPrj01Dlg::OnSysCommand(UINT nID, LPARAM lParam) { if ((nID amp。 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout。 ()。 } else { CDialog::OnSysCommand(nID, lParam)。 } } // If you add a minimize button to your dialog, you will need the code below // to draw the icon. For MFC applications using the document/view model, // this is automatically done for you by the framework. void CPrj01Dlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this)。 // device context for painting SendMessage(WM_ICONERASEBKGND, (WPARAM) (), 0)。 // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON)。 int cyIcon = GetSystemMetrics(SM_CYICON)。 CRect rect。 GetClientRect(amp。 rect)。 int x = (() cxIcon + 1) / 2。 int y = (() cyIcon + 1) / 2。 // Draw the icon (x, y, m_hIcon)。 } else { CDialog::OnPaint()。 } } // The system calls this to obtain the cursor to display while the user drags // the minimized window. HCURSOR CPrj01Dlg::OnQueryDragIcon() { return (HCURSOR) m_hIcon。 } void CPrj01Dlg::OnEnter() { // TODO: Add your control notification handler code here UpdateData()。 if (m_username == || m_password == ) { return。 } int ret=checkUsername()。 if(ret==1) { m_loginUser=m_username。 m_username=。 m_password=。 UpdateData(FALSE)。 CMessage msgDlg。 =this。 thisShowWindow(SW_HIDE)。 ()。 PostQuitMessage(0)。 //退出函数 //CloseWindow()。 } else if(ret==0) { MessageBox(用户名或密码不正确,请重新输入。 ,错误 )。 } else if(ret==1) { MessageBox(用户名不存在„ ,错误 )。 } } void CPrj01Dlg::LoadUserData() { ifstream fs。 (data\\)。 while (!()) { CUserData tmpUD。 char field[256]。 fsfield。 =field。 fsfield。 =field。 (tmpUD)。 } } int CPrj01Dlg::checkUsername() { vectorCUserData::iterator it。 for (it=()。 it!=()。 it++) { if (m_username == itName) { if (m_password == itPassword) { return 1。 } else { return 0。 } } } return 1。 } void CPrj01Dlg::SaveUserData() { ofstream fs。 (data\\)。 if (!fs) { MessageBox(error)。 } vectorCUserData::iterator it。 for (it=()。 it!=()。 it++) { fsit(it())。 fsit(it())endl。 } } void CPrj01Dlg::OnButton2() { // TODO: Add your control notification handler code here m_username=。 m_password=。 UpdateData(FALSE)。 } void CPrj01Dlg::OnRegister() { // TODO: Add your control notification handler code here CRegister regDlg。 =this。 ()。 } 系统主界面主要程序部分 : // : implementation file // include include include include fstream include include include include include ifdef _DEBUG define new DEBUG_NEW undef THIS_FILE static char THIS_FILE[] = __FILE__。 endif ///////////////////////////////////////////////////////////////////////////// // CMessage dialog CMessage::CMessage(CWnd* pParent /*=NULL*/) : CDialog(CMessage::IDD, pParent) { // //{{AFX_DATA_INIT(CMessage)。通讯录管理软件系统设计方案
相关推荐
餐饮部 信息 客房状态信息 客人就餐消费 客人入住信息 前台接待 客房部 财务部 酒店客房 MIS 客人押金消费 汇总 图 4 数据流程图 7 第二章 系统设计 (一) 系统模块设计 根据上一章的分析,可以设计出系统的总体功能模块图,如图 5所示。 可以看到,本系统划分为六个功能模块, 房客管理模块 用于对客人及其业务情况进行管理, 客房管理模块 主要用于客房状态的查看和客房的编辑。
没有旁观者。 这是由安全本身作为一项丌可戒缺的、幵依陁二全部生产活劢丨没一丧环节这一基本属性所决定的。 作业人员 有严格挄照作业标准迚行作业的责仸,管理者有合理生产组细、劳劢组细,制定作业标准,优化工艺流程,改善作业环境,教育引导员工,提供作业保障,监控作业过程等管理责仸。 因此,安全责仸理应覆盖全体员工。 其次,我们一直没有径好地解决如何负责的问题。
, 其间距按第 条规定执行确有困难的 , 经城市规划行政主管部门核准 , 可在第 条规定间距基础上适当折减 , 但其最大减幅不能超过 10%。 注:建筑间距 I 类地区中心地段的界定范围见附录 二。 第一类居住用地的低层独立式住宅与相邻建筑之间的间距 , 在建筑间距 I 类地区不得小于其南侧建筑高度的 倍 , 在建筑间距 Ⅱ 类地区不得小于其南侧建筑高度的 倍 , 在建筑间距 Ⅲ
进行处理和判断,这些获得的参数提交到后台进行相关的处理。 (7)出场管理 汽车离场之前对其进行的离场验证和停车时间的数据收集,为下一收费模块提供数据。 (8)收费管理 该模块是本系统最重要的一个模块, 根据出入场提供的参数结合该模块收费标准的设置计算出收费的金额,完成收费并打印出收费清单。 数据库设计与实现 数据库的需求分析 数据库设计的 ER图。 如图 34 系统数据库 ER图
1、稻生长后期是指从剑叶全出至完熟这段时间,这个时期的栽培管理目标是养根保叶、防止早衰、提高结实率、增加千粒重,其主要管理措施如下:一、适当补施壮尾肥晚稻后期秋高气爽,光照充足,昼夜温差大,施壮尾肥增产效果显著。 一般在群体适中、叶色偏淡的稻田,可在齐穗期施壮尾肥,每亩施尿素 23 公斤或复合肥 5 公斤左右。 同时可在齐穗期开始每隔 7 天根外追肥1 次,每次亩用磷酸二氢钾 150 克加尿素