<!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/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/jquery.combo_ciho.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/jquery.combobox.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/jquery.layoutpanel.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/02/P0217.js" type="text/javascript"></script>
    <script type="text/javascript">
        var bLoadComplete = false;
        $(document).ready(function () {
            try {
                //获取年份
                getYearData();

                //加载头部表格数据
                getSearchInfo();

                //创建grid
                createGridP0116("Tp0217", getColName(), getColModel());

                //设置表格高度
                resizeGrid("Tp0217", false, false);

                //搜索数据
                searchDataClickP0217();

                //调整滚动条
                resizeGridScroll("Tp0217");

                //是否显示同比
                $("#imgSame").click(function () {
                    if ($(this).attr("alt") == "0") {
                        $(this).attr("src", "../../Content/Default/images/tb_ok.png");
                        $(this).attr("title", "不显示同比");
                        $(this).attr("alt", "1");
                    }
                    else {
                        $(this).attr("src", "../../Content/Default/images/tb.png");
                        $(this).attr("title", "查看同比");
                        $(this).attr("alt", "0");
                    }
                    searchDataClickP0217();
                    resizeGridScroll("Tp0217");
                });

                //改变窗口大小时事件
                window.onresize = function () {
                    resizeGrid("Tp0217", false, false);
                    resizeGridScroll("Tp0217");
                }

                //加载完成
                bLoadComplete = true;
            }
            catch (e) {
                proceError("P010102", e.ToString());
            }
        });
    </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div class="dedt">
                    <ul>
                        <li>
                            <select id="cmbTypeExtentP0217" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <select id="cmbDateExtentP0217" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <select id="dateStartTimeP0217" class="easyui-combobox">
                            </select>
                            <font class="text_hx">&nbsp;&nbsp;</font>
                            <select id="dateEndTimeP0217" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 统计类型 -->
                            <select id="cmbDisTpP02017" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 全部客户 -->
                            <select id="cmbKhP0217" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 全部药品 -->
                            <select id="cmbSpP0217" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 全部销售员 -->
                            <select id="cmbZyP0217" class="easyui-combobox">
                            </select>
                        </li>
                        <li class="unline">
                            <input id="chkReturn" type="checkbox" /><span onclick="$('#chkReturn').attr('checked',!$('#chkReturn').attr('checked'))">包含退货</span>
                        </li>
                        <li>
                            <!-- alt:0表示不显示 同比 1:表示显示同比-->
                            <img id="imgSame" src="../../Content/Default/images/tb.png" alt="0" title="查看同比"
                                style="cursor: pointer;" />
                        </li>
                        <li class="enter"><a id="btnSearchDataP0217" href="#" onclick="searchDataClickP0217(); resizeGridScroll('Tp0217');">
                            查询</a></li>
                    </ul>
                </div>
                <div class="clr">
                </div>
            </div>
            <div>
            </div>
        </div>
        <div class="clr">
        </div>
    </div>
    <table id="Tp0217">
    </table>
</body>
</html>
