<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib uri="/WEB-INF/taglib.tld" prefix="x"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<head>
<script type="text/javascript">
    var formNo='${formNo}'; 
$('#paramSourceTables').searchbox({
    type: 'saf',
    name: 'queryFormExistTables',
    checkbox:true,
    checkboxIndex:'tableName',

    getParam: function () {
        return {
        	formNo: formNo
        };
    },
    back: {
        tableName: '#paramSourceTables_text',
    },
    valueIndex:'#tableName',//进入下拉列表 默认勾选上 
    onChange: function () {
    }
});
 $('#paramSourceTables_text').val($('#paramSourceTables').val());
 </script>
</head>
<form class="hg-form" method="post" action="" id="selectCustomForm">
	 <x:hidden name="id" />
	 <x:hidden name="formNo" />
	 <x:hidden name="targetField" />
	 <x:hidden name="tableName" />
	 <x:hidden name="fieldWidths"/>
	 <x:hidden name="oldSearchSql" />
 <div class="hg-form-row">
    <x:inputC name="searchName"  label="query名称" maxLength="40" labelCol="2" fieldCol="2" required="true" />
    <x:inputC name="searchDesc"  label="query描述" maxLength="50" labelCol="2" fieldCol="2" required="true" />
    <x:inputC name="searchboxType"  label="检索类型名称" maxLength="16" labelCol="2" fieldCol="2" required="true" />
  </div>
   <div class="hg-form-row">
    <x:textareaC name="searchSql" label="查询的sql语句" rows="4" maxLength="2000" labelCol="2" fieldCol="10" required="true"/>
  </div>
  <div class="hg-form-row">
   <!-- 
     <x:inputC name="condiColumns" label="SQL条件字段名称"   maxLength="500" labelCol="2" fieldCol="2" required="false" />
     <x:inputC name="condiSymbols" label="SQL条件运算符" maxLength="500" labelCol="2" fieldCol="2" required="false" />
     <x:inputC name="condiAlias"   label="SQL条件表别名" maxLength="500" labelCol="2" fieldCol="2" required="false" />
     -->
  </div>
  <div class="hg-form-row">
      <x:inputC name="orderby"  label="排序字段" maxLength="500" labelCol="2" fieldCol="2" required="false" />
     <!--x:inputC name="targetField" label="关联字段"   maxLength="10" labelCol="2" fieldCol="2" required="false" /-->
     <!-- x:selectC name="targetField" required="false" emptyOption="false" label="关联表单字段" list="fieldMap" labelCol="2" fieldCol="2"/-->
      <x:inputC name="paramSourceTables" label="参数来源表"  labelCol="2" fieldCol="6" required="false" />
     <label>&nbsp;&nbsp;&nbsp;&nbsp;<font color=blue>说明：编写SQL时如需要添加条件字段，其值来源字段前面请添加冒号，比如a.name=:pname；SQL中id结尾的字段默认为隐藏。</font></label>
  </div>
     <x:hidden name="fieldNames" />
     <x:hidden name="fieldCodes" />
     <x:hidden name="fieldTypes" />
     <x:hidden name="backFields" />
     
    <x:hidden name="condiNames" />
    <x:hidden name="condiTypes" />

    <x:hidden name="paramFields" />
    <x:hidden name="paramSourceFields" />

</form>

