As400显示文件创建DOC.docx

上传人:b****2 文档编号:1791849 上传时间:2022-10-24 格式:DOCX 页数:14 大小:174.46KB
下载 相关 举报
As400显示文件创建DOC.docx_第1页
第1页 / 共14页
As400显示文件创建DOC.docx_第2页
第2页 / 共14页
As400显示文件创建DOC.docx_第3页
第3页 / 共14页
As400显示文件创建DOC.docx_第4页
第4页 / 共14页
As400显示文件创建DOC.docx_第5页
第5页 / 共14页
点击查看更多>>
下载资源
资源描述

As400显示文件创建DOC.docx

《As400显示文件创建DOC.docx》由会员分享,可在线阅读,更多相关《As400显示文件创建DOC.docx(14页珍藏版)》请在冰豆网上搜索。

As400显示文件创建DOC.docx

As400显示文件创建DOC

DisplayFiles如何创建显示文件

DisplayfilesareDDSfilesthatenableustocreateAS/400menusandscreenstointeractwiththeuser.Displayfilescanhaveseveralrecords.Eachrecorddefinespartofthescreen'sappearance.Theserecordsmayormaynotoverlapeachother.

显示文件是一些帮助我们创建和用户进行交互的AS400菜单和屏幕界面的DDS文件。

显示文件能够包含多个纪录,每个记录定义了屏幕界面的一部分。

这些记录或者相互覆盖。

TheSDAapplicationallowsusto“draw”whatshouldshowuponthescreenandcreatestheDDScodefromour“drawing”.Nextwe'llcreateascreenwithDDSandafterwardwe'lllookatsomecodeexcerpts,becausesometimesit'seasiertoalterthescreenthroughitscode.

SDA程序允许我们在屏幕上“画草稿”,它会根据我们所画的“草稿”生成相应的DDS代码。

下面,我们将要创建利用DDS创建一个屏幕界面,然后查看这些代码的片断,因为,有些时候,利用代码来修改界面还是比较容易些。

Inthischapter,we'llcreateascreentoshowaclientsdata.

在这一章,我们将创建一个显示客户数据的界面。

ToopenSDAtypeSTRSDAonthesystemprompt.Thisscreenshouldappear:

在系统命令行输入STRDA就可以打开SDA程序了,如下图显示:

Chooseoption1andtypetheoptionsasyouseethemontheimagebelow.Sourcefileisthefilewherethecodewillbestored.Memberisthenameofmemberwe'recreating.

选择1,然后输入相关的选项,如下图,Sourcefile就是代码保存的文件了,在Member输入我们想要创建的成员(Member)。

Createfile创建文件

PressEnter.Anewscreenappears.Addanewrecord,namedTOP,typingwhatyouseeontheimagebellow.

按下回车键,然后我们添加记录,命名为Top,如下图

Nowspecifytherecordtype,inthiscaseit'sRECORD:

接着我们输入记录类型,在这个例子中我们输入Record

AftertheEnteranemptyscreenappears.Inthisscreenyoucan“draw”thetoprecord.Addthecontentyouseeontheimagebellow.

按下回车,现在我们就可以“草绘”top记录,添加内容了,如下图:

Whenyoutypeastringyoushouldplaceitbetweenapostrophes.Ifyoudon'teachwordwillbehandledlikeadifferentfield.Placingtheapostrophesallowsyoutomanipulateallthewordsasasinglefield.

当你想输入一个字符串的时候,请问打上单引号,假如你不这样做的话,系统会把他们当作分开的不同字符串。

The*USERfunctionshowstheusernameonthescreen.Thereareotherfunctionsthatretrieveinformationfromthesystem:

*DATE(showsthesystemcurrentdate),*TIME(showsthesystemcurrenttime),*SYSNAME(showsthesystemname).

*USER用来在屏幕上显示用户名

*DATE用来在屏幕上显示系统当前日期。

*TIME用来在屏幕上显示系统的当前时间。

*SYSNAME用来在屏幕上显示系统名称。

