?? dformat.cpp
字號:
// DFormat.cpp : implementation file
//
#include "stdafx.h"
#include "htglxt.h"
#include "DFormat.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDFormat dialog
CDFormat::CDFormat(CWnd* pParent /*=NULL*/)
: CDialog(CDFormat::IDD, pParent)
{
//{{AFX_DATA_INIT(CDFormat)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CDFormat::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDFormat)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDFormat, CDialog)
//{{AFX_MSG_MAP(CDFormat)
ON_BN_CLICKED(IDC_BUTFORMT, OnButformt)
ON_BN_CLICKED(IDC_BUTEXIT, OnButexit)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDFormat message handlers
void CDFormat::OnOK()
{
// TODO: Add extra validation here
//CDialog::OnOK();
}
void CDFormat::OnButformt()
{
if(MessageBox("確定執(zhí)行初始化操作嗎?","系統(tǒng)提示",MB_OKCANCEL|MB_ICONQUESTION)!=1)
return;
RxRecordset rst;
CString sSQL,sDateName[]={"支付手續(xù)表","辦理違約索賠記錄","合同更改記錄表","合同簽訂記錄","簽約前合同評審表","部門信息表","往來單位信息表","項目信息表","用戶信息表"};
for(int i=0;i<9;i++)
{
sSQL.Format("DELETE FROM %s",sDateName[i]);
rst.Open(sSQL,adCmdText);
}
MessageBox("初始化操作完成!","系統(tǒng)提示",MB_OK|MB_ICONINFORMATION);
}
void CDFormat::OnButexit()
{
this->OnCancel();
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -