<!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/08/p0802.js" type="text/javascript"></script>
    <script type="text/javascript">
        var bLoadComplete = false;
        $(document).ready(function () {
            try {

                //取年分
                getYearData();

                //加载头部信息
                getSearchInfo();

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

                //显示影藏同比数据
                $("#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");
                    }

                    searchDataClickP0802();
                });

                //动态创建表格
                createGridP0116("Tp0802", getColName(), getColModel());

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

                //搜索数据
                searchDataClickP0802();

                bLoadComplete = true;
            }
            catch (e) {
                proceError("p0802", e.ToString());
            }
        });
    </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div class="dedt">
                    <ul>
                        <li>
                            <select id="cmbTypeExtentP0802" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <select id="cmbDateExtentP0802" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <select id="dateStartTimeP0802" class="easyui-combobox">
                            </select>
                            <font class="text_hx">&nbsp;&nbsp;</font>
                            <select id="dateEndTimeP0802" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 统计类型 -->
                            <select id="cmbDisTpP0802" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 全部客户 -->
                            <select id="cmbKhP0802" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 全部药品 -->
                            <select id="cmbSpP0802" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 全部销售员 -->
                            <select id="cmbZyP0802" 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="btnSearchDataP0802" href="#" onclick="searchDataClickP0802()">
                            查询</a></li>
                    </ul>
                </div>
                <div class="clr">
                </div>
            </div>
            <div>
            </div>
        </div>
        <div class="clr">
        </div>
    </div>
    <table id="Tp0802">
    </table>
</body>
</html>
