<%@ Page Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="PubClientQuery.aspx.cs"
Inherits="IMDashBoard.Web.PubClientQuery" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:Label ID="Label1" runat="server"></asp:Label>
<table border="1">
<tr>
<td>
</td>
<td>
<asp:TextBox ID="txtDateFrom" runat="server"></asp:TextBox>
<asp:TextBox ID="txtDateTo" runat="server"></asp:TextBox>
</td>
<td>
<asp:Button ID="btnSearch" runat="server" Text="Button" OnClick="btnSearch_Click" />
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Chart ID="Chart1" runat="server" Height="411px" Width="589px">
<Legends>
<asp:Legend BackColor="Transparent" Name="Legend1" DockedToChartArea="ChartArea1"
Alignment="Far" Docking="Top" IsDockedInsideChartArea="False">
<Position Height="8.026756" Width="15.4154158" X="82.5" Y="3" />
</asp:Legend>
</Legends>
<Series>
<asp:Series Name="Series1" Color="49,130,239" Legend="Legend1" LegendText="CPI指数%"
IsValueShownAsLabel="false" Font="Microsoft Sans Serif, 6.5pt" ChartArea="ChartArea1"
CustomProperties="DrawingStyle=Cylinder">
</asp:Series>
</Series>
<BorderSkin SkinStyle="Emboss" />
<ChartAreas>
<asp:ChartArea Name="ChartArea1" BackColor="OldLace" BorderColor="64, 64, 64, 64"
ShadowColor="Transparent" BackGradientStyle="TopBottom" BackSecondaryColor="White">
<Position Height="89.30075" Width="79.57783" X="4.768868" Y="0.699249268" />
<InnerPlotPosition Height="87.85704" Width="88.67226" X="4.32774353"
Y="4.9395" />
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</asp:Content>
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Data.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using IMDashBoard.DAL;
using System.Collections.Generic;
namespace IMDashBoard.Web
{
public partial class PubClientQuery : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string calscript = "$(function(){$('#" + txtDateFrom.ClientID + "').datepicker({yearRange: '1900:2099',showOn: 'both', buttonImage: 'PIC/calendar.gif', buttonImageOnly: true,showButtonPanel: true});});";
Page.ClientScript.RegisterStartupScript(this.GetType(), txtDateFrom.ClientID, calscript, true);
string calscript2 = "$(function(){$('#" + txtDateTo.ClientID + "').datepicker({yearRange: '1900:2099',showOn: 'both', buttonImage: 'PIC/calendar.gif', buttonImageOnly: true,showButtonPanel: true});});";
Page.ClientScript.RegisterStartupScript(this.GetType(), txtDateTo.ClientID, calscript2, true);
string s = txtDateFrom.Text;
}
protected void btnSearch_Click(object sender, EventArgs e)
{
string startDate = txtDateFrom.Text;
string endDate = txtDateTo.Text;
DateTime sd = DateTime.Parse(startDate);
DateTime ed = DateTime.Parse(endDate);
DSDataContext ds = new DSDataContext();
var s = ds.getALL(sd, ed);
Chart1.Series["Series1"].Points.DataBindXY(s, "d", s, "cpi");
}
}
}
分享到:
相关推荐
大一下c++笔记.md
正在自学黑马程序员Java全套,目前只学了Javase,接下来是Javaweb,把自己整理的笔记分享一下。
此资源包含平时常用的代码,可以看一下里面的数据库笔记.txt. 注意sql文档和实验是同步的,算一个实例吧
在培训机构,从开始到最后PHP的笔记,这也算是入门的笔记了。拿出来让大家参考一下,有用就用,没用删了
兄弟连视频,学习笔记,可以看一下
web 开发笔记 超媒体是超文本(hypertext)和多媒体在信息浏览环境下的结合。它是超级媒体的简称。用户不仅能从一个文本跳到另一个文本,而且可以激活一段声音,显示一个图形,甚至可以播放一段动画[2]。 Internet...
这是作者大一下学期在学习《线性代数》时整理的学习笔记 参考用书主编王东老师 赵海霞老师 北京大学出版社 当时的出发点是因为早先了解过线代的知识点比较繁琐,难度不大,但是需要理清的知识点很多 因此就随堂和课...
没有密码,我平时喜欢用这个软件,还是挺不错的推荐一下;笔记拿走欢迎和我技术交流;我是一个热爱学习的软件测试工程师,笔记是我自己整理的,后续会更新;如需其他资源可私信我,资源比较多;本人在无锡工作。。...
笔记本电脑拔掉电源屏幕会黑一下怎么办.docx
go语言入门笔记。。
2015数据结构高分笔记的试读版,可以帮助希望购买这本书的人了解一下此书的风格!强烈推荐!
学习HTML和CSS时候的笔记 感觉比较详细啦,希望对大家有所帮助 自己学习的笔记 分享一下 期待更多人的分享 共同进步
这个做笔记的方法本人觉得不错 大家可以学习一下 可以大大的提高学习效率!
这是本人亲自制作的 PS笔记 简单实用,有兴趣的可以看一下
笔记本测试软件合集,可以测试GPU,CPU,主板,硬盘,显示器
收集了印象笔记,日常用的快捷键,从 全局快捷键、应用内快捷键、笔记编辑快捷键、笔记列表快捷键、笔记侧栏快捷键 5个方面总结快捷键。
用java语言写的笔记本,新手可以看看 吸收一下经验 类似于windows的记事本,很不错的。
ps技巧笔记,一篇非常详细的photoshop入门笔记,原理讲解很清晰,虽然是CS版本,但都是PS新手学习必须掌握的知识点,超实用,赶快收起来,需转不谢!相信一定有很多人在对图片进行拉伸缩放时只想背景缩放,但不想其中...
python 基础笔记,适合初学者,可以跟着笔记操作一下,基础就可以理解了
C++primer的笔记,可以看一下,一些容易犯错的陷阱