社区
图表区
帖子详情
怎么没人回答我的问题啊是不是太难了?
xushunliu
2006-04-27 02:58:38
我在NET2003的WINFORM环境下做的水晶报表,用DATASET填充数据一共用了四张表,跟踪数据都得到了,但是运行程序时候加载报表会弹出一个登陆数据库的验证界面,不知道是什么原因,请问有没有高手可以帮我解释下.
...全文
164
5
打赏
收藏
怎么没人回答我的问题啊是不是太难了?
我在NET2003的WINFORM环境下做的水晶报表,用DATASET填充数据一共用了四张表,跟踪数据都得到了,但是运行程序时候加载报表会弹出一个登陆数据库的验证界面,不知道是什么原因,请问有没有高手可以帮我解释下.
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
lbmshiwo
2006-04-29
打赏
举报
回复
呵,可惜我不是用REPORT SERVICES.
lolenboy
2006-04-28
打赏
举报
回复
我用过reporting Services ,当时这个问题,好象是:设置 IIS,目录安全性-->匿名访问->编辑,然后打上前两个选项(记得给分呀!-_-)
xushunliu
2006-04-27
打赏
举报
回复
private void createWL_return()
{
try
{
CrystalReport.cvrKPItrafficSum cvr = new LongLiQi.CrystalReport.cvrKPItrafficSum();
Datasets.dsTrafficReturnLittle Qds=this.createWl_ReturnList();
this.Get_SqlDataAdapter().Fill(Qds,"T_Company_Enrol");
cvr.SetDataSource(Qds);
CRVReport.ReportSource=cvr;
}
catch(System.Exception ex)
{
Console.Write(ex.ToString());
}
}
private Datasets.dsTrafficReturnLittle createWl_ReturnList()
{
string sql ="select distinct(trafficCompany) from T_Traffic_Company_AttemperPlan ";
SqlConnection con = new SqlConnection(path);
DataSet ds = new DataSet();
SqlCommand cmd = new SqlCommand(sql,con);
SqlDataAdapter dtp = new SqlDataAdapter(cmd);
dtp.Fill(ds);
int col = ds.Tables[0].Rows.Count;
Datasets.dsTrafficReturnLittle Qds = new LongLiQi.Datasets.dsTrafficReturnLittle();
SqlConnection Qcnn = new SqlConnection(path);
DataRow row =Qds.Tables["tmp_time"].NewRow();
row[0]=fristTime;
row[1]=lastTime;
for(int i=0; i<col;i++)
{
DataRow dw = Qds.Tables["D_TrafficReturn"].NewRow();
string trafficCompany = ds.Tables[0].Rows[i][0].ToString();//得到运输公司名
string sqlsumP ="select count(distinct trafficId) from T_Traffic_Company_AttemperPlan where "+
"plantime between '"+fristTime+"' and '"+lastTime+"' and trafficCompany='"+trafficCompany+"'";
DataSet dssumP = new DataSet();
SqlCommand cmdSumP= new SqlCommand(sqlsumP,con);
SqlDataAdapter dtpSumP = new SqlDataAdapter(cmdSumP);
dtpSumP.Fill(dssumP);
string sumP = dssumP.Tables[0].Rows[0][0].ToString();//得到总票数
string sqlnoP="select count(distinct trafficId) from T_Traffic_Company_AttemperPlan where "+
" plantime between '"+fristTime+"' and '"+lastTime+"' and workState = '调度计划' and trafficCompany='"+trafficCompany+"'";
DataSet dsnoP = new DataSet();
SqlCommand cmdnoP=new SqlCommand(sqlnoP,con);
SqlDataAdapter dtpnoP = new SqlDataAdapter(cmdnoP);
dtpnoP.Fill(dsnoP);
string noP = dsnoP .Tables[0].Rows[0][0].ToString();
if(sumP.Equals("")||noP.Equals(""))
{
sumP ="0";
noP ="0";
}
int sumP1=int.Parse(sumP);
int returnP = int.Parse(sumP)-int.Parse(noP);
float returnB =float.Parse(returnP.ToString())/float.Parse(sumP.ToString())*100;
dw["trafficCompany"]=trafficCompany;
dw["sumP"]=sumP1;
dw["returnP"]=returnP;
dw["noP"]=noP;
dw["returnB"]=returnB;
Qds.Tables["D_TrafficReturn"].Rows.Add(dw);
}
Qds.Tables["tmp_time"].Rows.Add(row);
return Qds;
}
这个是我的代码
xushunliu
2006-04-27
打赏
举报
回复
private void createWL_return()
{
try
{
CrystalReport.cvrKPItrafficSum cvr = new LongLiQi.CrystalReport.cvrKPItrafficSum();
Datasets.dsTrafficReturnLittle Qds=this.createWl_ReturnList();
this.Get_SqlDataAdapter().Fill(Qds,"T_Company_Enrol");
cvr.SetDataSource(Qds);
CRVReport.ReportSource=cvr;
}
catch(System.Exception ex)
{
Console.Write(ex.ToString());
}
}
private Datasets.dsTrafficReturnLittle createWl_ReturnList()
{
string sql ="select distinct(trafficCompany) from T_Traffic_Company_AttemperPlan ";
SqlConnection con = new SqlConnection(path);
DataSet ds = new DataSet();
SqlCommand cmd = new SqlCommand(sql,con);
SqlDataAdapter dtp = new SqlDataAdapter(cmd);
dtp.Fill(ds);
int col = ds.Tables[0].Rows.Count;
Datasets.dsTrafficReturnLittle Qds = new LongLiQi.Datasets.dsTrafficReturnLittle();
SqlConnection Qcnn = new SqlConnection(path);
DataRow row =Qds.Tables["tmp_time"].NewRow();
row[0]=fristTime;
row[1]=lastTime;
for(int i=0; i<col;i++)
{
DataRow dw = Qds.Tables["D_TrafficReturn"].NewRow();
string trafficCompany = ds.Tables[0].Rows[i][0].ToString();//得到运输公司名
string sqlsumP ="select count(distinct trafficId) from T_Traffic_Company_AttemperPlan where "+
"plantime between '"+fristTime+"' and '"+lastTime+"' and trafficCompany='"+trafficCompany+"'";
DataSet dssumP = new DataSet();
SqlCommand cmdSumP= new SqlCommand(sqlsumP,con);
SqlDataAdapter dtpSumP = new SqlDataAdapter(cmdSumP);
dtpSumP.Fill(dssumP);
string sumP = dssumP.Tables[0].Rows[0][0].ToString();//得到总票数
string sqlnoP="select count(distinct trafficId) from T_Traffic_Company_AttemperPlan where "+
" plantime between '"+fristTime+"' and '"+lastTime+"' and workState = '调度计划' and trafficCompany='"+trafficCompany+"'";
DataSet dsnoP = new DataSet();
SqlCommand cmdnoP=new SqlCommand(sqlnoP,con);
SqlDataAdapter dtpnoP = new SqlDataAdapter(cmdnoP);
dtpnoP.Fill(dsnoP);
string noP = dsnoP .Tables[0].Rows[0][0].ToString();
if(sumP.Equals("")||noP.Equals(""))
{
sumP ="0";
noP ="0";
}
int sumP1=int.Parse(sumP);
int returnP = int.Parse(sumP)-int.Parse(noP);
float returnB =float.Parse(returnP.ToString())/float.Parse(sumP.ToString())*100;
dw["trafficCompany"]=trafficCompany;
dw["sumP"]=sumP1;
dw["returnP"]=returnP;
dw["noP"]=noP;
dw["returnB"]=returnB;
Qds.Tables["D_TrafficReturn"].Rows.Add(dw);
}
Qds.Tables["tmp_time"].Rows.Add(row);
return Qds;
}
这个是我的代码
咏方舟【长江支流】
2006-04-27
打赏
举报
回复
那就是连接数据库的用户名或密码错误,你需要指定
微服务和单体架构区别
1.单体架构 单体架构,是指将开发好的项目打成war包,然后发布到tomcat等容器中的应用。 假设你正准备开发一款与Uber和Hailo竞争的出租车调度软件,经过初步会议和需求分析,你可能会手动或者使用基于Spring Boot、Play或者Maven的生成器开始这个新项目,它的六边形架构是模块化的,架构图如下: 应用核心是业务逻辑,由定义服务、域对象和事件的模块完成。围绕着核心的是与外界打交道的适配器。适配器包括数据库访问组件、生产和处理消息的消息组件,以及提供API或者UI访问
单体架构,分布式系统的差别在哪里?
系列文章目录 提示:这里可以添加系列文章的所有文章的目录,目录需要自己手动添加 例如:第一章Python 机器学习入门之pandas的使用 提示:写完文章后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录 系列文章目录 前言 一、pandas是什么? 二、使用步骤 1.引入库 2.读入数据 总结 前言 随着技术日新月异的发展,最近几年微服务和分布式技术成为主流。每一个好的解决方案不一定是直接设计出来的,但每一个优秀的架构都必须承受得住业务的考验和需求...
【篇章一】SpringCloud前言 - 单体架构系统
目录 前言 单体架构系统 1.什么是单体架构 2.单体架构的优缺点 关于部署 关于开发和整理 3.总结 前言 刚毕业的学生党一枚,了解到现在分布式系统 - 微服务体系的火热,自Spring5.0版本的更新,通过百度等各种引擎了解Spring的身影,SpringBoot新颖的名词也是在那个时候,才逐渐接触,回想起临近毕业的前几个月,用springboot + JPA搭建一个小型应...
SpringCloud 单体架构、分布式架构、微服务介绍、SpringCloud和Dubbo的技术对比、SpringCloud与SpringBoot的版本兼容
微服务是一种经过良好架构设计的 分布式架构方案 微服务架构特征: 单一职责:每一个服务都对应唯一的业务能力,做到单一职责,避免重复业务开发 面向服务:微服务对外暴露业务接口 自治:团队独立、技术独立、数据独立(每个服务有独立的数据库)、部署独立 隔离性强:服务调用做好隔离、容错、降级、避免出现级联
问题
..................
Spring Boot 前后端分离单体架构:如何平衡效率与可维护性|Spring Boot|前后端分离项目的性能瓶颈与优化策略|前后端分离|单体架构|Spring Boot|微服务|架构演变...
随着互联网应用的发展,前后端分离架构逐渐成为现代Web开发的主流。然而,许多中小型项目在早期并不具备足够的资源和需求去构建复杂的微服务架构,因此,单体架构依然是一个广泛采用的模式。在Spring Boot中,如何在单体架构下实现前后端分离,既保持开发的灵活性和可扩展性,又不失去项目的快速迭代效率,这是本文将要探讨的核心
问题
...
图表区
4,818
社区成员
14,133
社区内容
发帖
与我相关
我的任务
图表区
.NET技术 图表区
复制链接
扫一扫
分享
社区描述
.NET技术 图表区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章