zoukankan      html  css  js  c++  java
  • 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="报表名称" 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>
  • 相关阅读:
    统计字符
    两军交锋
    FatMouse' Trade
    A + B Problem II
    Number Sequence
    Max Sum
    类的设计
    类与对象
    面向对象思想
    第一个OC程序
  • 原文地址:https://www.cnblogs.com/changlili/p/10403099.html
Copyright © 2011-2022 走看看