bhrs报表年结步骤
--前期准备数据
三个表数据: s_subjtotal_year, subject_item, branch ,decrsubjtotal
---informix 查看数据库剩余空间
select d.name dbspace,
sum(c.chksize*d.pagesize/1020/1024) allocated_MB,
sum(c.nfree*d.pagesize/1020/1024) free_MB,
round(((sum(c.chksize)-sum(c.nfree))/sum(c.chksize))*100)||"%" pcused
from sysmaster:sysdbspaces d,sysmaster:syschunks c
where d.dbsnum=c.dbsnum
group by d.name
order by 2;
select distinct datekey from decrsubjtotal where datekey>='2013-01-01';
------------年终结算跑数据流程
--bvdb.jar 包 git.bankview.bl.pump.bhrs.cbsYearGeneralLedger;
delete from taskschedule where datekey='20131231' and taskid='100';
insert into taskschedule (datekey,taskid,execurl,retrymax,statuscode,exectime,termtime,retrytimes,errmsg)
values ('20131231','100','class://git.bankview.bl.pump.bhrs.cbsYearGeneralLedger;params=C','0','5','','','0','');
delete from taskdependence where datekey='20131231' and taskid='101' and deptaskid='100';
insert into taskdependence (datekey,taskid,deptaskid) values
('20131231','101','100');
--修改 bhrs.sh
select * from taskdependence;
update taskschedule set statuscode='1' where datekey="${DATE}";
为
update taskschedule set statuscode='1' where datekey="${DATE}" and taskid!='100';
--年终的操作步骤
核心提供的年终结算总账表导入s_subjtotal_year表里
然后update taskschedule set statuscode='1' where datekey="20131231" and taskid='100';
启动报表任务服务器等待该任务跑完.
--1 建表
create table s_subjtotal_year
(
datekey date not null ,
deptid char(12) not null ,
curid char(10) not null ,
subjid char(20) not null ,
balref smallint,
debal decimal(16,2),
crbal decimal(16,2),
deamt decimal(16,2),
cramt decimal(16,2),
decnt integer,
crcnt integer,
primary key (datekey,deptid,curid,subjid,balref)
); --in dtdbs;
revoke all on s_subjtotal_year from "public" as "informix";
create index idx_s_subjtotal_year1 on s_subjtotal_year
(datekey) using btree in datadbs;--dtixdbs;
create index idx_s_subjtotal_year2 on s_subjtotal_year
(datekey,deptid,curid,subjid) using btree in datadbs;-- dtixdbs;
create index idx_s_subjtotal_year3 on s_subjtotal_year
(datekey,deptid) using btree in datadbs;--dtixdbs;
create index idx_s_subjtotal_year4 on s_subjtotal_year
(datekey,subjid) using btree in datadbs;--dtixdbs;
bhrs报表年结步骤的更多相关文章
- FastReport报表MVC显示步骤
FastReport报表MVC使用步骤如下: 1.创建MVC网站项目 最终DEMO如下图所示 2.引用相关DLL FastReport.dll FastReport.Web.dll 3.Web.con ...
- Oracle EBS 如何月结[Z]
概述应付模块的多数业务基于采购和库存的操作,因此应付模块的月结应该在采购模块和库存模块月结后才能关闭会计期.月结步骤在每个会计期末,应付模块的月结应遵循以下流程:1.检查业务是否全部录入;2.检查是否 ...
- SAP月末结账年结流程
SAP月末结账年结流程 SAP月末结账操作指南 流程描述:FI期末结帐流程包括应收帐款.应付帐款.固定资产.管理会计结帐.总帐结帐等一系列结帐过程,对于年结增加了余额结转及固定资产年度改变等动作,通过 ...
- c# 水晶报表的设计(非常的基础)
最近在公司实习,由于公司需要用到的一种叫做水晶报表的神奇的东东,老大就叫我们学习学习.怕自己以后忘了,也为了以后阅读方便,将其记录下来. 使用工具:vs2008 基本方法一.使用水晶报表的推模式 步骤 ...
- FastReport报表控件使用技巧总结
FastReport报表控件使用技巧总结 1.FastReport中如何访问报表中的对象? 可以使用FindObject方法. TfrxMemoView(frxReport1.FindObject(' ...
- RDLC报表系列--------行分组报表
报表分组开发步骤: 先看总体效果:如图 下面就做个看看... 1.先将数据处理成如下结构 如图 2.创建数据集DataSet.xsd,创建表->右键选择添加数据表->添加行(ctrl+L ...
- Fastreport使用经验(转)在Delphi程序中访问报表对象
Fastreport使用经验(转) 在Delphi程序中访问报表对象 最基本的方法就是frxReport1.FindObject. 然后把返回的对象强制转换成它的类型,当然,在报表中必须真的有这么个东 ...
- SQL Server 2008 报表服务入门
目录 报表服务的安装与配置 开发报表的过程 报表制作实例 一.报表服务的安装与配置 1. 报表服务的组件 2. 报表服务 2008 的安装 2.1在SQL Server 2008上安装报表服务有两种方 ...
- 利用JasperReport+iReport进行Web报表开发
用JasperReport+iReport进行Web报表开发 序言 在非常多实际的项目里,报表都是当中十分重要的组成部分,比如把查询结果以报表的形式呈现出来.这里所提到的报表可不是简单的二维表,而是拥 ...
随机推荐
- Flex4 自定义分页组件
自己写的Flex4分页组件,去伪存真,只实现基本的分页功能,数据过滤神马的都不应该是分页组件干的活,有呆毛才有真相: [源代码下载] Flex自从转手给Apache后人气急跌,本人也很捉鸡,尽管Apa ...
- the error code is 2203
权限不够 切换管理员再操作
- Class attributes
In order to print Card objects in a way that people can easily read, we need a mapping from the inte ...
- Activity的四种launchMode 详细分析
launchMode在多个Activity跳转的过程中扮演着重要的角色,它可以决定是否生成新的Activity实例,是否重用已存在的 Activity实例,是否和其他Activity实例公用一个tas ...
- 操作笔记:tomcat在正式环境
1,一台服务器有两个容器,比如:jetty,tomcat. 出现问题: jetty启动的时候,tomcat就不能启动了. 此时,需要修改tomcat的配置文件:servler.xml <?xml ...
- Windows10系统如何安装Microsoft Visual Studio 2015及最小子数组和求解
一.Windows10系统如何安装Microsoft Visual Studio 2015. 1.首先到Visual Studio官方网站(https://www.visualstudio.com/v ...
- infusion度量金字塔数据解释
inFusion能够探测超过20中代码味道和代码缺陷,包括重复代码,破坏封装的类(如数据类或者万能类),高耦合的方法和类,以及一些设计不合理的类继承结构.当我们使用inFusion工具分析代码时,在分 ...
- java实验报告三 敏捷开发与XP
20145306 java 实验三 实验报告 实验内容 1.git下载结对同学的代码 2.修改结对同学的代码 3.实现代码重构 实验步骤 新建存储空间 git下载代码 将修改后的代码上传 上传结果 重 ...
- curl 取不到第二个参数解决方法
curl http://127.0.0.1:8083/search/add_index_quan_bc?option=1&channelId=139 在Linux下执行这个命令,观察日志发现, ...
- Sublime 3114 + 转换GBK方法
下载地址: http://files.cnblogs.com/files/wuyifu/Sublime_Text_Build_3114_x64_Setup.zip -– BEGIN LICENSE - ...