




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
The47thWorldskillsCompetition
SelectionCompetitionofJiangsuProvince
SampleTestProjectofITSoftwareSolutionsforBusiness
第47届世界技能大赛
江苏省选拔赛
商务软件解决方案项目样题
Session2
第2阶段
Submittedby:
PropositionExpertGroup
命题专家组编写
Contents
内容
ThisTestProjectproposalconsistsofthefollowingdocumentation/files:
本赛题包含以下文档/文件:
1.TestProject_S2.pdf
2.Session2-MsSQL.sql
Introduction
介绍
KazanNefthasbeenexpandingintonewlocationsbothinsideRussiaandabroadandassuch
expansionsgo,there’sagrowingneedtoorganizeitsinventoryandalltheassetsitownsand
operates.Thesysteminfocusforthissectionofworkmostlyistheretoidentifyalltheassetsinone
databaseandcreateacompletecatalogue.
KazanNeft公司一直在俄罗斯国内及国外进行业务范围扩张。业务范围扩张中,该公司急需
对其库存以及所拥有和运行的资产进行组织管理。针对本部分的系统核心功能是识别出一个
数据库中的所有资产并创建一个完整的目录。
Basedonthepreliminarysurveyintotheadministrativeproceduresandpaperformsthecompany
hasacquired,thefollowingfunctionalitiesarerequiredfortheassetmanagement:
根据对管理程序的前期调查及公司获得的纸质表格,资产管理需要具有以下功能:
•Displaylistofassetsandregisternewassets.
•资产显示列表及登记新资产。
•Theassignmentofuniqueserialnumbersandmanagingofassetlocations.
•对各个唯一序列号进行分配及资产位置管理。
DescriptionofProjectandTasks
测试项目和任务描述
Youhave3.5hoursforthissession.
本阶段时间3.5小时。
Whiledevelopingthetestproject,pleasemakesurethedeliverablesconformtothebasicguidelines
drawnoutbydifferentdepartmentsatKazanNeft:
当开发测试项目时,请确保可交付成果符合KazanNeft公司各部门所列出的基本指引方针。
•Thereshouldbeconsistencyinusingtheprovidedstyleguidethroughoutdevelopment.
TP09_S22of14
•在整个开发过程中在使用所提供的风格指南时要具有一致性。
•Allrequiredsoftwaremodulesmusthaveapplicableandusefulvalidationanderror
messagesasexpectedbytheindustry.
•所有要求的软件模块必须有行业所期待的适用且有用的验证及错误提示信息。
•Whereapplicable,usecommentsincodetohavethecodemoreprogrammer-readable.
•若适用时,在代码中使用注释以使代码更加易于编程人员理解。
•Offerascrollbarifthenumberofrecordsonalistoratablethatdonotfitintheformarea
comfortably.Hidescrollbarsifallcontentcancomfortablybedisplayed.
•如果窗体大小无法合适地满足列表或数据表中的记录数目,提供一个滚动条。若所有
内容可以合适地显示于窗体中,隐藏滚动条。
•Thede-factostandard,ISOcompliantdateformatisYYYY-MM-DDwhichwillbeusedin
thistaskwhereapplicable.
•实际符合ISO所兼容的标准日期格式是YYYY-MM-DD,在本任务适用的地方使用此
日期格式。
•Whenaformoradialogueisinfocus,operationsonotherformsneedtobesuspended.
•当一个窗体或对话框处于焦点状态,其它窗体上的操作需暂停。
•ThecaptionofDeleteandCancelbuttonsneedtobeinredtohelpwithaccidentalmishaps.
•Delete(删除)和Cancel(取消)按钮的标题需为红色以避免出现失误。
•Whenusingcolorstodifferentiatebetweenrowsorrecords,thereneedstobevisible
clarificationonthescreenastowhattheystandfor.
•当使用颜色来区分行或记录时,窗口中应有清晰可见的说明来解释颜色所代表的含义。
•Thewireframediagramsprovidedaspartofthisdocumentareonlysuggestionsandthe
solutionproduceddoesnothavetobe,inanyway,mirrorwhathasbeenpictured.
•本文档提供的线框图仅供参考,所开发的解决方案不必照搬所提供的图样。
•Timemanagementiscriticaltothesuccessofanyprojectandsoitisexpectedofall
deliverablestobecompleteandoperationalupondelivery.
•时间管理对任何项目的成功开发是非常重要的,因此希望所有可交付成果在交付时是
完整与可运行的。
•TheuserinterfaceofthecurrenttaskneedstobeimplementedontheAndroidplatform.
Youneedtorunitontheprovidedemulator.
•当前任务的用户界面需要在Android平台上运行,需要在提供的模拟器上运行。
•TheapplicationshouldbedesignedtoprocessalltheirdatarequeststhroughaWebAPI.
Youneedtocreatethenecessarydatainterfacesaccordingtothecompany'sinstructions.
•应用程序的设计应可以通过WebAPI来处理所有的数据请求。你需要根据公司的说
明创建所必要的数据接口。
InstructionstotheCompetitor
向选手的说明
TP09_S23of14
2.1CreatingtheDatabase
创建数据库
Createadatabasebythenameof“Session2”inyourdesiredRDBMSPlatform(MicrosoftSQL
Server).Thiswillbethemainandonlydatabaseyouwilluseinthissession.
在你选择的关系型数据库管理系统(RDBMS)平台(MicrosoftSQLServer)上创建一个数
据库,命名为“Session2”,这将是你在本阶段使用的主要及唯一的数据库。
2.2ImportingDatabasestructure
导入数据库结构
DependingonyourpreferredRDBMSplatform,aSQLscriptsismadeavailable.Thesaidscripts
consistofthedatabasestructureanddatarequiredtocompletethetasks.Thedataneedstobe
importedtothedatabasecreatedforthissessionnamed“Session2”.
根据你选择的关系型数据库管理平台,提供了一个SQL脚本。该脚本包含了数据库结构及
完成任务所需的数据。数据需要导入到为本阶段而创建的名为“Session2”的数据库中。
Asinstructedbythedesigners,thedatabasestructureprovidedforthepurposeofthissection
cannotbealtered.Thisappliestoremovaloftables,addingordeletinganyfieldsonthetablesorof
changeintheirdatatypes.
正如设计者所述,为本部分提供的数据库结构不能被修改,包括不能删除数据表,不能添加
或删除数据表中的任何字段,或不能修改数据类型。
Tohelpfurtherperceivethethinkingbehindthestructureofthedatabase,thedatabasedesigners
provideanEntityRelationshipDiagram(ERD).Theaforementioneddiagramexplainsthe
conceptualandrepresentationalmodelofdatausedinthedatabase.
为了进一步帮助了解数据库结构背后的思想,数据库设计者提供了一个实体关系图(ERD)。
该图解释了数据库中所使用的数据的概念化和表示模型。
TP09_S24of14
TP09_S25of14
2.3AssetCatalogue
资产目录
Theassetcatalogueisthefirstformwhentheapplicationopens.Itprovidesalistofthecurrent
assetsinthedatabaseandallowsthemanagersomelimitedactionsasdescribedbelow:
资产目录是打开应用程序后出现的第一个窗体。它提供了数据库中一个当前资产的列表,允
许管理者一些有限活动权限,如下所述:
•Eachrecordconsistsofthefollowingdatafieldswhichwillbeshowninanappropriate
format:
•每个记录包含以下数据字段,将以合适的格式显示
oAssetName,Departmentname,AssetSN
o资产名称,部门名称,资产序列号
•Thesearchtoolbaratthetopoftheformwillhelpfilteroutthelistinthefollowing
manner:
•窗体顶部的搜索工具栏将通过以下方式帮助筛选列表:
TP09_S26of14
oAtthebottomofthesearchtoolbar,asearchboxwillhelptheclientlookforterms
fromtheAssetSNandAssetNamefields.
o在搜索工具栏底部,一个搜索框将帮助客户通过AssetSN(资产序列号)和
AssetNamefields(资产名称字段)查找所需条目。
▪Uponenteringmorethantwolettersinthesearchparametersofthesaidbox,
theassetlistshouldautomaticallyshowthematchedrecordsfromthe
database.
▪在所述搜索框中输入搜索参数中的字母超过两个时,资产列表应自动
显示数据库中相匹配的记录。
oFourothersearchparametersareplacedabovethesearchfieldwhichwillhelpthe
userfiltertherecordstotheirownlikings:
o位于搜索字段上方,有4个其它搜索参数,帮助用户根据喜好筛选记录:
▪“AssetGroup”and“Department”fieldsallowtheclienttochoosefromalist
ofavailabledataalreadyinthedatabase.
▪“资产分组”和“部门”字段允许客户从数据库中已存在的数据的列表中进
行选择。
▪WarrantyDateRangewilllettheclientchoosetoseetheassetsthathave
warrantiesexpiringontheselecteddates.
▪保修日期范围将允许客户选择保修期日期范围,以便查看在所选保修期
日期范围中的资产的保修期到期时间。
▪Thesearchparametersdescribedabovewillbeappliedoncethefieldloses
focus.
▪一旦字段失去焦点,则将使用上述搜索参数。
oTheclientmaychoosetomixandmatchanyofthesearchparameterstotheirown
preference.
o客户可以根据喜好进行选择去混合和匹配任何搜索字段。
•Atthebottomoftheform,thenumberofthereturnedrecords(basedontheparameters
aforementioned)andthetotalnumberofassetsavailableinthedatabasearedisplayedin
oneline.
•在窗体底部,所得到的记录(根据前面所提参数)的数目与数据库中存在的资产总
数在一行中显示。
TP09_S27of14
•Incasethemobiledeviceisturnedintolandscapemodeaspicturedabove,theclientwill
onlybeabletoseealistwithAssetSNandAssetNamefieldsinasingleline.
•若移动设备转成如上图所示的横向模式,客户将仅能查看在单独一行中列出的Asset
SN(资产序列号)和AssetName(资产名称)字段的列表。
oIfthereareanyfiltersappliedtothelist,theyshouldnotchangebecauseofchange
indisplayorientation.
o若对列表进行任何筛选,列表内容将不会因为显示方向的改变而出现变化。
oTheusermayonlyeditandaddnewassetsinlandscapeviewingmode.
o在横向模式,用户仅可以编辑和添加新资产。
oProperlayoutandgooduseofwhitespacestoorganizetheinformationisvital.
o采用合适的布局及利用好空白区域来组织信息是至关重要的。
oUsingcolorstodifferentiatethefieldsareoptional.
o是否使用颜色来区分字段由自己来定。
TP09_S28of14
2.4RegisteringandEditingAssets
登记和编辑资产
TheNewAssetButton()placedinthemainformwillallowtheclienttoregisternewassets
inthedatabaseasdescribedhere:
放置在主窗体中的NewAssetButton(新资产按钮)()将允许客户在数据库中登记新资产
,如下所述:
•Thedatafieldsusedareasfollows:
•使用的数据字段如下所述:
oAssetName,Department,Location,AssetGroup,AccountableParty,Asset
Description,ExpiredWarranty,Pictures
o资产名称,部门,位置,资产分组,负责方,资产描述,保修期期限,图片
•Departmentisadrop-downlistretrievedandpopulatedfromthedatabase.
•部门是一个下拉列表,从数据库中获取和填充。
•Locationisalsoadrop-downlistthatdisplaysalllocationavailablefortheselected
department.
•位置也是一个下拉列表,为所选部门显示已有的全部位置。
TP09_S29of14
•Thesystemshouldpreventhavingtwoassetsofthesamenameatthesamelocation.
•系统应阻止在同一位置有两个同名的资产。
•TheAssetSNfieldhasadynamicvaluewhichdependsonthe“AssetGroup”and
“Department”propertiesoftheassetasdescribedhere:
•AssetSN(资产序列号)字段有一个动态的值,取决于资产的“AssetGroup(资产分
组)”和“Department(部门)”的属性,如下所述:
oTheformatforthisfieldisindd/gg/nnnnformat:
o本字段的格式是dd/gg/nnnn:
▪ddisadoubledigitandrefersdirectlytothedepartmentIDtheassetis
locatedat.
▪dd是个两位数,直接指的是资产所在的部门ID。
▪ggisalsoadouble-digitnumeralanddirectlyreferencestheIDoftheasset
grouptheyareregisteredto.
▪gg也是个两位数,直接指的是资产所登记到的资产分组ID。
▪nnnnwhichisthelastpartoftheserialnumberisanincrementalfour-digit
numberthatisuniquetothedepartmentandtheassetgroup.Anassetina
departmentwithinanassetgroupcannotsharethisnumber.
▪nnnn是序列号的最后部分,是一个递增的四位数,在部门和资产分组
中是独一无二的。在同一资产分组中的同一部门里的一项资产不能共享
该数。
▪Incaseanyofthethreepartsoftheserialnumberdonothavetherequired
numberofdigits,thesystemshouldautomaticallyaddzerosinfrontofthe
numbertocomplywiththerequirements.
▪若序列号的三个部分中有任何部分的数字未达到所要求的个数时,系统
应自动在数字前添加0以便符合要求。
•Theusermayselectanduploadoneormorepictureseitherusingtheirdevice’scameraor
byselectingpreviouslycapturedimagesstoredontheirdevice.
•用户可以选择和上传1或多个图片,通过使用设备照相机或选择之前已经存储到设备
中的已有图片。
•The“Back”buttonatthetopandthe“Submit”and“Cancel”buttonatthebottomwillget
theuserbacktothemainmenu.The“Submit”buttonstoresthechangestothedatabaseand
refreshesthemainformtoreflectthechangeswhiletheothertwodonot.
•在顶部的“Back(返回)”按钮和在底部的“Submit(提交)”和“Cancel(取消)”按钮
将使用户返回主菜单。“Submit(提交)”按钮保存修改到数据库,刷新主窗体会反映
出修改,而另外两个按钮无此功能。
TheusercanusetheEditButton()placedbesideseachassetonthemainformtoviewand
modifytheirdetails.Thefollowingdescribessomeofthefunctionalitiesrequested:
用户能够使用主窗体上的每项资产旁边的Edit(编辑)按钮()来查看和修改它们的详细内
容。以下描述了所要求的一些功能:
TP09_S210of14
•The“Location”,“Department”,and“AssetGroup”entriesarereadonlyandcannotbe
alteredinthisform.
•“位置”,“部门”和“资产分组”条目是只读的,在此窗体中不能修改。
•Thesystemshouldpreventhavingtwoassetsofthesamenameinthesamelocation.
•系统应阻止在同一位置有两个同名的资产。
•Allthefieldsexceptforthewarrantydaterangeandimagesshouldbefilledoutbeforethe
formcanbesubmitted.
•除了保修期范围及图片以外的所有其它字段应在窗体提交之前被填写。
•The“Back”buttonatthetopandthe“Submit”and“Cancel”buttonatthebottomwillget
theuserbacktothemainmenu.The“Submit”buttonstoresthechangestothedatabaseand
refreshesthemainformtoreflectthechangeswhiletheothertwodonot.
•在顶部的“Back(返回)”按钮和在底部的“Submit(提交)”和“Cancel(取消)”按钮
将使用户返回主菜单。“Submit(提交)”按钮保存修改到数据库,刷新主窗体会反映
出修改,而另外两个按钮无此功能。
•Theusermayselectanduploadoneormorepictureseitherusingtheirdevice’scameraor
byselectingpreviouslycapturedimagesstoredontheirdevice.
•用户可以选择和上传1或多个图片,通过使用设备照相机或选择之前已经存储到设备
中的已有图片。
TP09_S211of14
2.5AssetTransfers
资产转移
TheusercanusetheMoveButton()placedbesideseachassetonthemainformtotransfer
assetsbetweenwarehouses.Thefollowingdescribessomeofthefunctionalitiesrequested:
用户能够使用在主窗体每项资产旁边的Move(移动)按钮()在库房之间转移资产。
以下描述了所要求的一些功能:
•The“AssetName”,“CurrentDepartment”,and“AssetSN”entriesarelocatedatthetopand
arereadonlyandcannotbealteredinthisform.
•“资产名称”,“当前部门”和“资产序列号”条目位于顶部,是只读状态,在此窗体中不
能修改。
•Therequiredentriesinordertocompleteatransferareasfollows:
•为了完成资产转移所要求的输入条目如下:
o“DestinationDepartment”isalistpopulatedfromthedatabaseandshouldnot
containthenameofthedepartmenttheassetcurrentlyresidesin.
TP09_S212of14
o“目的地部门”是一个由数据库填充的列表,不应该包含该资产当前所在部门的
名称。
o“DestinationLocation”isalsoadrop-downlistthatdisplaysalllocationavailable
fortheselecteddepartment.
o“目的地位置”也是一个下拉列表,显示所选部门的所有可用位置。
•“NewAssetSN”isgeneratedaftertheuserselectsdestinationdepartment:
•在用户选择目的地部门后,生成“新资产序列号”:
oTheformatforthisfieldisindd/gg/nnnnformat:
o此字段格式为dd/gg/nnnn:
▪ddisadoubledigitandrefersdirectlytothedepartmentIDtheassetis
locatedat.
▪dd是个两位数,直接指的是资产所在的部门ID。
▪ggisalsoadouble-digitnumeralanddirectlyreferencestheIDoftheasset
grouptheyareregisteredto.
▪gg也是个两位数,直接指的是资产所登记到的资产分组ID。
▪nnnnwhichisthelastpartoftheserialnumberisanincrementalfour-digit
numberthatisuniquetothedepartmentandtheassetgroup.Anassetina
departmentwithinanassetgroupcannotsharethisnumber.
▪nnnn是序列号的最后部分,是一个递增的四位数,在部门和资产分组
中是独一无二的。在同一资产分组中的同一部门里的一项资产不能共享
该数字。
▪Incaseanyofthethreepartsoftheserialnumberdonothavetherequired
numberofdigits,thesystemshouldautomaticallyaddzerosinfrontofthe
numbertocomplywiththerequirements.
▪若序列号的三个部分中有任何部分的数字未达到所要求的个数时,系统
应自动在数字前添加0以便符合要求。
oIftheassethasbeenpreviouslylocatedintheselecteddestinationdepartment,the
sameserialnumbershouldbeassignedtothisfieldandnonewserialnumbers
wouldneed
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 艺术画廊展览合作协议
- 游戏软件发布及授权使用合同
- 专业律师事务所有偿法律咨询合同
- 2025年锤纹漆合作协议书
- 房屋装修半包合同样本
- 借款抵押车辆合同
- 解决方案研讨会邀请函
- 品牌租赁住宅合同
- 人才服务协议书
- 土地储备与开发合作协议
- GB/T 16823.3-2010紧固件扭矩-夹紧力试验
- 建筑工程上人屋面、不上人屋面工程施工方案及工艺方法
- 灭火器每月定期检查记录卡表格
- 一次函数的性质说课课件
- 硬笔书法全册教案共20课时
- 航空维修工程管理-第1章课件
- 五年级上册英语Module6Unit1Youcanplaybasketballwell外研社课件
- 工程施工派工单
- 编纸条 市赛获奖 完整版课件
- 玩具公司职位说明书汇编
- 平面设计创意与制作课件
评论
0/150
提交评论