// LargerReport.cpp: implementation of the CLargerReport class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "DireSystemClient.h"
#include "LargerReport.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CLargerReport::CLargerReport()
{
}
CLargerReport::~CLargerReport()
{
}
void CLargerReport::Draw(CDC* pDC,int nWidth,int nHeight)
{
CPen* pOldPen = NULL;
CFont* pOldFont = NULL;
int nHeightPerLine = (int)(nWidth*1.5/27);
int nWidthPerLine = nWidth/18;
int m_nFont;
int nHeightModify,nWidthModify;
nHeightModify = int(nWidth/51);
nWidthModify = int(nWidth/101);
int nNumCharPerLine;
nNumCharPerLine = (int)(nWidth/17);
//制作表格
CPen stockBlackPen(PS_SOLID,2,RGB(0,0,0));
pOldPen = pDC->SelectObject(&stockBlackPen);
///////制作表格////////
//横线
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*4);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*4);
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*5);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*5);
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*6);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*6);
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*7);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*7);
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*9);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*9);
pDC->MoveTo(nWidthPerLine*2,nHeightPerLine*10);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*10);
pDC->MoveTo(nWidthPerLine*2,nHeightPerLine*12);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*12);
pDC->MoveTo(nWidthPerLine*2,nHeightPerLine*14);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*14);
pDC->MoveTo(nWidthPerLine*2,nHeightPerLine*15);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*15);
pDC->MoveTo(nWidthPerLine*2,nHeightPerLine*16);
pDC->LineTo(nWidthPerLine*11,nHeightPerLine*16);
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*17);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*17);
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*19);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*19);
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*22);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*22);
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*25);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*25);
//next
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*30);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*30);
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*33);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*33);
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*36);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*36);
pDC->MoveTo(nWidthPerLine*2,nHeightPerLine*38);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*38);
pDC->MoveTo(nWidthPerLine*2,nHeightPerLine*40);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*40);
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*42);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*42);
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*47);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*47);
pDC->MoveTo(nWidthPerLine*1,nHeightPerLine*51);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*51);
//竖线
pDC->MoveTo(nWidthPerLine,nHeightPerLine*4);
pDC->LineTo(nWidthPerLine,nHeightPerLine*25);
pDC->MoveTo(nWidthPerLine*17,nHeightPerLine*4);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*25);
pDC->MoveTo(nWidthPerLine*3,nHeightPerLine*4);
pDC->LineTo(nWidthPerLine*3,nHeightPerLine*11);
pDC->MoveTo(nWidthPerLine*9,nHeightPerLine*4);
pDC->LineTo(nWidthPerLine*9,nHeightPerLine*7);
pDC->MoveTo(nWidthPerLine*12,nHeightPerLine*4);
pDC->LineTo(nWidthPerLine*12,nHeightPerLine*7);
pDC->MoveTo(nWidthPerLine*2,nHeightPerLine*9);
pDC->LineTo(nWidthPerLine*2,nHeightPerLine*25);
pDC->MoveTo(nWidthPerLine*3,nHeightPerLine*9);
pDC->LineTo(nWidthPerLine*3,nHeightPerLine*17);
pDC->MoveTo(nWidthPerLine*5,nHeightPerLine*9);
pDC->LineTo(nWidthPerLine*5,nHeightPerLine*17);
pDC->MoveTo(nWidthPerLine*8,nHeightPerLine*9);
pDC->LineTo(nWidthPerLine*8,nHeightPerLine*14);
pDC->MoveTo(nWidthPerLine*11,nHeightPerLine*9);
pDC->LineTo(nWidthPerLine*11,nHeightPerLine*17);
pDC->MoveTo(nWidthPerLine*14,nHeightPerLine*9);
pDC->LineTo(nWidthPerLine*14,nHeightPerLine*14);
///next
pDC->MoveTo(nWidthPerLine,nHeightPerLine*30);
pDC->LineTo(nWidthPerLine,nHeightPerLine*51);
pDC->MoveTo(nWidthPerLine*17,nHeightPerLine*30);
pDC->LineTo(nWidthPerLine*17,nHeightPerLine*51);
pDC->MoveTo(nWidthPerLine*4,nHeightPerLine*30);
pDC->LineTo(nWidthPerLine*4,nHeightPerLine*51);
pDC->MoveTo(nWidthPerLine*2,nHeightPerLine*36);
pDC->LineTo(nWidthPerLine*2,nHeightPerLine*42);
//表格本身文字
CRect rcRectangle;
CString strContent;
//标题
CFont fnLine;
m_nFont = (int)(nWidth/22);
fnLine.CreateFont(m_nFont,0,0,0,FW_HEAVY,FALSE,FALSE,0,
ANSI_CHARSET,OUT_DEFAULT_PRECIS,
CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,
FF_SWISS+VARIABLE_PITCH,"Arial");
pOldFont = pDC->SelectObject(&fnLine);
strContent = "扩(改)建地热水井申请表";
rcRectangle.left = nWidthPerLine*5 ;
rcRectangle.top = nHeightPerLine*2;
rcRectangle.right = nWidthPerLine*16;
rcRectangle.bottom = nHeightPerLine*3;
pDC->SetBkMode(TRANSPARENT);
pDC->DrawText(strContent,rcRectangle,DT_LEFT);
fnLine.DeleteObject();
m_nFont = (int)(nWidth/35);
fnLine.CreateFont(m_nFont,0,0,0,FW_HEAVY,FALSE,FALSE,0,
ANSI_CHARSET,OUT_DEFAULT_PRECIS,
CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,
FF_SWISS+VARIABLE_PITCH,"Arial");
pOldFont = pDC->SelectObject(&fnLine);
//申请单位
strContent.Format("申请单位");
rcRectangle.left = nWidthPerLine ;
rcRectangle.top = nHeightPerLine*4+nHeightModify;
rcRectangle.right = nWidthPerLine*3;
rcRectangle.bottom = nHeightPerLine*5;
pDC->SetBkMode(TRANSPARENT);
pDC->DrawText(strContent,rcRectangle,DT_CENTER);
//井址
strContent = "井 址";
rcRectangle.left = nWidthPerLine*1 ;
rcRectangle.top = nHeightPerLine*5 + nHeightModify;
rcRectangle.right = nWidthPerLine*3;
rcRectangle.bottom = nHeightPerLine*6;
pDC->SetBkMode(TRANSPARENT);
pDC->DrawText(strContent,rcRectangle,DT_CENTER);
//井数
strContent = "井 数";
rcRectangle.left = nWidthPerLine*1 ;
rcRectangle.top = nHeightPerLine*6 + nHeightModify;
rcRectangle.right = nWidthPerLine*3;
rcRectangle.bottom = nHeightPerLine*7;
pDC->SetBkMode(TRANSPARENT);
pDC->DrawText(strContent,rcRectangle,DT_CENTER);
//单位地址
strContent = "单位地址";
rcRectangle.left = nWidthPerLine*9 ;
rcRectangle.top = nHeightPerLine*4 + nHeightModify;
rcRectangle.right = nWidthPerLine*12;
rcRectangle.bottom = nHeightPerLine*5;
pDC->SetBkMode(TRANSPARENT);
pDC->DrawText(strContent,rcRectangle,DT_CENTER);
//联系人及电话
strContent = "联系人及电话";
rcRectangle.left = nWidthPerLine*9 ;
rcRectangle.top = nHeightPerLine*5 + nHeightModify;
rcRectangle.right = nWidthPerLine*12;
rcRectangle.bottom = nHeightPerLine*6;
pDC->SetBkMode(TRANSPARENT);
pDC->DrawText(strContent,rcRectangle,DT_CENTER);
//投资批文号
strContent = "投资批文号";
rcRectangle.left = nWidthPerLine*9 ;
rcRectangle.top = nHeightPerLine*6 + nHeightModify;
rcRectangle.right = nWidthPerLine*12;
rcRectangle.bottom = nHeightPerLine*7;
pDC->SetBkMode(TRANSPARENT);
pDC->DrawText(strContent,rcRectangle,DT_CENTER);
//扩(改)建原因
strContent = "扩(改)建\n原因";
rcRectangle.left = nWidthPerLine ;
rcRectangle.top = nHeightPerLine*7 + nHeightModify;
rcRectangle.right = nWidthPerLine*3;
rcRectangle.bottom = nHeightPerLine*9;
pDC->SetBkMode(TRANSPARENT);
pDC->DrawText(strContent,rcRectangle,DT_CENTER);
//井身结构
strContent = "井\n\n\n身\n\n\n结\n\n\n构";
rcRectangle.left = nWidt
没有合适的资源?快使用搜索试试~ 我知道了~
DireSystemClient.rar_ado.mak_报表 打印
共151个文件
h:63个
cpp:61个
ico:6个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 102 浏览量
2022-09-14
16:48:49
上传
评论
收藏 1.1MB RAR 举报
温馨提示
ADO数据库程序,非常完善的报表,自动打印,功能强大,
资源推荐
资源详情
资源评论
收起资源包目录
DireSystemClient.rar_ado.mak_报表 打印 (151个子文件)
DireSystemClient.aps 207KB
Toolbar.bmp 358B
chszsj43.chh 200B
DireSystemClient.clw 90KB
LargerReport.cpp 83KB
NewApplyReport.cpp 57KB
CheckReport.cpp 45KB
CleanReport.cpp 39KB
ConstructReport.cpp 34KB
LargerApplyDlg.cpp 34KB
NewApplyDlg.cpp 33KB
LeftView.cpp 32KB
DireSystemClientView.cpp 32KB
ExploreReport.cpp 26KB
ConstructMainTeckReport.cpp 25KB
ConstructFinishedReport.cpp 24KB
ConstructDlg.cpp 23KB
CleanDlg.cpp 22KB
DATAGRID.CPP 18KB
ConstructShebeiReport.cpp 18KB
MainFrm.cpp 16KB
Layerstru.cpp 15KB
AbandonDlg.cpp 14KB
ExploreDlg.cpp 13KB
_recordset.cpp 13KB
DanweiMemDlg.cpp 11KB
ConstructMainTeckmanDlg.cpp 10KB
ConstructFinishedListDlg.cpp 9KB
ManagerUserDlg.cpp 9KB
ConstructEquipListDlg.cpp 7KB
COLUMN.CPP 6KB
ConstructApplyDlg.cpp 6KB
LargerPage4.cpp 5KB
DireSystemClient.cpp 5KB
ConstructTeckmanFindDlg.cpp 4KB
LargerPage1.cpp 4KB
NewPage1.cpp 4KB
CShebeiFindDlg.cpp 4KB
LargerApplyFindDlg.cpp 4KB
AbandonPage.cpp 4KB
NewApplyFindDlg.cpp 4KB
ContructFindDlg.cpp 4KB
Chosedanwei.cpp 4KB
AbandonFindDlg.cpp 4KB
CleanFindDlg.cpp 3KB
CodeTranslate.cpp 3KB
FIELD.CPP 3KB
LargerPage2.cpp 3KB
LargerPage3.cpp 3KB
CleanPage1.cpp 3KB
CleanPage3.cpp 3KB
LayerStruPage.cpp 2KB
FONT.CPP 2KB
DireSystemClientDoc.cpp 2KB
ConstructTeckman.cpp 2KB
ConstructShigongShebeiDlg.cpp 2KB
FinishedSummaryDlg.cpp 2KB
FIELDS.CPP 1KB
LoginDlg.cpp 1KB
CleanPage2.cpp 1KB
COLUMNS.CPP 1KB
ExploreFindDlg.cpp 1KB
ExplorePage.cpp 1KB
CoeffiDlg.cpp 967B
dataformatdisp.cpp 515B
Thumbs.db 12KB
DireSystemClient.dep 13KB
DireSystemClient.dsp 26KB
DireSystemClient.dsw 645B
_tmp_project.h 6KB
DATAGRID.H 5KB
_recordset.h 4KB
DireSystemClientView.h 4KB
NewApplyDlg.h 3KB
LargerApplyDlg.h 3KB
MainFrm.h 2KB
COLUMN.H 2KB
ConstructDlg.h 2KB
CleanDlg.h 2KB
ConstructApplyDlg.h 2KB
FIELD.H 2KB
ConstructMainTeckmanDlg.h 2KB
ConstructFinishedListDlg.h 2KB
Layerstru.h 2KB
ConstructEquipListDlg.h 2KB
LargerPage4.h 2KB
ExploreDlg.h 2KB
AbandonDlg.h 2KB
LayerStruPage.h 2KB
LargerPage3.h 2KB
LargerPage1.h 2KB
AbandonPage.h 2KB
DireSystemClientDoc.h 2KB
NewPage1.h 2KB
LeftView.h 2KB
ConstructTeckmanFindDlg.h 1KB
CleanPage1.h 1KB
CheckPage3.h 1KB
ConstructShigongShebeiDlg.h 1KB
DanweiMemDlg.h 1KB
共 151 条
- 1
- 2
资源评论
weixin_42651887
- 粉丝: 77
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于matlab实现的非负矩阵分解(non-negative matrix factorization,NMF)算法.rar
- 基于matlab实现的非支配排序遗传算法改编的实用型算法,该算法收敛速度快而且能够避免收敛在局部最优非常.rar
- 基于matlab实现的偏最小二乘法源代码包括GUI和CMD文件.rar
- 基于matlab实现的偏最小二乘,直接将文件拷贝至matlab文件夹下,即可使用 详细使用方法见代码本身.rar
- Wi-Fi Filter Tool(电脑WiFi过滤工具) V1.1
- 基于matlab实现的完整的NMF算法资料,有说明文件,有代码,也有运行案例 是非常不错的学习NMF的资料.rar
- 知识领域: 网络安全 技术关键词: 漏洞分析、渗透测试、加密算法 内容关键词: 攻击防范、网络流量分析、身份验证
- 基于matlab实现的完整的抗衰落仿真,不同分集接收方式性能比较.rar
- 基于matlab实现的完整的在LTE标准下MIMO+OFDM仿真程序.rar
- 基于matlab实现的用于换热网络优化的非支配排序遗传算法源程序.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功