123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- <!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>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>tab</title>
- <!--框架必需start-->
- <link rel="stylesheet" type="text/css"
- href="/nwyj/scripts/qui/libs/css/import_basic.css" />
- <link rel="stylesheet" type="text/css" id="skin"
- prePath="/nwyj/scripts/qui/" scrollerY="false" />
- <link rel="stylesheet" type="text/css" id="customSkin" />
- <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style.css"
- rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue"
- positionTarget="positionContent" />
- <link href="/nwyj/scripts/qui/system/layout/skin/style.css"
- rel="stylesheet" type="text/css" id="skin"
- skinPath="/scripts/qui/system/layout/skin/" />
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/framework.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
- <!--框架必需end-->
- <!--布局组件start-->
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/nav/layout.js"></script>
- <!--布局组件start-->
- <!--基本选项卡start-->
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/nav/basicTab.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/nav/basicTabModern.js"></script>
- <!--基本选项卡end-->
- <!--表单提交start-->
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/form/form.js"></script>
- <!--表单提交end-->
- <!--树组件start-->
- <link rel="stylesheet" type="text/css"
- href="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.css" />
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/form/selectTree.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/form/listerTree.js"></script>
- <!--树组件end-->
- <!--数据表格start-->
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/table/quiGrid.js"></script>
- <!--数据表格end-->
- <!--弹窗组件start-->
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/popup/messager.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/popup/drag.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/popup/dialog.js"></script>
- <!--弹窗组件end-->
- <!--上传附件start-->
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/form/upload/fileUpload.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/form/upload/handlers.js"></script>
- <!-- 上传附件end -->
- <!--分隔条start-->
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/nav/spliter.js"></script>
- <!--分隔条end-->
- <!-- 扩展工具js -->
- <script type="text/javascript"
- src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/freamwork/com/sinosoft/common/DateUtil.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/commom/common/common.js"></script>
- <!--浮动面板start-->
- <script type="text/javascript"
- src="/nwyj/scripts/qui/libs/js/popup/floatPanel.js"></script>
- <!--浮动面板end-->
- <!--弹出式提示框start-->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/popup/messager.js"></script>
- <script type="text/javascript">
- var g;
- var iframeUrl = window.location.href;
- var canstType=(iframeUrl).split('?')[1].split('=')[1];
- $(function(){
- g = $("#maingrid").quiGrid({
- columns: [ { display: '名称', name: 'FD_DESCRIPTION', align: 'center', width: "16%"},
- { display: '类型', name: 'FD_TYPE', align: 'center', width: "16%"},
- { display: '编号', name: 'FD_CODE', align: 'center', width: "16%"},
- { display: '顺序', name: 'FD_SORT', align: 'center', width: "16%"},
- { display: '父节点编号', name: 'PARENT_ID', align: 'center', width: "16%"},
- { display: '操作', isSort: false, width: "16%", render: function (rowdata, rowindex, value)
- {
- var h = "";
- h += "<a onclick='onDelete(" + rowindex + ")'><span class='icon_delete'>删除</span></a> ";
- return h;
- }
- }
- ],
- url: $.pathname() + '/ws/FILEPOLL/FileAMService/queryMapValue1/',
- params :{"type":canstType},
- rownumbers:true,
- pageSize:10,
- dataAction:"server",
- usePager: false,
- percentWidthMode : true,
- height: "100%", width:"100%",enabledEdit: false,clickToEdit: false
- });
-
-
- })
- function onDelete(rowidx){
- top.Dialog.confirm("确定要删除么?",function(){
- //删除记录
- var row = g.getRow(rowidx)
- //删除操作
- $.post($.pathname() + '/ws/FILEPOLL/FileAMService/deleteMapValue/',
- {"FDCODE":row.FD_CODE,"FDTYPE":row.FD_TYPE},
- function(result){
- if (result == true) {
- top.Dialog.alert("删除成功!");
- g.loadData();
- } else {
- top.Dialog.alert("删除失败!");
- }
- },"json");
-
- });
- }
- function addMapValue(){
- var description = $("#FD_DESCRIPTION").val();
- if(description=="" || validateInput(description, "^[\" \"]+$")){
- top.Dialog.alert("请输入名称!");
- return ;
- }
- $.post($.pathname() +"/ws/FILEPOLL/FileAMService/addCanstValue/", {
- FD_DESCRIPTION:description,
- FD_TYPE:canstType
- }, function(result) {
- if (result == true) {
- top.Dialog.alert("添加成功!");
- refreshTable();
- g.loadData();
- } else {
- top.Dialog.alert("添加失败!");
- }
- }, "json");
- }
- function refreshTable(){
- var params=(iframeUrl).split('?')[1].split('=')[1];
- $.ajax({
- url : $.pathname() +"/ws/FILEPOLL/FileAMService/queryMapValue/",
- type : 'post',
- timeout : 15000,
- data : params,
- dataType : 'json',
- async:false,
- success : function(data){
- $('#fillForm').ajaxWrite({data:data});
-
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
- </script>
- </head>
- <body >
- <form id="fillForm">
- <fieldset style="border-color:#999999;" >
- <legend>新增内容:</legend>
- <table width="70%" class="tableStyle" height="100%">
- <tr>
- <td width="15%" align="right">名称:</td>
- <td width="65%"><input type="text" id="FD_DESCRIPTION" name="FD_DESCRIPTION" style="width: 300px;" maxlength="60" /></td>
- <td width="20%" align="center" ><input onclick="addMapValue()" value="保存" type="button"/></td>
-
- </tr>
- <!--
- <tr >
- <td align="right">编号:</td>
- <td ><input type="text" id="FD_CODE" name="FD_CODE" style="width: 300px;" maxlength="10" /></td>
- </tr>
- <tr style="display:none">
- <td align="right">类型:</td>
- <td><input type="text" disabled="true" id="FD_TYPE" name="FD_TYPE" style="width: 300px;" maxlength="20" /></td>
- </tr>
- <tr style="display:none">
- <td align="right">顺序:</td>
- <td><input type="text" disabled="true" id="FD_SORT" name="FD_SORT" style="width: 300px;" maxlength="2" /></td>
- </tr>
- <tr style="display:none">
- <td align="right">父节点编号:</td>
- <td><input type="text" disabled="true" id="PARENT_ID" name="PARENT_ID" style="width: 300px;" maxlength="10" /></td>
- <td></td>
- <td></td>
- </tr> -->
- </table>
- </fieldset>
- </form>
-
-
- </fieldset>
- </form>
- <fieldset style="border-color:#999999;" id="fileTable" >
- <legend>常量表信息:</legend>
- <div class="padding_right5">
- <div id="maingrid"></div>
- </div>
- </fieldset>
-
- </body>
- </html>
|