用OO将航班信息显示出来
来源:互联网 发布:sql server2012和2014 编辑:程序博客网 时间:2024/04/30 20:49
*&---------------------------------------------------------------------*
*& Include ZSER45100INC
*&---------------------------------------------------------------------*
data: begin of ty_cusid,
id type scustom-id,
end of ty_cusid.
data: begin of ty_bookinfo,
carrid type sbook-carrid,
connid type sbook-connid,
fldate type sbook-fldate,
bookid type sbook-bookid,
customid type sbook-customid,
end of ty_bookinfo.
class class_flight definition.
public section.
data cusname type scustom-name.
data lt_cusid like standard table of ty_cusid .
data lt_bookinfo like standard table of ty_bookinfo.
methods:
get_customer_id,
get_booking_info,
display_bookings.
endclass.
class class_flight implementation.
method get_customer_id.
* cusname = cusname.
select id
into corresponding fields of table lt_cusid
from scustom
where name eq cusname.
endmethod.
method get_booking_info.
select
carrid
connid
fldate
bookid
customid
into corresponding fields of table lt_bookinfo
from sbook
for all entries in lt_cusid
where bookid eq lt_cusid-id.
endmethod.
method display_bookings.
LOOP AT lt_bookinfo into ty_bookinfo.
write:/(10) ty_bookinfo-carrid,
(5) ty_bookinfo-connid,
(15) ty_bookinfo-fldate,
(15) ty_bookinfo-bookid,
(15) ty_bookinfo-customid.
ENDLOOP.
endmethod.
endclass.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
****************report part***************************************************
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
REPORT ZSER46100.
tables: sflight, sbook, scustom.
include zser45100inc.
data sflight_obj type ref to class_flight.
parameters cusname type scustom-name obligatory.
start-of-selection.
create object sflight_obj.
sflight_obj->cusname = cusname.
call method sflight_obj->get_customer_id.
call method sflight_obj->get_booking_info.
call method sflight_obj->display_bookings.
- 用OO将航班信息显示出来
- 航班信息显示系统-总结
- 机场航班信息显示系统
- 将nutch的结果用solr搜索显示出来
- 将XML的数据显示出来
- 如何将数据集转换显示出来?
- 将图片写入数据库并显示出来
- ubuntu如何将隐藏文件显示出来
- 如何将灰色文件全部显示出来
- 将手机中的音乐信息显示出来
- 用C语言编写一个程序,能够将程序自身显示出来
- C# 用二进制将图片保存在数据库里再读出来显示在pictureBox中
- 用shell脚本将当前目录中每个文件的文件名及其内容显示出来
- 今天学习了怎么读取Android数据库读取数据,用ListView将其显示出来
- 将一个2级联动的数据用表格的形式显示出来
- 用MATLAB将RGB图像中的显示为相同颜色的像索点提取出来
- 输入一串字符,然后将其颠倒显示出来
- 如何防止apache将服务器中的文件列表显示出来
- C语言关机
- 敏捷开发追求简单设计之道
- 阅读源代码的技术
- Spring事务--非注解--自动代理创建器[spring2.0]
- 基于数据关联算法的多目标跟踪
- 用OO将航班信息显示出来
- Java Native Interface Specification contents——jni官方文档
- (转载)基于Eclipse的Hadoop应用开发环境的配置
- 如何在ubuntu桌面上显示我的电脑、回收站、网络服务器图标
- C++对象模型_虚表学习
- sqlserver sql语句|经典sql语句|实用sql语句
- 读取Spring的配置文件(WEB-INFO)下
- Running Root.Sh On Second Node Fails PRKN-1008 Unable to load the shared library srvmhas10
- 下载用于调试的android源代码快照