⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dformat.cpp

📁 一个合同管理系统
💻 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("确定执行初始化操作吗?","系统提示",MB_OKCANCEL|MB_ICONQUESTION)!=1)
		return;
	RxRecordset rst;
	CString sSQL,sDateName[]={"支付手续表","办理违约索赔记录","合同更改记录表","合同签订记录","签约前合同评审表","部门信息表","往来单位信息表","项目信息表","用户信息表"};
	for(int i=0;i<9;i++)
	{
		sSQL.Format("DELETE FROM %s",sDateName[i]);
		rst.Open(sSQL,adCmdText);
	}
	MessageBox("初始化操作完成!","系统提示",MB_OK|MB_ICONINFORMATION);
	
}

void CDFormat::OnButexit() 
{
	this->OnCancel();	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -