01969c6160fddb1acf87261d635aa7e767bbd0be.svn-base 505 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Schema Namespace="iBemsModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
  3. <EntityType Name="BemsAnalysisType">
  4. <Key>
  5. <PropertyRef Name="SiteId" />
  6. <PropertyRef Name="AnalysisType" />
  7. </Key>
  8. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9. <Property Name="AnalysisType" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  10. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  11. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsAnalysisType" ToRole="BemsMonitoringPointToAnlaysisType" />
  12. </EntityType>
  13. <EntityType Name="BemsControlPointHistory">
  14. <Key>
  15. <PropertyRef Name="SiteId" />
  16. <PropertyRef Name="FacilityCode" />
  17. <PropertyRef Name="PropertyId" />
  18. <PropertyRef Name="CreateDateTime" />
  19. </Key>
  20. <Property Name="SiteId" Type="Int32" Nullable="false" />
  21. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  22. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  23. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  24. <Property Name="CreateDateTime" Type="DateTime" Nullable="false" Precision="3" />
  25. <Property Name="ControlValue" Type="Double" Nullable="false" />
  26. <Property Name="WriteServiceName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  27. <Property Name="ActionDateTime" Type="DateTime" Precision="3" />
  28. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsControlPointHistory" ToRole="BemsFacilityType" />
  29. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsControlPointHistory" ToRole="BemsMonitoringPoint" />
  30. </EntityType>
  31. <EntityType Name="BemsFacilityType">
  32. <Key>
  33. <PropertyRef Name="FacilityTypeId" />
  34. </Key>
  35. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  36. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  37. <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsControlPointHistory" />
  38. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointBaseData" />
  39. <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15min" />
  40. <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryDaily" />
  41. <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryHourly" />
  42. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointToAnlaysisType" />
  43. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPoint" />
  44. <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsChartInfo" />
  45. <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointConfig" />
  46. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsAlarmSetting" />
  47. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="BemsFacilityType" ToRole="CmFacility" />
  48. <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15minRawData" />
  49. </EntityType>
  50. <EntityType Name="BemsFactorCo2">
  51. <Key>
  52. <PropertyRef Name="FuelTypeId" />
  53. </Key>
  54. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  55. <Property Name="Factor" Type="Double" Nullable="false" />
  56. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFactorCo2" ToRole="BemsFuelType" />
  57. </EntityType>
  58. <EntityType Name="BemsFactorToe">
  59. <Key>
  60. <PropertyRef Name="FuelTypeId" />
  61. </Key>
  62. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  63. <Property Name="TotalFactor" Type="Double" Nullable="false" />
  64. <Property Name="PureFactor" Type="Double" Nullable="false" />
  65. <Property Name="kcal" Type="Double" />
  66. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFactorToe" ToRole="BemsFuelType" />
  67. </EntityType>
  68. <EntityType Name="BemsFormula">
  69. <Key>
  70. <PropertyRef Name="SiteId" />
  71. <PropertyRef Name="FacilityTypeId" />
  72. <PropertyRef Name="FacilityCode" />
  73. <PropertyRef Name="FormulaId" />
  74. </Key>
  75. <Property Name="SiteId" Type="Int32" Nullable="false" />
  76. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  77. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  78. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  79. <Property Name="Formula" Type="String" MaxLength="120" FixedLength="false" Unicode="true" Nullable="false" />
  80. <NavigationProperty Name="BemsFormulaBase" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormula" ToRole="BemsFormulaBase" />
  81. <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormula" ToRole="BemsFormulaParameter" />
  82. <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsFormula" ToRole="BemsPriceFormula" />
  83. </EntityType>
  84. <EntityType Name="BemsFormulaBase">
  85. <Key>
  86. <PropertyRef Name="FacilityTypeId" />
  87. <PropertyRef Name="FormulaId" />
  88. </Key>
  89. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  90. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  91. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  92. <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormulaBase" ToRole="BemsFormula" />
  93. </EntityType>
  94. <EntityType Name="BemsFormulaParameter">
  95. <Key>
  96. <PropertyRef Name="SiteId" />
  97. <PropertyRef Name="FacilityCode" />
  98. <PropertyRef Name="FormulaId" />
  99. <PropertyRef Name="ParameterId" />
  100. </Key>
  101. <Property Name="SiteId" Type="Int32" Nullable="false" />
  102. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  103. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  104. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  105. <Property Name="ParameterId" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
  106. <Property Name="ParameterFacilityCode" Type="Int32" Nullable="false" />
  107. <Property Name="ParameterPropertyId" Type="Int32" Nullable="false" />
  108. <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormulaParameter" ToRole="BemsFormula" />
  109. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsFormulaParameter" ToRole="BemsMonitoringPoint" />
  110. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="BemsFormulaParameter" ToRole="CmFacility" />
  111. </EntityType>
  112. <EntityType Name="BemsFormulaTable">
  113. <Key>
  114. <PropertyRef Name="TableId" />
  115. </Key>
  116. <Property Name="TableId" Type="Int32" Nullable="false" />
  117. <Property Name="FunctionName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  118. <Property Name="Description" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
  119. <NavigationProperty Name="BemsFormulaTableValue" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTable" ToRole="BemsFormulaTableValue" />
  120. </EntityType>
  121. <EntityType Name="BemsFormulaTableValue">
  122. <Key>
  123. <PropertyRef Name="TableId" />
  124. <PropertyRef Name="XValue" />
  125. </Key>
  126. <Property Name="TableId" Type="Int32" Nullable="false" />
  127. <Property Name="XValue" Type="Double" Nullable="false" />
  128. <Property Name="YValue" Type="Double" Nullable="false" />
  129. <NavigationProperty Name="BemsFormulaTable" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTableValue" ToRole="BemsFormulaTable" />
  130. </EntityType>
  131. <EntityType Name="BemsMonitoringPoint">
  132. <Key>
  133. <PropertyRef Name="SiteId" />
  134. <PropertyRef Name="FacilityCode" />
  135. <PropertyRef Name="PropertyId" />
  136. </Key>
  137. <Property Name="SiteId" Type="Int32" Nullable="false" />
  138. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  139. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  140. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  141. <Property Name="ValueType" Type="Int32" Nullable="false" />
  142. <Property Name="ServiceTypeId" Type="Int16" />
  143. <Property Name="FuelTypeId" Type="Int16" />
  144. <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  145. <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  146. <Property Name="BuildingId" Type="Int32" />
  147. <Property Name="FloorId" Type="Int32" />
  148. <Property Name="ZoneId" Type="Int32" />
  149. <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsControlPointHistory" />
  150. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsMonitoringPoint" ToRole="BemsFacilityType" />
  151. <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsFormulaParameter" />
  152. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointToAnlaysisType" />
  153. <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsMonitoringPoint" ToRole="BemsServiceType" />
  154. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="BemsMonitoringPoint" ToRole="CmBuilding" />
  155. <NavigationProperty Name="CmFloor" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="BemsMonitoringPoint" ToRole="CmFloor" />
  156. <NavigationProperty Name="CmZone" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="BemsMonitoringPoint" ToRole="CmZone" />
  157. <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15min" />
  158. <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryDaily" />
  159. <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryHourly" />
  160. <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointConfig" />
  161. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsMonitoringPoint" ToRole="BemsFuelType" />
  162. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="BemsMonitoringPoint" ToRole="CmFacility" />
  163. <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15minRawData" />
  164. </EntityType>
  165. <EntityType Name="BemsMonitoringPointBaseData">
  166. <Key>
  167. <PropertyRef Name="FacilityTypeId" />
  168. <PropertyRef Name="PropertyId" />
  169. </Key>
  170. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  171. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  172. <Property Name="ValueType" Type="Int32" Nullable="false" />
  173. <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
  174. <Property Name="ServiceTypeId" Type="Int16" />
  175. <Property Name="FuelTypeId" Type="Int16" />
  176. <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  177. <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  178. <Property Name="IsSampled" Type="Boolean" />
  179. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFacilityType" />
  180. <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsServiceType" />
  181. <Property Name="IsConverted" Type="Boolean" />
  182. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFuelType" />
  183. </EntityType>
  184. <EntityType Name="BemsMonitoringPointHistory15min">
  185. <Key>
  186. <PropertyRef Name="SiteId" />
  187. <PropertyRef Name="FacilityCode" />
  188. <PropertyRef Name="PropertyId" />
  189. <PropertyRef Name="CreatedDateTime" />
  190. </Key>
  191. <Property Name="SiteId" Type="Int32" Nullable="false" />
  192. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  193. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  194. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  195. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  196. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  197. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsFacilityType" />
  198. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsMonitoringPoint" />
  199. </EntityType>
  200. <EntityType Name="BemsMonitoringPointHistoryDaily">
  201. <Key>
  202. <PropertyRef Name="SiteId" />
  203. <PropertyRef Name="FacilityCode" />
  204. <PropertyRef Name="PropertyId" />
  205. <PropertyRef Name="CreatedDateTime" />
  206. </Key>
  207. <Property Name="SiteId" Type="Int32" Nullable="false" />
  208. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  209. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  210. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  211. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  212. <Property Name="DailyValue" Type="Double" Nullable="false" />
  213. <Property Name="MaxValue" Type="Double" />
  214. <Property Name="MinValue" Type="Double" />
  215. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsFacilityType" />
  216. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsMonitoringPoint" />
  217. </EntityType>
  218. <EntityType Name="BemsMonitoringPointHistoryHourly">
  219. <Key>
  220. <PropertyRef Name="SiteId" />
  221. <PropertyRef Name="FacilityCode" />
  222. <PropertyRef Name="PropertyId" />
  223. <PropertyRef Name="CreatedDateTime" />
  224. </Key>
  225. <Property Name="SiteId" Type="Int32" Nullable="false" />
  226. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  227. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  228. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  229. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  230. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  231. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsFacilityType" />
  232. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsMonitoringPoint" />
  233. </EntityType>
  234. <EntityType Name="BemsMonitoringPointToAnlaysisType">
  235. <Key>
  236. <PropertyRef Name="SiteId" />
  237. <PropertyRef Name="FacilityTypeId" />
  238. <PropertyRef Name="FacilityCode" />
  239. <PropertyRef Name="PropertyId" />
  240. <PropertyRef Name="AnalysisType" />
  241. </Key>
  242. <Property Name="SiteId" Type="Int32" Nullable="false" />
  243. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  244. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  245. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  246. <Property Name="AnalysisType" Type="Int32" Nullable="false" />
  247. <NavigationProperty Name="BemsAnalysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsAnalysisType" />
  248. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsFacilityType" />
  249. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsMonitoringPoint" />
  250. </EntityType>
  251. <EntityType Name="BemsServiceType">
  252. <Key>
  253. <PropertyRef Name="ServiceTypeId" />
  254. </Key>
  255. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  256. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  257. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPoint" />
  258. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPointBaseData" />
  259. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsEnergyDaily" />
  260. </EntityType>
  261. <EntityType Name="CmAnnouncement">
  262. <Key>
  263. <PropertyRef Name="SiteId" />
  264. <PropertyRef Name="AnnouncementId" />
  265. </Key>
  266. <Property Name="SiteId" Type="Int32" Nullable="false" />
  267. <Property Name="AnnouncementId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  268. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  269. <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  270. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" Nullable="false" />
  271. <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  272. <Property Name="FileId" Type="Int32" />
  273. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  274. <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
  275. <Property Name="IsUse" Type="Boolean" />
  276. <Property Name="ReadCount" Type="Int32" Nullable="false" />
  277. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmAnnouncement" ToRole="CmBusinessField" />
  278. <NavigationProperty Name="CmFile" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmAnnouncement" ToRole="CmFile" />
  279. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmAnnouncement" ToRole="CmUser" />
  280. </EntityType>
  281. <EntityType Name="CmBuilding">
  282. <Key>
  283. <PropertyRef Name="SiteId" />
  284. <PropertyRef Name="BuildingId" />
  285. </Key>
  286. <Property Name="SiteId" Type="Int32" Nullable="false" />
  287. <Property Name="BuildingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  288. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  289. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="CmBuilding" ToRole="BemsMonitoringPoint" />
  290. <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmBuilding" ToRole="CmFloor" />
  291. <NavigationProperty Name="CmZone" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmBuilding" ToRole="CmZone" />
  292. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmBuilding" ToRole="CmZoneTempHumiSet" />
  293. <Property Name="FileId" Type="Int32" />
  294. <Property Name="IsUse" Type="Boolean" />
  295. <Property Name="SortOrderNo" Type="Int32" />
  296. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmBuilding" ToRole="CmPatrolPos" />
  297. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmBuilding" ToRole="CmSite" />
  298. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="CmBuilding" ToRole="BemsEnergyDaily" />
  299. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmBuilding" ToRole="CmFacility" />
  300. </EntityType>
  301. <EntityType Name="CmBusinessField">
  302. <Key>
  303. <PropertyRef Name="SiteId" />
  304. <PropertyRef Name="BusinessFieldId" />
  305. </Key>
  306. <Property Name="SiteId" Type="Int32" Nullable="false" />
  307. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  308. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  309. <Property Name="IsUse" Type="Boolean" />
  310. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmBusinessField" ToRole="CmAnnouncement" />
  311. <NavigationProperty Name="FmsFacilityManual" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="CmBusinessField" ToRole="FmsFacilityManual" />
  312. <NavigationProperty Name="FmsLicense" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsLicense" />
  313. <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCarriedForward" />
  314. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCodeLocation" />
  315. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseOrder" />
  316. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseRequest" />
  317. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialStored" />
  318. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialWarehouse" />
  319. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkOrder" />
  320. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkRequest" />
  321. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkSchedule" />
  322. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmBusinessField" ToRole="CmUser" />
  323. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterial" />
  324. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialRelease" />
  325. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsReport" />
  326. <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsDailyReport" />
  327. </EntityType>
  328. <EntityType Name="CmCompany">
  329. <Key>
  330. <PropertyRef Name="SiteId" />
  331. <PropertyRef Name="CompanyId" />
  332. </Key>
  333. <Property Name="SiteId" Type="Int32" Nullable="false" />
  334. <Property Name="CompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  335. <Property Name="CompanyTypeId" Type="Int32" Nullable="false" />
  336. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  337. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  338. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  339. <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  340. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  341. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  342. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  343. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  344. <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  345. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  346. <Property Name="Homepage" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  347. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  348. <Property Name="IsUse" Type="Boolean" />
  349. <NavigationProperty Name="CmCompanyType" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompany" ToRole="CmCompanyType" />
  350. <NavigationProperty Name="CmDepartment" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmCompany" ToRole="CmDepartment" />
  351. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmCompany" ToRole="CmUser" />
  352. <NavigationProperty Name="FmsAccident" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="CmCompany" ToRole="FmsAccident" />
  353. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmCompany" ToRole="CmSite" />
  354. </EntityType>
  355. <EntityType Name="CmCompanyType">
  356. <Key>
  357. <PropertyRef Name="SiteId" />
  358. <PropertyRef Name="CompanyTypeId" />
  359. </Key>
  360. <Property Name="SiteId" Type="Int32" Nullable="false" />
  361. <Property Name="CompanyTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  362. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  363. <Property Name="IsUse" Type="Boolean" />
  364. <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompanyType" ToRole="CmCompany" />
  365. </EntityType>
  366. <EntityType Name="CmDepartment">
  367. <Key>
  368. <PropertyRef Name="SiteId" />
  369. <PropertyRef Name="CompanyId" />
  370. <PropertyRef Name="DepartmentId" />
  371. </Key>
  372. <Property Name="SiteId" Type="Int32" Nullable="false" />
  373. <Property Name="CompanyId" Type="Int32" Nullable="false" />
  374. <Property Name="DepartmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  375. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  376. <Property Name="ShortName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  377. <Property Name="FaxNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  378. <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  379. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  380. <Property Name="IsUse" Type="Boolean" />
  381. <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmDepartment" ToRole="CmCompany" />
  382. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmDepartment" ToRole="CmUser" />
  383. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="CmDepartment" ToRole="FmsAccident" />
  384. </EntityType>
  385. <EntityType Name="CmFacilityFile">
  386. <Key>
  387. <PropertyRef Name="SiteId" />
  388. <PropertyRef Name="FileId" />
  389. </Key>
  390. <Property Name="SiteId" Type="Int32" Nullable="false" />
  391. <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  392. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  393. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  394. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  395. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  396. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  397. <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFacilityFile" ToRole="CmFile" />
  398. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacilityFile" ToRole="CmFacility" />
  399. </EntityType>
  400. <EntityType Name="CmFacilityTempSet">
  401. <Key>
  402. <PropertyRef Name="SiteId" />
  403. <PropertyRef Name="FacilityCode" />
  404. </Key>
  405. <Property Name="SiteId" Type="Int32" Nullable="false" />
  406. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  407. <Property Name="T1" Type="Double" Nullable="false" />
  408. <Property Name="T2" Type="Double" Nullable="false" />
  409. <Property Name="T3" Type="Double" Nullable="false" />
  410. <Property Name="T4" Type="Double" Nullable="false" />
  411. <Property Name="T5" Type="Double" Nullable="false" />
  412. <Property Name="T6" Type="Double" Nullable="false" />
  413. <Property Name="T7" Type="Double" Nullable="false" />
  414. <Property Name="T8" Type="Double" Nullable="false" />
  415. <Property Name="T9" Type="Double" Nullable="false" />
  416. <Property Name="T10" Type="Double" Nullable="false" />
  417. <Property Name="T11" Type="Double" Nullable="false" />
  418. <Property Name="T12" Type="Double" Nullable="false" />
  419. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmFacilityTempSet" ToRole="CmSite" />
  420. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacilityTempSet" ToRole="CmFacility" />
  421. </EntityType>
  422. <EntityType Name="CmFile" m:HasStream="true" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
  423. <Key>
  424. <PropertyRef Name="SiteId" />
  425. <PropertyRef Name="FileId" />
  426. </Key>
  427. <Property Name="SiteId" Type="Int32" Nullable="false" />
  428. <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  429. <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
  430. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  431. <Property Name="FileSize" Type="Int32" />
  432. <Property Name="CreatedDate" Type="DateTime" Precision="3" />
  433. <Property Name="ContentType" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  434. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmFile" ToRole="CmAnnouncement" />
  435. <NavigationProperty Name="CmFacilityFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFile" ToRole="CmFacilityFile" />
  436. <NavigationProperty Name="CmFileCategory" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFile" ToRole="CmFileCategory" />
  437. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="CmFile" ToRole="FmsDrawingHistory" />
  438. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="CmFile" ToRole="FmsMaterialPurchaseOrder" />
  439. <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="CmFile" ToRole="FmsWorkResultFile" />
  440. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="CmFile" ToRole="FmsAccident" />
  441. <NavigationProperty Name="FmsAccident1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="CmFile" ToRole="FmsAccident" />
  442. <NavigationProperty Name="FmsAccident2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="CmFile" ToRole="FmsAccident" />
  443. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="CmFile" ToRole="FmsConstruction" />
  444. <NavigationProperty Name="FmsConstruction1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="CmFile" ToRole="FmsConstruction" />
  445. <NavigationProperty Name="FmsConstruction2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="CmFile" ToRole="FmsConstruction" />
  446. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="CmFile" ToRole="FmsManualHistory" />
  447. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="CmFile" ToRole="FmsMaterial" />
  448. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmFile" ToRole="CmSite" />
  449. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="CmFile" ToRole="FmsReport" />
  450. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
  451. <NavigationProperty Name="FmsWorkResultCheckItem1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
  452. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFile" ToRole="CmFacility" />
  453. </EntityType>
  454. <EntityType Name="CmFileCategory">
  455. <Key>
  456. <PropertyRef Name="FileCategoryId" />
  457. </Key>
  458. <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
  459. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  460. <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFileCategory" ToRole="CmFile" />
  461. </EntityType>
  462. <EntityType Name="CmFloor">
  463. <Key>
  464. <PropertyRef Name="SiteId" />
  465. <PropertyRef Name="BuildingId" />
  466. <PropertyRef Name="FloorId" />
  467. </Key>
  468. <Property Name="SiteId" Type="Int32" Nullable="false" />
  469. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  470. <Property Name="FloorId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  471. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  472. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="CmFloor" ToRole="BemsMonitoringPoint" />
  473. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmFloor" ToRole="CmBuilding" />
  474. <NavigationProperty Name="CmZone" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmFloor" ToRole="CmZone" />
  475. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmFloor" ToRole="CmZoneTempHumiSet" />
  476. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmFloor" ToRole="CmPatrolPos" />
  477. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFloor" ToRole="CmFacility" />
  478. </EntityType>
  479. <EntityType Name="CmHoliday">
  480. <Key>
  481. <PropertyRef Name="SiteId" />
  482. <PropertyRef Name="HolidayMonth" />
  483. <PropertyRef Name="HolidayDay" />
  484. <PropertyRef Name="IsLunar" />
  485. </Key>
  486. <Property Name="SiteId" Type="Int32" Nullable="false" />
  487. <Property Name="HolidayMonth" Type="Int16" Nullable="false" />
  488. <Property Name="HolidayDay" Type="Int16" Nullable="false" />
  489. <Property Name="IsLunar" Type="Boolean" Nullable="false" />
  490. <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
  491. <Property Name="IsUse" Type="Boolean" />
  492. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmHoliday" ToRole="CmSite" />
  493. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmHoliday" ToRole="CmSite" />
  494. </EntityType>
  495. <EntityType Name="CmHolidayCustom">
  496. <Key>
  497. <PropertyRef Name="SiteId" />
  498. <PropertyRef Name="HolidayDate" />
  499. </Key>
  500. <Property Name="SiteId" Type="Int32" Nullable="false" />
  501. <Property Name="HolidayDate" Type="DateTime" Nullable="false" Precision="3" />
  502. <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
  503. <Property Name="IsUse" Type="Boolean" />
  504. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmHolidayCustom" ToRole="CmSite" />
  505. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmHolidayCustom" ToRole="CmSite" />
  506. </EntityType>
  507. <EntityType Name="CmPosition">
  508. <Key>
  509. <PropertyRef Name="SiteId" />
  510. <PropertyRef Name="PositionId" />
  511. </Key>
  512. <Property Name="SiteId" Type="Int32" Nullable="false" />
  513. <Property Name="PositionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  514. <Property Name="Name" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
  515. <Property Name="IsUse" Type="Boolean" />
  516. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmPosition" ToRole="CmUser" />
  517. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmPosition" ToRole="CmSite" />
  518. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmPosition" ToRole="CmSite" />
  519. <Property Name="Position" Type="Int32" />
  520. </EntityType>
  521. <EntityType Name="CmUser">
  522. <Key>
  523. <PropertyRef Name="SiteId" />
  524. <PropertyRef Name="UserId" />
  525. </Key>
  526. <Property Name="SiteId" Type="Int32" Nullable="false" />
  527. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  528. <Property Name="CompanyId" Type="Int32" />
  529. <Property Name="DepartmentId" Type="Int32" />
  530. <Property Name="PositionId" Type="Int32" />
  531. <Property Name="BusinessFieldId" Type="Int32" />
  532. <Property Name="UserGroupId" Type="Int32" />
  533. <Property Name="Name" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  534. <Property Name="Passwd" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  535. <Property Name="Birthday" Type="DateTime" Precision="3" />
  536. <Property Name="Lunar" Type="Boolean" />
  537. <Property Name="StateId" Type="Int32" />
  538. <Property Name="EmploymentType" Type="Int32" />
  539. <Property Name="EmploymentStatus" Type="Int32" />
  540. <Property Name="OfficePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  541. <Property Name="HomePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  542. <Property Name="MobilePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  543. <Property Name="HomeZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
  544. <Property Name="HomeZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
  545. <Property Name="HomeAddress1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  546. <Property Name="HomeAdderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  547. <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  548. <Property Name="EnterDate" Type="DateTime" Precision="3" />
  549. <Property Name="RetireDate" Type="DateTime" Precision="3" />
  550. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  551. <Property Name="Rfcsn" Type="String" MaxLength="30" FixedLength="false" Unicode="true" />
  552. <Property Name="PasswordUpdatedDate" Type="DateTime" Precision="3" />
  553. <Property Name="FileId" Type="Int32" />
  554. <Property Name="IsBems" Type="Boolean" />
  555. <Property Name="IsUse" Type="Boolean" />
  556. <Property Name="Certificated" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  557. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmUser" ToRole="CmAnnouncement" />
  558. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmUser" ToRole="CmBusinessField" />
  559. <NavigationProperty Name="CmCompany" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmUser" ToRole="CmCompany" />
  560. <NavigationProperty Name="CmDepartment" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmUser" ToRole="CmDepartment" />
  561. <NavigationProperty Name="CmPosition" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmUser" ToRole="CmPosition" />
  562. <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUser" ToRole="CmUserToLicense" />
  563. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="CmUser" ToRole="FmsDrawingHistory" />
  564. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="CmUser" ToRole="FmsMaterialPurchaseOrder" />
  565. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
  566. <NavigationProperty Name="FmsMaterialPurchaseRequest1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
  567. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
  568. <NavigationProperty Name="FmsMaterialStored1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
  569. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="CmUser" ToRole="FmsWorkOrder" />
  570. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
  571. <NavigationProperty Name="FmsWorkRequest1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
  572. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
  573. <NavigationProperty Name="FmsWorkResult1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
  574. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmUser" FromRole="CmUser" ToRole="FmsWorkSchedule" />
  575. <NavigationProperty Name="CmUserGroup" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUser" ToRole="CmUserGroup" />
  576. <NavigationProperty Name="CmUserLoginHistory" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUser" ToRole="CmUserLoginHistory" />
  577. <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="CmUser" ToRole="FmsConstructionEstimation" />
  578. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="CmUser" ToRole="FmsManualHistory" />
  579. <NavigationProperty Name="FmsDailyCheckReport" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="CmUser" ToRole="FmsDailyCheckReport" />
  580. <NavigationProperty Name="FmsFacilityOperationReport" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="CmUser" ToRole="FmsFacilityOperationReport" />
  581. <Property Name="IsScheduleUser" Type="Boolean" />
  582. <NavigationProperty Name="FmsMonthlyReport" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="CmUser" ToRole="FmsMonthlyReport" />
  583. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="CmUser" ToRole="FmsMaterialRelease" />
  584. <NavigationProperty Name="FmsMaterialRelease1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="CmUser" ToRole="FmsMaterialRelease" />
  585. <Property Name="IsSI" Type="Boolean" Nullable="true" />
  586. <Property Name="IsMobile" Type="Boolean" Nullable="true" />
  587. <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmUser" ToRole="CmPatrolGroupUser" />
  588. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="CmUser" ToRole="FmsReport" />
  589. <NavigationProperty Name="FmsReport1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="CmUser" ToRole="FmsReport" />
  590. <NavigationProperty Name="FmsReport2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="CmUser" ToRole="FmsReport" />
  591. <Property Name="Devicetoken" Type="String" MaxLength="500" FixedLength="false" Unicode="true" />
  592. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
  593. <NavigationProperty Name="FmsEquipmentRentInfo1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
  594. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmUser" ToRole="CmFacility" />
  595. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmUser" ToRole="CmFacility" />
  596. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmUser" ToRole="CmFacility" />
  597. <NavigationProperty Name="CmFacility3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmUser" ToRole="CmFacility" />
  598. <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="CmUser" ToRole="FmsDailyReport" />
  599. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="CmUser" ToRole="FmsEquipment" />
  600. </EntityType>
  601. <EntityType Name="CmUserGroup">
  602. <Key>
  603. <PropertyRef Name="SiteId" />
  604. <PropertyRef Name="UserGroupId" />
  605. </Key>
  606. <Property Name="SiteId" Type="Int32" Nullable="false" />
  607. <Property Name="UserGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  608. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  609. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUserGroup" ToRole="CmUser" />
  610. <NavigationProperty Name="CmUserGroupPermission" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroup" ToRole="CmUserGroupPermission" />
  611. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmUserGroup" ToRole="CmSite" />
  612. </EntityType>
  613. <EntityType Name="CmUserGroupPermission">
  614. <Key>
  615. <PropertyRef Name="SiteId" />
  616. <PropertyRef Name="UserGroupId" />
  617. <PropertyRef Name="MenuId" />
  618. </Key>
  619. <Property Name="SiteId" Type="Int32" Nullable="false" />
  620. <Property Name="UserGroupId" Type="Int32" Nullable="false" />
  621. <Property Name="MenuId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  622. <Property Name="MenuPermission" Type="Int16" />
  623. <NavigationProperty Name="CmUserGroup" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroupPermission" ToRole="CmUserGroup" />
  624. </EntityType>
  625. <EntityType Name="CmUserLoginHistory">
  626. <Key>
  627. <PropertyRef Name="LoginHistoryId" />
  628. </Key>
  629. <Property Name="LoginHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  630. <Property Name="SiteId" Type="Int32" Nullable="false" />
  631. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  632. <Property Name="Type" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
  633. <Property Name="TraceTime" Type="DateTime" Nullable="false" Precision="3" />
  634. <Property Name="IpAddress" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  635. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUserLoginHistory" ToRole="CmUser" />
  636. </EntityType>
  637. <EntityType Name="CmUserToLicense">
  638. <Key>
  639. <PropertyRef Name="SiteId" />
  640. <PropertyRef Name="UserId" />
  641. <PropertyRef Name="LicenseId" />
  642. </Key>
  643. <Property Name="SiteId" Type="Int32" Nullable="false" />
  644. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  645. <Property Name="LicenseId" Type="Int32" Nullable="false" />
  646. <NavigationProperty Name="CmUser" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUserToLicense" ToRole="CmUser" />
  647. <NavigationProperty Name="FmsLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="CmUserToLicense" ToRole="FmsLicense" />
  648. </EntityType>
  649. <EntityType Name="CmZone">
  650. <Key>
  651. <PropertyRef Name="SiteId" />
  652. <PropertyRef Name="BuildingId" />
  653. <PropertyRef Name="FloorId" />
  654. <PropertyRef Name="ZoneId" />
  655. </Key>
  656. <Property Name="SiteId" Type="Int32" Nullable="false" />
  657. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  658. <Property Name="FloorId" Type="Int32" Nullable="false" />
  659. <Property Name="ZoneId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  660. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  661. <Property Name="Target_temperature" Type="Double" />
  662. <Property Name="Target_humidity" Type="Int16" />
  663. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="CmZone" ToRole="BemsMonitoringPoint" />
  664. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmZone" ToRole="CmBuilding" />
  665. <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmZone" ToRole="CmFloor" />
  666. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZone" ToRole="CmZoneTempHumiSet" />
  667. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmZone" ToRole="CmFacility" />
  668. </EntityType>
  669. <EntityType Name="CmZoneTempHumiSet">
  670. <Key>
  671. <PropertyRef Name="SiteId" />
  672. <PropertyRef Name="BuildingId" />
  673. <PropertyRef Name="FloorId" />
  674. <PropertyRef Name="ZoneId" />
  675. </Key>
  676. <Property Name="SiteId" Type="Int32" Nullable="false" />
  677. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  678. <Property Name="FloorId" Type="Int32" Nullable="false" />
  679. <Property Name="ZoneId" Type="Int32" Nullable="false" />
  680. <Property Name="T1" Type="Double" Nullable="false" />
  681. <Property Name="T2" Type="Double" Nullable="false" />
  682. <Property Name="T3" Type="Double" Nullable="false" />
  683. <Property Name="T4" Type="Double" Nullable="false" />
  684. <Property Name="T5" Type="Double" Nullable="false" />
  685. <Property Name="T6" Type="Double" Nullable="false" />
  686. <Property Name="T7" Type="Double" Nullable="false" />
  687. <Property Name="T8" Type="Double" Nullable="false" />
  688. <Property Name="T9" Type="Double" Nullable="false" />
  689. <Property Name="T10" Type="Double" Nullable="false" />
  690. <Property Name="T11" Type="Double" Nullable="false" />
  691. <Property Name="T12" Type="Double" Nullable="false" />
  692. <Property Name="H1" Type="Int16" Nullable="false" />
  693. <Property Name="H2" Type="Int16" Nullable="false" />
  694. <Property Name="H3" Type="Int16" Nullable="false" />
  695. <Property Name="H4" Type="Int16" Nullable="false" />
  696. <Property Name="H5" Type="Int16" Nullable="false" />
  697. <Property Name="H6" Type="Int16" Nullable="false" />
  698. <Property Name="H7" Type="Int16" Nullable="false" />
  699. <Property Name="H8" Type="Int16" Nullable="false" />
  700. <Property Name="H9" Type="Int16" Nullable="false" />
  701. <Property Name="H10" Type="Int16" Nullable="false" />
  702. <Property Name="H11" Type="Int16" Nullable="false" />
  703. <Property Name="H12" Type="Int16" Nullable="false" />
  704. <NavigationProperty Name="CmBuilding" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmZoneTempHumiSet" ToRole="CmBuilding" />
  705. <NavigationProperty Name="CmFloor" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmZoneTempHumiSet" ToRole="CmFloor" />
  706. <NavigationProperty Name="CmZone" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZoneTempHumiSet" ToRole="CmZone" />
  707. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmZoneTempHumiSet" ToRole="CmSite" />
  708. </EntityType>
  709. <EntityType Name="FmsAccident">
  710. <Key>
  711. <PropertyRef Name="SiteId" />
  712. <PropertyRef Name="AccidentId" />
  713. </Key>
  714. <Property Name="SiteId" Type="Int32" Nullable="false" />
  715. <Property Name="AccidentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  716. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  717. <Property Name="StartDate" Type="DateTime" Precision="3" />
  718. <Property Name="EndDate" Type="DateTime" Precision="3" />
  719. <Property Name="AccidentTypeId" Type="Int32" Nullable="false" />
  720. <Property Name="DepartmentId" Type="Int32" />
  721. <Property Name="AccidentLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  722. <Property Name="Reason" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  723. <Property Name="Action" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  724. <Property Name="Damage" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  725. <Property Name="Measurement" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  726. <Property Name="FileId1" Type="Int32" />
  727. <Property Name="FileId2" Type="Int32" />
  728. <Property Name="FileId3" Type="Int32" />
  729. <Property Name="CompanyId" Type="Int32" />
  730. <NavigationProperty Name="CmDepartment" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="FmsAccident" ToRole="CmDepartment" />
  731. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="FmsAccident" ToRole="CmFile" />
  732. <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="FmsAccident" ToRole="CmFile" />
  733. <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="FmsAccident" ToRole="CmFile" />
  734. <NavigationProperty Name="FmsAccidentCodeType" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccident" ToRole="FmsAccidentCodeType" />
  735. <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="FmsAccident" ToRole="CmCompany" />
  736. </EntityType>
  737. <EntityType Name="FmsAccidentCodeType">
  738. <Key>
  739. <PropertyRef Name="SiteId" />
  740. <PropertyRef Name="AccidentTypeId" />
  741. </Key>
  742. <Property Name="SiteId" Type="Int32" Nullable="false" />
  743. <Property Name="AccidentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  744. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  745. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  746. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccidentCodeType" ToRole="FmsAccident" />
  747. </EntityType>
  748. <EntityType Name="FmsBudget">
  749. <Key>
  750. <PropertyRef Name="SiteId" />
  751. <PropertyRef Name="Year" />
  752. </Key>
  753. <Property Name="SiteId" Type="Int32" Nullable="false" />
  754. <Property Name="Year" Type="Int32" Nullable="false" />
  755. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudget" ToRole="FmsBudgetDetail" />
  756. </EntityType>
  757. <EntityType Name="FmsBudgetCodeClass">
  758. <Key>
  759. <PropertyRef Name="SiteId" />
  760. <PropertyRef Name="BudgetClassId" />
  761. </Key>
  762. <Property Name="SiteId" Type="Int32" Nullable="false" />
  763. <Property Name="BudgetClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  764. <Property Name="BudgetSeq" Type="String" MaxLength="6" FixedLength="false" Unicode="true" Nullable="false" />
  765. <Property Name="ParentBudgetClassId" Type="Int32" />
  766. <Property Name="Depth" Type="Int32" Nullable="false" />
  767. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  768. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  769. <Property Name="IsUse" Type="Boolean" />
  770. <Property Name="YearlyBudget" Type="Double" />
  771. <Property Name="MonthlyBudget" Type="Double" />
  772. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetCodeClass" ToRole="FmsBudgetDetail" />
  773. <Property Name="RootBudgetClassId" Type="Int32" />
  774. </EntityType>
  775. <EntityType Name="FmsCompanyEstimationCodeClass">
  776. <Key>
  777. <PropertyRef Name="SiteId" />
  778. <PropertyRef Name="CompanyEstimationClassId" />
  779. </Key>
  780. <Property Name="SiteId" Type="Int32" Nullable="false" />
  781. <Property Name="CompanyEstimationClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  782. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  783. <Property Name="IsUse" Type="Boolean" />
  784. </EntityType>
  785. <EntityType Name="FmsConstruction">
  786. <Key>
  787. <PropertyRef Name="SiteId" />
  788. <PropertyRef Name="ConstructionId" />
  789. </Key>
  790. <Property Name="SiteId" Type="Int32" Nullable="false" />
  791. <Property Name="ConstructionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  792. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  793. <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
  794. <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
  795. <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
  796. <Property Name="PartnerId" Type="Int32" Nullable="false" />
  797. <Property Name="ConstructLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  798. <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  799. <Property Name="CommitmentMan" Type="Int16" />
  800. <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  801. <Property Name="WeldWorkStartTime" Type="DateTime" Precision="3" />
  802. <Property Name="WeldWorkEndTime" Type="DateTime" Precision="3" />
  803. <Property Name="GasWorkStartTime" Type="DateTime" Precision="3" />
  804. <Property Name="GasWorkEndTime" Type="DateTime" Precision="3" />
  805. <Property Name="PaintWorkStartTime" Type="DateTime" Precision="3" />
  806. <Property Name="PaintWorkEndTime" Type="DateTime" Precision="3" />
  807. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  808. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  809. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  810. <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
  811. <Property Name="ConstructionDetail" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  812. <Property Name="InOutStockName" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  813. <Property Name="FileId1" Type="Int32" />
  814. <Property Name="FileId2" Type="Int32" />
  815. <Property Name="FileId3" Type="Int32" />
  816. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="FmsConstruction" ToRole="CmFile" />
  817. <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="FmsConstruction" ToRole="CmFile" />
  818. <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="FmsConstruction" ToRole="CmFile" />
  819. <NavigationProperty Name="FmsConstructionCodeProgress" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstruction" ToRole="FmsConstructionCodeProgress" />
  820. <NavigationProperty Name="FmsConstructionCodeType" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstruction" ToRole="FmsConstructionCodeType" />
  821. <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstruction" ToRole="FmsConstructionEstimation" />
  822. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="FmsConstruction" ToRole="CmPartner" />
  823. </EntityType>
  824. <EntityType Name="FmsConstructionCodeProgress">
  825. <Key>
  826. <PropertyRef Name="ProgressId" />
  827. </Key>
  828. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  829. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  830. <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  831. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstructionCodeProgress" ToRole="FmsConstruction" />
  832. </EntityType>
  833. <EntityType Name="FmsConstructionCodeType">
  834. <Key>
  835. <PropertyRef Name="SiteId" />
  836. <PropertyRef Name="ConstructionTypeId" />
  837. </Key>
  838. <Property Name="SiteId" Type="Int32" Nullable="false" />
  839. <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
  840. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  841. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  842. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstructionCodeType" ToRole="FmsConstruction" />
  843. </EntityType>
  844. <EntityType Name="FmsConstructionEstimation">
  845. <Key>
  846. <PropertyRef Name="SiteId" />
  847. <PropertyRef Name="ConstructionId" />
  848. </Key>
  849. <Property Name="SiteId" Type="Int32" Nullable="false" />
  850. <Property Name="ConstructionId" Type="Int32" Nullable="false" />
  851. <Property Name="EstimateDate" Type="DateTime" Nullable="false" Precision="3" />
  852. <Property Name="EstimateUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  853. <Property Name="Safety01_CleanUp" Type="Boolean" />
  854. <Property Name="Safety02_PersonalProtection" Type="Boolean" />
  855. <Property Name="Safety03_FireExtinguisher" Type="Boolean" />
  856. <Property Name="Safety04_HighPlaceWork" Type="Boolean" />
  857. <Property Name="Safety05_Weld" Type="Boolean" />
  858. <Property Name="Safety06_SurroundingCleanUp" Type="Boolean" />
  859. <Property Name="Safety07_SurroundingHealthy" Type="Boolean" />
  860. <Property Name="Safety08_Noise" Type="Boolean" />
  861. <Property Name="Safety09_FacilityProtection" Type="Boolean" />
  862. <Property Name="Safety10_Waste" Type="Boolean" />
  863. <Property Name="Safety11_Execution" Type="Boolean" />
  864. <Property Name="Safety12_Announcement" Type="Boolean" />
  865. <Property Name="Ability01_Compliance" Type="Boolean" />
  866. <Property Name="Ability02_Fault" Type="Boolean" />
  867. <Property Name="Ability03_SkillLevel" Type="Boolean" />
  868. <Property Name="Ability04_ProcessManagement" Type="Boolean" />
  869. <Property Name="Ability05_Collaboration" Type="Boolean" />
  870. <Property Name="Service01_Compliance" Type="Boolean" />
  871. <Property Name="Service02_SkillLevel" Type="Boolean" />
  872. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  873. <Property Name="TotalEstimateScore" Type="Double" />
  874. <Property Name="SafetyScore" Type="Double" />
  875. <Property Name="AbilityScore" Type="Double" />
  876. <Property Name="ServiceScore" Type="Double" />
  877. <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="FmsConstructionEstimation" ToRole="CmUser" />
  878. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstructionEstimation" ToRole="FmsConstruction" />
  879. </EntityType>
  880. <EntityType Name="FmsContractClass">
  881. <Key>
  882. <PropertyRef Name="SiteId" />
  883. <PropertyRef Name="ContractClassId" />
  884. </Key>
  885. <Property Name="SiteId" Type="Int32" Nullable="false" />
  886. <Property Name="ContractClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  887. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  888. <Property Name="IsUse" Type="Boolean" />
  889. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContractClass" ToRole="FmsContract" />
  890. </EntityType>
  891. <EntityType Name="FmsContractMethod">
  892. <Key>
  893. <PropertyRef Name="SiteId" />
  894. <PropertyRef Name="ContractMethodId" />
  895. </Key>
  896. <Property Name="SiteId" Type="Int32" Nullable="false" />
  897. <Property Name="ContractMethodId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  898. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  899. <Property Name="IsUse" Type="Boolean" />
  900. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContractMethod" ToRole="FmsContract" />
  901. </EntityType>
  902. <EntityType Name="FmsContractType">
  903. <Key>
  904. <PropertyRef Name="SiteId" />
  905. <PropertyRef Name="ContractTypeId" />
  906. </Key>
  907. <Property Name="SiteId" Type="Int32" Nullable="false" />
  908. <Property Name="ContractTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  909. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  910. <Property Name="IsUse" Type="Boolean" />
  911. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContractType" ToRole="FmsContract" />
  912. </EntityType>
  913. <EntityType Name="FmsDrawing">
  914. <Key>
  915. <PropertyRef Name="SiteId" />
  916. <PropertyRef Name="DrawingId" />
  917. </Key>
  918. <Property Name="SiteId" Type="Int32" Nullable="false" />
  919. <Property Name="DrawingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  920. <Property Name="DrawingNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  921. <Property Name="DrawingGroupId" Type="Int32" Nullable="false" />
  922. <Property Name="DrawingTypeId" Type="Int32" Nullable="false" />
  923. <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  924. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  925. <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawing" ToRole="FmsDrawingCodeGroup" />
  926. <NavigationProperty Name="FmsDrawingCodeType" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawing" ToRole="FmsDrawingCodeType" />
  927. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawing" ToRole="FmsDrawingHistory" />
  928. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="FmsDrawing" ToRole="CmSite" />
  929. </EntityType>
  930. <EntityType Name="FmsDrawingCodeGroup">
  931. <Key>
  932. <PropertyRef Name="SiteId" />
  933. <PropertyRef Name="DrawingGroupId" />
  934. </Key>
  935. <Property Name="SiteId" Type="Int32" Nullable="false" />
  936. <Property Name="DrawingGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  937. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  938. <Property Name="IsUse" Type="Boolean" />
  939. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawingCodeGroup" ToRole="FmsDrawing" />
  940. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
  941. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
  942. </EntityType>
  943. <EntityType Name="FmsDrawingCodeType">
  944. <Key>
  945. <PropertyRef Name="SiteId" />
  946. <PropertyRef Name="DrawingTypeId" />
  947. </Key>
  948. <Property Name="SiteId" Type="Int32" Nullable="false" />
  949. <Property Name="DrawingTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  950. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  951. <Property Name="IsUse" Type="Boolean" />
  952. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawingCodeType" ToRole="FmsDrawing" />
  953. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
  954. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
  955. </EntityType>
  956. <EntityType Name="FmsDrawingHistory">
  957. <Key>
  958. <PropertyRef Name="SiteId" />
  959. <PropertyRef Name="DrawingId" />
  960. <PropertyRef Name="HistoryId" />
  961. </Key>
  962. <Property Name="SiteId" Type="Int32" Nullable="false" />
  963. <Property Name="DrawingId" Type="Int32" Nullable="false" />
  964. <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  965. <Property Name="RevisionNo" Type="Int32" />
  966. <Property Name="FileId" Type="Int32" />
  967. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  968. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  969. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  970. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="FmsDrawingHistory" ToRole="CmFile" />
  971. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="FmsDrawingHistory" ToRole="CmUser" />
  972. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawingHistory" ToRole="FmsDrawing" />
  973. </EntityType>
  974. <EntityType Name="FmsEquipmentCodeStateType">
  975. <Key>
  976. <PropertyRef Name="EquipmentStateTypeId" />
  977. </Key>
  978. <Property Name="EquipmentStateTypeId" Type="Int16" Nullable="false" />
  979. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  980. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  981. <NavigationProperty Name="FmsEquipmentHistory" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentHistory" />
  982. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentRentInfo" />
  983. </EntityType>
  984. <EntityType Name="FmsEquipmentCodeType">
  985. <Key>
  986. <PropertyRef Name="SiteId" />
  987. <PropertyRef Name="EquipmentTypeId" />
  988. </Key>
  989. <Property Name="SiteId" Type="Int32" Nullable="false" />
  990. <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  991. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  992. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  993. <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  994. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipmentCodeType" ToRole="FmsEquipment" />
  995. </EntityType>
  996. <EntityType Name="FmsEquipmentHistory">
  997. <Key>
  998. <PropertyRef Name="SiteId" />
  999. <PropertyRef Name="EquipmentHistoryId" />
  1000. <PropertyRef Name="EquipmentId" />
  1001. </Key>
  1002. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1003. <Property Name="EquipmentHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1004. <Property Name="EquipmentId" Type="Int32" Nullable="false" />
  1005. <Property Name="TotalStockCount" Type="Int32" />
  1006. <Property Name="CurrentStockCount" Type="Int32" />
  1007. <Property Name="RentCount" Type="Int32" />
  1008. <Property Name="CurrentRentCount" Type="Int32" />
  1009. <Property Name="ReturnCount" Type="Int32" />
  1010. <Property Name="LossCount" Type="Int32" />
  1011. <Property Name="StoredCount" Type="Int32" />
  1012. <Property Name="EquipmentRentId" Type="Int32" />
  1013. <Property Name="EquipmentStateTypeId" Type="Int16" />
  1014. <Property Name="AddDate" Type="DateTime" Precision="3" />
  1015. <Property Name="UpdateDate" Type="DateTime" Precision="3" />
  1016. <Property Name="IsReturned" Type="Boolean" />
  1017. <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentCodeStateType" />
  1018. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentRentInfo" />
  1019. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipmentHistory" ToRole="FmsEquipment" />
  1020. </EntityType>
  1021. <EntityType Name="FmsFacilityCheckItem">
  1022. <Key>
  1023. <PropertyRef Name="SiteId" />
  1024. <PropertyRef Name="FacilityCode" />
  1025. <PropertyRef Name="CheckItemId" />
  1026. </Key>
  1027. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1028. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1029. <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1030. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  1031. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  1032. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  1033. <Property Name="IsYesNoResult" Type="Boolean" Nullable="false" />
  1034. <Property Name="IsUse" Type="Boolean" />
  1035. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeCycleUnit" />
  1036. <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeType" />
  1037. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkResultCheckItem" />
  1038. </EntityType>
  1039. <EntityType Name="FmsFacilityCodeClass">
  1040. <Key>
  1041. <PropertyRef Name="SiteId" />
  1042. <PropertyRef Name="FacilityClassId" />
  1043. </Key>
  1044. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1045. <Property Name="FacilityClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1046. <Property Name="ParentFacilityClassId" Type="Int32" />
  1047. <Property Name="Depth" Type="Int32" Nullable="false" />
  1048. <Property Name="Name" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
  1049. <Property Name="Abbreviation" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  1050. <Property Name="IsUse" Type="Boolean" />
  1051. <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass" ToRole="FmsFacilityCodeClass1" />
  1052. <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass1" ToRole="FmsFacilityCodeClass" />
  1053. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="FmsFacilityCodeClass" ToRole="CmSite" />
  1054. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  1055. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  1056. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  1057. </EntityType>
  1058. <EntityType Name="FmsFacilityManual">
  1059. <Key>
  1060. <PropertyRef Name="SiteId" />
  1061. <PropertyRef Name="FacilityCode" />
  1062. <PropertyRef Name="ManualId" />
  1063. </Key>
  1064. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1065. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1066. <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1067. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1068. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1069. <Property Name="Description" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1070. <Property Name="Keyword" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1071. <Property Name="FileId" Type="Int32" />
  1072. <Property Name="IsUse" Type="Boolean" />
  1073. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="FmsFacilityManual" ToRole="CmBusinessField" />
  1074. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="FmsFacilityManual" ToRole="CmFacility" />
  1075. </EntityType>
  1076. <EntityType Name="FmsFacilityOperationItem">
  1077. <Key>
  1078. <PropertyRef Name="SiteId" />
  1079. <PropertyRef Name="ItemId" />
  1080. </Key>
  1081. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1082. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1083. <Property Name="ItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1084. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1085. <Property Name="ResultUnit" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
  1086. <Property Name="PointId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  1087. <Property Name="SystemId" Type="Int32" />
  1088. <Property Name="EnergyCode" Type="Boolean" />
  1089. <Property Name="IsUse" Type="Boolean" />
  1090. <Property Name="SortOrderNo" Type="Int32" />
  1091. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  1092. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1093. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  1094. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1095. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="FmsFacilityOperationItem" ToRole="CmFacility" />
  1096. </EntityType>
  1097. <EntityType Name="FmsLicense">
  1098. <Key>
  1099. <PropertyRef Name="SiteId" />
  1100. <PropertyRef Name="LicenseId" />
  1101. </Key>
  1102. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1103. <Property Name="LicenseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1104. <Property Name="Name" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
  1105. <Property Name="IssuingOffice" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
  1106. <Property Name="BusinessFieldId" Type="Int32" />
  1107. <Property Name="EducationalInstitute" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  1108. <Property Name="Note" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  1109. <Property Name="IsUse" Type="Boolean" />
  1110. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="FmsLicense" ToRole="CmBusinessField" />
  1111. <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="FmsLicense" ToRole="CmUserToLicense" />
  1112. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="FmsLicense" ToRole="CmSite" />
  1113. </EntityType>
  1114. <EntityType Name="FmsManual">
  1115. <Key>
  1116. <PropertyRef Name="SiteId" />
  1117. <PropertyRef Name="ManualId" />
  1118. </Key>
  1119. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1120. <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1121. <Property Name="ManualNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  1122. <Property Name="ManualTypeId" Type="Int32" Nullable="false" />
  1123. <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  1124. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  1125. <NavigationProperty Name="FmsManualType" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManual" ToRole="FmsManualType" />
  1126. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManual" ToRole="FmsManualHistory" />
  1127. </EntityType>
  1128. <EntityType Name="FmsManualHistory">
  1129. <Key>
  1130. <PropertyRef Name="SiteId" />
  1131. <PropertyRef Name="ManualId" />
  1132. <PropertyRef Name="HistoryId" />
  1133. </Key>
  1134. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1135. <Property Name="ManualId" Type="Int32" Nullable="false" />
  1136. <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1137. <Property Name="RevisionNo" Type="Int32" />
  1138. <Property Name="FileId" Type="Int32" />
  1139. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  1140. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  1141. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1142. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="FmsManualHistory" ToRole="CmFile" />
  1143. <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="FmsManualHistory" ToRole="CmUser" />
  1144. <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManualHistory" ToRole="FmsManual" />
  1145. </EntityType>
  1146. <EntityType Name="FmsManualType">
  1147. <Key>
  1148. <PropertyRef Name="SiteId" />
  1149. <PropertyRef Name="ManualTypeId" />
  1150. </Key>
  1151. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1152. <Property Name="ManualTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1153. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  1154. <Property Name="IsUse" Type="Boolean" />
  1155. <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManualType" ToRole="FmsManual" />
  1156. </EntityType>
  1157. <EntityType Name="FmsMaterialCarriedForward">
  1158. <Key>
  1159. <PropertyRef Name="SiteId" />
  1160. <PropertyRef Name="ClosedDate" />
  1161. <PropertyRef Name="BusinessFieldId" />
  1162. <PropertyRef Name="WarehouseId" />
  1163. <PropertyRef Name="MaterialId" />
  1164. </Key>
  1165. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1166. <Property Name="ClosedDate" Type="DateTime" Nullable="false" Precision="3" />
  1167. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1168. <Property Name="WarehouseId" Type="Int32" Nullable="false" />
  1169. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  1170. <Property Name="StockCount" Type="Int32" Nullable="false" />
  1171. <Property Name="StockTotalCost" Type="Int32" Nullable="false" />
  1172. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="FmsMaterialCarriedForward" ToRole="CmBusinessField" />
  1173. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="FmsMaterialCarriedForward" ToRole="CmSite" />
  1174. </EntityType>
  1175. <EntityType Name="FmsMaterialCodeAdjustmentType">
  1176. <Key>
  1177. <PropertyRef Name="AdjustmentTypeId" />
  1178. </Key>
  1179. <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
  1180. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1181. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1182. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialCodeAdjustmentType" ToRole="FmsMaterialRelease" />
  1183. </EntityType>
  1184. <EntityType Name="FmsMaterialCodeClass">
  1185. <Key>
  1186. <PropertyRef Name="SiteId" />
  1187. <PropertyRef Name="MaterialClassId" />
  1188. </Key>
  1189. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1190. <Property Name="MaterialClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1191. <Property Name="ParentMaterialClassId" Type="Int32" />
  1192. <Property Name="Depth" Type="Int32" Nullable="false" />
  1193. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  1194. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  1195. <Property Name="IsUse" Type="Boolean" />
  1196. <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterialCodeClass1" />
  1197. <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass1" ToRole="FmsMaterialCodeClass" />
  1198. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  1199. <NavigationProperty Name="FmsMaterial1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  1200. <NavigationProperty Name="FmsMaterial2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  1201. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="FmsMaterialCodeClass" ToRole="CmSite" />
  1202. </EntityType>
  1203. <EntityType Name="FmsMaterialCodeLocation">
  1204. <Key>
  1205. <PropertyRef Name="SiteId" />
  1206. <PropertyRef Name="LocationId" />
  1207. </Key>
  1208. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1209. <Property Name="LocationId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1210. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1211. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  1212. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  1213. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="FmsMaterialCodeLocation" ToRole="CmBusinessField" />
  1214. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterialCodeLocation" ToRole="FmsMaterial" />
  1215. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="FmsMaterialCodeLocation" ToRole="CmSite" />
  1216. </EntityType>
  1217. <EntityType Name="FmsMaterialCodeProgress">
  1218. <Key>
  1219. <PropertyRef Name="ProgressId" />
  1220. </Key>
  1221. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  1222. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1223. <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1224. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialCodeProgress" ToRole="FmsMaterialPurchaseRequest" />
  1225. </EntityType>
  1226. <EntityType Name="FmsMaterialCodePurchaseType">
  1227. <Key>
  1228. <PropertyRef Name="PurchaseTypeId" />
  1229. </Key>
  1230. <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1231. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1232. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1233. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialCodePurchaseType" ToRole="FmsMaterialPurchaseRequest" />
  1234. </EntityType>
  1235. <EntityType Name="FmsMaterialCodeReleaseType">
  1236. <Key>
  1237. <PropertyRef Name="ReleaseTypeId" />
  1238. </Key>
  1239. <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
  1240. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1241. <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  1242. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialCodeReleaseType" ToRole="FmsMaterialRelease" />
  1243. </EntityType>
  1244. <EntityType Name="FmsMaterialCodeType">
  1245. <Key>
  1246. <PropertyRef Name="SiteId" />
  1247. <PropertyRef Name="MaterialTypeId" />
  1248. </Key>
  1249. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1250. <Property Name="MaterialTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1251. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1252. <Property Name="Nickname" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1253. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  1254. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterialCodeType" ToRole="FmsMaterial" />
  1255. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="FmsMaterialCodeType" ToRole="CmSite" />
  1256. </EntityType>
  1257. <EntityType Name="FmsMaterialPurchaseOrder">
  1258. <Key>
  1259. <PropertyRef Name="SiteId" />
  1260. <PropertyRef Name="PurchaseOrderId" />
  1261. </Key>
  1262. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1263. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1264. <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1265. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
  1266. <Property Name="TradeCompanyId" Type="Int32" />
  1267. <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
  1268. <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1269. <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  1270. <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  1271. <Property Name="StoredDueDate" Type="DateTime" Precision="3" />
  1272. <Property Name="FileId" Type="Int32" />
  1273. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="FmsMaterialPurchaseOrder" ToRole="CmBusinessField" />
  1274. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="FmsMaterialPurchaseOrder" ToRole="CmFile" />
  1275. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="FmsMaterialPurchaseOrder" ToRole="CmUser" />
  1276. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialTradeCompany" />
  1277. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseRequest" />
  1278. <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseOrderMaterial" />
  1279. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialStored" />
  1280. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="FmsMaterialPurchaseOrder" ToRole="CmSite" />
  1281. </EntityType>
  1282. <EntityType Name="FmsMaterialPurchaseOrderMaterial">
  1283. <Key>
  1284. <PropertyRef Name="SiteId" />
  1285. <PropertyRef Name="PurchaseOrderId" />
  1286. <PropertyRef Name="MaterialId" />
  1287. </Key>
  1288. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1289. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1290. <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" />
  1291. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  1292. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  1293. <Property Name="UnitCost" Type="Int32" Nullable="false" />
  1294. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterialPurchaseOrder" />
  1295. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterial" />
  1296. </EntityType>
  1297. <EntityType Name="FmsMaterialPurchaseRequest">
  1298. <Key>
  1299. <PropertyRef Name="SiteId" />
  1300. <PropertyRef Name="PurchaseRequestId" />
  1301. </Key>
  1302. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1303. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1304. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1305. <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" />
  1306. <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
  1307. <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1308. <Property Name="PurchaseHopeDate" Type="DateTime" Precision="3" />
  1309. <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  1310. <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" Nullable="false" />
  1311. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  1312. <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
  1313. <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1314. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="FmsMaterialPurchaseRequest" ToRole="CmBusinessField" />
  1315. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
  1316. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
  1317. <NavigationProperty Name="FmsMaterialCodeProgress" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodeProgress" />
  1318. <NavigationProperty Name="FmsMaterialCodePurchaseType" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodePurchaseType" />
  1319. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseOrder" />
  1320. <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseRequestMaterial" />
  1321. <Property Name="bSameOrder" Type="Boolean" />
  1322. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="FmsMaterialPurchaseRequest" ToRole="CmSite" />
  1323. </EntityType>
  1324. <EntityType Name="FmsMaterialPurchaseRequestMaterial">
  1325. <Key>
  1326. <PropertyRef Name="SiteId" />
  1327. <PropertyRef Name="PurchaseRequestId" />
  1328. <PropertyRef Name="MaterialId" />
  1329. </Key>
  1330. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1331. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1332. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
  1333. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  1334. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  1335. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterialPurchaseRequest" />
  1336. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterial" />
  1337. </EntityType>
  1338. <EntityType Name="FmsMaterialStored">
  1339. <Key>
  1340. <PropertyRef Name="SiteId" />
  1341. <PropertyRef Name="MaterialStoredId" />
  1342. </Key>
  1343. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1344. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1345. <Property Name="StoredDate" Type="DateTime" Nullable="false" Precision="3" />
  1346. <Property Name="MaterialStoredId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1347. <Property Name="PurchaseOrderId" Type="Int32" />
  1348. <Property Name="WarehouseId" Type="Int32" Nullable="false" />
  1349. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  1350. <Property Name="StoredCount" Type="Int32" Nullable="false" />
  1351. <Property Name="RemainStoredCount" Type="Int32" Nullable="false" />
  1352. <Property Name="UnitCost" Type="Int32" Nullable="false" />
  1353. <Property Name="StockCount" Type="Int32" Nullable="false" />
  1354. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1355. <Property Name="StoredUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1356. <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
  1357. <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1358. <Property Name="IsApproval" Type="Boolean" Nullable="false" />
  1359. <Property Name="LocationInWarehouse" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1360. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="FmsMaterialStored" ToRole="CmBusinessField" />
  1361. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
  1362. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
  1363. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialStored" ToRole="FmsMaterialPurchaseOrder" />
  1364. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialStored" ToRole="FmsMaterialWarehouse" />
  1365. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterialStored" ToRole="FmsMaterial" />
  1366. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="FmsMaterialStored" ToRole="CmSite" />
  1367. </EntityType>
  1368. <EntityType Name="FmsMaterialTradeCompany">
  1369. <Key>
  1370. <PropertyRef Name="SiteId" />
  1371. <PropertyRef Name="TradeCompanyId" />
  1372. </Key>
  1373. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1374. <Property Name="TradeCompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1375. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  1376. <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1377. <Property Name="RepresentativeName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1378. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  1379. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  1380. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  1381. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  1382. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  1383. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  1384. <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1385. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1386. <Property Name="HomepageUri" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  1387. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1388. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  1389. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterialPurchaseOrder" />
  1390. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterial" />
  1391. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="FmsMaterialTradeCompany" ToRole="CmSite" />
  1392. </EntityType>
  1393. <EntityType Name="FmsMaterialWarehouse">
  1394. <Key>
  1395. <PropertyRef Name="SiteId" />
  1396. <PropertyRef Name="WarehouseId" />
  1397. </Key>
  1398. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1399. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1400. <Property Name="WarehouseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1401. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  1402. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  1403. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="FmsMaterialWarehouse" ToRole="CmBusinessField" />
  1404. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterialStored" />
  1405. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterial" />
  1406. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="FmsMaterialWarehouse" ToRole="CmSite" />
  1407. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsEquipment" />
  1408. </EntityType>
  1409. <EntityType Name="FmsPaymentType">
  1410. <Key>
  1411. <PropertyRef Name="SiteId" />
  1412. <PropertyRef Name="PaymentTypeId" />
  1413. </Key>
  1414. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1415. <Property Name="PaymentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1416. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  1417. <Property Name="IsUse" Type="Boolean" />
  1418. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsPaymentType" ToRole="FmsContract" />
  1419. </EntityType>
  1420. <EntityType Name="FmsWorkCodeCauseClass">
  1421. <Key>
  1422. <PropertyRef Name="SiteId" />
  1423. <PropertyRef Name="CauseClassId" />
  1424. </Key>
  1425. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1426. <Property Name="CauseClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1427. <Property Name="ParentId" Type="Int32" Nullable="false" />
  1428. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  1429. <Property Name="IsUse" Type="Boolean" />
  1430. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkCodeCauseClass" ToRole="FmsWorkResult" />
  1431. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="FmsWorkCodeCauseClass" ToRole="CmSite" />
  1432. </EntityType>
  1433. <EntityType Name="FmsWorkCodeCycleUnit">
  1434. <Key>
  1435. <PropertyRef Name="SiteId" />
  1436. <PropertyRef Name="CycleUnitId" />
  1437. </Key>
  1438. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1439. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  1440. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1441. <Property Name="Description" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  1442. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsFacilityCheckItem" />
  1443. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsWorkSchedule" />
  1444. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="FmsWorkCodeCycleUnit" ToRole="CmSite" />
  1445. </EntityType>
  1446. <EntityType Name="FmsWorkCodeEmergency">
  1447. <Key>
  1448. <PropertyRef Name="SiteId" />
  1449. <PropertyRef Name="EmergencyId" />
  1450. </Key>
  1451. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1452. <Property Name="EmergencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1453. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  1454. <Property Name="IsUse" Type="Boolean" />
  1455. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkCodeEmergency" ToRole="FmsWorkOrder" />
  1456. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="FmsWorkCodeEmergency" ToRole="CmSite" />
  1457. </EntityType>
  1458. <EntityType Name="FmsWorkCodeHolidayWorkType">
  1459. <Key>
  1460. <PropertyRef Name="SiteId" />
  1461. <PropertyRef Name="HolidayWorkTypeId" />
  1462. </Key>
  1463. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1464. <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
  1465. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  1466. <Property Name="IsUse" Type="Boolean" />
  1467. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkCodeHolidayWorkType" ToRole="FmsWorkSchedule" />
  1468. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="FmsWorkCodeHolidayWorkType" ToRole="CmSite" />
  1469. </EntityType>
  1470. <EntityType Name="FmsWorkCodeLegalInspectionAgency">
  1471. <Key>
  1472. <PropertyRef Name="SiteId" />
  1473. <PropertyRef Name="InspectionAgencyId" />
  1474. </Key>
  1475. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1476. <Property Name="InspectionAgencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1477. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1478. <Property Name="IsUse" Type="Boolean" />
  1479. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="FmsWorkCodeLegalInspectionAgency" ToRole="CmSite" />
  1480. </EntityType>
  1481. <EntityType Name="FmsWorkCodeProgress">
  1482. <Key>
  1483. <PropertyRef Name="WorkProgressId" />
  1484. </Key>
  1485. <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
  1486. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1487. <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  1488. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkCodeProgress" ToRole="FmsWorkRequest" />
  1489. </EntityType>
  1490. <EntityType Name="FmsWorkCodeType">
  1491. <Key>
  1492. <PropertyRef Name="WorkTypeId" />
  1493. </Key>
  1494. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  1495. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  1496. <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  1497. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsFacilityCheckItem" />
  1498. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkRequest" />
  1499. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkSchedule" />
  1500. </EntityType>
  1501. <EntityType Name="FmsWorkOrder">
  1502. <Key>
  1503. <PropertyRef Name="SiteId" />
  1504. <PropertyRef Name="WorkRequestId" />
  1505. </Key>
  1506. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1507. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1508. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1509. <Property Name="EmergencyId" Type="Int32" />
  1510. <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1511. <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
  1512. <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
  1513. <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  1514. <Property Name="Content" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  1515. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="FmsWorkOrder" ToRole="CmBusinessField" />
  1516. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="FmsWorkOrder" ToRole="CmUser" />
  1517. <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkOrder" ToRole="FmsWorkCodeEmergency" />
  1518. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkOrder" ToRole="FmsWorkRequest" />
  1519. <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkOrderToFacility" />
  1520. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkResult" />
  1521. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="FmsWorkOrder" ToRole="CmSite" />
  1522. </EntityType>
  1523. <EntityType Name="FmsWorkOrderToFacility">
  1524. <Key>
  1525. <PropertyRef Name="SiteId" />
  1526. <PropertyRef Name="WorkRequestId" />
  1527. <PropertyRef Name="FacilityCode" />
  1528. </Key>
  1529. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1530. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1531. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1532. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrderToFacility" ToRole="FmsWorkOrder" />
  1533. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="FmsWorkOrderToFacility" ToRole="CmFacility" />
  1534. </EntityType>
  1535. <EntityType Name="FmsWorkRequest">
  1536. <Key>
  1537. <PropertyRef Name="SiteId" />
  1538. <PropertyRef Name="WorkRequestId" />
  1539. </Key>
  1540. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1541. <Property Name="WorkRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1542. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  1543. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1544. <Property Name="WorkScheduleId" Type="Int32" />
  1545. <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
  1546. <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  1547. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1548. <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1549. <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
  1550. <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
  1551. <Property Name="RejectUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1552. <Property Name="RejectDate" Type="DateTime" Precision="3" />
  1553. <Property Name="RejectReason" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  1554. <Property Name="InspectionAgencyId" Type="Int32" />
  1555. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="FmsWorkRequest" ToRole="CmBusinessField" />
  1556. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
  1557. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
  1558. <NavigationProperty Name="FmsWorkCodeProgress" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeProgress" />
  1559. <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeType" />
  1560. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkOrder" />
  1561. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkRequest" ToRole="FmsWorkSchedule" />
  1562. <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkRequestToFacility" />
  1563. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkResult" />
  1564. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="FmsWorkRequest" ToRole="CmSite" />
  1565. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="FmsWorkRequest" ToRole="CmPartner" />
  1566. </EntityType>
  1567. <EntityType Name="FmsWorkRequestToFacility">
  1568. <Key>
  1569. <PropertyRef Name="SiteId" />
  1570. <PropertyRef Name="WorkRequestId" />
  1571. <PropertyRef Name="FacilityCode" />
  1572. </Key>
  1573. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1574. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1575. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1576. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequestToFacility" ToRole="FmsWorkRequest" />
  1577. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="FmsWorkRequestToFacility" ToRole="CmFacility" />
  1578. </EntityType>
  1579. <EntityType Name="FmsWorkResult">
  1580. <Key>
  1581. <PropertyRef Name="SiteId" />
  1582. <PropertyRef Name="WorkRequestId" />
  1583. </Key>
  1584. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1585. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1586. <Property Name="WorkerUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1587. <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
  1588. <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
  1589. <Property Name="CauseClassId" Type="Int32" />
  1590. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1591. <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
  1592. <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1593. <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
  1594. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
  1595. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
  1596. <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkResult" ToRole="FmsWorkCodeCauseClass" />
  1597. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkOrder" />
  1598. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkResult" ToRole="FmsWorkRequest" />
  1599. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItem" />
  1600. <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultFile" />
  1601. <NavigationProperty Name="FmsWorkResultLaw" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultLaw" />
  1602. <NavigationProperty Name="FmsWorkResultToFacility" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkResultToFacility" />
  1603. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsMaterialRelease" />
  1604. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItemMaterial" />
  1605. <Property Name="ConfirmDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1606. </EntityType>
  1607. <EntityType Name="FmsWorkResultCheckItem">
  1608. <Key>
  1609. <PropertyRef Name="CheckItemId" />
  1610. </Key>
  1611. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1612. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1613. <Property Name="FacilityCode" Type="Int32" />
  1614. <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1615. <Property Name="BoolResult" Type="Boolean" />
  1616. <Property Name="TextResult" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1617. <Property Name="CheckDate" Type="DateTime" Nullable="false" Precision="3" />
  1618. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsFacilityCheckItem" />
  1619. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResult" />
  1620. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResultCheckItemMaterial" />
  1621. <Property Name="FileId1" Type="Int32" />
  1622. <Property Name="FileId2" Type="Int32" />
  1623. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
  1624. <NavigationProperty Name="CmFile1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
  1625. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="FmsWorkResultCheckItem" ToRole="CmFacility" />
  1626. </EntityType>
  1627. <EntityType Name="FmsWorkResultCheckItemMaterial">
  1628. <Key>
  1629. <PropertyRef Name="CheckItemMaterialId" />
  1630. </Key>
  1631. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1632. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1633. <Property Name="CheckItemId" Type="Int32" Nullable="false" />
  1634. <Property Name="CheckItemMaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1635. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  1636. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  1637. <Property Name="MaterialCode" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  1638. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  1639. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResultCheckItem" />
  1640. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsMaterial" />
  1641. <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResult" />
  1642. </EntityType>
  1643. <EntityType Name="FmsWorkResultFile">
  1644. <Key>
  1645. <PropertyRef Name="SiteId" />
  1646. <PropertyRef Name="WorkRequestId" />
  1647. </Key>
  1648. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1649. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1650. <Property Name="FileId" Type="Int32" Nullable="false" />
  1651. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="FmsWorkResultFile" ToRole="CmFile" />
  1652. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResultFile" ToRole="FmsWorkResult" />
  1653. </EntityType>
  1654. <EntityType Name="FmsWorkResultLaw">
  1655. <Key>
  1656. <PropertyRef Name="SiteId" />
  1657. <PropertyRef Name="WorkRequestId" />
  1658. </Key>
  1659. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1660. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1661. <Property Name="CertificationNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  1662. <Property Name="CheckCommission" Type="Decimal" Precision="10" Scale="0" />
  1663. <Property Name="CheckResult" Type="Boolean" />
  1664. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResultLaw" ToRole="FmsWorkResult" />
  1665. </EntityType>
  1666. <EntityType Name="FmsWorkResultToFacility">
  1667. <Key>
  1668. <PropertyRef Name="SiteId" />
  1669. <PropertyRef Name="WorkRequestId" />
  1670. <PropertyRef Name="FacilityCode" />
  1671. </Key>
  1672. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1673. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1674. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1675. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResultToFacility" ToRole="FmsWorkResult" />
  1676. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="FmsWorkResultToFacility" ToRole="CmFacility" />
  1677. </EntityType>
  1678. <EntityType Name="FmsWorkScheduleToFacility">
  1679. <Key>
  1680. <PropertyRef Name="SiteId" />
  1681. <PropertyRef Name="WorkScheduleId" />
  1682. <PropertyRef Name="FacilityCode" />
  1683. </Key>
  1684. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1685. <Property Name="WorkScheduleId" Type="Int32" Nullable="false" />
  1686. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1687. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkScheduleToFacility" ToRole="FmsWorkSchedule" />
  1688. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="FmsWorkScheduleToFacility" ToRole="CmFacility" />
  1689. </EntityType>
  1690. <EntityType Name="sysdiagrams">
  1691. <Key>
  1692. <PropertyRef Name="diagram_id" />
  1693. </Key>
  1694. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  1695. <Property Name="principal_id" Type="Int32" Nullable="false" />
  1696. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1697. <Property Name="version" Type="Int32" />
  1698. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  1699. </EntityType>
  1700. <Association Name="FK__BemsMonitoringPo__1372D2FE">
  1701. <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
  1702. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  1703. <ReferentialConstraint>
  1704. <Principal Role="BemsAnalysisType">
  1705. <PropertyRef Name="SiteId" />
  1706. <PropertyRef Name="AnalysisType" />
  1707. </Principal>
  1708. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  1709. <PropertyRef Name="SiteId" />
  1710. <PropertyRef Name="AnalysisType" />
  1711. </Dependent>
  1712. </ReferentialConstraint>
  1713. </Association>
  1714. <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
  1715. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1716. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  1717. <ReferentialConstraint>
  1718. <Principal Role="BemsFacilityType">
  1719. <PropertyRef Name="FacilityTypeId" />
  1720. </Principal>
  1721. <Dependent Role="BemsControlPointHistory">
  1722. <PropertyRef Name="FacilityTypeId" />
  1723. </Dependent>
  1724. </ReferentialConstraint>
  1725. </Association>
  1726. <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
  1727. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  1728. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  1729. <ReferentialConstraint>
  1730. <Principal Role="BemsMonitoringPoint">
  1731. <PropertyRef Name="SiteId" />
  1732. <PropertyRef Name="FacilityCode" />
  1733. <PropertyRef Name="PropertyId" />
  1734. </Principal>
  1735. <Dependent Role="BemsControlPointHistory">
  1736. <PropertyRef Name="SiteId" />
  1737. <PropertyRef Name="FacilityCode" />
  1738. <PropertyRef Name="PropertyId" />
  1739. </Dependent>
  1740. </ReferentialConstraint>
  1741. </Association>
  1742. <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
  1743. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1744. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  1745. <ReferentialConstraint>
  1746. <Principal Role="BemsFacilityType">
  1747. <PropertyRef Name="FacilityTypeId" />
  1748. </Principal>
  1749. <Dependent Role="BemsMonitoringPointBaseData">
  1750. <PropertyRef Name="FacilityTypeId" />
  1751. </Dependent>
  1752. </ReferentialConstraint>
  1753. </Association>
  1754. <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  1755. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1756. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  1757. <ReferentialConstraint>
  1758. <Principal Role="BemsFacilityType">
  1759. <PropertyRef Name="FacilityTypeId" />
  1760. </Principal>
  1761. <Dependent Role="BemsMonitoringPointHistory15min">
  1762. <PropertyRef Name="FacilityTypeId" />
  1763. </Dependent>
  1764. </ReferentialConstraint>
  1765. </Association>
  1766. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  1767. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1768. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  1769. <ReferentialConstraint>
  1770. <Principal Role="BemsFacilityType">
  1771. <PropertyRef Name="FacilityTypeId" />
  1772. </Principal>
  1773. <Dependent Role="BemsMonitoringPointHistoryDaily">
  1774. <PropertyRef Name="FacilityTypeId" />
  1775. </Dependent>
  1776. </ReferentialConstraint>
  1777. </Association>
  1778. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  1779. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1780. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  1781. <ReferentialConstraint>
  1782. <Principal Role="BemsFacilityType">
  1783. <PropertyRef Name="FacilityTypeId" />
  1784. </Principal>
  1785. <Dependent Role="BemsMonitoringPointHistoryHourly">
  1786. <PropertyRef Name="FacilityTypeId" />
  1787. </Dependent>
  1788. </ReferentialConstraint>
  1789. </Association>
  1790. <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  1791. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1792. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  1793. <ReferentialConstraint>
  1794. <Principal Role="BemsFacilityType">
  1795. <PropertyRef Name="FacilityTypeId" />
  1796. </Principal>
  1797. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  1798. <PropertyRef Name="FacilityTypeId" />
  1799. </Dependent>
  1800. </ReferentialConstraint>
  1801. </Association>
  1802. <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
  1803. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1804. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  1805. <ReferentialConstraint>
  1806. <Principal Role="BemsFacilityType">
  1807. <PropertyRef Name="FacilityTypeId" />
  1808. </Principal>
  1809. <Dependent Role="BemsMonitoringPoint">
  1810. <PropertyRef Name="FacilityTypeId" />
  1811. </Dependent>
  1812. </ReferentialConstraint>
  1813. </Association>
  1814. <Association Name="FK__BemsFormula__BemsFormulaBase">
  1815. <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
  1816. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
  1817. <ReferentialConstraint>
  1818. <Principal Role="BemsFormulaBase">
  1819. <PropertyRef Name="FacilityTypeId" />
  1820. <PropertyRef Name="FormulaId" />
  1821. </Principal>
  1822. <Dependent Role="BemsFormula">
  1823. <PropertyRef Name="FacilityTypeId" />
  1824. <PropertyRef Name="FormulaId" />
  1825. </Dependent>
  1826. </ReferentialConstraint>
  1827. </Association>
  1828. <Association Name="FK__BemsFormulaParameter__BemsFormula">
  1829. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  1830. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  1831. <ReferentialConstraint>
  1832. <Principal Role="BemsFormula">
  1833. <PropertyRef Name="SiteId" />
  1834. <PropertyRef Name="FacilityTypeId" />
  1835. <PropertyRef Name="FacilityCode" />
  1836. <PropertyRef Name="FormulaId" />
  1837. </Principal>
  1838. <Dependent Role="BemsFormulaParameter">
  1839. <PropertyRef Name="SiteId" />
  1840. <PropertyRef Name="FacilityTypeId" />
  1841. <PropertyRef Name="FacilityCode" />
  1842. <PropertyRef Name="FormulaId" />
  1843. </Dependent>
  1844. </ReferentialConstraint>
  1845. </Association>
  1846. <Association Name="FK__BemsFormulaParameter__BemsMonitoringPoint">
  1847. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  1848. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  1849. <ReferentialConstraint>
  1850. <Principal Role="BemsMonitoringPoint">
  1851. <PropertyRef Name="SiteId" />
  1852. <PropertyRef Name="FacilityCode" />
  1853. <PropertyRef Name="PropertyId" />
  1854. </Principal>
  1855. <Dependent Role="BemsFormulaParameter">
  1856. <PropertyRef Name="SiteId" />
  1857. <PropertyRef Name="ParameterFacilityCode" />
  1858. <PropertyRef Name="ParameterPropertyId" />
  1859. </Dependent>
  1860. </ReferentialConstraint>
  1861. </Association>
  1862. <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
  1863. <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
  1864. <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
  1865. <ReferentialConstraint>
  1866. <Principal Role="BemsFormulaTable">
  1867. <PropertyRef Name="TableId" />
  1868. </Principal>
  1869. <Dependent Role="BemsFormulaTableValue">
  1870. <PropertyRef Name="TableId" />
  1871. </Dependent>
  1872. </ReferentialConstraint>
  1873. </Association>
  1874. <Association Name="FK__BemsMonitoringPo__155B1B70">
  1875. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  1876. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  1877. <ReferentialConstraint>
  1878. <Principal Role="BemsMonitoringPoint">
  1879. <PropertyRef Name="SiteId" />
  1880. <PropertyRef Name="FacilityCode" />
  1881. <PropertyRef Name="PropertyId" />
  1882. </Principal>
  1883. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  1884. <PropertyRef Name="SiteId" />
  1885. <PropertyRef Name="FacilityCode" />
  1886. <PropertyRef Name="PropertyId" />
  1887. </Dependent>
  1888. </ReferentialConstraint>
  1889. </Association>
  1890. <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
  1891. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  1892. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  1893. <ReferentialConstraint>
  1894. <Principal Role="BemsServiceType">
  1895. <PropertyRef Name="ServiceTypeId" />
  1896. </Principal>
  1897. <Dependent Role="BemsMonitoringPoint">
  1898. <PropertyRef Name="ServiceTypeId" />
  1899. </Dependent>
  1900. </ReferentialConstraint>
  1901. </Association>
  1902. <Association Name="FK__BemsMonitoringPoint__CmBuilding">
  1903. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
  1904. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  1905. <ReferentialConstraint>
  1906. <Principal Role="CmBuilding">
  1907. <PropertyRef Name="SiteId" />
  1908. <PropertyRef Name="BuildingId" />
  1909. </Principal>
  1910. <Dependent Role="BemsMonitoringPoint">
  1911. <PropertyRef Name="SiteId" />
  1912. <PropertyRef Name="BuildingId" />
  1913. </Dependent>
  1914. </ReferentialConstraint>
  1915. </Association>
  1916. <Association Name="FK__BemsMonitoringPoint__CmFloor">
  1917. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
  1918. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  1919. <ReferentialConstraint>
  1920. <Principal Role="CmFloor">
  1921. <PropertyRef Name="SiteId" />
  1922. <PropertyRef Name="BuildingId" />
  1923. <PropertyRef Name="FloorId" />
  1924. </Principal>
  1925. <Dependent Role="BemsMonitoringPoint">
  1926. <PropertyRef Name="SiteId" />
  1927. <PropertyRef Name="BuildingId" />
  1928. <PropertyRef Name="FloorId" />
  1929. </Dependent>
  1930. </ReferentialConstraint>
  1931. </Association>
  1932. <Association Name="FK__BemsMonitoringPoint__CmZone">
  1933. <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
  1934. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  1935. <ReferentialConstraint>
  1936. <Principal Role="CmZone">
  1937. <PropertyRef Name="SiteId" />
  1938. <PropertyRef Name="BuildingId" />
  1939. <PropertyRef Name="FloorId" />
  1940. <PropertyRef Name="ZoneId" />
  1941. </Principal>
  1942. <Dependent Role="BemsMonitoringPoint">
  1943. <PropertyRef Name="SiteId" />
  1944. <PropertyRef Name="BuildingId" />
  1945. <PropertyRef Name="FloorId" />
  1946. <PropertyRef Name="ZoneId" />
  1947. </Dependent>
  1948. </ReferentialConstraint>
  1949. </Association>
  1950. <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  1951. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  1952. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  1953. <ReferentialConstraint>
  1954. <Principal Role="BemsMonitoringPoint">
  1955. <PropertyRef Name="SiteId" />
  1956. <PropertyRef Name="FacilityCode" />
  1957. <PropertyRef Name="PropertyId" />
  1958. </Principal>
  1959. <Dependent Role="BemsMonitoringPointHistory15min">
  1960. <PropertyRef Name="SiteId" />
  1961. <PropertyRef Name="FacilityCode" />
  1962. <PropertyRef Name="PropertyId" />
  1963. </Dependent>
  1964. </ReferentialConstraint>
  1965. </Association>
  1966. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  1967. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  1968. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  1969. <ReferentialConstraint>
  1970. <Principal Role="BemsMonitoringPoint">
  1971. <PropertyRef Name="SiteId" />
  1972. <PropertyRef Name="FacilityCode" />
  1973. <PropertyRef Name="PropertyId" />
  1974. </Principal>
  1975. <Dependent Role="BemsMonitoringPointHistoryDaily">
  1976. <PropertyRef Name="SiteId" />
  1977. <PropertyRef Name="FacilityCode" />
  1978. <PropertyRef Name="PropertyId" />
  1979. </Dependent>
  1980. </ReferentialConstraint>
  1981. </Association>
  1982. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  1983. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  1984. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  1985. <ReferentialConstraint>
  1986. <Principal Role="BemsMonitoringPoint">
  1987. <PropertyRef Name="SiteId" />
  1988. <PropertyRef Name="FacilityCode" />
  1989. <PropertyRef Name="PropertyId" />
  1990. </Principal>
  1991. <Dependent Role="BemsMonitoringPointHistoryHourly">
  1992. <PropertyRef Name="SiteId" />
  1993. <PropertyRef Name="FacilityCode" />
  1994. <PropertyRef Name="PropertyId" />
  1995. </Dependent>
  1996. </ReferentialConstraint>
  1997. </Association>
  1998. <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
  1999. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  2000. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  2001. <ReferentialConstraint>
  2002. <Principal Role="BemsServiceType">
  2003. <PropertyRef Name="ServiceTypeId" />
  2004. </Principal>
  2005. <Dependent Role="BemsMonitoringPointBaseData">
  2006. <PropertyRef Name="ServiceTypeId" />
  2007. </Dependent>
  2008. </ReferentialConstraint>
  2009. </Association>
  2010. <Association Name="FK_CmAnnouncement_CmBusinessField">
  2011. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2012. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  2013. <ReferentialConstraint>
  2014. <Principal Role="CmBusinessField">
  2015. <PropertyRef Name="SiteId" />
  2016. <PropertyRef Name="BusinessFieldId" />
  2017. </Principal>
  2018. <Dependent Role="CmAnnouncement">
  2019. <PropertyRef Name="SiteId" />
  2020. <PropertyRef Name="BusinessFieldId" />
  2021. </Dependent>
  2022. </ReferentialConstraint>
  2023. </Association>
  2024. <Association Name="FK_CmAnnouncement_CmFile">
  2025. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2026. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  2027. <ReferentialConstraint>
  2028. <Principal Role="CmFile">
  2029. <PropertyRef Name="SiteId" />
  2030. <PropertyRef Name="FileId" />
  2031. </Principal>
  2032. <Dependent Role="CmAnnouncement">
  2033. <PropertyRef Name="SiteId" />
  2034. <PropertyRef Name="FileId" />
  2035. </Dependent>
  2036. </ReferentialConstraint>
  2037. </Association>
  2038. <Association Name="FK_CmAnnouncement_CmUser">
  2039. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2040. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  2041. <ReferentialConstraint>
  2042. <Principal Role="CmUser">
  2043. <PropertyRef Name="SiteId" />
  2044. <PropertyRef Name="UserId" />
  2045. </Principal>
  2046. <Dependent Role="CmAnnouncement">
  2047. <PropertyRef Name="SiteId" />
  2048. <PropertyRef Name="RegisterUserId" />
  2049. </Dependent>
  2050. </ReferentialConstraint>
  2051. </Association>
  2052. <Association Name="FK__CmFloor__3CF40B7E">
  2053. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  2054. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
  2055. <ReferentialConstraint>
  2056. <Principal Role="CmBuilding">
  2057. <PropertyRef Name="SiteId" />
  2058. <PropertyRef Name="BuildingId" />
  2059. </Principal>
  2060. <Dependent Role="CmFloor">
  2061. <PropertyRef Name="SiteId" />
  2062. <PropertyRef Name="BuildingId" />
  2063. </Dependent>
  2064. </ReferentialConstraint>
  2065. </Association>
  2066. <Association Name="FK__CmZone__CmBuilding">
  2067. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  2068. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  2069. <ReferentialConstraint>
  2070. <Principal Role="CmBuilding">
  2071. <PropertyRef Name="SiteId" />
  2072. <PropertyRef Name="BuildingId" />
  2073. </Principal>
  2074. <Dependent Role="CmZone">
  2075. <PropertyRef Name="SiteId" />
  2076. <PropertyRef Name="BuildingId" />
  2077. </Dependent>
  2078. </ReferentialConstraint>
  2079. </Association>
  2080. <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
  2081. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  2082. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  2083. <ReferentialConstraint>
  2084. <Principal Role="CmBuilding">
  2085. <PropertyRef Name="SiteId" />
  2086. <PropertyRef Name="BuildingId" />
  2087. </Principal>
  2088. <Dependent Role="CmZoneTempHumiSet">
  2089. <PropertyRef Name="SiteId" />
  2090. <PropertyRef Name="BuildingId" />
  2091. </Dependent>
  2092. </ReferentialConstraint>
  2093. </Association>
  2094. <Association Name="FK__CmFacilityManual__7BE56230">
  2095. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2096. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  2097. <ReferentialConstraint>
  2098. <Principal Role="CmBusinessField">
  2099. <PropertyRef Name="SiteId" />
  2100. <PropertyRef Name="BusinessFieldId" />
  2101. </Principal>
  2102. <Dependent Role="FmsFacilityManual">
  2103. <PropertyRef Name="SiteId" />
  2104. <PropertyRef Name="BusinessFieldId" />
  2105. </Dependent>
  2106. </ReferentialConstraint>
  2107. </Association>
  2108. <Association Name="FK__FmsLicense__CmBusinessField">
  2109. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  2110. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  2111. <ReferentialConstraint>
  2112. <Principal Role="CmBusinessField">
  2113. <PropertyRef Name="SiteId" />
  2114. <PropertyRef Name="BusinessFieldId" />
  2115. </Principal>
  2116. <Dependent Role="FmsLicense">
  2117. <PropertyRef Name="SiteId" />
  2118. <PropertyRef Name="BusinessFieldId" />
  2119. </Dependent>
  2120. </ReferentialConstraint>
  2121. </Association>
  2122. <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
  2123. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2124. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  2125. <ReferentialConstraint>
  2126. <Principal Role="CmBusinessField">
  2127. <PropertyRef Name="SiteId" />
  2128. <PropertyRef Name="BusinessFieldId" />
  2129. </Principal>
  2130. <Dependent Role="FmsMaterialCarriedForward">
  2131. <PropertyRef Name="SiteId" />
  2132. <PropertyRef Name="BusinessFieldId" />
  2133. </Dependent>
  2134. </ReferentialConstraint>
  2135. </Association>
  2136. <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
  2137. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2138. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  2139. <ReferentialConstraint>
  2140. <Principal Role="CmBusinessField">
  2141. <PropertyRef Name="SiteId" />
  2142. <PropertyRef Name="BusinessFieldId" />
  2143. </Principal>
  2144. <Dependent Role="FmsMaterialCodeLocation">
  2145. <PropertyRef Name="SiteId" />
  2146. <PropertyRef Name="BusinessFieldId" />
  2147. </Dependent>
  2148. </ReferentialConstraint>
  2149. </Association>
  2150. <Association Name="FK__FmsMaterialOrder__CmBusinessField">
  2151. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2152. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  2153. <ReferentialConstraint>
  2154. <Principal Role="CmBusinessField">
  2155. <PropertyRef Name="SiteId" />
  2156. <PropertyRef Name="BusinessFieldId" />
  2157. </Principal>
  2158. <Dependent Role="FmsMaterialPurchaseOrder">
  2159. <PropertyRef Name="SiteId" />
  2160. <PropertyRef Name="BusinessFieldId" />
  2161. </Dependent>
  2162. </ReferentialConstraint>
  2163. </Association>
  2164. <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
  2165. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2166. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  2167. <ReferentialConstraint>
  2168. <Principal Role="CmBusinessField">
  2169. <PropertyRef Name="SiteId" />
  2170. <PropertyRef Name="BusinessFieldId" />
  2171. </Principal>
  2172. <Dependent Role="FmsMaterialPurchaseRequest">
  2173. <PropertyRef Name="SiteId" />
  2174. <PropertyRef Name="BusinessFieldId" />
  2175. </Dependent>
  2176. </ReferentialConstraint>
  2177. </Association>
  2178. <Association Name="FK__FmsMaterialStored__CmBusinessField">
  2179. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2180. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  2181. <ReferentialConstraint>
  2182. <Principal Role="CmBusinessField">
  2183. <PropertyRef Name="SiteId" />
  2184. <PropertyRef Name="BusinessFieldId" />
  2185. </Principal>
  2186. <Dependent Role="FmsMaterialStored">
  2187. <PropertyRef Name="SiteId" />
  2188. <PropertyRef Name="BusinessFieldId" />
  2189. </Dependent>
  2190. </ReferentialConstraint>
  2191. </Association>
  2192. <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
  2193. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2194. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  2195. <ReferentialConstraint>
  2196. <Principal Role="CmBusinessField">
  2197. <PropertyRef Name="SiteId" />
  2198. <PropertyRef Name="BusinessFieldId" />
  2199. </Principal>
  2200. <Dependent Role="FmsMaterialWarehouse">
  2201. <PropertyRef Name="SiteId" />
  2202. <PropertyRef Name="BusinessFieldId" />
  2203. </Dependent>
  2204. </ReferentialConstraint>
  2205. </Association>
  2206. <Association Name="FK__FmsWorkOrder__CmBusinessField">
  2207. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2208. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  2209. <ReferentialConstraint>
  2210. <Principal Role="CmBusinessField">
  2211. <PropertyRef Name="SiteId" />
  2212. <PropertyRef Name="BusinessFieldId" />
  2213. </Principal>
  2214. <Dependent Role="FmsWorkOrder">
  2215. <PropertyRef Name="SiteId" />
  2216. <PropertyRef Name="BusinessFieldId" />
  2217. </Dependent>
  2218. </ReferentialConstraint>
  2219. </Association>
  2220. <Association Name="FK__FmsWorkRequest__CmBusinessField">
  2221. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2222. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  2223. <ReferentialConstraint>
  2224. <Principal Role="CmBusinessField">
  2225. <PropertyRef Name="SiteId" />
  2226. <PropertyRef Name="BusinessFieldId" />
  2227. </Principal>
  2228. <Dependent Role="FmsWorkRequest">
  2229. <PropertyRef Name="SiteId" />
  2230. <PropertyRef Name="BusinessFieldId" />
  2231. </Dependent>
  2232. </ReferentialConstraint>
  2233. </Association>
  2234. <Association Name="FK_CmUser_CmBusinessField">
  2235. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  2236. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  2237. <ReferentialConstraint>
  2238. <Principal Role="CmBusinessField">
  2239. <PropertyRef Name="SiteId" />
  2240. <PropertyRef Name="BusinessFieldId" />
  2241. </Principal>
  2242. <Dependent Role="CmUser">
  2243. <PropertyRef Name="SiteId" />
  2244. <PropertyRef Name="BusinessFieldId" />
  2245. </Dependent>
  2246. </ReferentialConstraint>
  2247. </Association>
  2248. <Association Name="FK__CmCompany__345EC57D">
  2249. <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
  2250. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  2251. <ReferentialConstraint>
  2252. <Principal Role="CmCompanyType">
  2253. <PropertyRef Name="SiteId" />
  2254. <PropertyRef Name="CompanyTypeId" />
  2255. </Principal>
  2256. <Dependent Role="CmCompany">
  2257. <PropertyRef Name="SiteId" />
  2258. <PropertyRef Name="CompanyTypeId" />
  2259. </Dependent>
  2260. </ReferentialConstraint>
  2261. </Association>
  2262. <Association Name="FK__CmDepartment__3552E9B6">
  2263. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
  2264. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
  2265. <ReferentialConstraint>
  2266. <Principal Role="CmCompany">
  2267. <PropertyRef Name="SiteId" />
  2268. <PropertyRef Name="CompanyId" />
  2269. </Principal>
  2270. <Dependent Role="CmDepartment">
  2271. <PropertyRef Name="SiteId" />
  2272. <PropertyRef Name="CompanyId" />
  2273. </Dependent>
  2274. </ReferentialConstraint>
  2275. </Association>
  2276. <Association Name="FK_CmUser_CmCompany">
  2277. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  2278. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  2279. <ReferentialConstraint>
  2280. <Principal Role="CmCompany">
  2281. <PropertyRef Name="SiteId" />
  2282. <PropertyRef Name="CompanyId" />
  2283. </Principal>
  2284. <Dependent Role="CmUser">
  2285. <PropertyRef Name="SiteId" />
  2286. <PropertyRef Name="CompanyId" />
  2287. </Dependent>
  2288. </ReferentialConstraint>
  2289. </Association>
  2290. <Association Name="FK_CmUser_CmDepartment">
  2291. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  2292. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  2293. <ReferentialConstraint>
  2294. <Principal Role="CmDepartment">
  2295. <PropertyRef Name="SiteId" />
  2296. <PropertyRef Name="CompanyId" />
  2297. <PropertyRef Name="DepartmentId" />
  2298. </Principal>
  2299. <Dependent Role="CmUser">
  2300. <PropertyRef Name="SiteId" />
  2301. <PropertyRef Name="CompanyId" />
  2302. <PropertyRef Name="DepartmentId" />
  2303. </Dependent>
  2304. </ReferentialConstraint>
  2305. </Association>
  2306. <Association Name="FK_FmsAccident_CmDepartment">
  2307. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  2308. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  2309. <ReferentialConstraint>
  2310. <Principal Role="CmDepartment">
  2311. <PropertyRef Name="SiteId" />
  2312. <PropertyRef Name="CompanyId" />
  2313. <PropertyRef Name="DepartmentId" />
  2314. </Principal>
  2315. <Dependent Role="FmsAccident">
  2316. <PropertyRef Name="SiteId" />
  2317. <PropertyRef Name="CompanyId" />
  2318. <PropertyRef Name="DepartmentId" />
  2319. </Dependent>
  2320. </ReferentialConstraint>
  2321. </Association>
  2322. <Association Name="FK__CmFacilityFile__CmFile">
  2323. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  2324. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
  2325. <ReferentialConstraint>
  2326. <Principal Role="CmFile">
  2327. <PropertyRef Name="SiteId" />
  2328. <PropertyRef Name="FileId" />
  2329. </Principal>
  2330. <Dependent Role="CmFacilityFile">
  2331. <PropertyRef Name="SiteId" />
  2332. <PropertyRef Name="FileId" />
  2333. </Dependent>
  2334. </ReferentialConstraint>
  2335. </Association>
  2336. <Association Name="FK__CmFile__CmFileCategory">
  2337. <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
  2338. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  2339. <ReferentialConstraint>
  2340. <Principal Role="CmFileCategory">
  2341. <PropertyRef Name="FileCategoryId" />
  2342. </Principal>
  2343. <Dependent Role="CmFile">
  2344. <PropertyRef Name="FileCategoryId" />
  2345. </Dependent>
  2346. </ReferentialConstraint>
  2347. </Association>
  2348. <Association Name="FK__FmsDrawingHistor__04DA9AE4">
  2349. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2350. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  2351. <ReferentialConstraint>
  2352. <Principal Role="CmFile">
  2353. <PropertyRef Name="SiteId" />
  2354. <PropertyRef Name="FileId" />
  2355. </Principal>
  2356. <Dependent Role="FmsDrawingHistory">
  2357. <PropertyRef Name="SiteId" />
  2358. <PropertyRef Name="FileId" />
  2359. </Dependent>
  2360. </ReferentialConstraint>
  2361. </Association>
  2362. <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
  2363. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2364. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  2365. <ReferentialConstraint>
  2366. <Principal Role="CmFile">
  2367. <PropertyRef Name="SiteId" />
  2368. <PropertyRef Name="FileId" />
  2369. </Principal>
  2370. <Dependent Role="FmsMaterialPurchaseOrder">
  2371. <PropertyRef Name="SiteId" />
  2372. <PropertyRef Name="FileId" />
  2373. </Dependent>
  2374. </ReferentialConstraint>
  2375. </Association>
  2376. <Association Name="FK__FmsWorkResultFile__CmFile">
  2377. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  2378. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
  2379. <ReferentialConstraint>
  2380. <Principal Role="CmFile">
  2381. <PropertyRef Name="SiteId" />
  2382. <PropertyRef Name="FileId" />
  2383. </Principal>
  2384. <Dependent Role="FmsWorkResultFile">
  2385. <PropertyRef Name="SiteId" />
  2386. <PropertyRef Name="FileId" />
  2387. </Dependent>
  2388. </ReferentialConstraint>
  2389. </Association>
  2390. <Association Name="FK_FmsAccident_CmFile1">
  2391. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2392. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  2393. <ReferentialConstraint>
  2394. <Principal Role="CmFile">
  2395. <PropertyRef Name="SiteId" />
  2396. <PropertyRef Name="FileId" />
  2397. </Principal>
  2398. <Dependent Role="FmsAccident">
  2399. <PropertyRef Name="SiteId" />
  2400. <PropertyRef Name="FileId1" />
  2401. </Dependent>
  2402. </ReferentialConstraint>
  2403. </Association>
  2404. <Association Name="FK_FmsAccident_CmFile2">
  2405. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2406. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  2407. <ReferentialConstraint>
  2408. <Principal Role="CmFile">
  2409. <PropertyRef Name="SiteId" />
  2410. <PropertyRef Name="FileId" />
  2411. </Principal>
  2412. <Dependent Role="FmsAccident">
  2413. <PropertyRef Name="SiteId" />
  2414. <PropertyRef Name="FileId2" />
  2415. </Dependent>
  2416. </ReferentialConstraint>
  2417. </Association>
  2418. <Association Name="FK_FmsAccident_CmFile3">
  2419. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2420. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  2421. <ReferentialConstraint>
  2422. <Principal Role="CmFile">
  2423. <PropertyRef Name="SiteId" />
  2424. <PropertyRef Name="FileId" />
  2425. </Principal>
  2426. <Dependent Role="FmsAccident">
  2427. <PropertyRef Name="SiteId" />
  2428. <PropertyRef Name="FileId3" />
  2429. </Dependent>
  2430. </ReferentialConstraint>
  2431. </Association>
  2432. <Association Name="FK_FmsConstruction_CmFile1">
  2433. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2434. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  2435. <ReferentialConstraint>
  2436. <Principal Role="CmFile">
  2437. <PropertyRef Name="SiteId" />
  2438. <PropertyRef Name="FileId" />
  2439. </Principal>
  2440. <Dependent Role="FmsConstruction">
  2441. <PropertyRef Name="SiteId" />
  2442. <PropertyRef Name="FileId1" />
  2443. </Dependent>
  2444. </ReferentialConstraint>
  2445. </Association>
  2446. <Association Name="FK_FmsConstruction_CmFile2">
  2447. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2448. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  2449. <ReferentialConstraint>
  2450. <Principal Role="CmFile">
  2451. <PropertyRef Name="SiteId" />
  2452. <PropertyRef Name="FileId" />
  2453. </Principal>
  2454. <Dependent Role="FmsConstruction">
  2455. <PropertyRef Name="SiteId" />
  2456. <PropertyRef Name="FileId2" />
  2457. </Dependent>
  2458. </ReferentialConstraint>
  2459. </Association>
  2460. <Association Name="FK_FmsConstruction_CmFile3">
  2461. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2462. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  2463. <ReferentialConstraint>
  2464. <Principal Role="CmFile">
  2465. <PropertyRef Name="SiteId" />
  2466. <PropertyRef Name="FileId" />
  2467. </Principal>
  2468. <Dependent Role="FmsConstruction">
  2469. <PropertyRef Name="SiteId" />
  2470. <PropertyRef Name="FileId3" />
  2471. </Dependent>
  2472. </ReferentialConstraint>
  2473. </Association>
  2474. <Association Name="FK_FmsManualHistory_CmFile">
  2475. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2476. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  2477. <ReferentialConstraint>
  2478. <Principal Role="CmFile">
  2479. <PropertyRef Name="SiteId" />
  2480. <PropertyRef Name="FileId" />
  2481. </Principal>
  2482. <Dependent Role="FmsManualHistory">
  2483. <PropertyRef Name="SiteId" />
  2484. <PropertyRef Name="FileId" />
  2485. </Dependent>
  2486. </ReferentialConstraint>
  2487. </Association>
  2488. <Association Name="FK__CmLocation__3DE82FB7">
  2489. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  2490. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  2491. <ReferentialConstraint>
  2492. <Principal Role="CmFloor">
  2493. <PropertyRef Name="SiteId" />
  2494. <PropertyRef Name="BuildingId" />
  2495. <PropertyRef Name="FloorId" />
  2496. </Principal>
  2497. <Dependent Role="CmZone">
  2498. <PropertyRef Name="SiteId" />
  2499. <PropertyRef Name="BuildingId" />
  2500. <PropertyRef Name="FloorId" />
  2501. </Dependent>
  2502. </ReferentialConstraint>
  2503. </Association>
  2504. <Association Name="FK_CmZoneTempHumiSet_CmFloor">
  2505. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  2506. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  2507. <ReferentialConstraint>
  2508. <Principal Role="CmFloor">
  2509. <PropertyRef Name="SiteId" />
  2510. <PropertyRef Name="BuildingId" />
  2511. <PropertyRef Name="FloorId" />
  2512. </Principal>
  2513. <Dependent Role="CmZoneTempHumiSet">
  2514. <PropertyRef Name="SiteId" />
  2515. <PropertyRef Name="BuildingId" />
  2516. <PropertyRef Name="FloorId" />
  2517. </Dependent>
  2518. </ReferentialConstraint>
  2519. </Association>
  2520. <Association Name="FK_CmUser_CmPosition">
  2521. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
  2522. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  2523. <ReferentialConstraint>
  2524. <Principal Role="CmPosition">
  2525. <PropertyRef Name="SiteId" />
  2526. <PropertyRef Name="PositionId" />
  2527. </Principal>
  2528. <Dependent Role="CmUser">
  2529. <PropertyRef Name="SiteId" />
  2530. <PropertyRef Name="PositionId" />
  2531. </Dependent>
  2532. </ReferentialConstraint>
  2533. </Association>
  2534. <Association Name="FK__CmUserToLicense__CmUser">
  2535. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2536. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  2537. <ReferentialConstraint>
  2538. <Principal Role="CmUser">
  2539. <PropertyRef Name="SiteId" />
  2540. <PropertyRef Name="UserId" />
  2541. </Principal>
  2542. <Dependent Role="CmUserToLicense">
  2543. <PropertyRef Name="SiteId" />
  2544. <PropertyRef Name="UserId" />
  2545. </Dependent>
  2546. </ReferentialConstraint>
  2547. </Association>
  2548. <Association Name="FK__FmsDrawingHistory__CmUser">
  2549. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2550. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  2551. <ReferentialConstraint>
  2552. <Principal Role="CmUser">
  2553. <PropertyRef Name="SiteId" />
  2554. <PropertyRef Name="UserId" />
  2555. </Principal>
  2556. <Dependent Role="FmsDrawingHistory">
  2557. <PropertyRef Name="SiteId" />
  2558. <PropertyRef Name="UpdatedUserId" />
  2559. </Dependent>
  2560. </ReferentialConstraint>
  2561. </Association>
  2562. <Association Name="FK__FmsMaterialOrder__CmUser">
  2563. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2564. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  2565. <ReferentialConstraint>
  2566. <Principal Role="CmUser">
  2567. <PropertyRef Name="SiteId" />
  2568. <PropertyRef Name="UserId" />
  2569. </Principal>
  2570. <Dependent Role="FmsMaterialPurchaseOrder">
  2571. <PropertyRef Name="SiteId" />
  2572. <PropertyRef Name="OrderUserId" />
  2573. </Dependent>
  2574. </ReferentialConstraint>
  2575. </Association>
  2576. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  2577. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2578. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  2579. <ReferentialConstraint>
  2580. <Principal Role="CmUser">
  2581. <PropertyRef Name="SiteId" />
  2582. <PropertyRef Name="UserId" />
  2583. </Principal>
  2584. <Dependent Role="FmsMaterialPurchaseRequest">
  2585. <PropertyRef Name="SiteId" />
  2586. <PropertyRef Name="RequestUserId" />
  2587. </Dependent>
  2588. </ReferentialConstraint>
  2589. </Association>
  2590. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  2591. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2592. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  2593. <ReferentialConstraint>
  2594. <Principal Role="CmUser">
  2595. <PropertyRef Name="SiteId" />
  2596. <PropertyRef Name="UserId" />
  2597. </Principal>
  2598. <Dependent Role="FmsMaterialPurchaseRequest">
  2599. <PropertyRef Name="SiteId" />
  2600. <PropertyRef Name="ApprovalUserId" />
  2601. </Dependent>
  2602. </ReferentialConstraint>
  2603. </Association>
  2604. <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
  2605. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2606. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  2607. <ReferentialConstraint>
  2608. <Principal Role="CmUser">
  2609. <PropertyRef Name="SiteId" />
  2610. <PropertyRef Name="UserId" />
  2611. </Principal>
  2612. <Dependent Role="FmsMaterialStored">
  2613. <PropertyRef Name="SiteId" />
  2614. <PropertyRef Name="StoredUserId" />
  2615. </Dependent>
  2616. </ReferentialConstraint>
  2617. </Association>
  2618. <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  2619. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2620. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  2621. <ReferentialConstraint>
  2622. <Principal Role="CmUser">
  2623. <PropertyRef Name="SiteId" />
  2624. <PropertyRef Name="UserId" />
  2625. </Principal>
  2626. <Dependent Role="FmsMaterialStored">
  2627. <PropertyRef Name="SiteId" />
  2628. <PropertyRef Name="ApprovalUserId" />
  2629. </Dependent>
  2630. </ReferentialConstraint>
  2631. </Association>
  2632. <Association Name="FK__FmsWorkOrder__CmUser">
  2633. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2634. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  2635. <ReferentialConstraint>
  2636. <Principal Role="CmUser">
  2637. <PropertyRef Name="SiteId" />
  2638. <PropertyRef Name="UserId" />
  2639. </Principal>
  2640. <Dependent Role="FmsWorkOrder">
  2641. <PropertyRef Name="SiteId" />
  2642. <PropertyRef Name="OrderUserId" />
  2643. </Dependent>
  2644. </ReferentialConstraint>
  2645. </Association>
  2646. <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
  2647. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2648. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  2649. <ReferentialConstraint>
  2650. <Principal Role="CmUser">
  2651. <PropertyRef Name="SiteId" />
  2652. <PropertyRef Name="UserId" />
  2653. </Principal>
  2654. <Dependent Role="FmsWorkRequest">
  2655. <PropertyRef Name="SiteId" />
  2656. <PropertyRef Name="RequestUserId" />
  2657. </Dependent>
  2658. </ReferentialConstraint>
  2659. </Association>
  2660. <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  2661. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2662. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  2663. <ReferentialConstraint>
  2664. <Principal Role="CmUser">
  2665. <PropertyRef Name="SiteId" />
  2666. <PropertyRef Name="UserId" />
  2667. </Principal>
  2668. <Dependent Role="FmsWorkRequest">
  2669. <PropertyRef Name="SiteId" />
  2670. <PropertyRef Name="RejectUserId" />
  2671. </Dependent>
  2672. </ReferentialConstraint>
  2673. </Association>
  2674. <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
  2675. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2676. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  2677. <ReferentialConstraint>
  2678. <Principal Role="CmUser">
  2679. <PropertyRef Name="SiteId" />
  2680. <PropertyRef Name="UserId" />
  2681. </Principal>
  2682. <Dependent Role="FmsWorkResult">
  2683. <PropertyRef Name="SiteId" />
  2684. <PropertyRef Name="WorkerUserId" />
  2685. </Dependent>
  2686. </ReferentialConstraint>
  2687. </Association>
  2688. <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  2689. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2690. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  2691. <ReferentialConstraint>
  2692. <Principal Role="CmUser">
  2693. <PropertyRef Name="SiteId" />
  2694. <PropertyRef Name="UserId" />
  2695. </Principal>
  2696. <Dependent Role="FmsWorkResult">
  2697. <PropertyRef Name="SiteId" />
  2698. <PropertyRef Name="ConfirmedUserId" />
  2699. </Dependent>
  2700. </ReferentialConstraint>
  2701. </Association>
  2702. <Association Name="FK_CmUser_CmUserGroup">
  2703. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
  2704. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  2705. <ReferentialConstraint>
  2706. <Principal Role="CmUserGroup">
  2707. <PropertyRef Name="SiteId" />
  2708. <PropertyRef Name="UserGroupId" />
  2709. </Principal>
  2710. <Dependent Role="CmUser">
  2711. <PropertyRef Name="SiteId" />
  2712. <PropertyRef Name="UserGroupId" />
  2713. </Dependent>
  2714. </ReferentialConstraint>
  2715. </Association>
  2716. <Association Name="FK_CmUserLoginHistory_CmUser">
  2717. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2718. <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
  2719. <ReferentialConstraint>
  2720. <Principal Role="CmUser">
  2721. <PropertyRef Name="SiteId" />
  2722. <PropertyRef Name="UserId" />
  2723. </Principal>
  2724. <Dependent Role="CmUserLoginHistory">
  2725. <PropertyRef Name="SiteId" />
  2726. <PropertyRef Name="UserId" />
  2727. </Dependent>
  2728. </ReferentialConstraint>
  2729. </Association>
  2730. <Association Name="FK_FmsConstructionEstimation_CmUser">
  2731. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2732. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
  2733. <ReferentialConstraint>
  2734. <Principal Role="CmUser">
  2735. <PropertyRef Name="SiteId" />
  2736. <PropertyRef Name="UserId" />
  2737. </Principal>
  2738. <Dependent Role="FmsConstructionEstimation">
  2739. <PropertyRef Name="SiteId" />
  2740. <PropertyRef Name="EstimateUserId" />
  2741. </Dependent>
  2742. </ReferentialConstraint>
  2743. </Association>
  2744. <Association Name="FK_FmsManualHistory_CmUser">
  2745. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2746. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  2747. <ReferentialConstraint>
  2748. <Principal Role="CmUser">
  2749. <PropertyRef Name="SiteId" />
  2750. <PropertyRef Name="UserId" />
  2751. </Principal>
  2752. <Dependent Role="FmsManualHistory">
  2753. <PropertyRef Name="SiteId" />
  2754. <PropertyRef Name="UpdatedUserId" />
  2755. </Dependent>
  2756. </ReferentialConstraint>
  2757. </Association>
  2758. <Association Name="FK__CmUserGroupPermission__CmUserGroup">
  2759. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
  2760. <OnDelete Action="Cascade" />
  2761. </End>
  2762. <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
  2763. <ReferentialConstraint>
  2764. <Principal Role="CmUserGroup">
  2765. <PropertyRef Name="SiteId" />
  2766. <PropertyRef Name="UserGroupId" />
  2767. </Principal>
  2768. <Dependent Role="CmUserGroupPermission">
  2769. <PropertyRef Name="SiteId" />
  2770. <PropertyRef Name="UserGroupId" />
  2771. </Dependent>
  2772. </ReferentialConstraint>
  2773. </Association>
  2774. <Association Name="FK__CmUserToLicense__FmsLicense">
  2775. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
  2776. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  2777. <ReferentialConstraint>
  2778. <Principal Role="FmsLicense">
  2779. <PropertyRef Name="SiteId" />
  2780. <PropertyRef Name="LicenseId" />
  2781. </Principal>
  2782. <Dependent Role="CmUserToLicense">
  2783. <PropertyRef Name="SiteId" />
  2784. <PropertyRef Name="LicenseId" />
  2785. </Dependent>
  2786. </ReferentialConstraint>
  2787. </Association>
  2788. <Association Name="FK_CmZoneTempHumiSet_CmZone">
  2789. <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
  2790. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
  2791. <ReferentialConstraint>
  2792. <Principal Role="CmZone">
  2793. <PropertyRef Name="SiteId" />
  2794. <PropertyRef Name="BuildingId" />
  2795. <PropertyRef Name="FloorId" />
  2796. <PropertyRef Name="ZoneId" />
  2797. </Principal>
  2798. <Dependent Role="CmZoneTempHumiSet">
  2799. <PropertyRef Name="SiteId" />
  2800. <PropertyRef Name="BuildingId" />
  2801. <PropertyRef Name="FloorId" />
  2802. <PropertyRef Name="ZoneId" />
  2803. </Dependent>
  2804. </ReferentialConstraint>
  2805. </Association>
  2806. <Association Name="FK_FmsAccident_FmsAccidentCodeType">
  2807. <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
  2808. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  2809. <ReferentialConstraint>
  2810. <Principal Role="FmsAccidentCodeType">
  2811. <PropertyRef Name="SiteId" />
  2812. <PropertyRef Name="AccidentTypeId" />
  2813. </Principal>
  2814. <Dependent Role="FmsAccident">
  2815. <PropertyRef Name="SiteId" />
  2816. <PropertyRef Name="AccidentTypeId" />
  2817. </Dependent>
  2818. </ReferentialConstraint>
  2819. </Association>
  2820. <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
  2821. <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
  2822. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  2823. <ReferentialConstraint>
  2824. <Principal Role="FmsConstructionCodeProgress">
  2825. <PropertyRef Name="ProgressId" />
  2826. </Principal>
  2827. <Dependent Role="FmsConstruction">
  2828. <PropertyRef Name="ProgressId" />
  2829. </Dependent>
  2830. </ReferentialConstraint>
  2831. </Association>
  2832. <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
  2833. <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
  2834. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  2835. <ReferentialConstraint>
  2836. <Principal Role="FmsConstructionCodeType">
  2837. <PropertyRef Name="SiteId" />
  2838. <PropertyRef Name="ConstructionTypeId" />
  2839. </Principal>
  2840. <Dependent Role="FmsConstruction">
  2841. <PropertyRef Name="SiteId" />
  2842. <PropertyRef Name="ConstructionTypeId" />
  2843. </Dependent>
  2844. </ReferentialConstraint>
  2845. </Association>
  2846. <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
  2847. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
  2848. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
  2849. <ReferentialConstraint>
  2850. <Principal Role="FmsConstruction">
  2851. <PropertyRef Name="SiteId" />
  2852. <PropertyRef Name="ConstructionId" />
  2853. </Principal>
  2854. <Dependent Role="FmsConstructionEstimation">
  2855. <PropertyRef Name="SiteId" />
  2856. <PropertyRef Name="ConstructionId" />
  2857. </Dependent>
  2858. </ReferentialConstraint>
  2859. </Association>
  2860. <Association Name="FK__FmsDrawing__6E565CE8">
  2861. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
  2862. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  2863. <ReferentialConstraint>
  2864. <Principal Role="FmsDrawingCodeGroup">
  2865. <PropertyRef Name="SiteId" />
  2866. <PropertyRef Name="DrawingGroupId" />
  2867. </Principal>
  2868. <Dependent Role="FmsDrawing">
  2869. <PropertyRef Name="SiteId" />
  2870. <PropertyRef Name="DrawingGroupId" />
  2871. </Dependent>
  2872. </ReferentialConstraint>
  2873. </Association>
  2874. <Association Name="FK__FmsDrawing__6F4A8121">
  2875. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
  2876. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  2877. <ReferentialConstraint>
  2878. <Principal Role="FmsDrawingCodeType">
  2879. <PropertyRef Name="SiteId" />
  2880. <PropertyRef Name="DrawingTypeId" />
  2881. </Principal>
  2882. <Dependent Role="FmsDrawing">
  2883. <PropertyRef Name="SiteId" />
  2884. <PropertyRef Name="DrawingTypeId" />
  2885. </Dependent>
  2886. </ReferentialConstraint>
  2887. </Association>
  2888. <Association Name="FK__FmsDrawingHistor__7132C993">
  2889. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1" />
  2890. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  2891. <ReferentialConstraint>
  2892. <Principal Role="FmsDrawing">
  2893. <PropertyRef Name="SiteId" />
  2894. <PropertyRef Name="DrawingId" />
  2895. </Principal>
  2896. <Dependent Role="FmsDrawingHistory">
  2897. <PropertyRef Name="SiteId" />
  2898. <PropertyRef Name="DrawingId" />
  2899. </Dependent>
  2900. </ReferentialConstraint>
  2901. </Association>
  2902. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  2903. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  2904. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  2905. <ReferentialConstraint>
  2906. <Principal Role="FmsEquipmentCodeStateType">
  2907. <PropertyRef Name="EquipmentStateTypeId" />
  2908. </Principal>
  2909. <Dependent Role="FmsEquipmentHistory">
  2910. <PropertyRef Name="EquipmentStateTypeId" />
  2911. </Dependent>
  2912. </ReferentialConstraint>
  2913. </Association>
  2914. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  2915. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  2916. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  2917. <ReferentialConstraint>
  2918. <Principal Role="FmsWorkCodeCycleUnit">
  2919. <PropertyRef Name="SiteId" />
  2920. <PropertyRef Name="CycleUnitId" />
  2921. </Principal>
  2922. <Dependent Role="FmsFacilityCheckItem">
  2923. <PropertyRef Name="SiteId" />
  2924. <PropertyRef Name="CycleUnitId" />
  2925. </Dependent>
  2926. </ReferentialConstraint>
  2927. </Association>
  2928. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  2929. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  2930. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  2931. <ReferentialConstraint>
  2932. <Principal Role="FmsWorkCodeType">
  2933. <PropertyRef Name="WorkTypeId" />
  2934. </Principal>
  2935. <Dependent Role="FmsFacilityCheckItem">
  2936. <PropertyRef Name="WorkTypeId" />
  2937. </Dependent>
  2938. </ReferentialConstraint>
  2939. </Association>
  2940. <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  2941. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
  2942. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  2943. <ReferentialConstraint>
  2944. <Principal Role="FmsFacilityCheckItem">
  2945. <PropertyRef Name="SiteId" />
  2946. <PropertyRef Name="FacilityCode" />
  2947. <PropertyRef Name="CheckItemId" />
  2948. </Principal>
  2949. <Dependent Role="FmsWorkResultCheckItem">
  2950. <PropertyRef Name="SiteId" />
  2951. <PropertyRef Name="FacilityCode" />
  2952. <PropertyRef Name="CheckItemId" />
  2953. </Dependent>
  2954. </ReferentialConstraint>
  2955. </Association>
  2956. <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  2957. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
  2958. <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  2959. <ReferentialConstraint>
  2960. <Principal Role="FmsFacilityCodeClass">
  2961. <PropertyRef Name="SiteId" />
  2962. <PropertyRef Name="FacilityClassId" />
  2963. </Principal>
  2964. <Dependent Role="FmsFacilityCodeClass1">
  2965. <PropertyRef Name="SiteId" />
  2966. <PropertyRef Name="ParentFacilityClassId" />
  2967. </Dependent>
  2968. </ReferentialConstraint>
  2969. </Association>
  2970. <Association Name="FK_FmsManual_FmsManualType">
  2971. <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
  2972. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
  2973. <ReferentialConstraint>
  2974. <Principal Role="FmsManualType">
  2975. <PropertyRef Name="SiteId" />
  2976. <PropertyRef Name="ManualTypeId" />
  2977. </Principal>
  2978. <Dependent Role="FmsManual">
  2979. <PropertyRef Name="SiteId" />
  2980. <PropertyRef Name="ManualTypeId" />
  2981. </Dependent>
  2982. </ReferentialConstraint>
  2983. </Association>
  2984. <Association Name="FK_FmsManualHistory_FmsManual">
  2985. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
  2986. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  2987. <ReferentialConstraint>
  2988. <Principal Role="FmsManual">
  2989. <PropertyRef Name="SiteId" />
  2990. <PropertyRef Name="ManualId" />
  2991. </Principal>
  2992. <Dependent Role="FmsManualHistory">
  2993. <PropertyRef Name="SiteId" />
  2994. <PropertyRef Name="ManualId" />
  2995. </Dependent>
  2996. </ReferentialConstraint>
  2997. </Association>
  2998. <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  2999. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3000. <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3001. <ReferentialConstraint>
  3002. <Principal Role="FmsMaterialCodeClass">
  3003. <PropertyRef Name="SiteId" />
  3004. <PropertyRef Name="MaterialClassId" />
  3005. </Principal>
  3006. <Dependent Role="FmsMaterialCodeClass1">
  3007. <PropertyRef Name="SiteId" />
  3008. <PropertyRef Name="ParentMaterialClassId" />
  3009. </Dependent>
  3010. </ReferentialConstraint>
  3011. </Association>
  3012. <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  3013. <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
  3014. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3015. <ReferentialConstraint>
  3016. <Principal Role="FmsMaterialCodeProgress">
  3017. <PropertyRef Name="ProgressId" />
  3018. </Principal>
  3019. <Dependent Role="FmsMaterialPurchaseRequest">
  3020. <PropertyRef Name="ProgressId" />
  3021. </Dependent>
  3022. </ReferentialConstraint>
  3023. </Association>
  3024. <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  3025. <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
  3026. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3027. <ReferentialConstraint>
  3028. <Principal Role="FmsMaterialCodePurchaseType">
  3029. <PropertyRef Name="PurchaseTypeId" />
  3030. </Principal>
  3031. <Dependent Role="FmsMaterialPurchaseRequest">
  3032. <PropertyRef Name="PurchaseTypeId" />
  3033. </Dependent>
  3034. </ReferentialConstraint>
  3035. </Association>
  3036. <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  3037. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  3038. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3039. <ReferentialConstraint>
  3040. <Principal Role="FmsMaterialTradeCompany">
  3041. <PropertyRef Name="SiteId" />
  3042. <PropertyRef Name="TradeCompanyId" />
  3043. </Principal>
  3044. <Dependent Role="FmsMaterialPurchaseOrder">
  3045. <PropertyRef Name="SiteId" />
  3046. <PropertyRef Name="TradeCompanyId" />
  3047. </Dependent>
  3048. </ReferentialConstraint>
  3049. </Association>
  3050. <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  3051. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
  3052. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3053. <ReferentialConstraint>
  3054. <Principal Role="FmsMaterialPurchaseRequest">
  3055. <PropertyRef Name="SiteId" />
  3056. <PropertyRef Name="PurchaseRequestId" />
  3057. </Principal>
  3058. <Dependent Role="FmsMaterialPurchaseOrder">
  3059. <PropertyRef Name="SiteId" />
  3060. <PropertyRef Name="PurchaseRequestId" />
  3061. </Dependent>
  3062. </ReferentialConstraint>
  3063. </Association>
  3064. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  3065. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
  3066. <OnDelete Action="Cascade" />
  3067. </End>
  3068. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  3069. <ReferentialConstraint>
  3070. <Principal Role="FmsMaterialPurchaseOrder">
  3071. <PropertyRef Name="SiteId" />
  3072. <PropertyRef Name="PurchaseOrderId" />
  3073. </Principal>
  3074. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  3075. <PropertyRef Name="SiteId" />
  3076. <PropertyRef Name="PurchaseOrderId" />
  3077. </Dependent>
  3078. </ReferentialConstraint>
  3079. </Association>
  3080. <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  3081. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
  3082. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  3083. <ReferentialConstraint>
  3084. <Principal Role="FmsMaterialPurchaseOrder">
  3085. <PropertyRef Name="SiteId" />
  3086. <PropertyRef Name="PurchaseOrderId" />
  3087. </Principal>
  3088. <Dependent Role="FmsMaterialStored">
  3089. <PropertyRef Name="SiteId" />
  3090. <PropertyRef Name="PurchaseOrderId" />
  3091. </Dependent>
  3092. </ReferentialConstraint>
  3093. </Association>
  3094. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  3095. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
  3096. <OnDelete Action="Cascade" />
  3097. </End>
  3098. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  3099. <ReferentialConstraint>
  3100. <Principal Role="FmsMaterialPurchaseRequest">
  3101. <PropertyRef Name="SiteId" />
  3102. <PropertyRef Name="PurchaseRequestId" />
  3103. </Principal>
  3104. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  3105. <PropertyRef Name="SiteId" />
  3106. <PropertyRef Name="PurchaseRequestId" />
  3107. </Dependent>
  3108. </ReferentialConstraint>
  3109. </Association>
  3110. <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
  3111. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
  3112. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  3113. <ReferentialConstraint>
  3114. <Principal Role="FmsMaterialWarehouse">
  3115. <PropertyRef Name="SiteId" />
  3116. <PropertyRef Name="WarehouseId" />
  3117. </Principal>
  3118. <Dependent Role="FmsMaterialStored">
  3119. <PropertyRef Name="SiteId" />
  3120. <PropertyRef Name="WarehouseId" />
  3121. </Dependent>
  3122. </ReferentialConstraint>
  3123. </Association>
  3124. <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
  3125. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
  3126. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  3127. <ReferentialConstraint>
  3128. <Principal Role="FmsWorkCodeCauseClass">
  3129. <PropertyRef Name="SiteId" />
  3130. <PropertyRef Name="CauseClassId" />
  3131. </Principal>
  3132. <Dependent Role="FmsWorkResult">
  3133. <PropertyRef Name="SiteId" />
  3134. <PropertyRef Name="CauseClassId" />
  3135. </Dependent>
  3136. </ReferentialConstraint>
  3137. </Association>
  3138. <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
  3139. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
  3140. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  3141. <ReferentialConstraint>
  3142. <Principal Role="FmsWorkCodeEmergency">
  3143. <PropertyRef Name="SiteId" />
  3144. <PropertyRef Name="EmergencyId" />
  3145. </Principal>
  3146. <Dependent Role="FmsWorkOrder">
  3147. <PropertyRef Name="SiteId" />
  3148. <PropertyRef Name="EmergencyId" />
  3149. </Dependent>
  3150. </ReferentialConstraint>
  3151. </Association>
  3152. <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
  3153. <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
  3154. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  3155. <ReferentialConstraint>
  3156. <Principal Role="FmsWorkCodeProgress">
  3157. <PropertyRef Name="WorkProgressId" />
  3158. </Principal>
  3159. <Dependent Role="FmsWorkRequest">
  3160. <PropertyRef Name="WorkProgressId" />
  3161. </Dependent>
  3162. </ReferentialConstraint>
  3163. </Association>
  3164. <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
  3165. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  3166. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  3167. <ReferentialConstraint>
  3168. <Principal Role="FmsWorkCodeType">
  3169. <PropertyRef Name="WorkTypeId" />
  3170. </Principal>
  3171. <Dependent Role="FmsWorkRequest">
  3172. <PropertyRef Name="WorkTypeId" />
  3173. </Dependent>
  3174. </ReferentialConstraint>
  3175. </Association>
  3176. <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
  3177. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  3178. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
  3179. <ReferentialConstraint>
  3180. <Principal Role="FmsWorkRequest">
  3181. <PropertyRef Name="SiteId" />
  3182. <PropertyRef Name="WorkRequestId" />
  3183. </Principal>
  3184. <Dependent Role="FmsWorkOrder">
  3185. <PropertyRef Name="SiteId" />
  3186. <PropertyRef Name="WorkRequestId" />
  3187. </Dependent>
  3188. </ReferentialConstraint>
  3189. </Association>
  3190. <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
  3191. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
  3192. <OnDelete Action="Cascade" />
  3193. </End>
  3194. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  3195. <ReferentialConstraint>
  3196. <Principal Role="FmsWorkOrder">
  3197. <PropertyRef Name="SiteId" />
  3198. <PropertyRef Name="WorkRequestId" />
  3199. </Principal>
  3200. <Dependent Role="FmsWorkOrderToFacility">
  3201. <PropertyRef Name="SiteId" />
  3202. <PropertyRef Name="WorkRequestId" />
  3203. </Dependent>
  3204. </ReferentialConstraint>
  3205. </Association>
  3206. <Association Name="FK__FmsWorkResult__FmsWorkOrder">
  3207. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
  3208. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  3209. <ReferentialConstraint>
  3210. <Principal Role="FmsWorkOrder">
  3211. <PropertyRef Name="SiteId" />
  3212. <PropertyRef Name="WorkRequestId" />
  3213. </Principal>
  3214. <Dependent Role="FmsWorkResult">
  3215. <PropertyRef Name="SiteId" />
  3216. <PropertyRef Name="WorkRequestId" />
  3217. </Dependent>
  3218. </ReferentialConstraint>
  3219. </Association>
  3220. <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
  3221. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
  3222. <OnDelete Action="Cascade" />
  3223. </End>
  3224. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  3225. <ReferentialConstraint>
  3226. <Principal Role="FmsWorkRequest">
  3227. <PropertyRef Name="SiteId" />
  3228. <PropertyRef Name="WorkRequestId" />
  3229. </Principal>
  3230. <Dependent Role="FmsWorkRequestToFacility">
  3231. <PropertyRef Name="SiteId" />
  3232. <PropertyRef Name="WorkRequestId" />
  3233. </Dependent>
  3234. </ReferentialConstraint>
  3235. </Association>
  3236. <Association Name="FK__FmsWorkResult__FmsWorkRequest">
  3237. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  3238. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  3239. <ReferentialConstraint>
  3240. <Principal Role="FmsWorkRequest">
  3241. <PropertyRef Name="SiteId" />
  3242. <PropertyRef Name="WorkRequestId" />
  3243. </Principal>
  3244. <Dependent Role="FmsWorkResult">
  3245. <PropertyRef Name="SiteId" />
  3246. <PropertyRef Name="WorkRequestId" />
  3247. </Dependent>
  3248. </ReferentialConstraint>
  3249. </Association>
  3250. <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
  3251. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  3252. <OnDelete Action="Cascade" />
  3253. </End>
  3254. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  3255. <ReferentialConstraint>
  3256. <Principal Role="FmsWorkResult">
  3257. <PropertyRef Name="SiteId" />
  3258. <PropertyRef Name="WorkRequestId" />
  3259. </Principal>
  3260. <Dependent Role="FmsWorkResultCheckItem">
  3261. <PropertyRef Name="SiteId" />
  3262. <PropertyRef Name="WorkRequestId" />
  3263. </Dependent>
  3264. </ReferentialConstraint>
  3265. </Association>
  3266. <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
  3267. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  3268. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
  3269. <ReferentialConstraint>
  3270. <Principal Role="FmsWorkResult">
  3271. <PropertyRef Name="SiteId" />
  3272. <PropertyRef Name="WorkRequestId" />
  3273. </Principal>
  3274. <Dependent Role="FmsWorkResultFile">
  3275. <PropertyRef Name="SiteId" />
  3276. <PropertyRef Name="WorkRequestId" />
  3277. </Dependent>
  3278. </ReferentialConstraint>
  3279. </Association>
  3280. <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
  3281. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  3282. <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
  3283. <ReferentialConstraint>
  3284. <Principal Role="FmsWorkResult">
  3285. <PropertyRef Name="SiteId" />
  3286. <PropertyRef Name="WorkRequestId" />
  3287. </Principal>
  3288. <Dependent Role="FmsWorkResultLaw">
  3289. <PropertyRef Name="SiteId" />
  3290. <PropertyRef Name="WorkRequestId" />
  3291. </Dependent>
  3292. </ReferentialConstraint>
  3293. </Association>
  3294. <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
  3295. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  3296. <OnDelete Action="Cascade" />
  3297. </End>
  3298. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  3299. <ReferentialConstraint>
  3300. <Principal Role="FmsWorkResult">
  3301. <PropertyRef Name="SiteId" />
  3302. <PropertyRef Name="WorkRequestId" />
  3303. </Principal>
  3304. <Dependent Role="FmsWorkResultToFacility">
  3305. <PropertyRef Name="SiteId" />
  3306. <PropertyRef Name="WorkRequestId" />
  3307. </Dependent>
  3308. </ReferentialConstraint>
  3309. </Association>
  3310. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  3311. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1">
  3312. <OnDelete Action="Cascade" />
  3313. </End>
  3314. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  3315. <ReferentialConstraint>
  3316. <Principal Role="FmsWorkResultCheckItem">
  3317. <PropertyRef Name="CheckItemId" />
  3318. </Principal>
  3319. <Dependent Role="FmsWorkResultCheckItemMaterial">
  3320. <PropertyRef Name="CheckItemId" />
  3321. </Dependent>
  3322. </ReferentialConstraint>
  3323. </Association>
  3324. <EntityContainer Name="iBemsEntities" annotation:LazyLoadingEnabled="true">
  3325. <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" />
  3326. <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" />
  3327. <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" />
  3328. <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" />
  3329. <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" />
  3330. <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" />
  3331. <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" />
  3332. <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" />
  3333. <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" />
  3334. <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" />
  3335. <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" />
  3336. <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" />
  3337. <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" />
  3338. <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" />
  3339. <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" />
  3340. <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" />
  3341. <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" />
  3342. <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" />
  3343. <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" />
  3344. <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" />
  3345. <EntitySet Name="CmCompany" EntityType="Self.CmCompany" />
  3346. <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" />
  3347. <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" />
  3348. <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" />
  3349. <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" />
  3350. <EntitySet Name="CmFile" EntityType="Self.CmFile" />
  3351. <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" />
  3352. <EntitySet Name="CmFloor" EntityType="Self.CmFloor" />
  3353. <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" />
  3354. <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" />
  3355. <EntitySet Name="CmPosition" EntityType="Self.CmPosition" />
  3356. <EntitySet Name="CmUser" EntityType="Self.CmUser" />
  3357. <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" />
  3358. <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" />
  3359. <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" />
  3360. <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" />
  3361. <EntitySet Name="CmZone" EntityType="Self.CmZone" />
  3362. <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" />
  3363. <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" />
  3364. <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" />
  3365. <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" />
  3366. <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" />
  3367. <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" />
  3368. <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" />
  3369. <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" />
  3370. <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" />
  3371. <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" />
  3372. <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" />
  3373. <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" />
  3374. <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" />
  3375. <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" />
  3376. <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" />
  3377. <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" />
  3378. <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" />
  3379. <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" />
  3380. <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" />
  3381. <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" />
  3382. <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" />
  3383. <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" />
  3384. <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" />
  3385. <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" />
  3386. <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" />
  3387. <EntitySet Name="FmsManual" EntityType="Self.FmsManual" />
  3388. <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" />
  3389. <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" />
  3390. <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" />
  3391. <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" />
  3392. <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" />
  3393. <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" />
  3394. <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" />
  3395. <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" />
  3396. <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" />
  3397. <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" />
  3398. <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" />
  3399. <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" />
  3400. <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" />
  3401. <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" />
  3402. <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" />
  3403. <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" />
  3404. <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" />
  3405. <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" />
  3406. <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" />
  3407. <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" />
  3408. <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" />
  3409. <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" />
  3410. <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" />
  3411. <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" />
  3412. <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" />
  3413. <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" />
  3414. <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" />
  3415. <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" />
  3416. <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" />
  3417. <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" />
  3418. <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" />
  3419. <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" />
  3420. <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" />
  3421. <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" />
  3422. <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" />
  3423. <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" />
  3424. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  3425. <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
  3426. <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
  3427. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  3428. </AssociationSet>
  3429. <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
  3430. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3431. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  3432. </AssociationSet>
  3433. <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
  3434. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3435. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  3436. </AssociationSet>
  3437. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
  3438. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3439. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  3440. </AssociationSet>
  3441. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  3442. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3443. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  3444. </AssociationSet>
  3445. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  3446. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3447. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  3448. </AssociationSet>
  3449. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  3450. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3451. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  3452. </AssociationSet>
  3453. <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  3454. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3455. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  3456. </AssociationSet>
  3457. <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
  3458. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3459. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3460. </AssociationSet>
  3461. <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
  3462. <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
  3463. <End Role="BemsFormula" EntitySet="BemsFormula" />
  3464. </AssociationSet>
  3465. <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
  3466. <End Role="BemsFormula" EntitySet="BemsFormula" />
  3467. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  3468. </AssociationSet>
  3469. <AssociationSet Name="FK__BemsFormulaParameter__BemsMonitoringPoint" Association="Self.FK__BemsFormulaParameter__BemsMonitoringPoint">
  3470. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3471. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  3472. </AssociationSet>
  3473. <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
  3474. <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
  3475. <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
  3476. </AssociationSet>
  3477. <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
  3478. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3479. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  3480. </AssociationSet>
  3481. <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
  3482. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  3483. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3484. </AssociationSet>
  3485. <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
  3486. <End Role="CmBuilding" EntitySet="CmBuilding" />
  3487. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3488. </AssociationSet>
  3489. <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
  3490. <End Role="CmFloor" EntitySet="CmFloor" />
  3491. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3492. </AssociationSet>
  3493. <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
  3494. <End Role="CmZone" EntitySet="CmZone" />
  3495. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3496. </AssociationSet>
  3497. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  3498. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3499. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  3500. </AssociationSet>
  3501. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  3502. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3503. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  3504. </AssociationSet>
  3505. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  3506. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3507. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  3508. </AssociationSet>
  3509. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
  3510. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  3511. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  3512. </AssociationSet>
  3513. <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
  3514. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3515. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  3516. </AssociationSet>
  3517. <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
  3518. <End Role="CmFile" EntitySet="CmFile" />
  3519. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  3520. </AssociationSet>
  3521. <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
  3522. <End Role="CmUser" EntitySet="CmUser" />
  3523. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  3524. </AssociationSet>
  3525. <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
  3526. <End Role="CmBuilding" EntitySet="CmBuilding" />
  3527. <End Role="CmFloor" EntitySet="CmFloor" />
  3528. </AssociationSet>
  3529. <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
  3530. <End Role="CmBuilding" EntitySet="CmBuilding" />
  3531. <End Role="CmZone" EntitySet="CmZone" />
  3532. </AssociationSet>
  3533. <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
  3534. <End Role="CmBuilding" EntitySet="CmBuilding" />
  3535. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  3536. </AssociationSet>
  3537. <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
  3538. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3539. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  3540. </AssociationSet>
  3541. <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
  3542. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3543. <End Role="FmsLicense" EntitySet="FmsLicense" />
  3544. </AssociationSet>
  3545. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
  3546. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3547. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  3548. </AssociationSet>
  3549. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
  3550. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3551. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  3552. </AssociationSet>
  3553. <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
  3554. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3555. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3556. </AssociationSet>
  3557. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
  3558. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3559. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3560. </AssociationSet>
  3561. <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
  3562. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3563. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  3564. </AssociationSet>
  3565. <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
  3566. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3567. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  3568. </AssociationSet>
  3569. <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
  3570. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3571. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  3572. </AssociationSet>
  3573. <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
  3574. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3575. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3576. </AssociationSet>
  3577. <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
  3578. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3579. <End Role="CmUser" EntitySet="CmUser" />
  3580. </AssociationSet>
  3581. <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
  3582. <End Role="CmCompanyType" EntitySet="CmCompanyType" />
  3583. <End Role="CmCompany" EntitySet="CmCompany" />
  3584. </AssociationSet>
  3585. <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
  3586. <End Role="CmCompany" EntitySet="CmCompany" />
  3587. <End Role="CmDepartment" EntitySet="CmDepartment" />
  3588. </AssociationSet>
  3589. <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
  3590. <End Role="CmCompany" EntitySet="CmCompany" />
  3591. <End Role="CmUser" EntitySet="CmUser" />
  3592. </AssociationSet>
  3593. <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
  3594. <End Role="CmDepartment" EntitySet="CmDepartment" />
  3595. <End Role="CmUser" EntitySet="CmUser" />
  3596. </AssociationSet>
  3597. <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
  3598. <End Role="CmDepartment" EntitySet="CmDepartment" />
  3599. <End Role="FmsAccident" EntitySet="FmsAccident" />
  3600. </AssociationSet>
  3601. <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
  3602. <End Role="CmFile" EntitySet="CmFile" />
  3603. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  3604. </AssociationSet>
  3605. <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
  3606. <End Role="CmFileCategory" EntitySet="CmFileCategory" />
  3607. <End Role="CmFile" EntitySet="CmFile" />
  3608. </AssociationSet>
  3609. <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
  3610. <End Role="CmFile" EntitySet="CmFile" />
  3611. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  3612. </AssociationSet>
  3613. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
  3614. <End Role="CmFile" EntitySet="CmFile" />
  3615. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3616. </AssociationSet>
  3617. <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
  3618. <End Role="CmFile" EntitySet="CmFile" />
  3619. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  3620. </AssociationSet>
  3621. <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
  3622. <End Role="CmFile" EntitySet="CmFile" />
  3623. <End Role="FmsAccident" EntitySet="FmsAccident" />
  3624. </AssociationSet>
  3625. <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
  3626. <End Role="CmFile" EntitySet="CmFile" />
  3627. <End Role="FmsAccident" EntitySet="FmsAccident" />
  3628. </AssociationSet>
  3629. <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
  3630. <End Role="CmFile" EntitySet="CmFile" />
  3631. <End Role="FmsAccident" EntitySet="FmsAccident" />
  3632. </AssociationSet>
  3633. <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
  3634. <End Role="CmFile" EntitySet="CmFile" />
  3635. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  3636. </AssociationSet>
  3637. <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
  3638. <End Role="CmFile" EntitySet="CmFile" />
  3639. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  3640. </AssociationSet>
  3641. <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
  3642. <End Role="CmFile" EntitySet="CmFile" />
  3643. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  3644. </AssociationSet>
  3645. <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
  3646. <End Role="CmFile" EntitySet="CmFile" />
  3647. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  3648. </AssociationSet>
  3649. <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
  3650. <End Role="CmFloor" EntitySet="CmFloor" />
  3651. <End Role="CmZone" EntitySet="CmZone" />
  3652. </AssociationSet>
  3653. <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
  3654. <End Role="CmFloor" EntitySet="CmFloor" />
  3655. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  3656. </AssociationSet>
  3657. <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
  3658. <End Role="CmPosition" EntitySet="CmPosition" />
  3659. <End Role="CmUser" EntitySet="CmUser" />
  3660. </AssociationSet>
  3661. <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
  3662. <End Role="CmUser" EntitySet="CmUser" />
  3663. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  3664. </AssociationSet>
  3665. <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
  3666. <End Role="CmUser" EntitySet="CmUser" />
  3667. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  3668. </AssociationSet>
  3669. <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
  3670. <End Role="CmUser" EntitySet="CmUser" />
  3671. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3672. </AssociationSet>
  3673. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  3674. <End Role="CmUser" EntitySet="CmUser" />
  3675. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3676. </AssociationSet>
  3677. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  3678. <End Role="CmUser" EntitySet="CmUser" />
  3679. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3680. </AssociationSet>
  3681. <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
  3682. <End Role="CmUser" EntitySet="CmUser" />
  3683. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  3684. </AssociationSet>
  3685. <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  3686. <End Role="CmUser" EntitySet="CmUser" />
  3687. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  3688. </AssociationSet>
  3689. <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
  3690. <End Role="CmUser" EntitySet="CmUser" />
  3691. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  3692. </AssociationSet>
  3693. <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
  3694. <End Role="CmUser" EntitySet="CmUser" />
  3695. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3696. </AssociationSet>
  3697. <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  3698. <End Role="CmUser" EntitySet="CmUser" />
  3699. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3700. </AssociationSet>
  3701. <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
  3702. <End Role="CmUser" EntitySet="CmUser" />
  3703. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3704. </AssociationSet>
  3705. <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  3706. <End Role="CmUser" EntitySet="CmUser" />
  3707. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3708. </AssociationSet>
  3709. <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
  3710. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  3711. <End Role="CmUser" EntitySet="CmUser" />
  3712. </AssociationSet>
  3713. <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
  3714. <End Role="CmUser" EntitySet="CmUser" />
  3715. <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
  3716. </AssociationSet>
  3717. <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
  3718. <End Role="CmUser" EntitySet="CmUser" />
  3719. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  3720. </AssociationSet>
  3721. <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
  3722. <End Role="CmUser" EntitySet="CmUser" />
  3723. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  3724. </AssociationSet>
  3725. <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
  3726. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  3727. <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
  3728. </AssociationSet>
  3729. <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
  3730. <End Role="FmsLicense" EntitySet="FmsLicense" />
  3731. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  3732. </AssociationSet>
  3733. <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
  3734. <End Role="CmZone" EntitySet="CmZone" />
  3735. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  3736. </AssociationSet>
  3737. <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
  3738. <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
  3739. <End Role="FmsAccident" EntitySet="FmsAccident" />
  3740. </AssociationSet>
  3741. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
  3742. <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
  3743. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  3744. </AssociationSet>
  3745. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
  3746. <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
  3747. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  3748. </AssociationSet>
  3749. <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
  3750. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  3751. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  3752. </AssociationSet>
  3753. <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
  3754. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  3755. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  3756. </AssociationSet>
  3757. <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
  3758. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  3759. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  3760. </AssociationSet>
  3761. <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
  3762. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  3763. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  3764. </AssociationSet>
  3765. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  3766. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  3767. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  3768. </AssociationSet>
  3769. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  3770. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  3771. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  3772. </AssociationSet>
  3773. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  3774. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  3775. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  3776. </AssociationSet>
  3777. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  3778. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  3779. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  3780. </AssociationSet>
  3781. <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  3782. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  3783. <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
  3784. </AssociationSet>
  3785. <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
  3786. <End Role="FmsManualType" EntitySet="FmsManualType" />
  3787. <End Role="FmsManual" EntitySet="FmsManual" />
  3788. </AssociationSet>
  3789. <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
  3790. <End Role="FmsManual" EntitySet="FmsManual" />
  3791. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  3792. </AssociationSet>
  3793. <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  3794. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  3795. <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
  3796. </AssociationSet>
  3797. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  3798. <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
  3799. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3800. </AssociationSet>
  3801. <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  3802. <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
  3803. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3804. </AssociationSet>
  3805. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  3806. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  3807. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3808. </AssociationSet>
  3809. <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  3810. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3811. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3812. </AssociationSet>
  3813. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  3814. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3815. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  3816. </AssociationSet>
  3817. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  3818. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3819. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  3820. </AssociationSet>
  3821. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  3822. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3823. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  3824. </AssociationSet>
  3825. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
  3826. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  3827. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  3828. </AssociationSet>
  3829. <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
  3830. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  3831. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3832. </AssociationSet>
  3833. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
  3834. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  3835. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  3836. </AssociationSet>
  3837. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
  3838. <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
  3839. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3840. </AssociationSet>
  3841. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
  3842. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  3843. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3844. </AssociationSet>
  3845. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
  3846. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3847. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  3848. </AssociationSet>
  3849. <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
  3850. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  3851. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  3852. </AssociationSet>
  3853. <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
  3854. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  3855. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3856. </AssociationSet>
  3857. <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
  3858. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3859. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  3860. </AssociationSet>
  3861. <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
  3862. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3863. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3864. </AssociationSet>
  3865. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
  3866. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3867. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  3868. </AssociationSet>
  3869. <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
  3870. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3871. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  3872. </AssociationSet>
  3873. <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
  3874. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3875. <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
  3876. </AssociationSet>
  3877. <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
  3878. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3879. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  3880. </AssociationSet>
  3881. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  3882. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  3883. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  3884. </AssociationSet>
  3885. <EntitySet Name="FmsDailyCheckReport" EntityType="iBemsModel.FmsDailyCheckReport" />
  3886. <EntitySet Name="FmsFacilityOperationReport" EntityType="iBemsModel.FmsFacilityOperationReport" />
  3887. <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="iBemsModel.FK_FmsDailyCheckReport_CmUser">
  3888. <End Role="CmUser" EntitySet="CmUser" />
  3889. <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
  3890. </AssociationSet>
  3891. <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="iBemsModel.FK_FmsFacilityOperationReport_CmUser">
  3892. <End Role="CmUser" EntitySet="CmUser" />
  3893. <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
  3894. </AssociationSet>
  3895. <EntitySet Name="FmsBudgetDetail" EntityType="iBemsModel.FmsBudgetDetail" />
  3896. <EntitySet Name="FmsBudgetDetailExecution" EntityType="iBemsModel.FmsBudgetDetailExecution" />
  3897. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudget">
  3898. <End Role="FmsBudget" EntitySet="FmsBudget" />
  3899. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  3900. </AssociationSet>
  3901. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass">
  3902. <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
  3903. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  3904. </AssociationSet>
  3905. <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  3906. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  3907. <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
  3908. </AssociationSet>
  3909. <EntitySet Name="FmsMonthlyReport" EntityType="iBemsModel.FmsMonthlyReport" />
  3910. <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="iBemsModel.FK_FmsMonthlyReport_CmUser">
  3911. <End Role="CmUser" EntitySet="CmUser" />
  3912. <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
  3913. </AssociationSet>
  3914. <EntitySet Name="FmsInvestmentCost" EntityType="iBemsModel.FmsInvestmentCost" />
  3915. <EntitySet Name="CmHolidayWeekend" EntityType="iBemsModel.CmHolidayWeekend" />
  3916. <AssociationSet Name="FK_FmsAccident_CmCompany" Association="iBemsModel.FK_FmsAccident_CmCompany">
  3917. <End Role="CmCompany" EntitySet="CmCompany" />
  3918. <End Role="FmsAccident" EntitySet="FmsAccident" />
  3919. </AssociationSet>
  3920. <EntitySet Name="FmsMaterial" EntityType="iBemsModel.FmsMaterial" />
  3921. <EntitySet Name="FmsMaterialRelease" EntityType="iBemsModel.FmsMaterialRelease" />
  3922. <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="iBemsModel.FK_FmsMaterial_CmBusinessField">
  3923. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3924. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3925. </AssociationSet>
  3926. <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="iBemsModel.FK_FmsMaterialRelease_CmBusinessField">
  3927. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3928. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  3929. </AssociationSet>
  3930. <AssociationSet Name="FK_FmsMaterial_CmFile" Association="iBemsModel.FK_FmsMaterial_CmFile">
  3931. <End Role="CmFile" EntitySet="CmFile" />
  3932. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3933. </AssociationSet>
  3934. <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="iBemsModel.FK_FmsMaterialRelease_CmUser">
  3935. <End Role="CmUser" EntitySet="CmUser" />
  3936. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  3937. </AssociationSet>
  3938. <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="iBemsModel.FK_FmsMaterialRelease_CmUser1">
  3939. <End Role="CmUser" EntitySet="CmUser" />
  3940. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  3941. </AssociationSet>
  3942. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  3943. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  3944. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3945. </AssociationSet>
  3946. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  3947. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  3948. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3949. </AssociationSet>
  3950. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  3951. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  3952. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3953. </AssociationSet>
  3954. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation">
  3955. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  3956. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3957. </AssociationSet>
  3958. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType">
  3959. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  3960. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3961. </AssociationSet>
  3962. <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany">
  3963. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  3964. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3965. </AssociationSet>
  3966. <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse">
  3967. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  3968. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3969. </AssociationSet>
  3970. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  3971. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3972. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  3973. </AssociationSet>
  3974. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  3975. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3976. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  3977. </AssociationSet>
  3978. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterial">
  3979. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3980. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  3981. </AssociationSet>
  3982. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="iBemsModel.FK_FmsMaterialStored_FmsMaterial">
  3983. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3984. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  3985. </AssociationSet>
  3986. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  3987. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3988. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  3989. </AssociationSet>
  3990. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  3991. <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
  3992. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  3993. </AssociationSet>
  3994. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  3995. <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
  3996. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  3997. </AssociationSet>
  3998. <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult">
  3999. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  4000. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  4001. </AssociationSet>
  4002. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  4003. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  4004. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  4005. </AssociationSet>
  4006. <EntitySet Name="CmPatrolType" EntityType="iBemsModel.CmPatrolType" />
  4007. <EntitySet Name="CmPatrolGroup" EntityType="iBemsModel.CmPatrolGroup" />
  4008. <EntitySet Name="CmPatrolGroupUser" EntityType="iBemsModel.CmPatrolGroupUser" />
  4009. <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup">
  4010. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  4011. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  4012. </AssociationSet>
  4013. <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="iBemsModel.FK_CmPatrolGroupUser_CmUser">
  4014. <End Role="CmUser" EntitySet="CmUser" />
  4015. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  4016. </AssociationSet>
  4017. <EntitySet Name="CmPatrolPos" EntityType="iBemsModel.CmPatrolPos" />
  4018. <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="iBemsModel.FK_CmPatrolPos_CmBuilding">
  4019. <End Role="CmBuilding" EntitySet="CmBuilding" />
  4020. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  4021. </AssociationSet>
  4022. <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="iBemsModel.FK_CmPatrolPos_CmFloor">
  4023. <End Role="CmFloor" EntitySet="CmFloor" />
  4024. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  4025. </AssociationSet>
  4026. <EntitySet Name="CmPatrolCourse" EntityType="iBemsModel.CmPatrolCourse" />
  4027. <EntitySet Name="CmPatrolCoursePos" EntityType="iBemsModel.CmPatrolCoursePos" />
  4028. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse">
  4029. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  4030. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  4031. </AssociationSet>
  4032. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos">
  4033. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  4034. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  4035. </AssociationSet>
  4036. <EntitySet Name="CmPatrolPlan" EntityType="iBemsModel.CmPatrolPlan" />
  4037. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse">
  4038. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  4039. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  4040. </AssociationSet>
  4041. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup">
  4042. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  4043. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  4044. </AssociationSet>
  4045. <EntitySet Name="CmPatrolHistoryPos" EntityType="iBemsModel.CmPatrolHistoryPos" />
  4046. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos">
  4047. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  4048. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  4049. </AssociationSet>
  4050. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType">
  4051. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  4052. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  4053. </AssociationSet>
  4054. <EntitySet Name="BemsPeakInfo" EntityType="iBemsModel.BemsPeakInfo" />
  4055. <EntitySet Name="BemsPeakHistory" EntityType="iBemsModel.BemsPeakHistory" />
  4056. <EntitySet Name="CmPatrolSchedule" EntityType="iBemsModel.CmPatrolSchedule" />
  4057. <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan">
  4058. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  4059. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  4060. </AssociationSet>
  4061. <EntitySet Name="BemsNoticePriceBase" EntityType="iBemsModel.BemsNoticePriceBase" />
  4062. <EntitySet Name="BemsNoticePriceContractType" EntityType="iBemsModel.BemsNoticePriceContractType" />
  4063. <EntitySet Name="BemsNoticePriceDetail" EntityType="iBemsModel.BemsNoticePriceDetail" />
  4064. <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  4065. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  4066. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  4067. </AssociationSet>
  4068. <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  4069. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  4070. <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
  4071. </AssociationSet>
  4072. <EntitySet Name="BemsPeakFacility" EntityType="iBemsModel.BemsPeakFacility" />
  4073. <EntitySet Name="CmSite" EntityType="iBemsModel.CmSite" />
  4074. <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="iBemsModel.FK_BemsPeakHIstory_CmSite">
  4075. <End Role="CmSite" EntitySet="CmSite" />
  4076. <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
  4077. </AssociationSet>
  4078. <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="iBemsModel.FK_BemsPeakInfo_CmSite">
  4079. <End Role="CmSite" EntitySet="CmSite" />
  4080. <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
  4081. </AssociationSet>
  4082. <AssociationSet Name="FK__CmBuildin__SiteI__3BFFE745" Association="iBemsModel.FK__CmBuildin__SiteI__3BFFE745">
  4083. <End Role="CmSite" EntitySet="CmSite" />
  4084. <End Role="CmBuilding" EntitySet="CmBuilding" />
  4085. </AssociationSet>
  4086. <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="iBemsModel.FK__CmCompany__SiteI__336AA144">
  4087. <End Role="CmSite" EntitySet="CmSite" />
  4088. <End Role="CmCompany" EntitySet="CmCompany" />
  4089. </AssociationSet>
  4090. <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="iBemsModel.FK_CmFacilityTempSet_CmSite">
  4091. <End Role="CmSite" EntitySet="CmSite" />
  4092. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  4093. </AssociationSet>
  4094. <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="iBemsModel.FK__CmFile__SiteId__2759D01A">
  4095. <End Role="CmSite" EntitySet="CmSite" />
  4096. <End Role="CmFile" EntitySet="CmFile" />
  4097. </AssociationSet>
  4098. <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5">
  4099. <End Role="CmSite" EntitySet="CmSite" />
  4100. <End Role="CmHoliday" EntitySet="CmHoliday" />
  4101. </AssociationSet>
  4102. <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="iBemsModel.FK__CmHoliday__SiteI__65AC084E">
  4103. <End Role="CmSite" EntitySet="CmSite" />
  4104. <End Role="CmHoliday" EntitySet="CmHoliday" />
  4105. </AssociationSet>
  4106. <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="iBemsModel.FK__CmHoliday__SiteI__10766AC2">
  4107. <End Role="CmSite" EntitySet="CmSite" />
  4108. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  4109. </AssociationSet>
  4110. <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="iBemsModel.FK__CmHoliday__SiteI__66A02C87">
  4111. <End Role="CmSite" EntitySet="CmSite" />
  4112. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  4113. </AssociationSet>
  4114. <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="iBemsModel.FK__CmHoliday__SiteI__0D99FE17">
  4115. <End Role="CmSite" EntitySet="CmSite" />
  4116. <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
  4117. </AssociationSet>
  4118. <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="iBemsModel.FK_CmPatrolCourse_CmSite">
  4119. <End Role="CmSite" EntitySet="CmSite" />
  4120. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  4121. </AssociationSet>
  4122. <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="iBemsModel.FK_CmPatrolCoursePos_CmSite">
  4123. <End Role="CmSite" EntitySet="CmSite" />
  4124. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  4125. </AssociationSet>
  4126. <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="iBemsModel.FK_CmPatrolGroup_CmSite">
  4127. <End Role="CmSite" EntitySet="CmSite" />
  4128. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  4129. </AssociationSet>
  4130. <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="iBemsModel.FK_CmPatrolHistoryPos_CmSite">
  4131. <End Role="CmSite" EntitySet="CmSite" />
  4132. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  4133. </AssociationSet>
  4134. <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="iBemsModel.FK_CmPatrolPlan_CmSite">
  4135. <End Role="CmSite" EntitySet="CmSite" />
  4136. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  4137. </AssociationSet>
  4138. <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="iBemsModel.FK_CmPatrolPos_CmSite">
  4139. <End Role="CmSite" EntitySet="CmSite" />
  4140. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  4141. </AssociationSet>
  4142. <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="iBemsModel.FK_CmPatrolSchedule_CmSite">
  4143. <End Role="CmSite" EntitySet="CmSite" />
  4144. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  4145. </AssociationSet>
  4146. <AssociationSet Name="FK_CmPatrolType_CmSite" Association="iBemsModel.FK_CmPatrolType_CmSite">
  4147. <End Role="CmSite" EntitySet="CmSite" />
  4148. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  4149. </AssociationSet>
  4150. <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="iBemsModel.FK__CmPositio__SiteI__6A70BD6B">
  4151. <End Role="CmSite" EntitySet="CmSite" />
  4152. <End Role="CmPosition" EntitySet="CmPosition" />
  4153. </AssociationSet>
  4154. <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="iBemsModel.FK__CmUserPos__SiteI__44952D46">
  4155. <End Role="CmSite" EntitySet="CmSite" />
  4156. <End Role="CmPosition" EntitySet="CmPosition" />
  4157. </AssociationSet>
  4158. <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="iBemsModel.FK__CmUserGro__SiteI__53D770D6">
  4159. <End Role="CmSite" EntitySet="CmSite" />
  4160. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  4161. </AssociationSet>
  4162. <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D">
  4163. <End Role="CmSite" EntitySet="CmSite" />
  4164. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  4165. </AssociationSet>
  4166. <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476">
  4167. <End Role="CmSite" EntitySet="CmSite" />
  4168. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  4169. </AssociationSet>
  4170. <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF">
  4171. <End Role="CmSite" EntitySet="CmSite" />
  4172. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  4173. </AssociationSet>
  4174. <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="iBemsModel.FK__FmsDrawin__SiteI__6F357288">
  4175. <End Role="CmSite" EntitySet="CmSite" />
  4176. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  4177. </AssociationSet>
  4178. <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="iBemsModel.FK__FmsDrawin__SiteI__702996C1">
  4179. <End Role="CmSite" EntitySet="CmSite" />
  4180. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  4181. </AssociationSet>
  4182. <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="iBemsModel.FK__FmsFacilityCodeClass__CmSite">
  4183. <End Role="CmSite" EntitySet="CmSite" />
  4184. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  4185. </AssociationSet>
  4186. <AssociationSet Name="FK__FmsLicense__CmSite" Association="iBemsModel.FK__FmsLicense__CmSite">
  4187. <End Role="CmSite" EntitySet="CmSite" />
  4188. <End Role="FmsLicense" EntitySet="FmsLicense" />
  4189. </AssociationSet>
  4190. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="iBemsModel.FK__FmsMaterialCarriedForward__CmSite">
  4191. <End Role="CmSite" EntitySet="CmSite" />
  4192. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  4193. </AssociationSet>
  4194. <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="iBemsModel.FK__FmsMaterialCodeClass__CmSite">
  4195. <End Role="CmSite" EntitySet="CmSite" />
  4196. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  4197. </AssociationSet>
  4198. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="iBemsModel.FK__FmsMaterialCodeLocation__CmSite">
  4199. <End Role="CmSite" EntitySet="CmSite" />
  4200. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  4201. </AssociationSet>
  4202. <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="iBemsModel.FK__FmsMaterialCodeType__CmSite">
  4203. <End Role="CmSite" EntitySet="CmSite" />
  4204. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  4205. </AssociationSet>
  4206. <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="iBemsModel.FK__FmsMaterialOrder__CmSite">
  4207. <End Role="CmSite" EntitySet="CmSite" />
  4208. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  4209. </AssociationSet>
  4210. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite">
  4211. <End Role="CmSite" EntitySet="CmSite" />
  4212. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  4213. </AssociationSet>
  4214. <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="iBemsModel.FK__FmsMaterialStored__CmSite">
  4215. <End Role="CmSite" EntitySet="CmSite" />
  4216. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  4217. </AssociationSet>
  4218. <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="iBemsModel.FK__FmsMaterialTradeCompany__CmSite">
  4219. <End Role="CmSite" EntitySet="CmSite" />
  4220. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  4221. </AssociationSet>
  4222. <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="iBemsModel.FK__FmsMaterialWarehouse__CmSite">
  4223. <End Role="CmSite" EntitySet="CmSite" />
  4224. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  4225. </AssociationSet>
  4226. <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite">
  4227. <End Role="CmSite" EntitySet="CmSite" />
  4228. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  4229. </AssociationSet>
  4230. <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite">
  4231. <End Role="CmSite" EntitySet="CmSite" />
  4232. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  4233. </AssociationSet>
  4234. <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="iBemsModel.FK__FmsWorkCodeEmergency__CmSite">
  4235. <End Role="CmSite" EntitySet="CmSite" />
  4236. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  4237. </AssociationSet>
  4238. <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite">
  4239. <End Role="CmSite" EntitySet="CmSite" />
  4240. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  4241. </AssociationSet>
  4242. <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  4243. <End Role="CmSite" EntitySet="CmSite" />
  4244. <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
  4245. </AssociationSet>
  4246. <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="iBemsModel.FK__FmsWorkOrder__CmSite">
  4247. <End Role="CmSite" EntitySet="CmSite" />
  4248. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  4249. </AssociationSet>
  4250. <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="iBemsModel.FK__FmsWorkRequest__CmSite">
  4251. <End Role="CmSite" EntitySet="CmSite" />
  4252. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  4253. </AssociationSet>
  4254. <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="iBemsModel.FK_CmZoneTempHumiSet_CmSite">
  4255. <End Role="CmSite" EntitySet="CmSite" />
  4256. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  4257. </AssociationSet>
  4258. <AssociationSet Name="FK_FmsMaterial_CmSite" Association="iBemsModel.FK_FmsMaterial_CmSite">
  4259. <End Role="CmSite" EntitySet="CmSite" />
  4260. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  4261. </AssociationSet>
  4262. <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="iBemsModel.FK_FmsMaterialRelease_CmSite">
  4263. <End Role="CmSite" EntitySet="CmSite" />
  4264. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  4265. </AssociationSet>
  4266. <EntitySet Name="FmsReport" EntityType="iBemsModel.FmsReport" />
  4267. <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="iBemsModel.FK_FmsReport_CmBusinessField">
  4268. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  4269. <End Role="FmsReport" EntitySet="FmsReport" />
  4270. </AssociationSet>
  4271. <AssociationSet Name="FK_FmsReport_CmFile" Association="iBemsModel.FK_FmsReport_CmFile">
  4272. <End Role="CmFile" EntitySet="CmFile" />
  4273. <End Role="FmsReport" EntitySet="FmsReport" />
  4274. </AssociationSet>
  4275. <AssociationSet Name="FK_FmsReport_CmSite" Association="iBemsModel.FK_FmsReport_CmSite">
  4276. <End Role="CmSite" EntitySet="CmSite" />
  4277. <End Role="FmsReport" EntitySet="FmsReport" />
  4278. </AssociationSet>
  4279. <AssociationSet Name="FK_FmsReport_CmUser" Association="iBemsModel.FK_FmsReport_CmUser">
  4280. <End Role="CmUser" EntitySet="CmUser" />
  4281. <End Role="FmsReport" EntitySet="FmsReport" />
  4282. </AssociationSet>
  4283. <AssociationSet Name="FK_FmsReport_CmUser1" Association="iBemsModel.FK_FmsReport_CmUser1">
  4284. <End Role="CmUser" EntitySet="CmUser" />
  4285. <End Role="FmsReport" EntitySet="FmsReport" />
  4286. </AssociationSet>
  4287. <AssociationSet Name="FK_FmsReport_CmUser2" Association="iBemsModel.FK_FmsReport_CmUser2">
  4288. <End Role="CmUser" EntitySet="CmUser" />
  4289. <End Role="FmsReport" EntitySet="FmsReport" />
  4290. </AssociationSet>
  4291. <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="iBemsModel.CmServiceEnergyCalcMonth" />
  4292. <EntitySet Name="CmServiceEnergyCalcDay" EntityType="iBemsModel.CmServiceEnergyCalcDay" />
  4293. <EntitySet Name="CmPatrolHistory" EntityType="iBemsModel.CmPatrolHistory" />
  4294. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule">
  4295. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  4296. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  4297. </AssociationSet>
  4298. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolType">
  4299. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  4300. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  4301. </AssociationSet>
  4302. <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="iBemsModel.FK_CmPatrolHistory_CmSite">
  4303. <End Role="CmSite" EntitySet="CmSite" />
  4304. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  4305. </AssociationSet>
  4306. <EntitySet Name="CmMenu" EntityType="iBemsModel.CmMenu" />
  4307. <EntitySet Name="BemsChartInfo" EntityType="iBemsModel.BemsChartInfo" />
  4308. <EntitySet Name="BemsReportFormat" EntityType="iBemsModel.BemsReportFormat" />
  4309. <EntitySet Name="FmsWorkSchedule" EntityType="iBemsModel.FmsWorkSchedule" />
  4310. <AssociationSet Name="FK_CmMenu_CmSite" Association="iBemsModel.FK_CmMenu_CmSite">
  4311. <End Role="CmSite" EntitySet="CmSite" />
  4312. <End Role="CmMenu" EntitySet="CmMenu" />
  4313. </AssociationSet>
  4314. <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="iBemsModel.FK_BemsChartInfo_BemsFacilityType">
  4315. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  4316. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  4317. </AssociationSet>
  4318. <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="iBemsModel.FK__FmsWorkSchedule__CmBusinessField">
  4319. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  4320. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4321. </AssociationSet>
  4322. <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="iBemsModel.FK__FmsWorkSchedule__CmUser">
  4323. <End Role="CmUser" EntitySet="CmUser" />
  4324. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4325. </AssociationSet>
  4326. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  4327. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  4328. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4329. </AssociationSet>
  4330. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  4331. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  4332. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4333. </AssociationSet>
  4334. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  4335. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  4336. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4337. </AssociationSet>
  4338. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule">
  4339. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4340. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  4341. </AssociationSet>
  4342. <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  4343. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4344. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  4345. </AssociationSet>
  4346. <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile">
  4347. <End Role="CmFile" EntitySet="CmFile" />
  4348. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  4349. </AssociationSet>
  4350. <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile1" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1">
  4351. <End Role="CmFile" EntitySet="CmFile" />
  4352. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  4353. </AssociationSet>
  4354. <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="iBemsModel.FK_BemsChartInfo_CmSite">
  4355. <End Role="CmSite" EntitySet="CmSite" />
  4356. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  4357. </AssociationSet>
  4358. <EntitySet Name="BemsPeopleIncrease" EntityType="iBemsModel.BemsPeopleIncrease" />
  4359. <EntitySet Name="BemsPriceCode" EntityType="iBemsModel.BemsPriceCode" />
  4360. <EntitySet Name="BemsPriceFormula" EntityType="iBemsModel.BemsPriceFormula" />
  4361. <EntitySet Name="BemsPriceMeta" EntityType="iBemsModel.BemsPriceMeta" />
  4362. <EntitySet Name="BemsPriceType" EntityType="iBemsModel.BemsPriceType" />
  4363. <EntitySet Name="BemsRentalRate" EntityType="iBemsModel.BemsRentalRate" />
  4364. <EntitySet Name="BemsSitePrice" EntityType="iBemsModel.BemsSitePrice" />
  4365. <EntitySet Name="BemsSitePriceHistory" EntityType="iBemsModel.BemsSitePriceHistory" />
  4366. <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="iBemsModel.FK_BemsPriceFormula_BemsFormula">
  4367. <End Role="BemsFormula" EntitySet="BemsFormula" />
  4368. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  4369. </AssociationSet>
  4370. <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="iBemsModel.FK_BemsPeopleIncrease_CmSite">
  4371. <End Role="CmSite" EntitySet="CmSite" />
  4372. <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
  4373. </AssociationSet>
  4374. <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="iBemsModel.FK_BemsSitePrice_BemsPriceCode">
  4375. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  4376. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  4377. </AssociationSet>
  4378. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode">
  4379. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  4380. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  4381. </AssociationSet>
  4382. <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="iBemsModel.FK_BemsPriceFormula_BemsPriceType">
  4383. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  4384. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  4385. </AssociationSet>
  4386. <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="iBemsModel.FK_BemsPriceMeta_BemsPriceType">
  4387. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  4388. <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
  4389. </AssociationSet>
  4390. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType">
  4391. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  4392. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  4393. </AssociationSet>
  4394. <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="iBemsModel.FK_BemsRentalRate_CmSite">
  4395. <End Role="CmSite" EntitySet="CmSite" />
  4396. <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
  4397. </AssociationSet>
  4398. <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="iBemsModel.FK_BemsSitePrice_CmSite1">
  4399. <End Role="CmSite" EntitySet="CmSite" />
  4400. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  4401. </AssociationSet>
  4402. <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="iBemsModel.FK_BemsSitePriceHistory_CmSite">
  4403. <End Role="CmSite" EntitySet="CmSite" />
  4404. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  4405. </AssociationSet>
  4406. <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="iBemsModel.FK_BemsSitePrice_BemsPriceType">
  4407. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  4408. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  4409. </AssociationSet>
  4410. <EntitySet Name="BemsMonitoringPointConfig" EntityType="iBemsModel.BemsMonitoringPointConfig" />
  4411. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1">
  4412. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  4413. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  4414. </AssociationSet>
  4415. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  4416. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  4417. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  4418. </AssociationSet>
  4419. <EntitySet Name="BemsAlarmSetting" EntityType="iBemsModel.BemsAlarmSetting" />
  4420. <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType">
  4421. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  4422. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  4423. </AssociationSet>
  4424. <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="iBemsModel.FK_BemsAlarmSetting_CmSite1">
  4425. <End Role="CmSite" EntitySet="CmSite" />
  4426. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  4427. </AssociationSet>
  4428. <EntitySet Name="BemsAlarmLog" EntityType="iBemsModel.BemsAlarmLog" />
  4429. <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting">
  4430. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  4431. <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
  4432. </AssociationSet>
  4433. <EntitySet Name="BemsAlarmGroup" EntityType="iBemsModel.BemsAlarmGroup" />
  4434. <EntitySet Name="BemsAlarmGroupUser" EntityType="iBemsModel.BemsAlarmGroupUser" />
  4435. <EntitySet Name="BemsEnergyCost" EntityType="iBemsModel.BemsEnergyCost" />
  4436. <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="iBemsModel.BemsEnergyConfigPercentMonth" />
  4437. <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="iBemsModel.BemsEnergyConfigPercentWeek" />
  4438. <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6">
  4439. <End Role="CmSite" EntitySet="CmSite" />
  4440. <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
  4441. </AssociationSet>
  4442. <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1">
  4443. <End Role="CmSite" EntitySet="CmSite" />
  4444. <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
  4445. </AssociationSet>
  4446. <EntitySet Name="BemsEnergyDaily" EntityType="iBemsModel.BemsEnergyDaily" />
  4447. <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="iBemsModel.FK__BemsEnergyDaily__BemsServiceType">
  4448. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  4449. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  4450. </AssociationSet>
  4451. <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="iBemsModel.FK__BemsEnergyDaily__CmBuilding">
  4452. <End Role="CmBuilding" EntitySet="CmBuilding" />
  4453. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  4454. </AssociationSet>
  4455. <EntitySet Name="BemsEnergyDailyRegression" EntityType="iBemsModel.BemsEnergyDailyRegression" />
  4456. <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="iBemsModel.FK_BemsEnergyDailyRegression_CmSite">
  4457. <End Role="CmSite" EntitySet="CmSite" />
  4458. <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
  4459. </AssociationSet>
  4460. <EntitySet Name="WeatherDongNaeForecast" EntityType="iBemsModel.WeatherDongNaeForecast" />
  4461. <EntitySet Name="FmsEquipmentRentInfo" EntityType="iBemsModel.FmsEquipmentRentInfo" />
  4462. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser">
  4463. <End Role="CmUser" EntitySet="CmUser" />
  4464. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  4465. </AssociationSet>
  4466. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1">
  4467. <End Role="CmUser" EntitySet="CmUser" />
  4468. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  4469. </AssociationSet>
  4470. <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  4471. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  4472. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  4473. </AssociationSet>
  4474. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  4475. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  4476. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  4477. </AssociationSet>
  4478. <EntitySet Name="BemsControlAHUTempConfig" EntityType="iBemsModel.BemsControlAHUTempConfig" />
  4479. <EntitySet Name="BemsFuelType" EntityType="iBemsModel.BemsFuelType" />
  4480. <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="iBemsModel.FK__BemsEnergyDaily__BemsFuelType">
  4481. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4482. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  4483. </AssociationSet>
  4484. <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="iBemsModel.FK__BemsFactorCo2__BemsFuelType">
  4485. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4486. <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
  4487. </AssociationSet>
  4488. <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="iBemsModel.FK__BemsFactorToe__BemsFuelType">
  4489. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4490. <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
  4491. </AssociationSet>
  4492. <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType">
  4493. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4494. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  4495. </AssociationSet>
  4496. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType">
  4497. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4498. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  4499. </AssociationSet>
  4500. <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType">
  4501. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4502. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  4503. </AssociationSet>
  4504. <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="iBemsModel.FK_BemsPriceCode_BemsFuelType">
  4505. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4506. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  4507. </AssociationSet>
  4508. <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="iBemsModel.FK_BemsPriceType_BemsFuelType1">
  4509. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4510. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  4511. </AssociationSet>
  4512. <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="iBemsModel.FK_BemsSitePrice_BemsFuelType">
  4513. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4514. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  4515. </AssociationSet>
  4516. <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType">
  4517. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4518. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  4519. </AssociationSet>
  4520. <EntitySet Name="CmFacility" EntityType="iBemsModel.CmFacility" />
  4521. <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="iBemsModel.FK_BemsAlarmSetting_CmFacility">
  4522. <End Role="CmFacility" EntitySet="CmFacility" />
  4523. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  4524. </AssociationSet>
  4525. <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="iBemsModel.FK_BemsEnergyCost_CmFacility">
  4526. <End Role="CmFacility" EntitySet="CmFacility" />
  4527. <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
  4528. </AssociationSet>
  4529. <AssociationSet Name="FK__CmFacility__BemsFacilityType" Association="iBemsModel.FK__CmFacility__BemsFacilityType">
  4530. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  4531. <End Role="CmFacility" EntitySet="CmFacility" />
  4532. </AssociationSet>
  4533. <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="iBemsModel.FK_BemsFormulaParameter_CmFacility">
  4534. <End Role="CmFacility" EntitySet="CmFacility" />
  4535. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  4536. </AssociationSet>
  4537. <AssociationSet Name="FK_CmFacility_BemsFuelType" Association="iBemsModel.FK_CmFacility_BemsFuelType">
  4538. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4539. <End Role="CmFacility" EntitySet="CmFacility" />
  4540. </AssociationSet>
  4541. <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="iBemsModel.FK_BemsMonitoringPoint_CmFacility">
  4542. <End Role="CmFacility" EntitySet="CmFacility" />
  4543. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  4544. </AssociationSet>
  4545. <AssociationSet Name="FK_CmFacility_BemsNoticePriceContractType" Association="iBemsModel.FK_CmFacility_BemsNoticePriceContractType">
  4546. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  4547. <End Role="CmFacility" EntitySet="CmFacility" />
  4548. </AssociationSet>
  4549. <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="iBemsModel.FK_BemsPeakFacility_CmFacility">
  4550. <End Role="CmFacility" EntitySet="CmFacility" />
  4551. <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
  4552. </AssociationSet>
  4553. <AssociationSet Name="FK__CmFacility__CmBuilding" Association="iBemsModel.FK__CmFacility__CmBuilding">
  4554. <End Role="CmBuilding" EntitySet="CmBuilding" />
  4555. <End Role="CmFacility" EntitySet="CmFacility" />
  4556. </AssociationSet>
  4557. <AssociationSet Name="FK__CmFacility__74444068" Association="iBemsModel.FK__CmFacility__74444068">
  4558. <End Role="CmFloor" EntitySet="CmFloor" />
  4559. <End Role="CmFacility" EntitySet="CmFacility" />
  4560. </AssociationSet>
  4561. <AssociationSet Name="FK__CmFacility__753864A1" Association="iBemsModel.FK__CmFacility__753864A1">
  4562. <End Role="CmUser" EntitySet="CmUser" />
  4563. <End Role="CmFacility" EntitySet="CmFacility" />
  4564. </AssociationSet>
  4565. <AssociationSet Name="FK__CmFacility__762C88DA" Association="iBemsModel.FK__CmFacility__762C88DA">
  4566. <End Role="CmUser" EntitySet="CmUser" />
  4567. <End Role="CmFacility" EntitySet="CmFacility" />
  4568. </AssociationSet>
  4569. <AssociationSet Name="FK__CmFacility__CmFacility" Association="iBemsModel.FK__CmFacility__CmFacility">
  4570. <End Role="CmFacility" EntitySet="CmFacility" />
  4571. <End Role="CmFacility1" EntitySet="CmFacility" />
  4572. </AssociationSet>
  4573. <AssociationSet Name="FK__CmFacility__CmFile" Association="iBemsModel.FK__CmFacility__CmFile">
  4574. <End Role="CmFile" EntitySet="CmFile" />
  4575. <End Role="CmFacility" EntitySet="CmFacility" />
  4576. </AssociationSet>
  4577. <AssociationSet Name="FK__CmFacility__CmZone" Association="iBemsModel.FK__CmFacility__CmZone">
  4578. <End Role="CmZone" EntitySet="CmZone" />
  4579. <End Role="CmFacility" EntitySet="CmFacility" />
  4580. </AssociationSet>
  4581. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsFirst" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst">
  4582. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  4583. <End Role="CmFacility" EntitySet="CmFacility" />
  4584. </AssociationSet>
  4585. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsSecond" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond">
  4586. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  4587. <End Role="CmFacility" EntitySet="CmFacility" />
  4588. </AssociationSet>
  4589. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsThird" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird">
  4590. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  4591. <End Role="CmFacility" EntitySet="CmFacility" />
  4592. </AssociationSet>
  4593. <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="iBemsModel.FK__CmFacilityFile__7720AD13">
  4594. <End Role="CmFacility" EntitySet="CmFacility" />
  4595. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  4596. </AssociationSet>
  4597. <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="iBemsModel.FK__CmFacilityManual__79FD19BE">
  4598. <End Role="CmFacility" EntitySet="CmFacility" />
  4599. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  4600. </AssociationSet>
  4601. <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="iBemsModel.FK__FmsFacilityOpera__725BF7F6">
  4602. <End Role="CmFacility" EntitySet="CmFacility" />
  4603. <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
  4604. </AssociationSet>
  4605. <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility">
  4606. <End Role="CmFacility" EntitySet="CmFacility" />
  4607. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  4608. </AssociationSet>
  4609. <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="iBemsModel.FK__FmsWorkResultToFacility__CmFacility">
  4610. <End Role="CmFacility" EntitySet="CmFacility" />
  4611. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  4612. </AssociationSet>
  4613. <AssociationSet Name="FK_CmFacility_CmUser" Association="iBemsModel.FK_CmFacility_CmUser">
  4614. <End Role="CmUser" EntitySet="CmUser" />
  4615. <End Role="CmFacility" EntitySet="CmFacility" />
  4616. </AssociationSet>
  4617. <AssociationSet Name="FK_CmFacility_CmUser1" Association="iBemsModel.FK_CmFacility_CmUser1">
  4618. <End Role="CmUser" EntitySet="CmUser" />
  4619. <End Role="CmFacility" EntitySet="CmFacility" />
  4620. </AssociationSet>
  4621. <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="iBemsModel.FK_CmFacilityTempSet_CmFacility">
  4622. <End Role="CmFacility" EntitySet="CmFacility" />
  4623. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  4624. </AssociationSet>
  4625. <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility">
  4626. <End Role="CmFacility" EntitySet="CmFacility" />
  4627. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  4628. </AssociationSet>
  4629. <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility">
  4630. <End Role="CmFacility" EntitySet="CmFacility" />
  4631. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  4632. </AssociationSet>
  4633. <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility">
  4634. <End Role="CmFacility" EntitySet="CmFacility" />
  4635. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  4636. </AssociationSet>
  4637. <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="iBemsModel.BemsMonitoringPointHistory15minRawData" />
  4638. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  4639. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  4640. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  4641. </AssociationSet>
  4642. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  4643. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  4644. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  4645. </AssociationSet>
  4646. <EntitySet Name="FmsDailyReport" EntityType="iBemsModel.FmsDailyReport" />
  4647. <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="iBemsModel.FK_FmsDailyReport_CmBusinessField">
  4648. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  4649. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  4650. </AssociationSet>
  4651. <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="iBemsModel.FK_FmsDailyReport_CmUser">
  4652. <End Role="CmUser" EntitySet="CmUser" />
  4653. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  4654. </AssociationSet>
  4655. <EntitySet Name="BemsPeakHistoryDaily" EntityType="iBemsModel.BemsPeakHistoryDaily" />
  4656. <EntitySet Name="FmsEquipment" EntityType="iBemsModel.FmsEquipment" />
  4657. <AssociationSet Name="FK_FmsEquipment_CmUser" Association="iBemsModel.FK_FmsEquipment_CmUser">
  4658. <End Role="CmUser" EntitySet="CmUser" />
  4659. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  4660. </AssociationSet>
  4661. <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType">
  4662. <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
  4663. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  4664. </AssociationSet>
  4665. <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse">
  4666. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  4667. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  4668. </AssociationSet>
  4669. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment">
  4670. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  4671. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  4672. </AssociationSet>
  4673. <EntitySet Name="CmAlarmAdmin" EntityType="iBemsModel.CmAlarmAdmin" />
  4674. <EntitySet Name="BemsFloorStatus" EntityType="iBemsModel.BemsFloorStatus" />
  4675. <EntitySet Name="BemsReportHistory" EntityType="iBemsModel.BemsReportHistory" />
  4676. <EntitySet Name="CmPartner" EntityType="iBemsModel.CmPartner" />
  4677. <EntitySet Name="CmPartnerType" EntityType="iBemsModel.CmPartnerType" />
  4678. <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="iBemsModel.FK_CmPartnerType_CmPartner">
  4679. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  4680. <End Role="CmPartner" EntitySet="CmPartner" />
  4681. </AssociationSet>
  4682. <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="iBemsModel.FK_FmsConstruction_CmPartner">
  4683. <End Role="CmPartner" EntitySet="CmPartner" />
  4684. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  4685. </AssociationSet>
  4686. <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="iBemsModel.FK_FmsWorkRequest_CmPartner">
  4687. <End Role="CmPartner" EntitySet="CmPartner" />
  4688. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  4689. </AssociationSet>
  4690. <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="iBemsModel.FK_FmsWorkSchedule_CmPartner">
  4691. <End Role="CmPartner" EntitySet="CmPartner" />
  4692. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4693. </AssociationSet>
  4694. <EntitySet Name="FmsContract" EntityType="iBemsModel.FmsContract" />
  4695. <AssociationSet Name="FK_FmsContract_CmPartner" Association="iBemsModel.FK_FmsContract_CmPartner">
  4696. <End Role="CmPartner" EntitySet="CmPartner" />
  4697. <End Role="FmsContract" EntitySet="FmsContract" />
  4698. </AssociationSet>
  4699. <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="iBemsModel.FK_FmsContract_CmPartnerType">
  4700. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  4701. <End Role="FmsContract" EntitySet="FmsContract" />
  4702. </AssociationSet>
  4703. <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="iBemsModel.FK_FmsContract_FmsContractClass">
  4704. <End Role="FmsContractClass" EntitySet="FmsContractClass" />
  4705. <End Role="FmsContract" EntitySet="FmsContract" />
  4706. </AssociationSet>
  4707. <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="iBemsModel.FK_FmsContract_FmsContractMethod">
  4708. <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
  4709. <End Role="FmsContract" EntitySet="FmsContract" />
  4710. </AssociationSet>
  4711. <AssociationSet Name="FK_FmsContract_FmsContractType" Association="iBemsModel.FK_FmsContract_FmsContractType">
  4712. <End Role="FmsContractType" EntitySet="FmsContractType" />
  4713. <End Role="FmsContract" EntitySet="FmsContract" />
  4714. </AssociationSet>
  4715. <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="iBemsModel.FK_FmsContract_FmsPaymentType">
  4716. <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
  4717. <End Role="FmsContract" EntitySet="FmsContract" />
  4718. </AssociationSet>
  4719. <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingDayAhead" />
  4720. <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingHourAhead" />
  4721. <EntitySet Name="BemsFloorPlan" EntityType="iBemsModel.BemsFloorPlan" />
  4722. <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="iBemsModel.BemsMonitoringPointWeatherForecasted" />
  4723. <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="iBemsModel.BemsIceThermalStorageSimulation" />
  4724. <EntitySet Name="BemsConfigData" EntityType="iBemsModel.BemsConfigData" />
  4725. </EntityContainer>
  4726. <EntityType Name="FmsDailyCheckReport">
  4727. <Key>
  4728. <PropertyRef Name="SiteId" />
  4729. <PropertyRef Name="DailyCheckReportId" />
  4730. </Key>
  4731. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4732. <Property Name="DailyCheckReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  4733. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  4734. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  4735. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  4736. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  4737. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="FmsDailyCheckReport" ToRole="CmUser" />
  4738. </EntityType>
  4739. <EntityType Name="FmsFacilityOperationReport">
  4740. <Key>
  4741. <PropertyRef Name="SiteId" />
  4742. <PropertyRef Name="FacilityOperationReportId" />
  4743. </Key>
  4744. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4745. <Property Name="FacilityOperationReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  4746. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  4747. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  4748. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  4749. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  4750. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="FmsFacilityOperationReport" ToRole="CmUser" />
  4751. </EntityType>
  4752. <Association Name="FK_FmsDailyCheckReport_CmUser">
  4753. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  4754. <End Type="iBemsModel.FmsDailyCheckReport" Role="FmsDailyCheckReport" Multiplicity="*" />
  4755. <ReferentialConstraint>
  4756. <Principal Role="CmUser">
  4757. <PropertyRef Name="SiteId" />
  4758. <PropertyRef Name="UserId" />
  4759. </Principal>
  4760. <Dependent Role="FmsDailyCheckReport">
  4761. <PropertyRef Name="SiteId" />
  4762. <PropertyRef Name="RegisterUserId" />
  4763. </Dependent>
  4764. </ReferentialConstraint>
  4765. </Association>
  4766. <Association Name="FK_FmsFacilityOperationReport_CmUser">
  4767. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  4768. <End Type="iBemsModel.FmsFacilityOperationReport" Role="FmsFacilityOperationReport" Multiplicity="*" />
  4769. <ReferentialConstraint>
  4770. <Principal Role="CmUser">
  4771. <PropertyRef Name="SiteId" />
  4772. <PropertyRef Name="UserId" />
  4773. </Principal>
  4774. <Dependent Role="FmsFacilityOperationReport">
  4775. <PropertyRef Name="SiteId" />
  4776. <PropertyRef Name="RegisterUserId" />
  4777. </Dependent>
  4778. </ReferentialConstraint>
  4779. </Association>
  4780. <EntityType Name="FmsBudgetDetail">
  4781. <Key>
  4782. <PropertyRef Name="SiteId" />
  4783. <PropertyRef Name="Year" />
  4784. <PropertyRef Name="BudgetClassId" />
  4785. <PropertyRef Name="ParentBudgetClassId" />
  4786. </Key>
  4787. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4788. <Property Name="Year" Type="Int32" Nullable="false" />
  4789. <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
  4790. <Property Name="BudgetSeq" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="true" />
  4791. <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
  4792. <Property Name="Depth" Type="Int32" Nullable="false" />
  4793. <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  4794. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  4795. <Property Name="IsUse" Type="Boolean" />
  4796. <Property Name="YearlyBudget" Type="Double" Nullable="false" />
  4797. <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
  4798. <NavigationProperty Name="FmsBudget" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudgetDetail" ToRole="FmsBudget" />
  4799. <NavigationProperty Name="FmsBudgetCodeClass" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetDetail" ToRole="FmsBudgetCodeClass" />
  4800. <NavigationProperty Name="FmsBudgetDetailExecution" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetail" ToRole="FmsBudgetDetailExecution" />
  4801. <Property Name="RootBudgetClassId" Type="Int32" />
  4802. </EntityType>
  4803. <EntityType Name="FmsBudgetDetailExecution">
  4804. <Key>
  4805. <PropertyRef Name="SiteId" />
  4806. <PropertyRef Name="Year" />
  4807. <PropertyRef Name="BudgetClassId" />
  4808. <PropertyRef Name="ParentBudgetClassId" />
  4809. <PropertyRef Name="Month" />
  4810. </Key>
  4811. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4812. <Property Name="Year" Type="Int32" Nullable="false" />
  4813. <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
  4814. <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
  4815. <Property Name="MonthlyExecution" Type="Double" Nullable="false" />
  4816. <Property Name="Month" Type="Int32" Nullable="false" />
  4817. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetailExecution" ToRole="FmsBudgetDetail" />
  4818. <Property Name="YearlyBudget" Type="Double" Nullable="false" />
  4819. <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
  4820. <Property Name="YearlyExecution" Type="Double" Nullable="false" />
  4821. <Property Name="RootBudgetClassId" Type="Int32" />
  4822. </EntityType>
  4823. <Association Name="FK_FmsBudgetDetail_FmsBudget">
  4824. <End Type="iBemsModel.FmsBudget" Role="FmsBudget" Multiplicity="1">
  4825. <OnDelete Action="Cascade" />
  4826. </End>
  4827. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
  4828. <ReferentialConstraint>
  4829. <Principal Role="FmsBudget">
  4830. <PropertyRef Name="SiteId" />
  4831. <PropertyRef Name="Year" />
  4832. </Principal>
  4833. <Dependent Role="FmsBudgetDetail">
  4834. <PropertyRef Name="SiteId" />
  4835. <PropertyRef Name="Year" />
  4836. </Dependent>
  4837. </ReferentialConstraint>
  4838. </Association>
  4839. <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
  4840. <End Type="iBemsModel.FmsBudgetCodeClass" Role="FmsBudgetCodeClass" Multiplicity="1" />
  4841. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
  4842. <ReferentialConstraint>
  4843. <Principal Role="FmsBudgetCodeClass">
  4844. <PropertyRef Name="SiteId" />
  4845. <PropertyRef Name="BudgetClassId" />
  4846. </Principal>
  4847. <Dependent Role="FmsBudgetDetail">
  4848. <PropertyRef Name="SiteId" />
  4849. <PropertyRef Name="BudgetClassId" />
  4850. </Dependent>
  4851. </ReferentialConstraint>
  4852. </Association>
  4853. <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  4854. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="1" />
  4855. <End Type="iBemsModel.FmsBudgetDetailExecution" Role="FmsBudgetDetailExecution" Multiplicity="*" />
  4856. <ReferentialConstraint>
  4857. <Principal Role="FmsBudgetDetail">
  4858. <PropertyRef Name="SiteId" />
  4859. <PropertyRef Name="Year" />
  4860. <PropertyRef Name="BudgetClassId" />
  4861. <PropertyRef Name="ParentBudgetClassId" />
  4862. </Principal>
  4863. <Dependent Role="FmsBudgetDetailExecution">
  4864. <PropertyRef Name="SiteId" />
  4865. <PropertyRef Name="Year" />
  4866. <PropertyRef Name="BudgetClassId" />
  4867. <PropertyRef Name="ParentBudgetClassId" />
  4868. </Dependent>
  4869. </ReferentialConstraint>
  4870. </Association>
  4871. <EntityType Name="FmsMonthlyReport">
  4872. <Key>
  4873. <PropertyRef Name="SiteId" />
  4874. <PropertyRef Name="MonthlyReportId" />
  4875. </Key>
  4876. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4877. <Property Name="MonthlyReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  4878. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  4879. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  4880. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  4881. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  4882. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="FmsMonthlyReport" ToRole="CmUser" />
  4883. </EntityType>
  4884. <Association Name="FK_FmsMonthlyReport_CmUser">
  4885. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  4886. <End Type="iBemsModel.FmsMonthlyReport" Role="FmsMonthlyReport" Multiplicity="*" />
  4887. <ReferentialConstraint>
  4888. <Principal Role="CmUser">
  4889. <PropertyRef Name="SiteId" />
  4890. <PropertyRef Name="UserId" />
  4891. </Principal>
  4892. <Dependent Role="FmsMonthlyReport">
  4893. <PropertyRef Name="SiteId" />
  4894. <PropertyRef Name="RegisterUserId" />
  4895. </Dependent>
  4896. </ReferentialConstraint>
  4897. </Association>
  4898. <EntityType Name="FmsInvestmentCost">
  4899. <Key>
  4900. <PropertyRef Name="SiteId" />
  4901. <PropertyRef Name="InsvestmentCostId" />
  4902. </Key>
  4903. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4904. <Property Name="InsvestmentCostId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  4905. <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  4906. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  4907. <Property Name="InsvestmentCost" Type="Double" Nullable="false" />
  4908. </EntityType>
  4909. <EntityType Name="CmHolidayWeekend">
  4910. <Key>
  4911. <PropertyRef Name="SiteId" />
  4912. </Key>
  4913. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4914. <Property Name="Saturday" Type="Boolean" Nullable="false" />
  4915. <Property Name="Sunday" Type="Boolean" Nullable="false" />
  4916. <Property Name="IsUse" Type="Boolean" />
  4917. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmHolidayWeekend" ToRole="CmSite" />
  4918. </EntityType>
  4919. <Association Name="FK_FmsAccident_CmCompany">
  4920. <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="0..1" />
  4921. <End Type="iBemsModel.FmsAccident" Role="FmsAccident" Multiplicity="*" />
  4922. <ReferentialConstraint>
  4923. <Principal Role="CmCompany">
  4924. <PropertyRef Name="SiteId" />
  4925. <PropertyRef Name="CompanyId" />
  4926. </Principal>
  4927. <Dependent Role="FmsAccident">
  4928. <PropertyRef Name="SiteId" />
  4929. <PropertyRef Name="CompanyId" />
  4930. </Dependent>
  4931. </ReferentialConstraint>
  4932. </Association>
  4933. <EntityType Name="FmsMaterial">
  4934. <Key>
  4935. <PropertyRef Name="SiteId" />
  4936. <PropertyRef Name="MaterialId" />
  4937. </Key>
  4938. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4939. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  4940. <Property Name="MaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  4941. <Property Name="MaterialCode" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  4942. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  4943. <Property Name="FirstClassId" Type="Int32" />
  4944. <Property Name="SecondClassId" Type="Int32" />
  4945. <Property Name="ThirdClassId" Type="Int32" />
  4946. <Property Name="LocationId" Type="Int32" />
  4947. <Property Name="MaterialTypeId" Type="Int32" />
  4948. <Property Name="WarehouseId" Type="Int32" />
  4949. <Property Name="TradeCompanyId" Type="Int32" />
  4950. <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  4951. <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
  4952. <Property Name="DurableYears" Type="Int16" />
  4953. <Property Name="ReasonableStockCount" Type="Int16" />
  4954. <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  4955. <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  4956. <Property Name="FinalPrice" Type="Int32" />
  4957. <Property Name="ImageFileId" Type="Int32" />
  4958. <Property Name="Note" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  4959. <Property Name="IsDiscontinued" Type="Boolean" />
  4960. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  4961. <Property Name="FinalStockCount" Type="Int32" Nullable="false" />
  4962. <Property Name="FinalTotalStockAmount" Type="Int32" Nullable="false" />
  4963. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="FmsMaterial" ToRole="CmBusinessField" />
  4964. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="FmsMaterial" ToRole="CmFile" />
  4965. <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  4966. <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  4967. <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  4968. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterial" ToRole="FmsMaterialCodeLocation" />
  4969. <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterial" ToRole="FmsMaterialCodeType" />
  4970. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterial" ToRole="FmsMaterialTradeCompany" />
  4971. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterial" ToRole="FmsMaterialWarehouse" />
  4972. <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseOrderMaterial" />
  4973. <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseRequestMaterial" />
  4974. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialRelease" />
  4975. <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialStored" />
  4976. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsWorkResultCheckItemMaterial" />
  4977. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="FmsMaterial" ToRole="CmSite" />
  4978. </EntityType>
  4979. <EntityType Name="FmsMaterialRelease">
  4980. <Key>
  4981. <PropertyRef Name="SiteId" />
  4982. <PropertyRef Name="MaterialReleaseId" />
  4983. </Key>
  4984. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4985. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  4986. <Property Name="ReleaseDate" Type="DateTime" Nullable="false" Precision="3" />
  4987. <Property Name="MaterialReleaseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  4988. <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
  4989. <Property Name="WorkRequestId" Type="Int32" />
  4990. <Property Name="WarehouseId" Type="Int32" />
  4991. <Property Name="MaterialId" Type="Int32" />
  4992. <Property Name="MaterialCount" Type="Int32" />
  4993. <Property Name="ReleaseTotalCost" Type="Int32" />
  4994. <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
  4995. <Property Name="AdjustmentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  4996. <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  4997. <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
  4998. <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
  4999. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  5000. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="FmsMaterialRelease" ToRole="CmBusinessField" />
  5001. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="FmsMaterialRelease" ToRole="CmUser" />
  5002. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="FmsMaterialRelease" ToRole="CmUser" />
  5003. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterialRelease" ToRole="FmsMaterial" />
  5004. <NavigationProperty Name="FmsMaterialCodeAdjustmentType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeAdjustmentType" />
  5005. <NavigationProperty Name="FmsMaterialCodeReleaseType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeReleaseType" />
  5006. <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsMaterialRelease" ToRole="FmsWorkResult" />
  5007. <Property Name="StockCountByPoint" Type="Int32" />
  5008. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="FmsMaterialRelease" ToRole="CmSite" />
  5009. </EntityType>
  5010. <Association Name="FK_FmsMaterial_CmBusinessField">
  5011. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  5012. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5013. <ReferentialConstraint>
  5014. <Principal Role="CmBusinessField">
  5015. <PropertyRef Name="SiteId" />
  5016. <PropertyRef Name="BusinessFieldId" />
  5017. </Principal>
  5018. <Dependent Role="FmsMaterial">
  5019. <PropertyRef Name="SiteId" />
  5020. <PropertyRef Name="BusinessFieldId" />
  5021. </Dependent>
  5022. </ReferentialConstraint>
  5023. </Association>
  5024. <Association Name="FK_FmsMaterialRelease_CmBusinessField">
  5025. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  5026. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5027. <ReferentialConstraint>
  5028. <Principal Role="CmBusinessField">
  5029. <PropertyRef Name="SiteId" />
  5030. <PropertyRef Name="BusinessFieldId" />
  5031. </Principal>
  5032. <Dependent Role="FmsMaterialRelease">
  5033. <PropertyRef Name="SiteId" />
  5034. <PropertyRef Name="BusinessFieldId" />
  5035. </Dependent>
  5036. </ReferentialConstraint>
  5037. </Association>
  5038. <Association Name="FK_FmsMaterial_CmFile">
  5039. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  5040. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5041. <ReferentialConstraint>
  5042. <Principal Role="CmFile">
  5043. <PropertyRef Name="SiteId" />
  5044. <PropertyRef Name="FileId" />
  5045. </Principal>
  5046. <Dependent Role="FmsMaterial">
  5047. <PropertyRef Name="SiteId" />
  5048. <PropertyRef Name="ImageFileId" />
  5049. </Dependent>
  5050. </ReferentialConstraint>
  5051. </Association>
  5052. <Association Name="FK_FmsMaterialRelease_CmUser">
  5053. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  5054. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5055. <ReferentialConstraint>
  5056. <Principal Role="CmUser">
  5057. <PropertyRef Name="SiteId" />
  5058. <PropertyRef Name="UserId" />
  5059. </Principal>
  5060. <Dependent Role="FmsMaterialRelease">
  5061. <PropertyRef Name="SiteId" />
  5062. <PropertyRef Name="ConfirmedUserId" />
  5063. </Dependent>
  5064. </ReferentialConstraint>
  5065. </Association>
  5066. <Association Name="FK_FmsMaterialRelease_CmUser1">
  5067. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  5068. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5069. <ReferentialConstraint>
  5070. <Principal Role="CmUser">
  5071. <PropertyRef Name="SiteId" />
  5072. <PropertyRef Name="UserId" />
  5073. </Principal>
  5074. <Dependent Role="FmsMaterialRelease">
  5075. <PropertyRef Name="SiteId" />
  5076. <PropertyRef Name="AdjustmentUserId" />
  5077. </Dependent>
  5078. </ReferentialConstraint>
  5079. </Association>
  5080. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  5081. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  5082. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5083. <ReferentialConstraint>
  5084. <Principal Role="FmsMaterialCodeClass">
  5085. <PropertyRef Name="SiteId" />
  5086. <PropertyRef Name="MaterialClassId" />
  5087. </Principal>
  5088. <Dependent Role="FmsMaterial">
  5089. <PropertyRef Name="SiteId" />
  5090. <PropertyRef Name="FirstClassId" />
  5091. </Dependent>
  5092. </ReferentialConstraint>
  5093. </Association>
  5094. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  5095. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  5096. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5097. <ReferentialConstraint>
  5098. <Principal Role="FmsMaterialCodeClass">
  5099. <PropertyRef Name="SiteId" />
  5100. <PropertyRef Name="MaterialClassId" />
  5101. </Principal>
  5102. <Dependent Role="FmsMaterial">
  5103. <PropertyRef Name="SiteId" />
  5104. <PropertyRef Name="SecondClassId" />
  5105. </Dependent>
  5106. </ReferentialConstraint>
  5107. </Association>
  5108. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  5109. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  5110. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5111. <ReferentialConstraint>
  5112. <Principal Role="FmsMaterialCodeClass">
  5113. <PropertyRef Name="SiteId" />
  5114. <PropertyRef Name="MaterialClassId" />
  5115. </Principal>
  5116. <Dependent Role="FmsMaterial">
  5117. <PropertyRef Name="SiteId" />
  5118. <PropertyRef Name="ThirdClassId" />
  5119. </Dependent>
  5120. </ReferentialConstraint>
  5121. </Association>
  5122. <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
  5123. <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="0..1" />
  5124. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5125. <ReferentialConstraint>
  5126. <Principal Role="FmsMaterialCodeLocation">
  5127. <PropertyRef Name="SiteId" />
  5128. <PropertyRef Name="LocationId" />
  5129. </Principal>
  5130. <Dependent Role="FmsMaterial">
  5131. <PropertyRef Name="SiteId" />
  5132. <PropertyRef Name="LocationId" />
  5133. </Dependent>
  5134. </ReferentialConstraint>
  5135. </Association>
  5136. <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
  5137. <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="0..1" />
  5138. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5139. <ReferentialConstraint>
  5140. <Principal Role="FmsMaterialCodeType">
  5141. <PropertyRef Name="SiteId" />
  5142. <PropertyRef Name="MaterialTypeId" />
  5143. </Principal>
  5144. <Dependent Role="FmsMaterial">
  5145. <PropertyRef Name="SiteId" />
  5146. <PropertyRef Name="MaterialTypeId" />
  5147. </Dependent>
  5148. </ReferentialConstraint>
  5149. </Association>
  5150. <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
  5151. <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="0..1" />
  5152. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5153. <ReferentialConstraint>
  5154. <Principal Role="FmsMaterialTradeCompany">
  5155. <PropertyRef Name="SiteId" />
  5156. <PropertyRef Name="TradeCompanyId" />
  5157. </Principal>
  5158. <Dependent Role="FmsMaterial">
  5159. <PropertyRef Name="SiteId" />
  5160. <PropertyRef Name="TradeCompanyId" />
  5161. </Dependent>
  5162. </ReferentialConstraint>
  5163. </Association>
  5164. <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
  5165. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
  5166. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5167. <ReferentialConstraint>
  5168. <Principal Role="FmsMaterialWarehouse">
  5169. <PropertyRef Name="SiteId" />
  5170. <PropertyRef Name="WarehouseId" />
  5171. </Principal>
  5172. <Dependent Role="FmsMaterial">
  5173. <PropertyRef Name="SiteId" />
  5174. <PropertyRef Name="WarehouseId" />
  5175. </Dependent>
  5176. </ReferentialConstraint>
  5177. </Association>
  5178. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  5179. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  5180. <End Type="iBemsModel.FmsMaterialPurchaseOrderMaterial" Role="FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  5181. <ReferentialConstraint>
  5182. <Principal Role="FmsMaterial">
  5183. <PropertyRef Name="SiteId" />
  5184. <PropertyRef Name="MaterialId" />
  5185. </Principal>
  5186. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  5187. <PropertyRef Name="SiteId" />
  5188. <PropertyRef Name="MaterialId" />
  5189. </Dependent>
  5190. </ReferentialConstraint>
  5191. </Association>
  5192. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  5193. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  5194. <End Type="iBemsModel.FmsMaterialPurchaseRequestMaterial" Role="FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  5195. <ReferentialConstraint>
  5196. <Principal Role="FmsMaterial">
  5197. <PropertyRef Name="SiteId" />
  5198. <PropertyRef Name="MaterialId" />
  5199. </Principal>
  5200. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  5201. <PropertyRef Name="SiteId" />
  5202. <PropertyRef Name="MaterialId" />
  5203. </Dependent>
  5204. </ReferentialConstraint>
  5205. </Association>
  5206. <Association Name="FK_FmsMaterialRelease_FmsMaterial">
  5207. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  5208. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5209. <ReferentialConstraint>
  5210. <Principal Role="FmsMaterial">
  5211. <PropertyRef Name="SiteId" />
  5212. <PropertyRef Name="MaterialId" />
  5213. </Principal>
  5214. <Dependent Role="FmsMaterialRelease">
  5215. <PropertyRef Name="SiteId" />
  5216. <PropertyRef Name="MaterialId" />
  5217. </Dependent>
  5218. </ReferentialConstraint>
  5219. </Association>
  5220. <Association Name="FK_FmsMaterialStored_FmsMaterial">
  5221. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  5222. <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
  5223. <ReferentialConstraint>
  5224. <Principal Role="FmsMaterial">
  5225. <PropertyRef Name="SiteId" />
  5226. <PropertyRef Name="MaterialId" />
  5227. </Principal>
  5228. <Dependent Role="FmsMaterialStored">
  5229. <PropertyRef Name="SiteId" />
  5230. <PropertyRef Name="MaterialId" />
  5231. </Dependent>
  5232. </ReferentialConstraint>
  5233. </Association>
  5234. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  5235. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  5236. <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  5237. <ReferentialConstraint>
  5238. <Principal Role="FmsMaterial">
  5239. <PropertyRef Name="SiteId" />
  5240. <PropertyRef Name="MaterialId" />
  5241. </Principal>
  5242. <Dependent Role="FmsWorkResultCheckItemMaterial">
  5243. <PropertyRef Name="SiteId" />
  5244. <PropertyRef Name="MaterialId" />
  5245. </Dependent>
  5246. </ReferentialConstraint>
  5247. </Association>
  5248. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  5249. <End Type="iBemsModel.FmsMaterialCodeAdjustmentType" Role="FmsMaterialCodeAdjustmentType" Multiplicity="1" />
  5250. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5251. <ReferentialConstraint>
  5252. <Principal Role="FmsMaterialCodeAdjustmentType">
  5253. <PropertyRef Name="AdjustmentTypeId" />
  5254. </Principal>
  5255. <Dependent Role="FmsMaterialRelease">
  5256. <PropertyRef Name="AdjustmentTypeId" />
  5257. </Dependent>
  5258. </ReferentialConstraint>
  5259. </Association>
  5260. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  5261. <End Type="iBemsModel.FmsMaterialCodeReleaseType" Role="FmsMaterialCodeReleaseType" Multiplicity="1" />
  5262. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5263. <ReferentialConstraint>
  5264. <Principal Role="FmsMaterialCodeReleaseType">
  5265. <PropertyRef Name="ReleaseTypeId" />
  5266. </Principal>
  5267. <Dependent Role="FmsMaterialRelease">
  5268. <PropertyRef Name="ReleaseTypeId" />
  5269. </Dependent>
  5270. </ReferentialConstraint>
  5271. </Association>
  5272. <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
  5273. <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="0..1" />
  5274. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5275. <ReferentialConstraint>
  5276. <Principal Role="FmsWorkResult">
  5277. <PropertyRef Name="SiteId" />
  5278. <PropertyRef Name="WorkRequestId" />
  5279. </Principal>
  5280. <Dependent Role="FmsMaterialRelease">
  5281. <PropertyRef Name="SiteId" />
  5282. <PropertyRef Name="WorkRequestId" />
  5283. </Dependent>
  5284. </ReferentialConstraint>
  5285. </Association>
  5286. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  5287. <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="1" />
  5288. <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  5289. <ReferentialConstraint>
  5290. <Principal Role="FmsWorkResult">
  5291. <PropertyRef Name="SiteId" />
  5292. <PropertyRef Name="WorkRequestId" />
  5293. </Principal>
  5294. <Dependent Role="FmsWorkResultCheckItemMaterial">
  5295. <PropertyRef Name="SiteId" />
  5296. <PropertyRef Name="WorkRequestId" />
  5297. </Dependent>
  5298. </ReferentialConstraint>
  5299. </Association>
  5300. <EntityType Name="CmPatrolType">
  5301. <Key>
  5302. <PropertyRef Name="SiteId" />
  5303. <PropertyRef Name="PatrolTypeId" />
  5304. </Key>
  5305. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5306. <Property Name="PatrolTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5307. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  5308. <Property Name="IsUse" Type="Boolean" />
  5309. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistoryPos" />
  5310. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmPatrolType" ToRole="CmSite" />
  5311. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistory" />
  5312. </EntityType>
  5313. <EntityType Name="CmPatrolGroup">
  5314. <Key>
  5315. <PropertyRef Name="SiteId" />
  5316. <PropertyRef Name="PatrolGroupId" />
  5317. </Key>
  5318. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5319. <Property Name="PatrolGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5320. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  5321. <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolGroupUser" />
  5322. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolPlan" />
  5323. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmPatrolGroup" ToRole="CmSite" />
  5324. </EntityType>
  5325. <EntityType Name="CmPatrolGroupUser">
  5326. <Key>
  5327. <PropertyRef Name="SiteId" />
  5328. <PropertyRef Name="PatrolGroupId" />
  5329. <PropertyRef Name="UserId" />
  5330. </Key>
  5331. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5332. <Property Name="PatrolGroupId" Type="Int32" Nullable="false" />
  5333. <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  5334. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroupUser" ToRole="CmPatrolGroup" />
  5335. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmPatrolGroupUser" ToRole="CmUser" />
  5336. </EntityType>
  5337. <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
  5338. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
  5339. <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
  5340. <ReferentialConstraint>
  5341. <Principal Role="CmPatrolGroup">
  5342. <PropertyRef Name="SiteId" />
  5343. <PropertyRef Name="PatrolGroupId" />
  5344. </Principal>
  5345. <Dependent Role="CmPatrolGroupUser">
  5346. <PropertyRef Name="SiteId" />
  5347. <PropertyRef Name="PatrolGroupId" />
  5348. </Dependent>
  5349. </ReferentialConstraint>
  5350. </Association>
  5351. <Association Name="FK_CmPatrolGroupUser_CmUser">
  5352. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  5353. <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
  5354. <ReferentialConstraint>
  5355. <Principal Role="CmUser">
  5356. <PropertyRef Name="SiteId" />
  5357. <PropertyRef Name="UserId" />
  5358. </Principal>
  5359. <Dependent Role="CmPatrolGroupUser">
  5360. <PropertyRef Name="SiteId" />
  5361. <PropertyRef Name="UserId" />
  5362. </Dependent>
  5363. </ReferentialConstraint>
  5364. </Association>
  5365. <EntityType Name="CmPatrolPos">
  5366. <Key>
  5367. <PropertyRef Name="SiteId" />
  5368. <PropertyRef Name="PosId" />
  5369. </Key>
  5370. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5371. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  5372. <Property Name="FloorId" Type="Int32" Nullable="false" />
  5373. <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5374. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  5375. <Property Name="TagId" Type="String" MaxLength="32" FixedLength="false" Unicode="true" />
  5376. <Property Name="PosDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  5377. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmPatrolPos" ToRole="CmBuilding" />
  5378. <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmPatrolPos" ToRole="CmFloor" />
  5379. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolCoursePos" />
  5380. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolHistoryPos" />
  5381. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmPatrolPos" ToRole="CmSite" />
  5382. </EntityType>
  5383. <Association Name="FK_CmPatrolPos_CmBuilding">
  5384. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
  5385. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  5386. <ReferentialConstraint>
  5387. <Principal Role="CmBuilding">
  5388. <PropertyRef Name="SiteId" />
  5389. <PropertyRef Name="BuildingId" />
  5390. </Principal>
  5391. <Dependent Role="CmPatrolPos">
  5392. <PropertyRef Name="SiteId" />
  5393. <PropertyRef Name="BuildingId" />
  5394. </Dependent>
  5395. </ReferentialConstraint>
  5396. </Association>
  5397. <Association Name="FK_CmPatrolPos_CmFloor">
  5398. <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="1" />
  5399. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  5400. <ReferentialConstraint>
  5401. <Principal Role="CmFloor">
  5402. <PropertyRef Name="SiteId" />
  5403. <PropertyRef Name="BuildingId" />
  5404. <PropertyRef Name="FloorId" />
  5405. </Principal>
  5406. <Dependent Role="CmPatrolPos">
  5407. <PropertyRef Name="SiteId" />
  5408. <PropertyRef Name="BuildingId" />
  5409. <PropertyRef Name="FloorId" />
  5410. </Dependent>
  5411. </ReferentialConstraint>
  5412. </Association>
  5413. <EntityType Name="CmPatrolCourse">
  5414. <Key>
  5415. <PropertyRef Name="SiteId" />
  5416. <PropertyRef Name="PatrolCourseId" />
  5417. </Key>
  5418. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5419. <Property Name="PatrolCourseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5420. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  5421. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolCoursePos" />
  5422. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolPlan" />
  5423. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmPatrolCourse" ToRole="CmSite" />
  5424. </EntityType>
  5425. <EntityType Name="CmPatrolCoursePos">
  5426. <Key>
  5427. <PropertyRef Name="SiteId" />
  5428. <PropertyRef Name="PatrolCourseId" />
  5429. <PropertyRef Name="PosId" />
  5430. <PropertyRef Name="BuildingId" />
  5431. <PropertyRef Name="FloorId" />
  5432. </Key>
  5433. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5434. <Property Name="PatrolCourseId" Type="Int32" Nullable="false" />
  5435. <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="None" />
  5436. <Property Name="CourseOrder" Type="Int32" Nullable="false" />
  5437. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCoursePos" ToRole="CmPatrolCourse" />
  5438. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  5439. <Property Name="FloorId" Type="Int32" Nullable="false" />
  5440. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolCoursePos" ToRole="CmPatrolPos" />
  5441. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmPatrolCoursePos" ToRole="CmSite" />
  5442. </EntityType>
  5443. <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
  5444. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
  5445. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  5446. <ReferentialConstraint>
  5447. <Principal Role="CmPatrolCourse">
  5448. <PropertyRef Name="SiteId" />
  5449. <PropertyRef Name="PatrolCourseId" />
  5450. </Principal>
  5451. <Dependent Role="CmPatrolCoursePos">
  5452. <PropertyRef Name="SiteId" />
  5453. <PropertyRef Name="PatrolCourseId" />
  5454. </Dependent>
  5455. </ReferentialConstraint>
  5456. </Association>
  5457. <Association Name="FK_CmPatrolCoursePos_CmPatrolPos">
  5458. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
  5459. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  5460. <ReferentialConstraint>
  5461. <Principal Role="CmPatrolPos">
  5462. <PropertyRef Name="SiteId" />
  5463. <PropertyRef Name="PosId" />
  5464. </Principal>
  5465. <Dependent Role="CmPatrolCoursePos">
  5466. <PropertyRef Name="SiteId" />
  5467. <PropertyRef Name="PosId" />
  5468. </Dependent>
  5469. </ReferentialConstraint>
  5470. </Association>
  5471. <EntityType Name="CmPatrolPlan">
  5472. <Key>
  5473. <PropertyRef Name="SiteId" />
  5474. <PropertyRef Name="PatrolPlanId" />
  5475. </Key>
  5476. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5477. <Property Name="PatrolPlanId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5478. <Property Name="GroupId" Type="Int32" Nullable="false" />
  5479. <Property Name="CourseId" Type="Int32" Nullable="false" />
  5480. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
  5481. <Property Name="PlanDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
  5482. <Property Name="term" Type="Int32" Nullable="false" />
  5483. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolPlan" ToRole="CmPatrolCourse" />
  5484. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolPlan" ToRole="CmPatrolGroup" />
  5485. <Property Name="inDate" Type="DateTime" Precision="3" />
  5486. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolPlan" ToRole="CmPatrolSchedule" />
  5487. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmPatrolPlan" ToRole="CmSite" />
  5488. </EntityType>
  5489. <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
  5490. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
  5491. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  5492. <ReferentialConstraint>
  5493. <Principal Role="CmPatrolCourse">
  5494. <PropertyRef Name="SiteId" />
  5495. <PropertyRef Name="PatrolCourseId" />
  5496. </Principal>
  5497. <Dependent Role="CmPatrolPlan">
  5498. <PropertyRef Name="SiteId" />
  5499. <PropertyRef Name="CourseId" />
  5500. </Dependent>
  5501. </ReferentialConstraint>
  5502. </Association>
  5503. <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
  5504. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
  5505. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  5506. <ReferentialConstraint>
  5507. <Principal Role="CmPatrolGroup">
  5508. <PropertyRef Name="SiteId" />
  5509. <PropertyRef Name="PatrolGroupId" />
  5510. </Principal>
  5511. <Dependent Role="CmPatrolPlan">
  5512. <PropertyRef Name="SiteId" />
  5513. <PropertyRef Name="GroupId" />
  5514. </Dependent>
  5515. </ReferentialConstraint>
  5516. </Association>
  5517. <EntityType Name="CmPatrolHistoryPos">
  5518. <Key>
  5519. <PropertyRef Name="mId" />
  5520. </Key>
  5521. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5522. <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" />
  5523. <Property Name="PosId" Type="Int32" Nullable="false" />
  5524. <Property Name="PatrolTime" Type="DateTime" Nullable="false" Precision="3" />
  5525. <Property Name="term" Type="Int32" />
  5526. <Property Name="resultType" Type="Int32" Nullable="false" />
  5527. <Property Name="mId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5528. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolPos" />
  5529. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolType" />
  5530. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmPatrolHistoryPos" ToRole="CmSite" />
  5531. </EntityType>
  5532. <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
  5533. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
  5534. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  5535. <ReferentialConstraint>
  5536. <Principal Role="CmPatrolPos">
  5537. <PropertyRef Name="SiteId" />
  5538. <PropertyRef Name="PosId" />
  5539. </Principal>
  5540. <Dependent Role="CmPatrolHistoryPos">
  5541. <PropertyRef Name="SiteId" />
  5542. <PropertyRef Name="PosId" />
  5543. </Dependent>
  5544. </ReferentialConstraint>
  5545. </Association>
  5546. <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
  5547. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
  5548. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  5549. <ReferentialConstraint>
  5550. <Principal Role="CmPatrolType">
  5551. <PropertyRef Name="SiteId" />
  5552. <PropertyRef Name="PatrolTypeId" />
  5553. </Principal>
  5554. <Dependent Role="CmPatrolHistoryPos">
  5555. <PropertyRef Name="SiteId" />
  5556. <PropertyRef Name="resultType" />
  5557. </Dependent>
  5558. </ReferentialConstraint>
  5559. </Association>
  5560. <EntityType Name="BemsPeakInfo">
  5561. <Key>
  5562. <PropertyRef Name="SiteId" />
  5563. </Key>
  5564. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5565. <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
  5566. <Property Name="MaxPeakValue" Type="Double" Nullable="false" />
  5567. <Property Name="MinDateTime" Type="DateTime" Nullable="false" Precision="3" />
  5568. <Property Name="MinPeakValue" Type="Double" Nullable="false" />
  5569. <Property Name="todayMaxPeakValue" Type="Double" Nullable="false" />
  5570. <Property Name="todayMinPeakValue" Type="Double" Nullable="false" />
  5571. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="BemsPeakInfo" ToRole="CmSite" />
  5572. </EntityType>
  5573. <EntityType Name="BemsPeakHistory">
  5574. <Key>
  5575. <PropertyRef Name="SiteId" />
  5576. <PropertyRef Name="CreatedDateTime" />
  5577. </Key>
  5578. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5579. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  5580. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  5581. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="BemsPeakHistory" ToRole="CmSite" />
  5582. </EntityType>
  5583. <EntityType Name="CmPatrolSchedule">
  5584. <Key>
  5585. <PropertyRef Name="SiteId" />
  5586. <PropertyRef Name="ScheduleId" />
  5587. </Key>
  5588. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5589. <Property Name="ScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5590. <Property Name="PlanId" Type="Int32" Nullable="false" />
  5591. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
  5592. <Property Name="ScheduleDesc" Type="String" MaxLength="128" FixedLength="false" Unicode="false" />
  5593. <Property Name="inDate" Type="DateTime" Precision="3" />
  5594. <Property Name="patrolDateTime" Type="DateTime" Nullable="false" Precision="3" />
  5595. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolSchedule" ToRole="CmPatrolPlan" />
  5596. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmPatrolSchedule" ToRole="CmSite" />
  5597. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolSchedule" ToRole="CmPatrolHistory" />
  5598. </EntityType>
  5599. <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
  5600. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="1" />
  5601. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
  5602. <ReferentialConstraint>
  5603. <Principal Role="CmPatrolPlan">
  5604. <PropertyRef Name="SiteId" />
  5605. <PropertyRef Name="PatrolPlanId" />
  5606. </Principal>
  5607. <Dependent Role="CmPatrolSchedule">
  5608. <PropertyRef Name="SiteId" />
  5609. <PropertyRef Name="PlanId" />
  5610. </Dependent>
  5611. </ReferentialConstraint>
  5612. </Association>
  5613. <EntityType Name="BemsNoticePriceBase">
  5614. <Key>
  5615. <PropertyRef Name="SiteId" />
  5616. <PropertyRef Name="FuelTypeId" />
  5617. <PropertyRef Name="ApplyDate" />
  5618. <PropertyRef Name="ContractType" />
  5619. </Key>
  5620. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5621. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  5622. <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
  5623. <Property Name="ContractType" Type="Int16" Nullable="false" />
  5624. <Property Name="PrimaryPrice" Type="Int32" />
  5625. <Property Name="SecondaryPrice" Type="Int32" />
  5626. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceContractType" />
  5627. <NavigationProperty Name="BemsNoticePriceDetail" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceDetail" />
  5628. </EntityType>
  5629. <EntityType Name="BemsNoticePriceContractType">
  5630. <Key>
  5631. <PropertyRef Name="FuelTypeId" />
  5632. <PropertyRef Name="ContractType" />
  5633. </Key>
  5634. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  5635. <Property Name="ContractType" Type="Int16" Nullable="false" />
  5636. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  5637. <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="BemsNoticePriceBase" />
  5638. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsNoticePriceContractType" ToRole="BemsFuelType" />
  5639. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="CmFacility" />
  5640. </EntityType>
  5641. <EntityType Name="BemsNoticePriceDetail">
  5642. <Key>
  5643. <PropertyRef Name="SiteId" />
  5644. <PropertyRef Name="FuelTypeId" />
  5645. <PropertyRef Name="ApplyDate" />
  5646. <PropertyRef Name="ContractType" />
  5647. <PropertyRef Name="DataId" />
  5648. </Key>
  5649. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5650. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  5651. <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
  5652. <Property Name="ContractType" Type="Int16" Nullable="false" />
  5653. <Property Name="DataId" Type="Int16" Nullable="false" />
  5654. <Property Name="P01" Type="Double" />
  5655. <Property Name="P02" Type="Double" />
  5656. <Property Name="P03" Type="Double" />
  5657. <Property Name="P04" Type="Double" />
  5658. <Property Name="P05" Type="Double" />
  5659. <Property Name="P06" Type="Double" />
  5660. <Property Name="P07" Type="Double" />
  5661. <Property Name="P08" Type="Double" />
  5662. <Property Name="P09" Type="Double" />
  5663. <Property Name="P10" Type="Double" />
  5664. <Property Name="P11" Type="Double" />
  5665. <Property Name="P12" Type="Double" />
  5666. <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceDetail" ToRole="BemsNoticePriceBase" />
  5667. </EntityType>
  5668. <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  5669. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="1" />
  5670. <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="*" />
  5671. <ReferentialConstraint>
  5672. <Principal Role="BemsNoticePriceContractType">
  5673. <PropertyRef Name="FuelTypeId" />
  5674. <PropertyRef Name="ContractType" />
  5675. </Principal>
  5676. <Dependent Role="BemsNoticePriceBase">
  5677. <PropertyRef Name="FuelTypeId" />
  5678. <PropertyRef Name="ContractType" />
  5679. </Dependent>
  5680. </ReferentialConstraint>
  5681. </Association>
  5682. <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  5683. <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="1" />
  5684. <End Type="iBemsModel.BemsNoticePriceDetail" Role="BemsNoticePriceDetail" Multiplicity="*" />
  5685. <ReferentialConstraint>
  5686. <Principal Role="BemsNoticePriceBase">
  5687. <PropertyRef Name="SiteId" />
  5688. <PropertyRef Name="FuelTypeId" />
  5689. <PropertyRef Name="ApplyDate" />
  5690. <PropertyRef Name="ContractType" />
  5691. </Principal>
  5692. <Dependent Role="BemsNoticePriceDetail">
  5693. <PropertyRef Name="SiteId" />
  5694. <PropertyRef Name="FuelTypeId" />
  5695. <PropertyRef Name="ApplyDate" />
  5696. <PropertyRef Name="ContractType" />
  5697. </Dependent>
  5698. </ReferentialConstraint>
  5699. </Association>
  5700. <EntityType Name="BemsPeakFacility">
  5701. <Key>
  5702. <PropertyRef Name="SiteId" />
  5703. <PropertyRef Name="MaxDateTime" />
  5704. <PropertyRef Name="FacilityCode" />
  5705. </Key>
  5706. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5707. <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
  5708. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  5709. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="BemsPeakFacility" ToRole="CmFacility" />
  5710. </EntityType>
  5711. <EntityType Name="CmSite">
  5712. <Key>
  5713. <PropertyRef Name="SiteId" />
  5714. </Key>
  5715. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5716. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  5717. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  5718. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  5719. <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  5720. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  5721. <Property Name="PhoneNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5722. <Property Name="URL" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  5723. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  5724. <Property Name="IsUse" Type="Boolean" />
  5725. <Property Name="SortOrderNo" Type="Int32" />
  5726. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  5727. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5728. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  5729. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5730. <Property Name="IsControlSchedule" Type="Boolean" />
  5731. <Property Name="ScheduleCheckHour" Type="Int32" />
  5732. <Property Name="MaxPeak" Type="Double" />
  5733. <Property Name="lat" Type="Double" />
  5734. <Property Name="lng" Type="Double" />
  5735. <NavigationProperty Name="BemsPeakHistory" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="CmSite" ToRole="BemsPeakHistory" />
  5736. <NavigationProperty Name="BemsPeakInfo" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="CmSite" ToRole="BemsPeakInfo" />
  5737. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmSite" ToRole="CmBuilding" />
  5738. <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmSite" ToRole="CmCompany" />
  5739. <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmSite" ToRole="CmFacilityTempSet" />
  5740. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmSite" ToRole="CmFile" />
  5741. <NavigationProperty Name="CmHoliday" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmSite" ToRole="CmHoliday" />
  5742. <NavigationProperty Name="CmHoliday1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmSite" ToRole="CmHoliday" />
  5743. <NavigationProperty Name="CmHolidayCustom" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmSite" ToRole="CmHolidayCustom" />
  5744. <NavigationProperty Name="CmHolidayCustom1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmSite" ToRole="CmHolidayCustom" />
  5745. <NavigationProperty Name="CmHolidayWeekend" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmSite" ToRole="CmHolidayWeekend" />
  5746. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmSite" ToRole="CmPatrolCourse" />
  5747. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmSite" ToRole="CmPatrolCoursePos" />
  5748. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmSite" ToRole="CmPatrolGroup" />
  5749. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmSite" ToRole="CmPatrolHistoryPos" />
  5750. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmSite" ToRole="CmPatrolPlan" />
  5751. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmSite" ToRole="CmPatrolPos" />
  5752. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmSite" ToRole="CmPatrolSchedule" />
  5753. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmSite" ToRole="CmPatrolType" />
  5754. <NavigationProperty Name="CmPosition" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmSite" ToRole="CmPosition" />
  5755. <NavigationProperty Name="CmPosition1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmSite" ToRole="CmPosition" />
  5756. <NavigationProperty Name="CmUserGroup" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmSite" ToRole="CmUserGroup" />
  5757. <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
  5758. <NavigationProperty Name="FmsDrawingCodeType" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
  5759. <NavigationProperty Name="FmsDrawing" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="CmSite" ToRole="FmsDrawing" />
  5760. <NavigationProperty Name="FmsDrawingCodeGroup1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
  5761. <NavigationProperty Name="FmsDrawingCodeType1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
  5762. <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="CmSite" ToRole="FmsFacilityCodeClass" />
  5763. <NavigationProperty Name="FmsLicense" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="CmSite" ToRole="FmsLicense" />
  5764. <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="CmSite" ToRole="FmsMaterialCarriedForward" />
  5765. <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeClass" />
  5766. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeLocation" />
  5767. <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeType" />
  5768. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseOrder" />
  5769. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseRequest" />
  5770. <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="CmSite" ToRole="FmsMaterialStored" />
  5771. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="CmSite" ToRole="FmsMaterialTradeCompany" />
  5772. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="CmSite" ToRole="FmsMaterialWarehouse" />
  5773. <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCauseClass" />
  5774. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCycleUnit" />
  5775. <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeEmergency" />
  5776. <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeHolidayWorkType" />
  5777. <NavigationProperty Name="FmsWorkCodeLegalInspectionAgency" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeLegalInspectionAgency" />
  5778. <NavigationProperty Name="FmsWorkOrder" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="CmSite" ToRole="FmsWorkOrder" />
  5779. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="CmSite" ToRole="FmsWorkRequest" />
  5780. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmSite" ToRole="CmZoneTempHumiSet" />
  5781. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="CmSite" ToRole="FmsMaterial" />
  5782. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="CmSite" ToRole="FmsMaterialRelease" />
  5783. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="CmSite" ToRole="FmsReport" />
  5784. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmSite" ToRole="CmPatrolHistory" />
  5785. <Property Name="controlSchedule" Type="Boolean" />
  5786. <NavigationProperty Name="CmMenu" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmSite" ToRole="CmMenu" />
  5787. <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="CmSite" ToRole="BemsChartInfo" />
  5788. <Property Name="BuildingSize" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  5789. <Property Name="GrossArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5790. <Property Name="BuildingArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5791. <Property Name="FloorAreaRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5792. <Property Name="BuildingCoverageRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5793. <Property Name="MainUse" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  5794. <Property Name="CompletionDate" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5795. <Property Name="Standard" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5796. <Property Name="MainUseIndex" Type="Int32" />
  5797. <Property Name="HDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5798. <Property Name="CDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5799. <NavigationProperty Name="BemsPeopleIncrease" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="CmSite" ToRole="BemsPeopleIncrease" />
  5800. <NavigationProperty Name="BemsRentalRate" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="CmSite" ToRole="BemsRentalRate" />
  5801. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="CmSite" ToRole="BemsSitePrice" />
  5802. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="CmSite" ToRole="BemsSitePriceHistory" />
  5803. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="CmSite" ToRole="BemsAlarmSetting" />
  5804. <NavigationProperty Name="BemsEnergyConfigPercentMonth" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="CmSite" ToRole="BemsEnergyConfigPercentMonth" />
  5805. <NavigationProperty Name="BemsEnergyConfigPercentWeek" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="CmSite" ToRole="BemsEnergyConfigPercentWeek" />
  5806. <NavigationProperty Name="BemsEnergyDailyRegression" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="CmSite" ToRole="BemsEnergyDailyRegression" />
  5807. </EntityType>
  5808. <Association Name="FK_BemsPeakHIstory_CmSite">
  5809. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5810. <End Type="iBemsModel.BemsPeakHistory" Role="BemsPeakHistory" Multiplicity="*" />
  5811. <ReferentialConstraint>
  5812. <Principal Role="CmSite">
  5813. <PropertyRef Name="SiteId" />
  5814. </Principal>
  5815. <Dependent Role="BemsPeakHistory">
  5816. <PropertyRef Name="SiteId" />
  5817. </Dependent>
  5818. </ReferentialConstraint>
  5819. </Association>
  5820. <Association Name="FK_BemsPeakInfo_CmSite">
  5821. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5822. <End Type="iBemsModel.BemsPeakInfo" Role="BemsPeakInfo" Multiplicity="0..1" />
  5823. <ReferentialConstraint>
  5824. <Principal Role="CmSite">
  5825. <PropertyRef Name="SiteId" />
  5826. </Principal>
  5827. <Dependent Role="BemsPeakInfo">
  5828. <PropertyRef Name="SiteId" />
  5829. </Dependent>
  5830. </ReferentialConstraint>
  5831. </Association>
  5832. <Association Name="FK__CmBuildin__SiteI__3BFFE745">
  5833. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5834. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="*" />
  5835. <ReferentialConstraint>
  5836. <Principal Role="CmSite">
  5837. <PropertyRef Name="SiteId" />
  5838. </Principal>
  5839. <Dependent Role="CmBuilding">
  5840. <PropertyRef Name="SiteId" />
  5841. </Dependent>
  5842. </ReferentialConstraint>
  5843. </Association>
  5844. <Association Name="FK__CmCompany__SiteI__336AA144">
  5845. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5846. <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="*" />
  5847. <ReferentialConstraint>
  5848. <Principal Role="CmSite">
  5849. <PropertyRef Name="SiteId" />
  5850. </Principal>
  5851. <Dependent Role="CmCompany">
  5852. <PropertyRef Name="SiteId" />
  5853. </Dependent>
  5854. </ReferentialConstraint>
  5855. </Association>
  5856. <Association Name="FK_CmFacilityTempSet_CmSite">
  5857. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5858. <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="*" />
  5859. <ReferentialConstraint>
  5860. <Principal Role="CmSite">
  5861. <PropertyRef Name="SiteId" />
  5862. </Principal>
  5863. <Dependent Role="CmFacilityTempSet">
  5864. <PropertyRef Name="SiteId" />
  5865. </Dependent>
  5866. </ReferentialConstraint>
  5867. </Association>
  5868. <Association Name="FK__CmFile__SiteId__2759D01A">
  5869. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5870. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="*" />
  5871. <ReferentialConstraint>
  5872. <Principal Role="CmSite">
  5873. <PropertyRef Name="SiteId" />
  5874. </Principal>
  5875. <Dependent Role="CmFile">
  5876. <PropertyRef Name="SiteId" />
  5877. </Dependent>
  5878. </ReferentialConstraint>
  5879. </Association>
  5880. <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
  5881. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5882. <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
  5883. <ReferentialConstraint>
  5884. <Principal Role="CmSite">
  5885. <PropertyRef Name="SiteId" />
  5886. </Principal>
  5887. <Dependent Role="CmHoliday">
  5888. <PropertyRef Name="SiteId" />
  5889. </Dependent>
  5890. </ReferentialConstraint>
  5891. </Association>
  5892. <Association Name="FK__CmHoliday__SiteI__65AC084E">
  5893. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5894. <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
  5895. <ReferentialConstraint>
  5896. <Principal Role="CmSite">
  5897. <PropertyRef Name="SiteId" />
  5898. </Principal>
  5899. <Dependent Role="CmHoliday">
  5900. <PropertyRef Name="SiteId" />
  5901. </Dependent>
  5902. </ReferentialConstraint>
  5903. </Association>
  5904. <Association Name="FK__CmHoliday__SiteI__10766AC2">
  5905. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5906. <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
  5907. <ReferentialConstraint>
  5908. <Principal Role="CmSite">
  5909. <PropertyRef Name="SiteId" />
  5910. </Principal>
  5911. <Dependent Role="CmHolidayCustom">
  5912. <PropertyRef Name="SiteId" />
  5913. </Dependent>
  5914. </ReferentialConstraint>
  5915. </Association>
  5916. <Association Name="FK__CmHoliday__SiteI__66A02C87">
  5917. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5918. <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
  5919. <ReferentialConstraint>
  5920. <Principal Role="CmSite">
  5921. <PropertyRef Name="SiteId" />
  5922. </Principal>
  5923. <Dependent Role="CmHolidayCustom">
  5924. <PropertyRef Name="SiteId" />
  5925. </Dependent>
  5926. </ReferentialConstraint>
  5927. </Association>
  5928. <Association Name="FK__CmHoliday__SiteI__0D99FE17">
  5929. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5930. <End Type="iBemsModel.CmHolidayWeekend" Role="CmHolidayWeekend" Multiplicity="0..1" />
  5931. <ReferentialConstraint>
  5932. <Principal Role="CmSite">
  5933. <PropertyRef Name="SiteId" />
  5934. </Principal>
  5935. <Dependent Role="CmHolidayWeekend">
  5936. <PropertyRef Name="SiteId" />
  5937. </Dependent>
  5938. </ReferentialConstraint>
  5939. </Association>
  5940. <Association Name="FK_CmPatrolCourse_CmSite">
  5941. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5942. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="*" />
  5943. <ReferentialConstraint>
  5944. <Principal Role="CmSite">
  5945. <PropertyRef Name="SiteId" />
  5946. </Principal>
  5947. <Dependent Role="CmPatrolCourse">
  5948. <PropertyRef Name="SiteId" />
  5949. </Dependent>
  5950. </ReferentialConstraint>
  5951. </Association>
  5952. <Association Name="FK_CmPatrolCoursePos_CmSite">
  5953. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5954. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  5955. <ReferentialConstraint>
  5956. <Principal Role="CmSite">
  5957. <PropertyRef Name="SiteId" />
  5958. </Principal>
  5959. <Dependent Role="CmPatrolCoursePos">
  5960. <PropertyRef Name="SiteId" />
  5961. </Dependent>
  5962. </ReferentialConstraint>
  5963. </Association>
  5964. <Association Name="FK_CmPatrolGroup_CmSite">
  5965. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5966. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="*" />
  5967. <ReferentialConstraint>
  5968. <Principal Role="CmSite">
  5969. <PropertyRef Name="SiteId" />
  5970. </Principal>
  5971. <Dependent Role="CmPatrolGroup">
  5972. <PropertyRef Name="SiteId" />
  5973. </Dependent>
  5974. </ReferentialConstraint>
  5975. </Association>
  5976. <Association Name="FK_CmPatrolHistoryPos_CmSite">
  5977. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5978. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  5979. <ReferentialConstraint>
  5980. <Principal Role="CmSite">
  5981. <PropertyRef Name="SiteId" />
  5982. </Principal>
  5983. <Dependent Role="CmPatrolHistoryPos">
  5984. <PropertyRef Name="SiteId" />
  5985. </Dependent>
  5986. </ReferentialConstraint>
  5987. </Association>
  5988. <Association Name="FK_CmPatrolPlan_CmSite">
  5989. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5990. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  5991. <ReferentialConstraint>
  5992. <Principal Role="CmSite">
  5993. <PropertyRef Name="SiteId" />
  5994. </Principal>
  5995. <Dependent Role="CmPatrolPlan">
  5996. <PropertyRef Name="SiteId" />
  5997. </Dependent>
  5998. </ReferentialConstraint>
  5999. </Association>
  6000. <Association Name="FK_CmPatrolPos_CmSite">
  6001. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6002. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  6003. <ReferentialConstraint>
  6004. <Principal Role="CmSite">
  6005. <PropertyRef Name="SiteId" />
  6006. </Principal>
  6007. <Dependent Role="CmPatrolPos">
  6008. <PropertyRef Name="SiteId" />
  6009. </Dependent>
  6010. </ReferentialConstraint>
  6011. </Association>
  6012. <Association Name="FK_CmPatrolSchedule_CmSite">
  6013. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6014. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
  6015. <ReferentialConstraint>
  6016. <Principal Role="CmSite">
  6017. <PropertyRef Name="SiteId" />
  6018. </Principal>
  6019. <Dependent Role="CmPatrolSchedule">
  6020. <PropertyRef Name="SiteId" />
  6021. </Dependent>
  6022. </ReferentialConstraint>
  6023. </Association>
  6024. <Association Name="FK_CmPatrolType_CmSite">
  6025. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6026. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="*" />
  6027. <ReferentialConstraint>
  6028. <Principal Role="CmSite">
  6029. <PropertyRef Name="SiteId" />
  6030. </Principal>
  6031. <Dependent Role="CmPatrolType">
  6032. <PropertyRef Name="SiteId" />
  6033. </Dependent>
  6034. </ReferentialConstraint>
  6035. </Association>
  6036. <Association Name="FK__CmPositio__SiteI__6A70BD6B">
  6037. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6038. <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
  6039. <ReferentialConstraint>
  6040. <Principal Role="CmSite">
  6041. <PropertyRef Name="SiteId" />
  6042. </Principal>
  6043. <Dependent Role="CmPosition">
  6044. <PropertyRef Name="SiteId" />
  6045. </Dependent>
  6046. </ReferentialConstraint>
  6047. </Association>
  6048. <Association Name="FK__CmUserPos__SiteI__44952D46">
  6049. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6050. <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
  6051. <ReferentialConstraint>
  6052. <Principal Role="CmSite">
  6053. <PropertyRef Name="SiteId" />
  6054. </Principal>
  6055. <Dependent Role="CmPosition">
  6056. <PropertyRef Name="SiteId" />
  6057. </Dependent>
  6058. </ReferentialConstraint>
  6059. </Association>
  6060. <Association Name="FK__CmUserGro__SiteI__53D770D6">
  6061. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6062. <End Type="iBemsModel.CmUserGroup" Role="CmUserGroup" Multiplicity="*" />
  6063. <ReferentialConstraint>
  6064. <Principal Role="CmSite">
  6065. <PropertyRef Name="SiteId" />
  6066. </Principal>
  6067. <Dependent Role="CmUserGroup">
  6068. <PropertyRef Name="SiteId" />
  6069. </Dependent>
  6070. </ReferentialConstraint>
  6071. </Association>
  6072. <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
  6073. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6074. <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
  6075. <ReferentialConstraint>
  6076. <Principal Role="CmSite">
  6077. <PropertyRef Name="SiteId" />
  6078. </Principal>
  6079. <Dependent Role="FmsDrawingCodeGroup">
  6080. <PropertyRef Name="SiteId" />
  6081. </Dependent>
  6082. </ReferentialConstraint>
  6083. </Association>
  6084. <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
  6085. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6086. <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
  6087. <ReferentialConstraint>
  6088. <Principal Role="CmSite">
  6089. <PropertyRef Name="SiteId" />
  6090. </Principal>
  6091. <Dependent Role="FmsDrawingCodeType">
  6092. <PropertyRef Name="SiteId" />
  6093. </Dependent>
  6094. </ReferentialConstraint>
  6095. </Association>
  6096. <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
  6097. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6098. <End Type="iBemsModel.FmsDrawing" Role="FmsDrawing" Multiplicity="*" />
  6099. <ReferentialConstraint>
  6100. <Principal Role="CmSite">
  6101. <PropertyRef Name="SiteId" />
  6102. </Principal>
  6103. <Dependent Role="FmsDrawing">
  6104. <PropertyRef Name="SiteId" />
  6105. </Dependent>
  6106. </ReferentialConstraint>
  6107. </Association>
  6108. <Association Name="FK__FmsDrawin__SiteI__6F357288">
  6109. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6110. <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
  6111. <ReferentialConstraint>
  6112. <Principal Role="CmSite">
  6113. <PropertyRef Name="SiteId" />
  6114. </Principal>
  6115. <Dependent Role="FmsDrawingCodeGroup">
  6116. <PropertyRef Name="SiteId" />
  6117. </Dependent>
  6118. </ReferentialConstraint>
  6119. </Association>
  6120. <Association Name="FK__FmsDrawin__SiteI__702996C1">
  6121. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6122. <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
  6123. <ReferentialConstraint>
  6124. <Principal Role="CmSite">
  6125. <PropertyRef Name="SiteId" />
  6126. </Principal>
  6127. <Dependent Role="FmsDrawingCodeType">
  6128. <PropertyRef Name="SiteId" />
  6129. </Dependent>
  6130. </ReferentialConstraint>
  6131. </Association>
  6132. <Association Name="FK__FmsFacilityCodeClass__CmSite">
  6133. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1">
  6134. <OnDelete Action="Cascade" />
  6135. </End>
  6136. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="*" />
  6137. <ReferentialConstraint>
  6138. <Principal Role="CmSite">
  6139. <PropertyRef Name="SiteId" />
  6140. </Principal>
  6141. <Dependent Role="FmsFacilityCodeClass">
  6142. <PropertyRef Name="SiteId" />
  6143. </Dependent>
  6144. </ReferentialConstraint>
  6145. </Association>
  6146. <Association Name="FK__FmsLicense__CmSite">
  6147. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6148. <End Type="iBemsModel.FmsLicense" Role="FmsLicense" Multiplicity="*" />
  6149. <ReferentialConstraint>
  6150. <Principal Role="CmSite">
  6151. <PropertyRef Name="SiteId" />
  6152. </Principal>
  6153. <Dependent Role="FmsLicense">
  6154. <PropertyRef Name="SiteId" />
  6155. </Dependent>
  6156. </ReferentialConstraint>
  6157. </Association>
  6158. <Association Name="FK__FmsMaterialCarriedForward__CmSite">
  6159. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6160. <End Type="iBemsModel.FmsMaterialCarriedForward" Role="FmsMaterialCarriedForward" Multiplicity="*" />
  6161. <ReferentialConstraint>
  6162. <Principal Role="CmSite">
  6163. <PropertyRef Name="SiteId" />
  6164. </Principal>
  6165. <Dependent Role="FmsMaterialCarriedForward">
  6166. <PropertyRef Name="SiteId" />
  6167. </Dependent>
  6168. </ReferentialConstraint>
  6169. </Association>
  6170. <Association Name="FK__FmsMaterialCodeClass__CmSite">
  6171. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6172. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="*" />
  6173. <ReferentialConstraint>
  6174. <Principal Role="CmSite">
  6175. <PropertyRef Name="SiteId" />
  6176. </Principal>
  6177. <Dependent Role="FmsMaterialCodeClass">
  6178. <PropertyRef Name="SiteId" />
  6179. </Dependent>
  6180. </ReferentialConstraint>
  6181. </Association>
  6182. <Association Name="FK__FmsMaterialCodeLocation__CmSite">
  6183. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6184. <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="*" />
  6185. <ReferentialConstraint>
  6186. <Principal Role="CmSite">
  6187. <PropertyRef Name="SiteId" />
  6188. </Principal>
  6189. <Dependent Role="FmsMaterialCodeLocation">
  6190. <PropertyRef Name="SiteId" />
  6191. </Dependent>
  6192. </ReferentialConstraint>
  6193. </Association>
  6194. <Association Name="FK__FmsMaterialCodeType__CmSite">
  6195. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6196. <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="*" />
  6197. <ReferentialConstraint>
  6198. <Principal Role="CmSite">
  6199. <PropertyRef Name="SiteId" />
  6200. </Principal>
  6201. <Dependent Role="FmsMaterialCodeType">
  6202. <PropertyRef Name="SiteId" />
  6203. </Dependent>
  6204. </ReferentialConstraint>
  6205. </Association>
  6206. <Association Name="FK__FmsMaterialOrder__CmSite">
  6207. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6208. <End Type="iBemsModel.FmsMaterialPurchaseOrder" Role="FmsMaterialPurchaseOrder" Multiplicity="*" />
  6209. <ReferentialConstraint>
  6210. <Principal Role="CmSite">
  6211. <PropertyRef Name="SiteId" />
  6212. </Principal>
  6213. <Dependent Role="FmsMaterialPurchaseOrder">
  6214. <PropertyRef Name="SiteId" />
  6215. </Dependent>
  6216. </ReferentialConstraint>
  6217. </Association>
  6218. <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
  6219. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6220. <End Type="iBemsModel.FmsMaterialPurchaseRequest" Role="FmsMaterialPurchaseRequest" Multiplicity="*" />
  6221. <ReferentialConstraint>
  6222. <Principal Role="CmSite">
  6223. <PropertyRef Name="SiteId" />
  6224. </Principal>
  6225. <Dependent Role="FmsMaterialPurchaseRequest">
  6226. <PropertyRef Name="SiteId" />
  6227. </Dependent>
  6228. </ReferentialConstraint>
  6229. </Association>
  6230. <Association Name="FK__FmsMaterialStored__CmSite">
  6231. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6232. <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
  6233. <ReferentialConstraint>
  6234. <Principal Role="CmSite">
  6235. <PropertyRef Name="SiteId" />
  6236. </Principal>
  6237. <Dependent Role="FmsMaterialStored">
  6238. <PropertyRef Name="SiteId" />
  6239. </Dependent>
  6240. </ReferentialConstraint>
  6241. </Association>
  6242. <Association Name="FK__FmsMaterialTradeCompany__CmSite">
  6243. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6244. <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="*" />
  6245. <ReferentialConstraint>
  6246. <Principal Role="CmSite">
  6247. <PropertyRef Name="SiteId" />
  6248. </Principal>
  6249. <Dependent Role="FmsMaterialTradeCompany">
  6250. <PropertyRef Name="SiteId" />
  6251. </Dependent>
  6252. </ReferentialConstraint>
  6253. </Association>
  6254. <Association Name="FK__FmsMaterialWarehouse__CmSite">
  6255. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6256. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="*" />
  6257. <ReferentialConstraint>
  6258. <Principal Role="CmSite">
  6259. <PropertyRef Name="SiteId" />
  6260. </Principal>
  6261. <Dependent Role="FmsMaterialWarehouse">
  6262. <PropertyRef Name="SiteId" />
  6263. </Dependent>
  6264. </ReferentialConstraint>
  6265. </Association>
  6266. <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
  6267. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6268. <End Type="iBemsModel.FmsWorkCodeCauseClass" Role="FmsWorkCodeCauseClass" Multiplicity="*" />
  6269. <ReferentialConstraint>
  6270. <Principal Role="CmSite">
  6271. <PropertyRef Name="SiteId" />
  6272. </Principal>
  6273. <Dependent Role="FmsWorkCodeCauseClass">
  6274. <PropertyRef Name="SiteId" />
  6275. </Dependent>
  6276. </ReferentialConstraint>
  6277. </Association>
  6278. <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
  6279. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6280. <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="*" />
  6281. <ReferentialConstraint>
  6282. <Principal Role="CmSite">
  6283. <PropertyRef Name="SiteId" />
  6284. </Principal>
  6285. <Dependent Role="FmsWorkCodeCycleUnit">
  6286. <PropertyRef Name="SiteId" />
  6287. </Dependent>
  6288. </ReferentialConstraint>
  6289. </Association>
  6290. <Association Name="FK__FmsWorkCodeEmergency__CmSite">
  6291. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6292. <End Type="iBemsModel.FmsWorkCodeEmergency" Role="FmsWorkCodeEmergency" Multiplicity="*" />
  6293. <ReferentialConstraint>
  6294. <Principal Role="CmSite">
  6295. <PropertyRef Name="SiteId" />
  6296. </Principal>
  6297. <Dependent Role="FmsWorkCodeEmergency">
  6298. <PropertyRef Name="SiteId" />
  6299. </Dependent>
  6300. </ReferentialConstraint>
  6301. </Association>
  6302. <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
  6303. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6304. <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="*" />
  6305. <ReferentialConstraint>
  6306. <Principal Role="CmSite">
  6307. <PropertyRef Name="SiteId" />
  6308. </Principal>
  6309. <Dependent Role="FmsWorkCodeHolidayWorkType">
  6310. <PropertyRef Name="SiteId" />
  6311. </Dependent>
  6312. </ReferentialConstraint>
  6313. </Association>
  6314. <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  6315. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6316. <End Type="iBemsModel.FmsWorkCodeLegalInspectionAgency" Role="FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
  6317. <ReferentialConstraint>
  6318. <Principal Role="CmSite">
  6319. <PropertyRef Name="SiteId" />
  6320. </Principal>
  6321. <Dependent Role="FmsWorkCodeLegalInspectionAgency">
  6322. <PropertyRef Name="SiteId" />
  6323. </Dependent>
  6324. </ReferentialConstraint>
  6325. </Association>
  6326. <Association Name="FK__FmsWorkOrder__CmSite">
  6327. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6328. <End Type="iBemsModel.FmsWorkOrder" Role="FmsWorkOrder" Multiplicity="*" />
  6329. <ReferentialConstraint>
  6330. <Principal Role="CmSite">
  6331. <PropertyRef Name="SiteId" />
  6332. </Principal>
  6333. <Dependent Role="FmsWorkOrder">
  6334. <PropertyRef Name="SiteId" />
  6335. </Dependent>
  6336. </ReferentialConstraint>
  6337. </Association>
  6338. <Association Name="FK__FmsWorkRequest__CmSite">
  6339. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6340. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  6341. <ReferentialConstraint>
  6342. <Principal Role="CmSite">
  6343. <PropertyRef Name="SiteId" />
  6344. </Principal>
  6345. <Dependent Role="FmsWorkRequest">
  6346. <PropertyRef Name="SiteId" />
  6347. </Dependent>
  6348. </ReferentialConstraint>
  6349. </Association>
  6350. <Association Name="FK_CmZoneTempHumiSet_CmSite">
  6351. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6352. <End Type="iBemsModel.CmZoneTempHumiSet" Role="CmZoneTempHumiSet" Multiplicity="*" />
  6353. <ReferentialConstraint>
  6354. <Principal Role="CmSite">
  6355. <PropertyRef Name="SiteId" />
  6356. </Principal>
  6357. <Dependent Role="CmZoneTempHumiSet">
  6358. <PropertyRef Name="SiteId" />
  6359. </Dependent>
  6360. </ReferentialConstraint>
  6361. </Association>
  6362. <Association Name="FK_FmsMaterial_CmSite">
  6363. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6364. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  6365. <ReferentialConstraint>
  6366. <Principal Role="CmSite">
  6367. <PropertyRef Name="SiteId" />
  6368. </Principal>
  6369. <Dependent Role="FmsMaterial">
  6370. <PropertyRef Name="SiteId" />
  6371. </Dependent>
  6372. </ReferentialConstraint>
  6373. </Association>
  6374. <Association Name="FK_FmsMaterialRelease_CmSite">
  6375. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6376. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  6377. <ReferentialConstraint>
  6378. <Principal Role="CmSite">
  6379. <PropertyRef Name="SiteId" />
  6380. </Principal>
  6381. <Dependent Role="FmsMaterialRelease">
  6382. <PropertyRef Name="SiteId" />
  6383. </Dependent>
  6384. </ReferentialConstraint>
  6385. </Association>
  6386. <EntityType Name="FmsReport">
  6387. <Key>
  6388. <PropertyRef Name="SiteId" />
  6389. <PropertyRef Name="RId" />
  6390. </Key>
  6391. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6392. <Property Name="RId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  6393. <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  6394. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  6395. <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  6396. <Property Name="FileId" Type="Int32" />
  6397. <Property Name="MakeDate" Type="DateTime" Nullable="false" Precision="3" />
  6398. <Property Name="ConfirmUserId1" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  6399. <Property Name="ConfirmUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  6400. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  6401. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="FmsReport" ToRole="CmBusinessField" />
  6402. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="FmsReport" ToRole="CmFile" />
  6403. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="FmsReport" ToRole="CmSite" />
  6404. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="FmsReport" ToRole="CmUser" />
  6405. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="FmsReport" ToRole="CmUser" />
  6406. <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="FmsReport" ToRole="CmUser" />
  6407. </EntityType>
  6408. <Association Name="FK_FmsReport_CmBusinessField">
  6409. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  6410. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  6411. <ReferentialConstraint>
  6412. <Principal Role="CmBusinessField">
  6413. <PropertyRef Name="SiteId" />
  6414. <PropertyRef Name="BusinessFieldId" />
  6415. </Principal>
  6416. <Dependent Role="FmsReport">
  6417. <PropertyRef Name="SiteId" />
  6418. <PropertyRef Name="BusinessFieldId" />
  6419. </Dependent>
  6420. </ReferentialConstraint>
  6421. </Association>
  6422. <Association Name="FK_FmsReport_CmFile">
  6423. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  6424. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  6425. <ReferentialConstraint>
  6426. <Principal Role="CmFile">
  6427. <PropertyRef Name="SiteId" />
  6428. <PropertyRef Name="FileId" />
  6429. </Principal>
  6430. <Dependent Role="FmsReport">
  6431. <PropertyRef Name="SiteId" />
  6432. <PropertyRef Name="FileId" />
  6433. </Dependent>
  6434. </ReferentialConstraint>
  6435. </Association>
  6436. <Association Name="FK_FmsReport_CmSite">
  6437. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6438. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  6439. <ReferentialConstraint>
  6440. <Principal Role="CmSite">
  6441. <PropertyRef Name="SiteId" />
  6442. </Principal>
  6443. <Dependent Role="FmsReport">
  6444. <PropertyRef Name="SiteId" />
  6445. </Dependent>
  6446. </ReferentialConstraint>
  6447. </Association>
  6448. <Association Name="FK_FmsReport_CmUser">
  6449. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  6450. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  6451. <ReferentialConstraint>
  6452. <Principal Role="CmUser">
  6453. <PropertyRef Name="SiteId" />
  6454. <PropertyRef Name="UserId" />
  6455. </Principal>
  6456. <Dependent Role="FmsReport">
  6457. <PropertyRef Name="SiteId" />
  6458. <PropertyRef Name="RegisterUserId" />
  6459. </Dependent>
  6460. </ReferentialConstraint>
  6461. </Association>
  6462. <Association Name="FK_FmsReport_CmUser1">
  6463. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  6464. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  6465. <ReferentialConstraint>
  6466. <Principal Role="CmUser">
  6467. <PropertyRef Name="SiteId" />
  6468. <PropertyRef Name="UserId" />
  6469. </Principal>
  6470. <Dependent Role="FmsReport">
  6471. <PropertyRef Name="SiteId" />
  6472. <PropertyRef Name="ConfirmUserId1" />
  6473. </Dependent>
  6474. </ReferentialConstraint>
  6475. </Association>
  6476. <Association Name="FK_FmsReport_CmUser2">
  6477. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  6478. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  6479. <ReferentialConstraint>
  6480. <Principal Role="CmUser">
  6481. <PropertyRef Name="SiteId" />
  6482. <PropertyRef Name="UserId" />
  6483. </Principal>
  6484. <Dependent Role="FmsReport">
  6485. <PropertyRef Name="SiteId" />
  6486. <PropertyRef Name="ConfirmUserId2" />
  6487. </Dependent>
  6488. </ReferentialConstraint>
  6489. </Association>
  6490. <EntityType Name="CmServiceEnergyCalcMonth">
  6491. <Key>
  6492. <PropertyRef Name="SiteId" />
  6493. <PropertyRef Name="calDate" />
  6494. <PropertyRef Name="ServiceTypeId" />
  6495. </Key>
  6496. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6497. <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
  6498. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  6499. <Property Name="Value" Type="Double" />
  6500. </EntityType>
  6501. <EntityType Name="CmServiceEnergyCalcDay">
  6502. <Key>
  6503. <PropertyRef Name="SiteId" />
  6504. <PropertyRef Name="calDate" />
  6505. <PropertyRef Name="ServiceTypeId" />
  6506. </Key>
  6507. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6508. <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
  6509. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  6510. <Property Name="Value" Type="Double" />
  6511. </EntityType>
  6512. <EntityType Name="CmPatrolHistory">
  6513. <Key>
  6514. <PropertyRef Name="PatrolHistoryId" />
  6515. </Key>
  6516. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6517. <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  6518. <Property Name="ScheduleId" Type="Int32" Nullable="false" />
  6519. <Property Name="startDate" Type="DateTime" Nullable="false" Precision="3" />
  6520. <Property Name="endDate" Type="DateTime" Precision="3" />
  6521. <Property Name="resultTypeId" Type="Int32" Nullable="false" />
  6522. <Property Name="resultDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
  6523. <Property Name="resultPosCnt" Type="Int32" />
  6524. <Property Name="resultNormalCnt" Type="Int32" />
  6525. <Property Name="resultAbnormalCnt" Type="Int32" />
  6526. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolHistory" ToRole="CmPatrolSchedule" />
  6527. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolHistory" ToRole="CmPatrolType" />
  6528. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmPatrolHistory" ToRole="CmSite" />
  6529. </EntityType>
  6530. <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
  6531. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="1" />
  6532. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  6533. <ReferentialConstraint>
  6534. <Principal Role="CmPatrolSchedule">
  6535. <PropertyRef Name="SiteId" />
  6536. <PropertyRef Name="ScheduleId" />
  6537. </Principal>
  6538. <Dependent Role="CmPatrolHistory">
  6539. <PropertyRef Name="SiteId" />
  6540. <PropertyRef Name="ScheduleId" />
  6541. </Dependent>
  6542. </ReferentialConstraint>
  6543. </Association>
  6544. <Association Name="FK_CmPatrolHistory_CmPatrolType">
  6545. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
  6546. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  6547. <ReferentialConstraint>
  6548. <Principal Role="CmPatrolType">
  6549. <PropertyRef Name="SiteId" />
  6550. <PropertyRef Name="PatrolTypeId" />
  6551. </Principal>
  6552. <Dependent Role="CmPatrolHistory">
  6553. <PropertyRef Name="SiteId" />
  6554. <PropertyRef Name="resultTypeId" />
  6555. </Dependent>
  6556. </ReferentialConstraint>
  6557. </Association>
  6558. <Association Name="FK_CmPatrolHistory_CmSite">
  6559. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6560. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  6561. <ReferentialConstraint>
  6562. <Principal Role="CmSite">
  6563. <PropertyRef Name="SiteId" />
  6564. </Principal>
  6565. <Dependent Role="CmPatrolHistory">
  6566. <PropertyRef Name="SiteId" />
  6567. </Dependent>
  6568. </ReferentialConstraint>
  6569. </Association>
  6570. <EntityType Name="BemsReportFormat">
  6571. <Key>
  6572. <PropertyRef Name="ReportFormatId" />
  6573. <PropertyRef Name="parts" />
  6574. </Key>
  6575. <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
  6576. <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  6577. <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  6578. <Property Name="parts" Type="Int32" Nullable="false" />
  6579. </EntityType>
  6580. <EntityType Name="FmsWorkSchedule">
  6581. <Key>
  6582. <PropertyRef Name="SiteId" />
  6583. <PropertyRef Name="WorkScheduleId" />
  6584. </Key>
  6585. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6586. <Property Name="WorkScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  6587. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  6588. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  6589. <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
  6590. <Property Name="InspectionAgencyId" Type="Int32" />
  6591. <Property Name="CycleSize" Type="Int32" Nullable="false" />
  6592. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  6593. <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
  6594. <Property Name="WorkDueDate" Type="DateTime" Nullable="false" Precision="3" />
  6595. <Property Name="UpdateUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  6596. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  6597. <Property Name="IsAutoOrder" Type="Boolean" Nullable="false" />
  6598. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  6599. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK__FmsWorkSchedule__CmBusinessField" FromRole="FmsWorkSchedule" ToRole="CmBusinessField" />
  6600. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__FmsWorkSchedule__CmUser" FromRole="FmsWorkSchedule" ToRole="CmUser" />
  6601. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeCycleUnit" />
  6602. <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeHolidayWorkType" />
  6603. <NavigationProperty Name="FmsWorkCodeType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeType" />
  6604. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkRequest" />
  6605. <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkScheduleToFacility" />
  6606. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="FmsWorkSchedule" ToRole="CmPartner" />
  6607. </EntityType>
  6608. <Association Name="FK__FmsWorkSchedule__CmBusinessField">
  6609. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  6610. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  6611. <ReferentialConstraint>
  6612. <Principal Role="CmBusinessField">
  6613. <PropertyRef Name="SiteId" />
  6614. <PropertyRef Name="BusinessFieldId" />
  6615. </Principal>
  6616. <Dependent Role="FmsWorkSchedule">
  6617. <PropertyRef Name="SiteId" />
  6618. <PropertyRef Name="BusinessFieldId" />
  6619. </Dependent>
  6620. </ReferentialConstraint>
  6621. </Association>
  6622. <Association Name="FK__FmsWorkSchedule__CmUser">
  6623. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  6624. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  6625. <ReferentialConstraint>
  6626. <Principal Role="CmUser">
  6627. <PropertyRef Name="SiteId" />
  6628. <PropertyRef Name="UserId" />
  6629. </Principal>
  6630. <Dependent Role="FmsWorkSchedule">
  6631. <PropertyRef Name="SiteId" />
  6632. <PropertyRef Name="UpdateUserId" />
  6633. </Dependent>
  6634. </ReferentialConstraint>
  6635. </Association>
  6636. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  6637. <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="1" />
  6638. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  6639. <ReferentialConstraint>
  6640. <Principal Role="FmsWorkCodeCycleUnit">
  6641. <PropertyRef Name="SiteId" />
  6642. <PropertyRef Name="CycleUnitId" />
  6643. </Principal>
  6644. <Dependent Role="FmsWorkSchedule">
  6645. <PropertyRef Name="SiteId" />
  6646. <PropertyRef Name="CycleUnitId" />
  6647. </Dependent>
  6648. </ReferentialConstraint>
  6649. </Association>
  6650. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  6651. <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="1" />
  6652. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  6653. <ReferentialConstraint>
  6654. <Principal Role="FmsWorkCodeHolidayWorkType">
  6655. <PropertyRef Name="SiteId" />
  6656. <PropertyRef Name="HolidayWorkTypeId" />
  6657. </Principal>
  6658. <Dependent Role="FmsWorkSchedule">
  6659. <PropertyRef Name="SiteId" />
  6660. <PropertyRef Name="HolidayWorkTypeId" />
  6661. </Dependent>
  6662. </ReferentialConstraint>
  6663. </Association>
  6664. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  6665. <End Type="iBemsModel.FmsWorkCodeType" Role="FmsWorkCodeType" Multiplicity="1" />
  6666. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  6667. <ReferentialConstraint>
  6668. <Principal Role="FmsWorkCodeType">
  6669. <PropertyRef Name="WorkTypeId" />
  6670. </Principal>
  6671. <Dependent Role="FmsWorkSchedule">
  6672. <PropertyRef Name="WorkTypeId" />
  6673. </Dependent>
  6674. </ReferentialConstraint>
  6675. </Association>
  6676. <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
  6677. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="0..1" />
  6678. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  6679. <ReferentialConstraint>
  6680. <Principal Role="FmsWorkSchedule">
  6681. <PropertyRef Name="SiteId" />
  6682. <PropertyRef Name="WorkScheduleId" />
  6683. </Principal>
  6684. <Dependent Role="FmsWorkRequest">
  6685. <PropertyRef Name="SiteId" />
  6686. <PropertyRef Name="WorkScheduleId" />
  6687. </Dependent>
  6688. </ReferentialConstraint>
  6689. </Association>
  6690. <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  6691. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="1" />
  6692. <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
  6693. <ReferentialConstraint>
  6694. <Principal Role="FmsWorkSchedule">
  6695. <PropertyRef Name="SiteId" />
  6696. <PropertyRef Name="WorkScheduleId" />
  6697. </Principal>
  6698. <Dependent Role="FmsWorkScheduleToFacility">
  6699. <PropertyRef Name="SiteId" />
  6700. <PropertyRef Name="WorkScheduleId" />
  6701. </Dependent>
  6702. </ReferentialConstraint>
  6703. </Association>
  6704. <EntityType Name="CmMenu">
  6705. <Key>
  6706. <PropertyRef Name="SiteId" />
  6707. <PropertyRef Name="MenuId" />
  6708. </Key>
  6709. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6710. <Property Name="MenuId" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  6711. <Property Name="Used" Type="Boolean" />
  6712. <Property Name="MenuPath" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  6713. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6714. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmMenu" ToRole="CmSite" />
  6715. </EntityType>
  6716. <Association Name="FK_FmsWorkResultCheckItem_CmFile">
  6717. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  6718. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  6719. <ReferentialConstraint>
  6720. <Principal Role="CmFile">
  6721. <PropertyRef Name="SiteId" />
  6722. <PropertyRef Name="FileId" />
  6723. </Principal>
  6724. <Dependent Role="FmsWorkResultCheckItem">
  6725. <PropertyRef Name="SiteId" />
  6726. <PropertyRef Name="FileId1" />
  6727. </Dependent>
  6728. </ReferentialConstraint>
  6729. </Association>
  6730. <Association Name="FK_FmsWorkResultCheckItem_CmFile1">
  6731. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  6732. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  6733. <ReferentialConstraint>
  6734. <Principal Role="CmFile">
  6735. <PropertyRef Name="SiteId" />
  6736. <PropertyRef Name="FileId" />
  6737. </Principal>
  6738. <Dependent Role="FmsWorkResultCheckItem">
  6739. <PropertyRef Name="SiteId" />
  6740. <PropertyRef Name="FileId2" />
  6741. </Dependent>
  6742. </ReferentialConstraint>
  6743. </Association>
  6744. <Association Name="FK_CmMenu_CmSite">
  6745. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6746. <End Type="iBemsModel.CmMenu" Role="CmMenu" Multiplicity="*" />
  6747. <ReferentialConstraint>
  6748. <Principal Role="CmSite">
  6749. <PropertyRef Name="SiteId" />
  6750. </Principal>
  6751. <Dependent Role="CmMenu">
  6752. <PropertyRef Name="SiteId" />
  6753. </Dependent>
  6754. </ReferentialConstraint>
  6755. </Association>
  6756. <EntityType Name="BemsChartInfo">
  6757. <Key>
  6758. <PropertyRef Name="SiteId" />
  6759. <PropertyRef Name="FacilityTypeId" />
  6760. <PropertyRef Name="ChartId" />
  6761. </Key>
  6762. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6763. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  6764. <Property Name="ChartId" Type="Int32" Nullable="false" />
  6765. <Property Name="LAxTitle" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  6766. <Property Name="RAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6767. <Property Name="XAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6768. <Property Name="XSFmId" Type="Int32" />
  6769. <Property Name="XSType" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6770. <Property Name="LSFmId1" Type="Int32" Nullable="false" />
  6771. <Property Name="LSName1" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  6772. <Property Name="LSType1" Type="String" Nullable="false" MaxLength="16" FixedLength="false" Unicode="true" />
  6773. <Property Name="LSFmId2" Type="Int32" />
  6774. <Property Name="LSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6775. <Property Name="LSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6776. <Property Name="LSFmId3" Type="Int32" />
  6777. <Property Name="LSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6778. <Property Name="LSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6779. <Property Name="LSFmId4" Type="Int32" />
  6780. <Property Name="LSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6781. <Property Name="LSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6782. <Property Name="RSFmId1" Type="Int32" />
  6783. <Property Name="RSName1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6784. <Property Name="RSType1" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6785. <Property Name="RSFmId2" Type="Int32" />
  6786. <Property Name="RSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6787. <Property Name="RSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6788. <Property Name="RSFmId3" Type="Int32" />
  6789. <Property Name="RSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6790. <Property Name="RSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6791. <Property Name="RSFmId4" Type="Int32" />
  6792. <Property Name="RSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6793. <Property Name="RSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6794. <Property Name="Title" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  6795. <Property Name="UseX" Type="Boolean" />
  6796. <Property Name="UseLAxMinMax" Type="Boolean" />
  6797. <Property Name="UseRAxMinMax" Type="Boolean" />
  6798. <Property Name="UseXAxMinMax" Type="Boolean" />
  6799. <Property Name="LAxMin" Type="Double" />
  6800. <Property Name="LAxMax" Type="Double" />
  6801. <Property Name="RAxMin" Type="Double" />
  6802. <Property Name="RAxMax" Type="Double" />
  6803. <Property Name="XAxMin" Type="Double" />
  6804. <Property Name="XAxMax" Type="Double" />
  6805. <Property Name="Palette" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  6806. <Property Name="UseChart" Type="Boolean" />
  6807. <Property Name="UseLCTLine" Type="Boolean" Nullable="false" />
  6808. <Property Name="LCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6809. <Property Name="LCTLineValue" Type="Double" />
  6810. <Property Name="UseRCTLine" Type="Boolean" Nullable="false" />
  6811. <Property Name="RCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6812. <Property Name="RCTLineValue" Type="Double" />
  6813. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsChartInfo" ToRole="BemsFacilityType" />
  6814. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="BemsChartInfo" ToRole="CmSite" />
  6815. </EntityType>
  6816. <Association Name="FK_BemsChartInfo_BemsFacilityType">
  6817. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  6818. <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
  6819. <ReferentialConstraint>
  6820. <Principal Role="BemsFacilityType">
  6821. <PropertyRef Name="FacilityTypeId" />
  6822. </Principal>
  6823. <Dependent Role="BemsChartInfo">
  6824. <PropertyRef Name="FacilityTypeId" />
  6825. </Dependent>
  6826. </ReferentialConstraint>
  6827. </Association>
  6828. <Association Name="FK_BemsChartInfo_CmSite">
  6829. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6830. <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
  6831. <ReferentialConstraint>
  6832. <Principal Role="CmSite">
  6833. <PropertyRef Name="SiteId" />
  6834. </Principal>
  6835. <Dependent Role="BemsChartInfo">
  6836. <PropertyRef Name="SiteId" />
  6837. </Dependent>
  6838. </ReferentialConstraint>
  6839. </Association>
  6840. <EntityType Name="BemsPeopleIncrease">
  6841. <Key>
  6842. <PropertyRef Name="Date" />
  6843. <PropertyRef Name="SiteId" />
  6844. </Key>
  6845. <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
  6846. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6847. <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6848. <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6849. <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6850. <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6851. <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6852. <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6853. <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6854. <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6855. <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6856. <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6857. <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6858. <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6859. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="BemsPeopleIncrease" ToRole="CmSite" />
  6860. </EntityType>
  6861. <EntityType Name="BemsPriceCode">
  6862. <Key>
  6863. <PropertyRef Name="PriceCode" />
  6864. </Key>
  6865. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  6866. <Property Name="PriceCodeDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  6867. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  6868. <Property Name="Unit" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
  6869. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePrice" />
  6870. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePriceHistory" />
  6871. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsPriceCode" ToRole="BemsFuelType" />
  6872. </EntityType>
  6873. <EntityType Name="BemsPriceFormula">
  6874. <Key>
  6875. <PropertyRef Name="SiteId" />
  6876. <PropertyRef Name="PriceTypeId" />
  6877. <PropertyRef Name="FacilityTypeId" />
  6878. <PropertyRef Name="FormulaId" />
  6879. <PropertyRef Name="FacilityCode" />
  6880. </Key>
  6881. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6882. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  6883. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  6884. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  6885. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  6886. <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="true" />
  6887. <NavigationProperty Name="BemsFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsPriceFormula" ToRole="BemsFormula" />
  6888. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceFormula" ToRole="BemsPriceType" />
  6889. </EntityType>
  6890. <EntityType Name="BemsPriceMeta">
  6891. <Key>
  6892. <PropertyRef Name="PriceTypeId" />
  6893. <PropertyRef Name="PublishDate" />
  6894. </Key>
  6895. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  6896. <Property Name="PublishDate" Type="DateTime" Nullable="false" Precision="3" />
  6897. <Property Name="BasePrice" Type="Int32" />
  6898. <Property Name="C01_00" Type="Double" />
  6899. <Property Name="C01_01" Type="Double" />
  6900. <Property Name="C01_02" Type="Double" />
  6901. <Property Name="C01_03" Type="Double" />
  6902. <Property Name="C01_04" Type="Double" />
  6903. <Property Name="C01_05" Type="Double" />
  6904. <Property Name="C01_06" Type="Double" />
  6905. <Property Name="C01_07" Type="Double" />
  6906. <Property Name="C01_08" Type="Double" />
  6907. <Property Name="C01_09" Type="Double" />
  6908. <Property Name="C01_10" Type="Double" />
  6909. <Property Name="C01_11" Type="Double" />
  6910. <Property Name="C01_12" Type="Double" />
  6911. <Property Name="C01_13" Type="Double" />
  6912. <Property Name="C01_14" Type="Double" />
  6913. <Property Name="C01_15" Type="Double" />
  6914. <Property Name="C01_16" Type="Double" />
  6915. <Property Name="C01_17" Type="Double" />
  6916. <Property Name="C01_18" Type="Double" />
  6917. <Property Name="C01_19" Type="Double" />
  6918. <Property Name="C01_20" Type="Double" />
  6919. <Property Name="C01_21" Type="Double" />
  6920. <Property Name="C01_22" Type="Double" />
  6921. <Property Name="C01_23" Type="Double" />
  6922. <Property Name="C02_00" Type="Double" />
  6923. <Property Name="C02_01" Type="Double" />
  6924. <Property Name="C02_02" Type="Double" />
  6925. <Property Name="C02_03" Type="Double" />
  6926. <Property Name="C02_04" Type="Double" />
  6927. <Property Name="C02_05" Type="Double" />
  6928. <Property Name="C02_06" Type="Double" />
  6929. <Property Name="C02_07" Type="Double" />
  6930. <Property Name="C02_08" Type="Double" />
  6931. <Property Name="C02_09" Type="Double" />
  6932. <Property Name="C02_10" Type="Double" />
  6933. <Property Name="C02_11" Type="Double" />
  6934. <Property Name="C02_12" Type="Double" />
  6935. <Property Name="C02_13" Type="Double" />
  6936. <Property Name="C02_14" Type="Double" />
  6937. <Property Name="C02_15" Type="Double" />
  6938. <Property Name="C02_16" Type="Double" />
  6939. <Property Name="C02_17" Type="Double" />
  6940. <Property Name="C02_18" Type="Double" />
  6941. <Property Name="C02_19" Type="Double" />
  6942. <Property Name="C02_20" Type="Double" />
  6943. <Property Name="C02_21" Type="Double" />
  6944. <Property Name="C02_22" Type="Double" />
  6945. <Property Name="C02_23" Type="Double" />
  6946. <Property Name="C03_00" Type="Double" />
  6947. <Property Name="C03_01" Type="Double" />
  6948. <Property Name="C03_02" Type="Double" />
  6949. <Property Name="C03_03" Type="Double" />
  6950. <Property Name="C03_04" Type="Double" />
  6951. <Property Name="C03_05" Type="Double" />
  6952. <Property Name="C03_06" Type="Double" />
  6953. <Property Name="C03_07" Type="Double" />
  6954. <Property Name="C03_08" Type="Double" />
  6955. <Property Name="C03_09" Type="Double" />
  6956. <Property Name="C03_10" Type="Double" />
  6957. <Property Name="C03_11" Type="Double" />
  6958. <Property Name="C03_12" Type="Double" />
  6959. <Property Name="C03_13" Type="Double" />
  6960. <Property Name="C03_14" Type="Double" />
  6961. <Property Name="C03_15" Type="Double" />
  6962. <Property Name="C03_16" Type="Double" />
  6963. <Property Name="C03_17" Type="Double" />
  6964. <Property Name="C03_18" Type="Double" />
  6965. <Property Name="C03_19" Type="Double" />
  6966. <Property Name="C03_20" Type="Double" />
  6967. <Property Name="C03_21" Type="Double" />
  6968. <Property Name="C03_22" Type="Double" />
  6969. <Property Name="C03_23" Type="Double" />
  6970. <Property Name="C04_00" Type="Double" />
  6971. <Property Name="C04_01" Type="Double" />
  6972. <Property Name="C04_02" Type="Double" />
  6973. <Property Name="C04_03" Type="Double" />
  6974. <Property Name="C04_04" Type="Double" />
  6975. <Property Name="C04_05" Type="Double" />
  6976. <Property Name="C04_06" Type="Double" />
  6977. <Property Name="C04_07" Type="Double" />
  6978. <Property Name="C04_08" Type="Double" />
  6979. <Property Name="C04_09" Type="Double" />
  6980. <Property Name="C04_10" Type="Double" />
  6981. <Property Name="C04_11" Type="Double" />
  6982. <Property Name="C04_12" Type="Double" />
  6983. <Property Name="C04_13" Type="Double" />
  6984. <Property Name="C04_14" Type="Double" />
  6985. <Property Name="C04_15" Type="Double" />
  6986. <Property Name="C04_16" Type="Double" />
  6987. <Property Name="C04_17" Type="Double" />
  6988. <Property Name="C04_18" Type="Double" />
  6989. <Property Name="C04_19" Type="Double" />
  6990. <Property Name="C04_20" Type="Double" />
  6991. <Property Name="C04_21" Type="Double" />
  6992. <Property Name="C04_22" Type="Double" />
  6993. <Property Name="C04_23" Type="Double" />
  6994. <Property Name="C05_00" Type="Double" />
  6995. <Property Name="C05_01" Type="Double" />
  6996. <Property Name="C05_02" Type="Double" />
  6997. <Property Name="C05_03" Type="Double" />
  6998. <Property Name="C05_04" Type="Double" />
  6999. <Property Name="C05_05" Type="Double" />
  7000. <Property Name="C05_06" Type="Double" />
  7001. <Property Name="C05_07" Type="Double" />
  7002. <Property Name="C05_08" Type="Double" />
  7003. <Property Name="C05_09" Type="Double" />
  7004. <Property Name="C05_10" Type="Double" />
  7005. <Property Name="C05_11" Type="Double" />
  7006. <Property Name="C05_12" Type="Double" />
  7007. <Property Name="C05_13" Type="Double" />
  7008. <Property Name="C05_14" Type="Double" />
  7009. <Property Name="C05_15" Type="Double" />
  7010. <Property Name="C05_16" Type="Double" />
  7011. <Property Name="C05_17" Type="Double" />
  7012. <Property Name="C05_18" Type="Double" />
  7013. <Property Name="C05_19" Type="Double" />
  7014. <Property Name="C05_20" Type="Double" />
  7015. <Property Name="C05_21" Type="Double" />
  7016. <Property Name="C05_22" Type="Double" />
  7017. <Property Name="C05_23" Type="Double" />
  7018. <Property Name="C06_00" Type="Double" />
  7019. <Property Name="C06_01" Type="Double" />
  7020. <Property Name="C06_02" Type="Double" />
  7021. <Property Name="C06_03" Type="Double" />
  7022. <Property Name="C06_04" Type="Double" />
  7023. <Property Name="C06_05" Type="Double" />
  7024. <Property Name="C06_06" Type="Double" />
  7025. <Property Name="C06_07" Type="Double" />
  7026. <Property Name="C06_08" Type="Double" />
  7027. <Property Name="C06_09" Type="Double" />
  7028. <Property Name="C06_10" Type="Double" />
  7029. <Property Name="C06_11" Type="Double" />
  7030. <Property Name="C06_12" Type="Double" />
  7031. <Property Name="C06_13" Type="Double" />
  7032. <Property Name="C06_14" Type="Double" />
  7033. <Property Name="C06_15" Type="Double" />
  7034. <Property Name="C06_16" Type="Double" />
  7035. <Property Name="C06_17" Type="Double" />
  7036. <Property Name="C06_18" Type="Double" />
  7037. <Property Name="C06_19" Type="Double" />
  7038. <Property Name="C06_20" Type="Double" />
  7039. <Property Name="C06_21" Type="Double" />
  7040. <Property Name="C06_22" Type="Double" />
  7041. <Property Name="C06_23" Type="Double" />
  7042. <Property Name="C07_00" Type="Double" />
  7043. <Property Name="C07_01" Type="Double" />
  7044. <Property Name="C07_02" Type="Double" />
  7045. <Property Name="C07_03" Type="Double" />
  7046. <Property Name="C07_04" Type="Double" />
  7047. <Property Name="C07_05" Type="Double" />
  7048. <Property Name="C07_06" Type="Double" />
  7049. <Property Name="C07_07" Type="Double" />
  7050. <Property Name="C07_08" Type="Double" />
  7051. <Property Name="C07_09" Type="Double" />
  7052. <Property Name="C07_10" Type="Double" />
  7053. <Property Name="C07_11" Type="Double" />
  7054. <Property Name="C07_12" Type="Double" />
  7055. <Property Name="C07_13" Type="Double" />
  7056. <Property Name="C07_14" Type="Double" />
  7057. <Property Name="C07_15" Type="Double" />
  7058. <Property Name="C07_16" Type="Double" />
  7059. <Property Name="C07_17" Type="Double" />
  7060. <Property Name="C07_18" Type="Double" />
  7061. <Property Name="C07_19" Type="Double" />
  7062. <Property Name="C07_20" Type="Double" />
  7063. <Property Name="C07_21" Type="Double" />
  7064. <Property Name="C07_22" Type="Double" />
  7065. <Property Name="C07_23" Type="Double" />
  7066. <Property Name="C08_00" Type="Double" />
  7067. <Property Name="C08_01" Type="Double" />
  7068. <Property Name="C08_02" Type="Double" />
  7069. <Property Name="C08_03" Type="Double" />
  7070. <Property Name="C08_04" Type="Double" />
  7071. <Property Name="C08_05" Type="Double" />
  7072. <Property Name="C08_06" Type="Double" />
  7073. <Property Name="C08_07" Type="Double" />
  7074. <Property Name="C08_08" Type="Double" />
  7075. <Property Name="C08_09" Type="Double" />
  7076. <Property Name="C08_10" Type="Double" />
  7077. <Property Name="C08_11" Type="Double" />
  7078. <Property Name="C08_12" Type="Double" />
  7079. <Property Name="C08_13" Type="Double" />
  7080. <Property Name="C08_14" Type="Double" />
  7081. <Property Name="C08_15" Type="Double" />
  7082. <Property Name="C08_16" Type="Double" />
  7083. <Property Name="C08_17" Type="Double" />
  7084. <Property Name="C08_18" Type="Double" />
  7085. <Property Name="C08_19" Type="Double" />
  7086. <Property Name="C08_20" Type="Double" />
  7087. <Property Name="C08_21" Type="Double" />
  7088. <Property Name="C08_22" Type="Double" />
  7089. <Property Name="C08_23" Type="Double" />
  7090. <Property Name="C09_00" Type="Double" />
  7091. <Property Name="C09_01" Type="Double" />
  7092. <Property Name="C09_02" Type="Double" />
  7093. <Property Name="C09_03" Type="Double" />
  7094. <Property Name="C09_04" Type="Double" />
  7095. <Property Name="C09_05" Type="Double" />
  7096. <Property Name="C09_06" Type="Double" />
  7097. <Property Name="C09_07" Type="Double" />
  7098. <Property Name="C09_08" Type="Double" />
  7099. <Property Name="C09_09" Type="Double" />
  7100. <Property Name="C09_10" Type="Double" />
  7101. <Property Name="C09_11" Type="Double" />
  7102. <Property Name="C09_12" Type="Double" />
  7103. <Property Name="C09_13" Type="Double" />
  7104. <Property Name="C09_14" Type="Double" />
  7105. <Property Name="C09_15" Type="Double" />
  7106. <Property Name="C09_16" Type="Double" />
  7107. <Property Name="C09_17" Type="Double" />
  7108. <Property Name="C09_18" Type="Double" />
  7109. <Property Name="C09_19" Type="Double" />
  7110. <Property Name="C09_20" Type="Double" />
  7111. <Property Name="C09_21" Type="Double" />
  7112. <Property Name="C09_22" Type="Double" />
  7113. <Property Name="C09_23" Type="Double" />
  7114. <Property Name="C10_00" Type="Double" />
  7115. <Property Name="C10_01" Type="Double" />
  7116. <Property Name="C10_02" Type="Double" />
  7117. <Property Name="C10_03" Type="Double" />
  7118. <Property Name="C10_04" Type="Double" />
  7119. <Property Name="C10_05" Type="Double" />
  7120. <Property Name="C10_06" Type="Double" />
  7121. <Property Name="C10_07" Type="Double" />
  7122. <Property Name="C10_08" Type="Double" />
  7123. <Property Name="C10_09" Type="Double" />
  7124. <Property Name="C10_10" Type="Double" />
  7125. <Property Name="C10_11" Type="Double" />
  7126. <Property Name="C10_12" Type="Double" />
  7127. <Property Name="C10_13" Type="Double" />
  7128. <Property Name="C10_14" Type="Double" />
  7129. <Property Name="C10_15" Type="Double" />
  7130. <Property Name="C10_16" Type="Double" />
  7131. <Property Name="C10_17" Type="Double" />
  7132. <Property Name="C10_18" Type="Double" />
  7133. <Property Name="C10_19" Type="Double" />
  7134. <Property Name="C10_20" Type="Double" />
  7135. <Property Name="C10_21" Type="Double" />
  7136. <Property Name="C10_22" Type="Double" />
  7137. <Property Name="C10_23" Type="Double" />
  7138. <Property Name="C11_00" Type="Double" />
  7139. <Property Name="C11_01" Type="Double" />
  7140. <Property Name="C11_02" Type="Double" />
  7141. <Property Name="C11_03" Type="Double" />
  7142. <Property Name="C11_04" Type="Double" />
  7143. <Property Name="C11_05" Type="Double" />
  7144. <Property Name="C11_06" Type="Double" />
  7145. <Property Name="C11_07" Type="Double" />
  7146. <Property Name="C11_08" Type="Double" />
  7147. <Property Name="C11_09" Type="Double" />
  7148. <Property Name="C11_10" Type="Double" />
  7149. <Property Name="C11_11" Type="Double" />
  7150. <Property Name="C11_12" Type="Double" />
  7151. <Property Name="C11_13" Type="Double" />
  7152. <Property Name="C11_14" Type="Double" />
  7153. <Property Name="C11_15" Type="Double" />
  7154. <Property Name="C11_16" Type="Double" />
  7155. <Property Name="C11_17" Type="Double" />
  7156. <Property Name="C11_18" Type="Double" />
  7157. <Property Name="C11_19" Type="Double" />
  7158. <Property Name="C11_20" Type="Double" />
  7159. <Property Name="C11_21" Type="Double" />
  7160. <Property Name="C11_22" Type="Double" />
  7161. <Property Name="C11_23" Type="Double" />
  7162. <Property Name="C12_00" Type="Double" />
  7163. <Property Name="C12_01" Type="Double" />
  7164. <Property Name="C12_02" Type="Double" />
  7165. <Property Name="C12_03" Type="Double" />
  7166. <Property Name="C12_04" Type="Double" />
  7167. <Property Name="C12_05" Type="Double" />
  7168. <Property Name="C12_06" Type="Double" />
  7169. <Property Name="C12_07" Type="Double" />
  7170. <Property Name="C12_08" Type="Double" />
  7171. <Property Name="C12_09" Type="Double" />
  7172. <Property Name="C12_10" Type="Double" />
  7173. <Property Name="C12_11" Type="Double" />
  7174. <Property Name="C12_12" Type="Double" />
  7175. <Property Name="C12_13" Type="Double" />
  7176. <Property Name="C12_14" Type="Double" />
  7177. <Property Name="C12_15" Type="Double" />
  7178. <Property Name="C12_16" Type="Double" />
  7179. <Property Name="C12_17" Type="Double" />
  7180. <Property Name="C12_18" Type="Double" />
  7181. <Property Name="C12_19" Type="Double" />
  7182. <Property Name="C12_20" Type="Double" />
  7183. <Property Name="C12_21" Type="Double" />
  7184. <Property Name="C12_22" Type="Double" />
  7185. <Property Name="C12_23" Type="Double" />
  7186. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceMeta" ToRole="BemsPriceType" />
  7187. </EntityType>
  7188. <EntityType Name="BemsPriceType">
  7189. <Key>
  7190. <PropertyRef Name="PriceTypeId" />
  7191. </Key>
  7192. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  7193. <Property Name="PriceTypeIdDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  7194. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  7195. <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceFormula" />
  7196. <NavigationProperty Name="BemsPriceMeta" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceMeta" />
  7197. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePriceHistory" />
  7198. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePrice" />
  7199. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsPriceType" ToRole="BemsFuelType" />
  7200. </EntityType>
  7201. <EntityType Name="BemsRentalRate">
  7202. <Key>
  7203. <PropertyRef Name="Date" />
  7204. <PropertyRef Name="SiteId" />
  7205. </Key>
  7206. <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
  7207. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7208. <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7209. <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7210. <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7211. <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7212. <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7213. <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7214. <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7215. <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7216. <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7217. <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7218. <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7219. <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7220. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="BemsRentalRate" ToRole="CmSite" />
  7221. </EntityType>
  7222. <EntityType Name="BemsSitePrice">
  7223. <Key>
  7224. <PropertyRef Name="SiteID" />
  7225. <PropertyRef Name="FuelTypeId" />
  7226. <PropertyRef Name="PriceTypeId" />
  7227. <PropertyRef Name="PriceCode" />
  7228. </Key>
  7229. <Property Name="SiteID" Type="Int32" Nullable="false" />
  7230. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  7231. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  7232. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  7233. <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
  7234. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsSitePrice" ToRole="BemsPriceCode" />
  7235. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="BemsSitePrice" ToRole="CmSite" />
  7236. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsSitePrice" ToRole="BemsPriceType" />
  7237. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsSitePrice" ToRole="BemsFuelType" />
  7238. </EntityType>
  7239. <EntityType Name="BemsSitePriceHistory">
  7240. <Key>
  7241. <PropertyRef Name="SiteId" />
  7242. <PropertyRef Name="FuelTypeId" />
  7243. <PropertyRef Name="PriceTypeId" />
  7244. <PropertyRef Name="PriceCode" />
  7245. <PropertyRef Name="PayDate" />
  7246. </Key>
  7247. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7248. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  7249. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  7250. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  7251. <Property Name="PriceValue" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  7252. <Property Name="PayDate" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="false" />
  7253. <Property Name="StartDate" Type="DateTime" Precision="3" />
  7254. <Property Name="EndDate" Type="DateTime" Precision="3" />
  7255. <Property Name="PayCharge" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  7256. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsSitePriceHistory" ToRole="BemsPriceCode" />
  7257. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsSitePriceHistory" ToRole="BemsPriceType" />
  7258. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="BemsSitePriceHistory" ToRole="CmSite" />
  7259. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsSitePriceHistory" ToRole="BemsFuelType" />
  7260. </EntityType>
  7261. <Association Name="FK_BemsPriceFormula_BemsFormula">
  7262. <End Type="iBemsModel.BemsFormula" Role="BemsFormula" Multiplicity="1" />
  7263. <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
  7264. <ReferentialConstraint>
  7265. <Principal Role="BemsFormula">
  7266. <PropertyRef Name="SiteId" />
  7267. <PropertyRef Name="FacilityTypeId" />
  7268. <PropertyRef Name="FacilityCode" />
  7269. <PropertyRef Name="FormulaId" />
  7270. </Principal>
  7271. <Dependent Role="BemsPriceFormula">
  7272. <PropertyRef Name="SiteId" />
  7273. <PropertyRef Name="FacilityTypeId" />
  7274. <PropertyRef Name="FacilityCode" />
  7275. <PropertyRef Name="FormulaId" />
  7276. </Dependent>
  7277. </ReferentialConstraint>
  7278. </Association>
  7279. <Association Name="FK_BemsPeopleIncrease_CmSite">
  7280. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7281. <End Type="iBemsModel.BemsPeopleIncrease" Role="BemsPeopleIncrease" Multiplicity="*" />
  7282. <ReferentialConstraint>
  7283. <Principal Role="CmSite">
  7284. <PropertyRef Name="SiteId" />
  7285. </Principal>
  7286. <Dependent Role="BemsPeopleIncrease">
  7287. <PropertyRef Name="SiteId" />
  7288. </Dependent>
  7289. </ReferentialConstraint>
  7290. </Association>
  7291. <Association Name="FK_BemsSitePrice_BemsPriceCode">
  7292. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
  7293. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  7294. <ReferentialConstraint>
  7295. <Principal Role="BemsPriceCode">
  7296. <PropertyRef Name="PriceCode" />
  7297. </Principal>
  7298. <Dependent Role="BemsSitePrice">
  7299. <PropertyRef Name="PriceCode" />
  7300. </Dependent>
  7301. </ReferentialConstraint>
  7302. </Association>
  7303. <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
  7304. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
  7305. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  7306. <ReferentialConstraint>
  7307. <Principal Role="BemsPriceCode">
  7308. <PropertyRef Name="PriceCode" />
  7309. </Principal>
  7310. <Dependent Role="BemsSitePriceHistory">
  7311. <PropertyRef Name="PriceCode" />
  7312. </Dependent>
  7313. </ReferentialConstraint>
  7314. </Association>
  7315. <Association Name="FK_BemsPriceFormula_BemsPriceType">
  7316. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  7317. <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
  7318. <ReferentialConstraint>
  7319. <Principal Role="BemsPriceType">
  7320. <PropertyRef Name="PriceTypeId" />
  7321. </Principal>
  7322. <Dependent Role="BemsPriceFormula">
  7323. <PropertyRef Name="PriceTypeId" />
  7324. </Dependent>
  7325. </ReferentialConstraint>
  7326. </Association>
  7327. <Association Name="FK_BemsPriceMeta_BemsPriceType">
  7328. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  7329. <End Type="iBemsModel.BemsPriceMeta" Role="BemsPriceMeta" Multiplicity="*" />
  7330. <ReferentialConstraint>
  7331. <Principal Role="BemsPriceType">
  7332. <PropertyRef Name="PriceTypeId" />
  7333. </Principal>
  7334. <Dependent Role="BemsPriceMeta">
  7335. <PropertyRef Name="PriceTypeId" />
  7336. </Dependent>
  7337. </ReferentialConstraint>
  7338. </Association>
  7339. <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
  7340. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  7341. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  7342. <ReferentialConstraint>
  7343. <Principal Role="BemsPriceType">
  7344. <PropertyRef Name="PriceTypeId" />
  7345. </Principal>
  7346. <Dependent Role="BemsSitePriceHistory">
  7347. <PropertyRef Name="PriceTypeId" />
  7348. </Dependent>
  7349. </ReferentialConstraint>
  7350. </Association>
  7351. <Association Name="FK_BemsRentalRate_CmSite">
  7352. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7353. <End Type="iBemsModel.BemsRentalRate" Role="BemsRentalRate" Multiplicity="*" />
  7354. <ReferentialConstraint>
  7355. <Principal Role="CmSite">
  7356. <PropertyRef Name="SiteId" />
  7357. </Principal>
  7358. <Dependent Role="BemsRentalRate">
  7359. <PropertyRef Name="SiteId" />
  7360. </Dependent>
  7361. </ReferentialConstraint>
  7362. </Association>
  7363. <Association Name="FK_BemsSitePrice_CmSite1">
  7364. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7365. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  7366. <ReferentialConstraint>
  7367. <Principal Role="CmSite">
  7368. <PropertyRef Name="SiteId" />
  7369. </Principal>
  7370. <Dependent Role="BemsSitePrice">
  7371. <PropertyRef Name="SiteID" />
  7372. </Dependent>
  7373. </ReferentialConstraint>
  7374. </Association>
  7375. <Association Name="FK_BemsSitePriceHistory_CmSite">
  7376. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7377. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  7378. <ReferentialConstraint>
  7379. <Principal Role="CmSite">
  7380. <PropertyRef Name="SiteId" />
  7381. </Principal>
  7382. <Dependent Role="BemsSitePriceHistory">
  7383. <PropertyRef Name="SiteId" />
  7384. </Dependent>
  7385. </ReferentialConstraint>
  7386. </Association>
  7387. <Association Name="FK_BemsSitePrice_BemsPriceType">
  7388. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  7389. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  7390. <ReferentialConstraint>
  7391. <Principal Role="BemsPriceType">
  7392. <PropertyRef Name="PriceTypeId" />
  7393. </Principal>
  7394. <Dependent Role="BemsSitePrice">
  7395. <PropertyRef Name="PriceTypeId" />
  7396. </Dependent>
  7397. </ReferentialConstraint>
  7398. </Association>
  7399. <EntityType Name="BemsMonitoringPointConfig">
  7400. <Key>
  7401. <PropertyRef Name="SiteId" />
  7402. <PropertyRef Name="FacilityCode" />
  7403. <PropertyRef Name="PropertyId" />
  7404. </Key>
  7405. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7406. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7407. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  7408. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  7409. <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
  7410. <Property Name="IsSampled" Type="Boolean" Nullable="false" />
  7411. <Property Name="SaveMode" Type="Int32" Nullable="false" />
  7412. <Property Name="ControlPointName" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  7413. <Property Name="IsConverted" Type="Boolean" />
  7414. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsMonitoringPointConfig" ToRole="BemsFacilityType" />
  7415. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPointConfig" ToRole="BemsMonitoringPoint" />
  7416. </EntityType>
  7417. <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
  7418. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  7419. <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="*" />
  7420. <ReferentialConstraint>
  7421. <Principal Role="BemsFacilityType">
  7422. <PropertyRef Name="FacilityTypeId" />
  7423. </Principal>
  7424. <Dependent Role="BemsMonitoringPointConfig">
  7425. <PropertyRef Name="FacilityTypeId" />
  7426. </Dependent>
  7427. </ReferentialConstraint>
  7428. </Association>
  7429. <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  7430. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
  7431. <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="0..1" />
  7432. <ReferentialConstraint>
  7433. <Principal Role="BemsMonitoringPoint">
  7434. <PropertyRef Name="SiteId" />
  7435. <PropertyRef Name="FacilityCode" />
  7436. <PropertyRef Name="PropertyId" />
  7437. </Principal>
  7438. <Dependent Role="BemsMonitoringPointConfig">
  7439. <PropertyRef Name="SiteId" />
  7440. <PropertyRef Name="FacilityCode" />
  7441. <PropertyRef Name="PropertyId" />
  7442. </Dependent>
  7443. </ReferentialConstraint>
  7444. </Association>
  7445. <EntityType Name="BemsAlarmSetting">
  7446. <Key>
  7447. <PropertyRef Name="SiteId" />
  7448. <PropertyRef Name="FacilityTypeId" />
  7449. <PropertyRef Name="FacilityCode" />
  7450. <PropertyRef Name="PropertyId" />
  7451. <PropertyRef Name="FormulaId" />
  7452. </Key>
  7453. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7454. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7455. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  7456. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  7457. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  7458. <Property Name="FacilityName" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
  7459. <Property Name="PointName" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  7460. <Property Name="UseUpperLimit" Type="Boolean" Nullable="false" />
  7461. <Property Name="UpperLimit" Type="Double" />
  7462. <Property Name="UseLowerLimit" Type="Boolean" Nullable="false" />
  7463. <Property Name="LowerLimit" Type="Double" />
  7464. <Property Name="UseAlarm" Type="Boolean" Nullable="false" />
  7465. <Property Name="UseSMS" Type="Boolean" Nullable="false" />
  7466. <Property Name="UseEmail" Type="Boolean" Nullable="false" />
  7467. <Property Name="AlarmGroupName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  7468. <Property Name="Content" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  7469. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsAlarmSetting" ToRole="BemsFacilityType" />
  7470. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="BemsAlarmSetting" ToRole="CmSite" />
  7471. <NavigationProperty Name="BemsAlarmLog" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmSetting" ToRole="BemsAlarmLog" />
  7472. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="BemsAlarmSetting" ToRole="CmFacility" />
  7473. </EntityType>
  7474. <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
  7475. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  7476. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  7477. <ReferentialConstraint>
  7478. <Principal Role="BemsFacilityType">
  7479. <PropertyRef Name="FacilityTypeId" />
  7480. </Principal>
  7481. <Dependent Role="BemsAlarmSetting">
  7482. <PropertyRef Name="FacilityTypeId" />
  7483. </Dependent>
  7484. </ReferentialConstraint>
  7485. </Association>
  7486. <Association Name="FK_BemsAlarmSetting_CmSite1">
  7487. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7488. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  7489. <ReferentialConstraint>
  7490. <Principal Role="CmSite">
  7491. <PropertyRef Name="SiteId" />
  7492. </Principal>
  7493. <Dependent Role="BemsAlarmSetting">
  7494. <PropertyRef Name="SiteId" />
  7495. </Dependent>
  7496. </ReferentialConstraint>
  7497. </Association>
  7498. <EntityType Name="BemsAlarmLog">
  7499. <Key>
  7500. <PropertyRef Name="SiteId" />
  7501. <PropertyRef Name="FacilityTypeId" />
  7502. <PropertyRef Name="FacilityCode" />
  7503. <PropertyRef Name="PropertyId" />
  7504. <PropertyRef Name="FormulaId" />
  7505. <PropertyRef Name="CreatedDateTime" />
  7506. </Key>
  7507. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7508. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7509. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  7510. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  7511. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  7512. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  7513. <Property Name="CurrentValue" Type="Double" />
  7514. <Property Name="SMSResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
  7515. <Property Name="EmailResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
  7516. <Property Name="Conform" Type="Boolean" />
  7517. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmLog" ToRole="BemsAlarmSetting" />
  7518. </EntityType>
  7519. <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
  7520. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="1" />
  7521. <End Type="iBemsModel.BemsAlarmLog" Role="BemsAlarmLog" Multiplicity="*" />
  7522. <ReferentialConstraint>
  7523. <Principal Role="BemsAlarmSetting">
  7524. <PropertyRef Name="SiteId" />
  7525. <PropertyRef Name="FacilityTypeId" />
  7526. <PropertyRef Name="FacilityCode" />
  7527. <PropertyRef Name="PropertyId" />
  7528. <PropertyRef Name="FormulaId" />
  7529. </Principal>
  7530. <Dependent Role="BemsAlarmLog">
  7531. <PropertyRef Name="SiteId" />
  7532. <PropertyRef Name="FacilityTypeId" />
  7533. <PropertyRef Name="FacilityCode" />
  7534. <PropertyRef Name="PropertyId" />
  7535. <PropertyRef Name="FormulaId" />
  7536. </Dependent>
  7537. </ReferentialConstraint>
  7538. </Association>
  7539. <EntityType Name="BemsAlarmGroup">
  7540. <Key>
  7541. <PropertyRef Name="SiteId" />
  7542. <PropertyRef Name="AlarmGroupId" />
  7543. </Key>
  7544. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7545. <Property Name="AlarmGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  7546. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  7547. </EntityType>
  7548. <EntityType Name="BemsAlarmGroupUser">
  7549. <Key>
  7550. <PropertyRef Name="SiteId" />
  7551. <PropertyRef Name="AlarmGroupId" />
  7552. <PropertyRef Name="UserId" />
  7553. </Key>
  7554. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7555. <Property Name="AlarmGroupId" Type="Int32" Nullable="false" />
  7556. <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  7557. </EntityType>
  7558. <EntityType Name="BemsEnergyCost">
  7559. <Key>
  7560. <PropertyRef Name="SiteId" />
  7561. <PropertyRef Name="FacilityCode" />
  7562. </Key>
  7563. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7564. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7565. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  7566. <Property Name="PowerConsumption1" Type="Double" />
  7567. <Property Name="PowerConsumption2" Type="Double" />
  7568. <Property Name="GasConsumption" Type="Double" />
  7569. <Property Name="GasHeatQuantity" Type="Double" />
  7570. <Property Name="PowerPriceTypeId" Type="Int32" />
  7571. <Property Name="GasPriceTypeId" Type="Int32" />
  7572. <Property Name="IsUse" Type="Boolean" />
  7573. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="BemsEnergyCost" ToRole="CmFacility" />
  7574. </EntityType>
  7575. <EntityType Name="BemsEnergyConfigPercentMonth">
  7576. <Key>
  7577. <PropertyRef Name="SiteId" />
  7578. <PropertyRef Name="Year" />
  7579. <PropertyRef Name="Month" />
  7580. </Key>
  7581. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7582. <Property Name="Year" Type="Int32" Nullable="false" />
  7583. <Property Name="Month" Type="Int32" Nullable="false" />
  7584. <Property Name="Electricity" Type="Double" />
  7585. <Property Name="Gas" Type="Double" />
  7586. <Property Name="Water" Type="Double" />
  7587. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="BemsEnergyConfigPercentMonth" ToRole="CmSite" />
  7588. </EntityType>
  7589. <EntityType Name="BemsEnergyConfigPercentWeek">
  7590. <Key>
  7591. <PropertyRef Name="SiteId" />
  7592. <PropertyRef Name="Year" />
  7593. <PropertyRef Name="Week" />
  7594. </Key>
  7595. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7596. <Property Name="Year" Type="Int32" Nullable="false" />
  7597. <Property Name="Week" Type="Int32" Nullable="false" />
  7598. <Property Name="Electricity" Type="Double" />
  7599. <Property Name="Gas" Type="Double" />
  7600. <Property Name="Water" Type="Double" />
  7601. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="BemsEnergyConfigPercentWeek" ToRole="CmSite" />
  7602. </EntityType>
  7603. <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
  7604. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7605. <End Type="iBemsModel.BemsEnergyConfigPercentMonth" Role="BemsEnergyConfigPercentMonth" Multiplicity="*" />
  7606. <ReferentialConstraint>
  7607. <Principal Role="CmSite">
  7608. <PropertyRef Name="SiteId" />
  7609. </Principal>
  7610. <Dependent Role="BemsEnergyConfigPercentMonth">
  7611. <PropertyRef Name="SiteId" />
  7612. </Dependent>
  7613. </ReferentialConstraint>
  7614. </Association>
  7615. <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
  7616. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7617. <End Type="iBemsModel.BemsEnergyConfigPercentWeek" Role="BemsEnergyConfigPercentWeek" Multiplicity="*" />
  7618. <ReferentialConstraint>
  7619. <Principal Role="CmSite">
  7620. <PropertyRef Name="SiteId" />
  7621. </Principal>
  7622. <Dependent Role="BemsEnergyConfigPercentWeek">
  7623. <PropertyRef Name="SiteId" />
  7624. </Dependent>
  7625. </ReferentialConstraint>
  7626. </Association>
  7627. <EntityType Name="BemsEnergyDaily">
  7628. <Key>
  7629. <PropertyRef Name="SiteId" />
  7630. <PropertyRef Name="BuildingId" />
  7631. <PropertyRef Name="ServiceTypeId" />
  7632. <PropertyRef Name="FuelTypeId" />
  7633. <PropertyRef Name="CreatedDate" />
  7634. </Key>
  7635. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7636. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  7637. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  7638. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  7639. <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="0" />
  7640. <Property Name="Prediction" Type="Double" />
  7641. <Property Name="Measurement" Type="Double" />
  7642. <Property Name="Goal" Type="Double" />
  7643. <Property Name="Prediction_Regression" Type="Double" />
  7644. <Property Name="MeanT" Type="Double" />
  7645. <Property Name="HDD" Type="Double" />
  7646. <Property Name="CDD" Type="Double" />
  7647. <NavigationProperty Name="BemsServiceType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsEnergyDaily" ToRole="BemsServiceType" />
  7648. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="BemsEnergyDaily" ToRole="CmBuilding" />
  7649. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsEnergyDaily" ToRole="BemsFuelType" />
  7650. </EntityType>
  7651. <Association Name="FK__BemsEnergyDaily__BemsServiceType">
  7652. <End Type="iBemsModel.BemsServiceType" Role="BemsServiceType" Multiplicity="1" />
  7653. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  7654. <ReferentialConstraint>
  7655. <Principal Role="BemsServiceType">
  7656. <PropertyRef Name="ServiceTypeId" />
  7657. </Principal>
  7658. <Dependent Role="BemsEnergyDaily">
  7659. <PropertyRef Name="ServiceTypeId" />
  7660. </Dependent>
  7661. </ReferentialConstraint>
  7662. </Association>
  7663. <Association Name="FK__BemsEnergyDaily__CmBuilding">
  7664. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
  7665. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  7666. <ReferentialConstraint>
  7667. <Principal Role="CmBuilding">
  7668. <PropertyRef Name="SiteId" />
  7669. <PropertyRef Name="BuildingId" />
  7670. </Principal>
  7671. <Dependent Role="BemsEnergyDaily">
  7672. <PropertyRef Name="SiteId" />
  7673. <PropertyRef Name="BuildingId" />
  7674. </Dependent>
  7675. </ReferentialConstraint>
  7676. </Association>
  7677. <EntityType Name="BemsEnergyDailyRegression">
  7678. <Key>
  7679. <PropertyRef Name="SiteId" />
  7680. </Key>
  7681. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7682. <Property Name="Weekday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7683. <Property Name="Weekday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7684. <Property Name="Weekday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7685. <Property Name="Weekday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7686. <Property Name="Weekday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7687. <Property Name="Weekday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7688. <Property Name="Holiday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7689. <Property Name="Holiday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7690. <Property Name="Holiday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7691. <Property Name="Holiday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7692. <Property Name="Holiday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7693. <Property Name="Holiday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7694. <Property Name="IsRegression" Type="Boolean" />
  7695. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="BemsEnergyDailyRegression" ToRole="CmSite" />
  7696. </EntityType>
  7697. <Association Name="FK_BemsEnergyDailyRegression_CmSite">
  7698. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7699. <End Type="iBemsModel.BemsEnergyDailyRegression" Role="BemsEnergyDailyRegression" Multiplicity="0..1" />
  7700. <ReferentialConstraint>
  7701. <Principal Role="CmSite">
  7702. <PropertyRef Name="SiteId" />
  7703. </Principal>
  7704. <Dependent Role="BemsEnergyDailyRegression">
  7705. <PropertyRef Name="SiteId" />
  7706. </Dependent>
  7707. </ReferentialConstraint>
  7708. </Association>
  7709. <EntityType Name="WeatherDongNaeForecast">
  7710. <Key>
  7711. <PropertyRef Name="BaseTime" />
  7712. <PropertyRef Name="ForecastTime" />
  7713. </Key>
  7714. <Property Name="BaseTime" Type="DateTime" Nullable="false" Precision="3" />
  7715. <Property Name="nx" Type="Int32" />
  7716. <Property Name="ny" Type="Int32" />
  7717. <Property Name="ForecastTime" Type="DateTime" Nullable="false" Precision="3" />
  7718. <Property Name="POP" Type="Double" />
  7719. <Property Name="PTY" Type="Double" />
  7720. <Property Name="R06" Type="Double" />
  7721. <Property Name="REH" Type="Double" />
  7722. <Property Name="S06" Type="Double" />
  7723. <Property Name="SKY" Type="Double" />
  7724. <Property Name="T3H" Type="Double" />
  7725. <Property Name="TMN" Type="Double" />
  7726. <Property Name="TMX" Type="Double" />
  7727. <Property Name="UUU" Type="Double" />
  7728. <Property Name="VVV" Type="Double" />
  7729. <Property Name="VEC" Type="Double" />
  7730. <Property Name="WSD" Type="Double" />
  7731. <Property Name="Type" Type="Int32" />
  7732. <Property Name="DBTime" Type="DateTime" Precision="3" />
  7733. <Property Name="Version" Type="Int32" />
  7734. </EntityType>
  7735. <EntityType Name="FmsEquipmentRentInfo">
  7736. <Key>
  7737. <PropertyRef Name="SiteId" />
  7738. <PropertyRef Name="EquipmentRentId" />
  7739. </Key>
  7740. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7741. <Property Name="EquipmentRentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  7742. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  7743. <Property Name="RentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  7744. <Property Name="RegisterDate" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
  7745. <Property Name="RentDate" Type="DateTime" Precision="3" />
  7746. <Property Name="ReturnDueDate" Type="DateTime" Precision="3" />
  7747. <Property Name="ReturnFixDate" Type="DateTime" Precision="3" />
  7748. <Property Name="EquipmentStateTypeId" Type="Int16" />
  7749. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  7750. <Property Name="Title" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  7751. <Property Name="RentUser" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  7752. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
  7753. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
  7754. <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentCodeStateType" />
  7755. <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentHistory" />
  7756. </EntityType>
  7757. <Association Name="FK_FmsEquipmentRentInfo_CmUser">
  7758. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  7759. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  7760. <ReferentialConstraint>
  7761. <Principal Role="CmUser">
  7762. <PropertyRef Name="SiteId" />
  7763. <PropertyRef Name="UserId" />
  7764. </Principal>
  7765. <Dependent Role="FmsEquipmentRentInfo">
  7766. <PropertyRef Name="SiteId" />
  7767. <PropertyRef Name="RegisterUserId" />
  7768. </Dependent>
  7769. </ReferentialConstraint>
  7770. </Association>
  7771. <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
  7772. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  7773. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  7774. <ReferentialConstraint>
  7775. <Principal Role="CmUser">
  7776. <PropertyRef Name="SiteId" />
  7777. <PropertyRef Name="UserId" />
  7778. </Principal>
  7779. <Dependent Role="FmsEquipmentRentInfo">
  7780. <PropertyRef Name="SiteId" />
  7781. <PropertyRef Name="RentUserId" />
  7782. </Dependent>
  7783. </ReferentialConstraint>
  7784. </Association>
  7785. <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  7786. <End Type="iBemsModel.FmsEquipmentCodeStateType" Role="FmsEquipmentCodeStateType" Multiplicity="0..1" />
  7787. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  7788. <ReferentialConstraint>
  7789. <Principal Role="FmsEquipmentCodeStateType">
  7790. <PropertyRef Name="EquipmentStateTypeId" />
  7791. </Principal>
  7792. <Dependent Role="FmsEquipmentRentInfo">
  7793. <PropertyRef Name="EquipmentStateTypeId" />
  7794. </Dependent>
  7795. </ReferentialConstraint>
  7796. </Association>
  7797. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  7798. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="0..1">
  7799. <OnDelete Action="Cascade" />
  7800. </End>
  7801. <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
  7802. <ReferentialConstraint>
  7803. <Principal Role="FmsEquipmentRentInfo">
  7804. <PropertyRef Name="SiteId" />
  7805. <PropertyRef Name="EquipmentRentId" />
  7806. </Principal>
  7807. <Dependent Role="FmsEquipmentHistory">
  7808. <PropertyRef Name="SiteId" />
  7809. <PropertyRef Name="EquipmentRentId" />
  7810. </Dependent>
  7811. </ReferentialConstraint>
  7812. </Association>
  7813. <EntityType Name="BemsControlAHUTempConfig">
  7814. <Key>
  7815. <PropertyRef Name="SiteId" />
  7816. <PropertyRef Name="FacilityTypeId" />
  7817. <PropertyRef Name="FacilityCode" />
  7818. </Key>
  7819. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7820. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7821. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  7822. <Property Name="MaxTemperature" Type="Double" Nullable="false" />
  7823. <Property Name="MinTemperature" Type="Double" Nullable="false" />
  7824. </EntityType>
  7825. <EntityType Name="BemsFuelType">
  7826. <Key>
  7827. <PropertyRef Name="FuelTypeId" />
  7828. </Key>
  7829. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  7830. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  7831. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsEnergyDaily" />
  7832. <NavigationProperty Name="BemsFactorCo2" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorCo2" />
  7833. <NavigationProperty Name="BemsFactorToe" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorToe" />
  7834. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPoint" />
  7835. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPointBaseData" />
  7836. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="BemsFuelType" ToRole="CmFacility" />
  7837. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsNoticePriceContractType" />
  7838. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsPriceCode" />
  7839. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsFuelType" ToRole="BemsPriceType" />
  7840. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePrice" />
  7841. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePriceHistory" />
  7842. </EntityType>
  7843. <Association Name="FK__BemsEnergyDaily__BemsFuelType">
  7844. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7845. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  7846. <ReferentialConstraint>
  7847. <Principal Role="BemsFuelType">
  7848. <PropertyRef Name="FuelTypeId" />
  7849. </Principal>
  7850. <Dependent Role="BemsEnergyDaily">
  7851. <PropertyRef Name="FuelTypeId" />
  7852. </Dependent>
  7853. </ReferentialConstraint>
  7854. </Association>
  7855. <Association Name="FK__BemsFactorCo2__BemsFuelType">
  7856. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7857. <End Type="iBemsModel.BemsFactorCo2" Role="BemsFactorCo2" Multiplicity="0..1" />
  7858. <ReferentialConstraint>
  7859. <Principal Role="BemsFuelType">
  7860. <PropertyRef Name="FuelTypeId" />
  7861. </Principal>
  7862. <Dependent Role="BemsFactorCo2">
  7863. <PropertyRef Name="FuelTypeId" />
  7864. </Dependent>
  7865. </ReferentialConstraint>
  7866. </Association>
  7867. <Association Name="FK__BemsFactorToe__BemsFuelType">
  7868. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7869. <End Type="iBemsModel.BemsFactorToe" Role="BemsFactorToe" Multiplicity="0..1" />
  7870. <ReferentialConstraint>
  7871. <Principal Role="BemsFuelType">
  7872. <PropertyRef Name="FuelTypeId" />
  7873. </Principal>
  7874. <Dependent Role="BemsFactorToe">
  7875. <PropertyRef Name="FuelTypeId" />
  7876. </Dependent>
  7877. </ReferentialConstraint>
  7878. </Association>
  7879. <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
  7880. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  7881. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
  7882. <ReferentialConstraint>
  7883. <Principal Role="BemsFuelType">
  7884. <PropertyRef Name="FuelTypeId" />
  7885. </Principal>
  7886. <Dependent Role="BemsMonitoringPoint">
  7887. <PropertyRef Name="FuelTypeId" />
  7888. </Dependent>
  7889. </ReferentialConstraint>
  7890. </Association>
  7891. <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
  7892. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  7893. <End Type="iBemsModel.BemsMonitoringPointBaseData" Role="BemsMonitoringPointBaseData" Multiplicity="*" />
  7894. <ReferentialConstraint>
  7895. <Principal Role="BemsFuelType">
  7896. <PropertyRef Name="FuelTypeId" />
  7897. </Principal>
  7898. <Dependent Role="BemsMonitoringPointBaseData">
  7899. <PropertyRef Name="FuelTypeId" />
  7900. </Dependent>
  7901. </ReferentialConstraint>
  7902. </Association>
  7903. <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
  7904. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7905. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="*" />
  7906. <ReferentialConstraint>
  7907. <Principal Role="BemsFuelType">
  7908. <PropertyRef Name="FuelTypeId" />
  7909. </Principal>
  7910. <Dependent Role="BemsNoticePriceContractType">
  7911. <PropertyRef Name="FuelTypeId" />
  7912. </Dependent>
  7913. </ReferentialConstraint>
  7914. </Association>
  7915. <Association Name="FK_BemsPriceCode_BemsFuelType">
  7916. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7917. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="*" />
  7918. <ReferentialConstraint>
  7919. <Principal Role="BemsFuelType">
  7920. <PropertyRef Name="FuelTypeId" />
  7921. </Principal>
  7922. <Dependent Role="BemsPriceCode">
  7923. <PropertyRef Name="FuelTypeId" />
  7924. </Dependent>
  7925. </ReferentialConstraint>
  7926. </Association>
  7927. <Association Name="FK_BemsPriceType_BemsFuelType1">
  7928. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7929. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="*" />
  7930. <ReferentialConstraint>
  7931. <Principal Role="BemsFuelType">
  7932. <PropertyRef Name="FuelTypeId" />
  7933. </Principal>
  7934. <Dependent Role="BemsPriceType">
  7935. <PropertyRef Name="FuelTypeId" />
  7936. </Dependent>
  7937. </ReferentialConstraint>
  7938. </Association>
  7939. <Association Name="FK_BemsSitePrice_BemsFuelType">
  7940. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7941. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  7942. <ReferentialConstraint>
  7943. <Principal Role="BemsFuelType">
  7944. <PropertyRef Name="FuelTypeId" />
  7945. </Principal>
  7946. <Dependent Role="BemsSitePrice">
  7947. <PropertyRef Name="FuelTypeId" />
  7948. </Dependent>
  7949. </ReferentialConstraint>
  7950. </Association>
  7951. <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
  7952. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7953. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  7954. <ReferentialConstraint>
  7955. <Principal Role="BemsFuelType">
  7956. <PropertyRef Name="FuelTypeId" />
  7957. </Principal>
  7958. <Dependent Role="BemsSitePriceHistory">
  7959. <PropertyRef Name="FuelTypeId" />
  7960. </Dependent>
  7961. </ReferentialConstraint>
  7962. </Association>
  7963. <EntityType Name="CmFacility">
  7964. <Key>
  7965. <PropertyRef Name="SiteId" />
  7966. <PropertyRef Name="FacilityCode" />
  7967. </Key>
  7968. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7969. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7970. <Property Name="FacilityCode" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  7971. <Property Name="FirstClassId" Type="Int32" />
  7972. <Property Name="SecondClassId" Type="Int32" />
  7973. <Property Name="ThirdClassId" Type="Int32" />
  7974. <Property Name="DeviceType" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  7975. <Property Name="ParentFacilityCode" Type="Int32" />
  7976. <Property Name="Name" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
  7977. <Property Name="Nickname" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  7978. <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  7979. <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  7980. <Property Name="ManufactureDate" Type="DateTime" Precision="0" />
  7981. <Property Name="ManufactureSerial" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  7982. <Property Name="ManufactureModel" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  7983. <Property Name="Supplier" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  7984. <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  7985. <Property Name="BuildingId" Type="Int32" />
  7986. <Property Name="FloorId" Type="Int32" />
  7987. <Property Name="ZoneId" Type="Int32" />
  7988. <Property Name="InstallDate" Type="DateTime" Precision="0" />
  7989. <Property Name="OperationStartDate" Type="DateTime" Precision="0" />
  7990. <Property Name="FacilityCapacity" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  7991. <Property Name="FacilityCost" Type="Int32" />
  7992. <Property Name="FacilityCount" Type="Int32" />
  7993. <Property Name="FacilitySeviceLifeYear" Type="Int32" />
  7994. <Property Name="FacilityUsage" Type="String" MaxLength="80" FixedLength="false" Unicode="true" />
  7995. <Property Name="RatedPowerConsumption" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  7996. <Property Name="RatedCOP" Type="Double" />
  7997. <Property Name="MainContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  7998. <Property Name="SubContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  7999. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8000. <Property Name="Reserved1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8001. <Property Name="Reserved2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8002. <Property Name="IsUse" Type="Boolean" />
  8003. <Property Name="FileId" Type="Int32" />
  8004. <Property Name="IsVirtualFacility" Type="Boolean" Nullable="false" />
  8005. <Property Name="FuelTypeId" Type="Int16" />
  8006. <Property Name="ContractType" Type="Int16" />
  8007. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="CmFacility" ToRole="BemsAlarmSetting" />
  8008. <NavigationProperty Name="BemsEnergyCost" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="CmFacility" ToRole="BemsEnergyCost" />
  8009. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="CmFacility" ToRole="BemsFacilityType" />
  8010. <NavigationProperty Name="BemsFormulaParameter" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="CmFacility" ToRole="BemsFormulaParameter" />
  8011. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="CmFacility" ToRole="BemsFuelType" />
  8012. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="CmFacility" ToRole="BemsMonitoringPoint" />
  8013. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="CmFacility" ToRole="BemsNoticePriceContractType" />
  8014. <NavigationProperty Name="BemsPeakFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="CmFacility" ToRole="BemsPeakFacility" />
  8015. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmFacility" ToRole="CmBuilding" />
  8016. <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFacility" ToRole="CmFloor" />
  8017. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmFacility" ToRole="CmUser" />
  8018. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmFacility" ToRole="CmUser" />
  8019. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility" ToRole="CmFacility1" />
  8020. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility1" ToRole="CmFacility" />
  8021. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFacility" ToRole="CmFile" />
  8022. <NavigationProperty Name="CmZone" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmFacility" ToRole="CmZone" />
  8023. <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  8024. <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  8025. <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  8026. <NavigationProperty Name="CmFacilityFile" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacility" ToRole="CmFacilityFile" />
  8027. <NavigationProperty Name="FmsFacilityManual" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="CmFacility" ToRole="FmsFacilityManual" />
  8028. <NavigationProperty Name="FmsFacilityOperationItem" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="CmFacility" ToRole="FmsFacilityOperationItem" />
  8029. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultCheckItem" />
  8030. <NavigationProperty Name="FmsWorkResultToFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultToFacility" />
  8031. <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmFacility" ToRole="CmUser" />
  8032. <NavigationProperty Name="CmUser3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmFacility" ToRole="CmUser" />
  8033. <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacility" ToRole="CmFacilityTempSet" />
  8034. <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkOrderToFacility" />
  8035. <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkRequestToFacility" />
  8036. <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkScheduleToFacility" />
  8037. </EntityType>
  8038. <Association Name="FK_BemsAlarmSetting_CmFacility">
  8039. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8040. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  8041. <ReferentialConstraint>
  8042. <Principal Role="CmFacility">
  8043. <PropertyRef Name="SiteId" />
  8044. <PropertyRef Name="FacilityCode" />
  8045. </Principal>
  8046. <Dependent Role="BemsAlarmSetting">
  8047. <PropertyRef Name="SiteId" />
  8048. <PropertyRef Name="FacilityCode" />
  8049. </Dependent>
  8050. </ReferentialConstraint>
  8051. </Association>
  8052. <Association Name="FK_BemsEnergyCost_CmFacility">
  8053. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8054. <End Type="iBemsModel.BemsEnergyCost" Role="BemsEnergyCost" Multiplicity="0..1" />
  8055. <ReferentialConstraint>
  8056. <Principal Role="CmFacility">
  8057. <PropertyRef Name="SiteId" />
  8058. <PropertyRef Name="FacilityCode" />
  8059. </Principal>
  8060. <Dependent Role="BemsEnergyCost">
  8061. <PropertyRef Name="SiteId" />
  8062. <PropertyRef Name="FacilityCode" />
  8063. </Dependent>
  8064. </ReferentialConstraint>
  8065. </Association>
  8066. <Association Name="FK__CmFacility__BemsFacilityType">
  8067. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  8068. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8069. <ReferentialConstraint>
  8070. <Principal Role="BemsFacilityType">
  8071. <PropertyRef Name="FacilityTypeId" />
  8072. </Principal>
  8073. <Dependent Role="CmFacility">
  8074. <PropertyRef Name="FacilityTypeId" />
  8075. </Dependent>
  8076. </ReferentialConstraint>
  8077. </Association>
  8078. <Association Name="FK_BemsFormulaParameter_CmFacility">
  8079. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8080. <End Type="iBemsModel.BemsFormulaParameter" Role="BemsFormulaParameter" Multiplicity="*" />
  8081. <ReferentialConstraint>
  8082. <Principal Role="CmFacility">
  8083. <PropertyRef Name="SiteId" />
  8084. <PropertyRef Name="FacilityCode" />
  8085. </Principal>
  8086. <Dependent Role="BemsFormulaParameter">
  8087. <PropertyRef Name="SiteId" />
  8088. <PropertyRef Name="FacilityCode" />
  8089. </Dependent>
  8090. </ReferentialConstraint>
  8091. </Association>
  8092. <Association Name="FK_CmFacility_BemsFuelType">
  8093. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  8094. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8095. <ReferentialConstraint>
  8096. <Principal Role="BemsFuelType">
  8097. <PropertyRef Name="FuelTypeId" />
  8098. </Principal>
  8099. <Dependent Role="CmFacility">
  8100. <PropertyRef Name="FuelTypeId" />
  8101. </Dependent>
  8102. </ReferentialConstraint>
  8103. </Association>
  8104. <Association Name="FK_BemsMonitoringPoint_CmFacility">
  8105. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8106. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
  8107. <ReferentialConstraint>
  8108. <Principal Role="CmFacility">
  8109. <PropertyRef Name="SiteId" />
  8110. <PropertyRef Name="FacilityCode" />
  8111. </Principal>
  8112. <Dependent Role="BemsMonitoringPoint">
  8113. <PropertyRef Name="SiteId" />
  8114. <PropertyRef Name="FacilityCode" />
  8115. </Dependent>
  8116. </ReferentialConstraint>
  8117. </Association>
  8118. <Association Name="FK_CmFacility_BemsNoticePriceContractType">
  8119. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="0..1" />
  8120. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8121. <ReferentialConstraint>
  8122. <Principal Role="BemsNoticePriceContractType">
  8123. <PropertyRef Name="FuelTypeId" />
  8124. <PropertyRef Name="ContractType" />
  8125. </Principal>
  8126. <Dependent Role="CmFacility">
  8127. <PropertyRef Name="FuelTypeId" />
  8128. <PropertyRef Name="ContractType" />
  8129. </Dependent>
  8130. </ReferentialConstraint>
  8131. </Association>
  8132. <Association Name="FK_BemsPeakFacility_CmFacility">
  8133. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8134. <End Type="iBemsModel.BemsPeakFacility" Role="BemsPeakFacility" Multiplicity="*" />
  8135. <ReferentialConstraint>
  8136. <Principal Role="CmFacility">
  8137. <PropertyRef Name="SiteId" />
  8138. <PropertyRef Name="FacilityCode" />
  8139. </Principal>
  8140. <Dependent Role="BemsPeakFacility">
  8141. <PropertyRef Name="SiteId" />
  8142. <PropertyRef Name="FacilityCode" />
  8143. </Dependent>
  8144. </ReferentialConstraint>
  8145. </Association>
  8146. <Association Name="FK__CmFacility__CmBuilding">
  8147. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="0..1" />
  8148. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8149. <ReferentialConstraint>
  8150. <Principal Role="CmBuilding">
  8151. <PropertyRef Name="SiteId" />
  8152. <PropertyRef Name="BuildingId" />
  8153. </Principal>
  8154. <Dependent Role="CmFacility">
  8155. <PropertyRef Name="SiteId" />
  8156. <PropertyRef Name="BuildingId" />
  8157. </Dependent>
  8158. </ReferentialConstraint>
  8159. </Association>
  8160. <Association Name="FK__CmFacility__74444068">
  8161. <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="0..1" />
  8162. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8163. <ReferentialConstraint>
  8164. <Principal Role="CmFloor">
  8165. <PropertyRef Name="SiteId" />
  8166. <PropertyRef Name="BuildingId" />
  8167. <PropertyRef Name="FloorId" />
  8168. </Principal>
  8169. <Dependent Role="CmFacility">
  8170. <PropertyRef Name="SiteId" />
  8171. <PropertyRef Name="BuildingId" />
  8172. <PropertyRef Name="FloorId" />
  8173. </Dependent>
  8174. </ReferentialConstraint>
  8175. </Association>
  8176. <Association Name="FK__CmFacility__753864A1">
  8177. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  8178. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8179. <ReferentialConstraint>
  8180. <Principal Role="CmUser">
  8181. <PropertyRef Name="SiteId" />
  8182. <PropertyRef Name="UserId" />
  8183. </Principal>
  8184. <Dependent Role="CmFacility">
  8185. <PropertyRef Name="SiteId" />
  8186. <PropertyRef Name="MainContactorUserId" />
  8187. </Dependent>
  8188. </ReferentialConstraint>
  8189. </Association>
  8190. <Association Name="FK__CmFacility__762C88DA">
  8191. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  8192. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8193. <ReferentialConstraint>
  8194. <Principal Role="CmUser">
  8195. <PropertyRef Name="SiteId" />
  8196. <PropertyRef Name="UserId" />
  8197. </Principal>
  8198. <Dependent Role="CmFacility">
  8199. <PropertyRef Name="SiteId" />
  8200. <PropertyRef Name="SubContactorUserId" />
  8201. </Dependent>
  8202. </ReferentialConstraint>
  8203. </Association>
  8204. <Association Name="FK__CmFacility__CmFacility">
  8205. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
  8206. <End Type="iBemsModel.CmFacility" Role="CmFacility1" Multiplicity="*" />
  8207. <ReferentialConstraint>
  8208. <Principal Role="CmFacility">
  8209. <PropertyRef Name="SiteId" />
  8210. <PropertyRef Name="FacilityCode" />
  8211. </Principal>
  8212. <Dependent Role="CmFacility1">
  8213. <PropertyRef Name="SiteId" />
  8214. <PropertyRef Name="ParentFacilityCode" />
  8215. </Dependent>
  8216. </ReferentialConstraint>
  8217. </Association>
  8218. <Association Name="FK__CmFacility__CmFile">
  8219. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  8220. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8221. <ReferentialConstraint>
  8222. <Principal Role="CmFile">
  8223. <PropertyRef Name="SiteId" />
  8224. <PropertyRef Name="FileId" />
  8225. </Principal>
  8226. <Dependent Role="CmFacility">
  8227. <PropertyRef Name="SiteId" />
  8228. <PropertyRef Name="FileId" />
  8229. </Dependent>
  8230. </ReferentialConstraint>
  8231. </Association>
  8232. <Association Name="FK__CmFacility__CmZone">
  8233. <End Type="iBemsModel.CmZone" Role="CmZone" Multiplicity="0..1" />
  8234. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8235. <ReferentialConstraint>
  8236. <Principal Role="CmZone">
  8237. <PropertyRef Name="SiteId" />
  8238. <PropertyRef Name="BuildingId" />
  8239. <PropertyRef Name="FloorId" />
  8240. <PropertyRef Name="ZoneId" />
  8241. </Principal>
  8242. <Dependent Role="CmFacility">
  8243. <PropertyRef Name="SiteId" />
  8244. <PropertyRef Name="BuildingId" />
  8245. <PropertyRef Name="FloorId" />
  8246. <PropertyRef Name="ZoneId" />
  8247. </Dependent>
  8248. </ReferentialConstraint>
  8249. </Association>
  8250. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsFirst">
  8251. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  8252. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8253. <ReferentialConstraint>
  8254. <Principal Role="FmsFacilityCodeClass">
  8255. <PropertyRef Name="SiteId" />
  8256. <PropertyRef Name="FacilityClassId" />
  8257. </Principal>
  8258. <Dependent Role="CmFacility">
  8259. <PropertyRef Name="SiteId" />
  8260. <PropertyRef Name="FirstClassId" />
  8261. </Dependent>
  8262. </ReferentialConstraint>
  8263. </Association>
  8264. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsSecond">
  8265. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  8266. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8267. <ReferentialConstraint>
  8268. <Principal Role="FmsFacilityCodeClass">
  8269. <PropertyRef Name="SiteId" />
  8270. <PropertyRef Name="FacilityClassId" />
  8271. </Principal>
  8272. <Dependent Role="CmFacility">
  8273. <PropertyRef Name="SiteId" />
  8274. <PropertyRef Name="SecondClassId" />
  8275. </Dependent>
  8276. </ReferentialConstraint>
  8277. </Association>
  8278. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsThird">
  8279. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  8280. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8281. <ReferentialConstraint>
  8282. <Principal Role="FmsFacilityCodeClass">
  8283. <PropertyRef Name="SiteId" />
  8284. <PropertyRef Name="FacilityClassId" />
  8285. </Principal>
  8286. <Dependent Role="CmFacility">
  8287. <PropertyRef Name="SiteId" />
  8288. <PropertyRef Name="ThirdClassId" />
  8289. </Dependent>
  8290. </ReferentialConstraint>
  8291. </Association>
  8292. <Association Name="FK__CmFacilityFile__7720AD13">
  8293. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8294. <End Type="iBemsModel.CmFacilityFile" Role="CmFacilityFile" Multiplicity="*" />
  8295. <ReferentialConstraint>
  8296. <Principal Role="CmFacility">
  8297. <PropertyRef Name="SiteId" />
  8298. <PropertyRef Name="FacilityCode" />
  8299. </Principal>
  8300. <Dependent Role="CmFacilityFile">
  8301. <PropertyRef Name="SiteId" />
  8302. <PropertyRef Name="FacilityCode" />
  8303. </Dependent>
  8304. </ReferentialConstraint>
  8305. </Association>
  8306. <Association Name="FK__CmFacilityManual__79FD19BE">
  8307. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8308. <End Type="iBemsModel.FmsFacilityManual" Role="FmsFacilityManual" Multiplicity="*" />
  8309. <ReferentialConstraint>
  8310. <Principal Role="CmFacility">
  8311. <PropertyRef Name="SiteId" />
  8312. <PropertyRef Name="FacilityCode" />
  8313. </Principal>
  8314. <Dependent Role="FmsFacilityManual">
  8315. <PropertyRef Name="SiteId" />
  8316. <PropertyRef Name="FacilityCode" />
  8317. </Dependent>
  8318. </ReferentialConstraint>
  8319. </Association>
  8320. <Association Name="FK__FmsFacilityOpera__725BF7F6">
  8321. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8322. <End Type="iBemsModel.FmsFacilityOperationItem" Role="FmsFacilityOperationItem" Multiplicity="0..1" />
  8323. <ReferentialConstraint>
  8324. <Principal Role="CmFacility">
  8325. <PropertyRef Name="SiteId" />
  8326. <PropertyRef Name="FacilityCode" />
  8327. </Principal>
  8328. <Dependent Role="FmsFacilityOperationItem">
  8329. <PropertyRef Name="SiteId" />
  8330. <PropertyRef Name="ItemId" />
  8331. </Dependent>
  8332. </ReferentialConstraint>
  8333. </Association>
  8334. <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
  8335. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
  8336. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  8337. <ReferentialConstraint>
  8338. <Principal Role="CmFacility">
  8339. <PropertyRef Name="SiteId" />
  8340. <PropertyRef Name="FacilityCode" />
  8341. </Principal>
  8342. <Dependent Role="FmsWorkResultCheckItem">
  8343. <PropertyRef Name="SiteId" />
  8344. <PropertyRef Name="FacilityCode" />
  8345. </Dependent>
  8346. </ReferentialConstraint>
  8347. </Association>
  8348. <Association Name="FK__FmsWorkResultToFacility__CmFacility">
  8349. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8350. <End Type="iBemsModel.FmsWorkResultToFacility" Role="FmsWorkResultToFacility" Multiplicity="*" />
  8351. <ReferentialConstraint>
  8352. <Principal Role="CmFacility">
  8353. <PropertyRef Name="SiteId" />
  8354. <PropertyRef Name="FacilityCode" />
  8355. </Principal>
  8356. <Dependent Role="FmsWorkResultToFacility">
  8357. <PropertyRef Name="SiteId" />
  8358. <PropertyRef Name="FacilityCode" />
  8359. </Dependent>
  8360. </ReferentialConstraint>
  8361. </Association>
  8362. <Association Name="FK_CmFacility_CmUser">
  8363. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  8364. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8365. <ReferentialConstraint>
  8366. <Principal Role="CmUser">
  8367. <PropertyRef Name="SiteId" />
  8368. <PropertyRef Name="UserId" />
  8369. </Principal>
  8370. <Dependent Role="CmFacility">
  8371. <PropertyRef Name="SiteId" />
  8372. <PropertyRef Name="MainContactorUserId" />
  8373. </Dependent>
  8374. </ReferentialConstraint>
  8375. </Association>
  8376. <Association Name="FK_CmFacility_CmUser1">
  8377. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  8378. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8379. <ReferentialConstraint>
  8380. <Principal Role="CmUser">
  8381. <PropertyRef Name="SiteId" />
  8382. <PropertyRef Name="UserId" />
  8383. </Principal>
  8384. <Dependent Role="CmFacility">
  8385. <PropertyRef Name="SiteId" />
  8386. <PropertyRef Name="SubContactorUserId" />
  8387. </Dependent>
  8388. </ReferentialConstraint>
  8389. </Association>
  8390. <Association Name="FK_CmFacilityTempSet_CmFacility">
  8391. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8392. <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="0..1" />
  8393. <ReferentialConstraint>
  8394. <Principal Role="CmFacility">
  8395. <PropertyRef Name="SiteId" />
  8396. <PropertyRef Name="FacilityCode" />
  8397. </Principal>
  8398. <Dependent Role="CmFacilityTempSet">
  8399. <PropertyRef Name="SiteId" />
  8400. <PropertyRef Name="FacilityCode" />
  8401. </Dependent>
  8402. </ReferentialConstraint>
  8403. </Association>
  8404. <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
  8405. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8406. <End Type="iBemsModel.FmsWorkOrderToFacility" Role="FmsWorkOrderToFacility" Multiplicity="*" />
  8407. <ReferentialConstraint>
  8408. <Principal Role="CmFacility">
  8409. <PropertyRef Name="SiteId" />
  8410. <PropertyRef Name="FacilityCode" />
  8411. </Principal>
  8412. <Dependent Role="FmsWorkOrderToFacility">
  8413. <PropertyRef Name="SiteId" />
  8414. <PropertyRef Name="FacilityCode" />
  8415. </Dependent>
  8416. </ReferentialConstraint>
  8417. </Association>
  8418. <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
  8419. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8420. <End Type="iBemsModel.FmsWorkRequestToFacility" Role="FmsWorkRequestToFacility" Multiplicity="*" />
  8421. <ReferentialConstraint>
  8422. <Principal Role="CmFacility">
  8423. <PropertyRef Name="SiteId" />
  8424. <PropertyRef Name="FacilityCode" />
  8425. </Principal>
  8426. <Dependent Role="FmsWorkRequestToFacility">
  8427. <PropertyRef Name="SiteId" />
  8428. <PropertyRef Name="FacilityCode" />
  8429. </Dependent>
  8430. </ReferentialConstraint>
  8431. </Association>
  8432. <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
  8433. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8434. <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
  8435. <ReferentialConstraint>
  8436. <Principal Role="CmFacility">
  8437. <PropertyRef Name="SiteId" />
  8438. <PropertyRef Name="FacilityCode" />
  8439. </Principal>
  8440. <Dependent Role="FmsWorkScheduleToFacility">
  8441. <PropertyRef Name="SiteId" />
  8442. <PropertyRef Name="FacilityCode" />
  8443. </Dependent>
  8444. </ReferentialConstraint>
  8445. </Association>
  8446. <EntityType Name="BemsMonitoringPointHistory15minRawData">
  8447. <Key>
  8448. <PropertyRef Name="SiteId" />
  8449. <PropertyRef Name="FacilityCode" />
  8450. <PropertyRef Name="PropertyId" />
  8451. <PropertyRef Name="CreatedDateTime" />
  8452. </Key>
  8453. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8454. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8455. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8456. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8457. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8458. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  8459. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsFacilityType" />
  8460. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsMonitoringPoint" />
  8461. </EntityType>
  8462. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  8463. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  8464. <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  8465. <ReferentialConstraint>
  8466. <Principal Role="BemsFacilityType">
  8467. <PropertyRef Name="FacilityTypeId" />
  8468. </Principal>
  8469. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  8470. <PropertyRef Name="FacilityTypeId" />
  8471. </Dependent>
  8472. </ReferentialConstraint>
  8473. </Association>
  8474. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  8475. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
  8476. <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  8477. <ReferentialConstraint>
  8478. <Principal Role="BemsMonitoringPoint">
  8479. <PropertyRef Name="SiteId" />
  8480. <PropertyRef Name="FacilityCode" />
  8481. <PropertyRef Name="PropertyId" />
  8482. </Principal>
  8483. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  8484. <PropertyRef Name="SiteId" />
  8485. <PropertyRef Name="FacilityCode" />
  8486. <PropertyRef Name="PropertyId" />
  8487. </Dependent>
  8488. </ReferentialConstraint>
  8489. </Association>
  8490. <EntityType Name="FmsDailyReport">
  8491. <Key>
  8492. <PropertyRef Name="SiteId" />
  8493. <PropertyRef Name="AddDate" />
  8494. <PropertyRef Name="BusinessFieldId" />
  8495. </Key>
  8496. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8497. <Property Name="DailyReportId" Type="Int32" />
  8498. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  8499. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8500. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  8501. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="0" />
  8502. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  8503. <Property Name="Datas" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  8504. <Property Name="ApproverUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8505. <Property Name="ApproveDate" Type="DateTime" Precision="0" />
  8506. <Property Name="RegisterDate" Type="DateTime" Precision="0" />
  8507. <Property Name="ApproverUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8508. <Property Name="ApproveDate2" Type="DateTime" Precision="0" />
  8509. <Property Name="ApproverUserId3" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8510. <Property Name="ApproveDate3" Type="DateTime" Precision="0" />
  8511. <Property Name="ApproverUserId4" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8512. <Property Name="ApproveDate4" Type="DateTime" Precision="0" />
  8513. <Property Name="ApproverUserId5" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8514. <Property Name="ApproveDate5" Type="DateTime" Precision="0" />
  8515. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="FmsDailyReport" ToRole="CmBusinessField" />
  8516. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="FmsDailyReport" ToRole="CmUser" />
  8517. </EntityType>
  8518. <Association Name="FK_FmsDailyReport_CmBusinessField">
  8519. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  8520. <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
  8521. <ReferentialConstraint>
  8522. <Principal Role="CmBusinessField">
  8523. <PropertyRef Name="SiteId" />
  8524. <PropertyRef Name="BusinessFieldId" />
  8525. </Principal>
  8526. <Dependent Role="FmsDailyReport">
  8527. <PropertyRef Name="SiteId" />
  8528. <PropertyRef Name="BusinessFieldId" />
  8529. </Dependent>
  8530. </ReferentialConstraint>
  8531. </Association>
  8532. <Association Name="FK_FmsDailyReport_CmUser">
  8533. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  8534. <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
  8535. <ReferentialConstraint>
  8536. <Principal Role="CmUser">
  8537. <PropertyRef Name="SiteId" />
  8538. <PropertyRef Name="UserId" />
  8539. </Principal>
  8540. <Dependent Role="FmsDailyReport">
  8541. <PropertyRef Name="SiteId" />
  8542. <PropertyRef Name="RegisterUserId" />
  8543. </Dependent>
  8544. </ReferentialConstraint>
  8545. </Association>
  8546. <EntityType Name="BemsPeakHistoryDaily">
  8547. <Key>
  8548. <PropertyRef Name="SiteId" />
  8549. <PropertyRef Name="CreatedDateTime" />
  8550. </Key>
  8551. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8552. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8553. <Property Name="MaxPeakValue" Type="Double" />
  8554. <Property Name="MaxDateTime" Type="DateTime" Precision="3" />
  8555. <Property Name="MinPeakValue" Type="Double" />
  8556. <Property Name="MinDateTime" Type="DateTime" Precision="3" />
  8557. </EntityType>
  8558. <EntityType Name="FmsEquipment">
  8559. <Key>
  8560. <PropertyRef Name="SiteId" />
  8561. <PropertyRef Name="EquipmentId" />
  8562. </Key>
  8563. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8564. <Property Name="EquipmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8565. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  8566. <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" />
  8567. <Property Name="WarehouseId" Type="Int32" />
  8568. <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
  8569. <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8570. <Property Name="AddDate" Type="DateTime" Precision="3" />
  8571. <Property Name="UpdateDate" Type="DateTime" Precision="3" />
  8572. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  8573. <Property Name="SupplierName" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  8574. <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8575. <Property Name="ImageFileId" Type="Int32" />
  8576. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="FmsEquipment" ToRole="CmUser" />
  8577. <NavigationProperty Name="FmsEquipmentCodeType" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipment" ToRole="FmsEquipmentCodeType" />
  8578. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsEquipment" ToRole="FmsMaterialWarehouse" />
  8579. <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipment" ToRole="FmsEquipmentHistory" />
  8580. </EntityType>
  8581. <Association Name="FK_FmsEquipment_CmUser">
  8582. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  8583. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  8584. <ReferentialConstraint>
  8585. <Principal Role="CmUser">
  8586. <PropertyRef Name="SiteId" />
  8587. <PropertyRef Name="UserId" />
  8588. </Principal>
  8589. <Dependent Role="FmsEquipment">
  8590. <PropertyRef Name="SiteId" />
  8591. <PropertyRef Name="RegisterUserId" />
  8592. </Dependent>
  8593. </ReferentialConstraint>
  8594. </Association>
  8595. <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
  8596. <End Type="iBemsModel.FmsEquipmentCodeType" Role="FmsEquipmentCodeType" Multiplicity="1" />
  8597. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  8598. <ReferentialConstraint>
  8599. <Principal Role="FmsEquipmentCodeType">
  8600. <PropertyRef Name="SiteId" />
  8601. <PropertyRef Name="EquipmentTypeId" />
  8602. </Principal>
  8603. <Dependent Role="FmsEquipment">
  8604. <PropertyRef Name="SiteId" />
  8605. <PropertyRef Name="EquipmentTypeId" />
  8606. </Dependent>
  8607. </ReferentialConstraint>
  8608. </Association>
  8609. <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
  8610. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
  8611. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  8612. <ReferentialConstraint>
  8613. <Principal Role="FmsMaterialWarehouse">
  8614. <PropertyRef Name="SiteId" />
  8615. <PropertyRef Name="WarehouseId" />
  8616. </Principal>
  8617. <Dependent Role="FmsEquipment">
  8618. <PropertyRef Name="SiteId" />
  8619. <PropertyRef Name="WarehouseId" />
  8620. </Dependent>
  8621. </ReferentialConstraint>
  8622. </Association>
  8623. <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
  8624. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="1" />
  8625. <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
  8626. <ReferentialConstraint>
  8627. <Principal Role="FmsEquipment">
  8628. <PropertyRef Name="SiteId" />
  8629. <PropertyRef Name="EquipmentId" />
  8630. </Principal>
  8631. <Dependent Role="FmsEquipmentHistory">
  8632. <PropertyRef Name="SiteId" />
  8633. <PropertyRef Name="EquipmentId" />
  8634. </Dependent>
  8635. </ReferentialConstraint>
  8636. </Association>
  8637. <EntityType Name="CmAlarmAdmin">
  8638. <Key>
  8639. <PropertyRef Name="SiteId" />
  8640. </Key>
  8641. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8642. <Property Name="UserCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8643. <Property Name="DeptCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8644. <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8645. <Property Name="EmailAddress" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8646. <Property Name="EmailPassword" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8647. </EntityType>
  8648. <EntityType Name="BemsFloorStatus">
  8649. <Key>
  8650. <PropertyRef Name="SiteId" />
  8651. <PropertyRef Name="FloorId" />
  8652. <PropertyRef Name="FloorName" />
  8653. <PropertyRef Name="ImageFileId" />
  8654. <PropertyRef Name="Xvalue" />
  8655. <PropertyRef Name="Yvalue" />
  8656. <PropertyRef Name="PropertyId" />
  8657. </Key>
  8658. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8659. <Property Name="FloorId" Type="Int32" Nullable="false" />
  8660. <Property Name="FloorName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8661. <Property Name="ImageFileId" Type="Int32" Nullable="false" />
  8662. <Property Name="Xvalue" Type="Int32" Nullable="false" />
  8663. <Property Name="Yvalue" Type="Int32" Nullable="false" />
  8664. <Property Name="ZoneId" Type="Int32" />
  8665. <Property Name="ServiceTypeId" Type="Int32" />
  8666. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8667. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8668. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8669. <Property Name="FacilityName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8670. </EntityType>
  8671. <EntityType Name="BemsReportHistory">
  8672. <Key>
  8673. <PropertyRef Name="Seq" />
  8674. <PropertyRef Name="DateTime" />
  8675. <PropertyRef Name="ReportFormatId" />
  8676. <PropertyRef Name="parts" />
  8677. </Key>
  8678. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8679. <Property Name="Seq" Type="Int32" Nullable="false" />
  8680. <Property Name="DateTime" Type="DateTime" Nullable="false" Precision="3" />
  8681. <Property Name="ReportName" Type="String" Nullable="false" MaxLength="200" FixedLength="false" Unicode="false" />
  8682. <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
  8683. <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  8684. <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  8685. <Property Name="Writer" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  8686. <Property Name="Confirm1" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  8687. <Property Name="Confirm2" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  8688. <Property Name="parts" Type="Int32" Nullable="false" />
  8689. <Property Name="FileName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8690. </EntityType>
  8691. <EntityType Name="CmPartner">
  8692. <Key>
  8693. <PropertyRef Name="SiteId" />
  8694. <PropertyRef Name="PartnerId" />
  8695. </Key>
  8696. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8697. <Property Name="PartnerId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8698. <Property Name="PartnerTypeId" Type="Int32" Nullable="false" />
  8699. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8700. <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8701. <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8702. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8703. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8704. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8705. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8706. <Property Name="AddressZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  8707. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  8708. <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8709. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8710. <Property Name="HomepageUri" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8711. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8712. <Property Name="IsUse" Type="Boolean" />
  8713. <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartner" ToRole="CmPartnerType" />
  8714. <NavigationProperty Name="FmsConstruction" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="CmPartner" ToRole="FmsConstruction" />
  8715. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="CmPartner" ToRole="FmsWorkRequest" />
  8716. <NavigationProperty Name="FmsWorkSchedule" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="CmPartner" ToRole="FmsWorkSchedule" />
  8717. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="CmPartner" ToRole="FmsContract" />
  8718. </EntityType>
  8719. <EntityType Name="CmPartnerType">
  8720. <Key>
  8721. <PropertyRef Name="PartnerTypeId" />
  8722. </Key>
  8723. <Property Name="PartnerTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8724. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8725. <Property Name="IsUse" Type="Boolean" />
  8726. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartnerType" ToRole="CmPartner" />
  8727. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="CmPartnerType" ToRole="FmsContract" />
  8728. </EntityType>
  8729. <Association Name="FK_CmPartnerType_CmPartner">
  8730. <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="1" />
  8731. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="*" />
  8732. <ReferentialConstraint>
  8733. <Principal Role="CmPartnerType">
  8734. <PropertyRef Name="PartnerTypeId" />
  8735. </Principal>
  8736. <Dependent Role="CmPartner">
  8737. <PropertyRef Name="PartnerTypeId" />
  8738. </Dependent>
  8739. </ReferentialConstraint>
  8740. </Association>
  8741. <Association Name="FK_FmsConstruction_CmPartner">
  8742. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="1" />
  8743. <End Type="iBemsModel.FmsConstruction" Role="FmsConstruction" Multiplicity="*" />
  8744. <ReferentialConstraint>
  8745. <Principal Role="CmPartner">
  8746. <PropertyRef Name="SiteId" />
  8747. <PropertyRef Name="PartnerId" />
  8748. </Principal>
  8749. <Dependent Role="FmsConstruction">
  8750. <PropertyRef Name="SiteId" />
  8751. <PropertyRef Name="PartnerId" />
  8752. </Dependent>
  8753. </ReferentialConstraint>
  8754. </Association>
  8755. <Association Name="FK_FmsWorkRequest_CmPartner">
  8756. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  8757. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  8758. <ReferentialConstraint>
  8759. <Principal Role="CmPartner">
  8760. <PropertyRef Name="SiteId" />
  8761. <PropertyRef Name="PartnerId" />
  8762. </Principal>
  8763. <Dependent Role="FmsWorkRequest">
  8764. <PropertyRef Name="SiteId" />
  8765. <PropertyRef Name="InspectionAgencyId" />
  8766. </Dependent>
  8767. </ReferentialConstraint>
  8768. </Association>
  8769. <Association Name="FK_FmsWorkSchedule_CmPartner">
  8770. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  8771. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  8772. <ReferentialConstraint>
  8773. <Principal Role="CmPartner">
  8774. <PropertyRef Name="SiteId" />
  8775. <PropertyRef Name="PartnerId" />
  8776. </Principal>
  8777. <Dependent Role="FmsWorkSchedule">
  8778. <PropertyRef Name="SiteId" />
  8779. <PropertyRef Name="InspectionAgencyId" />
  8780. </Dependent>
  8781. </ReferentialConstraint>
  8782. </Association>
  8783. <EntityType Name="FmsContract">
  8784. <Key>
  8785. <PropertyRef Name="SiteId" />
  8786. <PropertyRef Name="ContractId" />
  8787. </Key>
  8788. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8789. <Property Name="ContractId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8790. <Property Name="Name" Type="String" Nullable="false" MaxLength="256" FixedLength="false" Unicode="true" />
  8791. <Property Name="PartnerTypeId" Type="Int32" />
  8792. <Property Name="PartnerId" Type="Int32" />
  8793. <Property Name="ContractDate" Type="DateTime" Precision="3" />
  8794. <Property Name="StartDate" Type="DateTime" Precision="3" />
  8795. <Property Name="EndDate" Type="DateTime" Precision="3" />
  8796. <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8797. <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8798. <Property Name="CommitmentMan" Type="Int16" />
  8799. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8800. <Property Name="ContractClassId" Type="Int32" />
  8801. <Property Name="ContractTypeId" Type="Int32" />
  8802. <Property Name="ContractMethodId" Type="Int32" />
  8803. <Property Name="PaymentTypeId" Type="Int32" />
  8804. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="FmsContract" ToRole="CmPartner" />
  8805. <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="FmsContract" ToRole="CmPartnerType" />
  8806. <NavigationProperty Name="FmsContractClass" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContract" ToRole="FmsContractClass" />
  8807. <NavigationProperty Name="FmsContractMethod" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContract" ToRole="FmsContractMethod" />
  8808. <NavigationProperty Name="FmsContractType" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContract" ToRole="FmsContractType" />
  8809. <NavigationProperty Name="FmsPaymentType" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsContract" ToRole="FmsPaymentType" />
  8810. </EntityType>
  8811. <Association Name="FK_FmsContract_CmPartner">
  8812. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  8813. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  8814. <ReferentialConstraint>
  8815. <Principal Role="CmPartner">
  8816. <PropertyRef Name="SiteId" />
  8817. <PropertyRef Name="PartnerId" />
  8818. </Principal>
  8819. <Dependent Role="FmsContract">
  8820. <PropertyRef Name="SiteId" />
  8821. <PropertyRef Name="PartnerId" />
  8822. </Dependent>
  8823. </ReferentialConstraint>
  8824. </Association>
  8825. <Association Name="FK_FmsContract_CmPartnerType">
  8826. <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="0..1" />
  8827. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  8828. <ReferentialConstraint>
  8829. <Principal Role="CmPartnerType">
  8830. <PropertyRef Name="PartnerTypeId" />
  8831. </Principal>
  8832. <Dependent Role="FmsContract">
  8833. <PropertyRef Name="PartnerTypeId" />
  8834. </Dependent>
  8835. </ReferentialConstraint>
  8836. </Association>
  8837. <Association Name="FK_FmsContract_FmsContractClass">
  8838. <End Type="iBemsModel.FmsContractClass" Role="FmsContractClass" Multiplicity="0..1" />
  8839. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  8840. <ReferentialConstraint>
  8841. <Principal Role="FmsContractClass">
  8842. <PropertyRef Name="SiteId" />
  8843. <PropertyRef Name="ContractClassId" />
  8844. </Principal>
  8845. <Dependent Role="FmsContract">
  8846. <PropertyRef Name="SiteId" />
  8847. <PropertyRef Name="ContractClassId" />
  8848. </Dependent>
  8849. </ReferentialConstraint>
  8850. </Association>
  8851. <Association Name="FK_FmsContract_FmsContractMethod">
  8852. <End Type="iBemsModel.FmsContractMethod" Role="FmsContractMethod" Multiplicity="0..1" />
  8853. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  8854. <ReferentialConstraint>
  8855. <Principal Role="FmsContractMethod">
  8856. <PropertyRef Name="SiteId" />
  8857. <PropertyRef Name="ContractMethodId" />
  8858. </Principal>
  8859. <Dependent Role="FmsContract">
  8860. <PropertyRef Name="SiteId" />
  8861. <PropertyRef Name="ContractMethodId" />
  8862. </Dependent>
  8863. </ReferentialConstraint>
  8864. </Association>
  8865. <Association Name="FK_FmsContract_FmsContractType">
  8866. <End Type="iBemsModel.FmsContractType" Role="FmsContractType" Multiplicity="0..1" />
  8867. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  8868. <ReferentialConstraint>
  8869. <Principal Role="FmsContractType">
  8870. <PropertyRef Name="SiteId" />
  8871. <PropertyRef Name="ContractTypeId" />
  8872. </Principal>
  8873. <Dependent Role="FmsContract">
  8874. <PropertyRef Name="SiteId" />
  8875. <PropertyRef Name="ContractTypeId" />
  8876. </Dependent>
  8877. </ReferentialConstraint>
  8878. </Association>
  8879. <Association Name="FK_FmsContract_FmsPaymentType">
  8880. <End Type="iBemsModel.FmsPaymentType" Role="FmsPaymentType" Multiplicity="0..1" />
  8881. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  8882. <ReferentialConstraint>
  8883. <Principal Role="FmsPaymentType">
  8884. <PropertyRef Name="SiteId" />
  8885. <PropertyRef Name="PaymentTypeId" />
  8886. </Principal>
  8887. <Dependent Role="FmsContract">
  8888. <PropertyRef Name="SiteId" />
  8889. <PropertyRef Name="PartnerTypeId" />
  8890. </Dependent>
  8891. </ReferentialConstraint>
  8892. </Association>
  8893. <EntityType Name="BemsMonitoringPointForecastingDayAhead">
  8894. <Key>
  8895. <PropertyRef Name="SiteId" />
  8896. <PropertyRef Name="FacilityCode" />
  8897. <PropertyRef Name="PropertyId" />
  8898. <PropertyRef Name="CreatedDateTime" />
  8899. <PropertyRef Name="TargetDateTime" />
  8900. </Key>
  8901. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8902. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8903. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8904. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8905. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8906. <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8907. <Property Name="ForecastedValue" Type="Double" Nullable="false" />
  8908. </EntityType>
  8909. <EntityType Name="BemsMonitoringPointForecastingHourAhead">
  8910. <Key>
  8911. <PropertyRef Name="SiteId" />
  8912. <PropertyRef Name="FacilityCode" />
  8913. <PropertyRef Name="PropertyId" />
  8914. <PropertyRef Name="CreatedDateTime" />
  8915. <PropertyRef Name="TargetDateTime" />
  8916. </Key>
  8917. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8918. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8919. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8920. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8921. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8922. <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8923. <Property Name="ForecastedValue" Type="Double" Nullable="false" />
  8924. </EntityType>
  8925. <EntityType Name="BemsFloorPlan">
  8926. <Key>
  8927. <PropertyRef Name="SiteId" />
  8928. <PropertyRef Name="Name" />
  8929. </Key>
  8930. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8931. <Property Name="FloorId" Type="Int32" Nullable="false" />
  8932. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8933. <Property Name="ImageFileId" Type="Int32" />
  8934. </EntityType>
  8935. <EntityType Name="BemsMonitoringPointWeatherForecasted">
  8936. <Key>
  8937. <PropertyRef Name="SiteId" />
  8938. <PropertyRef Name="CreatedDateTime" />
  8939. <PropertyRef Name="Category" />
  8940. <PropertyRef Name="BaseDateTime" />
  8941. <PropertyRef Name="ForecastedDateTime" />
  8942. </Key>
  8943. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8944. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8945. <Property Name="Category" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8946. <Property Name="BaseDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8947. <Property Name="ForecastedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8948. <Property Name="ForecastedValue" Type="Double" Nullable="false" />
  8949. <Property Name="nx" Type="Int32" Nullable="false" />
  8950. <Property Name="ny" Type="Int32" Nullable="false" />
  8951. </EntityType>
  8952. <EntityType Name="BemsIceThermalStorageSimulation">
  8953. <Key>
  8954. <PropertyRef Name="SiteId" />
  8955. <PropertyRef Name="FacilityCode" />
  8956. <PropertyRef Name="PropertyId" />
  8957. <PropertyRef Name="CreatedDateTime" />
  8958. <PropertyRef Name="TargetDateTime" />
  8959. <PropertyRef Name="SimulationCase" />
  8960. </Key>
  8961. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8962. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8963. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8964. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8965. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8966. <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8967. <Property Name="SimulationValue" Type="Double" />
  8968. <Property Name="SimulationCase" Type="Int32" Nullable="false" />
  8969. </EntityType>
  8970. <EntityType Name="BemsConfigData">
  8971. <Key>
  8972. <PropertyRef Name="SiteId" />
  8973. </Key>
  8974. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8975. <Property Name="LoadDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8976. <Property Name="LoadDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8977. <Property Name="LoadDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8978. <Property Name="LoadDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8979. <Property Name="TargetDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8980. <Property Name="TargetDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8981. <Property Name="TargetDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8982. <Property Name="TargetDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8983. </EntityType>
  8984. </Schema>