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

                //获取年份
                getYearData();

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

                //创建grid
                createGridP0116(strTableP0116, getColName(), getColModel());

                //设定表格高度
                resizeGrid(strTableP0116, false, false)

                //搜索头部数据
                searchDataClick_P0116();

                //调整滚动条
                resizeGridScroll(strTableP0116);


                //窗口改变大小的时候调用
                window.onresize = function () {
                    resizeGrid(strTableP0116, false, false)
                    resizeGridScroll(strTableP0116)
                }

                bLoadComplete = true;

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

                });
            }
            catch (e) {
                proceError("p0116", e.ToString());
            }

        });
    </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div class="dedt">
                    <ul>
                        <li>
                            <select id="cmbTypeExtentP0116" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <select id="cmbDateExtentP0116" class="easyui-combobox">
                                <option selected="selected" value='1'>按月</option>
                                <option value='2'>按季度</option>
                            </select>
                        </li>
                        <li>
                            <select id="dateStartTimeP0116" class="easyui-combobox" style="width: 50px;">
                            </select>
                            <font class="text_hx">&nbsp;&nbsp;</font>
                            <select id="dateEndTimeP0116" class="easyui-combobox" style="width: 50px;">
                            </select>
                        </li>
                        <li>
                            <!-- 全部供应商 -->
                            <select id="cmbProviderP0116" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 全部药品 -->
                            <select id="cmbSpP0116" class="easyui-combobox">
                            </select>
                        </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="btnSearchDataP0101" href="#" onclick="searchDataClick_P0116()">
                            查询</a></li>
                    </ul>
                </div>
                <div class="clr">
                </div>
            </div>
            <div>
            </div>
        </div>
        <div class="clr">
        </div>
    </div>
    <table id="Tp0116">
    </table>
</body>
</html>
