Skip to content
SupplierRate.aspx 7.87 KiB
Newer Older
Jack Dan's avatar
Jack Dan committed
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SupplierRate.aspx.cs" Inherits="Sqcy.Web.Supplier.SupplierRate" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title><%=Ces.Lib.ConfigHelper.GetConfigAppSetting("Title") %>-采用率</title>
    <link rel="stylesheet" href="../Common/css/common.css">
    <link rel="stylesheet" href="../Common/font.css">
    <link rel="stylesheet" href="../Common/css/style.css">
    <link rel="stylesheet" href="../Common/layui/css/layui.css" media="all">
    <style>
        .right_innner_table table td {
            height: 30px !important;
        }

        .orderlist a {
            text-decoration: none;
            color: red !important;
        }

            .orderlist a:link {
                text-decoration: none;
            }

            .orderlist a:hover {
                text-decoration: none;
            }

            .orderlist a:focus {
                outline: none;
            }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:HiddenField ID="HiddenSel" runat="server" />
        <div class="main_box">
            <div class="right">
                <div class="right_content">
                    <div class="right_single_box">
                        <div class="right_inner_content1">

                            <div class="right_innner_table" style="width: 950px; margin: auto;">

                                <div class="right_inner_title" style="height: 50px; line-height: 50px;">
                                      <div class="layui-form sel" style="margin-left: -15px;">
                                        <label class="layui-form-label" style="padding: 15px 0px; width: 75px;">开始日期</label>
                                        <div class="layui-input-block small_ipt ipt_100">
                                               <asp:TextBox ID="TxtStartDate" runat="server" CssClass="data_time"></asp:TextBox>
                                        </div>
                                    </div>
                                     <div class="layui-form sel" style="margin-left: -15px;">
                                        <label class="layui-form-label" style="padding: 15px 0px; width: 75px;">结束日期</label>
                                        <div class="layui-input-block small_ipt ipt_100">
                                               <asp:TextBox ID="TxtEndDate" runat="server" CssClass="data_time"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="layui-form sel" style="margin-left: -15px;">
                                        <div class="layui-input-block small_ipt ipt_100">
                                            <asp:Button ID="SearchBut" runat="server" Text="查询统计" OnClick="SearchBut_Click" CssClass="gre_btn" />
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form">
                                    <div id="ContainerChart1" style="width: 100%; margin-left: auto; margin-right: auto;">
                                    </div>

                                </div>


                            </div>


                        </div>


                    </div>
                </div>
            </div>
        </div>
        <script src="../Common/js/jquery.1.10.2.min.js"></script>
        <script src="../Common/js/main.js"></script>
        <script src="../Common/js/Common.js"></script>
        <script src="../Common/laydate/laydate.js"></script>
        <script src="../Common/layui/layui.js" charset="utf-8"></script>

        <script src="../plugin/highcharts/New/highcharts.js" type="text/javascript"></script>
        <script src="../plugin/highcharts/New/highcharts-3d.js" type="text/javascript"></script>
        <script src="../plugin/highcharts/drilldown.js" type="text/javascript"></script>

        <script>
            //Demo
            layui.use('form', function () {
                var form = layui.form;

                //监听提交
                form.on('submit(formDemo)', function (data) {
                    layer.msg(JSON.stringify(data.field));
                    return false;
                });

              <%--  form.on('select(<%=DDLYearForChart.ClientID%>)', function (data) {
                    data.elem.onchange();
                });

                form.on('select(<%=DDLSupplierForChart.ClientID%>)', function (data) {
                    data.elem.onchange();
                });--%>
            });


            layui.use('element', function () {
                var element = layui.element; //Tab的切换功能,切换事件监听等,需要依赖element模块
            });
            lay('#version').html('-v' + laydate.v);

             laydate.render({
                elem: '#TxtStartDate', //指定元素
                // type: 'datetime',
                format: 'yyyy-MM-dd',
                done: function (value, date) {
                    // alert('你选择的日期是:' + value + '\n获得的对象是' + JSON.stringify(date));
                }
            });

             laydate.render({
                elem: '#TxtEndDate', //指定元素
                // type: 'datetime',
                format: 'yyyy-MM-dd',
                done: function (value, date) {
                    // alert('你选择的日期是:' + value + '\n获得的对象是' + JSON.stringify(date));
                }
            });

        </script>
        <script>
            $(function () {

                //1
           $('#ContainerChart1').highcharts({
	                chart: {
		                type: 'bar'
                    },
                    credits:
                    {
                        enabled: false
                    },
	                title: {
		                text: ''
	                },
	                xAxis: {
                        categories: [ <%=Chart_01_TitleData%>],
 //                    labels:{
	//	formatter: function() { 
	//		return '<span style="float:right;" class="x-labels" title="' + this.value + '">' + this.value.substr(0,8) + '</span>'
	//	},
	//	useHTML: true
	//},

		                title: {
			                text: null
		                }
	                },
	                yAxis: {
		                min: 0,
		                title: {
			                text: '',
			                //align: 'high'
		                },
		                labels: {
			                overflow: 'justify'
		                }
	                },
                    tooltip:
                    {
		                valueSuffix: '%',
                        formatter:function(){
                        return''+this.series.name+' '+Highcharts.numberFormat(this.y,2,'.');}
	                },
	                plotOptions: {
		//               series: {
		//	stacking: 'normal'
		//}
	                },
                    legend: {
                        //reversed: true 
		                //layout: 'vertical',
		                //align: 'right',
		                //verticalAlign: 'top',
		                //x: -40,
		                //y: 100,
		                //floating: true,
		                //borderWidth: 1,
		                //backgroundColor: ((Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'),
		                //shadow: true
	                },
	                series: [{
		                name: '采用率(%)',
		                data: [<%=Chart_01_ChartData01 %>]
                    }
                    ]
              });



            });
        </script>
    </form>
</body>
</html>