<!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>
<style type="text/css">
        li
        {
            width: 33%;
            display: inline;
        }

</style>
    <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.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/msg.js" type="text/javascript"></script>
     <script src="../../Scripts/msgBox.js" type="text/javascript"></script>
<!--    <script src="../../Scripts/07/p0701.js" type="text/javascript"></script>-->

    <script src="../../Scripts/common.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#div_number").combobox({
                width: 30,
                listWidth: 30,
                valueField: "dm",
                textField: "mc",
                editable: true
            });
            $("#div_money").combobox({
                width: 30,
                listWidth: 30,
                valueField: "dm",
                textField: "mc",
                editable: true
            });
            $("#div_percent").combobox({
                width: 30,
                listWidth: 30,
                valueField: "dm",
                textField: "mc",
                editable: true
            });
            $(".combo-arrow").css("width", "24px").css("height", "24px");
            $(".layoutpanel").css("z-index", "50000009");
        });
        //保存方法
        function saveData() {
            //同步保存数据
            var strNumber = $("#div_number").combobox('getValue');
            var strMoney=$("#div_money").combobox('getValue');
            var strpercent = $("#div_percent").combobox('getValue');
            var strShowTip = $("#showTip").attr("checked");
            var strPageCount = $("#pageCount").val();
            var strRecord = "{\"Records\":[";
                    strRecord += "{" + "\"a1\":\"0\",\"a2\":\"number\",\"a3\":\"" + strNumber + "\"},";
                    strRecord += "{" + "\"a1\":\"0\",\"a2\":\"money\",\"a3\":\"" + strMoney + "\"},";
                    strRecord += "{" + "\"a1\":\"0\",\"a2\":\"percent\",\"a3\":\"" + strpercent + "\"},";
                    strRecord += "{" + "\"a1\":\"0\",\"a2\":\"isshowtip\",\"a3\":\"" + strShowTip + "\"},";
                    strRecord += "{" + "\"a1\":\"0\",\"a2\":\"pagecount\",\"a3\":\"" + strPageCount + "\"}  ]}";
                    var indexs = ParseData(window.external.DoOptions("TXtsz", "Edit", strRecord));
                    if (indexs.ReturnCode == 0) {
                      alert("保存成功");
                 }  
          }      
    </script>
</head>

<body>  
<!--    <div class="pop_box">-->
      <!--  <div id="TXtsz">-->
 <!--       </div>
    </div>-->
    <!--
    <div class="global">
        <ul class="global_sid">
            <li><a href="#" class="active">常规设置</a></li>
            <li><a href="#">操作员管理</a></li>
            <li><a href="#">数据维护</a></li>
        </ul >-->
        <ul class="global_con">
         <ul><li>每页显示
        <input type='text'  name='pageCount' id='pageCount'/>
        行
        </li>
        </ul>
        <ul class='topnav'>
        <input type='checkbox' name='showTip' id='showTip'/>单据金额与付款金额不一致时提示用户
        </ul>
            <li>小数点位数（数量）：
            <select name="filter" id='div_number'  class='easyui-combobox'>
            <option>0</option>
            <option>1</option>
            <option>3</option>
            </select><li/>

            <li>小数点位数（金额）：  <select name="filter" id='div_money' class='easyui-combobox'>
            <option>0</option>
            <option>1</option>
            <option>3</option>
            </select><li/>

            <li>小数点位数（百分比）：  <select name="filter" id='div_percent'  class='easyui-combobox'>
            <option>0</option>
            <option>1</option>
            <option>3</option>
            </select><li/>
            <ul class="con_btn">
                <li><a href="#" onclick='saveData()'>保存</a></li>
                <li><a href="#">恢复默认</a></li>
            </ul>
        </ul>
  <!--  </div>-->
</body>
</html>