赞
踩
简表页面查询栏
<pre name="code" class="html"><!--#setting classic_compatible=true-->
<!DOCTYPE html>
<html style="height: 100%">
<head>
<title></title>
<link href="plug-in/lhgDialog/skins/default.css" rel="stylesheet" id="lhgdialoglink">
<script type="text/javascript" src="plug-in/jquery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="plug-in/tools/dataformat.js"></script>
<link id="easyuiTheme" rel="stylesheet" href="plug-in/easyui/themes/default/easyui.css" type="text/css">
<link rel="stylesheet" href="plug-in/easyui/themes/icon.css" type="text/css">
<link rel="stylesheet" type="text/css" href="plug-in/accordion/css/accordion.css">
<script type="text/javascript" src="plug-in/easyui/jquery.easyui.min.1.3.2.js"></script>
<script type="text/javascript" src="plug-in/easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="plug-in/tools/syUtil.js"></script>
<script type="text/javascript" src="plug-in/easyui/extends/datagrid-scrollview.js"></script>
<script type="text/javascript" src="plug-in/My97DatePicker/WdatePicker.js"></script>
<link href="plug-in/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="plug-in/tools/css/common.css" type="text/css">
<script type="text/javascript" src="plug-in/lhgDialog/lhgdialog.min.js"></script>
<script type="text/javascript" src="plug-in/tools/curdtools.js"></script>
<script type="text/javascript" src="plug-in/tools/easyuiextend.js"></script>
<script type="text/javascript" src="plug-in/jquery-plugs/hftable/jquery-hftable.js"></script>
<link rel="stylesheet" href="plug-in/jquery/jquery-autocomplete/jquery.autocomplete.css" type="text/css">
<script type="text/javascript" src="plug-in/jquery/jquery-autocomplete/jquery.autocomplete.min.js"></script>
<style type='text/css'>
body{margin:0px;padding:0px;}
</style>
<script type="text/javascript">
$(function(){
<#list config_queryList as x>
<#if x['search_mode']=="group">
<#if x['field_type']=="Date" && x['data_type']=="*">
$("input[name='${x['field_name']}_begin']").attr({datatype:"*"});
$("input[name='${x['field_name']}_end']").attr({datatype:"*"});
</#if>
</#if>
<#if x['search_mode']=="single">
<#if x['field_type']=="Date" && x['data_type']=="*">
$("input[name='${x['field_name']}']").attr({datatype:"*"});
</#if>
</#if>
</#list>
$('#${config_id}List').datagrid({
idField: 'id',
title: '${config_name}',
url:'',
fit:false,
fitColumns:false,
pageSize: 100,
pagination:false,
pageList:[10,30,50,100],
singleSelect:true,
checkbox:false,
sortOrder:'asc',
rownumbers:true,
showHeader:false,
showFooter:true,
frozenColumns:[[]],
columns:[
[
]
],
onLoadSuccess:function(data){$("#${config_id}List").datagrid("clearSelections");},
onClickRow:function(rowIndex,rowData)
{rowid=rowData.id;gridname='${config_id}List';}
});
});
//打开内链
function ${config_id}Listsearch(){
<#if (config_requiredList?size>0)>
<#list config_requiredList as x>
<#if x['search_mode']=="single">
var ${x['field_name']}= $('#${config_id}Listtb').find("[name='${x['field_name']}']").val();
if(${x['field_name']}=="" || ${x['field_name']}==undefined) {
alert("${x['field_txt']} 不能为空!");
return;
}
<#else>
var ${x['field_name']}_begin= $('#${config_id}Listtb').find("[name='${x['field_name']}_begin']").val();
if(${x['field_name']}_begin=="" || ${x['field_name']}_begin==undefined) {
alert("${x['field_txt']} 开始时间不能为空!");
return;
}
var ${x['field_name']}_end= $('#${config_id}Listtb').find("[name='${x['field_name']}_end']").val();
if(${x['field_name']}_end=="" || ${x['field_name']}_end==undefined) {
alert("${x['field_txt']} 结束时间不能为空!");
return;
}
</#if>
</#list>
</#if>
$("#${config_id}Content").show();
//document.${config_id}JoRForm.action = "reportviewer?file=demos/功能演示/脚本/引入自定义脚本函数.xml";
var form = document.${config_id}JoR

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。