玛琪朵漂浮
lost and researching~~~
今天一方面和开发讨论台州的修改需求,一方面把大部分时间都放在自定应报表上,写了两个报表。一个运行正常,一个 无法顺利将查询到的数据依次输入到表格中去。

一个是用户统计
<ReportDefine isdebug="1" type="0">
    <UI>
        <Item name="research_date" label="查询截至日期:" ctrltype="1" showfield="" valuefield="" isneed=""><![CDATA[
            ]]></Item>

    </UI>
    <ExcelReport>
        <Params>
            <Item name="@deadline" ui_ctrl="research_date" format="yyyy-mm" replace="" fixrc="">
            </Item>

        </Params>
        <SQLCell>
                  <Item name="item2" description="">
                <SQL key="sub_type_id"><![CDATA[
                        select sub_type_id,count(*) ncount from sms_subscriber_core_tab
                          where  is_deleted = 0
                            and to_char(create_time,'yyyy-mm') <= '@deadline'                           
                        group by sub_type_id
                    ]]></SQL>
                <ExcelCellList>
                    <Cell x="4" y="3" keyvalue="1" field="ncount" replace="null= 0"/>
                    <Cell x="4" y="4" keyvalue="2" field="ncount" replace="null= 0"/>
                </ExcelCellList>
                 </Item>
        </SQLCell>
        <CellOperate>
        </CellOperate>
    </ExcelReport>
</ReportDefine>

一个是用户资料查询
?<ReportDefine isdebug="1" type="1">
    <UI>
        <Item name="dxdateedt_pid" label="代理商:" ctrltype="2" showfield="代理商" valuefield="" isneed="1">
            <![CDATA[1=广播电视局;2=网络公司]]>           
        </Item>      
       
    </UI>
    <ExcelReport>
        <Params>
            <Item name="@pid"  ui_ctrl="dxdateedt_pid" format="" replace="" fixrc="">
            </Item>
        </Params>
        <SQLCell>
            <Item name="item1" description="">
                <SQL key="sub_name"><![CDATA[
                        select promoter_id,sub_code,sub_name,create_time, home_address from SMS_SUBSCRIBER_CORE_TAB
                          where is_deleted = 0 and rownum < 500  and promoter_id=@pid
                         
                    ]]></SQL>
                <ExcelCellList>
                    <Cell x="2" y="2" keyvalue="" field="sub_code" replace="null= 0"/>
                    <Cell x="3" y="2" keyvalue="" field="sub_name" replace="null= 0"/>
                    <Cell x="4" y="2" keyvalue="" field="create_time" replace="null= 0"/>
                    <Cell x="5" y="2" keyvalue="" field="home_address" replace="null= 0"/>
                </ExcelCellList>
            </Item>
        </SQLCell>
    </ExcelReport>
</ReportDefine>
这个实在看不出什么问题,就是查询的100多条记录只有一条录入到表格中了。

做容量测试
7、修改test子目录下的bat文件,将数据库用户、密码、网络服务名修改为目标数据库。ok
8、以sms用户运行sql*plus,执行“禁用约束.sql”,在d:根目录下
   生成disable.sql;执行disable.sql。ok
9、按数字顺序执行批处理文件。可以双击执行,也可以在cmd下输入文件路径和文件名后回车,执行。
10、以sms用户运行sql*plus,执行“启用约束.sql”,在d:根目录下
   生成enable.sql;执行enable.sql。
posted on 2008-09-10 15:37 unearthly bone 阅读(91) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。

<2008年9月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

留言簿(2)

随笔分类(67)

随笔档案(77)

文章分类(7)

文章档案(7)

搜索

  •  

最新评论

  • 1. re: 20080728
  • 兄弟, 这种日志以后请不要发到首页好吗?

    很多RSS的看的不烦吗?
  • --haiming