dataset数据来源方式两种,页面展示

这两种方式都能获取到报表类别数据。
<%--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="报表名称" οnchange="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="报表类别" οnchange="farepKindOnchange(this)">
                            <option dataset="farepKindDs"/>
                        </select>
                    </td>
                    <td class="FieldLabel">报表模板</td>
                </tr>

 

转载于:https://www.cnblogs.com/changlili/p/10403099.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值