<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>销售趋势分析</title>
    <link href="../../Content/Default/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Default/ui.jqgrid.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Default/combo.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Default/combobox.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/monthpicker.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/style.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/lib/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/grid.locale-cn.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/jquery.jqGrid.min.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/highcharts.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/jquery.layoutpanel.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/jquery.combo_ciho.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/jquery.combobox.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/jquery-monthpicker.js" type="text/javascript"></script>
    <script src="../../Scripts/common.js" type="text/javascript"></script>
    <script src="../../Scripts/msg.js" type="text/javascript"></script>
    <script src="../../Scripts/msgBox.js" type="text/javascript"></script>
    <script src="../../Scripts/jsonConvert.js" type="text/javascript"></script>
    <script src="../../Scripts/02/p0216.js" type="text/javascript"></script>
    <script type="text/javascript">
        var strTableP0216 = "qsfx";
        var strPricePlace = window.parent.strPricePlace;
        var strCountPlace = window.parent.strCountPlace;
        var strMoneyPlace = window.parent.strMoneyPlace;
        var strPercentPlace = window.parent.strPercentPlace;
        var bLoadComplete = false;
        var showState = 1;                                                          //显示曲线图

        //改变窗口大小时，改变表格的高度和宽度。
        window.onresize = function () {
            resizeGrid(strTableP0216, false, false);
            resizeGridScroll(strTableP0216);

            $("#bgdiv").height(window.parent.document.documentElement.clientHeight - _iFrmHeight);
        }

        $(function () {

            $("#bgdiv").height(window.parent.document.documentElement.clientHeight - _iFrmHeight);
            resizeGrid(strTableP0216, false, false);

            initInputs();
            showChartOrTable();

            $("#hb").toggle(function () {
                this.src = "../../Content/Default/images/hb_ok.png";
                this.title = "不显示环比";
                $(this).data("hb", true);
                showChartOrTable();
            }, function () {
                this.src = "../../Content/Default/images/hb.png";
                this.title = "查看环比";
                $(this).data("hb", false);
                showChartOrTable();
            }).data("hb", false);
            $("#lihb").hide();
        });
    </script>
</head>
<body>
    <div id="bgdiv" class="reportline" style="overflow: hidden">
        <div class="title_bar">
            <div class="topi">
                <div class="column">
                    <div id="added">
                    </div>
                    <div class="dedt">
                        <ul>
                            <li>
                                <select id="lxtype" class="easyui-combobox">
                                    <option selected="selected" value="1">按客户</option>
                                    <option value="2">按药品</option>
                                    <option value="3">按销售员</option>
                                </select></li>
                            <li>
                                <select id="sjtype" class="easyui-combobox">
                                    <option selected="selected" value="1">按月</option>
                                    <option value="2">按季度</option>
                                    <option value="3">按年</option>
                                </select></li>
                            <li id="month">
                                <input type="text" id="smonth" readonly="readonly" />
                                <font class="text_hx">&nbsp;&nbsp;</font>
                                <input type="text" id="emonth" readonly="readonly" /></li>
                            <li id="date">
                                <select id="sdate" class="easyui-combobox">
                                </select>
                                <font class="text_hx">&nbsp;&nbsp;</font>
                                <select id="edate" class="easyui-combobox">
                                </select></li>
                            <li>
                                <select id="cxtype" class="easyui-combobox">
                                    <option selected="selected" value="1">按金额</option>
                                    <option value="2">按数量</option>
                                </select></li>
                            <li>
                                <select id="khdm" class="easyui-combobox">
                                </select></li>
                            <li>
                                <select id="spdm" class="easyui-combobox">
                                </select></li>
                            <li>
                                <select id="zydm" class="easyui-combobox">
                                </select></li>
                            <li class='unline'>
                                <input type="checkbox" id="includeTH" />包含退货</li>
                            <li class="enter"><a href="#" onclick="showChartOrTable();return false;">查询</a></li>
                            <li>&nbsp;<img id="showChartOrTable" title="查看表格" style="cursor: pointer" src="../../Content/Default/images/table.png" /></li>
                            <li id="lihb">
                                <img id="hb" class="hb" title="查看环比" style="cursor: pointer" src="../../Content/Default/images/hb.png" /></li></ul>
                    </div>
                    <div class="clr">
                    </div>
                </div>
                <div>
                </div>
            </div>
            <div class="clr">
            </div>
        </div>
        <div id="divChart" style="width: 100%; height: 100%">
            <div id="ChartPosition">
            </div>
        </div>
        <div id="divTable">
            <table id="qsfx">
            </table>
        </div>
    </div>
</body>
</html>
