• 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>
  • 相关阅读:
    项目管理【38】 | 项目人力资源管理-管理项目团队
    转:模型蒸馏,教师学生模型
    转:pytorch 中forward 的用法与解释说明
    KNN, sklearn
    转:matplotlib, 去除plt.savefig()的白边
    转:Latex 表格 合并行/列
    转:LaTeX xcolor颜色介绍
    余弦相似性,cos距离函数
    python confusion matrix 混淆矩阵
    转:Tmux 使用教程
  • 原文地址:https://www.cnblogs.com/changlili/p/10403099.html
Copyright © 2020-2023  润新知