AftertypingwhatyouseeontheimagepressEnter.Alwayscheckwhatyou'vedonebeforepressingEnter,becauseafterthatyoucanonlyalterthescreenbymanipulatingitscode.Youcanalsoexittherecordeditingwithoutsavingyourwork,butthenyou'llloseallyou'vedonesinceyoulastopenedtherecordforediting.

按照上图输入完成后按下回车,就可以看到下图了,请在按下回车之前仔细检查,因为按下回车之后,只能用代码进行修改了,当然,你也可以退出这条记录而不保存,但是你就会丢失这些工作成果。

Movingafield移动字段

Youcanmoveafieldtotherightplacing“>”characterstotherightofthefield.Thenumberof>youtypewillbethenumberofcolumnsthefieldwillmove.Tomovethefieldtotheleftplace

你可以通过在字段右边的输入〉来使字段向后移动,你输入〉符号的数量就是字段向右移动的位移量,向左是同样的道理。

Centeringafield字段居中

Tocenterafieldonthescreenplacean'ac'attheleftofthefieldandthe'c'mustbeoverlappingthefirstcharacterofthefield.ThenpressEnter.

PressF3tofinisheditingthisrecord.Chooseoption1tosaveyourwork:

要是想将字段居中,你可以在字段的左边输入ac,c必须覆盖字段字段的第一个字符,然后按下回车,按下F3结束你对字段的编辑,选择1保存你的工作成果。

CreateanotherrecordnamedBOTTOM,thesamewayyou'vecreatedtheTOPrecord.

现在我们创建另外一个记录叫做Bottom,方法是跟创建TOP字段是一样的。

WhenyouopenthenewrecordforeditingpressF9.Thismenuwillappear:

当你打开按下F9对新的记录,我们可以看见菜单显示出来了

Sothatyoudon'toverlaptherecordsyoucanchoosetovisualizeotherrecordsinthemenu.YoucanseethatthestatusoftheBOTTOMrecordis“InUse”whichmeansitistheonecurrentlybeingedited.Youcanselectatmost3recordstovisualize.Todosoplacenumbers1to3ontherecordsyouwant.SelecttheTOPrecordandpressEnter.

为了不要覆盖你的其他记录,你可以选择在菜单中对其他记录可视化,你可以发现Bottom记录处于正在使用“InUse”状态,意味着这正是我们正在编辑的记录,你可以选择最到3条记录进行可视化,将1,2,3放在你想可视化的记录上面,然后按回车

Thenamesoftheselectedfieldsappearonthebottomofthescreen.Don'tforgetyouareonly“drawing”ontherecordinuse.Theotherrecordsonlyhelpyouplaceyourelementsontherightplace.

可以看到,你所选的字段显示在屏幕的底部了,但是你不要忘记了,你只能“草绘”那个正在使用(“InUse”)的记录,其它记录只能辅佐那个正在使用的字段放置合适的位置而已。

“Draw”somethingsimilartowhatyouseeinthenextimage.Usetheunderscoretomaketheline.

像下图那样“草绘”我们的需要的界面,我们使用下划线描述出一条直线来

Changingfieldproprieties修改字段属性

We'regoingtoedittheproprietiesofthe“F3=Exit”field.Placean'*'attheleftofthefieldandpressEnter:

我们现在修改“F3=Exit”字段的属性,在这个字段的左边输入*,然后按下回车。

Thisscreenappears.Placean'Y'intheColorsoption.We'regoingtochangethecolorofthecharacters.

当出现了下面的界面,在颜色选项中输入Y,

Placean1intheBluefield:

在蓝色选项那里输入1

Selectbluecolor选择蓝色

PressEnteruntilyou'rebackintheeditingscreen.Thefieldisnowblue.Exittheeditingscreen(F3)andsaveyourwork.

按回车返回,直至你返回编辑界面,现在可以看到字段已经变成蓝色了,按F3退出编辑界面然后保存你的工作成果。

Createanewrecord,MIDDLE,thesamewayyou'vecreatedthe

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 经管营销 > 人力资源管理

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1