<!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" />
    <link href="../../Content/ciho-combtree.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/lib/combotree.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/common.js" type="text/javascript"></script>
    <script src="../../Scripts/05/p0504.js" type="text/javascript"></script>
    <script src="../../Scripts/05/p050401.js" type="text/javascript"></script>
    <script type="text/javascript">
        var bLoadComplete = false;
        $(document).ready(function () {

            //改变窗口大小时的事件
            window.onresize = function () {
                $(".operate").hide();
                resizeGrid(strTableP0504, true, true);
                resizeGridScroll(strTableP0504);
            }

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

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

            //头部搜索条件
            getSearchInfoP0504();

            //配置信息，table对象
            var objConfig = ParseData(window.external.DoOptions(strTableP0504, "GetTableConfig", "{}"));
            var objTable = $("#" + strTableP0504);

            //创建table
            createGrid(strTableP0504, objConfig.colNames, objConfig.colModel, "{}", onSelectGridP0504, null, true, dbClickP0504);

            //设置属性
            objTable.setGridParam({ onSortCol: sortDataP0504 });
            objTable.setColProp("a1", { formatter: formatterP0504Money });

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

            //创建分页
            createPage(strPageP0504, strTableP0504);

            //重新设置表格高度
            resizeGrid(strTableP0504, true, true);

            //搜索数据
            searchDataClickP504();

            bLoadComplete = true;

            //释放内存
            objTable = null;
        });
    </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div id="added">
                    <ul class="topnav">
                        <li><a href="#" onclick="showDialogP050401('1');">录入凭证</a> <span></span></li>
                    </ul>
                </div>
                <div class="dedt" id="dvR">
                    <ul>
                        <li>
                            <select id="cmbDateExtentP0504" class="easyui-combobox">
                                <option selected="selected" value='本月'>本月</option>
                                <option value='本周'>本周</option>
                                <option value='上一月'>上一月</option>
                                <option value='本季度'>本季度</option>
                                <option value='近半年'>近半年</option>
                                <option value='本年'>本年</option>
                            </select>
                        </li>
                        <li>
                            <input id="dateStartTimeP0504" type="text" class="easyui-combobox" onchange="dateTimeChangeP0504();" />
                            <font class="text_hx">&nbsp;&nbsp;</font>
                            <input id="dateEndTimeP0504" type="text" class="easyui-combobox" onchange="dateTimeChangeP0504();" />
                        </li>
                        <li>
                            <!-- 全部科目 -->
                            <input id="cmbKmP0504" type="text" class="ciho-Input" />
                        </li>
                        <li class="enter"><a id="btnSearchDataP0504" 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="Tp0504">
            </table>
        </div>
    </div>
    <div class="Page">
        <div id="divPageP0504">
        </div>
        <div class="clr">
        </div>
    </div>
    <!-- 弹出层 -->
    <div id="divP050401">
    </div>
</body>
</html>
