var div_970x90 = [[970, 90],[728, 90]]; var div_336x280 = [[250,250],[300,250],[320,170],[320,200],[320,250],[336,280]]; var div_300x600 = [[240,400],[240,600],[250,250],[300,250],[300,300],[300,320],[300,400],[300,500],[300,600]]; var div_650x333 = [[336,280],[580,332],[580,333],[650,333]]; googletag.cmd.push(function() { var map650x333 = googletag.sizeMapping().addSize([992, 0], div_650x333).addSize([0, 0], [[336,280]]).build(); googletag.defineSlot('/21931593928/vuzlit_336x280_top', div_336x280, 'div-336x280_top').addService(googletag.pubads()); googletag.defineSlot('/21931593928/vuzlit_336x280_1', div_650x333, 'div-336x280_1').defineSizeMapping(map650x333).addService(googletag.pubads()); googletag.defineSlot('/21931593928/vuzlit_336x280_2', div_336x280, 'div-336x280_2').addService(googletag.pubads()); googletag.defineSlot('/21931593928/vuzlit_336x280_3', div_336x280, 'div-336x280_3').addService(googletag.pubads()); googletag.defineSlot('/21931593928/vuzlit_336x280_btm', div_650x333, 'div-336x280_btm').defineSizeMapping(map650x333).addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(); googletag.enableServices(); }); googletag.cmd.push(function() { // not render hided ads according grid css var map300x600 = googletag.sizeMapping().addSize([768, 0], div_300x600).addSize([0, 0], []).build(); var map970x90 = googletag.sizeMapping().addSize([992, 0], div_970x90).addSize([768, 0], [[728, 90]]).addSize([0, 0], []).build(); googletag.defineSlot('/21931593928/vuzlit_970x90', div_970x90, 'div-970x90').defineSizeMapping(map970x90).addService(googletag.pubads()); googletag.defineSlot('/21931593928/vuzlit_970x90_btm', div_970x90, 'div-970x90_btm').defineSizeMapping(map970x90).addService(googletag.pubads()); googletag.defineSlot('/21931593928/vuzlit_300x600', div_300x600, 'div-300x600').defineSizeMapping(map300x600).addService(googletag.pubads()); googletag.defineSlot('/21931593928/vuzlit_300x600_sticky', div_300x600, 'div-300x600_sticky').defineSizeMapping(map300x600).addService(googletag.pubads()); googletag.defineSlot('/21931593928/vuzlit_rich', [1, 1], 'div-rich').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); });

Класс «HotelBDCore»

Рис.10

Является невизуальным компонентом.

AbtAppBldrPart subclass: #HotelBDCore

instanceVariableNames: 'bd '

classVariableNames: ''

poolDictionaries: ''

Access

init

bd:=OrderedCollection new.

bd

^bd

bd: anObject

bd := anObject.

self signalEvent: #bd with: anObject.

Main

newUser: user

bd add:user.

self signalEvent: #bdChanged with: bd;

signalEvent: #justAdded with: (Array with:user)

addRoom: room toUser: user

room isNil ifFalse:[

user do:[:h|h addRoom:room].

self signalEvent: #bdChanged with: bd;

signalEvent: #justAdded with: user asArray.]

removeSelected: selecteditems

selecteditems do:[:el| bd remove:el].

self signalEvent: #bdChanged with: bd.

findFSName: FNameSet with: SNameSet

|str|

(FNameSet notNil)&(SNameSet notNil)

ifTrue:[^(bd select:[:user| (user FName = FNameSet)&(user SName = SNameSet)]) asArray].

(FNameSet notNil)&(SNameSet isNil)

ifTrue:[^(bd select:[:user| user FName = FNameSet]) asArray].

(FNameSet isNil)&(SNameSet notNil)

ifTrue:[^(bd select:[:user| user SName = SNameSet]) asArray].

(FNameSet isNil)&(SNameSet isNil)

ifTrue:[^(str:=(`Неверные параметры поиска')) asArray].

findSex: sexSet

|str|

(sexSet notNil)

ifTrue:[^(bd select:[:user| (user sex = sexSet)]) asArray];

ifFalse:[^(str:=( `Неверные параметры поиска')) asArray].

findType: typeSet

|str|

(typeSet notNil)

ifTrue:[^(bd select:[:user| ((user haveRoom: typeSet) = true)]) asArray];

ifFalse:[^(str:=(` Неверные параметры поиска')) asArray].

findFSNameSexType: FNameSet with: SNameSet with: sexSet with: typeSet

|str|

(FNameSet notNil)&(SNameSet notNil) &(sexSet notNil)& (typeSet notNil)

ifTrue:[^(bd select:[:user| (user FName = FNameSet)&(user SName = SNameSet)&(user sex = sexSet)&((user haveRoom: typeSet) = true)]) asArray].

ifFalse:[^(str:=( `Неверные параметры поиска')) asArray].

 
< Пред   СОДЕРЖАНИЕ   Загрузить   След >