<!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.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.autonum.min.js" type="text/javascript"></script>
    <script src="../../Scripts/common.js" type="text/javascript"></script>
    <script src="../../Scripts/page.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/ciho.js" type="text/javascript"></script>
    <script src="../../Scripts/04/p0402.js" type="text/javascript"></script>
    <script src="../../Scripts/04/p040202.js" type="text/javascript"></script>
    <script src="../../Scripts/04/p040203.js" type="text/javascript"></script>
    <script type="text/javascript">
        var bLoadComplete = false;
        $(document).ready(function () {
            try {
                //搜索头部信息
                getSearchInfoP0402();

                //配置信息
                var objConfig = ParseData(window.external.DoOptions(strTableP0402, "GetTableConfig", "{}"));
                createGrid(strTableP0402, objConfig.colNames, objConfig.colModel, "{}", onSelectGridP0201, null, true, funcDbClickP0402);

                var objTable = $("#" + strTableP0402);
                objTable.setGridParam({ onSortCol: sortDataP0402 });
                objTable.setColProp("a1", { formatter: formatterP0402Money });
                objTable.setColProp("zt", { formatter: formatterP0402Zt });

                //默认分页排序
                objPageParamP0402.sortfield = "djdate";
                objPageParamP0402.orderby = "desc";

                //创建分页
                createPage(strPageP0402, strTableP0402);

                //设置表格宽度
                resizeGrid(strTableP0402, true, true);

                //加载表格数据
                searchDataClickP0402();

                //改变窗口大小事件
                window.onresize = function () {
                    //隐藏浮动层
                    $(".operate").hide();

                    resizeGrid(strTableP0402, true, true);
                    resizeGridScroll(strTableP0402);
                }

                //查询按钮点击事件
                $("#btnSearchDataP0402").click(function () {
                    objPageParamP0402.sortfield = "djdate";
                    objPageParamP0402.orderby = "desc";
                    objPageParamP0402.flag = 1;

                    //加载表格数据
                    searchDataClickP0402();
                });

                bLoadComplete = true;
            }
            catch (e) {
                proceError("P0402", e.ToString());
            }
        });
    </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div id="added">
                    <ul class="topnav">
                        <li><a href="#" onclick="showDialogP040202('1');">销售开票</a> <span class="addnav"></span>
                        </li>
                    </ul>
                </div>
                <div class="dedt">
                    <ul>
                        <li>
                            <select id="cmbDateExtentP0402" class="easyui-combobox">
                                <option selected="selected" value='本月'>本月</option>
                                <option value='上一月'>上一月</option>
                                <option value='过去三个月'>过去三个月</option>
                                <option value='近半年'>近半年</option>
                                <option value='本年'>本年</option>
                            </select>
                        </li>
                        <li>
                            <input id="dateStartTimeP0402" type="text" class="easyui-combobox" onchange="dateTimeChangeP0402();" />
                            <font class="text_hx">&nbsp;&nbsp;</font>
                            <input id="dateEndTimeP0402" type="text" class="easyui-combobox" onchange="dateTimeChangeP0402();" />
                        </li>
                        <li>
                            <!-- 开票单位 -->
                            <select id="cmbInvoiceDwP0402" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 全部客户 -->
                            <select id="cmbKhP0402" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 发票编号-->
                            <select id="cmbInvoiceBhP0402" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 发票状态 -->
                            <select id="cmbInvoiceStateP0402" class="easyui-combobox">
                            </select>
                        </li>
                        <li class="enter"><a id="btnSearchDataP0402" href="#">查询</a></li>
                    </ul>
                </div>
                <div class="clr">
                </div>
            </div>
            <div>
            </div>
        </div>
        <div class="clr">
        </div>
    </div>
    <div class="mation">
        <div class="mation_div">
            <table id="Tp0402">
            </table>
        </div>
    </div>
    <div class="Page">
        <div id="divPageP0402">
        </div>
        <div class="clr">
        </div>
    </div>
    <!-- 弹出层 -->
    <div id="divP0402">
    </div>
    <div id="divP040202">
    </div>
    <div id="divP040203">
    </div>
    <div id="divAddType">
    </div>
</body>
</html>
