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报表开发 序言 在非常多实际的项目里,报表都是当中十分重要的组成部分,比如把查询结果以报表的形式呈现出来.这里所提到的报表可不是简单的二维表,而是拥 ...
随机推荐
- 【Unity Shaders】学习笔记——SurfaceShader(九)Cubemap
[Unity Shaders]学习笔记——SurfaceShader(九)Cubemap 如果你想从零开始学习Unity Shader,那么你可以看看本系列的文章入门,你只需要稍微有点编程的概念就可以 ...
- Drupal8开发教程:模块开发——创建新页面
之前我们已经通过<Drupal8开发教程:认识.info.yml文件>对模块的YAML文件有了了解,今天我们来看如何通过模块开发的方式添加一个新的页面. 在 Drupal 7 中,通过模块 ...
- 将Excel中数据导入数据库(一)
在工作中经常要将Excel中数据导入数据库,这里介绍一种方法. 假如Excel中的数据如下: 数据库建表如下: 其中Id为自增字段: Excel中数据导入数据库帮助类如下: using System; ...
- 为知笔记 Markdown 新手指南
为知笔记 Markdown 新手指南 http://www.wiz.cn/feature-markdown.html 时序图,流程图详细流程图语法 http://adrai.github.io/flo ...
- C# Exception 对象的属性
关于 C# 中 Exception 对象的属性,在程序出现异常时,需要记录异常的信息,并把信息保存起来或输出,以方便准确定位异常的根源,以下是 Exception 对象的属性 名称 ...
- 如何由jdk的安装版本改成非安装版本
背景. 官网一般只提供windows下的exe文件,不提供zip打包文件.有些不愿意使用安装版本. 解决方法 本文以windows 7下安装jdk-6u35-windows-x64.exe为例说明 1 ...
- 学习练习 session练习
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding= ...
- LINQ标准查询操作符详解(转)
一. 关于LINQ LINQ 英文全称是“Language-Integrated Query”,中文为“语言集成查询”,它是微软首席架构师.Delphi 之父和C# 之父——Anders ...
- 【HTML/XML 10】XML文档中的Schema文件
导读:DTD是对XML文档进行有效性验证的方法之一,事实上,继DTD之后,出现了用来规范和描述XML文档的第二代标准:Schema.Schema是DTD的继承,但是也有其不同的地方,它是真正的以独立的 ...
- php 单例设计模式 example
<?php class User { //静态变量保存全局变量 private static $_instance=null; //私有化构造函数,防止外界实例化对象 private funct ...