在网格视图reg中显示报告 [英] showing of reports in grid view reg

查看:77
本文介绍了在网格视图reg中显示报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有人可以给我一些有关表演的提示吗?

1)月度报告:
必须从今天起自动获取当前月份,并在网格视图中显示结果

2)每周报告:
必须从今天开始减去今天的7天来计算当前星期,并在网格视图中显示结果


问题是,如果用户由于时间原因而在今天单击了den,那么我将对日期时间函数使用gettype(),结果尚未显示在网格视图中

等待您的回应,

在此先感谢




问候,
gowtham

Hi,

can any one give me some tips regarding showing

1)monthly report:
It is in which the current month must be taken automatically from the today date and show the result in grid view

2)weekly report:
It is in which the current week by subracting 7 days from today date must be taken automatically and show the result in grid view


the problem is i am using gettype() for datetime function if the user click today den due to the time in it the results not yet displaying in grid view

waiting for ur responces,

thanks in advance




regards,
gowtham

推荐答案

创建2个文本框Date From和Date To并单击将其连接到数据库时添加搜索按钮将2个文本框作为参数发送,然后将其绑定到gridview .

1.月度报告:
首先,您需要获取当前日期,分别是当月的第一天和当月的最后一天.
在这里你会怎么做.

create a 2 textboxes Date From and Date To and add Search button when click connect it to the databsae send the 2 textboxes as parameter then bind it to your gridview.

1. Monthly Report:
First you need to get the current date the get the 1st day of the month and last day of the month.
here how will you do it.

Dim date_From As DateTime = Now.AddDays((Now.Day - 1) * -1)

Dim date_To As New DateTime(Now.Year, Now.Month, 1)
date_To = date_To.AddMonths(1).AddDays(-1)



2)每周报告:



2)weekly report:

Dim date_From As DateTime = Date.Now.ToShortDateString()

        Dim date_To As DateTime = Date.Now.AddDays(7)


这篇关于在网格视图reg中显示报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