这两种方式都能获取到报表类别数据。
<%--ds 数据源来自JavaBean--%>
<model:dataset id="ds">
<model:record fromBean="com.genersoft.cwgs.prodbiz.ln.financereport.dao.LnFarepManageMain"/>
</model:dataset>
   <%--报表类别--%>
    <model:dataset id="farepKindDs" cmd="com.genersoft.cwgs.prodbiz.ln.financereportCR.financeImport.cmd.FinanceImportQueryCommand"
                   method="queryFarepModelKind" autoLoad="true">
        <model:record>
            <model:field name="text" mapping="FAREP_MODEL_NAME" type="string"/>
            <model:field name="value" mapping="FAREP_KIND" type="string"/>
        </model:record>
    </model:dataset>
    <%-- 报表类别--%>
    <model:dataset id="farepKindDs" dictType="LN_FAREP_NAME" global="true" followJspLoad="true">
        <model:record>
            <model:field name="text" mapping="ITEM_VALUE" type="string"/>
            <model:field name="value" mapping="ITEM_CODE" type="string"/>
        </model:record>
    </model:dataset>

 对应的下拉框写法

 <tr>
                    <td class="FieldLabel" nowrap="true" >报表名称</td>
                    <td class="FieldInput" nowrap="true" >
                        <select id="farepKind" name="farepKind" title="报表名称" onchange="farepKindOnchange(this)">
                            <option dataset="farepKindDs"/>
                        </select><font color="red">*</font>
                    </td>
                    <td class="FieldLabel" nowrap="true">报表类别</td>
                    <td class="FieldInput" nowrap="true" >
                        <select id="farepKind" name="farepKind" title="报表类别" onchange="farepKindOnchange(this)">
                            <option dataset="farepKindDs"/>
                        </select>
                    </td>
                    <td class="FieldLabel">报表模板</td>
                </tr>

 

 posted on 2019-02-19 19:58  岂曰-无衣  阅读(439)  评论(0编辑  收藏  举报