4ecb9fd6ed047d3823f36d127608a11cd9f34b65.svn-base 379 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Schema Namespace="iBemsModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2008" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  3. <EntityType Name="BemsAlarmGroup">
  4. <Key>
  5. <PropertyRef Name="SiteId" />
  6. <PropertyRef Name="AlarmGroupId" />
  7. </Key>
  8. <Property Name="SiteId" Type="int" Nullable="false" />
  9. <Property Name="AlarmGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  10. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  11. </EntityType>
  12. <EntityType Name="BemsAlarmGroupUser">
  13. <Key>
  14. <PropertyRef Name="SiteId" />
  15. <PropertyRef Name="AlarmGroupId" />
  16. <PropertyRef Name="UserId" />
  17. </Key>
  18. <Property Name="SiteId" Type="int" Nullable="false" />
  19. <Property Name="AlarmGroupId" Type="int" Nullable="false" />
  20. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  21. </EntityType>
  22. <EntityType Name="BemsAlarmLog">
  23. <Key>
  24. <PropertyRef Name="SiteId" />
  25. <PropertyRef Name="FacilityTypeId" />
  26. <PropertyRef Name="FacilityCode" />
  27. <PropertyRef Name="PropertyId" />
  28. <PropertyRef Name="FormulaId" />
  29. <PropertyRef Name="CreatedDateTime" />
  30. </Key>
  31. <Property Name="SiteId" Type="int" Nullable="false" />
  32. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  33. <Property Name="FacilityCode" Type="int" Nullable="false" />
  34. <Property Name="PropertyId" Type="int" Nullable="false" />
  35. <Property Name="FormulaId" Type="int" Nullable="false" />
  36. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  37. <Property Name="CurrentValue" Type="float" />
  38. <Property Name="SMSResult" Type="nvarchar" MaxLength="2" />
  39. <Property Name="EmailResult" Type="nvarchar" MaxLength="2" />
  40. <Property Name="Conform" Type="bit" />
  41. </EntityType>
  42. <EntityType Name="BemsAlarmSetting">
  43. <Key>
  44. <PropertyRef Name="SiteId" />
  45. <PropertyRef Name="FacilityTypeId" />
  46. <PropertyRef Name="FacilityCode" />
  47. <PropertyRef Name="PropertyId" />
  48. <PropertyRef Name="FormulaId" />
  49. </Key>
  50. <Property Name="SiteId" Type="int" Nullable="false" />
  51. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  52. <Property Name="FacilityCode" Type="int" Nullable="false" />
  53. <Property Name="PropertyId" Type="int" Nullable="false" />
  54. <Property Name="FormulaId" Type="int" Nullable="false" />
  55. <Property Name="FacilityName" Type="nvarchar" MaxLength="80" Nullable="false" />
  56. <Property Name="PointName" Type="nvarchar" MaxLength="64" Nullable="false" />
  57. <Property Name="UseUpperLimit" Type="bit" Nullable="false" />
  58. <Property Name="UpperLimit" Type="float" />
  59. <Property Name="UseLowerLimit" Type="bit" Nullable="false" />
  60. <Property Name="LowerLimit" Type="float" />
  61. <Property Name="UseAlarm" Type="bit" Nullable="false" />
  62. <Property Name="UseSMS" Type="bit" Nullable="false" />
  63. <Property Name="UseEmail" Type="bit" Nullable="false" />
  64. <Property Name="AlarmGroupName" Type="nvarchar" MaxLength="50" Nullable="false" />
  65. <Property Name="Content" Type="nvarchar" MaxLength="1000" />
  66. </EntityType>
  67. <EntityType Name="BemsAnalysisType">
  68. <Key>
  69. <PropertyRef Name="SiteId" />
  70. <PropertyRef Name="AnalysisType" />
  71. </Key>
  72. <Property Name="SiteId" Type="int" Nullable="false" />
  73. <Property Name="AnalysisType" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  74. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  75. </EntityType>
  76. <EntityType Name="BemsChartInfo">
  77. <Key>
  78. <PropertyRef Name="SiteId" />
  79. <PropertyRef Name="FacilityTypeId" />
  80. <PropertyRef Name="ChartId" />
  81. </Key>
  82. <Property Name="SiteId" Type="int" Nullable="false" />
  83. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  84. <Property Name="ChartId" Type="int" Nullable="false" />
  85. <Property Name="LAxTitle" Type="nvarchar" MaxLength="64" Nullable="false" />
  86. <Property Name="RAxTitle" Type="nvarchar" MaxLength="64" />
  87. <Property Name="XAxTitle" Type="nvarchar" MaxLength="64" />
  88. <Property Name="XSFmId" Type="int" />
  89. <Property Name="XSType" Type="nvarchar" MaxLength="16" />
  90. <Property Name="LSFmId1" Type="int" Nullable="false" />
  91. <Property Name="LSName1" Type="nvarchar" MaxLength="64" Nullable="false" />
  92. <Property Name="LSType1" Type="nvarchar" MaxLength="16" Nullable="false" />
  93. <Property Name="LSFmId2" Type="int" />
  94. <Property Name="LSName2" Type="nvarchar" MaxLength="64" />
  95. <Property Name="LSType2" Type="nvarchar" MaxLength="16" />
  96. <Property Name="LSFmId3" Type="int" />
  97. <Property Name="LSName3" Type="nvarchar" MaxLength="64" />
  98. <Property Name="LSType3" Type="nvarchar" MaxLength="16" />
  99. <Property Name="LSFmId4" Type="int" />
  100. <Property Name="LSName4" Type="nvarchar" MaxLength="64" />
  101. <Property Name="LSType4" Type="nvarchar" MaxLength="16" />
  102. <Property Name="RSFmId1" Type="int" />
  103. <Property Name="RSName1" Type="nvarchar" MaxLength="64" />
  104. <Property Name="RSType1" Type="nvarchar" MaxLength="16" />
  105. <Property Name="RSFmId2" Type="int" />
  106. <Property Name="RSName2" Type="nvarchar" MaxLength="64" />
  107. <Property Name="RSType2" Type="nvarchar" MaxLength="16" />
  108. <Property Name="RSFmId3" Type="int" />
  109. <Property Name="RSName3" Type="nvarchar" MaxLength="64" />
  110. <Property Name="RSType3" Type="nvarchar" MaxLength="16" />
  111. <Property Name="RSFmId4" Type="int" />
  112. <Property Name="RSName4" Type="nvarchar" MaxLength="64" />
  113. <Property Name="RSType4" Type="nvarchar" MaxLength="16" />
  114. <Property Name="Title" Type="nvarchar" MaxLength="64" Nullable="false" />
  115. <Property Name="UseX" Type="bit" />
  116. <Property Name="UseLAxMinMax" Type="bit" />
  117. <Property Name="UseRAxMinMax" Type="bit" />
  118. <Property Name="UseXAxMinMax" Type="bit" />
  119. <Property Name="LAxMin" Type="float" />
  120. <Property Name="LAxMax" Type="float" />
  121. <Property Name="RAxMin" Type="float" />
  122. <Property Name="RAxMax" Type="float" />
  123. <Property Name="XAxMin" Type="float" />
  124. <Property Name="XAxMax" Type="float" />
  125. <Property Name="Palette" Type="nvarchar" MaxLength="32" Nullable="false" />
  126. <Property Name="UseChart" Type="bit" />
  127. <Property Name="UseLCTLine" Type="bit" Nullable="false" />
  128. <Property Name="LCTLineTitle" Type="nvarchar" MaxLength="64" />
  129. <Property Name="LCTLineValue" Type="float" />
  130. <Property Name="UseRCTLine" Type="bit" Nullable="false" />
  131. <Property Name="RCTLineTitle" Type="nvarchar" MaxLength="64" />
  132. <Property Name="RCTLineValue" Type="float" />
  133. </EntityType>
  134. <EntityType Name="BemsConfigData">
  135. <Key>
  136. <PropertyRef Name="SiteId" />
  137. </Key>
  138. <Property Name="SiteId" Type="int" Nullable="false" />
  139. <Property Name="LoadDBIP" Type="nvarchar" MaxLength="50" Nullable="false" />
  140. <Property Name="LoadDBUserID" Type="nvarchar" MaxLength="50" Nullable="false" />
  141. <Property Name="LoadDBUserPW" Type="nvarchar" MaxLength="50" Nullable="false" />
  142. <Property Name="LoadDBName" Type="nvarchar" MaxLength="50" Nullable="false" />
  143. <Property Name="TargetDBIP" Type="nvarchar" MaxLength="50" Nullable="false" />
  144. <Property Name="TargetDBUserID" Type="nvarchar" MaxLength="50" Nullable="false" />
  145. <Property Name="TargetDBUserPW" Type="nvarchar" MaxLength="50" Nullable="false" />
  146. <Property Name="TargetDBName" Type="nvarchar" MaxLength="50" Nullable="false" />
  147. <Property Name="InitialDate" Type="datetime" Nullable="false" />
  148. <Property Name="LinearFilterLength" Type="nvarchar" MaxLength="50" Nullable="false" />
  149. <Property Name="NonlinearTestSize" Type="float" Nullable="false" />
  150. </EntityType>
  151. <EntityType Name="BemsControlAHUTempConfig">
  152. <Key>
  153. <PropertyRef Name="SiteId" />
  154. <PropertyRef Name="FacilityTypeId" />
  155. <PropertyRef Name="FacilityCode" />
  156. </Key>
  157. <Property Name="SiteId" Type="int" Nullable="false" />
  158. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  159. <Property Name="FacilityCode" Type="int" Nullable="false" />
  160. <Property Name="MaxTemperature" Type="float" Nullable="false" />
  161. <Property Name="MinTemperature" Type="float" Nullable="false" />
  162. </EntityType>
  163. <EntityType Name="BemsControlPointHistory">
  164. <Key>
  165. <PropertyRef Name="SiteId" />
  166. <PropertyRef Name="FacilityCode" />
  167. <PropertyRef Name="PropertyId" />
  168. <PropertyRef Name="CreateDateTime" />
  169. </Key>
  170. <Property Name="SiteId" Type="int" Nullable="false" />
  171. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  172. <Property Name="FacilityCode" Type="int" Nullable="false" />
  173. <Property Name="PropertyId" Type="int" Nullable="false" />
  174. <Property Name="CreateDateTime" Type="datetime" Nullable="false" />
  175. <Property Name="ControlValue" Type="float" Nullable="false" />
  176. <Property Name="WriteServiceName" Type="nvarchar" MaxLength="64" />
  177. <Property Name="ActionDateTime" Type="datetime" />
  178. </EntityType>
  179. <EntityType Name="BemsEnergyConfigPercentMonth">
  180. <Key>
  181. <PropertyRef Name="SiteId" />
  182. <PropertyRef Name="Year" />
  183. <PropertyRef Name="Month" />
  184. </Key>
  185. <Property Name="SiteId" Type="int" Nullable="false" />
  186. <Property Name="Year" Type="int" Nullable="false" />
  187. <Property Name="Month" Type="int" Nullable="false" />
  188. <Property Name="Electricity" Type="float" />
  189. <Property Name="Gas" Type="float" />
  190. <Property Name="Water" Type="float" />
  191. </EntityType>
  192. <EntityType Name="BemsEnergyConfigPercentWeek">
  193. <Key>
  194. <PropertyRef Name="SiteId" />
  195. <PropertyRef Name="Year" />
  196. <PropertyRef Name="Week" />
  197. </Key>
  198. <Property Name="SiteId" Type="int" Nullable="false" />
  199. <Property Name="Year" Type="int" Nullable="false" />
  200. <Property Name="Week" Type="int" Nullable="false" />
  201. <Property Name="Electricity" Type="float" />
  202. <Property Name="Gas" Type="float" />
  203. <Property Name="Water" Type="float" />
  204. </EntityType>
  205. <EntityType Name="BemsEnergyCost">
  206. <Key>
  207. <PropertyRef Name="SiteId" />
  208. <PropertyRef Name="FacilityCode" />
  209. </Key>
  210. <Property Name="SiteId" Type="int" Nullable="false" />
  211. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  212. <Property Name="FacilityCode" Type="int" Nullable="false" />
  213. <Property Name="PowerConsumption1" Type="float" />
  214. <Property Name="PowerConsumption2" Type="float" />
  215. <Property Name="GasConsumption" Type="float" />
  216. <Property Name="GasHeatQuantity" Type="float" />
  217. <Property Name="PowerPriceTypeId" Type="int" />
  218. <Property Name="GasPriceTypeId" Type="int" />
  219. <Property Name="IsUse" Type="bit" />
  220. </EntityType>
  221. <EntityType Name="BemsEnergyDaily">
  222. <Key>
  223. <PropertyRef Name="SiteId" />
  224. <PropertyRef Name="BuildingId" />
  225. <PropertyRef Name="ServiceTypeId" />
  226. <PropertyRef Name="FuelTypeId" />
  227. <PropertyRef Name="CreatedDate" />
  228. </Key>
  229. <Property Name="SiteId" Type="int" Nullable="false" />
  230. <Property Name="BuildingId" Type="int" Nullable="false" />
  231. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  232. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  233. <Property Name="CreatedDate" Type="date" Nullable="false" />
  234. <Property Name="Prediction" Type="float" />
  235. <Property Name="Measurement" Type="float" />
  236. <Property Name="Goal" Type="float" />
  237. <Property Name="Prediction_Regression" Type="float" />
  238. <Property Name="MeanT" Type="float" />
  239. <Property Name="HDD" Type="float" />
  240. <Property Name="CDD" Type="float" />
  241. </EntityType>
  242. <EntityType Name="BemsEnergyDailyRegression">
  243. <Key>
  244. <PropertyRef Name="SiteId" />
  245. </Key>
  246. <Property Name="SiteId" Type="int" Nullable="false" />
  247. <Property Name="Weekday_Power" Type="nvarchar" MaxLength="50" />
  248. <Property Name="Weekday_Power_Temp" Type="nvarchar" MaxLength="50" />
  249. <Property Name="Weekday_Gas" Type="nvarchar" MaxLength="50" />
  250. <Property Name="Weekday_Gas_Temp" Type="nvarchar" MaxLength="50" />
  251. <Property Name="Weekday_Water" Type="nvarchar" MaxLength="50" />
  252. <Property Name="Weekday_Water_Temp" Type="nvarchar" MaxLength="50" />
  253. <Property Name="Holiday_Power" Type="nvarchar" MaxLength="50" />
  254. <Property Name="Holiday_Power_Temp" Type="nvarchar" MaxLength="50" />
  255. <Property Name="Holiday_Gas" Type="nvarchar" MaxLength="50" />
  256. <Property Name="Holiday_Gas_Temp" Type="nvarchar" MaxLength="50" />
  257. <Property Name="Holiday_Water" Type="nvarchar" MaxLength="50" />
  258. <Property Name="Holiday_Water_Temp" Type="nvarchar" MaxLength="50" />
  259. <Property Name="IsRegression" Type="bit" />
  260. </EntityType>
  261. <EntityType Name="BemsFacilityType">
  262. <Key>
  263. <PropertyRef Name="FacilityTypeId" />
  264. </Key>
  265. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  266. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  267. </EntityType>
  268. <EntityType Name="BemsFactorCo2">
  269. <Key>
  270. <PropertyRef Name="FuelTypeId" />
  271. </Key>
  272. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  273. <Property Name="Factor" Type="float" Nullable="false" />
  274. </EntityType>
  275. <EntityType Name="BemsFactorToe">
  276. <Key>
  277. <PropertyRef Name="FuelTypeId" />
  278. </Key>
  279. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  280. <Property Name="TotalFactor" Type="float" Nullable="false" />
  281. <Property Name="PureFactor" Type="float" Nullable="false" />
  282. <Property Name="kcal" Type="float" />
  283. </EntityType>
  284. <EntityType Name="BemsFloorPlan">
  285. <Key>
  286. <PropertyRef Name="SiteId" />
  287. <PropertyRef Name="Name" />
  288. </Key>
  289. <Property Name="SiteId" Type="int" Nullable="false" />
  290. <Property Name="FloorId" Type="int" Nullable="false" />
  291. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  292. <Property Name="ImageFileId" Type="int" />
  293. </EntityType>
  294. <EntityType Name="BemsFloorStatus">
  295. <Key>
  296. <PropertyRef Name="SiteId" />
  297. <PropertyRef Name="FloorId" />
  298. <PropertyRef Name="FloorName" />
  299. <PropertyRef Name="ImageFileId" />
  300. <PropertyRef Name="Xvalue" />
  301. <PropertyRef Name="Yvalue" />
  302. <PropertyRef Name="PropertyId" />
  303. </Key>
  304. <Property Name="SiteId" Type="int" Nullable="false" />
  305. <Property Name="FloorId" Type="int" Nullable="false" />
  306. <Property Name="FloorName" Type="nvarchar" MaxLength="50" Nullable="false" />
  307. <Property Name="ImageFileId" Type="int" Nullable="false" />
  308. <Property Name="Xvalue" Type="int" Nullable="false" />
  309. <Property Name="Yvalue" Type="int" Nullable="false" />
  310. <Property Name="ZoneId" Type="int" />
  311. <Property Name="ServiceTypeId" Type="int" />
  312. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  313. <Property Name="FacilityCode" Type="int" Nullable="false" />
  314. <Property Name="PropertyId" Type="int" Nullable="false" />
  315. <Property Name="FacilityName" Type="nvarchar" MaxLength="64" />
  316. </EntityType>
  317. <EntityType Name="BemsFormula">
  318. <Key>
  319. <PropertyRef Name="SiteId" />
  320. <PropertyRef Name="FacilityTypeId" />
  321. <PropertyRef Name="FacilityCode" />
  322. <PropertyRef Name="FormulaId" />
  323. </Key>
  324. <Property Name="SiteId" Type="int" Nullable="false" />
  325. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  326. <Property Name="FacilityCode" Type="int" Nullable="false" />
  327. <Property Name="FormulaId" Type="int" Nullable="false" />
  328. <Property Name="Formula" Type="nvarchar" MaxLength="120" Nullable="false" />
  329. </EntityType>
  330. <EntityType Name="BemsFormulaBase">
  331. <Key>
  332. <PropertyRef Name="FacilityTypeId" />
  333. <PropertyRef Name="FormulaId" />
  334. </Key>
  335. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  336. <Property Name="FormulaId" Type="int" Nullable="false" />
  337. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  338. </EntityType>
  339. <EntityType Name="BemsFormulaParameter">
  340. <Key>
  341. <PropertyRef Name="SiteId" />
  342. <PropertyRef Name="FacilityCode" />
  343. <PropertyRef Name="FormulaId" />
  344. <PropertyRef Name="ParameterId" />
  345. </Key>
  346. <Property Name="SiteId" Type="int" Nullable="false" />
  347. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  348. <Property Name="FacilityCode" Type="int" Nullable="false" />
  349. <Property Name="FormulaId" Type="int" Nullable="false" />
  350. <Property Name="ParameterId" Type="nchar" MaxLength="1" Nullable="false" />
  351. <Property Name="ParameterFacilityCode" Type="int" Nullable="false" />
  352. <Property Name="ParameterPropertyId" Type="int" Nullable="false" />
  353. </EntityType>
  354. <EntityType Name="BemsFormulaTable">
  355. <Key>
  356. <PropertyRef Name="TableId" />
  357. </Key>
  358. <Property Name="TableId" Type="int" Nullable="false" />
  359. <Property Name="FunctionName" Type="nvarchar" MaxLength="20" Nullable="false" />
  360. <Property Name="Description" Type="nvarchar" MaxLength="80" Nullable="false" />
  361. </EntityType>
  362. <EntityType Name="BemsFormulaTableValue">
  363. <Key>
  364. <PropertyRef Name="TableId" />
  365. <PropertyRef Name="XValue" />
  366. </Key>
  367. <Property Name="TableId" Type="int" Nullable="false" />
  368. <Property Name="XValue" Type="float" Nullable="false" />
  369. <Property Name="YValue" Type="float" Nullable="false" />
  370. </EntityType>
  371. <EntityType Name="BemsFuelType">
  372. <Key>
  373. <PropertyRef Name="FuelTypeId" />
  374. </Key>
  375. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  376. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  377. </EntityType>
  378. <EntityType Name="BemsIceThermalStorageSimulation">
  379. <Key>
  380. <PropertyRef Name="SiteId" />
  381. <PropertyRef Name="FacilityCode" />
  382. <PropertyRef Name="PropertyId" />
  383. <PropertyRef Name="CreatedDateTime" />
  384. <PropertyRef Name="TargetDateTime" />
  385. <PropertyRef Name="SimulationCase" />
  386. </Key>
  387. <Property Name="SiteId" Type="int" Nullable="false" />
  388. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  389. <Property Name="FacilityCode" Type="int" Nullable="false" />
  390. <Property Name="PropertyId" Type="int" Nullable="false" />
  391. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  392. <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
  393. <Property Name="SimulationValue" Type="float" />
  394. <Property Name="SimulationCase" Type="int" Nullable="false" />
  395. </EntityType>
  396. <EntityType Name="BemsMonitoringPoint">
  397. <Key>
  398. <PropertyRef Name="SiteId" />
  399. <PropertyRef Name="FacilityCode" />
  400. <PropertyRef Name="PropertyId" />
  401. </Key>
  402. <Property Name="SiteId" Type="int" Nullable="false" />
  403. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  404. <Property Name="FacilityCode" Type="int" Nullable="false" />
  405. <Property Name="PropertyId" Type="int" Nullable="false" />
  406. <Property Name="ValueType" Type="int" Nullable="false" />
  407. <Property Name="ServiceTypeId" Type="smallint" />
  408. <Property Name="FuelTypeId" Type="smallint" />
  409. <Property Name="Name" Type="nvarchar" MaxLength="64" />
  410. <Property Name="Description" Type="nvarchar" MaxLength="256" />
  411. <Property Name="BuildingId" Type="int" />
  412. <Property Name="FloorId" Type="int" />
  413. <Property Name="ZoneId" Type="int" />
  414. </EntityType>
  415. <EntityType Name="BemsMonitoringPointBaseData">
  416. <Key>
  417. <PropertyRef Name="FacilityTypeId" />
  418. <PropertyRef Name="PropertyId" />
  419. </Key>
  420. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  421. <Property Name="PropertyId" Type="int" Nullable="false" />
  422. <Property Name="ValueType" Type="int" Nullable="false" />
  423. <Property Name="IsAccumulated" Type="bit" Nullable="false" />
  424. <Property Name="ServiceTypeId" Type="smallint" />
  425. <Property Name="FuelTypeId" Type="smallint" />
  426. <Property Name="Name" Type="nvarchar" MaxLength="64" />
  427. <Property Name="Description" Type="nvarchar" MaxLength="256" />
  428. <Property Name="IsSampled" Type="bit" />
  429. <Property Name="IsConverted" Type="bit" />
  430. </EntityType>
  431. <EntityType Name="BemsMonitoringPointConfig">
  432. <Key>
  433. <PropertyRef Name="SiteId" />
  434. <PropertyRef Name="FacilityCode" />
  435. <PropertyRef Name="PropertyId" />
  436. </Key>
  437. <Property Name="SiteId" Type="int" Nullable="false" />
  438. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  439. <Property Name="FacilityCode" Type="int" Nullable="false" />
  440. <Property Name="PropertyId" Type="int" Nullable="false" />
  441. <Property Name="IsAccumulated" Type="bit" Nullable="false" />
  442. <Property Name="IsSampled" Type="bit" Nullable="false" />
  443. <Property Name="SaveMode" Type="int" Nullable="false" />
  444. <Property Name="ControlPointName" Type="nvarchar" MaxLength="200" />
  445. <Property Name="IsConverted" Type="bit" />
  446. </EntityType>
  447. <EntityType Name="BemsMonitoringPointForecastingDayAhead">
  448. <Key>
  449. <PropertyRef Name="SiteId" />
  450. <PropertyRef Name="FacilityCode" />
  451. <PropertyRef Name="PropertyId" />
  452. <PropertyRef Name="CreatedDateTime" />
  453. <PropertyRef Name="TargetDateTime" />
  454. </Key>
  455. <Property Name="SiteId" Type="int" Nullable="false" />
  456. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  457. <Property Name="FacilityCode" Type="int" Nullable="false" />
  458. <Property Name="PropertyId" Type="int" Nullable="false" />
  459. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  460. <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
  461. <Property Name="ForecastedValue" Type="float" Nullable="false" />
  462. </EntityType>
  463. <EntityType Name="BemsMonitoringPointForecastingHourAhead">
  464. <Key>
  465. <PropertyRef Name="SiteId" />
  466. <PropertyRef Name="FacilityCode" />
  467. <PropertyRef Name="PropertyId" />
  468. <PropertyRef Name="CreatedDateTime" />
  469. <PropertyRef Name="TargetDateTime" />
  470. </Key>
  471. <Property Name="SiteId" Type="int" Nullable="false" />
  472. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  473. <Property Name="FacilityCode" Type="int" Nullable="false" />
  474. <Property Name="PropertyId" Type="int" Nullable="false" />
  475. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  476. <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
  477. <Property Name="ForecastedValue" Type="float" Nullable="false" />
  478. </EntityType>
  479. <EntityType Name="BemsMonitoringPointHistory15min">
  480. <Key>
  481. <PropertyRef Name="SiteId" />
  482. <PropertyRef Name="FacilityCode" />
  483. <PropertyRef Name="PropertyId" />
  484. <PropertyRef Name="CreatedDateTime" />
  485. </Key>
  486. <Property Name="SiteId" Type="int" Nullable="false" />
  487. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  488. <Property Name="FacilityCode" Type="int" Nullable="false" />
  489. <Property Name="PropertyId" Type="int" Nullable="false" />
  490. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  491. <Property Name="CurrentValue" Type="float" Nullable="false" />
  492. </EntityType>
  493. <EntityType Name="BemsMonitoringPointHistory15minRawData">
  494. <Key>
  495. <PropertyRef Name="SiteId" />
  496. <PropertyRef Name="FacilityCode" />
  497. <PropertyRef Name="PropertyId" />
  498. <PropertyRef Name="CreatedDateTime" />
  499. </Key>
  500. <Property Name="SiteId" Type="int" Nullable="false" />
  501. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  502. <Property Name="FacilityCode" Type="int" Nullable="false" />
  503. <Property Name="PropertyId" Type="int" Nullable="false" />
  504. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  505. <Property Name="CurrentValue" Type="float" Nullable="false" />
  506. </EntityType>
  507. <EntityType Name="BemsMonitoringPointHistoryDaily">
  508. <Key>
  509. <PropertyRef Name="SiteId" />
  510. <PropertyRef Name="FacilityCode" />
  511. <PropertyRef Name="PropertyId" />
  512. <PropertyRef Name="CreatedDateTime" />
  513. </Key>
  514. <Property Name="SiteId" Type="int" Nullable="false" />
  515. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  516. <Property Name="FacilityCode" Type="int" Nullable="false" />
  517. <Property Name="PropertyId" Type="int" Nullable="false" />
  518. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  519. <Property Name="DailyValue" Type="float" Nullable="false" />
  520. <Property Name="MaxValue" Type="float" />
  521. <Property Name="MinValue" Type="float" />
  522. </EntityType>
  523. <EntityType Name="BemsMonitoringPointHistoryHourly">
  524. <Key>
  525. <PropertyRef Name="SiteId" />
  526. <PropertyRef Name="FacilityCode" />
  527. <PropertyRef Name="PropertyId" />
  528. <PropertyRef Name="CreatedDateTime" />
  529. </Key>
  530. <Property Name="SiteId" Type="int" Nullable="false" />
  531. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  532. <Property Name="FacilityCode" Type="int" Nullable="false" />
  533. <Property Name="PropertyId" Type="int" Nullable="false" />
  534. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  535. <Property Name="CurrentValue" Type="float" Nullable="false" />
  536. </EntityType>
  537. <EntityType Name="BemsMonitoringPointToAnlaysisType">
  538. <Key>
  539. <PropertyRef Name="SiteId" />
  540. <PropertyRef Name="FacilityTypeId" />
  541. <PropertyRef Name="FacilityCode" />
  542. <PropertyRef Name="PropertyId" />
  543. <PropertyRef Name="AnalysisType" />
  544. </Key>
  545. <Property Name="SiteId" Type="int" Nullable="false" />
  546. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  547. <Property Name="FacilityCode" Type="int" Nullable="false" />
  548. <Property Name="PropertyId" Type="int" Nullable="false" />
  549. <Property Name="AnalysisType" Type="int" Nullable="false" />
  550. </EntityType>
  551. <EntityType Name="BemsMonitoringPointWeatherForecasted">
  552. <Key>
  553. <PropertyRef Name="SiteId" />
  554. <PropertyRef Name="CreatedDateTime" />
  555. <PropertyRef Name="Category" />
  556. <PropertyRef Name="BaseDateTime" />
  557. <PropertyRef Name="ForecastedDateTime" />
  558. </Key>
  559. <Property Name="SiteId" Type="int" Nullable="false" />
  560. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  561. <Property Name="Category" Type="nvarchar" MaxLength="50" Nullable="false" />
  562. <Property Name="BaseDateTime" Type="datetime" Nullable="false" />
  563. <Property Name="ForecastedDateTime" Type="datetime" Nullable="false" />
  564. <Property Name="ForecastedValue" Type="float" Nullable="false" />
  565. <Property Name="nx" Type="int" Nullable="false" />
  566. <Property Name="ny" Type="int" Nullable="false" />
  567. </EntityType>
  568. <EntityType Name="BemsNoticePriceBase">
  569. <Key>
  570. <PropertyRef Name="SiteId" />
  571. <PropertyRef Name="FuelTypeId" />
  572. <PropertyRef Name="ApplyDate" />
  573. <PropertyRef Name="ContractType" />
  574. </Key>
  575. <Property Name="SiteId" Type="int" Nullable="false" />
  576. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  577. <Property Name="ApplyDate" Type="date" Nullable="false" />
  578. <Property Name="ContractType" Type="smallint" Nullable="false" />
  579. <Property Name="PrimaryPrice" Type="int" />
  580. <Property Name="SecondaryPrice" Type="int" />
  581. </EntityType>
  582. <EntityType Name="BemsNoticePriceContractType">
  583. <Key>
  584. <PropertyRef Name="FuelTypeId" />
  585. <PropertyRef Name="ContractType" />
  586. </Key>
  587. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  588. <Property Name="ContractType" Type="smallint" Nullable="false" />
  589. <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
  590. </EntityType>
  591. <EntityType Name="BemsNoticePriceDetail">
  592. <Key>
  593. <PropertyRef Name="SiteId" />
  594. <PropertyRef Name="FuelTypeId" />
  595. <PropertyRef Name="ApplyDate" />
  596. <PropertyRef Name="ContractType" />
  597. <PropertyRef Name="DataId" />
  598. </Key>
  599. <Property Name="SiteId" Type="int" Nullable="false" />
  600. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  601. <Property Name="ApplyDate" Type="date" Nullable="false" />
  602. <Property Name="ContractType" Type="smallint" Nullable="false" />
  603. <Property Name="DataId" Type="smallint" Nullable="false" />
  604. <Property Name="P01" Type="float" />
  605. <Property Name="P02" Type="float" />
  606. <Property Name="P03" Type="float" />
  607. <Property Name="P04" Type="float" />
  608. <Property Name="P05" Type="float" />
  609. <Property Name="P06" Type="float" />
  610. <Property Name="P07" Type="float" />
  611. <Property Name="P08" Type="float" />
  612. <Property Name="P09" Type="float" />
  613. <Property Name="P10" Type="float" />
  614. <Property Name="P11" Type="float" />
  615. <Property Name="P12" Type="float" />
  616. </EntityType>
  617. <EntityType Name="BemsPeakFacility">
  618. <Key>
  619. <PropertyRef Name="SiteId" />
  620. <PropertyRef Name="MaxDateTime" />
  621. <PropertyRef Name="FacilityCode" />
  622. </Key>
  623. <Property Name="SiteId" Type="int" Nullable="false" />
  624. <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
  625. <Property Name="FacilityCode" Type="int" Nullable="false" />
  626. </EntityType>
  627. <EntityType Name="BemsPeakHistory">
  628. <Key>
  629. <PropertyRef Name="SiteId" />
  630. <PropertyRef Name="CreatedDateTime" />
  631. </Key>
  632. <Property Name="SiteId" Type="int" Nullable="false" />
  633. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  634. <Property Name="CurrentValue" Type="float" Nullable="false" />
  635. </EntityType>
  636. <EntityType Name="BemsPeakHistoryDaily">
  637. <Key>
  638. <PropertyRef Name="SiteId" />
  639. <PropertyRef Name="CreatedDateTime" />
  640. </Key>
  641. <Property Name="SiteId" Type="int" Nullable="false" />
  642. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  643. <Property Name="MaxPeakValue" Type="float" />
  644. <Property Name="MaxDateTime" Type="datetime" />
  645. <Property Name="MinPeakValue" Type="float" />
  646. <Property Name="MinDateTime" Type="datetime" />
  647. </EntityType>
  648. <EntityType Name="BemsPeakInfo">
  649. <Key>
  650. <PropertyRef Name="SiteId" />
  651. </Key>
  652. <Property Name="SiteId" Type="int" Nullable="false" />
  653. <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
  654. <Property Name="MaxPeakValue" Type="float" Nullable="false" />
  655. <Property Name="MinDateTime" Type="datetime" Nullable="false" />
  656. <Property Name="MinPeakValue" Type="float" Nullable="false" />
  657. <Property Name="todayMaxPeakValue" Type="float" Nullable="false" />
  658. <Property Name="todayMinPeakValue" Type="float" Nullable="false" />
  659. </EntityType>
  660. <EntityType Name="BemsPeopleIncrease">
  661. <Key>
  662. <PropertyRef Name="Date" />
  663. <PropertyRef Name="SiteId" />
  664. </Key>
  665. <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
  666. <Property Name="SiteId" Type="int" Nullable="false" />
  667. <Property Name="m1" Type="nvarchar" MaxLength="50" />
  668. <Property Name="m2" Type="nvarchar" MaxLength="50" />
  669. <Property Name="m3" Type="nvarchar" MaxLength="50" />
  670. <Property Name="m4" Type="nvarchar" MaxLength="50" />
  671. <Property Name="m5" Type="nvarchar" MaxLength="50" />
  672. <Property Name="m6" Type="nvarchar" MaxLength="50" />
  673. <Property Name="m7" Type="nvarchar" MaxLength="50" />
  674. <Property Name="m8" Type="nvarchar" MaxLength="50" />
  675. <Property Name="m9" Type="nvarchar" MaxLength="50" />
  676. <Property Name="m10" Type="nvarchar" MaxLength="50" />
  677. <Property Name="m11" Type="nvarchar" MaxLength="50" />
  678. <Property Name="m12" Type="nvarchar" MaxLength="50" />
  679. </EntityType>
  680. <EntityType Name="BemsPriceCode">
  681. <Key>
  682. <PropertyRef Name="PriceCode" />
  683. </Key>
  684. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  685. <Property Name="PriceCodeDesc" Type="varchar" MaxLength="200" />
  686. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  687. <Property Name="Unit" Type="varchar" MaxLength="20" />
  688. </EntityType>
  689. <EntityType Name="BemsPriceFormula">
  690. <Key>
  691. <PropertyRef Name="SiteId" />
  692. <PropertyRef Name="PriceTypeId" />
  693. <PropertyRef Name="FacilityTypeId" />
  694. <PropertyRef Name="FormulaId" />
  695. <PropertyRef Name="FacilityCode" />
  696. </Key>
  697. <Property Name="SiteId" Type="int" Nullable="false" />
  698. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  699. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  700. <Property Name="FormulaId" Type="int" Nullable="false" />
  701. <Property Name="FacilityCode" Type="int" Nullable="false" />
  702. <Property Name="UseYN" Type="nvarchar" MaxLength="1" Nullable="false" />
  703. </EntityType>
  704. <EntityType Name="BemsPriceMeta">
  705. <Key>
  706. <PropertyRef Name="PriceTypeId" />
  707. <PropertyRef Name="PublishDate" />
  708. </Key>
  709. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  710. <Property Name="PublishDate" Type="datetime" Nullable="false" />
  711. <Property Name="BasePrice" Type="int" />
  712. <Property Name="01_00" Type="float" />
  713. <Property Name="01_01" Type="float" />
  714. <Property Name="01_02" Type="float" />
  715. <Property Name="01_03" Type="float" />
  716. <Property Name="01_04" Type="float" />
  717. <Property Name="01_05" Type="float" />
  718. <Property Name="01_06" Type="float" />
  719. <Property Name="01_07" Type="float" />
  720. <Property Name="01_08" Type="float" />
  721. <Property Name="01_09" Type="float" />
  722. <Property Name="01_10" Type="float" />
  723. <Property Name="01_11" Type="float" />
  724. <Property Name="01_12" Type="float" />
  725. <Property Name="01_13" Type="float" />
  726. <Property Name="01_14" Type="float" />
  727. <Property Name="01_15" Type="float" />
  728. <Property Name="01_16" Type="float" />
  729. <Property Name="01_17" Type="float" />
  730. <Property Name="01_18" Type="float" />
  731. <Property Name="01_19" Type="float" />
  732. <Property Name="01_20" Type="float" />
  733. <Property Name="01_21" Type="float" />
  734. <Property Name="01_22" Type="float" />
  735. <Property Name="01_23" Type="float" />
  736. <Property Name="02_00" Type="float" />
  737. <Property Name="02_01" Type="float" />
  738. <Property Name="02_02" Type="float" />
  739. <Property Name="02_03" Type="float" />
  740. <Property Name="02_04" Type="float" />
  741. <Property Name="02_05" Type="float" />
  742. <Property Name="02_06" Type="float" />
  743. <Property Name="02_07" Type="float" />
  744. <Property Name="02_08" Type="float" />
  745. <Property Name="02_09" Type="float" />
  746. <Property Name="02_10" Type="float" />
  747. <Property Name="02_11" Type="float" />
  748. <Property Name="02_12" Type="float" />
  749. <Property Name="02_13" Type="float" />
  750. <Property Name="02_14" Type="float" />
  751. <Property Name="02_15" Type="float" />
  752. <Property Name="02_16" Type="float" />
  753. <Property Name="02_17" Type="float" />
  754. <Property Name="02_18" Type="float" />
  755. <Property Name="02_19" Type="float" />
  756. <Property Name="02_20" Type="float" />
  757. <Property Name="02_21" Type="float" />
  758. <Property Name="02_22" Type="float" />
  759. <Property Name="02_23" Type="float" />
  760. <Property Name="03_00" Type="float" />
  761. <Property Name="03_01" Type="float" />
  762. <Property Name="03_02" Type="float" />
  763. <Property Name="03_03" Type="float" />
  764. <Property Name="03_04" Type="float" />
  765. <Property Name="03_05" Type="float" />
  766. <Property Name="03_06" Type="float" />
  767. <Property Name="03_07" Type="float" />
  768. <Property Name="03_08" Type="float" />
  769. <Property Name="03_09" Type="float" />
  770. <Property Name="03_10" Type="float" />
  771. <Property Name="03_11" Type="float" />
  772. <Property Name="03_12" Type="float" />
  773. <Property Name="03_13" Type="float" />
  774. <Property Name="03_14" Type="float" />
  775. <Property Name="03_15" Type="float" />
  776. <Property Name="03_16" Type="float" />
  777. <Property Name="03_17" Type="float" />
  778. <Property Name="03_18" Type="float" />
  779. <Property Name="03_19" Type="float" />
  780. <Property Name="03_20" Type="float" />
  781. <Property Name="03_21" Type="float" />
  782. <Property Name="03_22" Type="float" />
  783. <Property Name="03_23" Type="float" />
  784. <Property Name="04_00" Type="float" />
  785. <Property Name="04_01" Type="float" />
  786. <Property Name="04_02" Type="float" />
  787. <Property Name="04_03" Type="float" />
  788. <Property Name="04_04" Type="float" />
  789. <Property Name="04_05" Type="float" />
  790. <Property Name="04_06" Type="float" />
  791. <Property Name="04_07" Type="float" />
  792. <Property Name="04_08" Type="float" />
  793. <Property Name="04_09" Type="float" />
  794. <Property Name="04_10" Type="float" />
  795. <Property Name="04_11" Type="float" />
  796. <Property Name="04_12" Type="float" />
  797. <Property Name="04_13" Type="float" />
  798. <Property Name="04_14" Type="float" />
  799. <Property Name="04_15" Type="float" />
  800. <Property Name="04_16" Type="float" />
  801. <Property Name="04_17" Type="float" />
  802. <Property Name="04_18" Type="float" />
  803. <Property Name="04_19" Type="float" />
  804. <Property Name="04_20" Type="float" />
  805. <Property Name="04_21" Type="float" />
  806. <Property Name="04_22" Type="float" />
  807. <Property Name="04_23" Type="float" />
  808. <Property Name="05_00" Type="float" />
  809. <Property Name="05_01" Type="float" />
  810. <Property Name="05_02" Type="float" />
  811. <Property Name="05_03" Type="float" />
  812. <Property Name="05_04" Type="float" />
  813. <Property Name="05_05" Type="float" />
  814. <Property Name="05_06" Type="float" />
  815. <Property Name="05_07" Type="float" />
  816. <Property Name="05_08" Type="float" />
  817. <Property Name="05_09" Type="float" />
  818. <Property Name="05_10" Type="float" />
  819. <Property Name="05_11" Type="float" />
  820. <Property Name="05_12" Type="float" />
  821. <Property Name="05_13" Type="float" />
  822. <Property Name="05_14" Type="float" />
  823. <Property Name="05_15" Type="float" />
  824. <Property Name="05_16" Type="float" />
  825. <Property Name="05_17" Type="float" />
  826. <Property Name="05_18" Type="float" />
  827. <Property Name="05_19" Type="float" />
  828. <Property Name="05_20" Type="float" />
  829. <Property Name="05_21" Type="float" />
  830. <Property Name="05_22" Type="float" />
  831. <Property Name="05_23" Type="float" />
  832. <Property Name="06_00" Type="float" />
  833. <Property Name="06_01" Type="float" />
  834. <Property Name="06_02" Type="float" />
  835. <Property Name="06_03" Type="float" />
  836. <Property Name="06_04" Type="float" />
  837. <Property Name="06_05" Type="float" />
  838. <Property Name="06_06" Type="float" />
  839. <Property Name="06_07" Type="float" />
  840. <Property Name="06_08" Type="float" />
  841. <Property Name="06_09" Type="float" />
  842. <Property Name="06_10" Type="float" />
  843. <Property Name="06_11" Type="float" />
  844. <Property Name="06_12" Type="float" />
  845. <Property Name="06_13" Type="float" />
  846. <Property Name="06_14" Type="float" />
  847. <Property Name="06_15" Type="float" />
  848. <Property Name="06_16" Type="float" />
  849. <Property Name="06_17" Type="float" />
  850. <Property Name="06_18" Type="float" />
  851. <Property Name="06_19" Type="float" />
  852. <Property Name="06_20" Type="float" />
  853. <Property Name="06_21" Type="float" />
  854. <Property Name="06_22" Type="float" />
  855. <Property Name="06_23" Type="float" />
  856. <Property Name="07_00" Type="float" />
  857. <Property Name="07_01" Type="float" />
  858. <Property Name="07_02" Type="float" />
  859. <Property Name="07_03" Type="float" />
  860. <Property Name="07_04" Type="float" />
  861. <Property Name="07_05" Type="float" />
  862. <Property Name="07_06" Type="float" />
  863. <Property Name="07_07" Type="float" />
  864. <Property Name="07_08" Type="float" />
  865. <Property Name="07_09" Type="float" />
  866. <Property Name="07_10" Type="float" />
  867. <Property Name="07_11" Type="float" />
  868. <Property Name="07_12" Type="float" />
  869. <Property Name="07_13" Type="float" />
  870. <Property Name="07_14" Type="float" />
  871. <Property Name="07_15" Type="float" />
  872. <Property Name="07_16" Type="float" />
  873. <Property Name="07_17" Type="float" />
  874. <Property Name="07_18" Type="float" />
  875. <Property Name="07_19" Type="float" />
  876. <Property Name="07_20" Type="float" />
  877. <Property Name="07_21" Type="float" />
  878. <Property Name="07_22" Type="float" />
  879. <Property Name="07_23" Type="float" />
  880. <Property Name="08_00" Type="float" />
  881. <Property Name="08_01" Type="float" />
  882. <Property Name="08_02" Type="float" />
  883. <Property Name="08_03" Type="float" />
  884. <Property Name="08_04" Type="float" />
  885. <Property Name="08_05" Type="float" />
  886. <Property Name="08_06" Type="float" />
  887. <Property Name="08_07" Type="float" />
  888. <Property Name="08_08" Type="float" />
  889. <Property Name="08_09" Type="float" />
  890. <Property Name="08_10" Type="float" />
  891. <Property Name="08_11" Type="float" />
  892. <Property Name="08_12" Type="float" />
  893. <Property Name="08_13" Type="float" />
  894. <Property Name="08_14" Type="float" />
  895. <Property Name="08_15" Type="float" />
  896. <Property Name="08_16" Type="float" />
  897. <Property Name="08_17" Type="float" />
  898. <Property Name="08_18" Type="float" />
  899. <Property Name="08_19" Type="float" />
  900. <Property Name="08_20" Type="float" />
  901. <Property Name="08_21" Type="float" />
  902. <Property Name="08_22" Type="float" />
  903. <Property Name="08_23" Type="float" />
  904. <Property Name="09_00" Type="float" />
  905. <Property Name="09_01" Type="float" />
  906. <Property Name="09_02" Type="float" />
  907. <Property Name="09_03" Type="float" />
  908. <Property Name="09_04" Type="float" />
  909. <Property Name="09_05" Type="float" />
  910. <Property Name="09_06" Type="float" />
  911. <Property Name="09_07" Type="float" />
  912. <Property Name="09_08" Type="float" />
  913. <Property Name="09_09" Type="float" />
  914. <Property Name="09_10" Type="float" />
  915. <Property Name="09_11" Type="float" />
  916. <Property Name="09_12" Type="float" />
  917. <Property Name="09_13" Type="float" />
  918. <Property Name="09_14" Type="float" />
  919. <Property Name="09_15" Type="float" />
  920. <Property Name="09_16" Type="float" />
  921. <Property Name="09_17" Type="float" />
  922. <Property Name="09_18" Type="float" />
  923. <Property Name="09_19" Type="float" />
  924. <Property Name="09_20" Type="float" />
  925. <Property Name="09_21" Type="float" />
  926. <Property Name="09_22" Type="float" />
  927. <Property Name="09_23" Type="float" />
  928. <Property Name="10_00" Type="float" />
  929. <Property Name="10_01" Type="float" />
  930. <Property Name="10_02" Type="float" />
  931. <Property Name="10_03" Type="float" />
  932. <Property Name="10_04" Type="float" />
  933. <Property Name="10_05" Type="float" />
  934. <Property Name="10_06" Type="float" />
  935. <Property Name="10_07" Type="float" />
  936. <Property Name="10_08" Type="float" />
  937. <Property Name="10_09" Type="float" />
  938. <Property Name="10_10" Type="float" />
  939. <Property Name="10_11" Type="float" />
  940. <Property Name="10_12" Type="float" />
  941. <Property Name="10_13" Type="float" />
  942. <Property Name="10_14" Type="float" />
  943. <Property Name="10_15" Type="float" />
  944. <Property Name="10_16" Type="float" />
  945. <Property Name="10_17" Type="float" />
  946. <Property Name="10_18" Type="float" />
  947. <Property Name="10_19" Type="float" />
  948. <Property Name="10_20" Type="float" />
  949. <Property Name="10_21" Type="float" />
  950. <Property Name="10_22" Type="float" />
  951. <Property Name="10_23" Type="float" />
  952. <Property Name="11_00" Type="float" />
  953. <Property Name="11_01" Type="float" />
  954. <Property Name="11_02" Type="float" />
  955. <Property Name="11_03" Type="float" />
  956. <Property Name="11_04" Type="float" />
  957. <Property Name="11_05" Type="float" />
  958. <Property Name="11_06" Type="float" />
  959. <Property Name="11_07" Type="float" />
  960. <Property Name="11_08" Type="float" />
  961. <Property Name="11_09" Type="float" />
  962. <Property Name="11_10" Type="float" />
  963. <Property Name="11_11" Type="float" />
  964. <Property Name="11_12" Type="float" />
  965. <Property Name="11_13" Type="float" />
  966. <Property Name="11_14" Type="float" />
  967. <Property Name="11_15" Type="float" />
  968. <Property Name="11_16" Type="float" />
  969. <Property Name="11_17" Type="float" />
  970. <Property Name="11_18" Type="float" />
  971. <Property Name="11_19" Type="float" />
  972. <Property Name="11_20" Type="float" />
  973. <Property Name="11_21" Type="float" />
  974. <Property Name="11_22" Type="float" />
  975. <Property Name="11_23" Type="float" />
  976. <Property Name="12_00" Type="float" />
  977. <Property Name="12_01" Type="float" />
  978. <Property Name="12_02" Type="float" />
  979. <Property Name="12_03" Type="float" />
  980. <Property Name="12_04" Type="float" />
  981. <Property Name="12_05" Type="float" />
  982. <Property Name="12_06" Type="float" />
  983. <Property Name="12_07" Type="float" />
  984. <Property Name="12_08" Type="float" />
  985. <Property Name="12_09" Type="float" />
  986. <Property Name="12_10" Type="float" />
  987. <Property Name="12_11" Type="float" />
  988. <Property Name="12_12" Type="float" />
  989. <Property Name="12_13" Type="float" />
  990. <Property Name="12_14" Type="float" />
  991. <Property Name="12_15" Type="float" />
  992. <Property Name="12_16" Type="float" />
  993. <Property Name="12_17" Type="float" />
  994. <Property Name="12_18" Type="float" />
  995. <Property Name="12_19" Type="float" />
  996. <Property Name="12_20" Type="float" />
  997. <Property Name="12_21" Type="float" />
  998. <Property Name="12_22" Type="float" />
  999. <Property Name="12_23" Type="float" />
  1000. </EntityType>
  1001. <EntityType Name="BemsPriceType">
  1002. <Key>
  1003. <PropertyRef Name="PriceTypeId" />
  1004. </Key>
  1005. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1006. <Property Name="PriceTypeIdDesc" Type="varchar" MaxLength="200" />
  1007. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1008. </EntityType>
  1009. <EntityType Name="BemsRentalRate">
  1010. <Key>
  1011. <PropertyRef Name="Date" />
  1012. <PropertyRef Name="SiteId" />
  1013. </Key>
  1014. <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
  1015. <Property Name="SiteId" Type="int" Nullable="false" />
  1016. <Property Name="m1" Type="nvarchar" MaxLength="50" />
  1017. <Property Name="m2" Type="nvarchar" MaxLength="50" />
  1018. <Property Name="m3" Type="nvarchar" MaxLength="50" />
  1019. <Property Name="m4" Type="nvarchar" MaxLength="50" />
  1020. <Property Name="m5" Type="nvarchar" MaxLength="50" />
  1021. <Property Name="m6" Type="nvarchar" MaxLength="50" />
  1022. <Property Name="m7" Type="nvarchar" MaxLength="50" />
  1023. <Property Name="m8" Type="nvarchar" MaxLength="50" />
  1024. <Property Name="m9" Type="nvarchar" MaxLength="50" />
  1025. <Property Name="m10" Type="nvarchar" MaxLength="50" />
  1026. <Property Name="m11" Type="nvarchar" MaxLength="50" />
  1027. <Property Name="m12" Type="nvarchar" MaxLength="50" />
  1028. </EntityType>
  1029. <EntityType Name="BemsReportFormat">
  1030. <Key>
  1031. <PropertyRef Name="ReportFormatId" />
  1032. <PropertyRef Name="parts" />
  1033. </Key>
  1034. <Property Name="ReportFormatId" Type="int" Nullable="false" />
  1035. <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
  1036. <Property Name="Content" Type="varchar(max)" />
  1037. <Property Name="parts" Type="int" Nullable="false" />
  1038. </EntityType>
  1039. <EntityType Name="BemsReportHistory">
  1040. <Key>
  1041. <PropertyRef Name="Seq" />
  1042. <PropertyRef Name="DateTime" />
  1043. <PropertyRef Name="ReportFormatId" />
  1044. <PropertyRef Name="parts" />
  1045. </Key>
  1046. <Property Name="SiteId" Type="int" Nullable="false" />
  1047. <Property Name="Seq" Type="int" Nullable="false" />
  1048. <Property Name="DateTime" Type="datetime" Nullable="false" />
  1049. <Property Name="ReportName" Type="varchar" MaxLength="200" Nullable="false" />
  1050. <Property Name="ReportFormatId" Type="int" Nullable="false" />
  1051. <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
  1052. <Property Name="Content" Type="varchar(max)" />
  1053. <Property Name="Writer" Type="varchar" MaxLength="50" />
  1054. <Property Name="Confirm1" Type="varchar" MaxLength="50" />
  1055. <Property Name="Confirm2" Type="varchar" MaxLength="50" />
  1056. <Property Name="parts" Type="int" Nullable="false" />
  1057. <Property Name="FileName" Type="nvarchar" MaxLength="100" />
  1058. </EntityType>
  1059. <EntityType Name="BemsServiceType">
  1060. <Key>
  1061. <PropertyRef Name="ServiceTypeId" />
  1062. </Key>
  1063. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1064. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  1065. </EntityType>
  1066. <EntityType Name="BemsSitePrice">
  1067. <Key>
  1068. <PropertyRef Name="SiteID" />
  1069. <PropertyRef Name="FuelTypeId" />
  1070. <PropertyRef Name="PriceTypeId" />
  1071. <PropertyRef Name="PriceCode" />
  1072. </Key>
  1073. <Property Name="SiteID" Type="int" Nullable="false" />
  1074. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1075. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1076. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  1077. <Property Name="UseYN" Type="varchar" MaxLength="1" Nullable="false" />
  1078. </EntityType>
  1079. <EntityType Name="BemsSitePriceHistory">
  1080. <Key>
  1081. <PropertyRef Name="SiteId" />
  1082. <PropertyRef Name="FuelTypeId" />
  1083. <PropertyRef Name="PriceTypeId" />
  1084. <PropertyRef Name="PriceCode" />
  1085. <PropertyRef Name="PayDate" />
  1086. </Key>
  1087. <Property Name="SiteId" Type="int" Nullable="false" />
  1088. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1089. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1090. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  1091. <Property Name="PriceValue" Type="varchar" MaxLength="200" />
  1092. <Property Name="PayDate" Type="varchar" MaxLength="6" Nullable="false" />
  1093. <Property Name="StartDate" Type="datetime" />
  1094. <Property Name="EndDate" Type="datetime" />
  1095. <Property Name="PayCharge" Type="varchar" MaxLength="200" />
  1096. </EntityType>
  1097. <EntityType Name="CmAlarmAdmin">
  1098. <Key>
  1099. <PropertyRef Name="SiteId" />
  1100. </Key>
  1101. <Property Name="SiteId" Type="int" Nullable="false" />
  1102. <Property Name="UserCode" Type="nvarchar" MaxLength="50" />
  1103. <Property Name="DeptCode" Type="nvarchar" MaxLength="50" />
  1104. <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
  1105. <Property Name="EmailAddress" Type="nvarchar" MaxLength="50" />
  1106. <Property Name="EmailPassword" Type="nvarchar" MaxLength="50" />
  1107. </EntityType>
  1108. <EntityType Name="CmAnnouncement">
  1109. <Key>
  1110. <PropertyRef Name="SiteId" />
  1111. <PropertyRef Name="AnnouncementId" />
  1112. </Key>
  1113. <Property Name="SiteId" Type="int" Nullable="false" />
  1114. <Property Name="AnnouncementId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1115. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  1116. <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
  1117. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  1118. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1119. <Property Name="FileId" Type="int" />
  1120. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1121. <Property Name="UpdateDate" Type="datetime" Nullable="false" />
  1122. <Property Name="IsUse" Type="bit" />
  1123. <Property Name="ReadCount" Type="int" Nullable="false" />
  1124. </EntityType>
  1125. <EntityType Name="CmBuilding">
  1126. <Key>
  1127. <PropertyRef Name="SiteId" />
  1128. <PropertyRef Name="BuildingId" />
  1129. </Key>
  1130. <Property Name="SiteId" Type="int" Nullable="false" />
  1131. <Property Name="BuildingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1132. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1133. <Property Name="FileId" Type="int" />
  1134. <Property Name="IsUse" Type="bit" />
  1135. <Property Name="SortOrderNo" Type="int" />
  1136. </EntityType>
  1137. <EntityType Name="CmBusinessField">
  1138. <Key>
  1139. <PropertyRef Name="SiteId" />
  1140. <PropertyRef Name="BusinessFieldId" />
  1141. </Key>
  1142. <Property Name="SiteId" Type="int" Nullable="false" />
  1143. <Property Name="BusinessFieldId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1144. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1145. <Property Name="IsUse" Type="bit" />
  1146. </EntityType>
  1147. <EntityType Name="CmCompany">
  1148. <Key>
  1149. <PropertyRef Name="SiteId" />
  1150. <PropertyRef Name="CompanyId" />
  1151. </Key>
  1152. <Property Name="SiteId" Type="int" Nullable="false" />
  1153. <Property Name="CompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1154. <Property Name="CompanyTypeId" Type="int" Nullable="false" />
  1155. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1156. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1157. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  1158. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" Nullable="false" />
  1159. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  1160. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  1161. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  1162. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1163. <Property Name="Address1" Type="nvarchar" MaxLength="50" />
  1164. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1165. <Property Name="Homepage" Type="nvarchar" MaxLength="100" />
  1166. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1167. <Property Name="IsUse" Type="bit" />
  1168. </EntityType>
  1169. <EntityType Name="CmCompanyType">
  1170. <Key>
  1171. <PropertyRef Name="SiteId" />
  1172. <PropertyRef Name="CompanyTypeId" />
  1173. </Key>
  1174. <Property Name="SiteId" Type="int" Nullable="false" />
  1175. <Property Name="CompanyTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1176. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1177. <Property Name="IsUse" Type="bit" />
  1178. </EntityType>
  1179. <EntityType Name="CmDepartment">
  1180. <Key>
  1181. <PropertyRef Name="SiteId" />
  1182. <PropertyRef Name="CompanyId" />
  1183. <PropertyRef Name="DepartmentId" />
  1184. </Key>
  1185. <Property Name="SiteId" Type="int" Nullable="false" />
  1186. <Property Name="CompanyId" Type="int" Nullable="false" />
  1187. <Property Name="DepartmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1188. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1189. <Property Name="ShortName" Type="nvarchar" MaxLength="50" />
  1190. <Property Name="FaxNo" Type="nvarchar" MaxLength="50" />
  1191. <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
  1192. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1193. <Property Name="IsUse" Type="bit" />
  1194. </EntityType>
  1195. <EntityType Name="CmFacility">
  1196. <Key>
  1197. <PropertyRef Name="SiteId" />
  1198. <PropertyRef Name="FacilityCode" />
  1199. </Key>
  1200. <Property Name="SiteId" Type="int" Nullable="false" />
  1201. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  1202. <Property Name="FacilityCode" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1203. <Property Name="FirstClassId" Type="int" />
  1204. <Property Name="SecondClassId" Type="int" />
  1205. <Property Name="ThirdClassId" Type="int" />
  1206. <Property Name="DeviceType" Type="nvarchar" MaxLength="48" />
  1207. <Property Name="ParentFacilityCode" Type="int" />
  1208. <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
  1209. <Property Name="Nickname" Type="nvarchar" MaxLength="40" />
  1210. <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
  1211. <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
  1212. <Property Name="ManufactureDate" Type="date" />
  1213. <Property Name="ManufactureSerial" Type="nvarchar" MaxLength="20" />
  1214. <Property Name="ManufactureModel" Type="nvarchar" MaxLength="40" />
  1215. <Property Name="Supplier" Type="nvarchar" MaxLength="40" />
  1216. <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
  1217. <Property Name="BuildingId" Type="int" />
  1218. <Property Name="FloorId" Type="int" />
  1219. <Property Name="ZoneId" Type="int" />
  1220. <Property Name="InstallDate" Type="date" />
  1221. <Property Name="OperationStartDate" Type="date" />
  1222. <Property Name="FacilityCapacity" Type="nvarchar" MaxLength="40" />
  1223. <Property Name="FacilityCost" Type="int" />
  1224. <Property Name="FacilityCount" Type="int" />
  1225. <Property Name="FacilitySeviceLifeYear" Type="int" />
  1226. <Property Name="FacilityUsage" Type="nvarchar" MaxLength="80" />
  1227. <Property Name="RatedPowerConsumption" Type="nvarchar" MaxLength="40" />
  1228. <Property Name="RatedCOP" Type="float" />
  1229. <Property Name="MainContactorUserId" Type="nvarchar" MaxLength="24" />
  1230. <Property Name="SubContactorUserId" Type="nvarchar" MaxLength="24" />
  1231. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  1232. <Property Name="Reserved1" Type="nvarchar" MaxLength="64" />
  1233. <Property Name="Reserved2" Type="nvarchar" MaxLength="64" />
  1234. <Property Name="IsUse" Type="bit" />
  1235. <Property Name="FileId" Type="int" />
  1236. <Property Name="IsVirtualFacility" Type="bit" Nullable="false" />
  1237. <Property Name="FuelTypeId" Type="smallint" />
  1238. <Property Name="ContractType" Type="smallint" />
  1239. </EntityType>
  1240. <EntityType Name="CmFacilityFile">
  1241. <Key>
  1242. <PropertyRef Name="SiteId" />
  1243. <PropertyRef Name="FileId" />
  1244. </Key>
  1245. <Property Name="SiteId" Type="int" Nullable="false" />
  1246. <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1247. <Property Name="FacilityCode" Type="int" Nullable="false" />
  1248. <Property Name="InsertedDate" Type="datetime" />
  1249. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  1250. <Property Name="UpdatedDate" Type="datetime" />
  1251. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1252. </EntityType>
  1253. <EntityType Name="CmFacilityTempSet">
  1254. <Key>
  1255. <PropertyRef Name="SiteId" />
  1256. <PropertyRef Name="FacilityCode" />
  1257. </Key>
  1258. <Property Name="SiteId" Type="int" Nullable="false" />
  1259. <Property Name="FacilityCode" Type="int" Nullable="false" />
  1260. <Property Name="T1" Type="float" Nullable="false" />
  1261. <Property Name="T2" Type="float" Nullable="false" />
  1262. <Property Name="T3" Type="float" Nullable="false" />
  1263. <Property Name="T4" Type="float" Nullable="false" />
  1264. <Property Name="T5" Type="float" Nullable="false" />
  1265. <Property Name="T6" Type="float" Nullable="false" />
  1266. <Property Name="T7" Type="float" Nullable="false" />
  1267. <Property Name="T8" Type="float" Nullable="false" />
  1268. <Property Name="T9" Type="float" Nullable="false" />
  1269. <Property Name="T10" Type="float" Nullable="false" />
  1270. <Property Name="T11" Type="float" Nullable="false" />
  1271. <Property Name="T12" Type="float" Nullable="false" />
  1272. </EntityType>
  1273. <EntityType Name="CmFile">
  1274. <Key>
  1275. <PropertyRef Name="SiteId" />
  1276. <PropertyRef Name="FileId" />
  1277. </Key>
  1278. <Property Name="SiteId" Type="int" Nullable="false" />
  1279. <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1280. <Property Name="FileCategoryId" Type="int" Nullable="false" />
  1281. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1282. <Property Name="FileSize" Type="int" />
  1283. <Property Name="CreatedDate" Type="datetime" />
  1284. <Property Name="ContentType" Type="nvarchar" MaxLength="128" />
  1285. </EntityType>
  1286. <EntityType Name="CmFileCategory">
  1287. <Key>
  1288. <PropertyRef Name="FileCategoryId" />
  1289. </Key>
  1290. <Property Name="FileCategoryId" Type="int" Nullable="false" />
  1291. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1292. </EntityType>
  1293. <EntityType Name="CmFloor">
  1294. <Key>
  1295. <PropertyRef Name="SiteId" />
  1296. <PropertyRef Name="BuildingId" />
  1297. <PropertyRef Name="FloorId" />
  1298. </Key>
  1299. <Property Name="SiteId" Type="int" Nullable="false" />
  1300. <Property Name="BuildingId" Type="int" Nullable="false" />
  1301. <Property Name="FloorId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1302. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1303. </EntityType>
  1304. <EntityType Name="CmHoliday">
  1305. <Key>
  1306. <PropertyRef Name="SiteId" />
  1307. <PropertyRef Name="HolidayMonth" />
  1308. <PropertyRef Name="HolidayDay" />
  1309. <PropertyRef Name="IsLunar" />
  1310. </Key>
  1311. <Property Name="SiteId" Type="int" Nullable="false" />
  1312. <Property Name="HolidayMonth" Type="smallint" Nullable="false" />
  1313. <Property Name="HolidayDay" Type="smallint" Nullable="false" />
  1314. <Property Name="IsLunar" Type="bit" Nullable="false" />
  1315. <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
  1316. <Property Name="IsUse" Type="bit" />
  1317. </EntityType>
  1318. <EntityType Name="CmHolidayCustom">
  1319. <Key>
  1320. <PropertyRef Name="SiteId" />
  1321. <PropertyRef Name="HolidayDate" />
  1322. </Key>
  1323. <Property Name="SiteId" Type="int" Nullable="false" />
  1324. <Property Name="HolidayDate" Type="datetime" Nullable="false" />
  1325. <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
  1326. <Property Name="IsUse" Type="bit" />
  1327. </EntityType>
  1328. <EntityType Name="CmHolidayWeekend">
  1329. <Key>
  1330. <PropertyRef Name="SiteId" />
  1331. </Key>
  1332. <Property Name="SiteId" Type="int" Nullable="false" />
  1333. <Property Name="Saturday" Type="bit" Nullable="false" />
  1334. <Property Name="Sunday" Type="bit" Nullable="false" />
  1335. <Property Name="IsUse" Type="bit" />
  1336. </EntityType>
  1337. <EntityType Name="CmMenu">
  1338. <Key>
  1339. <PropertyRef Name="SiteId" />
  1340. <PropertyRef Name="MenuId" />
  1341. </Key>
  1342. <Property Name="SiteId" Type="int" Nullable="false" />
  1343. <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
  1344. <Property Name="Used" Type="bit" />
  1345. <Property Name="MenuPath" Type="nvarchar" MaxLength="255" />
  1346. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  1347. </EntityType>
  1348. <EntityType Name="CmPartner">
  1349. <Key>
  1350. <PropertyRef Name="SiteId" />
  1351. <PropertyRef Name="PartnerId" />
  1352. </Key>
  1353. <Property Name="SiteId" Type="int" Nullable="false" />
  1354. <Property Name="PartnerId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1355. <Property Name="PartnerTypeId" Type="int" Nullable="false" />
  1356. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1357. <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" />
  1358. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" />
  1359. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
  1360. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  1361. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  1362. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  1363. <Property Name="AddressZip1" Type="nchar" MaxLength="3" />
  1364. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1365. <Property Name="Address1" Type="nvarchar" MaxLength="50" />
  1366. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1367. <Property Name="HomepageUri" Type="nvarchar" MaxLength="100" />
  1368. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  1369. <Property Name="IsUse" Type="bit" />
  1370. </EntityType>
  1371. <EntityType Name="CmPartnerType">
  1372. <Key>
  1373. <PropertyRef Name="PartnerTypeId" />
  1374. </Key>
  1375. <Property Name="PartnerTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1376. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1377. <Property Name="IsUse" Type="bit" />
  1378. </EntityType>
  1379. <EntityType Name="CmPatrolCourse">
  1380. <Key>
  1381. <PropertyRef Name="SiteId" />
  1382. <PropertyRef Name="PatrolCourseId" />
  1383. </Key>
  1384. <Property Name="SiteId" Type="int" Nullable="false" />
  1385. <Property Name="PatrolCourseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1386. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1387. </EntityType>
  1388. <EntityType Name="CmPatrolCoursePos">
  1389. <Key>
  1390. <PropertyRef Name="SiteId" />
  1391. <PropertyRef Name="PatrolCourseId" />
  1392. <PropertyRef Name="BuildingId" />
  1393. <PropertyRef Name="FloorId" />
  1394. <PropertyRef Name="PosId" />
  1395. </Key>
  1396. <Property Name="SiteId" Type="int" Nullable="false" />
  1397. <Property Name="PatrolCourseId" Type="int" Nullable="false" />
  1398. <Property Name="BuildingId" Type="int" Nullable="false" />
  1399. <Property Name="FloorId" Type="int" Nullable="false" />
  1400. <Property Name="PosId" Type="int" Nullable="false" />
  1401. <Property Name="CourseOrder" Type="int" Nullable="false" />
  1402. </EntityType>
  1403. <EntityType Name="CmPatrolGroup">
  1404. <Key>
  1405. <PropertyRef Name="SiteId" />
  1406. <PropertyRef Name="PatrolGroupId" />
  1407. </Key>
  1408. <Property Name="SiteId" Type="int" Nullable="false" />
  1409. <Property Name="PatrolGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1410. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1411. </EntityType>
  1412. <EntityType Name="CmPatrolGroupUser">
  1413. <Key>
  1414. <PropertyRef Name="SiteId" />
  1415. <PropertyRef Name="PatrolGroupId" />
  1416. <PropertyRef Name="UserId" />
  1417. </Key>
  1418. <Property Name="SiteId" Type="int" Nullable="false" />
  1419. <Property Name="PatrolGroupId" Type="int" Nullable="false" />
  1420. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1421. </EntityType>
  1422. <EntityType Name="CmPatrolHistory">
  1423. <Key>
  1424. <PropertyRef Name="PatrolHistoryId" />
  1425. </Key>
  1426. <Property Name="SiteId" Type="int" Nullable="false" />
  1427. <Property Name="PatrolHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1428. <Property Name="ScheduleId" Type="int" Nullable="false" />
  1429. <Property Name="startDate" Type="datetime" Nullable="false" />
  1430. <Property Name="endDate" Type="datetime" />
  1431. <Property Name="resultTypeId" Type="int" Nullable="false" />
  1432. <Property Name="resultDesc" Type="varchar" MaxLength="1024" />
  1433. <Property Name="resultPosCnt" Type="int" />
  1434. <Property Name="resultNormalCnt" Type="int" />
  1435. <Property Name="resultAbnormalCnt" Type="int" />
  1436. </EntityType>
  1437. <EntityType Name="CmPatrolHistoryPos">
  1438. <Key>
  1439. <PropertyRef Name="mId" />
  1440. </Key>
  1441. <Property Name="SiteId" Type="int" Nullable="false" />
  1442. <Property Name="PatrolHistoryId" Type="int" Nullable="false" />
  1443. <Property Name="PosId" Type="int" Nullable="false" />
  1444. <Property Name="PatrolTime" Type="datetime" Nullable="false" />
  1445. <Property Name="term" Type="int" />
  1446. <Property Name="resultType" Type="int" Nullable="false" />
  1447. <Property Name="mId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1448. </EntityType>
  1449. <EntityType Name="CmPatrolPlan">
  1450. <Key>
  1451. <PropertyRef Name="SiteId" />
  1452. <PropertyRef Name="PatrolPlanId" />
  1453. </Key>
  1454. <Property Name="SiteId" Type="int" Nullable="false" />
  1455. <Property Name="PatrolPlanId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1456. <Property Name="GroupId" Type="int" Nullable="false" />
  1457. <Property Name="CourseId" Type="int" Nullable="false" />
  1458. <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
  1459. <Property Name="PlanDesc" Type="varchar" MaxLength="1024" />
  1460. <Property Name="term" Type="int" Nullable="false" />
  1461. <Property Name="inDate" Type="datetime" />
  1462. </EntityType>
  1463. <EntityType Name="CmPatrolPos">
  1464. <Key>
  1465. <PropertyRef Name="SiteId" />
  1466. <PropertyRef Name="PosId" />
  1467. </Key>
  1468. <Property Name="SiteId" Type="int" Nullable="false" />
  1469. <Property Name="BuildingId" Type="int" Nullable="false" />
  1470. <Property Name="FloorId" Type="int" Nullable="false" />
  1471. <Property Name="PosId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1472. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1473. <Property Name="TagId" Type="nvarchar" MaxLength="32" />
  1474. <Property Name="PosDesc" Type="nvarchar" MaxLength="1024" />
  1475. </EntityType>
  1476. <EntityType Name="CmPatrolSchedule">
  1477. <Key>
  1478. <PropertyRef Name="SiteId" />
  1479. <PropertyRef Name="ScheduleId" />
  1480. </Key>
  1481. <Property Name="SiteId" Type="int" Nullable="false" />
  1482. <Property Name="ScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1483. <Property Name="PlanId" Type="int" Nullable="false" />
  1484. <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
  1485. <Property Name="ScheduleDesc" Type="varchar" MaxLength="128" />
  1486. <Property Name="inDate" Type="datetime" />
  1487. <Property Name="patrolDateTime" Type="datetime" Nullable="false" />
  1488. </EntityType>
  1489. <EntityType Name="CmPatrolType">
  1490. <Key>
  1491. <PropertyRef Name="SiteId" />
  1492. <PropertyRef Name="PatrolTypeId" />
  1493. </Key>
  1494. <Property Name="SiteId" Type="int" Nullable="false" />
  1495. <Property Name="PatrolTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1496. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1497. <Property Name="IsUse" Type="bit" />
  1498. </EntityType>
  1499. <EntityType Name="CmPosition">
  1500. <Key>
  1501. <PropertyRef Name="SiteId" />
  1502. <PropertyRef Name="PositionId" />
  1503. </Key>
  1504. <Property Name="SiteId" Type="int" Nullable="false" />
  1505. <Property Name="PositionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1506. <Property Name="Name" Type="nvarchar" MaxLength="40" Nullable="false" />
  1507. <Property Name="IsUse" Type="bit" />
  1508. </EntityType>
  1509. <EntityType Name="CmServiceEnergyCalcDay">
  1510. <Key>
  1511. <PropertyRef Name="SiteId" />
  1512. <PropertyRef Name="calDate" />
  1513. <PropertyRef Name="ServiceTypeId" />
  1514. </Key>
  1515. <Property Name="SiteId" Type="int" Nullable="false" />
  1516. <Property Name="calDate" Type="datetime" Nullable="false" />
  1517. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1518. <Property Name="Value" Type="float" />
  1519. </EntityType>
  1520. <EntityType Name="CmServiceEnergyCalcMonth">
  1521. <Key>
  1522. <PropertyRef Name="SiteId" />
  1523. <PropertyRef Name="calDate" />
  1524. <PropertyRef Name="ServiceTypeId" />
  1525. </Key>
  1526. <Property Name="SiteId" Type="int" Nullable="false" />
  1527. <Property Name="calDate" Type="datetime" Nullable="false" />
  1528. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1529. <Property Name="Value" Type="float" />
  1530. </EntityType>
  1531. <EntityType Name="CmSite">
  1532. <Key>
  1533. <PropertyRef Name="SiteId" />
  1534. </Key>
  1535. <Property Name="SiteId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1536. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1537. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  1538. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1539. <Property Name="Address1" Type="nvarchar" MaxLength="100" />
  1540. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1541. <Property Name="PhoneNo" Type="nvarchar" MaxLength="24" />
  1542. <Property Name="URL" Type="nvarchar" MaxLength="100" />
  1543. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1544. <Property Name="IsUse" Type="bit" />
  1545. <Property Name="SortOrderNo" Type="int" />
  1546. <Property Name="InsertedDate" Type="datetime" />
  1547. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  1548. <Property Name="UpdatedDate" Type="datetime" />
  1549. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1550. <Property Name="IsControlSchedule" Type="bit" />
  1551. <Property Name="ScheduleCheckHour" Type="int" />
  1552. <Property Name="MaxPeak" Type="float" />
  1553. <Property Name="lat" Type="float" />
  1554. <Property Name="lng" Type="float" />
  1555. <Property Name="controlSchedule" Type="bit" />
  1556. <Property Name="HDD" Type="nvarchar" MaxLength="24" />
  1557. <Property Name="CDD" Type="nvarchar" MaxLength="24" />
  1558. <Property Name="BuildingSize" Type="nvarchar" MaxLength="50" />
  1559. <Property Name="GrossArea" Type="nvarchar" MaxLength="24" />
  1560. <Property Name="BuildingArea" Type="nvarchar" MaxLength="24" />
  1561. <Property Name="FloorAreaRatio" Type="nvarchar" MaxLength="24" />
  1562. <Property Name="BuildingCoverageRatio" Type="nvarchar" MaxLength="24" />
  1563. <Property Name="MainUse" Type="nvarchar" MaxLength="10" />
  1564. <Property Name="CompletionDate" Type="nvarchar" MaxLength="24" />
  1565. <Property Name="Standard" Type="nvarchar" MaxLength="24" />
  1566. <Property Name="MainUseIndex" Type="int" />
  1567. </EntityType>
  1568. <EntityType Name="CmUser">
  1569. <Key>
  1570. <PropertyRef Name="SiteId" />
  1571. <PropertyRef Name="UserId" />
  1572. </Key>
  1573. <Property Name="SiteId" Type="int" Nullable="false" />
  1574. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1575. <Property Name="CompanyId" Type="int" />
  1576. <Property Name="DepartmentId" Type="int" />
  1577. <Property Name="PositionId" Type="int" />
  1578. <Property Name="BusinessFieldId" Type="int" />
  1579. <Property Name="UserGroupId" Type="int" />
  1580. <Property Name="Name" Type="nvarchar" MaxLength="30" Nullable="false" />
  1581. <Property Name="Passwd" Type="nvarchar" MaxLength="30" Nullable="false" />
  1582. <Property Name="Birthday" Type="datetime" />
  1583. <Property Name="Lunar" Type="bit" />
  1584. <Property Name="StateId" Type="int" />
  1585. <Property Name="EmploymentType" Type="int" />
  1586. <Property Name="EmploymentStatus" Type="int" />
  1587. <Property Name="OfficePhoneNo" Type="nvarchar" MaxLength="50" />
  1588. <Property Name="HomePhoneNo" Type="nvarchar" MaxLength="50" />
  1589. <Property Name="MobilePhoneNo" Type="nvarchar" MaxLength="50" />
  1590. <Property Name="HomeZip1" Type="char" MaxLength="3" />
  1591. <Property Name="HomeZip2" Type="char" MaxLength="3" />
  1592. <Property Name="HomeAddress1" Type="nvarchar" MaxLength="50" />
  1593. <Property Name="HomeAdderss2" Type="nvarchar" MaxLength="100" />
  1594. <Property Name="Email" Type="nvarchar" MaxLength="50" />
  1595. <Property Name="EnterDate" Type="datetime" />
  1596. <Property Name="RetireDate" Type="datetime" />
  1597. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1598. <Property Name="Rfcsn" Type="nvarchar" MaxLength="30" />
  1599. <Property Name="PasswordUpdatedDate" Type="datetime" />
  1600. <Property Name="FileId" Type="int" />
  1601. <Property Name="IsBems" Type="bit" />
  1602. <Property Name="IsUse" Type="bit" />
  1603. <Property Name="IsScheduleUser" Type="bit" />
  1604. <Property Name="Certificated" Type="nvarchar" MaxLength="512" />
  1605. <Property Name="IsSI" Type="bit" />
  1606. <Property Name="IsMobile" Type="bit" />
  1607. <Property Name="Devicetoken" Type="nvarchar" MaxLength="500" />
  1608. </EntityType>
  1609. <EntityType Name="CmUserGroup">
  1610. <Key>
  1611. <PropertyRef Name="SiteId" />
  1612. <PropertyRef Name="UserGroupId" />
  1613. </Key>
  1614. <Property Name="SiteId" Type="int" Nullable="false" />
  1615. <Property Name="UserGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1616. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1617. </EntityType>
  1618. <EntityType Name="CmUserGroupPermission">
  1619. <Key>
  1620. <PropertyRef Name="SiteId" />
  1621. <PropertyRef Name="UserGroupId" />
  1622. <PropertyRef Name="MenuId" />
  1623. </Key>
  1624. <Property Name="SiteId" Type="int" Nullable="false" />
  1625. <Property Name="UserGroupId" Type="int" Nullable="false" />
  1626. <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
  1627. <Property Name="MenuPermission" Type="smallint" />
  1628. </EntityType>
  1629. <EntityType Name="CmUserLoginHistory">
  1630. <Key>
  1631. <PropertyRef Name="LoginHistoryId" />
  1632. </Key>
  1633. <Property Name="LoginHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1634. <Property Name="SiteId" Type="int" Nullable="false" />
  1635. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1636. <Property Name="Type" Type="nvarchar" MaxLength="10" Nullable="false" />
  1637. <Property Name="TraceTime" Type="datetime" Nullable="false" />
  1638. <Property Name="IpAddress" Type="nvarchar" MaxLength="16" />
  1639. </EntityType>
  1640. <EntityType Name="CmUserToLicense">
  1641. <Key>
  1642. <PropertyRef Name="SiteId" />
  1643. <PropertyRef Name="UserId" />
  1644. <PropertyRef Name="LicenseId" />
  1645. </Key>
  1646. <Property Name="SiteId" Type="int" Nullable="false" />
  1647. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1648. <Property Name="LicenseId" Type="int" Nullable="false" />
  1649. </EntityType>
  1650. <EntityType Name="CmZone">
  1651. <Key>
  1652. <PropertyRef Name="SiteId" />
  1653. <PropertyRef Name="BuildingId" />
  1654. <PropertyRef Name="FloorId" />
  1655. <PropertyRef Name="ZoneId" />
  1656. </Key>
  1657. <Property Name="SiteId" Type="int" Nullable="false" />
  1658. <Property Name="BuildingId" Type="int" Nullable="false" />
  1659. <Property Name="FloorId" Type="int" Nullable="false" />
  1660. <Property Name="ZoneId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1661. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1662. <Property Name="Target_temperature" Type="float" />
  1663. <Property Name="Target_humidity" Type="smallint" />
  1664. </EntityType>
  1665. <EntityType Name="CmZoneTempHumiSet">
  1666. <Key>
  1667. <PropertyRef Name="SiteId" />
  1668. <PropertyRef Name="BuildingId" />
  1669. <PropertyRef Name="FloorId" />
  1670. <PropertyRef Name="ZoneId" />
  1671. </Key>
  1672. <Property Name="SiteId" Type="int" Nullable="false" />
  1673. <Property Name="BuildingId" Type="int" Nullable="false" />
  1674. <Property Name="FloorId" Type="int" Nullable="false" />
  1675. <Property Name="ZoneId" Type="int" Nullable="false" />
  1676. <Property Name="T1" Type="float" Nullable="false" />
  1677. <Property Name="T2" Type="float" Nullable="false" />
  1678. <Property Name="T3" Type="float" Nullable="false" />
  1679. <Property Name="T4" Type="float" Nullable="false" />
  1680. <Property Name="T5" Type="float" Nullable="false" />
  1681. <Property Name="T6" Type="float" Nullable="false" />
  1682. <Property Name="T7" Type="float" Nullable="false" />
  1683. <Property Name="T8" Type="float" Nullable="false" />
  1684. <Property Name="T9" Type="float" Nullable="false" />
  1685. <Property Name="T10" Type="float" Nullable="false" />
  1686. <Property Name="T11" Type="float" Nullable="false" />
  1687. <Property Name="T12" Type="float" Nullable="false" />
  1688. <Property Name="H1" Type="smallint" Nullable="false" />
  1689. <Property Name="H2" Type="smallint" Nullable="false" />
  1690. <Property Name="H3" Type="smallint" Nullable="false" />
  1691. <Property Name="H4" Type="smallint" Nullable="false" />
  1692. <Property Name="H5" Type="smallint" Nullable="false" />
  1693. <Property Name="H6" Type="smallint" Nullable="false" />
  1694. <Property Name="H7" Type="smallint" Nullable="false" />
  1695. <Property Name="H8" Type="smallint" Nullable="false" />
  1696. <Property Name="H9" Type="smallint" Nullable="false" />
  1697. <Property Name="H10" Type="smallint" Nullable="false" />
  1698. <Property Name="H11" Type="smallint" Nullable="false" />
  1699. <Property Name="H12" Type="smallint" Nullable="false" />
  1700. </EntityType>
  1701. <EntityType Name="FmsAccident">
  1702. <Key>
  1703. <PropertyRef Name="SiteId" />
  1704. <PropertyRef Name="AccidentId" />
  1705. </Key>
  1706. <Property Name="SiteId" Type="int" Nullable="false" />
  1707. <Property Name="AccidentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1708. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1709. <Property Name="StartDate" Type="datetime" />
  1710. <Property Name="EndDate" Type="datetime" />
  1711. <Property Name="AccidentTypeId" Type="int" Nullable="false" />
  1712. <Property Name="DepartmentId" Type="int" />
  1713. <Property Name="AccidentLocation" Type="nvarchar" MaxLength="256" />
  1714. <Property Name="Reason" Type="nvarchar" MaxLength="1024" />
  1715. <Property Name="Action" Type="nvarchar" MaxLength="1024" />
  1716. <Property Name="Damage" Type="nvarchar" MaxLength="1024" />
  1717. <Property Name="Measurement" Type="nvarchar" MaxLength="1024" />
  1718. <Property Name="FileId1" Type="int" />
  1719. <Property Name="FileId2" Type="int" />
  1720. <Property Name="FileId3" Type="int" />
  1721. <Property Name="CompanyId" Type="int" />
  1722. </EntityType>
  1723. <EntityType Name="FmsAccidentCodeType">
  1724. <Key>
  1725. <PropertyRef Name="SiteId" />
  1726. <PropertyRef Name="AccidentTypeId" />
  1727. </Key>
  1728. <Property Name="SiteId" Type="int" Nullable="false" />
  1729. <Property Name="AccidentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1730. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1731. <Property Name="IsUse" Type="bit" Nullable="false" />
  1732. </EntityType>
  1733. <EntityType Name="FmsBudget">
  1734. <Key>
  1735. <PropertyRef Name="SiteId" />
  1736. <PropertyRef Name="Year" />
  1737. </Key>
  1738. <Property Name="SiteId" Type="int" Nullable="false" />
  1739. <Property Name="Year" Type="int" Nullable="false" />
  1740. </EntityType>
  1741. <EntityType Name="FmsBudgetCodeClass">
  1742. <Key>
  1743. <PropertyRef Name="SiteId" />
  1744. <PropertyRef Name="BudgetClassId" />
  1745. </Key>
  1746. <Property Name="SiteId" Type="int" Nullable="false" />
  1747. <Property Name="BudgetClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1748. <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
  1749. <Property Name="RootBudgetClassId" Type="int" />
  1750. <Property Name="ParentBudgetClassId" Type="int" />
  1751. <Property Name="Depth" Type="int" Nullable="false" />
  1752. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1753. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  1754. <Property Name="IsUse" Type="bit" />
  1755. <Property Name="YearlyBudget" Type="float" />
  1756. <Property Name="MonthlyBudget" Type="float" />
  1757. </EntityType>
  1758. <EntityType Name="FmsBudgetDetail">
  1759. <Key>
  1760. <PropertyRef Name="SiteId" />
  1761. <PropertyRef Name="Year" />
  1762. <PropertyRef Name="BudgetClassId" />
  1763. <PropertyRef Name="ParentBudgetClassId" />
  1764. </Key>
  1765. <Property Name="SiteId" Type="int" Nullable="false" />
  1766. <Property Name="Year" Type="int" Nullable="false" />
  1767. <Property Name="BudgetClassId" Type="int" Nullable="false" />
  1768. <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
  1769. <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
  1770. <Property Name="RootBudgetClassId" Type="int" />
  1771. <Property Name="Depth" Type="int" Nullable="false" />
  1772. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1773. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  1774. <Property Name="IsUse" Type="bit" />
  1775. <Property Name="YearlyBudget" Type="float" Nullable="false" />
  1776. <Property Name="MonthlyBudget" Type="float" Nullable="false" />
  1777. </EntityType>
  1778. <EntityType Name="FmsBudgetDetailExecution">
  1779. <Key>
  1780. <PropertyRef Name="SiteId" />
  1781. <PropertyRef Name="Year" />
  1782. <PropertyRef Name="BudgetClassId" />
  1783. <PropertyRef Name="ParentBudgetClassId" />
  1784. <PropertyRef Name="Month" />
  1785. </Key>
  1786. <Property Name="SiteId" Type="int" Nullable="false" />
  1787. <Property Name="Year" Type="int" Nullable="false" />
  1788. <Property Name="BudgetClassId" Type="int" Nullable="false" />
  1789. <Property Name="RootBudgetClassId" Type="int" />
  1790. <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
  1791. <Property Name="Month" Type="int" Nullable="false" />
  1792. <Property Name="YearlyBudget" Type="float" Nullable="false" />
  1793. <Property Name="MonthlyBudget" Type="float" Nullable="false" />
  1794. <Property Name="YearlyExecution" Type="float" Nullable="false" />
  1795. <Property Name="MonthlyExecution" Type="float" Nullable="false" />
  1796. </EntityType>
  1797. <EntityType Name="FmsCompanyEstimationCodeClass">
  1798. <Key>
  1799. <PropertyRef Name="SiteId" />
  1800. <PropertyRef Name="CompanyEstimationClassId" />
  1801. </Key>
  1802. <Property Name="SiteId" Type="int" Nullable="false" />
  1803. <Property Name="CompanyEstimationClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1804. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1805. <Property Name="IsUse" Type="bit" />
  1806. </EntityType>
  1807. <EntityType Name="FmsConstruction">
  1808. <Key>
  1809. <PropertyRef Name="SiteId" />
  1810. <PropertyRef Name="ConstructionId" />
  1811. </Key>
  1812. <Property Name="SiteId" Type="int" Nullable="false" />
  1813. <Property Name="ConstructionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1814. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1815. <Property Name="ConstructionTypeId" Type="int" Nullable="false" />
  1816. <Property Name="StartDate" Type="datetime" Nullable="false" />
  1817. <Property Name="EndDate" Type="datetime" Nullable="false" />
  1818. <Property Name="PartnerId" Type="int" Nullable="false" />
  1819. <Property Name="ConstructLocation" Type="nvarchar" MaxLength="256" Nullable="false" />
  1820. <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" Nullable="false" />
  1821. <Property Name="CommitmentMan" Type="smallint" />
  1822. <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1823. <Property Name="WeldWorkStartTime" Type="datetime" />
  1824. <Property Name="WeldWorkEndTime" Type="datetime" />
  1825. <Property Name="GasWorkStartTime" Type="datetime" />
  1826. <Property Name="GasWorkEndTime" Type="datetime" />
  1827. <Property Name="PaintWorkStartTime" Type="datetime" />
  1828. <Property Name="PaintWorkEndTime" Type="datetime" />
  1829. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1830. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  1831. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1832. <Property Name="UpdateDate" Type="datetime" Nullable="false" />
  1833. <Property Name="ConstructionDetail" Type="nvarchar" MaxLength="1024" />
  1834. <Property Name="InOutStockName" Type="nvarchar" MaxLength="1024" />
  1835. <Property Name="FileId1" Type="int" />
  1836. <Property Name="FileId2" Type="int" />
  1837. <Property Name="FileId3" Type="int" />
  1838. </EntityType>
  1839. <EntityType Name="FmsConstructionCodeProgress">
  1840. <Key>
  1841. <PropertyRef Name="ProgressId" />
  1842. </Key>
  1843. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  1844. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1845. <Property Name="Description" Type="nvarchar" MaxLength="100" />
  1846. </EntityType>
  1847. <EntityType Name="FmsConstructionCodeType">
  1848. <Key>
  1849. <PropertyRef Name="SiteId" />
  1850. <PropertyRef Name="ConstructionTypeId" />
  1851. </Key>
  1852. <Property Name="SiteId" Type="int" Nullable="false" />
  1853. <Property Name="ConstructionTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1854. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1855. <Property Name="IsUse" Type="bit" Nullable="false" />
  1856. </EntityType>
  1857. <EntityType Name="FmsConstructionEstimation">
  1858. <Key>
  1859. <PropertyRef Name="SiteId" />
  1860. <PropertyRef Name="ConstructionId" />
  1861. </Key>
  1862. <Property Name="SiteId" Type="int" Nullable="false" />
  1863. <Property Name="ConstructionId" Type="int" Nullable="false" />
  1864. <Property Name="EstimateDate" Type="datetime" Nullable="false" />
  1865. <Property Name="EstimateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1866. <Property Name="Safety01_CleanUp" Type="bit" />
  1867. <Property Name="Safety02_PersonalProtection" Type="bit" />
  1868. <Property Name="Safety03_FireExtinguisher" Type="bit" />
  1869. <Property Name="Safety04_HighPlaceWork" Type="bit" />
  1870. <Property Name="Safety05_Weld" Type="bit" />
  1871. <Property Name="Safety06_SurroundingCleanUp" Type="bit" />
  1872. <Property Name="Safety07_SurroundingHealthy" Type="bit" />
  1873. <Property Name="Safety08_Noise" Type="bit" />
  1874. <Property Name="Safety09_FacilityProtection" Type="bit" />
  1875. <Property Name="Safety10_Waste" Type="bit" />
  1876. <Property Name="Safety11_Execution" Type="bit" />
  1877. <Property Name="Safety12_Announcement" Type="bit" />
  1878. <Property Name="Ability01_Compliance" Type="bit" />
  1879. <Property Name="Ability02_Fault" Type="bit" />
  1880. <Property Name="Ability03_SkillLevel" Type="bit" />
  1881. <Property Name="Ability04_ProcessManagement" Type="bit" />
  1882. <Property Name="Ability05_Collaboration" Type="bit" />
  1883. <Property Name="Service01_Compliance" Type="bit" />
  1884. <Property Name="Service02_SkillLevel" Type="bit" />
  1885. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1886. <Property Name="TotalEstimateScore" Type="float" />
  1887. <Property Name="SafetyScore" Type="float" />
  1888. <Property Name="AbilityScore" Type="float" />
  1889. <Property Name="ServiceScore" Type="float" />
  1890. </EntityType>
  1891. <EntityType Name="FmsContract">
  1892. <Key>
  1893. <PropertyRef Name="SiteId" />
  1894. <PropertyRef Name="ContractId" />
  1895. </Key>
  1896. <Property Name="SiteId" Type="int" Nullable="false" />
  1897. <Property Name="ContractId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1898. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1899. <Property Name="PartnerTypeId" Type="int" />
  1900. <Property Name="PartnerId" Type="int" />
  1901. <Property Name="ContractDate" Type="datetime" />
  1902. <Property Name="StartDate" Type="datetime" />
  1903. <Property Name="EndDate" Type="datetime" />
  1904. <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" />
  1905. <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" />
  1906. <Property Name="CommitmentMan" Type="smallint" />
  1907. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1908. <Property Name="ContractClassId" Type="int" />
  1909. <Property Name="ContractTypeId" Type="int" />
  1910. <Property Name="ContractMethodId" Type="int" />
  1911. <Property Name="PaymentTypeId" Type="int" />
  1912. </EntityType>
  1913. <EntityType Name="FmsContractClass">
  1914. <Key>
  1915. <PropertyRef Name="SiteId" />
  1916. <PropertyRef Name="ContractClassId" />
  1917. </Key>
  1918. <Property Name="SiteId" Type="int" Nullable="false" />
  1919. <Property Name="ContractClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1920. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1921. <Property Name="IsUse" Type="bit" />
  1922. </EntityType>
  1923. <EntityType Name="FmsContractMethod">
  1924. <Key>
  1925. <PropertyRef Name="SiteId" />
  1926. <PropertyRef Name="ContractMethodId" />
  1927. </Key>
  1928. <Property Name="SiteId" Type="int" Nullable="false" />
  1929. <Property Name="ContractMethodId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1930. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1931. <Property Name="IsUse" Type="bit" />
  1932. </EntityType>
  1933. <EntityType Name="FmsContractType">
  1934. <Key>
  1935. <PropertyRef Name="SiteId" />
  1936. <PropertyRef Name="ContractTypeId" />
  1937. </Key>
  1938. <Property Name="SiteId" Type="int" Nullable="false" />
  1939. <Property Name="ContractTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1940. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1941. <Property Name="IsUse" Type="bit" />
  1942. </EntityType>
  1943. <EntityType Name="FmsDailyCheckReport">
  1944. <Key>
  1945. <PropertyRef Name="SiteId" />
  1946. <PropertyRef Name="DailyCheckReportId" />
  1947. </Key>
  1948. <Property Name="SiteId" Type="int" Nullable="false" />
  1949. <Property Name="DailyCheckReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1950. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  1951. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  1952. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1953. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1954. </EntityType>
  1955. <EntityType Name="FmsDailyReport">
  1956. <Key>
  1957. <PropertyRef Name="SiteId" />
  1958. <PropertyRef Name="AddDate" />
  1959. <PropertyRef Name="BusinessFieldId" />
  1960. </Key>
  1961. <Property Name="SiteId" Type="int" Nullable="false" />
  1962. <Property Name="DailyReportId" Type="int" />
  1963. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  1964. <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
  1965. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1966. <Property Name="AddDate" Type="date" Nullable="false" />
  1967. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  1968. <Property Name="Datas" Type="varchar(max)" />
  1969. <Property Name="ApproverUserId" Type="nvarchar" MaxLength="24" />
  1970. <Property Name="ApproveDate" Type="date" />
  1971. <Property Name="RegisterDate" Type="date" />
  1972. <Property Name="ApproverUserId2" Type="nvarchar" MaxLength="24" />
  1973. <Property Name="ApproveDate2" Type="date" />
  1974. <Property Name="ApproverUserId3" Type="nvarchar" MaxLength="24" />
  1975. <Property Name="ApproveDate3" Type="date" />
  1976. <Property Name="ApproverUserId4" Type="nvarchar" MaxLength="24" />
  1977. <Property Name="ApproveDate4" Type="date" />
  1978. <Property Name="ApproverUserId5" Type="nvarchar" MaxLength="24" />
  1979. <Property Name="ApproveDate5" Type="date" />
  1980. </EntityType>
  1981. <EntityType Name="FmsDrawing">
  1982. <Key>
  1983. <PropertyRef Name="SiteId" />
  1984. <PropertyRef Name="DrawingId" />
  1985. </Key>
  1986. <Property Name="SiteId" Type="int" Nullable="false" />
  1987. <Property Name="DrawingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1988. <Property Name="DrawingNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1989. <Property Name="DrawingGroupId" Type="int" Nullable="false" />
  1990. <Property Name="DrawingTypeId" Type="int" Nullable="false" />
  1991. <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
  1992. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  1993. </EntityType>
  1994. <EntityType Name="FmsDrawingCodeGroup">
  1995. <Key>
  1996. <PropertyRef Name="SiteId" />
  1997. <PropertyRef Name="DrawingGroupId" />
  1998. </Key>
  1999. <Property Name="SiteId" Type="int" Nullable="false" />
  2000. <Property Name="DrawingGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2001. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2002. <Property Name="IsUse" Type="bit" />
  2003. </EntityType>
  2004. <EntityType Name="FmsDrawingCodeType">
  2005. <Key>
  2006. <PropertyRef Name="SiteId" />
  2007. <PropertyRef Name="DrawingTypeId" />
  2008. </Key>
  2009. <Property Name="SiteId" Type="int" Nullable="false" />
  2010. <Property Name="DrawingTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2011. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2012. <Property Name="IsUse" Type="bit" />
  2013. </EntityType>
  2014. <EntityType Name="FmsDrawingHistory">
  2015. <Key>
  2016. <PropertyRef Name="SiteId" />
  2017. <PropertyRef Name="DrawingId" />
  2018. <PropertyRef Name="HistoryId" />
  2019. </Key>
  2020. <Property Name="SiteId" Type="int" Nullable="false" />
  2021. <Property Name="DrawingId" Type="int" Nullable="false" />
  2022. <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2023. <Property Name="RevisionNo" Type="int" />
  2024. <Property Name="FileId" Type="int" />
  2025. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2026. <Property Name="UpdatedDate" Type="datetime" />
  2027. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2028. </EntityType>
  2029. <EntityType Name="FmsEquipment">
  2030. <Key>
  2031. <PropertyRef Name="SiteId" />
  2032. <PropertyRef Name="EquipmentId" />
  2033. </Key>
  2034. <Property Name="SiteId" Type="int" Nullable="false" />
  2035. <Property Name="EquipmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2036. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2037. <Property Name="EquipmentTypeId" Type="int" Nullable="false" />
  2038. <Property Name="WarehouseId" Type="int" />
  2039. <Property Name="Unit" Type="nvarchar" MaxLength="12" />
  2040. <Property Name="Standard" Type="nvarchar" MaxLength="20" />
  2041. <Property Name="AddDate" Type="datetime" />
  2042. <Property Name="UpdateDate" Type="datetime" />
  2043. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2044. <Property Name="SupplierName" Type="nvarchar" MaxLength="256" />
  2045. <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
  2046. <Property Name="ImageFileId" Type="int" />
  2047. </EntityType>
  2048. <EntityType Name="FmsEquipmentCodeStateType">
  2049. <Key>
  2050. <PropertyRef Name="EquipmentStateTypeId" />
  2051. </Key>
  2052. <Property Name="EquipmentStateTypeId" Type="smallint" Nullable="false" />
  2053. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2054. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2055. </EntityType>
  2056. <EntityType Name="FmsEquipmentCodeType">
  2057. <Key>
  2058. <PropertyRef Name="SiteId" />
  2059. <PropertyRef Name="EquipmentTypeId" />
  2060. </Key>
  2061. <Property Name="SiteId" Type="int" Nullable="false" />
  2062. <Property Name="EquipmentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2063. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2064. <Property Name="IsUse" Type="bit" Nullable="false" />
  2065. <Property Name="Description" Type="nvarchar" MaxLength="255" />
  2066. </EntityType>
  2067. <EntityType Name="FmsEquipmentHistory">
  2068. <Key>
  2069. <PropertyRef Name="SiteId" />
  2070. <PropertyRef Name="EquipmentHistoryId" />
  2071. <PropertyRef Name="EquipmentId" />
  2072. </Key>
  2073. <Property Name="SiteId" Type="int" Nullable="false" />
  2074. <Property Name="EquipmentHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2075. <Property Name="EquipmentId" Type="int" Nullable="false" />
  2076. <Property Name="TotalStockCount" Type="int" />
  2077. <Property Name="CurrentStockCount" Type="int" />
  2078. <Property Name="RentCount" Type="int" />
  2079. <Property Name="CurrentRentCount" Type="int" />
  2080. <Property Name="ReturnCount" Type="int" />
  2081. <Property Name="LossCount" Type="int" />
  2082. <Property Name="StoredCount" Type="int" />
  2083. <Property Name="EquipmentRentId" Type="int" />
  2084. <Property Name="EquipmentStateTypeId" Type="smallint" />
  2085. <Property Name="AddDate" Type="datetime" />
  2086. <Property Name="UpdateDate" Type="datetime" />
  2087. <Property Name="IsReturned" Type="bit" />
  2088. </EntityType>
  2089. <EntityType Name="FmsEquipmentRentInfo">
  2090. <Key>
  2091. <PropertyRef Name="SiteId" />
  2092. <PropertyRef Name="EquipmentRentId" />
  2093. </Key>
  2094. <Property Name="SiteId" Type="int" Nullable="false" />
  2095. <Property Name="EquipmentRentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2096. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2097. <Property Name="RentUserId" Type="nvarchar" MaxLength="24" />
  2098. <Property Name="RegisterDate" Type="nchar" MaxLength="10" />
  2099. <Property Name="RentDate" Type="datetime" />
  2100. <Property Name="ReturnDueDate" Type="datetime" />
  2101. <Property Name="ReturnFixDate" Type="datetime" />
  2102. <Property Name="EquipmentStateTypeId" Type="smallint" />
  2103. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2104. <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
  2105. <Property Name="RentUser" Type="nvarchar" MaxLength="128" />
  2106. </EntityType>
  2107. <EntityType Name="FmsFacilityCheckItem">
  2108. <Key>
  2109. <PropertyRef Name="SiteId" />
  2110. <PropertyRef Name="FacilityCode" />
  2111. <PropertyRef Name="CheckItemId" />
  2112. </Key>
  2113. <Property Name="SiteId" Type="int" Nullable="false" />
  2114. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2115. <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2116. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2117. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2118. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  2119. <Property Name="IsYesNoResult" Type="bit" Nullable="false" />
  2120. <Property Name="IsUse" Type="bit" />
  2121. </EntityType>
  2122. <EntityType Name="FmsFacilityCodeClass">
  2123. <Key>
  2124. <PropertyRef Name="SiteId" />
  2125. <PropertyRef Name="FacilityClassId" />
  2126. </Key>
  2127. <Property Name="SiteId" Type="int" Nullable="false" />
  2128. <Property Name="FacilityClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2129. <Property Name="ParentFacilityClassId" Type="int" />
  2130. <Property Name="Depth" Type="int" Nullable="false" />
  2131. <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
  2132. <Property Name="Abbreviation" Type="nvarchar" MaxLength="40" />
  2133. <Property Name="IsUse" Type="bit" />
  2134. </EntityType>
  2135. <EntityType Name="FmsFacilityManual">
  2136. <Key>
  2137. <PropertyRef Name="SiteId" />
  2138. <PropertyRef Name="FacilityCode" />
  2139. <PropertyRef Name="ManualId" />
  2140. </Key>
  2141. <Property Name="SiteId" Type="int" Nullable="false" />
  2142. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2143. <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2144. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2145. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  2146. <Property Name="Description" Type="nvarchar" MaxLength="1024" />
  2147. <Property Name="Keyword" Type="nvarchar" MaxLength="100" />
  2148. <Property Name="FileId" Type="int" />
  2149. <Property Name="IsUse" Type="bit" />
  2150. </EntityType>
  2151. <EntityType Name="FmsFacilityOperationItem">
  2152. <Key>
  2153. <PropertyRef Name="SiteId" />
  2154. <PropertyRef Name="ItemId" />
  2155. </Key>
  2156. <Property Name="SiteId" Type="int" Nullable="false" />
  2157. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2158. <Property Name="ItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2159. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  2160. <Property Name="ResultUnit" Type="nvarchar" MaxLength="10" Nullable="false" />
  2161. <Property Name="PointId" Type="nvarchar" MaxLength="50" />
  2162. <Property Name="SystemId" Type="int" />
  2163. <Property Name="EnergyCode" Type="bit" />
  2164. <Property Name="IsUse" Type="bit" />
  2165. <Property Name="SortOrderNo" Type="int" />
  2166. <Property Name="InsertedDate" Type="datetime" />
  2167. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  2168. <Property Name="UpdatedDate" Type="datetime" />
  2169. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2170. </EntityType>
  2171. <EntityType Name="FmsFacilityOperationReport">
  2172. <Key>
  2173. <PropertyRef Name="SiteId" />
  2174. <PropertyRef Name="FacilityOperationReportId" />
  2175. </Key>
  2176. <Property Name="SiteId" Type="int" Nullable="false" />
  2177. <Property Name="FacilityOperationReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2178. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2179. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  2180. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2181. <Property Name="AddDate" Type="datetime" Nullable="false" />
  2182. </EntityType>
  2183. <EntityType Name="FmsInvestmentCost">
  2184. <Key>
  2185. <PropertyRef Name="SiteId" />
  2186. <PropertyRef Name="InsvestmentCostId" />
  2187. </Key>
  2188. <Property Name="SiteId" Type="int" Nullable="false" />
  2189. <Property Name="InsvestmentCostId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2190. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  2191. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2192. <Property Name="InsvestmentCost" Type="float" Nullable="false" />
  2193. </EntityType>
  2194. <EntityType Name="FmsLicense">
  2195. <Key>
  2196. <PropertyRef Name="SiteId" />
  2197. <PropertyRef Name="LicenseId" />
  2198. </Key>
  2199. <Property Name="SiteId" Type="int" Nullable="false" />
  2200. <Property Name="LicenseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2201. <Property Name="Name" Type="nvarchar" MaxLength="52" Nullable="false" />
  2202. <Property Name="IssuingOffice" Type="nvarchar" MaxLength="52" Nullable="false" />
  2203. <Property Name="BusinessFieldId" Type="int" />
  2204. <Property Name="EducationalInstitute" Type="nvarchar" MaxLength="52" />
  2205. <Property Name="Note" Type="nvarchar" MaxLength="256" />
  2206. <Property Name="IsUse" Type="bit" />
  2207. </EntityType>
  2208. <EntityType Name="FmsManual">
  2209. <Key>
  2210. <PropertyRef Name="SiteId" />
  2211. <PropertyRef Name="ManualId" />
  2212. </Key>
  2213. <Property Name="SiteId" Type="int" Nullable="false" />
  2214. <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2215. <Property Name="ManualNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  2216. <Property Name="ManualTypeId" Type="int" Nullable="false" />
  2217. <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
  2218. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2219. </EntityType>
  2220. <EntityType Name="FmsManualHistory">
  2221. <Key>
  2222. <PropertyRef Name="SiteId" />
  2223. <PropertyRef Name="ManualId" />
  2224. <PropertyRef Name="HistoryId" />
  2225. </Key>
  2226. <Property Name="SiteId" Type="int" Nullable="false" />
  2227. <Property Name="ManualId" Type="int" Nullable="false" />
  2228. <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2229. <Property Name="RevisionNo" Type="int" />
  2230. <Property Name="FileId" Type="int" />
  2231. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2232. <Property Name="UpdatedDate" Type="datetime" />
  2233. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2234. </EntityType>
  2235. <EntityType Name="FmsManualType">
  2236. <Key>
  2237. <PropertyRef Name="SiteId" />
  2238. <PropertyRef Name="ManualTypeId" />
  2239. </Key>
  2240. <Property Name="SiteId" Type="int" Nullable="false" />
  2241. <Property Name="ManualTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2242. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2243. <Property Name="IsUse" Type="bit" />
  2244. </EntityType>
  2245. <EntityType Name="FmsMaterial">
  2246. <Key>
  2247. <PropertyRef Name="SiteId" />
  2248. <PropertyRef Name="MaterialId" />
  2249. </Key>
  2250. <Property Name="SiteId" Type="int" Nullable="false" />
  2251. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2252. <Property Name="MaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2253. <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" Nullable="false" />
  2254. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2255. <Property Name="FirstClassId" Type="int" />
  2256. <Property Name="SecondClassId" Type="int" />
  2257. <Property Name="ThirdClassId" Type="int" />
  2258. <Property Name="LocationId" Type="int" />
  2259. <Property Name="MaterialTypeId" Type="int" />
  2260. <Property Name="WarehouseId" Type="int" />
  2261. <Property Name="TradeCompanyId" Type="int" />
  2262. <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
  2263. <Property Name="Unit" Type="nvarchar" MaxLength="12" />
  2264. <Property Name="DurableYears" Type="smallint" />
  2265. <Property Name="ReasonableStockCount" Type="smallint" />
  2266. <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
  2267. <Property Name="Standard" Type="nvarchar" MaxLength="20" />
  2268. <Property Name="FinalPrice" Type="int" />
  2269. <Property Name="ImageFileId" Type="int" />
  2270. <Property Name="Note" Type="nvarchar" MaxLength="512" />
  2271. <Property Name="IsDiscontinued" Type="bit" />
  2272. <Property Name="IsUse" Type="bit" Nullable="false" />
  2273. <Property Name="FinalStockCount" Type="int" Nullable="false" />
  2274. <Property Name="FinalTotalStockAmount" Type="int" Nullable="false" />
  2275. </EntityType>
  2276. <EntityType Name="FmsMaterialCarriedForward">
  2277. <Key>
  2278. <PropertyRef Name="SiteId" />
  2279. <PropertyRef Name="ClosedDate" />
  2280. <PropertyRef Name="BusinessFieldId" />
  2281. <PropertyRef Name="WarehouseId" />
  2282. <PropertyRef Name="MaterialId" />
  2283. </Key>
  2284. <Property Name="SiteId" Type="int" Nullable="false" />
  2285. <Property Name="ClosedDate" Type="datetime" Nullable="false" />
  2286. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2287. <Property Name="WarehouseId" Type="int" Nullable="false" />
  2288. <Property Name="MaterialId" Type="int" Nullable="false" />
  2289. <Property Name="StockCount" Type="int" Nullable="false" />
  2290. <Property Name="StockTotalCost" Type="int" Nullable="false" />
  2291. </EntityType>
  2292. <EntityType Name="FmsMaterialCodeAdjustmentType">
  2293. <Key>
  2294. <PropertyRef Name="AdjustmentTypeId" />
  2295. </Key>
  2296. <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
  2297. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2298. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2299. </EntityType>
  2300. <EntityType Name="FmsMaterialCodeClass">
  2301. <Key>
  2302. <PropertyRef Name="SiteId" />
  2303. <PropertyRef Name="MaterialClassId" />
  2304. </Key>
  2305. <Property Name="SiteId" Type="int" Nullable="false" />
  2306. <Property Name="MaterialClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2307. <Property Name="ParentMaterialClassId" Type="int" />
  2308. <Property Name="Depth" Type="int" Nullable="false" />
  2309. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  2310. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  2311. <Property Name="IsUse" Type="bit" />
  2312. </EntityType>
  2313. <EntityType Name="FmsMaterialCodeLocation">
  2314. <Key>
  2315. <PropertyRef Name="SiteId" />
  2316. <PropertyRef Name="LocationId" />
  2317. </Key>
  2318. <Property Name="SiteId" Type="int" Nullable="false" />
  2319. <Property Name="LocationId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2320. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2321. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2322. <Property Name="IsUse" Type="bit" Nullable="false" />
  2323. </EntityType>
  2324. <EntityType Name="FmsMaterialCodeProgress">
  2325. <Key>
  2326. <PropertyRef Name="ProgressId" />
  2327. </Key>
  2328. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  2329. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2330. <Property Name="Description" Type="nvarchar" MaxLength="100" />
  2331. </EntityType>
  2332. <EntityType Name="FmsMaterialCodePurchaseType">
  2333. <Key>
  2334. <PropertyRef Name="PurchaseTypeId" />
  2335. </Key>
  2336. <Property Name="PurchaseTypeId" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
  2337. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2338. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2339. </EntityType>
  2340. <EntityType Name="FmsMaterialCodeReleaseType">
  2341. <Key>
  2342. <PropertyRef Name="ReleaseTypeId" />
  2343. </Key>
  2344. <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
  2345. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2346. <Property Name="Description" Type="nvarchar" MaxLength="255" />
  2347. </EntityType>
  2348. <EntityType Name="FmsMaterialCodeType">
  2349. <Key>
  2350. <PropertyRef Name="SiteId" />
  2351. <PropertyRef Name="MaterialTypeId" />
  2352. </Key>
  2353. <Property Name="SiteId" Type="int" Nullable="false" />
  2354. <Property Name="MaterialTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2355. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2356. <Property Name="Nickname" Type="nvarchar" MaxLength="24" Nullable="false" />
  2357. <Property Name="IsUse" Type="bit" Nullable="false" />
  2358. </EntityType>
  2359. <EntityType Name="FmsMaterialPurchaseOrder">
  2360. <Key>
  2361. <PropertyRef Name="SiteId" />
  2362. <PropertyRef Name="PurchaseOrderId" />
  2363. </Key>
  2364. <Property Name="SiteId" Type="int" Nullable="false" />
  2365. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2366. <Property Name="PurchaseOrderId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2367. <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
  2368. <Property Name="TradeCompanyId" Type="int" />
  2369. <Property Name="OrderDate" Type="datetime" Nullable="false" />
  2370. <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2371. <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
  2372. <Property Name="Reason" Type="nvarchar" MaxLength="2000" />
  2373. <Property Name="StoredDueDate" Type="datetime" />
  2374. <Property Name="FileId" Type="int" />
  2375. </EntityType>
  2376. <EntityType Name="FmsMaterialPurchaseOrderMaterial">
  2377. <Key>
  2378. <PropertyRef Name="SiteId" />
  2379. <PropertyRef Name="PurchaseOrderId" />
  2380. <PropertyRef Name="MaterialId" />
  2381. </Key>
  2382. <Property Name="SiteId" Type="int" Nullable="false" />
  2383. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2384. <Property Name="PurchaseOrderId" Type="int" Nullable="false" />
  2385. <Property Name="MaterialId" Type="int" Nullable="false" />
  2386. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2387. <Property Name="UnitCost" Type="int" Nullable="false" />
  2388. </EntityType>
  2389. <EntityType Name="FmsMaterialPurchaseRequest">
  2390. <Key>
  2391. <PropertyRef Name="SiteId" />
  2392. <PropertyRef Name="PurchaseRequestId" />
  2393. </Key>
  2394. <Property Name="SiteId" Type="int" Nullable="false" />
  2395. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2396. <Property Name="PurchaseRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2397. <Property Name="PurchaseTypeId" Type="smallint" Nullable="false" />
  2398. <Property Name="RequestDate" Type="datetime" Nullable="false" />
  2399. <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2400. <Property Name="PurchaseHopeDate" Type="datetime" />
  2401. <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
  2402. <Property Name="Reason" Type="nvarchar" MaxLength="2000" Nullable="false" />
  2403. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  2404. <Property Name="ApprovalDate" Type="datetime" />
  2405. <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
  2406. <Property Name="bSameOrder" Type="bit" />
  2407. </EntityType>
  2408. <EntityType Name="FmsMaterialPurchaseRequestMaterial">
  2409. <Key>
  2410. <PropertyRef Name="SiteId" />
  2411. <PropertyRef Name="PurchaseRequestId" />
  2412. <PropertyRef Name="MaterialId" />
  2413. </Key>
  2414. <Property Name="SiteId" Type="int" Nullable="false" />
  2415. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2416. <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
  2417. <Property Name="MaterialId" Type="int" Nullable="false" />
  2418. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2419. </EntityType>
  2420. <EntityType Name="FmsMaterialRelease">
  2421. <Key>
  2422. <PropertyRef Name="SiteId" />
  2423. <PropertyRef Name="MaterialReleaseId" />
  2424. </Key>
  2425. <Property Name="SiteId" Type="int" Nullable="false" />
  2426. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2427. <Property Name="ReleaseDate" Type="datetime" Nullable="false" />
  2428. <Property Name="MaterialReleaseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2429. <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
  2430. <Property Name="WorkRequestId" Type="int" />
  2431. <Property Name="WarehouseId" Type="int" />
  2432. <Property Name="MaterialId" Type="int" />
  2433. <Property Name="MaterialCount" Type="int" />
  2434. <Property Name="StockCountByPoint" Type="int" />
  2435. <Property Name="ReleaseTotalCost" Type="int" />
  2436. <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
  2437. <Property Name="AdjustmentUserId" Type="nvarchar" MaxLength="24" />
  2438. <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
  2439. <Property Name="ConfirmedDate" Type="datetime" />
  2440. <Property Name="IsConfirmed" Type="bit" Nullable="false" />
  2441. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2442. </EntityType>
  2443. <EntityType Name="FmsMaterialStored">
  2444. <Key>
  2445. <PropertyRef Name="SiteId" />
  2446. <PropertyRef Name="MaterialStoredId" />
  2447. </Key>
  2448. <Property Name="SiteId" Type="int" Nullable="false" />
  2449. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2450. <Property Name="StoredDate" Type="datetime" Nullable="false" />
  2451. <Property Name="MaterialStoredId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2452. <Property Name="PurchaseOrderId" Type="int" />
  2453. <Property Name="WarehouseId" Type="int" Nullable="false" />
  2454. <Property Name="MaterialId" Type="int" Nullable="false" />
  2455. <Property Name="StoredCount" Type="int" Nullable="false" />
  2456. <Property Name="RemainStoredCount" Type="int" Nullable="false" />
  2457. <Property Name="UnitCost" Type="int" Nullable="false" />
  2458. <Property Name="StockCount" Type="int" Nullable="false" />
  2459. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  2460. <Property Name="StoredUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2461. <Property Name="ApprovalDate" Type="datetime" />
  2462. <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
  2463. <Property Name="IsApproval" Type="bit" Nullable="false" />
  2464. <Property Name="LocationInWarehouse" Type="nvarchar" MaxLength="100" />
  2465. </EntityType>
  2466. <EntityType Name="FmsMaterialTradeCompany">
  2467. <Key>
  2468. <PropertyRef Name="SiteId" />
  2469. <PropertyRef Name="TradeCompanyId" />
  2470. </Key>
  2471. <Property Name="SiteId" Type="int" Nullable="false" />
  2472. <Property Name="TradeCompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2473. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2474. <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" Nullable="false" />
  2475. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="24" />
  2476. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
  2477. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  2478. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  2479. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  2480. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  2481. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  2482. <Property Name="Address1" Type="nvarchar" MaxLength="100" />
  2483. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  2484. <Property Name="HomepageUri" Type="nvarchar" MaxLength="200" />
  2485. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  2486. <Property Name="IsUse" Type="bit" Nullable="false" />
  2487. </EntityType>
  2488. <EntityType Name="FmsMaterialWarehouse">
  2489. <Key>
  2490. <PropertyRef Name="SiteId" />
  2491. <PropertyRef Name="WarehouseId" />
  2492. </Key>
  2493. <Property Name="SiteId" Type="int" Nullable="false" />
  2494. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2495. <Property Name="WarehouseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2496. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2497. <Property Name="IsUse" Type="bit" Nullable="false" />
  2498. </EntityType>
  2499. <EntityType Name="FmsMonthlyReport">
  2500. <Key>
  2501. <PropertyRef Name="SiteId" />
  2502. <PropertyRef Name="MonthlyReportId" />
  2503. </Key>
  2504. <Property Name="SiteId" Type="int" Nullable="false" />
  2505. <Property Name="MonthlyReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2506. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2507. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  2508. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2509. <Property Name="AddDate" Type="datetime" Nullable="false" />
  2510. </EntityType>
  2511. <EntityType Name="FmsPaymentType">
  2512. <Key>
  2513. <PropertyRef Name="SiteId" />
  2514. <PropertyRef Name="PaymentTypeId" />
  2515. </Key>
  2516. <Property Name="SiteId" Type="int" Nullable="false" />
  2517. <Property Name="PaymentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2518. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2519. <Property Name="IsUse" Type="bit" />
  2520. </EntityType>
  2521. <EntityType Name="FmsReport">
  2522. <Key>
  2523. <PropertyRef Name="SiteId" />
  2524. <PropertyRef Name="RId" />
  2525. </Key>
  2526. <Property Name="SiteId" Type="int" Nullable="false" />
  2527. <Property Name="RId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2528. <Property Name="Title" Type="nvarchar" MaxLength="128" />
  2529. <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
  2530. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" />
  2531. <Property Name="FileId" Type="int" />
  2532. <Property Name="MakeDate" Type="datetime" Nullable="false" />
  2533. <Property Name="ConfirmUserId1" Type="nvarchar" MaxLength="24" />
  2534. <Property Name="ConfirmUserId2" Type="nvarchar" MaxLength="24" />
  2535. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2536. </EntityType>
  2537. <EntityType Name="FmsWorkCodeCauseClass">
  2538. <Key>
  2539. <PropertyRef Name="SiteId" />
  2540. <PropertyRef Name="CauseClassId" />
  2541. </Key>
  2542. <Property Name="SiteId" Type="int" Nullable="false" />
  2543. <Property Name="CauseClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2544. <Property Name="ParentId" Type="int" Nullable="false" />
  2545. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2546. <Property Name="IsUse" Type="bit" />
  2547. </EntityType>
  2548. <EntityType Name="FmsWorkCodeCycleUnit">
  2549. <Key>
  2550. <PropertyRef Name="SiteId" />
  2551. <PropertyRef Name="CycleUnitId" />
  2552. </Key>
  2553. <Property Name="SiteId" Type="int" Nullable="false" />
  2554. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2555. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2556. <Property Name="Description" Type="nvarchar" MaxLength="200" />
  2557. </EntityType>
  2558. <EntityType Name="FmsWorkCodeEmergency">
  2559. <Key>
  2560. <PropertyRef Name="SiteId" />
  2561. <PropertyRef Name="EmergencyId" />
  2562. </Key>
  2563. <Property Name="SiteId" Type="int" Nullable="false" />
  2564. <Property Name="EmergencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2565. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  2566. <Property Name="IsUse" Type="bit" />
  2567. </EntityType>
  2568. <EntityType Name="FmsWorkCodeHolidayWorkType">
  2569. <Key>
  2570. <PropertyRef Name="SiteId" />
  2571. <PropertyRef Name="HolidayWorkTypeId" />
  2572. </Key>
  2573. <Property Name="SiteId" Type="int" Nullable="false" />
  2574. <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
  2575. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  2576. <Property Name="IsUse" Type="bit" />
  2577. </EntityType>
  2578. <EntityType Name="FmsWorkCodeLegalInspectionAgency">
  2579. <Key>
  2580. <PropertyRef Name="SiteId" />
  2581. <PropertyRef Name="InspectionAgencyId" />
  2582. </Key>
  2583. <Property Name="SiteId" Type="int" Nullable="false" />
  2584. <Property Name="InspectionAgencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2585. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2586. <Property Name="IsUse" Type="bit" />
  2587. </EntityType>
  2588. <EntityType Name="FmsWorkCodeProgress">
  2589. <Key>
  2590. <PropertyRef Name="WorkProgressId" />
  2591. </Key>
  2592. <Property Name="WorkProgressId" Type="int" Nullable="false" />
  2593. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2594. <Property Name="Description" Type="nvarchar" MaxLength="512" />
  2595. </EntityType>
  2596. <EntityType Name="FmsWorkCodeType">
  2597. <Key>
  2598. <PropertyRef Name="WorkTypeId" />
  2599. </Key>
  2600. <Property Name="WorkTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2601. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2602. <Property Name="Description" Type="nvarchar" MaxLength="512" />
  2603. </EntityType>
  2604. <EntityType Name="FmsWorkOrder">
  2605. <Key>
  2606. <PropertyRef Name="SiteId" />
  2607. <PropertyRef Name="WorkRequestId" />
  2608. </Key>
  2609. <Property Name="SiteId" Type="int" Nullable="false" />
  2610. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2611. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2612. <Property Name="EmergencyId" Type="int" />
  2613. <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2614. <Property Name="OrderDate" Type="datetime" Nullable="false" />
  2615. <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
  2616. <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
  2617. <Property Name="Content" Type="nvarchar" MaxLength="2000" />
  2618. </EntityType>
  2619. <EntityType Name="FmsWorkOrderToFacility">
  2620. <Key>
  2621. <PropertyRef Name="SiteId" />
  2622. <PropertyRef Name="WorkRequestId" />
  2623. <PropertyRef Name="FacilityCode" />
  2624. </Key>
  2625. <Property Name="SiteId" Type="int" Nullable="false" />
  2626. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2627. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2628. </EntityType>
  2629. <EntityType Name="FmsWorkRequest">
  2630. <Key>
  2631. <PropertyRef Name="SiteId" />
  2632. <PropertyRef Name="WorkRequestId" />
  2633. </Key>
  2634. <Property Name="SiteId" Type="int" Nullable="false" />
  2635. <Property Name="WorkRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2636. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2637. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2638. <Property Name="WorkScheduleId" Type="int" />
  2639. <Property Name="WorkProgressId" Type="int" Nullable="false" />
  2640. <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
  2641. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2642. <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" />
  2643. <Property Name="RequestDate" Type="datetime" Nullable="false" />
  2644. <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
  2645. <Property Name="RejectUserId" Type="nvarchar" MaxLength="24" />
  2646. <Property Name="RejectDate" Type="datetime" />
  2647. <Property Name="RejectReason" Type="nvarchar" MaxLength="512" />
  2648. <Property Name="InspectionAgencyId" Type="int" />
  2649. </EntityType>
  2650. <EntityType Name="FmsWorkRequestToFacility">
  2651. <Key>
  2652. <PropertyRef Name="SiteId" />
  2653. <PropertyRef Name="WorkRequestId" />
  2654. <PropertyRef Name="FacilityCode" />
  2655. </Key>
  2656. <Property Name="SiteId" Type="int" Nullable="false" />
  2657. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2658. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2659. </EntityType>
  2660. <EntityType Name="FmsWorkResult">
  2661. <Key>
  2662. <PropertyRef Name="SiteId" />
  2663. <PropertyRef Name="WorkRequestId" />
  2664. </Key>
  2665. <Property Name="SiteId" Type="int" Nullable="false" />
  2666. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2667. <Property Name="WorkerUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2668. <Property Name="StartDate" Type="datetime" Nullable="false" />
  2669. <Property Name="EndDate" Type="datetime" Nullable="false" />
  2670. <Property Name="CauseClassId" Type="int" />
  2671. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2672. <Property Name="ConfirmedDate" Type="datetime" />
  2673. <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
  2674. <Property Name="IsConfirmed" Type="bit" Nullable="false" />
  2675. <Property Name="ConfirmDesc" Type="nvarchar" MaxLength="1024" />
  2676. </EntityType>
  2677. <EntityType Name="FmsWorkResultCheckItem">
  2678. <Key>
  2679. <PropertyRef Name="CheckItemId" />
  2680. </Key>
  2681. <Property Name="SiteId" Type="int" Nullable="false" />
  2682. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2683. <Property Name="FacilityCode" Type="int" />
  2684. <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2685. <Property Name="BoolResult" Type="bit" />
  2686. <Property Name="TextResult" Type="nvarchar" MaxLength="1024" />
  2687. <Property Name="CheckDate" Type="datetime" Nullable="false" />
  2688. <Property Name="FileId1" Type="int" />
  2689. <Property Name="FileId2" Type="int" />
  2690. </EntityType>
  2691. <EntityType Name="FmsWorkResultCheckItemMaterial">
  2692. <Key>
  2693. <PropertyRef Name="CheckItemMaterialId" />
  2694. </Key>
  2695. <Property Name="SiteId" Type="int" Nullable="false" />
  2696. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2697. <Property Name="CheckItemId" Type="int" Nullable="false" />
  2698. <Property Name="CheckItemMaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2699. <Property Name="MaterialId" Type="int" Nullable="false" />
  2700. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2701. <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" />
  2702. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  2703. </EntityType>
  2704. <EntityType Name="FmsWorkResultFile">
  2705. <Key>
  2706. <PropertyRef Name="SiteId" />
  2707. <PropertyRef Name="WorkRequestId" />
  2708. </Key>
  2709. <Property Name="SiteId" Type="int" Nullable="false" />
  2710. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2711. <Property Name="FileId" Type="int" Nullable="false" />
  2712. </EntityType>
  2713. <EntityType Name="FmsWorkResultLaw">
  2714. <Key>
  2715. <PropertyRef Name="SiteId" />
  2716. <PropertyRef Name="WorkRequestId" />
  2717. </Key>
  2718. <Property Name="SiteId" Type="int" Nullable="false" />
  2719. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2720. <Property Name="CertificationNo" Type="nvarchar" MaxLength="50" />
  2721. <Property Name="CheckCommission" Type="numeric" Precision="10" Scale="0" />
  2722. <Property Name="CheckResult" Type="bit" />
  2723. </EntityType>
  2724. <EntityType Name="FmsWorkResultToFacility">
  2725. <Key>
  2726. <PropertyRef Name="SiteId" />
  2727. <PropertyRef Name="WorkRequestId" />
  2728. <PropertyRef Name="FacilityCode" />
  2729. </Key>
  2730. <Property Name="SiteId" Type="int" Nullable="false" />
  2731. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2732. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2733. </EntityType>
  2734. <EntityType Name="FmsWorkSchedule">
  2735. <Key>
  2736. <PropertyRef Name="SiteId" />
  2737. <PropertyRef Name="WorkScheduleId" />
  2738. </Key>
  2739. <Property Name="SiteId" Type="int" Nullable="false" />
  2740. <Property Name="WorkScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2741. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2742. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2743. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  2744. <Property Name="InspectionAgencyId" Type="int" />
  2745. <Property Name="CycleSize" Type="int" Nullable="false" />
  2746. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2747. <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
  2748. <Property Name="WorkDueDate" Type="datetime" Nullable="false" />
  2749. <Property Name="UpdateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2750. <Property Name="IsUse" Type="bit" Nullable="false" />
  2751. <Property Name="IsAutoOrder" Type="bit" Nullable="false" />
  2752. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2753. </EntityType>
  2754. <EntityType Name="FmsWorkScheduleToFacility">
  2755. <Key>
  2756. <PropertyRef Name="SiteId" />
  2757. <PropertyRef Name="WorkScheduleId" />
  2758. <PropertyRef Name="FacilityCode" />
  2759. </Key>
  2760. <Property Name="SiteId" Type="int" Nullable="false" />
  2761. <Property Name="WorkScheduleId" Type="int" Nullable="false" />
  2762. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2763. </EntityType>
  2764. <EntityType Name="sysdiagrams">
  2765. <Key>
  2766. <PropertyRef Name="diagram_id" />
  2767. </Key>
  2768. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2769. <Property Name="principal_id" Type="int" Nullable="false" />
  2770. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2771. <Property Name="version" Type="int" />
  2772. <Property Name="definition" Type="varbinary(max)" />
  2773. </EntityType>
  2774. <EntityType Name="WeatherDongNaeForecast">
  2775. <Key>
  2776. <PropertyRef Name="BaseTime" />
  2777. <PropertyRef Name="ForecastTime" />
  2778. </Key>
  2779. <Property Name="BaseTime" Type="datetime" Nullable="false" />
  2780. <Property Name="nx" Type="int" />
  2781. <Property Name="ny" Type="int" />
  2782. <Property Name="ForecastTime" Type="datetime" Nullable="false" />
  2783. <Property Name="POP" Type="float" />
  2784. <Property Name="PTY" Type="float" />
  2785. <Property Name="R06" Type="float" />
  2786. <Property Name="REH" Type="float" />
  2787. <Property Name="S06" Type="float" />
  2788. <Property Name="SKY" Type="float" />
  2789. <Property Name="T3H" Type="float" />
  2790. <Property Name="TMN" Type="float" />
  2791. <Property Name="TMX" Type="float" />
  2792. <Property Name="UUU" Type="float" />
  2793. <Property Name="VVV" Type="float" />
  2794. <Property Name="VEC" Type="float" />
  2795. <Property Name="WSD" Type="float" />
  2796. <Property Name="Type" Type="int" />
  2797. <Property Name="DBTime" Type="datetime" />
  2798. <Property Name="Version" Type="int" />
  2799. </EntityType>
  2800. <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
  2801. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  2802. <End Role="BemsEnergyConfigPercentMonth" Type="Self.BemsEnergyConfigPercentMonth" Multiplicity="*" />
  2803. <ReferentialConstraint>
  2804. <Principal Role="CmSite">
  2805. <PropertyRef Name="SiteId" />
  2806. </Principal>
  2807. <Dependent Role="BemsEnergyConfigPercentMonth">
  2808. <PropertyRef Name="SiteId" />
  2809. </Dependent>
  2810. </ReferentialConstraint>
  2811. </Association>
  2812. <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
  2813. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  2814. <End Role="BemsEnergyConfigPercentWeek" Type="Self.BemsEnergyConfigPercentWeek" Multiplicity="*" />
  2815. <ReferentialConstraint>
  2816. <Principal Role="CmSite">
  2817. <PropertyRef Name="SiteId" />
  2818. </Principal>
  2819. <Dependent Role="BemsEnergyConfigPercentWeek">
  2820. <PropertyRef Name="SiteId" />
  2821. </Dependent>
  2822. </ReferentialConstraint>
  2823. </Association>
  2824. <Association Name="FK__BemsEnergyDaily__BemsFuelType">
  2825. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2826. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2827. <ReferentialConstraint>
  2828. <Principal Role="BemsFuelType">
  2829. <PropertyRef Name="FuelTypeId" />
  2830. </Principal>
  2831. <Dependent Role="BemsEnergyDaily">
  2832. <PropertyRef Name="FuelTypeId" />
  2833. </Dependent>
  2834. </ReferentialConstraint>
  2835. </Association>
  2836. <Association Name="FK__BemsEnergyDaily__BemsServiceType">
  2837. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="1" />
  2838. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2839. <ReferentialConstraint>
  2840. <Principal Role="BemsServiceType">
  2841. <PropertyRef Name="ServiceTypeId" />
  2842. </Principal>
  2843. <Dependent Role="BemsEnergyDaily">
  2844. <PropertyRef Name="ServiceTypeId" />
  2845. </Dependent>
  2846. </ReferentialConstraint>
  2847. </Association>
  2848. <Association Name="FK__BemsEnergyDaily__CmBuilding">
  2849. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  2850. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2851. <ReferentialConstraint>
  2852. <Principal Role="CmBuilding">
  2853. <PropertyRef Name="SiteId" />
  2854. <PropertyRef Name="BuildingId" />
  2855. </Principal>
  2856. <Dependent Role="BemsEnergyDaily">
  2857. <PropertyRef Name="SiteId" />
  2858. <PropertyRef Name="BuildingId" />
  2859. </Dependent>
  2860. </ReferentialConstraint>
  2861. </Association>
  2862. <Association Name="FK__BemsFactorCo2__BemsFuelType">
  2863. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2864. <End Role="BemsFactorCo2" Type="Self.BemsFactorCo2" Multiplicity="0..1" />
  2865. <ReferentialConstraint>
  2866. <Principal Role="BemsFuelType">
  2867. <PropertyRef Name="FuelTypeId" />
  2868. </Principal>
  2869. <Dependent Role="BemsFactorCo2">
  2870. <PropertyRef Name="FuelTypeId" />
  2871. </Dependent>
  2872. </ReferentialConstraint>
  2873. </Association>
  2874. <Association Name="FK__BemsFactorToe__BemsFuelType">
  2875. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2876. <End Role="BemsFactorToe" Type="Self.BemsFactorToe" Multiplicity="0..1" />
  2877. <ReferentialConstraint>
  2878. <Principal Role="BemsFuelType">
  2879. <PropertyRef Name="FuelTypeId" />
  2880. </Principal>
  2881. <Dependent Role="BemsFactorToe">
  2882. <PropertyRef Name="FuelTypeId" />
  2883. </Dependent>
  2884. </ReferentialConstraint>
  2885. </Association>
  2886. <Association Name="FK__BemsFormula__BemsFormulaBase">
  2887. <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
  2888. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
  2889. <ReferentialConstraint>
  2890. <Principal Role="BemsFormulaBase">
  2891. <PropertyRef Name="FacilityTypeId" />
  2892. <PropertyRef Name="FormulaId" />
  2893. </Principal>
  2894. <Dependent Role="BemsFormula">
  2895. <PropertyRef Name="FacilityTypeId" />
  2896. <PropertyRef Name="FormulaId" />
  2897. </Dependent>
  2898. </ReferentialConstraint>
  2899. </Association>
  2900. <Association Name="FK__BemsFormulaParameter__BemsFormula">
  2901. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  2902. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  2903. <ReferentialConstraint>
  2904. <Principal Role="BemsFormula">
  2905. <PropertyRef Name="SiteId" />
  2906. <PropertyRef Name="FacilityTypeId" />
  2907. <PropertyRef Name="FacilityCode" />
  2908. <PropertyRef Name="FormulaId" />
  2909. </Principal>
  2910. <Dependent Role="BemsFormulaParameter">
  2911. <PropertyRef Name="SiteId" />
  2912. <PropertyRef Name="FacilityTypeId" />
  2913. <PropertyRef Name="FacilityCode" />
  2914. <PropertyRef Name="FormulaId" />
  2915. </Dependent>
  2916. </ReferentialConstraint>
  2917. </Association>
  2918. <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
  2919. <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
  2920. <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
  2921. <ReferentialConstraint>
  2922. <Principal Role="BemsFormulaTable">
  2923. <PropertyRef Name="TableId" />
  2924. </Principal>
  2925. <Dependent Role="BemsFormulaTableValue">
  2926. <PropertyRef Name="TableId" />
  2927. </Dependent>
  2928. </ReferentialConstraint>
  2929. </Association>
  2930. <Association Name="FK__BemsMonitoringPo__1372D2FE">
  2931. <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
  2932. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  2933. <ReferentialConstraint>
  2934. <Principal Role="BemsAnalysisType">
  2935. <PropertyRef Name="SiteId" />
  2936. <PropertyRef Name="AnalysisType" />
  2937. </Principal>
  2938. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  2939. <PropertyRef Name="SiteId" />
  2940. <PropertyRef Name="AnalysisType" />
  2941. </Dependent>
  2942. </ReferentialConstraint>
  2943. </Association>
  2944. <Association Name="FK__BemsMonitoringPo__155B1B70">
  2945. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  2946. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  2947. <ReferentialConstraint>
  2948. <Principal Role="BemsMonitoringPoint">
  2949. <PropertyRef Name="SiteId" />
  2950. <PropertyRef Name="FacilityCode" />
  2951. <PropertyRef Name="PropertyId" />
  2952. </Principal>
  2953. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  2954. <PropertyRef Name="SiteId" />
  2955. <PropertyRef Name="FacilityCode" />
  2956. <PropertyRef Name="PropertyId" />
  2957. </Dependent>
  2958. </ReferentialConstraint>
  2959. </Association>
  2960. <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
  2961. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
  2962. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2963. <ReferentialConstraint>
  2964. <Principal Role="BemsFuelType">
  2965. <PropertyRef Name="FuelTypeId" />
  2966. </Principal>
  2967. <Dependent Role="BemsMonitoringPoint">
  2968. <PropertyRef Name="FuelTypeId" />
  2969. </Dependent>
  2970. </ReferentialConstraint>
  2971. </Association>
  2972. <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
  2973. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  2974. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2975. <ReferentialConstraint>
  2976. <Principal Role="BemsServiceType">
  2977. <PropertyRef Name="ServiceTypeId" />
  2978. </Principal>
  2979. <Dependent Role="BemsMonitoringPoint">
  2980. <PropertyRef Name="ServiceTypeId" />
  2981. </Dependent>
  2982. </ReferentialConstraint>
  2983. </Association>
  2984. <Association Name="FK__BemsMonitoringPoint__CmBuilding">
  2985. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
  2986. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2987. <ReferentialConstraint>
  2988. <Principal Role="CmBuilding">
  2989. <PropertyRef Name="SiteId" />
  2990. <PropertyRef Name="BuildingId" />
  2991. </Principal>
  2992. <Dependent Role="BemsMonitoringPoint">
  2993. <PropertyRef Name="SiteId" />
  2994. <PropertyRef Name="BuildingId" />
  2995. </Dependent>
  2996. </ReferentialConstraint>
  2997. </Association>
  2998. <Association Name="FK__BemsMonitoringPoint__CmFloor">
  2999. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
  3000. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  3001. <ReferentialConstraint>
  3002. <Principal Role="CmFloor">
  3003. <PropertyRef Name="SiteId" />
  3004. <PropertyRef Name="BuildingId" />
  3005. <PropertyRef Name="FloorId" />
  3006. </Principal>
  3007. <Dependent Role="BemsMonitoringPoint">
  3008. <PropertyRef Name="SiteId" />
  3009. <PropertyRef Name="BuildingId" />
  3010. <PropertyRef Name="FloorId" />
  3011. </Dependent>
  3012. </ReferentialConstraint>
  3013. </Association>
  3014. <Association Name="FK__BemsMonitoringPoint__CmZone">
  3015. <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
  3016. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  3017. <ReferentialConstraint>
  3018. <Principal Role="CmZone">
  3019. <PropertyRef Name="SiteId" />
  3020. <PropertyRef Name="BuildingId" />
  3021. <PropertyRef Name="FloorId" />
  3022. <PropertyRef Name="ZoneId" />
  3023. </Principal>
  3024. <Dependent Role="BemsMonitoringPoint">
  3025. <PropertyRef Name="SiteId" />
  3026. <PropertyRef Name="BuildingId" />
  3027. <PropertyRef Name="FloorId" />
  3028. <PropertyRef Name="ZoneId" />
  3029. </Dependent>
  3030. </ReferentialConstraint>
  3031. </Association>
  3032. <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
  3033. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3034. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  3035. <ReferentialConstraint>
  3036. <Principal Role="BemsFacilityType">
  3037. <PropertyRef Name="FacilityTypeId" />
  3038. </Principal>
  3039. <Dependent Role="BemsMonitoringPointBaseData">
  3040. <PropertyRef Name="FacilityTypeId" />
  3041. </Dependent>
  3042. </ReferentialConstraint>
  3043. </Association>
  3044. <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
  3045. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
  3046. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  3047. <ReferentialConstraint>
  3048. <Principal Role="BemsFuelType">
  3049. <PropertyRef Name="FuelTypeId" />
  3050. </Principal>
  3051. <Dependent Role="BemsMonitoringPointBaseData">
  3052. <PropertyRef Name="FuelTypeId" />
  3053. </Dependent>
  3054. </ReferentialConstraint>
  3055. </Association>
  3056. <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
  3057. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  3058. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  3059. <ReferentialConstraint>
  3060. <Principal Role="BemsServiceType">
  3061. <PropertyRef Name="ServiceTypeId" />
  3062. </Principal>
  3063. <Dependent Role="BemsMonitoringPointBaseData">
  3064. <PropertyRef Name="ServiceTypeId" />
  3065. </Dependent>
  3066. </ReferentialConstraint>
  3067. </Association>
  3068. <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  3069. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3070. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  3071. <ReferentialConstraint>
  3072. <Principal Role="BemsFacilityType">
  3073. <PropertyRef Name="FacilityTypeId" />
  3074. </Principal>
  3075. <Dependent Role="BemsMonitoringPointHistory15min">
  3076. <PropertyRef Name="FacilityTypeId" />
  3077. </Dependent>
  3078. </ReferentialConstraint>
  3079. </Association>
  3080. <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  3081. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3082. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  3083. <ReferentialConstraint>
  3084. <Principal Role="BemsMonitoringPoint">
  3085. <PropertyRef Name="SiteId" />
  3086. <PropertyRef Name="FacilityCode" />
  3087. <PropertyRef Name="PropertyId" />
  3088. </Principal>
  3089. <Dependent Role="BemsMonitoringPointHistory15min">
  3090. <PropertyRef Name="SiteId" />
  3091. <PropertyRef Name="FacilityCode" />
  3092. <PropertyRef Name="PropertyId" />
  3093. </Dependent>
  3094. </ReferentialConstraint>
  3095. </Association>
  3096. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  3097. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3098. <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  3099. <ReferentialConstraint>
  3100. <Principal Role="BemsFacilityType">
  3101. <PropertyRef Name="FacilityTypeId" />
  3102. </Principal>
  3103. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  3104. <PropertyRef Name="FacilityTypeId" />
  3105. </Dependent>
  3106. </ReferentialConstraint>
  3107. </Association>
  3108. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  3109. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3110. <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  3111. <ReferentialConstraint>
  3112. <Principal Role="BemsMonitoringPoint">
  3113. <PropertyRef Name="SiteId" />
  3114. <PropertyRef Name="FacilityCode" />
  3115. <PropertyRef Name="PropertyId" />
  3116. </Principal>
  3117. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  3118. <PropertyRef Name="SiteId" />
  3119. <PropertyRef Name="FacilityCode" />
  3120. <PropertyRef Name="PropertyId" />
  3121. </Dependent>
  3122. </ReferentialConstraint>
  3123. </Association>
  3124. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  3125. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3126. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  3127. <ReferentialConstraint>
  3128. <Principal Role="BemsFacilityType">
  3129. <PropertyRef Name="FacilityTypeId" />
  3130. </Principal>
  3131. <Dependent Role="BemsMonitoringPointHistoryDaily">
  3132. <PropertyRef Name="FacilityTypeId" />
  3133. </Dependent>
  3134. </ReferentialConstraint>
  3135. </Association>
  3136. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  3137. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3138. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  3139. <ReferentialConstraint>
  3140. <Principal Role="BemsMonitoringPoint">
  3141. <PropertyRef Name="SiteId" />
  3142. <PropertyRef Name="FacilityCode" />
  3143. <PropertyRef Name="PropertyId" />
  3144. </Principal>
  3145. <Dependent Role="BemsMonitoringPointHistoryDaily">
  3146. <PropertyRef Name="SiteId" />
  3147. <PropertyRef Name="FacilityCode" />
  3148. <PropertyRef Name="PropertyId" />
  3149. </Dependent>
  3150. </ReferentialConstraint>
  3151. </Association>
  3152. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  3153. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3154. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  3155. <ReferentialConstraint>
  3156. <Principal Role="BemsFacilityType">
  3157. <PropertyRef Name="FacilityTypeId" />
  3158. </Principal>
  3159. <Dependent Role="BemsMonitoringPointHistoryHourly">
  3160. <PropertyRef Name="FacilityTypeId" />
  3161. </Dependent>
  3162. </ReferentialConstraint>
  3163. </Association>
  3164. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  3165. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3166. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  3167. <ReferentialConstraint>
  3168. <Principal Role="BemsMonitoringPoint">
  3169. <PropertyRef Name="SiteId" />
  3170. <PropertyRef Name="FacilityCode" />
  3171. <PropertyRef Name="PropertyId" />
  3172. </Principal>
  3173. <Dependent Role="BemsMonitoringPointHistoryHourly">
  3174. <PropertyRef Name="SiteId" />
  3175. <PropertyRef Name="FacilityCode" />
  3176. <PropertyRef Name="PropertyId" />
  3177. </Dependent>
  3178. </ReferentialConstraint>
  3179. </Association>
  3180. <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  3181. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3182. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  3183. <ReferentialConstraint>
  3184. <Principal Role="BemsFacilityType">
  3185. <PropertyRef Name="FacilityTypeId" />
  3186. </Principal>
  3187. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  3188. <PropertyRef Name="FacilityTypeId" />
  3189. </Dependent>
  3190. </ReferentialConstraint>
  3191. </Association>
  3192. <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  3193. <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="1" />
  3194. <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="*" />
  3195. <ReferentialConstraint>
  3196. <Principal Role="BemsNoticePriceContractType">
  3197. <PropertyRef Name="FuelTypeId" />
  3198. <PropertyRef Name="ContractType" />
  3199. </Principal>
  3200. <Dependent Role="BemsNoticePriceBase">
  3201. <PropertyRef Name="FuelTypeId" />
  3202. <PropertyRef Name="ContractType" />
  3203. </Dependent>
  3204. </ReferentialConstraint>
  3205. </Association>
  3206. <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
  3207. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  3208. <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="*" />
  3209. <ReferentialConstraint>
  3210. <Principal Role="BemsFuelType">
  3211. <PropertyRef Name="FuelTypeId" />
  3212. </Principal>
  3213. <Dependent Role="BemsNoticePriceContractType">
  3214. <PropertyRef Name="FuelTypeId" />
  3215. </Dependent>
  3216. </ReferentialConstraint>
  3217. </Association>
  3218. <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  3219. <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="1" />
  3220. <End Role="BemsNoticePriceDetail" Type="Self.BemsNoticePriceDetail" Multiplicity="*" />
  3221. <ReferentialConstraint>
  3222. <Principal Role="BemsNoticePriceBase">
  3223. <PropertyRef Name="SiteId" />
  3224. <PropertyRef Name="FuelTypeId" />
  3225. <PropertyRef Name="ApplyDate" />
  3226. <PropertyRef Name="ContractType" />
  3227. </Principal>
  3228. <Dependent Role="BemsNoticePriceDetail">
  3229. <PropertyRef Name="SiteId" />
  3230. <PropertyRef Name="FuelTypeId" />
  3231. <PropertyRef Name="ApplyDate" />
  3232. <PropertyRef Name="ContractType" />
  3233. </Dependent>
  3234. </ReferentialConstraint>
  3235. </Association>
  3236. <Association Name="FK__CmCompany__345EC57D">
  3237. <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
  3238. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  3239. <ReferentialConstraint>
  3240. <Principal Role="CmCompanyType">
  3241. <PropertyRef Name="SiteId" />
  3242. <PropertyRef Name="CompanyTypeId" />
  3243. </Principal>
  3244. <Dependent Role="CmCompany">
  3245. <PropertyRef Name="SiteId" />
  3246. <PropertyRef Name="CompanyTypeId" />
  3247. </Dependent>
  3248. </ReferentialConstraint>
  3249. </Association>
  3250. <Association Name="FK__CmCompany__SiteI__336AA144">
  3251. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3252. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  3253. <ReferentialConstraint>
  3254. <Principal Role="CmSite">
  3255. <PropertyRef Name="SiteId" />
  3256. </Principal>
  3257. <Dependent Role="CmCompany">
  3258. <PropertyRef Name="SiteId" />
  3259. </Dependent>
  3260. </ReferentialConstraint>
  3261. </Association>
  3262. <Association Name="FK__CmDepartment__3552E9B6">
  3263. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
  3264. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
  3265. <ReferentialConstraint>
  3266. <Principal Role="CmCompany">
  3267. <PropertyRef Name="SiteId" />
  3268. <PropertyRef Name="CompanyId" />
  3269. </Principal>
  3270. <Dependent Role="CmDepartment">
  3271. <PropertyRef Name="SiteId" />
  3272. <PropertyRef Name="CompanyId" />
  3273. </Dependent>
  3274. </ReferentialConstraint>
  3275. </Association>
  3276. <Association Name="FK__CmFacility__CmFacility">
  3277. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
  3278. <End Role="CmFacility1" Type="Self.CmFacility" Multiplicity="*" />
  3279. <ReferentialConstraint>
  3280. <Principal Role="CmFacility">
  3281. <PropertyRef Name="SiteId" />
  3282. <PropertyRef Name="FacilityCode" />
  3283. </Principal>
  3284. <Dependent Role="CmFacility1">
  3285. <PropertyRef Name="SiteId" />
  3286. <PropertyRef Name="ParentFacilityCode" />
  3287. </Dependent>
  3288. </ReferentialConstraint>
  3289. </Association>
  3290. <Association Name="FK__CmFacilityFile__7720AD13">
  3291. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3292. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="*" />
  3293. <ReferentialConstraint>
  3294. <Principal Role="CmFacility">
  3295. <PropertyRef Name="SiteId" />
  3296. <PropertyRef Name="FacilityCode" />
  3297. </Principal>
  3298. <Dependent Role="CmFacilityFile">
  3299. <PropertyRef Name="SiteId" />
  3300. <PropertyRef Name="FacilityCode" />
  3301. </Dependent>
  3302. </ReferentialConstraint>
  3303. </Association>
  3304. <Association Name="FK__CmFacilityFile__CmFile">
  3305. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  3306. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
  3307. <ReferentialConstraint>
  3308. <Principal Role="CmFile">
  3309. <PropertyRef Name="SiteId" />
  3310. <PropertyRef Name="FileId" />
  3311. </Principal>
  3312. <Dependent Role="CmFacilityFile">
  3313. <PropertyRef Name="SiteId" />
  3314. <PropertyRef Name="FileId" />
  3315. </Dependent>
  3316. </ReferentialConstraint>
  3317. </Association>
  3318. <Association Name="FK__CmFacilityManual__79FD19BE">
  3319. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3320. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  3321. <ReferentialConstraint>
  3322. <Principal Role="CmFacility">
  3323. <PropertyRef Name="SiteId" />
  3324. <PropertyRef Name="FacilityCode" />
  3325. </Principal>
  3326. <Dependent Role="FmsFacilityManual">
  3327. <PropertyRef Name="SiteId" />
  3328. <PropertyRef Name="FacilityCode" />
  3329. </Dependent>
  3330. </ReferentialConstraint>
  3331. </Association>
  3332. <Association Name="FK__CmFacilityManual__7BE56230">
  3333. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3334. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  3335. <ReferentialConstraint>
  3336. <Principal Role="CmBusinessField">
  3337. <PropertyRef Name="SiteId" />
  3338. <PropertyRef Name="BusinessFieldId" />
  3339. </Principal>
  3340. <Dependent Role="FmsFacilityManual">
  3341. <PropertyRef Name="SiteId" />
  3342. <PropertyRef Name="BusinessFieldId" />
  3343. </Dependent>
  3344. </ReferentialConstraint>
  3345. </Association>
  3346. <Association Name="FK__CmFile__CmFileCategory">
  3347. <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
  3348. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  3349. <ReferentialConstraint>
  3350. <Principal Role="CmFileCategory">
  3351. <PropertyRef Name="FileCategoryId" />
  3352. </Principal>
  3353. <Dependent Role="CmFile">
  3354. <PropertyRef Name="FileCategoryId" />
  3355. </Dependent>
  3356. </ReferentialConstraint>
  3357. </Association>
  3358. <Association Name="FK__CmFile__SiteId__2759D01A">
  3359. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3360. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  3361. <ReferentialConstraint>
  3362. <Principal Role="CmSite">
  3363. <PropertyRef Name="SiteId" />
  3364. </Principal>
  3365. <Dependent Role="CmFile">
  3366. <PropertyRef Name="SiteId" />
  3367. </Dependent>
  3368. </ReferentialConstraint>
  3369. </Association>
  3370. <Association Name="FK__CmFloor__3CF40B7E">
  3371. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  3372. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
  3373. <ReferentialConstraint>
  3374. <Principal Role="CmBuilding">
  3375. <PropertyRef Name="SiteId" />
  3376. <PropertyRef Name="BuildingId" />
  3377. </Principal>
  3378. <Dependent Role="CmFloor">
  3379. <PropertyRef Name="SiteId" />
  3380. <PropertyRef Name="BuildingId" />
  3381. </Dependent>
  3382. </ReferentialConstraint>
  3383. </Association>
  3384. <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
  3385. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3386. <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
  3387. <ReferentialConstraint>
  3388. <Principal Role="CmSite">
  3389. <PropertyRef Name="SiteId" />
  3390. </Principal>
  3391. <Dependent Role="CmHoliday">
  3392. <PropertyRef Name="SiteId" />
  3393. </Dependent>
  3394. </ReferentialConstraint>
  3395. </Association>
  3396. <Association Name="FK__CmHoliday__SiteI__0D99FE17">
  3397. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3398. <End Role="CmHolidayWeekend" Type="Self.CmHolidayWeekend" Multiplicity="0..1" />
  3399. <ReferentialConstraint>
  3400. <Principal Role="CmSite">
  3401. <PropertyRef Name="SiteId" />
  3402. </Principal>
  3403. <Dependent Role="CmHolidayWeekend">
  3404. <PropertyRef Name="SiteId" />
  3405. </Dependent>
  3406. </ReferentialConstraint>
  3407. </Association>
  3408. <Association Name="FK__CmHoliday__SiteI__10766AC2">
  3409. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3410. <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
  3411. <ReferentialConstraint>
  3412. <Principal Role="CmSite">
  3413. <PropertyRef Name="SiteId" />
  3414. </Principal>
  3415. <Dependent Role="CmHolidayCustom">
  3416. <PropertyRef Name="SiteId" />
  3417. </Dependent>
  3418. </ReferentialConstraint>
  3419. </Association>
  3420. <Association Name="FK__CmHoliday__SiteI__65AC084E">
  3421. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3422. <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
  3423. <ReferentialConstraint>
  3424. <Principal Role="CmSite">
  3425. <PropertyRef Name="SiteId" />
  3426. </Principal>
  3427. <Dependent Role="CmHoliday">
  3428. <PropertyRef Name="SiteId" />
  3429. </Dependent>
  3430. </ReferentialConstraint>
  3431. </Association>
  3432. <Association Name="FK__CmHoliday__SiteI__66A02C87">
  3433. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3434. <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
  3435. <ReferentialConstraint>
  3436. <Principal Role="CmSite">
  3437. <PropertyRef Name="SiteId" />
  3438. </Principal>
  3439. <Dependent Role="CmHolidayCustom">
  3440. <PropertyRef Name="SiteId" />
  3441. </Dependent>
  3442. </ReferentialConstraint>
  3443. </Association>
  3444. <Association Name="FK__CmLocation__3DE82FB7">
  3445. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  3446. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  3447. <ReferentialConstraint>
  3448. <Principal Role="CmFloor">
  3449. <PropertyRef Name="SiteId" />
  3450. <PropertyRef Name="BuildingId" />
  3451. <PropertyRef Name="FloorId" />
  3452. </Principal>
  3453. <Dependent Role="CmZone">
  3454. <PropertyRef Name="SiteId" />
  3455. <PropertyRef Name="BuildingId" />
  3456. <PropertyRef Name="FloorId" />
  3457. </Dependent>
  3458. </ReferentialConstraint>
  3459. </Association>
  3460. <Association Name="FK__CmPositio__SiteI__6A70BD6B">
  3461. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3462. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
  3463. <ReferentialConstraint>
  3464. <Principal Role="CmSite">
  3465. <PropertyRef Name="SiteId" />
  3466. </Principal>
  3467. <Dependent Role="CmPosition">
  3468. <PropertyRef Name="SiteId" />
  3469. </Dependent>
  3470. </ReferentialConstraint>
  3471. </Association>
  3472. <Association Name="FK__CmUserGro__SiteI__53D770D6">
  3473. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3474. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="*" />
  3475. <ReferentialConstraint>
  3476. <Principal Role="CmSite">
  3477. <PropertyRef Name="SiteId" />
  3478. </Principal>
  3479. <Dependent Role="CmUserGroup">
  3480. <PropertyRef Name="SiteId" />
  3481. </Dependent>
  3482. </ReferentialConstraint>
  3483. </Association>
  3484. <Association Name="FK__CmUserGroupPermission__CmUserGroup">
  3485. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
  3486. <OnDelete Action="Cascade" />
  3487. </End>
  3488. <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
  3489. <ReferentialConstraint>
  3490. <Principal Role="CmUserGroup">
  3491. <PropertyRef Name="SiteId" />
  3492. <PropertyRef Name="UserGroupId" />
  3493. </Principal>
  3494. <Dependent Role="CmUserGroupPermission">
  3495. <PropertyRef Name="SiteId" />
  3496. <PropertyRef Name="UserGroupId" />
  3497. </Dependent>
  3498. </ReferentialConstraint>
  3499. </Association>
  3500. <Association Name="FK__CmUserPos__SiteI__44952D46">
  3501. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3502. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
  3503. <ReferentialConstraint>
  3504. <Principal Role="CmSite">
  3505. <PropertyRef Name="SiteId" />
  3506. </Principal>
  3507. <Dependent Role="CmPosition">
  3508. <PropertyRef Name="SiteId" />
  3509. </Dependent>
  3510. </ReferentialConstraint>
  3511. </Association>
  3512. <Association Name="FK__CmUserToLicense__CmUser">
  3513. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3514. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  3515. <ReferentialConstraint>
  3516. <Principal Role="CmUser">
  3517. <PropertyRef Name="SiteId" />
  3518. <PropertyRef Name="UserId" />
  3519. </Principal>
  3520. <Dependent Role="CmUserToLicense">
  3521. <PropertyRef Name="SiteId" />
  3522. <PropertyRef Name="UserId" />
  3523. </Dependent>
  3524. </ReferentialConstraint>
  3525. </Association>
  3526. <Association Name="FK__CmUserToLicense__FmsLicense">
  3527. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
  3528. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  3529. <ReferentialConstraint>
  3530. <Principal Role="FmsLicense">
  3531. <PropertyRef Name="SiteId" />
  3532. <PropertyRef Name="LicenseId" />
  3533. </Principal>
  3534. <Dependent Role="CmUserToLicense">
  3535. <PropertyRef Name="SiteId" />
  3536. <PropertyRef Name="LicenseId" />
  3537. </Dependent>
  3538. </ReferentialConstraint>
  3539. </Association>
  3540. <Association Name="FK__CmZone__CmBuilding">
  3541. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  3542. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  3543. <ReferentialConstraint>
  3544. <Principal Role="CmBuilding">
  3545. <PropertyRef Name="SiteId" />
  3546. <PropertyRef Name="BuildingId" />
  3547. </Principal>
  3548. <Dependent Role="CmZone">
  3549. <PropertyRef Name="SiteId" />
  3550. <PropertyRef Name="BuildingId" />
  3551. </Dependent>
  3552. </ReferentialConstraint>
  3553. </Association>
  3554. <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
  3555. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3556. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
  3557. <ReferentialConstraint>
  3558. <Principal Role="CmSite">
  3559. <PropertyRef Name="SiteId" />
  3560. </Principal>
  3561. <Dependent Role="FmsDrawingCodeGroup">
  3562. <PropertyRef Name="SiteId" />
  3563. </Dependent>
  3564. </ReferentialConstraint>
  3565. </Association>
  3566. <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
  3567. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3568. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
  3569. <ReferentialConstraint>
  3570. <Principal Role="CmSite">
  3571. <PropertyRef Name="SiteId" />
  3572. </Principal>
  3573. <Dependent Role="FmsDrawingCodeType">
  3574. <PropertyRef Name="SiteId" />
  3575. </Dependent>
  3576. </ReferentialConstraint>
  3577. </Association>
  3578. <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
  3579. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3580. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3581. <ReferentialConstraint>
  3582. <Principal Role="CmSite">
  3583. <PropertyRef Name="SiteId" />
  3584. </Principal>
  3585. <Dependent Role="FmsDrawing">
  3586. <PropertyRef Name="SiteId" />
  3587. </Dependent>
  3588. </ReferentialConstraint>
  3589. </Association>
  3590. <Association Name="FK__FmsDrawin__SiteI__6F357288">
  3591. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3592. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
  3593. <ReferentialConstraint>
  3594. <Principal Role="CmSite">
  3595. <PropertyRef Name="SiteId" />
  3596. </Principal>
  3597. <Dependent Role="FmsDrawingCodeGroup">
  3598. <PropertyRef Name="SiteId" />
  3599. </Dependent>
  3600. </ReferentialConstraint>
  3601. </Association>
  3602. <Association Name="FK__FmsDrawin__SiteI__702996C1">
  3603. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3604. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
  3605. <ReferentialConstraint>
  3606. <Principal Role="CmSite">
  3607. <PropertyRef Name="SiteId" />
  3608. </Principal>
  3609. <Dependent Role="FmsDrawingCodeType">
  3610. <PropertyRef Name="SiteId" />
  3611. </Dependent>
  3612. </ReferentialConstraint>
  3613. </Association>
  3614. <Association Name="FK__FmsDrawing__6E565CE8">
  3615. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
  3616. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3617. <ReferentialConstraint>
  3618. <Principal Role="FmsDrawingCodeGroup">
  3619. <PropertyRef Name="SiteId" />
  3620. <PropertyRef Name="DrawingGroupId" />
  3621. </Principal>
  3622. <Dependent Role="FmsDrawing">
  3623. <PropertyRef Name="SiteId" />
  3624. <PropertyRef Name="DrawingGroupId" />
  3625. </Dependent>
  3626. </ReferentialConstraint>
  3627. </Association>
  3628. <Association Name="FK__FmsDrawing__6F4A8121">
  3629. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
  3630. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3631. <ReferentialConstraint>
  3632. <Principal Role="FmsDrawingCodeType">
  3633. <PropertyRef Name="SiteId" />
  3634. <PropertyRef Name="DrawingTypeId" />
  3635. </Principal>
  3636. <Dependent Role="FmsDrawing">
  3637. <PropertyRef Name="SiteId" />
  3638. <PropertyRef Name="DrawingTypeId" />
  3639. </Dependent>
  3640. </ReferentialConstraint>
  3641. </Association>
  3642. <Association Name="FK__FmsDrawingHistor__04DA9AE4">
  3643. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  3644. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3645. <ReferentialConstraint>
  3646. <Principal Role="CmFile">
  3647. <PropertyRef Name="SiteId" />
  3648. <PropertyRef Name="FileId" />
  3649. </Principal>
  3650. <Dependent Role="FmsDrawingHistory">
  3651. <PropertyRef Name="SiteId" />
  3652. <PropertyRef Name="FileId" />
  3653. </Dependent>
  3654. </ReferentialConstraint>
  3655. </Association>
  3656. <Association Name="FK__FmsDrawingHistor__7132C993">
  3657. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1">
  3658. <OnDelete Action="Cascade" />
  3659. </End>
  3660. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3661. <ReferentialConstraint>
  3662. <Principal Role="FmsDrawing">
  3663. <PropertyRef Name="SiteId" />
  3664. <PropertyRef Name="DrawingId" />
  3665. </Principal>
  3666. <Dependent Role="FmsDrawingHistory">
  3667. <PropertyRef Name="SiteId" />
  3668. <PropertyRef Name="DrawingId" />
  3669. </Dependent>
  3670. </ReferentialConstraint>
  3671. </Association>
  3672. <Association Name="FK__FmsDrawingHistory__CmUser">
  3673. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  3674. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3675. <ReferentialConstraint>
  3676. <Principal Role="CmUser">
  3677. <PropertyRef Name="SiteId" />
  3678. <PropertyRef Name="UserId" />
  3679. </Principal>
  3680. <Dependent Role="FmsDrawingHistory">
  3681. <PropertyRef Name="SiteId" />
  3682. <PropertyRef Name="UpdatedUserId" />
  3683. </Dependent>
  3684. </ReferentialConstraint>
  3685. </Association>
  3686. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  3687. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  3688. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  3689. <ReferentialConstraint>
  3690. <Principal Role="FmsWorkCodeCycleUnit">
  3691. <PropertyRef Name="SiteId" />
  3692. <PropertyRef Name="CycleUnitId" />
  3693. </Principal>
  3694. <Dependent Role="FmsFacilityCheckItem">
  3695. <PropertyRef Name="SiteId" />
  3696. <PropertyRef Name="CycleUnitId" />
  3697. </Dependent>
  3698. </ReferentialConstraint>
  3699. </Association>
  3700. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  3701. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  3702. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  3703. <ReferentialConstraint>
  3704. <Principal Role="FmsWorkCodeType">
  3705. <PropertyRef Name="WorkTypeId" />
  3706. </Principal>
  3707. <Dependent Role="FmsFacilityCheckItem">
  3708. <PropertyRef Name="WorkTypeId" />
  3709. </Dependent>
  3710. </ReferentialConstraint>
  3711. </Association>
  3712. <Association Name="FK__FmsFacilityCodeClass__CmSite">
  3713. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1">
  3714. <OnDelete Action="Cascade" />
  3715. </End>
  3716. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  3717. <ReferentialConstraint>
  3718. <Principal Role="CmSite">
  3719. <PropertyRef Name="SiteId" />
  3720. </Principal>
  3721. <Dependent Role="FmsFacilityCodeClass">
  3722. <PropertyRef Name="SiteId" />
  3723. </Dependent>
  3724. </ReferentialConstraint>
  3725. </Association>
  3726. <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  3727. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
  3728. <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  3729. <ReferentialConstraint>
  3730. <Principal Role="FmsFacilityCodeClass">
  3731. <PropertyRef Name="SiteId" />
  3732. <PropertyRef Name="FacilityClassId" />
  3733. </Principal>
  3734. <Dependent Role="FmsFacilityCodeClass1">
  3735. <PropertyRef Name="SiteId" />
  3736. <PropertyRef Name="ParentFacilityClassId" />
  3737. </Dependent>
  3738. </ReferentialConstraint>
  3739. </Association>
  3740. <Association Name="FK__FmsFacilityOpera__725BF7F6">
  3741. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3742. <End Role="FmsFacilityOperationItem" Type="Self.FmsFacilityOperationItem" Multiplicity="0..1" />
  3743. <ReferentialConstraint>
  3744. <Principal Role="CmFacility">
  3745. <PropertyRef Name="SiteId" />
  3746. <PropertyRef Name="FacilityCode" />
  3747. </Principal>
  3748. <Dependent Role="FmsFacilityOperationItem">
  3749. <PropertyRef Name="SiteId" />
  3750. <PropertyRef Name="ItemId" />
  3751. </Dependent>
  3752. </ReferentialConstraint>
  3753. </Association>
  3754. <Association Name="FK__FmsLicense__CmBusinessField">
  3755. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  3756. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  3757. <ReferentialConstraint>
  3758. <Principal Role="CmBusinessField">
  3759. <PropertyRef Name="SiteId" />
  3760. <PropertyRef Name="BusinessFieldId" />
  3761. </Principal>
  3762. <Dependent Role="FmsLicense">
  3763. <PropertyRef Name="SiteId" />
  3764. <PropertyRef Name="BusinessFieldId" />
  3765. </Dependent>
  3766. </ReferentialConstraint>
  3767. </Association>
  3768. <Association Name="FK__FmsLicense__CmSite">
  3769. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3770. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  3771. <ReferentialConstraint>
  3772. <Principal Role="CmSite">
  3773. <PropertyRef Name="SiteId" />
  3774. </Principal>
  3775. <Dependent Role="FmsLicense">
  3776. <PropertyRef Name="SiteId" />
  3777. </Dependent>
  3778. </ReferentialConstraint>
  3779. </Association>
  3780. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  3781. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3782. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3783. <ReferentialConstraint>
  3784. <Principal Role="FmsMaterialCodeClass">
  3785. <PropertyRef Name="SiteId" />
  3786. <PropertyRef Name="MaterialClassId" />
  3787. </Principal>
  3788. <Dependent Role="FmsMaterial">
  3789. <PropertyRef Name="SiteId" />
  3790. <PropertyRef Name="FirstClassId" />
  3791. </Dependent>
  3792. </ReferentialConstraint>
  3793. </Association>
  3794. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  3795. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3796. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3797. <ReferentialConstraint>
  3798. <Principal Role="FmsMaterialCodeClass">
  3799. <PropertyRef Name="SiteId" />
  3800. <PropertyRef Name="MaterialClassId" />
  3801. </Principal>
  3802. <Dependent Role="FmsMaterial">
  3803. <PropertyRef Name="SiteId" />
  3804. <PropertyRef Name="SecondClassId" />
  3805. </Dependent>
  3806. </ReferentialConstraint>
  3807. </Association>
  3808. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  3809. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3810. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3811. <ReferentialConstraint>
  3812. <Principal Role="FmsMaterialCodeClass">
  3813. <PropertyRef Name="SiteId" />
  3814. <PropertyRef Name="MaterialClassId" />
  3815. </Principal>
  3816. <Dependent Role="FmsMaterial">
  3817. <PropertyRef Name="SiteId" />
  3818. <PropertyRef Name="ThirdClassId" />
  3819. </Dependent>
  3820. </ReferentialConstraint>
  3821. </Association>
  3822. <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
  3823. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3824. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  3825. <ReferentialConstraint>
  3826. <Principal Role="CmBusinessField">
  3827. <PropertyRef Name="SiteId" />
  3828. <PropertyRef Name="BusinessFieldId" />
  3829. </Principal>
  3830. <Dependent Role="FmsMaterialCarriedForward">
  3831. <PropertyRef Name="SiteId" />
  3832. <PropertyRef Name="BusinessFieldId" />
  3833. </Dependent>
  3834. </ReferentialConstraint>
  3835. </Association>
  3836. <Association Name="FK__FmsMaterialCarriedForward__CmSite">
  3837. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3838. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  3839. <ReferentialConstraint>
  3840. <Principal Role="CmSite">
  3841. <PropertyRef Name="SiteId" />
  3842. </Principal>
  3843. <Dependent Role="FmsMaterialCarriedForward">
  3844. <PropertyRef Name="SiteId" />
  3845. </Dependent>
  3846. </ReferentialConstraint>
  3847. </Association>
  3848. <Association Name="FK__FmsMaterialCodeClass__CmSite">
  3849. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3850. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3851. <ReferentialConstraint>
  3852. <Principal Role="CmSite">
  3853. <PropertyRef Name="SiteId" />
  3854. </Principal>
  3855. <Dependent Role="FmsMaterialCodeClass">
  3856. <PropertyRef Name="SiteId" />
  3857. </Dependent>
  3858. </ReferentialConstraint>
  3859. </Association>
  3860. <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  3861. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3862. <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3863. <ReferentialConstraint>
  3864. <Principal Role="FmsMaterialCodeClass">
  3865. <PropertyRef Name="SiteId" />
  3866. <PropertyRef Name="MaterialClassId" />
  3867. </Principal>
  3868. <Dependent Role="FmsMaterialCodeClass1">
  3869. <PropertyRef Name="SiteId" />
  3870. <PropertyRef Name="ParentMaterialClassId" />
  3871. </Dependent>
  3872. </ReferentialConstraint>
  3873. </Association>
  3874. <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
  3875. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3876. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  3877. <ReferentialConstraint>
  3878. <Principal Role="CmBusinessField">
  3879. <PropertyRef Name="SiteId" />
  3880. <PropertyRef Name="BusinessFieldId" />
  3881. </Principal>
  3882. <Dependent Role="FmsMaterialCodeLocation">
  3883. <PropertyRef Name="SiteId" />
  3884. <PropertyRef Name="BusinessFieldId" />
  3885. </Dependent>
  3886. </ReferentialConstraint>
  3887. </Association>
  3888. <Association Name="FK__FmsMaterialCodeLocation__CmSite">
  3889. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3890. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  3891. <ReferentialConstraint>
  3892. <Principal Role="CmSite">
  3893. <PropertyRef Name="SiteId" />
  3894. </Principal>
  3895. <Dependent Role="FmsMaterialCodeLocation">
  3896. <PropertyRef Name="SiteId" />
  3897. </Dependent>
  3898. </ReferentialConstraint>
  3899. </Association>
  3900. <Association Name="FK__FmsMaterialCodeType__CmSite">
  3901. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3902. <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="*" />
  3903. <ReferentialConstraint>
  3904. <Principal Role="CmSite">
  3905. <PropertyRef Name="SiteId" />
  3906. </Principal>
  3907. <Dependent Role="FmsMaterialCodeType">
  3908. <PropertyRef Name="SiteId" />
  3909. </Dependent>
  3910. </ReferentialConstraint>
  3911. </Association>
  3912. <Association Name="FK__FmsMaterialOrder__CmBusinessField">
  3913. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3914. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3915. <ReferentialConstraint>
  3916. <Principal Role="CmBusinessField">
  3917. <PropertyRef Name="SiteId" />
  3918. <PropertyRef Name="BusinessFieldId" />
  3919. </Principal>
  3920. <Dependent Role="FmsMaterialPurchaseOrder">
  3921. <PropertyRef Name="SiteId" />
  3922. <PropertyRef Name="BusinessFieldId" />
  3923. </Dependent>
  3924. </ReferentialConstraint>
  3925. </Association>
  3926. <Association Name="FK__FmsMaterialOrder__CmSite">
  3927. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3928. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3929. <ReferentialConstraint>
  3930. <Principal Role="CmSite">
  3931. <PropertyRef Name="SiteId" />
  3932. </Principal>
  3933. <Dependent Role="FmsMaterialPurchaseOrder">
  3934. <PropertyRef Name="SiteId" />
  3935. </Dependent>
  3936. </ReferentialConstraint>
  3937. </Association>
  3938. <Association Name="FK__FmsMaterialOrder__CmUser">
  3939. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3940. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3941. <ReferentialConstraint>
  3942. <Principal Role="CmUser">
  3943. <PropertyRef Name="SiteId" />
  3944. <PropertyRef Name="UserId" />
  3945. </Principal>
  3946. <Dependent Role="FmsMaterialPurchaseOrder">
  3947. <PropertyRef Name="SiteId" />
  3948. <PropertyRef Name="OrderUserId" />
  3949. </Dependent>
  3950. </ReferentialConstraint>
  3951. </Association>
  3952. <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
  3953. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  3954. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3955. <ReferentialConstraint>
  3956. <Principal Role="CmFile">
  3957. <PropertyRef Name="SiteId" />
  3958. <PropertyRef Name="FileId" />
  3959. </Principal>
  3960. <Dependent Role="FmsMaterialPurchaseOrder">
  3961. <PropertyRef Name="SiteId" />
  3962. <PropertyRef Name="FileId" />
  3963. </Dependent>
  3964. </ReferentialConstraint>
  3965. </Association>
  3966. <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  3967. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  3968. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3969. <ReferentialConstraint>
  3970. <Principal Role="FmsMaterialTradeCompany">
  3971. <PropertyRef Name="SiteId" />
  3972. <PropertyRef Name="TradeCompanyId" />
  3973. </Principal>
  3974. <Dependent Role="FmsMaterialPurchaseOrder">
  3975. <PropertyRef Name="SiteId" />
  3976. <PropertyRef Name="TradeCompanyId" />
  3977. </Dependent>
  3978. </ReferentialConstraint>
  3979. </Association>
  3980. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  3981. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3982. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3983. <ReferentialConstraint>
  3984. <Principal Role="CmUser">
  3985. <PropertyRef Name="SiteId" />
  3986. <PropertyRef Name="UserId" />
  3987. </Principal>
  3988. <Dependent Role="FmsMaterialPurchaseRequest">
  3989. <PropertyRef Name="SiteId" />
  3990. <PropertyRef Name="RequestUserId" />
  3991. </Dependent>
  3992. </ReferentialConstraint>
  3993. </Association>
  3994. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  3995. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  3996. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3997. <ReferentialConstraint>
  3998. <Principal Role="CmUser">
  3999. <PropertyRef Name="SiteId" />
  4000. <PropertyRef Name="UserId" />
  4001. </Principal>
  4002. <Dependent Role="FmsMaterialPurchaseRequest">
  4003. <PropertyRef Name="SiteId" />
  4004. <PropertyRef Name="ApprovalUserId" />
  4005. </Dependent>
  4006. </ReferentialConstraint>
  4007. </Association>
  4008. <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
  4009. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4010. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4011. <ReferentialConstraint>
  4012. <Principal Role="CmBusinessField">
  4013. <PropertyRef Name="SiteId" />
  4014. <PropertyRef Name="BusinessFieldId" />
  4015. </Principal>
  4016. <Dependent Role="FmsMaterialPurchaseRequest">
  4017. <PropertyRef Name="SiteId" />
  4018. <PropertyRef Name="BusinessFieldId" />
  4019. </Dependent>
  4020. </ReferentialConstraint>
  4021. </Association>
  4022. <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
  4023. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4024. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4025. <ReferentialConstraint>
  4026. <Principal Role="CmSite">
  4027. <PropertyRef Name="SiteId" />
  4028. </Principal>
  4029. <Dependent Role="FmsMaterialPurchaseRequest">
  4030. <PropertyRef Name="SiteId" />
  4031. </Dependent>
  4032. </ReferentialConstraint>
  4033. </Association>
  4034. <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  4035. <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
  4036. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4037. <ReferentialConstraint>
  4038. <Principal Role="FmsMaterialCodeProgress">
  4039. <PropertyRef Name="ProgressId" />
  4040. </Principal>
  4041. <Dependent Role="FmsMaterialPurchaseRequest">
  4042. <PropertyRef Name="ProgressId" />
  4043. </Dependent>
  4044. </ReferentialConstraint>
  4045. </Association>
  4046. <Association Name="FK__FmsMaterialStored__CmBusinessField">
  4047. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4048. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4049. <ReferentialConstraint>
  4050. <Principal Role="CmBusinessField">
  4051. <PropertyRef Name="SiteId" />
  4052. <PropertyRef Name="BusinessFieldId" />
  4053. </Principal>
  4054. <Dependent Role="FmsMaterialStored">
  4055. <PropertyRef Name="SiteId" />
  4056. <PropertyRef Name="BusinessFieldId" />
  4057. </Dependent>
  4058. </ReferentialConstraint>
  4059. </Association>
  4060. <Association Name="FK__FmsMaterialStored__CmSite">
  4061. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4062. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4063. <ReferentialConstraint>
  4064. <Principal Role="CmSite">
  4065. <PropertyRef Name="SiteId" />
  4066. </Principal>
  4067. <Dependent Role="FmsMaterialStored">
  4068. <PropertyRef Name="SiteId" />
  4069. </Dependent>
  4070. </ReferentialConstraint>
  4071. </Association>
  4072. <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
  4073. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4074. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4075. <ReferentialConstraint>
  4076. <Principal Role="CmUser">
  4077. <PropertyRef Name="SiteId" />
  4078. <PropertyRef Name="UserId" />
  4079. </Principal>
  4080. <Dependent Role="FmsMaterialStored">
  4081. <PropertyRef Name="SiteId" />
  4082. <PropertyRef Name="StoredUserId" />
  4083. </Dependent>
  4084. </ReferentialConstraint>
  4085. </Association>
  4086. <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  4087. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4088. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4089. <ReferentialConstraint>
  4090. <Principal Role="CmUser">
  4091. <PropertyRef Name="SiteId" />
  4092. <PropertyRef Name="UserId" />
  4093. </Principal>
  4094. <Dependent Role="FmsMaterialStored">
  4095. <PropertyRef Name="SiteId" />
  4096. <PropertyRef Name="ApprovalUserId" />
  4097. </Dependent>
  4098. </ReferentialConstraint>
  4099. </Association>
  4100. <Association Name="FK__FmsMaterialTradeCompany__CmSite">
  4101. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4102. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="*" />
  4103. <ReferentialConstraint>
  4104. <Principal Role="CmSite">
  4105. <PropertyRef Name="SiteId" />
  4106. </Principal>
  4107. <Dependent Role="FmsMaterialTradeCompany">
  4108. <PropertyRef Name="SiteId" />
  4109. </Dependent>
  4110. </ReferentialConstraint>
  4111. </Association>
  4112. <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
  4113. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4114. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  4115. <ReferentialConstraint>
  4116. <Principal Role="CmBusinessField">
  4117. <PropertyRef Name="SiteId" />
  4118. <PropertyRef Name="BusinessFieldId" />
  4119. </Principal>
  4120. <Dependent Role="FmsMaterialWarehouse">
  4121. <PropertyRef Name="SiteId" />
  4122. <PropertyRef Name="BusinessFieldId" />
  4123. </Dependent>
  4124. </ReferentialConstraint>
  4125. </Association>
  4126. <Association Name="FK__FmsMaterialWarehouse__CmSite">
  4127. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4128. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  4129. <ReferentialConstraint>
  4130. <Principal Role="CmSite">
  4131. <PropertyRef Name="SiteId" />
  4132. </Principal>
  4133. <Dependent Role="FmsMaterialWarehouse">
  4134. <PropertyRef Name="SiteId" />
  4135. </Dependent>
  4136. </ReferentialConstraint>
  4137. </Association>
  4138. <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
  4139. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4140. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="*" />
  4141. <ReferentialConstraint>
  4142. <Principal Role="CmSite">
  4143. <PropertyRef Name="SiteId" />
  4144. </Principal>
  4145. <Dependent Role="FmsWorkCodeCauseClass">
  4146. <PropertyRef Name="SiteId" />
  4147. </Dependent>
  4148. </ReferentialConstraint>
  4149. </Association>
  4150. <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
  4151. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4152. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="*" />
  4153. <ReferentialConstraint>
  4154. <Principal Role="CmSite">
  4155. <PropertyRef Name="SiteId" />
  4156. </Principal>
  4157. <Dependent Role="FmsWorkCodeCycleUnit">
  4158. <PropertyRef Name="SiteId" />
  4159. </Dependent>
  4160. </ReferentialConstraint>
  4161. </Association>
  4162. <Association Name="FK__FmsWorkCodeEmergency__CmSite">
  4163. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4164. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="*" />
  4165. <ReferentialConstraint>
  4166. <Principal Role="CmSite">
  4167. <PropertyRef Name="SiteId" />
  4168. </Principal>
  4169. <Dependent Role="FmsWorkCodeEmergency">
  4170. <PropertyRef Name="SiteId" />
  4171. </Dependent>
  4172. </ReferentialConstraint>
  4173. </Association>
  4174. <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
  4175. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4176. <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="*" />
  4177. <ReferentialConstraint>
  4178. <Principal Role="CmSite">
  4179. <PropertyRef Name="SiteId" />
  4180. </Principal>
  4181. <Dependent Role="FmsWorkCodeHolidayWorkType">
  4182. <PropertyRef Name="SiteId" />
  4183. </Dependent>
  4184. </ReferentialConstraint>
  4185. </Association>
  4186. <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  4187. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4188. <End Role="FmsWorkCodeLegalInspectionAgency" Type="Self.FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
  4189. <ReferentialConstraint>
  4190. <Principal Role="CmSite">
  4191. <PropertyRef Name="SiteId" />
  4192. </Principal>
  4193. <Dependent Role="FmsWorkCodeLegalInspectionAgency">
  4194. <PropertyRef Name="SiteId" />
  4195. </Dependent>
  4196. </ReferentialConstraint>
  4197. </Association>
  4198. <Association Name="FK__FmsWorkOrder__CmBusinessField">
  4199. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4200. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4201. <ReferentialConstraint>
  4202. <Principal Role="CmBusinessField">
  4203. <PropertyRef Name="SiteId" />
  4204. <PropertyRef Name="BusinessFieldId" />
  4205. </Principal>
  4206. <Dependent Role="FmsWorkOrder">
  4207. <PropertyRef Name="SiteId" />
  4208. <PropertyRef Name="BusinessFieldId" />
  4209. </Dependent>
  4210. </ReferentialConstraint>
  4211. </Association>
  4212. <Association Name="FK__FmsWorkOrder__CmSite">
  4213. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4214. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4215. <ReferentialConstraint>
  4216. <Principal Role="CmSite">
  4217. <PropertyRef Name="SiteId" />
  4218. </Principal>
  4219. <Dependent Role="FmsWorkOrder">
  4220. <PropertyRef Name="SiteId" />
  4221. </Dependent>
  4222. </ReferentialConstraint>
  4223. </Association>
  4224. <Association Name="FK__FmsWorkOrder__CmUser">
  4225. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4226. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4227. <ReferentialConstraint>
  4228. <Principal Role="CmUser">
  4229. <PropertyRef Name="SiteId" />
  4230. <PropertyRef Name="UserId" />
  4231. </Principal>
  4232. <Dependent Role="FmsWorkOrder">
  4233. <PropertyRef Name="SiteId" />
  4234. <PropertyRef Name="OrderUserId" />
  4235. </Dependent>
  4236. </ReferentialConstraint>
  4237. </Association>
  4238. <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
  4239. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
  4240. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4241. <ReferentialConstraint>
  4242. <Principal Role="FmsWorkCodeEmergency">
  4243. <PropertyRef Name="SiteId" />
  4244. <PropertyRef Name="EmergencyId" />
  4245. </Principal>
  4246. <Dependent Role="FmsWorkOrder">
  4247. <PropertyRef Name="SiteId" />
  4248. <PropertyRef Name="EmergencyId" />
  4249. </Dependent>
  4250. </ReferentialConstraint>
  4251. </Association>
  4252. <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
  4253. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  4254. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
  4255. <ReferentialConstraint>
  4256. <Principal Role="FmsWorkRequest">
  4257. <PropertyRef Name="SiteId" />
  4258. <PropertyRef Name="WorkRequestId" />
  4259. </Principal>
  4260. <Dependent Role="FmsWorkOrder">
  4261. <PropertyRef Name="SiteId" />
  4262. <PropertyRef Name="WorkRequestId" />
  4263. </Dependent>
  4264. </ReferentialConstraint>
  4265. </Association>
  4266. <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
  4267. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
  4268. <OnDelete Action="Cascade" />
  4269. </End>
  4270. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  4271. <ReferentialConstraint>
  4272. <Principal Role="FmsWorkOrder">
  4273. <PropertyRef Name="SiteId" />
  4274. <PropertyRef Name="WorkRequestId" />
  4275. </Principal>
  4276. <Dependent Role="FmsWorkOrderToFacility">
  4277. <PropertyRef Name="SiteId" />
  4278. <PropertyRef Name="WorkRequestId" />
  4279. </Dependent>
  4280. </ReferentialConstraint>
  4281. </Association>
  4282. <Association Name="FK__FmsWorkRequest__CmBusinessField">
  4283. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4284. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4285. <ReferentialConstraint>
  4286. <Principal Role="CmBusinessField">
  4287. <PropertyRef Name="SiteId" />
  4288. <PropertyRef Name="BusinessFieldId" />
  4289. </Principal>
  4290. <Dependent Role="FmsWorkRequest">
  4291. <PropertyRef Name="SiteId" />
  4292. <PropertyRef Name="BusinessFieldId" />
  4293. </Dependent>
  4294. </ReferentialConstraint>
  4295. </Association>
  4296. <Association Name="FK__FmsWorkRequest__CmSite">
  4297. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4298. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4299. <ReferentialConstraint>
  4300. <Principal Role="CmSite">
  4301. <PropertyRef Name="SiteId" />
  4302. </Principal>
  4303. <Dependent Role="FmsWorkRequest">
  4304. <PropertyRef Name="SiteId" />
  4305. </Dependent>
  4306. </ReferentialConstraint>
  4307. </Association>
  4308. <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
  4309. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4310. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4311. <ReferentialConstraint>
  4312. <Principal Role="CmUser">
  4313. <PropertyRef Name="SiteId" />
  4314. <PropertyRef Name="UserId" />
  4315. </Principal>
  4316. <Dependent Role="FmsWorkRequest">
  4317. <PropertyRef Name="SiteId" />
  4318. <PropertyRef Name="RequestUserId" />
  4319. </Dependent>
  4320. </ReferentialConstraint>
  4321. </Association>
  4322. <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  4323. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4324. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4325. <ReferentialConstraint>
  4326. <Principal Role="CmUser">
  4327. <PropertyRef Name="SiteId" />
  4328. <PropertyRef Name="UserId" />
  4329. </Principal>
  4330. <Dependent Role="FmsWorkRequest">
  4331. <PropertyRef Name="SiteId" />
  4332. <PropertyRef Name="RejectUserId" />
  4333. </Dependent>
  4334. </ReferentialConstraint>
  4335. </Association>
  4336. <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
  4337. <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
  4338. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4339. <ReferentialConstraint>
  4340. <Principal Role="FmsWorkCodeProgress">
  4341. <PropertyRef Name="WorkProgressId" />
  4342. </Principal>
  4343. <Dependent Role="FmsWorkRequest">
  4344. <PropertyRef Name="WorkProgressId" />
  4345. </Dependent>
  4346. </ReferentialConstraint>
  4347. </Association>
  4348. <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
  4349. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  4350. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4351. <ReferentialConstraint>
  4352. <Principal Role="FmsWorkCodeType">
  4353. <PropertyRef Name="WorkTypeId" />
  4354. </Principal>
  4355. <Dependent Role="FmsWorkRequest">
  4356. <PropertyRef Name="WorkTypeId" />
  4357. </Dependent>
  4358. </ReferentialConstraint>
  4359. </Association>
  4360. <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
  4361. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="0..1" />
  4362. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4363. <ReferentialConstraint>
  4364. <Principal Role="FmsWorkSchedule">
  4365. <PropertyRef Name="SiteId" />
  4366. <PropertyRef Name="WorkScheduleId" />
  4367. </Principal>
  4368. <Dependent Role="FmsWorkRequest">
  4369. <PropertyRef Name="SiteId" />
  4370. <PropertyRef Name="WorkScheduleId" />
  4371. </Dependent>
  4372. </ReferentialConstraint>
  4373. </Association>
  4374. <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
  4375. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
  4376. <OnDelete Action="Cascade" />
  4377. </End>
  4378. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  4379. <ReferentialConstraint>
  4380. <Principal Role="FmsWorkRequest">
  4381. <PropertyRef Name="SiteId" />
  4382. <PropertyRef Name="WorkRequestId" />
  4383. </Principal>
  4384. <Dependent Role="FmsWorkRequestToFacility">
  4385. <PropertyRef Name="SiteId" />
  4386. <PropertyRef Name="WorkRequestId" />
  4387. </Dependent>
  4388. </ReferentialConstraint>
  4389. </Association>
  4390. <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
  4391. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4392. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4393. <ReferentialConstraint>
  4394. <Principal Role="CmUser">
  4395. <PropertyRef Name="SiteId" />
  4396. <PropertyRef Name="UserId" />
  4397. </Principal>
  4398. <Dependent Role="FmsWorkResult">
  4399. <PropertyRef Name="SiteId" />
  4400. <PropertyRef Name="WorkerUserId" />
  4401. </Dependent>
  4402. </ReferentialConstraint>
  4403. </Association>
  4404. <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  4405. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4406. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4407. <ReferentialConstraint>
  4408. <Principal Role="CmUser">
  4409. <PropertyRef Name="SiteId" />
  4410. <PropertyRef Name="UserId" />
  4411. </Principal>
  4412. <Dependent Role="FmsWorkResult">
  4413. <PropertyRef Name="SiteId" />
  4414. <PropertyRef Name="ConfirmedUserId" />
  4415. </Dependent>
  4416. </ReferentialConstraint>
  4417. </Association>
  4418. <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
  4419. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
  4420. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4421. <ReferentialConstraint>
  4422. <Principal Role="FmsWorkCodeCauseClass">
  4423. <PropertyRef Name="SiteId" />
  4424. <PropertyRef Name="CauseClassId" />
  4425. </Principal>
  4426. <Dependent Role="FmsWorkResult">
  4427. <PropertyRef Name="SiteId" />
  4428. <PropertyRef Name="CauseClassId" />
  4429. </Dependent>
  4430. </ReferentialConstraint>
  4431. </Association>
  4432. <Association Name="FK__FmsWorkResult__FmsWorkOrder">
  4433. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
  4434. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  4435. <ReferentialConstraint>
  4436. <Principal Role="FmsWorkOrder">
  4437. <PropertyRef Name="SiteId" />
  4438. <PropertyRef Name="WorkRequestId" />
  4439. </Principal>
  4440. <Dependent Role="FmsWorkResult">
  4441. <PropertyRef Name="SiteId" />
  4442. <PropertyRef Name="WorkRequestId" />
  4443. </Dependent>
  4444. </ReferentialConstraint>
  4445. </Association>
  4446. <Association Name="FK__FmsWorkResult__FmsWorkRequest">
  4447. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  4448. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  4449. <ReferentialConstraint>
  4450. <Principal Role="FmsWorkRequest">
  4451. <PropertyRef Name="SiteId" />
  4452. <PropertyRef Name="WorkRequestId" />
  4453. </Principal>
  4454. <Dependent Role="FmsWorkResult">
  4455. <PropertyRef Name="SiteId" />
  4456. <PropertyRef Name="WorkRequestId" />
  4457. </Dependent>
  4458. </ReferentialConstraint>
  4459. </Association>
  4460. <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
  4461. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
  4462. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4463. <ReferentialConstraint>
  4464. <Principal Role="CmFacility">
  4465. <PropertyRef Name="SiteId" />
  4466. <PropertyRef Name="FacilityCode" />
  4467. </Principal>
  4468. <Dependent Role="FmsWorkResultCheckItem">
  4469. <PropertyRef Name="SiteId" />
  4470. <PropertyRef Name="FacilityCode" />
  4471. </Dependent>
  4472. </ReferentialConstraint>
  4473. </Association>
  4474. <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  4475. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
  4476. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4477. <ReferentialConstraint>
  4478. <Principal Role="FmsFacilityCheckItem">
  4479. <PropertyRef Name="SiteId" />
  4480. <PropertyRef Name="FacilityCode" />
  4481. <PropertyRef Name="CheckItemId" />
  4482. </Principal>
  4483. <Dependent Role="FmsWorkResultCheckItem">
  4484. <PropertyRef Name="SiteId" />
  4485. <PropertyRef Name="FacilityCode" />
  4486. <PropertyRef Name="CheckItemId" />
  4487. </Dependent>
  4488. </ReferentialConstraint>
  4489. </Association>
  4490. <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
  4491. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  4492. <OnDelete Action="Cascade" />
  4493. </End>
  4494. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4495. <ReferentialConstraint>
  4496. <Principal Role="FmsWorkResult">
  4497. <PropertyRef Name="SiteId" />
  4498. <PropertyRef Name="WorkRequestId" />
  4499. </Principal>
  4500. <Dependent Role="FmsWorkResultCheckItem">
  4501. <PropertyRef Name="SiteId" />
  4502. <PropertyRef Name="WorkRequestId" />
  4503. </Dependent>
  4504. </ReferentialConstraint>
  4505. </Association>
  4506. <Association Name="FK__FmsWorkResultFile__CmFile">
  4507. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  4508. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
  4509. <ReferentialConstraint>
  4510. <Principal Role="CmFile">
  4511. <PropertyRef Name="SiteId" />
  4512. <PropertyRef Name="FileId" />
  4513. </Principal>
  4514. <Dependent Role="FmsWorkResultFile">
  4515. <PropertyRef Name="SiteId" />
  4516. <PropertyRef Name="FileId" />
  4517. </Dependent>
  4518. </ReferentialConstraint>
  4519. </Association>
  4520. <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
  4521. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  4522. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
  4523. <ReferentialConstraint>
  4524. <Principal Role="FmsWorkResult">
  4525. <PropertyRef Name="SiteId" />
  4526. <PropertyRef Name="WorkRequestId" />
  4527. </Principal>
  4528. <Dependent Role="FmsWorkResultFile">
  4529. <PropertyRef Name="SiteId" />
  4530. <PropertyRef Name="WorkRequestId" />
  4531. </Dependent>
  4532. </ReferentialConstraint>
  4533. </Association>
  4534. <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
  4535. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  4536. <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
  4537. <ReferentialConstraint>
  4538. <Principal Role="FmsWorkResult">
  4539. <PropertyRef Name="SiteId" />
  4540. <PropertyRef Name="WorkRequestId" />
  4541. </Principal>
  4542. <Dependent Role="FmsWorkResultLaw">
  4543. <PropertyRef Name="SiteId" />
  4544. <PropertyRef Name="WorkRequestId" />
  4545. </Dependent>
  4546. </ReferentialConstraint>
  4547. </Association>
  4548. <Association Name="FK__FmsWorkResultToFacility__CmFacility">
  4549. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4550. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  4551. <ReferentialConstraint>
  4552. <Principal Role="CmFacility">
  4553. <PropertyRef Name="SiteId" />
  4554. <PropertyRef Name="FacilityCode" />
  4555. </Principal>
  4556. <Dependent Role="FmsWorkResultToFacility">
  4557. <PropertyRef Name="SiteId" />
  4558. <PropertyRef Name="FacilityCode" />
  4559. </Dependent>
  4560. </ReferentialConstraint>
  4561. </Association>
  4562. <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
  4563. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  4564. <OnDelete Action="Cascade" />
  4565. </End>
  4566. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  4567. <ReferentialConstraint>
  4568. <Principal Role="FmsWorkResult">
  4569. <PropertyRef Name="SiteId" />
  4570. <PropertyRef Name="WorkRequestId" />
  4571. </Principal>
  4572. <Dependent Role="FmsWorkResultToFacility">
  4573. <PropertyRef Name="SiteId" />
  4574. <PropertyRef Name="WorkRequestId" />
  4575. </Dependent>
  4576. </ReferentialConstraint>
  4577. </Association>
  4578. <Association Name="FK__FmsWorkSchedule__CmBusinessField">
  4579. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4580. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4581. <ReferentialConstraint>
  4582. <Principal Role="CmBusinessField">
  4583. <PropertyRef Name="SiteId" />
  4584. <PropertyRef Name="BusinessFieldId" />
  4585. </Principal>
  4586. <Dependent Role="FmsWorkSchedule">
  4587. <PropertyRef Name="SiteId" />
  4588. <PropertyRef Name="BusinessFieldId" />
  4589. </Dependent>
  4590. </ReferentialConstraint>
  4591. </Association>
  4592. <Association Name="FK__FmsWorkSchedule__CmUser">
  4593. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4594. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4595. <ReferentialConstraint>
  4596. <Principal Role="CmUser">
  4597. <PropertyRef Name="SiteId" />
  4598. <PropertyRef Name="UserId" />
  4599. </Principal>
  4600. <Dependent Role="FmsWorkSchedule">
  4601. <PropertyRef Name="SiteId" />
  4602. <PropertyRef Name="UpdateUserId" />
  4603. </Dependent>
  4604. </ReferentialConstraint>
  4605. </Association>
  4606. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  4607. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  4608. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4609. <ReferentialConstraint>
  4610. <Principal Role="FmsWorkCodeCycleUnit">
  4611. <PropertyRef Name="SiteId" />
  4612. <PropertyRef Name="CycleUnitId" />
  4613. </Principal>
  4614. <Dependent Role="FmsWorkSchedule">
  4615. <PropertyRef Name="SiteId" />
  4616. <PropertyRef Name="CycleUnitId" />
  4617. </Dependent>
  4618. </ReferentialConstraint>
  4619. </Association>
  4620. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  4621. <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="1" />
  4622. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4623. <ReferentialConstraint>
  4624. <Principal Role="FmsWorkCodeHolidayWorkType">
  4625. <PropertyRef Name="SiteId" />
  4626. <PropertyRef Name="HolidayWorkTypeId" />
  4627. </Principal>
  4628. <Dependent Role="FmsWorkSchedule">
  4629. <PropertyRef Name="SiteId" />
  4630. <PropertyRef Name="HolidayWorkTypeId" />
  4631. </Dependent>
  4632. </ReferentialConstraint>
  4633. </Association>
  4634. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  4635. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  4636. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4637. <ReferentialConstraint>
  4638. <Principal Role="FmsWorkCodeType">
  4639. <PropertyRef Name="WorkTypeId" />
  4640. </Principal>
  4641. <Dependent Role="FmsWorkSchedule">
  4642. <PropertyRef Name="WorkTypeId" />
  4643. </Dependent>
  4644. </ReferentialConstraint>
  4645. </Association>
  4646. <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  4647. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="1" />
  4648. <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
  4649. <ReferentialConstraint>
  4650. <Principal Role="FmsWorkSchedule">
  4651. <PropertyRef Name="SiteId" />
  4652. <PropertyRef Name="WorkScheduleId" />
  4653. </Principal>
  4654. <Dependent Role="FmsWorkScheduleToFacility">
  4655. <PropertyRef Name="SiteId" />
  4656. <PropertyRef Name="WorkScheduleId" />
  4657. </Dependent>
  4658. </ReferentialConstraint>
  4659. </Association>
  4660. <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
  4661. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="1" />
  4662. <End Role="BemsAlarmLog" Type="Self.BemsAlarmLog" Multiplicity="*" />
  4663. <ReferentialConstraint>
  4664. <Principal Role="BemsAlarmSetting">
  4665. <PropertyRef Name="SiteId" />
  4666. <PropertyRef Name="FacilityTypeId" />
  4667. <PropertyRef Name="FacilityCode" />
  4668. <PropertyRef Name="PropertyId" />
  4669. <PropertyRef Name="FormulaId" />
  4670. </Principal>
  4671. <Dependent Role="BemsAlarmLog">
  4672. <PropertyRef Name="SiteId" />
  4673. <PropertyRef Name="FacilityTypeId" />
  4674. <PropertyRef Name="FacilityCode" />
  4675. <PropertyRef Name="PropertyId" />
  4676. <PropertyRef Name="FormulaId" />
  4677. </Dependent>
  4678. </ReferentialConstraint>
  4679. </Association>
  4680. <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
  4681. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4682. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4683. <ReferentialConstraint>
  4684. <Principal Role="BemsFacilityType">
  4685. <PropertyRef Name="FacilityTypeId" />
  4686. </Principal>
  4687. <Dependent Role="BemsAlarmSetting">
  4688. <PropertyRef Name="FacilityTypeId" />
  4689. </Dependent>
  4690. </ReferentialConstraint>
  4691. </Association>
  4692. <Association Name="FK_BemsAlarmSetting_CmFacility">
  4693. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4694. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4695. <ReferentialConstraint>
  4696. <Principal Role="CmFacility">
  4697. <PropertyRef Name="SiteId" />
  4698. <PropertyRef Name="FacilityCode" />
  4699. </Principal>
  4700. <Dependent Role="BemsAlarmSetting">
  4701. <PropertyRef Name="SiteId" />
  4702. <PropertyRef Name="FacilityCode" />
  4703. </Dependent>
  4704. </ReferentialConstraint>
  4705. </Association>
  4706. <Association Name="FK_BemsAlarmSetting_CmSite1">
  4707. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4708. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4709. <ReferentialConstraint>
  4710. <Principal Role="CmSite">
  4711. <PropertyRef Name="SiteId" />
  4712. </Principal>
  4713. <Dependent Role="BemsAlarmSetting">
  4714. <PropertyRef Name="SiteId" />
  4715. </Dependent>
  4716. </ReferentialConstraint>
  4717. </Association>
  4718. <Association Name="FK_BemsChartInfo_BemsFacilityType">
  4719. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4720. <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
  4721. <ReferentialConstraint>
  4722. <Principal Role="BemsFacilityType">
  4723. <PropertyRef Name="FacilityTypeId" />
  4724. </Principal>
  4725. <Dependent Role="BemsChartInfo">
  4726. <PropertyRef Name="FacilityTypeId" />
  4727. </Dependent>
  4728. </ReferentialConstraint>
  4729. </Association>
  4730. <Association Name="FK_BemsChartInfo_CmSite">
  4731. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4732. <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
  4733. <ReferentialConstraint>
  4734. <Principal Role="CmSite">
  4735. <PropertyRef Name="SiteId" />
  4736. </Principal>
  4737. <Dependent Role="BemsChartInfo">
  4738. <PropertyRef Name="SiteId" />
  4739. </Dependent>
  4740. </ReferentialConstraint>
  4741. </Association>
  4742. <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
  4743. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4744. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  4745. <ReferentialConstraint>
  4746. <Principal Role="BemsFacilityType">
  4747. <PropertyRef Name="FacilityTypeId" />
  4748. </Principal>
  4749. <Dependent Role="BemsControlPointHistory">
  4750. <PropertyRef Name="FacilityTypeId" />
  4751. </Dependent>
  4752. </ReferentialConstraint>
  4753. </Association>
  4754. <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
  4755. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  4756. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  4757. <ReferentialConstraint>
  4758. <Principal Role="BemsMonitoringPoint">
  4759. <PropertyRef Name="SiteId" />
  4760. <PropertyRef Name="FacilityCode" />
  4761. <PropertyRef Name="PropertyId" />
  4762. </Principal>
  4763. <Dependent Role="BemsControlPointHistory">
  4764. <PropertyRef Name="SiteId" />
  4765. <PropertyRef Name="FacilityCode" />
  4766. <PropertyRef Name="PropertyId" />
  4767. </Dependent>
  4768. </ReferentialConstraint>
  4769. </Association>
  4770. <Association Name="FK_BemsEnergyCost_CmFacility">
  4771. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4772. <End Role="BemsEnergyCost" Type="Self.BemsEnergyCost" Multiplicity="0..1" />
  4773. <ReferentialConstraint>
  4774. <Principal Role="CmFacility">
  4775. <PropertyRef Name="SiteId" />
  4776. <PropertyRef Name="FacilityCode" />
  4777. </Principal>
  4778. <Dependent Role="BemsEnergyCost">
  4779. <PropertyRef Name="SiteId" />
  4780. <PropertyRef Name="FacilityCode" />
  4781. </Dependent>
  4782. </ReferentialConstraint>
  4783. </Association>
  4784. <Association Name="FK_BemsEnergyDailyRegression_CmSite">
  4785. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4786. <End Role="BemsEnergyDailyRegression" Type="Self.BemsEnergyDailyRegression" Multiplicity="0..1" />
  4787. <ReferentialConstraint>
  4788. <Principal Role="CmSite">
  4789. <PropertyRef Name="SiteId" />
  4790. </Principal>
  4791. <Dependent Role="BemsEnergyDailyRegression">
  4792. <PropertyRef Name="SiteId" />
  4793. </Dependent>
  4794. </ReferentialConstraint>
  4795. </Association>
  4796. <Association Name="FK_BemsFormulaParameter_CmFacility">
  4797. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4798. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  4799. <ReferentialConstraint>
  4800. <Principal Role="CmFacility">
  4801. <PropertyRef Name="SiteId" />
  4802. <PropertyRef Name="FacilityCode" />
  4803. </Principal>
  4804. <Dependent Role="BemsFormulaParameter">
  4805. <PropertyRef Name="SiteId" />
  4806. <PropertyRef Name="FacilityCode" />
  4807. </Dependent>
  4808. </ReferentialConstraint>
  4809. </Association>
  4810. <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
  4811. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4812. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  4813. <ReferentialConstraint>
  4814. <Principal Role="BemsFacilityType">
  4815. <PropertyRef Name="FacilityTypeId" />
  4816. </Principal>
  4817. <Dependent Role="BemsMonitoringPoint">
  4818. <PropertyRef Name="FacilityTypeId" />
  4819. </Dependent>
  4820. </ReferentialConstraint>
  4821. </Association>
  4822. <Association Name="FK_BemsMonitoringPoint_CmFacility">
  4823. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4824. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  4825. <ReferentialConstraint>
  4826. <Principal Role="CmFacility">
  4827. <PropertyRef Name="SiteId" />
  4828. <PropertyRef Name="FacilityCode" />
  4829. </Principal>
  4830. <Dependent Role="BemsMonitoringPoint">
  4831. <PropertyRef Name="SiteId" />
  4832. <PropertyRef Name="FacilityCode" />
  4833. </Dependent>
  4834. </ReferentialConstraint>
  4835. </Association>
  4836. <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
  4837. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4838. <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="*" />
  4839. <ReferentialConstraint>
  4840. <Principal Role="BemsFacilityType">
  4841. <PropertyRef Name="FacilityTypeId" />
  4842. </Principal>
  4843. <Dependent Role="BemsMonitoringPointConfig">
  4844. <PropertyRef Name="FacilityTypeId" />
  4845. </Dependent>
  4846. </ReferentialConstraint>
  4847. </Association>
  4848. <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  4849. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  4850. <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="0..1" />
  4851. <ReferentialConstraint>
  4852. <Principal Role="BemsMonitoringPoint">
  4853. <PropertyRef Name="SiteId" />
  4854. <PropertyRef Name="FacilityCode" />
  4855. <PropertyRef Name="PropertyId" />
  4856. </Principal>
  4857. <Dependent Role="BemsMonitoringPointConfig">
  4858. <PropertyRef Name="SiteId" />
  4859. <PropertyRef Name="FacilityCode" />
  4860. <PropertyRef Name="PropertyId" />
  4861. </Dependent>
  4862. </ReferentialConstraint>
  4863. </Association>
  4864. <Association Name="FK_BemsPeakFacility_CmFacility">
  4865. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4866. <End Role="BemsPeakFacility" Type="Self.BemsPeakFacility" Multiplicity="*" />
  4867. <ReferentialConstraint>
  4868. <Principal Role="CmFacility">
  4869. <PropertyRef Name="SiteId" />
  4870. <PropertyRef Name="FacilityCode" />
  4871. </Principal>
  4872. <Dependent Role="BemsPeakFacility">
  4873. <PropertyRef Name="SiteId" />
  4874. <PropertyRef Name="FacilityCode" />
  4875. </Dependent>
  4876. </ReferentialConstraint>
  4877. </Association>
  4878. <Association Name="FK_BemsPeakHIstory_CmSite">
  4879. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4880. <End Role="BemsPeakHistory" Type="Self.BemsPeakHistory" Multiplicity="*" />
  4881. <ReferentialConstraint>
  4882. <Principal Role="CmSite">
  4883. <PropertyRef Name="SiteId" />
  4884. </Principal>
  4885. <Dependent Role="BemsPeakHistory">
  4886. <PropertyRef Name="SiteId" />
  4887. </Dependent>
  4888. </ReferentialConstraint>
  4889. </Association>
  4890. <Association Name="FK_BemsPeakInfo_CmSite">
  4891. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4892. <End Role="BemsPeakInfo" Type="Self.BemsPeakInfo" Multiplicity="0..1" />
  4893. <ReferentialConstraint>
  4894. <Principal Role="CmSite">
  4895. <PropertyRef Name="SiteId" />
  4896. </Principal>
  4897. <Dependent Role="BemsPeakInfo">
  4898. <PropertyRef Name="SiteId" />
  4899. </Dependent>
  4900. </ReferentialConstraint>
  4901. </Association>
  4902. <Association Name="FK_BemsPeopleIncrease_CmSite">
  4903. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4904. <End Role="BemsPeopleIncrease" Type="Self.BemsPeopleIncrease" Multiplicity="*" />
  4905. <ReferentialConstraint>
  4906. <Principal Role="CmSite">
  4907. <PropertyRef Name="SiteId" />
  4908. </Principal>
  4909. <Dependent Role="BemsPeopleIncrease">
  4910. <PropertyRef Name="SiteId" />
  4911. </Dependent>
  4912. </ReferentialConstraint>
  4913. </Association>
  4914. <Association Name="FK_BemsPriceCode_BemsFuelType">
  4915. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4916. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="*" />
  4917. <ReferentialConstraint>
  4918. <Principal Role="BemsFuelType">
  4919. <PropertyRef Name="FuelTypeId" />
  4920. </Principal>
  4921. <Dependent Role="BemsPriceCode">
  4922. <PropertyRef Name="FuelTypeId" />
  4923. </Dependent>
  4924. </ReferentialConstraint>
  4925. </Association>
  4926. <Association Name="FK_BemsPriceFormula_BemsFormula">
  4927. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  4928. <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
  4929. <ReferentialConstraint>
  4930. <Principal Role="BemsFormula">
  4931. <PropertyRef Name="SiteId" />
  4932. <PropertyRef Name="FacilityTypeId" />
  4933. <PropertyRef Name="FacilityCode" />
  4934. <PropertyRef Name="FormulaId" />
  4935. </Principal>
  4936. <Dependent Role="BemsPriceFormula">
  4937. <PropertyRef Name="SiteId" />
  4938. <PropertyRef Name="FacilityTypeId" />
  4939. <PropertyRef Name="FacilityCode" />
  4940. <PropertyRef Name="FormulaId" />
  4941. </Dependent>
  4942. </ReferentialConstraint>
  4943. </Association>
  4944. <Association Name="FK_BemsPriceFormula_BemsPriceType">
  4945. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4946. <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
  4947. <ReferentialConstraint>
  4948. <Principal Role="BemsPriceType">
  4949. <PropertyRef Name="PriceTypeId" />
  4950. </Principal>
  4951. <Dependent Role="BemsPriceFormula">
  4952. <PropertyRef Name="PriceTypeId" />
  4953. </Dependent>
  4954. </ReferentialConstraint>
  4955. </Association>
  4956. <Association Name="FK_BemsPriceMeta_BemsPriceType">
  4957. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4958. <End Role="BemsPriceMeta" Type="Self.BemsPriceMeta" Multiplicity="*" />
  4959. <ReferentialConstraint>
  4960. <Principal Role="BemsPriceType">
  4961. <PropertyRef Name="PriceTypeId" />
  4962. </Principal>
  4963. <Dependent Role="BemsPriceMeta">
  4964. <PropertyRef Name="PriceTypeId" />
  4965. </Dependent>
  4966. </ReferentialConstraint>
  4967. </Association>
  4968. <Association Name="FK_BemsPriceType_BemsFuelType1">
  4969. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4970. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="*" />
  4971. <ReferentialConstraint>
  4972. <Principal Role="BemsFuelType">
  4973. <PropertyRef Name="FuelTypeId" />
  4974. </Principal>
  4975. <Dependent Role="BemsPriceType">
  4976. <PropertyRef Name="FuelTypeId" />
  4977. </Dependent>
  4978. </ReferentialConstraint>
  4979. </Association>
  4980. <Association Name="FK_BemsRentalRate_CmSite">
  4981. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4982. <End Role="BemsRentalRate" Type="Self.BemsRentalRate" Multiplicity="*" />
  4983. <ReferentialConstraint>
  4984. <Principal Role="CmSite">
  4985. <PropertyRef Name="SiteId" />
  4986. </Principal>
  4987. <Dependent Role="BemsRentalRate">
  4988. <PropertyRef Name="SiteId" />
  4989. </Dependent>
  4990. </ReferentialConstraint>
  4991. </Association>
  4992. <Association Name="FK_BemsSitePrice_BemsFuelType">
  4993. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4994. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  4995. <ReferentialConstraint>
  4996. <Principal Role="BemsFuelType">
  4997. <PropertyRef Name="FuelTypeId" />
  4998. </Principal>
  4999. <Dependent Role="BemsSitePrice">
  5000. <PropertyRef Name="FuelTypeId" />
  5001. </Dependent>
  5002. </ReferentialConstraint>
  5003. </Association>
  5004. <Association Name="FK_BemsSitePrice_BemsPriceCode">
  5005. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
  5006. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  5007. <ReferentialConstraint>
  5008. <Principal Role="BemsPriceCode">
  5009. <PropertyRef Name="PriceCode" />
  5010. </Principal>
  5011. <Dependent Role="BemsSitePrice">
  5012. <PropertyRef Name="PriceCode" />
  5013. </Dependent>
  5014. </ReferentialConstraint>
  5015. </Association>
  5016. <Association Name="FK_BemsSitePrice_BemsPriceType">
  5017. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  5018. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  5019. <ReferentialConstraint>
  5020. <Principal Role="BemsPriceType">
  5021. <PropertyRef Name="PriceTypeId" />
  5022. </Principal>
  5023. <Dependent Role="BemsSitePrice">
  5024. <PropertyRef Name="PriceTypeId" />
  5025. </Dependent>
  5026. </ReferentialConstraint>
  5027. </Association>
  5028. <Association Name="FK_BemsSitePrice_CmSite1">
  5029. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5030. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  5031. <ReferentialConstraint>
  5032. <Principal Role="CmSite">
  5033. <PropertyRef Name="SiteId" />
  5034. </Principal>
  5035. <Dependent Role="BemsSitePrice">
  5036. <PropertyRef Name="SiteID" />
  5037. </Dependent>
  5038. </ReferentialConstraint>
  5039. </Association>
  5040. <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
  5041. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  5042. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5043. <ReferentialConstraint>
  5044. <Principal Role="BemsFuelType">
  5045. <PropertyRef Name="FuelTypeId" />
  5046. </Principal>
  5047. <Dependent Role="BemsSitePriceHistory">
  5048. <PropertyRef Name="FuelTypeId" />
  5049. </Dependent>
  5050. </ReferentialConstraint>
  5051. </Association>
  5052. <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
  5053. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
  5054. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5055. <ReferentialConstraint>
  5056. <Principal Role="BemsPriceCode">
  5057. <PropertyRef Name="PriceCode" />
  5058. </Principal>
  5059. <Dependent Role="BemsSitePriceHistory">
  5060. <PropertyRef Name="PriceCode" />
  5061. </Dependent>
  5062. </ReferentialConstraint>
  5063. </Association>
  5064. <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
  5065. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  5066. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5067. <ReferentialConstraint>
  5068. <Principal Role="BemsPriceType">
  5069. <PropertyRef Name="PriceTypeId" />
  5070. </Principal>
  5071. <Dependent Role="BemsSitePriceHistory">
  5072. <PropertyRef Name="PriceTypeId" />
  5073. </Dependent>
  5074. </ReferentialConstraint>
  5075. </Association>
  5076. <Association Name="FK_BemsSitePriceHistory_CmSite">
  5077. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5078. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5079. <ReferentialConstraint>
  5080. <Principal Role="CmSite">
  5081. <PropertyRef Name="SiteId" />
  5082. </Principal>
  5083. <Dependent Role="BemsSitePriceHistory">
  5084. <PropertyRef Name="SiteId" />
  5085. </Dependent>
  5086. </ReferentialConstraint>
  5087. </Association>
  5088. <Association Name="FK_CmAnnouncement_CmBusinessField">
  5089. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  5090. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5091. <ReferentialConstraint>
  5092. <Principal Role="CmBusinessField">
  5093. <PropertyRef Name="SiteId" />
  5094. <PropertyRef Name="BusinessFieldId" />
  5095. </Principal>
  5096. <Dependent Role="CmAnnouncement">
  5097. <PropertyRef Name="SiteId" />
  5098. <PropertyRef Name="BusinessFieldId" />
  5099. </Dependent>
  5100. </ReferentialConstraint>
  5101. </Association>
  5102. <Association Name="FK_CmAnnouncement_CmFile">
  5103. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5104. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5105. <ReferentialConstraint>
  5106. <Principal Role="CmFile">
  5107. <PropertyRef Name="SiteId" />
  5108. <PropertyRef Name="FileId" />
  5109. </Principal>
  5110. <Dependent Role="CmAnnouncement">
  5111. <PropertyRef Name="SiteId" />
  5112. <PropertyRef Name="FileId" />
  5113. </Dependent>
  5114. </ReferentialConstraint>
  5115. </Association>
  5116. <Association Name="FK_CmAnnouncement_CmUser">
  5117. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5118. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5119. <ReferentialConstraint>
  5120. <Principal Role="CmUser">
  5121. <PropertyRef Name="SiteId" />
  5122. <PropertyRef Name="UserId" />
  5123. </Principal>
  5124. <Dependent Role="CmAnnouncement">
  5125. <PropertyRef Name="SiteId" />
  5126. <PropertyRef Name="RegisterUserId" />
  5127. </Dependent>
  5128. </ReferentialConstraint>
  5129. </Association>
  5130. <Association Name="FK_CmFacilityTempSet_CmFacility">
  5131. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  5132. <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="0..1" />
  5133. <ReferentialConstraint>
  5134. <Principal Role="CmFacility">
  5135. <PropertyRef Name="SiteId" />
  5136. <PropertyRef Name="FacilityCode" />
  5137. </Principal>
  5138. <Dependent Role="CmFacilityTempSet">
  5139. <PropertyRef Name="SiteId" />
  5140. <PropertyRef Name="FacilityCode" />
  5141. </Dependent>
  5142. </ReferentialConstraint>
  5143. </Association>
  5144. <Association Name="FK_CmFacilityTempSet_CmSite">
  5145. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5146. <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="*" />
  5147. <ReferentialConstraint>
  5148. <Principal Role="CmSite">
  5149. <PropertyRef Name="SiteId" />
  5150. </Principal>
  5151. <Dependent Role="CmFacilityTempSet">
  5152. <PropertyRef Name="SiteId" />
  5153. </Dependent>
  5154. </ReferentialConstraint>
  5155. </Association>
  5156. <Association Name="FK_CmMenu_CmSite">
  5157. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5158. <End Role="CmMenu" Type="Self.CmMenu" Multiplicity="*" />
  5159. <ReferentialConstraint>
  5160. <Principal Role="CmSite">
  5161. <PropertyRef Name="SiteId" />
  5162. </Principal>
  5163. <Dependent Role="CmMenu">
  5164. <PropertyRef Name="SiteId" />
  5165. </Dependent>
  5166. </ReferentialConstraint>
  5167. </Association>
  5168. <Association Name="FK_CmPartnerType_CmPartner">
  5169. <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="1" />
  5170. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="*" />
  5171. <ReferentialConstraint>
  5172. <Principal Role="CmPartnerType">
  5173. <PropertyRef Name="PartnerTypeId" />
  5174. </Principal>
  5175. <Dependent Role="CmPartner">
  5176. <PropertyRef Name="PartnerTypeId" />
  5177. </Dependent>
  5178. </ReferentialConstraint>
  5179. </Association>
  5180. <Association Name="FK_CmPatrolCourse_CmSite">
  5181. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5182. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="*" />
  5183. <ReferentialConstraint>
  5184. <Principal Role="CmSite">
  5185. <PropertyRef Name="SiteId" />
  5186. </Principal>
  5187. <Dependent Role="CmPatrolCourse">
  5188. <PropertyRef Name="SiteId" />
  5189. </Dependent>
  5190. </ReferentialConstraint>
  5191. </Association>
  5192. <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
  5193. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
  5194. <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
  5195. <ReferentialConstraint>
  5196. <Principal Role="CmPatrolCourse">
  5197. <PropertyRef Name="SiteId" />
  5198. <PropertyRef Name="PatrolCourseId" />
  5199. </Principal>
  5200. <Dependent Role="CmPatrolCoursePos">
  5201. <PropertyRef Name="SiteId" />
  5202. <PropertyRef Name="PatrolCourseId" />
  5203. </Dependent>
  5204. </ReferentialConstraint>
  5205. </Association>
  5206. <Association Name="FK_CmPatrolCoursePos_CmSite">
  5207. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5208. <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
  5209. <ReferentialConstraint>
  5210. <Principal Role="CmSite">
  5211. <PropertyRef Name="SiteId" />
  5212. </Principal>
  5213. <Dependent Role="CmPatrolCoursePos">
  5214. <PropertyRef Name="SiteId" />
  5215. </Dependent>
  5216. </ReferentialConstraint>
  5217. </Association>
  5218. <Association Name="FK_CmPatrolGroup_CmSite">
  5219. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5220. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="*" />
  5221. <ReferentialConstraint>
  5222. <Principal Role="CmSite">
  5223. <PropertyRef Name="SiteId" />
  5224. </Principal>
  5225. <Dependent Role="CmPatrolGroup">
  5226. <PropertyRef Name="SiteId" />
  5227. </Dependent>
  5228. </ReferentialConstraint>
  5229. </Association>
  5230. <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
  5231. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
  5232. <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
  5233. <ReferentialConstraint>
  5234. <Principal Role="CmPatrolGroup">
  5235. <PropertyRef Name="SiteId" />
  5236. <PropertyRef Name="PatrolGroupId" />
  5237. </Principal>
  5238. <Dependent Role="CmPatrolGroupUser">
  5239. <PropertyRef Name="SiteId" />
  5240. <PropertyRef Name="PatrolGroupId" />
  5241. </Dependent>
  5242. </ReferentialConstraint>
  5243. </Association>
  5244. <Association Name="FK_CmPatrolGroupUser_CmUser">
  5245. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5246. <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
  5247. <ReferentialConstraint>
  5248. <Principal Role="CmUser">
  5249. <PropertyRef Name="SiteId" />
  5250. <PropertyRef Name="UserId" />
  5251. </Principal>
  5252. <Dependent Role="CmPatrolGroupUser">
  5253. <PropertyRef Name="SiteId" />
  5254. <PropertyRef Name="UserId" />
  5255. </Dependent>
  5256. </ReferentialConstraint>
  5257. </Association>
  5258. <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
  5259. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="1" />
  5260. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5261. <ReferentialConstraint>
  5262. <Principal Role="CmPatrolSchedule">
  5263. <PropertyRef Name="SiteId" />
  5264. <PropertyRef Name="ScheduleId" />
  5265. </Principal>
  5266. <Dependent Role="CmPatrolHistory">
  5267. <PropertyRef Name="SiteId" />
  5268. <PropertyRef Name="ScheduleId" />
  5269. </Dependent>
  5270. </ReferentialConstraint>
  5271. </Association>
  5272. <Association Name="FK_CmPatrolHistory_CmPatrolType">
  5273. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
  5274. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5275. <ReferentialConstraint>
  5276. <Principal Role="CmPatrolType">
  5277. <PropertyRef Name="SiteId" />
  5278. <PropertyRef Name="PatrolTypeId" />
  5279. </Principal>
  5280. <Dependent Role="CmPatrolHistory">
  5281. <PropertyRef Name="SiteId" />
  5282. <PropertyRef Name="resultTypeId" />
  5283. </Dependent>
  5284. </ReferentialConstraint>
  5285. </Association>
  5286. <Association Name="FK_CmPatrolHistory_CmSite">
  5287. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5288. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5289. <ReferentialConstraint>
  5290. <Principal Role="CmSite">
  5291. <PropertyRef Name="SiteId" />
  5292. </Principal>
  5293. <Dependent Role="CmPatrolHistory">
  5294. <PropertyRef Name="SiteId" />
  5295. </Dependent>
  5296. </ReferentialConstraint>
  5297. </Association>
  5298. <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
  5299. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="1" />
  5300. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5301. <ReferentialConstraint>
  5302. <Principal Role="CmPatrolPos">
  5303. <PropertyRef Name="SiteId" />
  5304. <PropertyRef Name="PosId" />
  5305. </Principal>
  5306. <Dependent Role="CmPatrolHistoryPos">
  5307. <PropertyRef Name="SiteId" />
  5308. <PropertyRef Name="PosId" />
  5309. </Dependent>
  5310. </ReferentialConstraint>
  5311. </Association>
  5312. <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
  5313. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
  5314. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5315. <ReferentialConstraint>
  5316. <Principal Role="CmPatrolType">
  5317. <PropertyRef Name="SiteId" />
  5318. <PropertyRef Name="PatrolTypeId" />
  5319. </Principal>
  5320. <Dependent Role="CmPatrolHistoryPos">
  5321. <PropertyRef Name="SiteId" />
  5322. <PropertyRef Name="resultType" />
  5323. </Dependent>
  5324. </ReferentialConstraint>
  5325. </Association>
  5326. <Association Name="FK_CmPatrolHistoryPos_CmSite">
  5327. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5328. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5329. <ReferentialConstraint>
  5330. <Principal Role="CmSite">
  5331. <PropertyRef Name="SiteId" />
  5332. </Principal>
  5333. <Dependent Role="CmPatrolHistoryPos">
  5334. <PropertyRef Name="SiteId" />
  5335. </Dependent>
  5336. </ReferentialConstraint>
  5337. </Association>
  5338. <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
  5339. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
  5340. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5341. <ReferentialConstraint>
  5342. <Principal Role="CmPatrolCourse">
  5343. <PropertyRef Name="SiteId" />
  5344. <PropertyRef Name="PatrolCourseId" />
  5345. </Principal>
  5346. <Dependent Role="CmPatrolPlan">
  5347. <PropertyRef Name="SiteId" />
  5348. <PropertyRef Name="CourseId" />
  5349. </Dependent>
  5350. </ReferentialConstraint>
  5351. </Association>
  5352. <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
  5353. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
  5354. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5355. <ReferentialConstraint>
  5356. <Principal Role="CmPatrolGroup">
  5357. <PropertyRef Name="SiteId" />
  5358. <PropertyRef Name="PatrolGroupId" />
  5359. </Principal>
  5360. <Dependent Role="CmPatrolPlan">
  5361. <PropertyRef Name="SiteId" />
  5362. <PropertyRef Name="GroupId" />
  5363. </Dependent>
  5364. </ReferentialConstraint>
  5365. </Association>
  5366. <Association Name="FK_CmPatrolPlan_CmSite">
  5367. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5368. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5369. <ReferentialConstraint>
  5370. <Principal Role="CmSite">
  5371. <PropertyRef Name="SiteId" />
  5372. </Principal>
  5373. <Dependent Role="CmPatrolPlan">
  5374. <PropertyRef Name="SiteId" />
  5375. </Dependent>
  5376. </ReferentialConstraint>
  5377. </Association>
  5378. <Association Name="FK_CmPatrolPos_CmBuilding">
  5379. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  5380. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5381. <ReferentialConstraint>
  5382. <Principal Role="CmBuilding">
  5383. <PropertyRef Name="SiteId" />
  5384. <PropertyRef Name="BuildingId" />
  5385. </Principal>
  5386. <Dependent Role="CmPatrolPos">
  5387. <PropertyRef Name="SiteId" />
  5388. <PropertyRef Name="BuildingId" />
  5389. </Dependent>
  5390. </ReferentialConstraint>
  5391. </Association>
  5392. <Association Name="FK_CmPatrolPos_CmFloor">
  5393. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  5394. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5395. <ReferentialConstraint>
  5396. <Principal Role="CmFloor">
  5397. <PropertyRef Name="SiteId" />
  5398. <PropertyRef Name="BuildingId" />
  5399. <PropertyRef Name="FloorId" />
  5400. </Principal>
  5401. <Dependent Role="CmPatrolPos">
  5402. <PropertyRef Name="SiteId" />
  5403. <PropertyRef Name="BuildingId" />
  5404. <PropertyRef Name="FloorId" />
  5405. </Dependent>
  5406. </ReferentialConstraint>
  5407. </Association>
  5408. <Association Name="FK_CmPatrolPos_CmSite">
  5409. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5410. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5411. <ReferentialConstraint>
  5412. <Principal Role="CmSite">
  5413. <PropertyRef Name="SiteId" />
  5414. </Principal>
  5415. <Dependent Role="CmPatrolPos">
  5416. <PropertyRef Name="SiteId" />
  5417. </Dependent>
  5418. </ReferentialConstraint>
  5419. </Association>
  5420. <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
  5421. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="1" />
  5422. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
  5423. <ReferentialConstraint>
  5424. <Principal Role="CmPatrolPlan">
  5425. <PropertyRef Name="SiteId" />
  5426. <PropertyRef Name="PatrolPlanId" />
  5427. </Principal>
  5428. <Dependent Role="CmPatrolSchedule">
  5429. <PropertyRef Name="SiteId" />
  5430. <PropertyRef Name="PlanId" />
  5431. </Dependent>
  5432. </ReferentialConstraint>
  5433. </Association>
  5434. <Association Name="FK_CmPatrolSchedule_CmSite">
  5435. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5436. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
  5437. <ReferentialConstraint>
  5438. <Principal Role="CmSite">
  5439. <PropertyRef Name="SiteId" />
  5440. </Principal>
  5441. <Dependent Role="CmPatrolSchedule">
  5442. <PropertyRef Name="SiteId" />
  5443. </Dependent>
  5444. </ReferentialConstraint>
  5445. </Association>
  5446. <Association Name="FK_CmPatrolType_CmSite">
  5447. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5448. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="*" />
  5449. <ReferentialConstraint>
  5450. <Principal Role="CmSite">
  5451. <PropertyRef Name="SiteId" />
  5452. </Principal>
  5453. <Dependent Role="CmPatrolType">
  5454. <PropertyRef Name="SiteId" />
  5455. </Dependent>
  5456. </ReferentialConstraint>
  5457. </Association>
  5458. <Association Name="FK_CmUser_CmBusinessField">
  5459. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  5460. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5461. <ReferentialConstraint>
  5462. <Principal Role="CmBusinessField">
  5463. <PropertyRef Name="SiteId" />
  5464. <PropertyRef Name="BusinessFieldId" />
  5465. </Principal>
  5466. <Dependent Role="CmUser">
  5467. <PropertyRef Name="SiteId" />
  5468. <PropertyRef Name="BusinessFieldId" />
  5469. </Dependent>
  5470. </ReferentialConstraint>
  5471. </Association>
  5472. <Association Name="FK_CmUser_CmCompany">
  5473. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  5474. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5475. <ReferentialConstraint>
  5476. <Principal Role="CmCompany">
  5477. <PropertyRef Name="SiteId" />
  5478. <PropertyRef Name="CompanyId" />
  5479. </Principal>
  5480. <Dependent Role="CmUser">
  5481. <PropertyRef Name="SiteId" />
  5482. <PropertyRef Name="CompanyId" />
  5483. </Dependent>
  5484. </ReferentialConstraint>
  5485. </Association>
  5486. <Association Name="FK_CmUser_CmDepartment">
  5487. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  5488. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5489. <ReferentialConstraint>
  5490. <Principal Role="CmDepartment">
  5491. <PropertyRef Name="SiteId" />
  5492. <PropertyRef Name="CompanyId" />
  5493. <PropertyRef Name="DepartmentId" />
  5494. </Principal>
  5495. <Dependent Role="CmUser">
  5496. <PropertyRef Name="SiteId" />
  5497. <PropertyRef Name="CompanyId" />
  5498. <PropertyRef Name="DepartmentId" />
  5499. </Dependent>
  5500. </ReferentialConstraint>
  5501. </Association>
  5502. <Association Name="FK_CmUser_CmPosition">
  5503. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
  5504. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5505. <ReferentialConstraint>
  5506. <Principal Role="CmPosition">
  5507. <PropertyRef Name="SiteId" />
  5508. <PropertyRef Name="PositionId" />
  5509. </Principal>
  5510. <Dependent Role="CmUser">
  5511. <PropertyRef Name="SiteId" />
  5512. <PropertyRef Name="PositionId" />
  5513. </Dependent>
  5514. </ReferentialConstraint>
  5515. </Association>
  5516. <Association Name="FK_CmUser_CmUserGroup">
  5517. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
  5518. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5519. <ReferentialConstraint>
  5520. <Principal Role="CmUserGroup">
  5521. <PropertyRef Name="SiteId" />
  5522. <PropertyRef Name="UserGroupId" />
  5523. </Principal>
  5524. <Dependent Role="CmUser">
  5525. <PropertyRef Name="SiteId" />
  5526. <PropertyRef Name="UserGroupId" />
  5527. </Dependent>
  5528. </ReferentialConstraint>
  5529. </Association>
  5530. <Association Name="FK_CmUserLoginHistory_CmUser">
  5531. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5532. <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
  5533. <ReferentialConstraint>
  5534. <Principal Role="CmUser">
  5535. <PropertyRef Name="SiteId" />
  5536. <PropertyRef Name="UserId" />
  5537. </Principal>
  5538. <Dependent Role="CmUserLoginHistory">
  5539. <PropertyRef Name="SiteId" />
  5540. <PropertyRef Name="UserId" />
  5541. </Dependent>
  5542. </ReferentialConstraint>
  5543. </Association>
  5544. <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
  5545. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  5546. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5547. <ReferentialConstraint>
  5548. <Principal Role="CmBuilding">
  5549. <PropertyRef Name="SiteId" />
  5550. <PropertyRef Name="BuildingId" />
  5551. </Principal>
  5552. <Dependent Role="CmZoneTempHumiSet">
  5553. <PropertyRef Name="SiteId" />
  5554. <PropertyRef Name="BuildingId" />
  5555. </Dependent>
  5556. </ReferentialConstraint>
  5557. </Association>
  5558. <Association Name="FK_CmZoneTempHumiSet_CmFloor">
  5559. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  5560. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5561. <ReferentialConstraint>
  5562. <Principal Role="CmFloor">
  5563. <PropertyRef Name="SiteId" />
  5564. <PropertyRef Name="BuildingId" />
  5565. <PropertyRef Name="FloorId" />
  5566. </Principal>
  5567. <Dependent Role="CmZoneTempHumiSet">
  5568. <PropertyRef Name="SiteId" />
  5569. <PropertyRef Name="BuildingId" />
  5570. <PropertyRef Name="FloorId" />
  5571. </Dependent>
  5572. </ReferentialConstraint>
  5573. </Association>
  5574. <Association Name="FK_CmZoneTempHumiSet_CmSite">
  5575. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5576. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5577. <ReferentialConstraint>
  5578. <Principal Role="CmSite">
  5579. <PropertyRef Name="SiteId" />
  5580. </Principal>
  5581. <Dependent Role="CmZoneTempHumiSet">
  5582. <PropertyRef Name="SiteId" />
  5583. </Dependent>
  5584. </ReferentialConstraint>
  5585. </Association>
  5586. <Association Name="FK_CmZoneTempHumiSet_CmZone">
  5587. <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
  5588. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
  5589. <ReferentialConstraint>
  5590. <Principal Role="CmZone">
  5591. <PropertyRef Name="SiteId" />
  5592. <PropertyRef Name="BuildingId" />
  5593. <PropertyRef Name="FloorId" />
  5594. <PropertyRef Name="ZoneId" />
  5595. </Principal>
  5596. <Dependent Role="CmZoneTempHumiSet">
  5597. <PropertyRef Name="SiteId" />
  5598. <PropertyRef Name="BuildingId" />
  5599. <PropertyRef Name="FloorId" />
  5600. <PropertyRef Name="ZoneId" />
  5601. </Dependent>
  5602. </ReferentialConstraint>
  5603. </Association>
  5604. <Association Name="FK_FmsAccident_CmCompany">
  5605. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  5606. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5607. <ReferentialConstraint>
  5608. <Principal Role="CmCompany">
  5609. <PropertyRef Name="SiteId" />
  5610. <PropertyRef Name="CompanyId" />
  5611. </Principal>
  5612. <Dependent Role="FmsAccident">
  5613. <PropertyRef Name="SiteId" />
  5614. <PropertyRef Name="CompanyId" />
  5615. </Dependent>
  5616. </ReferentialConstraint>
  5617. </Association>
  5618. <Association Name="FK_FmsAccident_CmDepartment">
  5619. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  5620. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5621. <ReferentialConstraint>
  5622. <Principal Role="CmDepartment">
  5623. <PropertyRef Name="SiteId" />
  5624. <PropertyRef Name="CompanyId" />
  5625. <PropertyRef Name="DepartmentId" />
  5626. </Principal>
  5627. <Dependent Role="FmsAccident">
  5628. <PropertyRef Name="SiteId" />
  5629. <PropertyRef Name="CompanyId" />
  5630. <PropertyRef Name="DepartmentId" />
  5631. </Dependent>
  5632. </ReferentialConstraint>
  5633. </Association>
  5634. <Association Name="FK_FmsAccident_CmFile1">
  5635. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5636. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5637. <ReferentialConstraint>
  5638. <Principal Role="CmFile">
  5639. <PropertyRef Name="SiteId" />
  5640. <PropertyRef Name="FileId" />
  5641. </Principal>
  5642. <Dependent Role="FmsAccident">
  5643. <PropertyRef Name="SiteId" />
  5644. <PropertyRef Name="FileId1" />
  5645. </Dependent>
  5646. </ReferentialConstraint>
  5647. </Association>
  5648. <Association Name="FK_FmsAccident_CmFile2">
  5649. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5650. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5651. <ReferentialConstraint>
  5652. <Principal Role="CmFile">
  5653. <PropertyRef Name="SiteId" />
  5654. <PropertyRef Name="FileId" />
  5655. </Principal>
  5656. <Dependent Role="FmsAccident">
  5657. <PropertyRef Name="SiteId" />
  5658. <PropertyRef Name="FileId2" />
  5659. </Dependent>
  5660. </ReferentialConstraint>
  5661. </Association>
  5662. <Association Name="FK_FmsAccident_CmFile3">
  5663. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5664. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5665. <ReferentialConstraint>
  5666. <Principal Role="CmFile">
  5667. <PropertyRef Name="SiteId" />
  5668. <PropertyRef Name="FileId" />
  5669. </Principal>
  5670. <Dependent Role="FmsAccident">
  5671. <PropertyRef Name="SiteId" />
  5672. <PropertyRef Name="FileId3" />
  5673. </Dependent>
  5674. </ReferentialConstraint>
  5675. </Association>
  5676. <Association Name="FK_FmsAccident_FmsAccidentCodeType">
  5677. <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
  5678. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5679. <ReferentialConstraint>
  5680. <Principal Role="FmsAccidentCodeType">
  5681. <PropertyRef Name="SiteId" />
  5682. <PropertyRef Name="AccidentTypeId" />
  5683. </Principal>
  5684. <Dependent Role="FmsAccident">
  5685. <PropertyRef Name="SiteId" />
  5686. <PropertyRef Name="AccidentTypeId" />
  5687. </Dependent>
  5688. </ReferentialConstraint>
  5689. </Association>
  5690. <Association Name="FK_FmsBudgetDetail_FmsBudget">
  5691. <End Role="FmsBudget" Type="Self.FmsBudget" Multiplicity="1">
  5692. <OnDelete Action="Cascade" />
  5693. </End>
  5694. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
  5695. <ReferentialConstraint>
  5696. <Principal Role="FmsBudget">
  5697. <PropertyRef Name="SiteId" />
  5698. <PropertyRef Name="Year" />
  5699. </Principal>
  5700. <Dependent Role="FmsBudgetDetail">
  5701. <PropertyRef Name="SiteId" />
  5702. <PropertyRef Name="Year" />
  5703. </Dependent>
  5704. </ReferentialConstraint>
  5705. </Association>
  5706. <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
  5707. <End Role="FmsBudgetCodeClass" Type="Self.FmsBudgetCodeClass" Multiplicity="1" />
  5708. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
  5709. <ReferentialConstraint>
  5710. <Principal Role="FmsBudgetCodeClass">
  5711. <PropertyRef Name="SiteId" />
  5712. <PropertyRef Name="BudgetClassId" />
  5713. </Principal>
  5714. <Dependent Role="FmsBudgetDetail">
  5715. <PropertyRef Name="SiteId" />
  5716. <PropertyRef Name="BudgetClassId" />
  5717. </Dependent>
  5718. </ReferentialConstraint>
  5719. </Association>
  5720. <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  5721. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="1" />
  5722. <End Role="FmsBudgetDetailExecution" Type="Self.FmsBudgetDetailExecution" Multiplicity="*" />
  5723. <ReferentialConstraint>
  5724. <Principal Role="FmsBudgetDetail">
  5725. <PropertyRef Name="SiteId" />
  5726. <PropertyRef Name="Year" />
  5727. <PropertyRef Name="BudgetClassId" />
  5728. <PropertyRef Name="ParentBudgetClassId" />
  5729. </Principal>
  5730. <Dependent Role="FmsBudgetDetailExecution">
  5731. <PropertyRef Name="SiteId" />
  5732. <PropertyRef Name="Year" />
  5733. <PropertyRef Name="BudgetClassId" />
  5734. <PropertyRef Name="ParentBudgetClassId" />
  5735. </Dependent>
  5736. </ReferentialConstraint>
  5737. </Association>
  5738. <Association Name="FK_FmsConstruction_CmFile1">
  5739. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5740. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5741. <ReferentialConstraint>
  5742. <Principal Role="CmFile">
  5743. <PropertyRef Name="SiteId" />
  5744. <PropertyRef Name="FileId" />
  5745. </Principal>
  5746. <Dependent Role="FmsConstruction">
  5747. <PropertyRef Name="SiteId" />
  5748. <PropertyRef Name="FileId1" />
  5749. </Dependent>
  5750. </ReferentialConstraint>
  5751. </Association>
  5752. <Association Name="FK_FmsConstruction_CmFile2">
  5753. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5754. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5755. <ReferentialConstraint>
  5756. <Principal Role="CmFile">
  5757. <PropertyRef Name="SiteId" />
  5758. <PropertyRef Name="FileId" />
  5759. </Principal>
  5760. <Dependent Role="FmsConstruction">
  5761. <PropertyRef Name="SiteId" />
  5762. <PropertyRef Name="FileId2" />
  5763. </Dependent>
  5764. </ReferentialConstraint>
  5765. </Association>
  5766. <Association Name="FK_FmsConstruction_CmFile3">
  5767. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5768. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5769. <ReferentialConstraint>
  5770. <Principal Role="CmFile">
  5771. <PropertyRef Name="SiteId" />
  5772. <PropertyRef Name="FileId" />
  5773. </Principal>
  5774. <Dependent Role="FmsConstruction">
  5775. <PropertyRef Name="SiteId" />
  5776. <PropertyRef Name="FileId3" />
  5777. </Dependent>
  5778. </ReferentialConstraint>
  5779. </Association>
  5780. <Association Name="FK_FmsConstruction_CmPartner">
  5781. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="1" />
  5782. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5783. <ReferentialConstraint>
  5784. <Principal Role="CmPartner">
  5785. <PropertyRef Name="SiteId" />
  5786. <PropertyRef Name="PartnerId" />
  5787. </Principal>
  5788. <Dependent Role="FmsConstruction">
  5789. <PropertyRef Name="SiteId" />
  5790. <PropertyRef Name="PartnerId" />
  5791. </Dependent>
  5792. </ReferentialConstraint>
  5793. </Association>
  5794. <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
  5795. <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
  5796. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5797. <ReferentialConstraint>
  5798. <Principal Role="FmsConstructionCodeProgress">
  5799. <PropertyRef Name="ProgressId" />
  5800. </Principal>
  5801. <Dependent Role="FmsConstruction">
  5802. <PropertyRef Name="ProgressId" />
  5803. </Dependent>
  5804. </ReferentialConstraint>
  5805. </Association>
  5806. <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
  5807. <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
  5808. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5809. <ReferentialConstraint>
  5810. <Principal Role="FmsConstructionCodeType">
  5811. <PropertyRef Name="SiteId" />
  5812. <PropertyRef Name="ConstructionTypeId" />
  5813. </Principal>
  5814. <Dependent Role="FmsConstruction">
  5815. <PropertyRef Name="SiteId" />
  5816. <PropertyRef Name="ConstructionTypeId" />
  5817. </Dependent>
  5818. </ReferentialConstraint>
  5819. </Association>
  5820. <Association Name="FK_FmsConstructionEstimation_CmUser">
  5821. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5822. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
  5823. <ReferentialConstraint>
  5824. <Principal Role="CmUser">
  5825. <PropertyRef Name="SiteId" />
  5826. <PropertyRef Name="UserId" />
  5827. </Principal>
  5828. <Dependent Role="FmsConstructionEstimation">
  5829. <PropertyRef Name="SiteId" />
  5830. <PropertyRef Name="EstimateUserId" />
  5831. </Dependent>
  5832. </ReferentialConstraint>
  5833. </Association>
  5834. <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
  5835. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
  5836. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
  5837. <ReferentialConstraint>
  5838. <Principal Role="FmsConstruction">
  5839. <PropertyRef Name="SiteId" />
  5840. <PropertyRef Name="ConstructionId" />
  5841. </Principal>
  5842. <Dependent Role="FmsConstructionEstimation">
  5843. <PropertyRef Name="SiteId" />
  5844. <PropertyRef Name="ConstructionId" />
  5845. </Dependent>
  5846. </ReferentialConstraint>
  5847. </Association>
  5848. <Association Name="FK_FmsContract_CmPartner">
  5849. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  5850. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5851. <ReferentialConstraint>
  5852. <Principal Role="CmPartner">
  5853. <PropertyRef Name="SiteId" />
  5854. <PropertyRef Name="PartnerId" />
  5855. </Principal>
  5856. <Dependent Role="FmsContract">
  5857. <PropertyRef Name="SiteId" />
  5858. <PropertyRef Name="PartnerId" />
  5859. </Dependent>
  5860. </ReferentialConstraint>
  5861. </Association>
  5862. <Association Name="FK_FmsContract_CmPartnerType">
  5863. <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="0..1" />
  5864. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5865. <ReferentialConstraint>
  5866. <Principal Role="CmPartnerType">
  5867. <PropertyRef Name="PartnerTypeId" />
  5868. </Principal>
  5869. <Dependent Role="FmsContract">
  5870. <PropertyRef Name="PartnerTypeId" />
  5871. </Dependent>
  5872. </ReferentialConstraint>
  5873. </Association>
  5874. <Association Name="FK_FmsContract_FmsContractClass">
  5875. <End Role="FmsContractClass" Type="Self.FmsContractClass" Multiplicity="0..1" />
  5876. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5877. <ReferentialConstraint>
  5878. <Principal Role="FmsContractClass">
  5879. <PropertyRef Name="SiteId" />
  5880. <PropertyRef Name="ContractClassId" />
  5881. </Principal>
  5882. <Dependent Role="FmsContract">
  5883. <PropertyRef Name="SiteId" />
  5884. <PropertyRef Name="ContractClassId" />
  5885. </Dependent>
  5886. </ReferentialConstraint>
  5887. </Association>
  5888. <Association Name="FK_FmsContract_FmsContractMethod">
  5889. <End Role="FmsContractMethod" Type="Self.FmsContractMethod" Multiplicity="0..1" />
  5890. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5891. <ReferentialConstraint>
  5892. <Principal Role="FmsContractMethod">
  5893. <PropertyRef Name="SiteId" />
  5894. <PropertyRef Name="ContractMethodId" />
  5895. </Principal>
  5896. <Dependent Role="FmsContract">
  5897. <PropertyRef Name="SiteId" />
  5898. <PropertyRef Name="ContractMethodId" />
  5899. </Dependent>
  5900. </ReferentialConstraint>
  5901. </Association>
  5902. <Association Name="FK_FmsContract_FmsContractType">
  5903. <End Role="FmsContractType" Type="Self.FmsContractType" Multiplicity="0..1" />
  5904. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5905. <ReferentialConstraint>
  5906. <Principal Role="FmsContractType">
  5907. <PropertyRef Name="SiteId" />
  5908. <PropertyRef Name="ContractTypeId" />
  5909. </Principal>
  5910. <Dependent Role="FmsContract">
  5911. <PropertyRef Name="SiteId" />
  5912. <PropertyRef Name="ContractTypeId" />
  5913. </Dependent>
  5914. </ReferentialConstraint>
  5915. </Association>
  5916. <Association Name="FK_FmsContract_FmsPaymentType">
  5917. <End Role="FmsPaymentType" Type="Self.FmsPaymentType" Multiplicity="0..1" />
  5918. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5919. <ReferentialConstraint>
  5920. <Principal Role="FmsPaymentType">
  5921. <PropertyRef Name="SiteId" />
  5922. <PropertyRef Name="PaymentTypeId" />
  5923. </Principal>
  5924. <Dependent Role="FmsContract">
  5925. <PropertyRef Name="SiteId" />
  5926. <PropertyRef Name="PartnerTypeId" />
  5927. </Dependent>
  5928. </ReferentialConstraint>
  5929. </Association>
  5930. <Association Name="FK_FmsDailyCheckReport_CmUser">
  5931. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5932. <End Role="FmsDailyCheckReport" Type="Self.FmsDailyCheckReport" Multiplicity="*" />
  5933. <ReferentialConstraint>
  5934. <Principal Role="CmUser">
  5935. <PropertyRef Name="SiteId" />
  5936. <PropertyRef Name="UserId" />
  5937. </Principal>
  5938. <Dependent Role="FmsDailyCheckReport">
  5939. <PropertyRef Name="SiteId" />
  5940. <PropertyRef Name="RegisterUserId" />
  5941. </Dependent>
  5942. </ReferentialConstraint>
  5943. </Association>
  5944. <Association Name="FK_FmsDailyReport_CmBusinessField">
  5945. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  5946. <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
  5947. <ReferentialConstraint>
  5948. <Principal Role="CmBusinessField">
  5949. <PropertyRef Name="SiteId" />
  5950. <PropertyRef Name="BusinessFieldId" />
  5951. </Principal>
  5952. <Dependent Role="FmsDailyReport">
  5953. <PropertyRef Name="SiteId" />
  5954. <PropertyRef Name="BusinessFieldId" />
  5955. </Dependent>
  5956. </ReferentialConstraint>
  5957. </Association>
  5958. <Association Name="FK_FmsDailyReport_CmUser">
  5959. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5960. <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
  5961. <ReferentialConstraint>
  5962. <Principal Role="CmUser">
  5963. <PropertyRef Name="SiteId" />
  5964. <PropertyRef Name="UserId" />
  5965. </Principal>
  5966. <Dependent Role="FmsDailyReport">
  5967. <PropertyRef Name="SiteId" />
  5968. <PropertyRef Name="RegisterUserId" />
  5969. </Dependent>
  5970. </ReferentialConstraint>
  5971. </Association>
  5972. <Association Name="FK_FmsEquipment_CmUser">
  5973. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5974. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5975. <ReferentialConstraint>
  5976. <Principal Role="CmUser">
  5977. <PropertyRef Name="SiteId" />
  5978. <PropertyRef Name="UserId" />
  5979. </Principal>
  5980. <Dependent Role="FmsEquipment">
  5981. <PropertyRef Name="SiteId" />
  5982. <PropertyRef Name="RegisterUserId" />
  5983. </Dependent>
  5984. </ReferentialConstraint>
  5985. </Association>
  5986. <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
  5987. <End Role="FmsEquipmentCodeType" Type="Self.FmsEquipmentCodeType" Multiplicity="1" />
  5988. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5989. <ReferentialConstraint>
  5990. <Principal Role="FmsEquipmentCodeType">
  5991. <PropertyRef Name="SiteId" />
  5992. <PropertyRef Name="EquipmentTypeId" />
  5993. </Principal>
  5994. <Dependent Role="FmsEquipment">
  5995. <PropertyRef Name="SiteId" />
  5996. <PropertyRef Name="EquipmentTypeId" />
  5997. </Dependent>
  5998. </ReferentialConstraint>
  5999. </Association>
  6000. <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
  6001. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
  6002. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  6003. <ReferentialConstraint>
  6004. <Principal Role="FmsMaterialWarehouse">
  6005. <PropertyRef Name="SiteId" />
  6006. <PropertyRef Name="WarehouseId" />
  6007. </Principal>
  6008. <Dependent Role="FmsEquipment">
  6009. <PropertyRef Name="SiteId" />
  6010. <PropertyRef Name="WarehouseId" />
  6011. </Dependent>
  6012. </ReferentialConstraint>
  6013. </Association>
  6014. <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
  6015. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="1" />
  6016. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  6017. <ReferentialConstraint>
  6018. <Principal Role="FmsEquipment">
  6019. <PropertyRef Name="SiteId" />
  6020. <PropertyRef Name="EquipmentId" />
  6021. </Principal>
  6022. <Dependent Role="FmsEquipmentHistory">
  6023. <PropertyRef Name="SiteId" />
  6024. <PropertyRef Name="EquipmentId" />
  6025. </Dependent>
  6026. </ReferentialConstraint>
  6027. </Association>
  6028. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  6029. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  6030. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  6031. <ReferentialConstraint>
  6032. <Principal Role="FmsEquipmentCodeStateType">
  6033. <PropertyRef Name="EquipmentStateTypeId" />
  6034. </Principal>
  6035. <Dependent Role="FmsEquipmentHistory">
  6036. <PropertyRef Name="EquipmentStateTypeId" />
  6037. </Dependent>
  6038. </ReferentialConstraint>
  6039. </Association>
  6040. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  6041. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="0..1">
  6042. <OnDelete Action="Cascade" />
  6043. </End>
  6044. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  6045. <ReferentialConstraint>
  6046. <Principal Role="FmsEquipmentRentInfo">
  6047. <PropertyRef Name="SiteId" />
  6048. <PropertyRef Name="EquipmentRentId" />
  6049. </Principal>
  6050. <Dependent Role="FmsEquipmentHistory">
  6051. <PropertyRef Name="SiteId" />
  6052. <PropertyRef Name="EquipmentRentId" />
  6053. </Dependent>
  6054. </ReferentialConstraint>
  6055. </Association>
  6056. <Association Name="FK_FmsEquipmentRentInfo_CmUser">
  6057. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6058. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6059. <ReferentialConstraint>
  6060. <Principal Role="CmUser">
  6061. <PropertyRef Name="SiteId" />
  6062. <PropertyRef Name="UserId" />
  6063. </Principal>
  6064. <Dependent Role="FmsEquipmentRentInfo">
  6065. <PropertyRef Name="SiteId" />
  6066. <PropertyRef Name="RegisterUserId" />
  6067. </Dependent>
  6068. </ReferentialConstraint>
  6069. </Association>
  6070. <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
  6071. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6072. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6073. <ReferentialConstraint>
  6074. <Principal Role="CmUser">
  6075. <PropertyRef Name="SiteId" />
  6076. <PropertyRef Name="UserId" />
  6077. </Principal>
  6078. <Dependent Role="FmsEquipmentRentInfo">
  6079. <PropertyRef Name="SiteId" />
  6080. <PropertyRef Name="RentUserId" />
  6081. </Dependent>
  6082. </ReferentialConstraint>
  6083. </Association>
  6084. <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  6085. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  6086. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6087. <ReferentialConstraint>
  6088. <Principal Role="FmsEquipmentCodeStateType">
  6089. <PropertyRef Name="EquipmentStateTypeId" />
  6090. </Principal>
  6091. <Dependent Role="FmsEquipmentRentInfo">
  6092. <PropertyRef Name="EquipmentStateTypeId" />
  6093. </Dependent>
  6094. </ReferentialConstraint>
  6095. </Association>
  6096. <Association Name="FK_FmsFacilityOperationReport_CmUser">
  6097. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6098. <End Role="FmsFacilityOperationReport" Type="Self.FmsFacilityOperationReport" Multiplicity="*" />
  6099. <ReferentialConstraint>
  6100. <Principal Role="CmUser">
  6101. <PropertyRef Name="SiteId" />
  6102. <PropertyRef Name="UserId" />
  6103. </Principal>
  6104. <Dependent Role="FmsFacilityOperationReport">
  6105. <PropertyRef Name="SiteId" />
  6106. <PropertyRef Name="RegisterUserId" />
  6107. </Dependent>
  6108. </ReferentialConstraint>
  6109. </Association>
  6110. <Association Name="FK_FmsManual_FmsManualType">
  6111. <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
  6112. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
  6113. <ReferentialConstraint>
  6114. <Principal Role="FmsManualType">
  6115. <PropertyRef Name="SiteId" />
  6116. <PropertyRef Name="ManualTypeId" />
  6117. </Principal>
  6118. <Dependent Role="FmsManual">
  6119. <PropertyRef Name="SiteId" />
  6120. <PropertyRef Name="ManualTypeId" />
  6121. </Dependent>
  6122. </ReferentialConstraint>
  6123. </Association>
  6124. <Association Name="FK_FmsManualHistory_CmFile">
  6125. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6126. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6127. <ReferentialConstraint>
  6128. <Principal Role="CmFile">
  6129. <PropertyRef Name="SiteId" />
  6130. <PropertyRef Name="FileId" />
  6131. </Principal>
  6132. <Dependent Role="FmsManualHistory">
  6133. <PropertyRef Name="SiteId" />
  6134. <PropertyRef Name="FileId" />
  6135. </Dependent>
  6136. </ReferentialConstraint>
  6137. </Association>
  6138. <Association Name="FK_FmsManualHistory_CmUser">
  6139. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6140. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6141. <ReferentialConstraint>
  6142. <Principal Role="CmUser">
  6143. <PropertyRef Name="SiteId" />
  6144. <PropertyRef Name="UserId" />
  6145. </Principal>
  6146. <Dependent Role="FmsManualHistory">
  6147. <PropertyRef Name="SiteId" />
  6148. <PropertyRef Name="UpdatedUserId" />
  6149. </Dependent>
  6150. </ReferentialConstraint>
  6151. </Association>
  6152. <Association Name="FK_FmsManualHistory_FmsManual">
  6153. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
  6154. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6155. <ReferentialConstraint>
  6156. <Principal Role="FmsManual">
  6157. <PropertyRef Name="SiteId" />
  6158. <PropertyRef Name="ManualId" />
  6159. </Principal>
  6160. <Dependent Role="FmsManualHistory">
  6161. <PropertyRef Name="SiteId" />
  6162. <PropertyRef Name="ManualId" />
  6163. </Dependent>
  6164. </ReferentialConstraint>
  6165. </Association>
  6166. <Association Name="FK_FmsMaterial_CmBusinessField">
  6167. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6168. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6169. <ReferentialConstraint>
  6170. <Principal Role="CmBusinessField">
  6171. <PropertyRef Name="SiteId" />
  6172. <PropertyRef Name="BusinessFieldId" />
  6173. </Principal>
  6174. <Dependent Role="FmsMaterial">
  6175. <PropertyRef Name="SiteId" />
  6176. <PropertyRef Name="BusinessFieldId" />
  6177. </Dependent>
  6178. </ReferentialConstraint>
  6179. </Association>
  6180. <Association Name="FK_FmsMaterial_CmFile">
  6181. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6182. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6183. <ReferentialConstraint>
  6184. <Principal Role="CmFile">
  6185. <PropertyRef Name="SiteId" />
  6186. <PropertyRef Name="FileId" />
  6187. </Principal>
  6188. <Dependent Role="FmsMaterial">
  6189. <PropertyRef Name="SiteId" />
  6190. <PropertyRef Name="ImageFileId" />
  6191. </Dependent>
  6192. </ReferentialConstraint>
  6193. </Association>
  6194. <Association Name="FK_FmsMaterial_CmSite">
  6195. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6196. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6197. <ReferentialConstraint>
  6198. <Principal Role="CmSite">
  6199. <PropertyRef Name="SiteId" />
  6200. </Principal>
  6201. <Dependent Role="FmsMaterial">
  6202. <PropertyRef Name="SiteId" />
  6203. </Dependent>
  6204. </ReferentialConstraint>
  6205. </Association>
  6206. <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
  6207. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="0..1" />
  6208. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6209. <ReferentialConstraint>
  6210. <Principal Role="FmsMaterialCodeLocation">
  6211. <PropertyRef Name="SiteId" />
  6212. <PropertyRef Name="LocationId" />
  6213. </Principal>
  6214. <Dependent Role="FmsMaterial">
  6215. <PropertyRef Name="SiteId" />
  6216. <PropertyRef Name="LocationId" />
  6217. </Dependent>
  6218. </ReferentialConstraint>
  6219. </Association>
  6220. <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
  6221. <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="0..1" />
  6222. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6223. <ReferentialConstraint>
  6224. <Principal Role="FmsMaterialCodeType">
  6225. <PropertyRef Name="SiteId" />
  6226. <PropertyRef Name="MaterialTypeId" />
  6227. </Principal>
  6228. <Dependent Role="FmsMaterial">
  6229. <PropertyRef Name="SiteId" />
  6230. <PropertyRef Name="MaterialTypeId" />
  6231. </Dependent>
  6232. </ReferentialConstraint>
  6233. </Association>
  6234. <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
  6235. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  6236. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6237. <ReferentialConstraint>
  6238. <Principal Role="FmsMaterialTradeCompany">
  6239. <PropertyRef Name="SiteId" />
  6240. <PropertyRef Name="TradeCompanyId" />
  6241. </Principal>
  6242. <Dependent Role="FmsMaterial">
  6243. <PropertyRef Name="SiteId" />
  6244. <PropertyRef Name="TradeCompanyId" />
  6245. </Dependent>
  6246. </ReferentialConstraint>
  6247. </Association>
  6248. <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
  6249. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
  6250. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6251. <ReferentialConstraint>
  6252. <Principal Role="FmsMaterialWarehouse">
  6253. <PropertyRef Name="SiteId" />
  6254. <PropertyRef Name="WarehouseId" />
  6255. </Principal>
  6256. <Dependent Role="FmsMaterial">
  6257. <PropertyRef Name="SiteId" />
  6258. <PropertyRef Name="WarehouseId" />
  6259. </Dependent>
  6260. </ReferentialConstraint>
  6261. </Association>
  6262. <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  6263. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
  6264. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  6265. <ReferentialConstraint>
  6266. <Principal Role="FmsMaterialPurchaseRequest">
  6267. <PropertyRef Name="SiteId" />
  6268. <PropertyRef Name="PurchaseRequestId" />
  6269. </Principal>
  6270. <Dependent Role="FmsMaterialPurchaseOrder">
  6271. <PropertyRef Name="SiteId" />
  6272. <PropertyRef Name="PurchaseRequestId" />
  6273. </Dependent>
  6274. </ReferentialConstraint>
  6275. </Association>
  6276. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  6277. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6278. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  6279. <ReferentialConstraint>
  6280. <Principal Role="FmsMaterial">
  6281. <PropertyRef Name="SiteId" />
  6282. <PropertyRef Name="MaterialId" />
  6283. </Principal>
  6284. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  6285. <PropertyRef Name="SiteId" />
  6286. <PropertyRef Name="MaterialId" />
  6287. </Dependent>
  6288. </ReferentialConstraint>
  6289. </Association>
  6290. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  6291. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
  6292. <OnDelete Action="Cascade" />
  6293. </End>
  6294. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  6295. <ReferentialConstraint>
  6296. <Principal Role="FmsMaterialPurchaseOrder">
  6297. <PropertyRef Name="SiteId" />
  6298. <PropertyRef Name="PurchaseOrderId" />
  6299. </Principal>
  6300. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  6301. <PropertyRef Name="SiteId" />
  6302. <PropertyRef Name="PurchaseOrderId" />
  6303. </Dependent>
  6304. </ReferentialConstraint>
  6305. </Association>
  6306. <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  6307. <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
  6308. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  6309. <ReferentialConstraint>
  6310. <Principal Role="FmsMaterialCodePurchaseType">
  6311. <PropertyRef Name="PurchaseTypeId" />
  6312. </Principal>
  6313. <Dependent Role="FmsMaterialPurchaseRequest">
  6314. <PropertyRef Name="PurchaseTypeId" />
  6315. </Dependent>
  6316. </ReferentialConstraint>
  6317. </Association>
  6318. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  6319. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6320. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  6321. <ReferentialConstraint>
  6322. <Principal Role="FmsMaterial">
  6323. <PropertyRef Name="SiteId" />
  6324. <PropertyRef Name="MaterialId" />
  6325. </Principal>
  6326. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  6327. <PropertyRef Name="SiteId" />
  6328. <PropertyRef Name="MaterialId" />
  6329. </Dependent>
  6330. </ReferentialConstraint>
  6331. </Association>
  6332. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  6333. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
  6334. <OnDelete Action="Cascade" />
  6335. </End>
  6336. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  6337. <ReferentialConstraint>
  6338. <Principal Role="FmsMaterialPurchaseRequest">
  6339. <PropertyRef Name="SiteId" />
  6340. <PropertyRef Name="PurchaseRequestId" />
  6341. </Principal>
  6342. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  6343. <PropertyRef Name="SiteId" />
  6344. <PropertyRef Name="PurchaseRequestId" />
  6345. </Dependent>
  6346. </ReferentialConstraint>
  6347. </Association>
  6348. <Association Name="FK_FmsMaterialRelease_CmBusinessField">
  6349. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6350. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6351. <ReferentialConstraint>
  6352. <Principal Role="CmBusinessField">
  6353. <PropertyRef Name="SiteId" />
  6354. <PropertyRef Name="BusinessFieldId" />
  6355. </Principal>
  6356. <Dependent Role="FmsMaterialRelease">
  6357. <PropertyRef Name="SiteId" />
  6358. <PropertyRef Name="BusinessFieldId" />
  6359. </Dependent>
  6360. </ReferentialConstraint>
  6361. </Association>
  6362. <Association Name="FK_FmsMaterialRelease_CmSite">
  6363. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6364. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6365. <ReferentialConstraint>
  6366. <Principal Role="CmSite">
  6367. <PropertyRef Name="SiteId" />
  6368. </Principal>
  6369. <Dependent Role="FmsMaterialRelease">
  6370. <PropertyRef Name="SiteId" />
  6371. </Dependent>
  6372. </ReferentialConstraint>
  6373. </Association>
  6374. <Association Name="FK_FmsMaterialRelease_CmUser">
  6375. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6376. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6377. <ReferentialConstraint>
  6378. <Principal Role="CmUser">
  6379. <PropertyRef Name="SiteId" />
  6380. <PropertyRef Name="UserId" />
  6381. </Principal>
  6382. <Dependent Role="FmsMaterialRelease">
  6383. <PropertyRef Name="SiteId" />
  6384. <PropertyRef Name="ConfirmedUserId" />
  6385. </Dependent>
  6386. </ReferentialConstraint>
  6387. </Association>
  6388. <Association Name="FK_FmsMaterialRelease_CmUser1">
  6389. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6390. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6391. <ReferentialConstraint>
  6392. <Principal Role="CmUser">
  6393. <PropertyRef Name="SiteId" />
  6394. <PropertyRef Name="UserId" />
  6395. </Principal>
  6396. <Dependent Role="FmsMaterialRelease">
  6397. <PropertyRef Name="SiteId" />
  6398. <PropertyRef Name="AdjustmentUserId" />
  6399. </Dependent>
  6400. </ReferentialConstraint>
  6401. </Association>
  6402. <Association Name="FK_FmsMaterialRelease_FmsMaterial">
  6403. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="0..1" />
  6404. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6405. <ReferentialConstraint>
  6406. <Principal Role="FmsMaterial">
  6407. <PropertyRef Name="SiteId" />
  6408. <PropertyRef Name="MaterialId" />
  6409. </Principal>
  6410. <Dependent Role="FmsMaterialRelease">
  6411. <PropertyRef Name="SiteId" />
  6412. <PropertyRef Name="MaterialId" />
  6413. </Dependent>
  6414. </ReferentialConstraint>
  6415. </Association>
  6416. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  6417. <End Role="FmsMaterialCodeAdjustmentType" Type="Self.FmsMaterialCodeAdjustmentType" Multiplicity="1" />
  6418. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6419. <ReferentialConstraint>
  6420. <Principal Role="FmsMaterialCodeAdjustmentType">
  6421. <PropertyRef Name="AdjustmentTypeId" />
  6422. </Principal>
  6423. <Dependent Role="FmsMaterialRelease">
  6424. <PropertyRef Name="AdjustmentTypeId" />
  6425. </Dependent>
  6426. </ReferentialConstraint>
  6427. </Association>
  6428. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  6429. <End Role="FmsMaterialCodeReleaseType" Type="Self.FmsMaterialCodeReleaseType" Multiplicity="1" />
  6430. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6431. <ReferentialConstraint>
  6432. <Principal Role="FmsMaterialCodeReleaseType">
  6433. <PropertyRef Name="ReleaseTypeId" />
  6434. </Principal>
  6435. <Dependent Role="FmsMaterialRelease">
  6436. <PropertyRef Name="ReleaseTypeId" />
  6437. </Dependent>
  6438. </ReferentialConstraint>
  6439. </Association>
  6440. <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
  6441. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  6442. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6443. <ReferentialConstraint>
  6444. <Principal Role="FmsWorkResult">
  6445. <PropertyRef Name="SiteId" />
  6446. <PropertyRef Name="WorkRequestId" />
  6447. </Principal>
  6448. <Dependent Role="FmsMaterialRelease">
  6449. <PropertyRef Name="SiteId" />
  6450. <PropertyRef Name="WorkRequestId" />
  6451. </Dependent>
  6452. </ReferentialConstraint>
  6453. </Association>
  6454. <Association Name="FK_FmsMaterialStored_FmsMaterial">
  6455. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6456. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6457. <ReferentialConstraint>
  6458. <Principal Role="FmsMaterial">
  6459. <PropertyRef Name="SiteId" />
  6460. <PropertyRef Name="MaterialId" />
  6461. </Principal>
  6462. <Dependent Role="FmsMaterialStored">
  6463. <PropertyRef Name="SiteId" />
  6464. <PropertyRef Name="MaterialId" />
  6465. </Dependent>
  6466. </ReferentialConstraint>
  6467. </Association>
  6468. <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  6469. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
  6470. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6471. <ReferentialConstraint>
  6472. <Principal Role="FmsMaterialPurchaseOrder">
  6473. <PropertyRef Name="SiteId" />
  6474. <PropertyRef Name="PurchaseOrderId" />
  6475. </Principal>
  6476. <Dependent Role="FmsMaterialStored">
  6477. <PropertyRef Name="SiteId" />
  6478. <PropertyRef Name="PurchaseOrderId" />
  6479. </Dependent>
  6480. </ReferentialConstraint>
  6481. </Association>
  6482. <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
  6483. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
  6484. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6485. <ReferentialConstraint>
  6486. <Principal Role="FmsMaterialWarehouse">
  6487. <PropertyRef Name="SiteId" />
  6488. <PropertyRef Name="WarehouseId" />
  6489. </Principal>
  6490. <Dependent Role="FmsMaterialStored">
  6491. <PropertyRef Name="SiteId" />
  6492. <PropertyRef Name="WarehouseId" />
  6493. </Dependent>
  6494. </ReferentialConstraint>
  6495. </Association>
  6496. <Association Name="FK_FmsMonthlyReport_CmUser">
  6497. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6498. <End Role="FmsMonthlyReport" Type="Self.FmsMonthlyReport" Multiplicity="*" />
  6499. <ReferentialConstraint>
  6500. <Principal Role="CmUser">
  6501. <PropertyRef Name="SiteId" />
  6502. <PropertyRef Name="UserId" />
  6503. </Principal>
  6504. <Dependent Role="FmsMonthlyReport">
  6505. <PropertyRef Name="SiteId" />
  6506. <PropertyRef Name="RegisterUserId" />
  6507. </Dependent>
  6508. </ReferentialConstraint>
  6509. </Association>
  6510. <Association Name="FK_FmsReport_CmBusinessField">
  6511. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6512. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6513. <ReferentialConstraint>
  6514. <Principal Role="CmBusinessField">
  6515. <PropertyRef Name="SiteId" />
  6516. <PropertyRef Name="BusinessFieldId" />
  6517. </Principal>
  6518. <Dependent Role="FmsReport">
  6519. <PropertyRef Name="SiteId" />
  6520. <PropertyRef Name="BusinessFieldId" />
  6521. </Dependent>
  6522. </ReferentialConstraint>
  6523. </Association>
  6524. <Association Name="FK_FmsReport_CmFile">
  6525. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6526. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6527. <ReferentialConstraint>
  6528. <Principal Role="CmFile">
  6529. <PropertyRef Name="SiteId" />
  6530. <PropertyRef Name="FileId" />
  6531. </Principal>
  6532. <Dependent Role="FmsReport">
  6533. <PropertyRef Name="SiteId" />
  6534. <PropertyRef Name="FileId" />
  6535. </Dependent>
  6536. </ReferentialConstraint>
  6537. </Association>
  6538. <Association Name="FK_FmsReport_CmSite">
  6539. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6540. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6541. <ReferentialConstraint>
  6542. <Principal Role="CmSite">
  6543. <PropertyRef Name="SiteId" />
  6544. </Principal>
  6545. <Dependent Role="FmsReport">
  6546. <PropertyRef Name="SiteId" />
  6547. </Dependent>
  6548. </ReferentialConstraint>
  6549. </Association>
  6550. <Association Name="FK_FmsReport_CmUser">
  6551. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6552. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6553. <ReferentialConstraint>
  6554. <Principal Role="CmUser">
  6555. <PropertyRef Name="SiteId" />
  6556. <PropertyRef Name="UserId" />
  6557. </Principal>
  6558. <Dependent Role="FmsReport">
  6559. <PropertyRef Name="SiteId" />
  6560. <PropertyRef Name="RegisterUserId" />
  6561. </Dependent>
  6562. </ReferentialConstraint>
  6563. </Association>
  6564. <Association Name="FK_FmsReport_CmUser1">
  6565. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6566. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6567. <ReferentialConstraint>
  6568. <Principal Role="CmUser">
  6569. <PropertyRef Name="SiteId" />
  6570. <PropertyRef Name="UserId" />
  6571. </Principal>
  6572. <Dependent Role="FmsReport">
  6573. <PropertyRef Name="SiteId" />
  6574. <PropertyRef Name="ConfirmUserId1" />
  6575. </Dependent>
  6576. </ReferentialConstraint>
  6577. </Association>
  6578. <Association Name="FK_FmsReport_CmUser2">
  6579. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6580. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6581. <ReferentialConstraint>
  6582. <Principal Role="CmUser">
  6583. <PropertyRef Name="SiteId" />
  6584. <PropertyRef Name="UserId" />
  6585. </Principal>
  6586. <Dependent Role="FmsReport">
  6587. <PropertyRef Name="SiteId" />
  6588. <PropertyRef Name="ConfirmUserId2" />
  6589. </Dependent>
  6590. </ReferentialConstraint>
  6591. </Association>
  6592. <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
  6593. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6594. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  6595. <ReferentialConstraint>
  6596. <Principal Role="CmFacility">
  6597. <PropertyRef Name="SiteId" />
  6598. <PropertyRef Name="FacilityCode" />
  6599. </Principal>
  6600. <Dependent Role="FmsWorkOrderToFacility">
  6601. <PropertyRef Name="SiteId" />
  6602. <PropertyRef Name="FacilityCode" />
  6603. </Dependent>
  6604. </ReferentialConstraint>
  6605. </Association>
  6606. <Association Name="FK_FmsWorkRequest_CmPartner">
  6607. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  6608. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  6609. <ReferentialConstraint>
  6610. <Principal Role="CmPartner">
  6611. <PropertyRef Name="SiteId" />
  6612. <PropertyRef Name="PartnerId" />
  6613. </Principal>
  6614. <Dependent Role="FmsWorkRequest">
  6615. <PropertyRef Name="SiteId" />
  6616. <PropertyRef Name="InspectionAgencyId" />
  6617. </Dependent>
  6618. </ReferentialConstraint>
  6619. </Association>
  6620. <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
  6621. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6622. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  6623. <ReferentialConstraint>
  6624. <Principal Role="CmFacility">
  6625. <PropertyRef Name="SiteId" />
  6626. <PropertyRef Name="FacilityCode" />
  6627. </Principal>
  6628. <Dependent Role="FmsWorkRequestToFacility">
  6629. <PropertyRef Name="SiteId" />
  6630. <PropertyRef Name="FacilityCode" />
  6631. </Dependent>
  6632. </ReferentialConstraint>
  6633. </Association>
  6634. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  6635. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6636. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6637. <ReferentialConstraint>
  6638. <Principal Role="FmsMaterial">
  6639. <PropertyRef Name="SiteId" />
  6640. <PropertyRef Name="MaterialId" />
  6641. </Principal>
  6642. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6643. <PropertyRef Name="SiteId" />
  6644. <PropertyRef Name="MaterialId" />
  6645. </Dependent>
  6646. </ReferentialConstraint>
  6647. </Association>
  6648. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  6649. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  6650. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6651. <ReferentialConstraint>
  6652. <Principal Role="FmsWorkResult">
  6653. <PropertyRef Name="SiteId" />
  6654. <PropertyRef Name="WorkRequestId" />
  6655. </Principal>
  6656. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6657. <PropertyRef Name="SiteId" />
  6658. <PropertyRef Name="WorkRequestId" />
  6659. </Dependent>
  6660. </ReferentialConstraint>
  6661. </Association>
  6662. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  6663. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1" />
  6664. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6665. <ReferentialConstraint>
  6666. <Principal Role="FmsWorkResultCheckItem">
  6667. <PropertyRef Name="CheckItemId" />
  6668. </Principal>
  6669. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6670. <PropertyRef Name="CheckItemId" />
  6671. </Dependent>
  6672. </ReferentialConstraint>
  6673. </Association>
  6674. <Association Name="FK_FmsWorkSchedule_CmPartner">
  6675. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  6676. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  6677. <ReferentialConstraint>
  6678. <Principal Role="CmPartner">
  6679. <PropertyRef Name="SiteId" />
  6680. <PropertyRef Name="PartnerId" />
  6681. </Principal>
  6682. <Dependent Role="FmsWorkSchedule">
  6683. <PropertyRef Name="SiteId" />
  6684. <PropertyRef Name="InspectionAgencyId" />
  6685. </Dependent>
  6686. </ReferentialConstraint>
  6687. </Association>
  6688. <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
  6689. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6690. <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
  6691. <ReferentialConstraint>
  6692. <Principal Role="CmFacility">
  6693. <PropertyRef Name="SiteId" />
  6694. <PropertyRef Name="FacilityCode" />
  6695. </Principal>
  6696. <Dependent Role="FmsWorkScheduleToFacility">
  6697. <PropertyRef Name="SiteId" />
  6698. <PropertyRef Name="FacilityCode" />
  6699. </Dependent>
  6700. </ReferentialConstraint>
  6701. </Association>
  6702. <EntityContainer Name="iBemsModelStoreContainer">
  6703. <EntitySet Name="BemsAlarmGroup" EntityType="Self.BemsAlarmGroup" Schema="dbo" store:Type="Tables" />
  6704. <EntitySet Name="BemsAlarmGroupUser" EntityType="Self.BemsAlarmGroupUser" Schema="dbo" store:Type="Tables" />
  6705. <EntitySet Name="BemsAlarmLog" EntityType="Self.BemsAlarmLog" Schema="dbo" store:Type="Tables" />
  6706. <EntitySet Name="BemsAlarmSetting" EntityType="Self.BemsAlarmSetting" Schema="dbo" store:Type="Tables" />
  6707. <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" Schema="dbo" store:Type="Tables" />
  6708. <EntitySet Name="BemsChartInfo" EntityType="Self.BemsChartInfo" Schema="dbo" store:Type="Tables" />
  6709. <EntitySet Name="BemsConfigData" EntityType="Self.BemsConfigData" Schema="dbo" store:Type="Tables" />
  6710. <EntitySet Name="BemsControlAHUTempConfig" EntityType="Self.BemsControlAHUTempConfig" Schema="dbo" store:Type="Tables" />
  6711. <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" Schema="dbo" store:Type="Tables" />
  6712. <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="Self.BemsEnergyConfigPercentMonth" Schema="dbo" store:Type="Tables" />
  6713. <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="Self.BemsEnergyConfigPercentWeek" Schema="dbo" store:Type="Tables" />
  6714. <EntitySet Name="BemsEnergyCost" EntityType="Self.BemsEnergyCost" Schema="dbo" store:Type="Tables" />
  6715. <EntitySet Name="BemsEnergyDaily" EntityType="Self.BemsEnergyDaily" Schema="dbo" store:Type="Tables" />
  6716. <EntitySet Name="BemsEnergyDailyRegression" EntityType="Self.BemsEnergyDailyRegression" Schema="dbo" store:Type="Tables" />
  6717. <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" Schema="dbo" store:Type="Tables" />
  6718. <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" Schema="dbo" store:Type="Tables" />
  6719. <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" Schema="dbo" store:Type="Tables" />
  6720. <EntitySet Name="BemsFloorPlan" EntityType="Self.BemsFloorPlan" Schema="dbo" store:Type="Tables" />
  6721. <EntitySet Name="BemsFloorStatus" EntityType="Self.BemsFloorStatus" Schema="dbo" store:Type="Tables" />
  6722. <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" Schema="dbo" store:Type="Tables" />
  6723. <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" Schema="dbo" store:Type="Tables" />
  6724. <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" Schema="dbo" store:Type="Tables" />
  6725. <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" Schema="dbo" store:Type="Tables" />
  6726. <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" Schema="dbo" store:Type="Tables" />
  6727. <EntitySet Name="BemsFuelType" EntityType="Self.BemsFuelType" Schema="dbo" store:Type="Tables" />
  6728. <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="Self.BemsIceThermalStorageSimulation" Schema="dbo" store:Type="Tables" />
  6729. <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" Schema="dbo" store:Type="Tables" />
  6730. <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" Schema="dbo" store:Type="Tables" />
  6731. <EntitySet Name="BemsMonitoringPointConfig" EntityType="Self.BemsMonitoringPointConfig" Schema="dbo" store:Type="Tables" />
  6732. <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="Self.BemsMonitoringPointForecastingDayAhead" Schema="dbo" store:Type="Tables" />
  6733. <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="Self.BemsMonitoringPointForecastingHourAhead" Schema="dbo" store:Type="Tables" />
  6734. <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" Schema="dbo" store:Type="Tables" />
  6735. <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="Self.BemsMonitoringPointHistory15minRawData" Schema="dbo" store:Type="Tables" />
  6736. <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" Schema="dbo" store:Type="Tables" />
  6737. <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" Schema="dbo" store:Type="Tables" />
  6738. <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" Schema="dbo" store:Type="Tables" />
  6739. <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="Self.BemsMonitoringPointWeatherForecasted" Schema="dbo" store:Type="Tables" />
  6740. <EntitySet Name="BemsNoticePriceBase" EntityType="Self.BemsNoticePriceBase" Schema="dbo" store:Type="Tables" />
  6741. <EntitySet Name="BemsNoticePriceContractType" EntityType="Self.BemsNoticePriceContractType" Schema="dbo" store:Type="Tables" />
  6742. <EntitySet Name="BemsNoticePriceDetail" EntityType="Self.BemsNoticePriceDetail" Schema="dbo" store:Type="Tables" />
  6743. <EntitySet Name="BemsPeakFacility" EntityType="Self.BemsPeakFacility" Schema="dbo" store:Type="Tables" />
  6744. <EntitySet Name="BemsPeakHistory" EntityType="Self.BemsPeakHistory" Schema="dbo" store:Type="Tables" />
  6745. <EntitySet Name="BemsPeakHistoryDaily" EntityType="Self.BemsPeakHistoryDaily" Schema="dbo" store:Type="Tables" />
  6746. <EntitySet Name="BemsPeakInfo" EntityType="Self.BemsPeakInfo" Schema="dbo" store:Type="Tables" />
  6747. <EntitySet Name="BemsPeopleIncrease" EntityType="Self.BemsPeopleIncrease" Schema="dbo" store:Type="Tables" />
  6748. <EntitySet Name="BemsPriceCode" EntityType="Self.BemsPriceCode" Schema="dbo" store:Type="Tables" />
  6749. <EntitySet Name="BemsPriceFormula" EntityType="Self.BemsPriceFormula" Schema="dbo" store:Type="Tables" />
  6750. <EntitySet Name="BemsPriceMeta" EntityType="Self.BemsPriceMeta" Schema="dbo" store:Type="Tables" />
  6751. <EntitySet Name="BemsPriceType" EntityType="Self.BemsPriceType" Schema="dbo" store:Type="Tables" />
  6752. <EntitySet Name="BemsRentalRate" EntityType="Self.BemsRentalRate" Schema="dbo" store:Type="Tables" />
  6753. <EntitySet Name="BemsReportFormat" EntityType="Self.BemsReportFormat" Schema="dbo" store:Type="Tables" />
  6754. <EntitySet Name="BemsReportHistory" EntityType="Self.BemsReportHistory" Schema="dbo" store:Type="Tables" />
  6755. <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" Schema="dbo" store:Type="Tables" />
  6756. <EntitySet Name="BemsSitePrice" EntityType="Self.BemsSitePrice" Schema="dbo" store:Type="Tables" />
  6757. <EntitySet Name="BemsSitePriceHistory" EntityType="Self.BemsSitePriceHistory" Schema="dbo" store:Type="Tables" />
  6758. <EntitySet Name="CmAlarmAdmin" EntityType="Self.CmAlarmAdmin" Schema="dbo" store:Type="Tables" />
  6759. <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" Schema="dbo" store:Type="Tables" />
  6760. <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" Schema="dbo" store:Type="Tables" />
  6761. <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" Schema="dbo" store:Type="Tables" />
  6762. <EntitySet Name="CmCompany" EntityType="Self.CmCompany" Schema="dbo" store:Type="Tables" />
  6763. <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" Schema="dbo" store:Type="Tables" />
  6764. <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" Schema="dbo" store:Type="Tables" />
  6765. <EntitySet Name="CmFacility" EntityType="Self.CmFacility" Schema="dbo" store:Type="Tables" />
  6766. <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" Schema="dbo" store:Type="Tables" />
  6767. <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" Schema="dbo" store:Type="Tables" />
  6768. <EntitySet Name="CmFile" EntityType="Self.CmFile" Schema="dbo" store:Type="Tables" />
  6769. <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" Schema="dbo" store:Type="Tables" />
  6770. <EntitySet Name="CmFloor" EntityType="Self.CmFloor" Schema="dbo" store:Type="Tables" />
  6771. <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" Schema="dbo" store:Type="Tables" />
  6772. <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" Schema="dbo" store:Type="Tables" />
  6773. <EntitySet Name="CmHolidayWeekend" EntityType="Self.CmHolidayWeekend" Schema="dbo" store:Type="Tables" />
  6774. <EntitySet Name="CmMenu" EntityType="Self.CmMenu" Schema="dbo" store:Type="Tables" />
  6775. <EntitySet Name="CmPartner" EntityType="Self.CmPartner" Schema="dbo" store:Type="Tables" />
  6776. <EntitySet Name="CmPartnerType" EntityType="Self.CmPartnerType" Schema="dbo" store:Type="Tables" />
  6777. <EntitySet Name="CmPatrolCourse" EntityType="Self.CmPatrolCourse" Schema="dbo" store:Type="Tables" />
  6778. <EntitySet Name="CmPatrolCoursePos" EntityType="Self.CmPatrolCoursePos" Schema="dbo" store:Type="Tables" />
  6779. <EntitySet Name="CmPatrolGroup" EntityType="Self.CmPatrolGroup" Schema="dbo" store:Type="Tables" />
  6780. <EntitySet Name="CmPatrolGroupUser" EntityType="Self.CmPatrolGroupUser" Schema="dbo" store:Type="Tables" />
  6781. <EntitySet Name="CmPatrolHistory" EntityType="Self.CmPatrolHistory" Schema="dbo" store:Type="Tables" />
  6782. <EntitySet Name="CmPatrolHistoryPos" EntityType="Self.CmPatrolHistoryPos" Schema="dbo" store:Type="Tables" />
  6783. <EntitySet Name="CmPatrolPlan" EntityType="Self.CmPatrolPlan" Schema="dbo" store:Type="Tables" />
  6784. <EntitySet Name="CmPatrolPos" EntityType="Self.CmPatrolPos" Schema="dbo" store:Type="Tables" />
  6785. <EntitySet Name="CmPatrolSchedule" EntityType="Self.CmPatrolSchedule" Schema="dbo" store:Type="Tables" />
  6786. <EntitySet Name="CmPatrolType" EntityType="Self.CmPatrolType" Schema="dbo" store:Type="Tables" />
  6787. <EntitySet Name="CmPosition" EntityType="Self.CmPosition" Schema="dbo" store:Type="Tables" />
  6788. <EntitySet Name="CmServiceEnergyCalcDay" EntityType="Self.CmServiceEnergyCalcDay" Schema="dbo" store:Type="Tables" />
  6789. <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="Self.CmServiceEnergyCalcMonth" Schema="dbo" store:Type="Tables" />
  6790. <EntitySet Name="CmSite" EntityType="Self.CmSite" Schema="dbo" store:Type="Tables" />
  6791. <EntitySet Name="CmUser" EntityType="Self.CmUser" Schema="dbo" store:Type="Tables" />
  6792. <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" Schema="dbo" store:Type="Tables" />
  6793. <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" Schema="dbo" store:Type="Tables" />
  6794. <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" Schema="dbo" store:Type="Tables" />
  6795. <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" Schema="dbo" store:Type="Tables" />
  6796. <EntitySet Name="CmZone" EntityType="Self.CmZone" Schema="dbo" store:Type="Tables" />
  6797. <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" Schema="dbo" store:Type="Tables" />
  6798. <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" Schema="dbo" store:Type="Tables" />
  6799. <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" Schema="dbo" store:Type="Tables" />
  6800. <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" Schema="dbo" store:Type="Tables" />
  6801. <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" Schema="dbo" store:Type="Tables" />
  6802. <EntitySet Name="FmsBudgetDetail" EntityType="Self.FmsBudgetDetail" Schema="dbo" store:Type="Tables" />
  6803. <EntitySet Name="FmsBudgetDetailExecution" EntityType="Self.FmsBudgetDetailExecution" Schema="dbo" store:Type="Tables" />
  6804. <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" Schema="dbo" store:Type="Tables" />
  6805. <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" Schema="dbo" store:Type="Tables" />
  6806. <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" Schema="dbo" store:Type="Tables" />
  6807. <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" Schema="dbo" store:Type="Tables" />
  6808. <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" Schema="dbo" store:Type="Tables" />
  6809. <EntitySet Name="FmsContract" EntityType="Self.FmsContract" Schema="dbo" store:Type="Tables" />
  6810. <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" Schema="dbo" store:Type="Tables" />
  6811. <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" Schema="dbo" store:Type="Tables" />
  6812. <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" Schema="dbo" store:Type="Tables" />
  6813. <EntitySet Name="FmsDailyCheckReport" EntityType="Self.FmsDailyCheckReport" Schema="dbo" store:Type="Tables" />
  6814. <EntitySet Name="FmsDailyReport" EntityType="Self.FmsDailyReport" Schema="dbo" store:Type="Tables" />
  6815. <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" Schema="dbo" store:Type="Tables" />
  6816. <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" Schema="dbo" store:Type="Tables" />
  6817. <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" Schema="dbo" store:Type="Tables" />
  6818. <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" Schema="dbo" store:Type="Tables" />
  6819. <EntitySet Name="FmsEquipment" EntityType="Self.FmsEquipment" Schema="dbo" store:Type="Tables" />
  6820. <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" Schema="dbo" store:Type="Tables" />
  6821. <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" Schema="dbo" store:Type="Tables" />
  6822. <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" Schema="dbo" store:Type="Tables" />
  6823. <EntitySet Name="FmsEquipmentRentInfo" EntityType="Self.FmsEquipmentRentInfo" Schema="dbo" store:Type="Tables" />
  6824. <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" Schema="dbo" store:Type="Tables" />
  6825. <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" Schema="dbo" store:Type="Tables" />
  6826. <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" Schema="dbo" store:Type="Tables" />
  6827. <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" Schema="dbo" store:Type="Tables" />
  6828. <EntitySet Name="FmsFacilityOperationReport" EntityType="Self.FmsFacilityOperationReport" Schema="dbo" store:Type="Tables" />
  6829. <EntitySet Name="FmsInvestmentCost" EntityType="Self.FmsInvestmentCost" Schema="dbo" store:Type="Tables" />
  6830. <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" Schema="dbo" store:Type="Tables" />
  6831. <EntitySet Name="FmsManual" EntityType="Self.FmsManual" Schema="dbo" store:Type="Tables" />
  6832. <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" Schema="dbo" store:Type="Tables" />
  6833. <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" Schema="dbo" store:Type="Tables" />
  6834. <EntitySet Name="FmsMaterial" EntityType="Self.FmsMaterial" Schema="dbo" store:Type="Tables" />
  6835. <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" Schema="dbo" store:Type="Tables" />
  6836. <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" Schema="dbo" store:Type="Tables" />
  6837. <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" Schema="dbo" store:Type="Tables" />
  6838. <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" Schema="dbo" store:Type="Tables" />
  6839. <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" Schema="dbo" store:Type="Tables" />
  6840. <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" Schema="dbo" store:Type="Tables" />
  6841. <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" Schema="dbo" store:Type="Tables" />
  6842. <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" Schema="dbo" store:Type="Tables" />
  6843. <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" Schema="dbo" store:Type="Tables" />
  6844. <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" Schema="dbo" store:Type="Tables" />
  6845. <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" Schema="dbo" store:Type="Tables" />
  6846. <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" Schema="dbo" store:Type="Tables" />
  6847. <EntitySet Name="FmsMaterialRelease" EntityType="Self.FmsMaterialRelease" Schema="dbo" store:Type="Tables" />
  6848. <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" Schema="dbo" store:Type="Tables" />
  6849. <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" Schema="dbo" store:Type="Tables" />
  6850. <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" Schema="dbo" store:Type="Tables" />
  6851. <EntitySet Name="FmsMonthlyReport" EntityType="Self.FmsMonthlyReport" Schema="dbo" store:Type="Tables" />
  6852. <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" Schema="dbo" store:Type="Tables" />
  6853. <EntitySet Name="FmsReport" EntityType="Self.FmsReport" Schema="dbo" store:Type="Tables" />
  6854. <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" Schema="dbo" store:Type="Tables" />
  6855. <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" Schema="dbo" store:Type="Tables" />
  6856. <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" Schema="dbo" store:Type="Tables" />
  6857. <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" Schema="dbo" store:Type="Tables" />
  6858. <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" Schema="dbo" store:Type="Tables" />
  6859. <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" Schema="dbo" store:Type="Tables" />
  6860. <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" Schema="dbo" store:Type="Tables" />
  6861. <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" Schema="dbo" store:Type="Tables" />
  6862. <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" Schema="dbo" store:Type="Tables" />
  6863. <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" Schema="dbo" store:Type="Tables" />
  6864. <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" Schema="dbo" store:Type="Tables" />
  6865. <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" Schema="dbo" store:Type="Tables" />
  6866. <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" Schema="dbo" store:Type="Tables" />
  6867. <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" Schema="dbo" store:Type="Tables" />
  6868. <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" Schema="dbo" store:Type="Tables" />
  6869. <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" Schema="dbo" store:Type="Tables" />
  6870. <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" Schema="dbo" store:Type="Tables" />
  6871. <EntitySet Name="FmsWorkSchedule" EntityType="Self.FmsWorkSchedule" Schema="dbo" store:Type="Tables" />
  6872. <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" Schema="dbo" store:Type="Tables" />
  6873. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  6874. <EntitySet Name="WeatherDongNaeForecast" EntityType="Self.WeatherDongNaeForecast" Schema="dbo" store:Type="Tables" />
  6875. <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="Self.FK__BemsEnerg__SiteI__7954A4F6">
  6876. <End Role="CmSite" EntitySet="CmSite" />
  6877. <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
  6878. </AssociationSet>
  6879. <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="Self.FK__BemsEnerg__SiteI__7C3111A1">
  6880. <End Role="CmSite" EntitySet="CmSite" />
  6881. <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
  6882. </AssociationSet>
  6883. <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="Self.FK__BemsEnergyDaily__BemsFuelType">
  6884. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6885. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6886. </AssociationSet>
  6887. <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="Self.FK__BemsEnergyDaily__BemsServiceType">
  6888. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6889. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6890. </AssociationSet>
  6891. <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="Self.FK__BemsEnergyDaily__CmBuilding">
  6892. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6893. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6894. </AssociationSet>
  6895. <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="Self.FK__BemsFactorCo2__BemsFuelType">
  6896. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6897. <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
  6898. </AssociationSet>
  6899. <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="Self.FK__BemsFactorToe__BemsFuelType">
  6900. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6901. <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
  6902. </AssociationSet>
  6903. <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
  6904. <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
  6905. <End Role="BemsFormula" EntitySet="BemsFormula" />
  6906. </AssociationSet>
  6907. <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
  6908. <End Role="BemsFormula" EntitySet="BemsFormula" />
  6909. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  6910. </AssociationSet>
  6911. <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
  6912. <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
  6913. <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
  6914. </AssociationSet>
  6915. <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
  6916. <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
  6917. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6918. </AssociationSet>
  6919. <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
  6920. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6921. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6922. </AssociationSet>
  6923. <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="Self.FK__BemsMonitoringPoint__BemsFuelType">
  6924. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6925. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6926. </AssociationSet>
  6927. <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
  6928. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6929. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6930. </AssociationSet>
  6931. <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
  6932. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6933. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6934. </AssociationSet>
  6935. <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
  6936. <End Role="CmFloor" EntitySet="CmFloor" />
  6937. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6938. </AssociationSet>
  6939. <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
  6940. <End Role="CmZone" EntitySet="CmZone" />
  6941. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6942. </AssociationSet>
  6943. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
  6944. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6945. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6946. </AssociationSet>
  6947. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFuelType">
  6948. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6949. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6950. </AssociationSet>
  6951. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
  6952. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6953. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6954. </AssociationSet>
  6955. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  6956. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6957. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  6958. </AssociationSet>
  6959. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  6960. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6961. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  6962. </AssociationSet>
  6963. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  6964. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6965. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  6966. </AssociationSet>
  6967. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  6968. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6969. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  6970. </AssociationSet>
  6971. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  6972. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6973. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  6974. </AssociationSet>
  6975. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  6976. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6977. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  6978. </AssociationSet>
  6979. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  6980. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6981. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  6982. </AssociationSet>
  6983. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  6984. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6985. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  6986. </AssociationSet>
  6987. <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  6988. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6989. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6990. </AssociationSet>
  6991. <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="Self.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  6992. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  6993. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  6994. </AssociationSet>
  6995. <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="Self.FK__BemsNoticePriceContractType__BemsFuelType">
  6996. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6997. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  6998. </AssociationSet>
  6999. <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="Self.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  7000. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  7001. <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
  7002. </AssociationSet>
  7003. <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
  7004. <End Role="CmCompanyType" EntitySet="CmCompanyType" />
  7005. <End Role="CmCompany" EntitySet="CmCompany" />
  7006. </AssociationSet>
  7007. <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="Self.FK__CmCompany__SiteI__336AA144">
  7008. <End Role="CmSite" EntitySet="CmSite" />
  7009. <End Role="CmCompany" EntitySet="CmCompany" />
  7010. </AssociationSet>
  7011. <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
  7012. <End Role="CmCompany" EntitySet="CmCompany" />
  7013. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7014. </AssociationSet>
  7015. <AssociationSet Name="FK__CmFacility__CmFacility" Association="Self.FK__CmFacility__CmFacility">
  7016. <End Role="CmFacility" EntitySet="CmFacility" />
  7017. <End Role="CmFacility1" EntitySet="CmFacility" />
  7018. </AssociationSet>
  7019. <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="Self.FK__CmFacilityFile__7720AD13">
  7020. <End Role="CmFacility" EntitySet="CmFacility" />
  7021. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  7022. </AssociationSet>
  7023. <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
  7024. <End Role="CmFile" EntitySet="CmFile" />
  7025. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  7026. </AssociationSet>
  7027. <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="Self.FK__CmFacilityManual__79FD19BE">
  7028. <End Role="CmFacility" EntitySet="CmFacility" />
  7029. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  7030. </AssociationSet>
  7031. <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
  7032. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7033. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  7034. </AssociationSet>
  7035. <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
  7036. <End Role="CmFileCategory" EntitySet="CmFileCategory" />
  7037. <End Role="CmFile" EntitySet="CmFile" />
  7038. </AssociationSet>
  7039. <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="Self.FK__CmFile__SiteId__2759D01A">
  7040. <End Role="CmSite" EntitySet="CmSite" />
  7041. <End Role="CmFile" EntitySet="CmFile" />
  7042. </AssociationSet>
  7043. <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
  7044. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7045. <End Role="CmFloor" EntitySet="CmFloor" />
  7046. </AssociationSet>
  7047. <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="Self.FK__CmHoliday__SiteI__0BB1B5A5">
  7048. <End Role="CmSite" EntitySet="CmSite" />
  7049. <End Role="CmHoliday" EntitySet="CmHoliday" />
  7050. </AssociationSet>
  7051. <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="Self.FK__CmHoliday__SiteI__0D99FE17">
  7052. <End Role="CmSite" EntitySet="CmSite" />
  7053. <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
  7054. </AssociationSet>
  7055. <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="Self.FK__CmHoliday__SiteI__10766AC2">
  7056. <End Role="CmSite" EntitySet="CmSite" />
  7057. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  7058. </AssociationSet>
  7059. <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="Self.FK__CmHoliday__SiteI__65AC084E">
  7060. <End Role="CmSite" EntitySet="CmSite" />
  7061. <End Role="CmHoliday" EntitySet="CmHoliday" />
  7062. </AssociationSet>
  7063. <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="Self.FK__CmHoliday__SiteI__66A02C87">
  7064. <End Role="CmSite" EntitySet="CmSite" />
  7065. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  7066. </AssociationSet>
  7067. <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
  7068. <End Role="CmFloor" EntitySet="CmFloor" />
  7069. <End Role="CmZone" EntitySet="CmZone" />
  7070. </AssociationSet>
  7071. <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="Self.FK__CmPositio__SiteI__6A70BD6B">
  7072. <End Role="CmSite" EntitySet="CmSite" />
  7073. <End Role="CmPosition" EntitySet="CmPosition" />
  7074. </AssociationSet>
  7075. <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="Self.FK__CmUserGro__SiteI__53D770D6">
  7076. <End Role="CmSite" EntitySet="CmSite" />
  7077. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7078. </AssociationSet>
  7079. <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
  7080. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7081. <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
  7082. </AssociationSet>
  7083. <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="Self.FK__CmUserPos__SiteI__44952D46">
  7084. <End Role="CmSite" EntitySet="CmSite" />
  7085. <End Role="CmPosition" EntitySet="CmPosition" />
  7086. </AssociationSet>
  7087. <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
  7088. <End Role="CmUser" EntitySet="CmUser" />
  7089. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  7090. </AssociationSet>
  7091. <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
  7092. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7093. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  7094. </AssociationSet>
  7095. <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
  7096. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7097. <End Role="CmZone" EntitySet="CmZone" />
  7098. </AssociationSet>
  7099. <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="Self.FK__FmsDrawin__SiteI__6B79F03D">
  7100. <End Role="CmSite" EntitySet="CmSite" />
  7101. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7102. </AssociationSet>
  7103. <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="Self.FK__FmsDrawin__SiteI__6C6E1476">
  7104. <End Role="CmSite" EntitySet="CmSite" />
  7105. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7106. </AssociationSet>
  7107. <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="Self.FK__FmsDrawin__SiteI__6D6238AF">
  7108. <End Role="CmSite" EntitySet="CmSite" />
  7109. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7110. </AssociationSet>
  7111. <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="Self.FK__FmsDrawin__SiteI__6F357288">
  7112. <End Role="CmSite" EntitySet="CmSite" />
  7113. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7114. </AssociationSet>
  7115. <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="Self.FK__FmsDrawin__SiteI__702996C1">
  7116. <End Role="CmSite" EntitySet="CmSite" />
  7117. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7118. </AssociationSet>
  7119. <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
  7120. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7121. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7122. </AssociationSet>
  7123. <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
  7124. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7125. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7126. </AssociationSet>
  7127. <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
  7128. <End Role="CmFile" EntitySet="CmFile" />
  7129. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7130. </AssociationSet>
  7131. <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
  7132. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7133. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7134. </AssociationSet>
  7135. <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
  7136. <End Role="CmUser" EntitySet="CmUser" />
  7137. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7138. </AssociationSet>
  7139. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  7140. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7141. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7142. </AssociationSet>
  7143. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  7144. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7145. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7146. </AssociationSet>
  7147. <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="Self.FK__FmsFacilityCodeClass__CmSite">
  7148. <End Role="CmSite" EntitySet="CmSite" />
  7149. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  7150. </AssociationSet>
  7151. <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  7152. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  7153. <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
  7154. </AssociationSet>
  7155. <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="Self.FK__FmsFacilityOpera__725BF7F6">
  7156. <End Role="CmFacility" EntitySet="CmFacility" />
  7157. <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
  7158. </AssociationSet>
  7159. <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
  7160. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7161. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7162. </AssociationSet>
  7163. <AssociationSet Name="FK__FmsLicense__CmSite" Association="Self.FK__FmsLicense__CmSite">
  7164. <End Role="CmSite" EntitySet="CmSite" />
  7165. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7166. </AssociationSet>
  7167. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  7168. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7169. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7170. </AssociationSet>
  7171. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  7172. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7173. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7174. </AssociationSet>
  7175. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  7176. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7177. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7178. </AssociationSet>
  7179. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
  7180. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7181. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  7182. </AssociationSet>
  7183. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="Self.FK__FmsMaterialCarriedForward__CmSite">
  7184. <End Role="CmSite" EntitySet="CmSite" />
  7185. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  7186. </AssociationSet>
  7187. <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="Self.FK__FmsMaterialCodeClass__CmSite">
  7188. <End Role="CmSite" EntitySet="CmSite" />
  7189. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7190. </AssociationSet>
  7191. <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  7192. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7193. <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
  7194. </AssociationSet>
  7195. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
  7196. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7197. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7198. </AssociationSet>
  7199. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="Self.FK__FmsMaterialCodeLocation__CmSite">
  7200. <End Role="CmSite" EntitySet="CmSite" />
  7201. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7202. </AssociationSet>
  7203. <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="Self.FK__FmsMaterialCodeType__CmSite">
  7204. <End Role="CmSite" EntitySet="CmSite" />
  7205. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  7206. </AssociationSet>
  7207. <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
  7208. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7209. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7210. </AssociationSet>
  7211. <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="Self.FK__FmsMaterialOrder__CmSite">
  7212. <End Role="CmSite" EntitySet="CmSite" />
  7213. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7214. </AssociationSet>
  7215. <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
  7216. <End Role="CmUser" EntitySet="CmUser" />
  7217. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7218. </AssociationSet>
  7219. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
  7220. <End Role="CmFile" EntitySet="CmFile" />
  7221. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7222. </AssociationSet>
  7223. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  7224. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7225. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7226. </AssociationSet>
  7227. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  7228. <End Role="CmUser" EntitySet="CmUser" />
  7229. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7230. </AssociationSet>
  7231. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  7232. <End Role="CmUser" EntitySet="CmUser" />
  7233. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7234. </AssociationSet>
  7235. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
  7236. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7237. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7238. </AssociationSet>
  7239. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="Self.FK__FmsMaterialPurchasingRequest__CmSite">
  7240. <End Role="CmSite" EntitySet="CmSite" />
  7241. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7242. </AssociationSet>
  7243. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  7244. <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
  7245. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7246. </AssociationSet>
  7247. <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
  7248. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7249. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7250. </AssociationSet>
  7251. <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="Self.FK__FmsMaterialStored__CmSite">
  7252. <End Role="CmSite" EntitySet="CmSite" />
  7253. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7254. </AssociationSet>
  7255. <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
  7256. <End Role="CmUser" EntitySet="CmUser" />
  7257. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7258. </AssociationSet>
  7259. <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  7260. <End Role="CmUser" EntitySet="CmUser" />
  7261. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7262. </AssociationSet>
  7263. <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="Self.FK__FmsMaterialTradeCompany__CmSite">
  7264. <End Role="CmSite" EntitySet="CmSite" />
  7265. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7266. </AssociationSet>
  7267. <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
  7268. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7269. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7270. </AssociationSet>
  7271. <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="Self.FK__FmsMaterialWarehouse__CmSite">
  7272. <End Role="CmSite" EntitySet="CmSite" />
  7273. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7274. </AssociationSet>
  7275. <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="Self.FK__FmsWorkCodeCauseClass__CmSite">
  7276. <End Role="CmSite" EntitySet="CmSite" />
  7277. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  7278. </AssociationSet>
  7279. <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="Self.FK__FmsWorkCodeCycleUnit__CmSite">
  7280. <End Role="CmSite" EntitySet="CmSite" />
  7281. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7282. </AssociationSet>
  7283. <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="Self.FK__FmsWorkCodeEmergency__CmSite">
  7284. <End Role="CmSite" EntitySet="CmSite" />
  7285. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  7286. </AssociationSet>
  7287. <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="Self.FK__FmsWorkCodeHolidayWorkType__CmSite">
  7288. <End Role="CmSite" EntitySet="CmSite" />
  7289. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  7290. </AssociationSet>
  7291. <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="Self.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  7292. <End Role="CmSite" EntitySet="CmSite" />
  7293. <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
  7294. </AssociationSet>
  7295. <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
  7296. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7297. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7298. </AssociationSet>
  7299. <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="Self.FK__FmsWorkOrder__CmSite">
  7300. <End Role="CmSite" EntitySet="CmSite" />
  7301. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7302. </AssociationSet>
  7303. <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
  7304. <End Role="CmUser" EntitySet="CmUser" />
  7305. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7306. </AssociationSet>
  7307. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
  7308. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  7309. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7310. </AssociationSet>
  7311. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
  7312. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7313. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7314. </AssociationSet>
  7315. <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
  7316. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7317. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  7318. </AssociationSet>
  7319. <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
  7320. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7321. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7322. </AssociationSet>
  7323. <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="Self.FK__FmsWorkRequest__CmSite">
  7324. <End Role="CmSite" EntitySet="CmSite" />
  7325. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7326. </AssociationSet>
  7327. <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
  7328. <End Role="CmUser" EntitySet="CmUser" />
  7329. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7330. </AssociationSet>
  7331. <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  7332. <End Role="CmUser" EntitySet="CmUser" />
  7333. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7334. </AssociationSet>
  7335. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
  7336. <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
  7337. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7338. </AssociationSet>
  7339. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
  7340. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7341. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7342. </AssociationSet>
  7343. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="Self.FK__FmsWorkRequest__FmsWorkSchedule">
  7344. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7345. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7346. </AssociationSet>
  7347. <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
  7348. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7349. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  7350. </AssociationSet>
  7351. <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
  7352. <End Role="CmUser" EntitySet="CmUser" />
  7353. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7354. </AssociationSet>
  7355. <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  7356. <End Role="CmUser" EntitySet="CmUser" />
  7357. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7358. </AssociationSet>
  7359. <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
  7360. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  7361. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7362. </AssociationSet>
  7363. <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
  7364. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7365. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7366. </AssociationSet>
  7367. <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
  7368. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7369. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7370. </AssociationSet>
  7371. <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="Self.FK__FmsWorkResultCheckItem__CmFacility">
  7372. <End Role="CmFacility" EntitySet="CmFacility" />
  7373. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7374. </AssociationSet>
  7375. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  7376. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7377. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7378. </AssociationSet>
  7379. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
  7380. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7381. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7382. </AssociationSet>
  7383. <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
  7384. <End Role="CmFile" EntitySet="CmFile" />
  7385. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  7386. </AssociationSet>
  7387. <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
  7388. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7389. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  7390. </AssociationSet>
  7391. <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
  7392. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7393. <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
  7394. </AssociationSet>
  7395. <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="Self.FK__FmsWorkResultToFacility__CmFacility">
  7396. <End Role="CmFacility" EntitySet="CmFacility" />
  7397. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  7398. </AssociationSet>
  7399. <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
  7400. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7401. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  7402. </AssociationSet>
  7403. <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="Self.FK__FmsWorkSchedule__CmBusinessField">
  7404. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7405. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7406. </AssociationSet>
  7407. <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="Self.FK__FmsWorkSchedule__CmUser">
  7408. <End Role="CmUser" EntitySet="CmUser" />
  7409. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7410. </AssociationSet>
  7411. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  7412. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7413. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7414. </AssociationSet>
  7415. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  7416. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  7417. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7418. </AssociationSet>
  7419. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  7420. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7421. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7422. </AssociationSet>
  7423. <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  7424. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7425. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  7426. </AssociationSet>
  7427. <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="Self.FK_BemsAlarmLog_BemsAlarmSetting">
  7428. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7429. <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
  7430. </AssociationSet>
  7431. <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="Self.FK_BemsAlarmSetting_BemsFacilityType">
  7432. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7433. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7434. </AssociationSet>
  7435. <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="Self.FK_BemsAlarmSetting_CmFacility">
  7436. <End Role="CmFacility" EntitySet="CmFacility" />
  7437. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7438. </AssociationSet>
  7439. <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="Self.FK_BemsAlarmSetting_CmSite1">
  7440. <End Role="CmSite" EntitySet="CmSite" />
  7441. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7442. </AssociationSet>
  7443. <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="Self.FK_BemsChartInfo_BemsFacilityType">
  7444. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7445. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  7446. </AssociationSet>
  7447. <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="Self.FK_BemsChartInfo_CmSite">
  7448. <End Role="CmSite" EntitySet="CmSite" />
  7449. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  7450. </AssociationSet>
  7451. <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
  7452. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7453. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  7454. </AssociationSet>
  7455. <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
  7456. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7457. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  7458. </AssociationSet>
  7459. <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="Self.FK_BemsEnergyCost_CmFacility">
  7460. <End Role="CmFacility" EntitySet="CmFacility" />
  7461. <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
  7462. </AssociationSet>
  7463. <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="Self.FK_BemsEnergyDailyRegression_CmSite">
  7464. <End Role="CmSite" EntitySet="CmSite" />
  7465. <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
  7466. </AssociationSet>
  7467. <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="Self.FK_BemsFormulaParameter_CmFacility">
  7468. <End Role="CmFacility" EntitySet="CmFacility" />
  7469. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  7470. </AssociationSet>
  7471. <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
  7472. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7473. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7474. </AssociationSet>
  7475. <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="Self.FK_BemsMonitoringPoint_CmFacility">
  7476. <End Role="CmFacility" EntitySet="CmFacility" />
  7477. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7478. </AssociationSet>
  7479. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="Self.FK_BemsMonitoringPointConfig_BemsFacilityType1">
  7480. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7481. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  7482. </AssociationSet>
  7483. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="Self.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  7484. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7485. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  7486. </AssociationSet>
  7487. <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="Self.FK_BemsPeakFacility_CmFacility">
  7488. <End Role="CmFacility" EntitySet="CmFacility" />
  7489. <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
  7490. </AssociationSet>
  7491. <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="Self.FK_BemsPeakHIstory_CmSite">
  7492. <End Role="CmSite" EntitySet="CmSite" />
  7493. <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
  7494. </AssociationSet>
  7495. <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="Self.FK_BemsPeakInfo_CmSite">
  7496. <End Role="CmSite" EntitySet="CmSite" />
  7497. <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
  7498. </AssociationSet>
  7499. <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="Self.FK_BemsPeopleIncrease_CmSite">
  7500. <End Role="CmSite" EntitySet="CmSite" />
  7501. <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
  7502. </AssociationSet>
  7503. <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="Self.FK_BemsPriceCode_BemsFuelType">
  7504. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7505. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7506. </AssociationSet>
  7507. <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="Self.FK_BemsPriceFormula_BemsFormula">
  7508. <End Role="BemsFormula" EntitySet="BemsFormula" />
  7509. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  7510. </AssociationSet>
  7511. <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="Self.FK_BemsPriceFormula_BemsPriceType">
  7512. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7513. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  7514. </AssociationSet>
  7515. <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="Self.FK_BemsPriceMeta_BemsPriceType">
  7516. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7517. <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
  7518. </AssociationSet>
  7519. <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="Self.FK_BemsPriceType_BemsFuelType1">
  7520. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7521. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7522. </AssociationSet>
  7523. <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="Self.FK_BemsRentalRate_CmSite">
  7524. <End Role="CmSite" EntitySet="CmSite" />
  7525. <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
  7526. </AssociationSet>
  7527. <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="Self.FK_BemsSitePrice_BemsFuelType">
  7528. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7529. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7530. </AssociationSet>
  7531. <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="Self.FK_BemsSitePrice_BemsPriceCode">
  7532. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7533. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7534. </AssociationSet>
  7535. <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="Self.FK_BemsSitePrice_BemsPriceType">
  7536. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7537. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7538. </AssociationSet>
  7539. <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="Self.FK_BemsSitePrice_CmSite1">
  7540. <End Role="CmSite" EntitySet="CmSite" />
  7541. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7542. </AssociationSet>
  7543. <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="Self.FK_BemsSitePriceHistory_BemsFuelType">
  7544. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7545. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7546. </AssociationSet>
  7547. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="Self.FK_BemsSitePriceHistory_BemsPriceCode">
  7548. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7549. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7550. </AssociationSet>
  7551. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="Self.FK_BemsSitePriceHistory_BemsPriceType">
  7552. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7553. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7554. </AssociationSet>
  7555. <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="Self.FK_BemsSitePriceHistory_CmSite">
  7556. <End Role="CmSite" EntitySet="CmSite" />
  7557. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7558. </AssociationSet>
  7559. <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
  7560. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7561. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7562. </AssociationSet>
  7563. <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
  7564. <End Role="CmFile" EntitySet="CmFile" />
  7565. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7566. </AssociationSet>
  7567. <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
  7568. <End Role="CmUser" EntitySet="CmUser" />
  7569. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7570. </AssociationSet>
  7571. <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="Self.FK_CmFacilityTempSet_CmFacility">
  7572. <End Role="CmFacility" EntitySet="CmFacility" />
  7573. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  7574. </AssociationSet>
  7575. <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="Self.FK_CmFacilityTempSet_CmSite">
  7576. <End Role="CmSite" EntitySet="CmSite" />
  7577. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  7578. </AssociationSet>
  7579. <AssociationSet Name="FK_CmMenu_CmSite" Association="Self.FK_CmMenu_CmSite">
  7580. <End Role="CmSite" EntitySet="CmSite" />
  7581. <End Role="CmMenu" EntitySet="CmMenu" />
  7582. </AssociationSet>
  7583. <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="Self.FK_CmPartnerType_CmPartner">
  7584. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  7585. <End Role="CmPartner" EntitySet="CmPartner" />
  7586. </AssociationSet>
  7587. <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="Self.FK_CmPatrolCourse_CmSite">
  7588. <End Role="CmSite" EntitySet="CmSite" />
  7589. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7590. </AssociationSet>
  7591. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="Self.FK_CmPatrolCoursePos_CmPatrolCourse">
  7592. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7593. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  7594. </AssociationSet>
  7595. <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="Self.FK_CmPatrolCoursePos_CmSite">
  7596. <End Role="CmSite" EntitySet="CmSite" />
  7597. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  7598. </AssociationSet>
  7599. <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="Self.FK_CmPatrolGroup_CmSite">
  7600. <End Role="CmSite" EntitySet="CmSite" />
  7601. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7602. </AssociationSet>
  7603. <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="Self.FK_CmPatrolGroupUser_CmPatrolGroup">
  7604. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7605. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  7606. </AssociationSet>
  7607. <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="Self.FK_CmPatrolGroupUser_CmUser">
  7608. <End Role="CmUser" EntitySet="CmUser" />
  7609. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  7610. </AssociationSet>
  7611. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="Self.FK_CmPatrolHistory_CmPatrolSchedule">
  7612. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7613. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7614. </AssociationSet>
  7615. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="Self.FK_CmPatrolHistory_CmPatrolType">
  7616. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7617. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7618. </AssociationSet>
  7619. <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="Self.FK_CmPatrolHistory_CmSite">
  7620. <End Role="CmSite" EntitySet="CmSite" />
  7621. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7622. </AssociationSet>
  7623. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="Self.FK_CmPatrolHistoryPos_CmPatrolPos">
  7624. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7625. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7626. </AssociationSet>
  7627. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="Self.FK_CmPatrolHistoryPos_CmPatrolType">
  7628. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7629. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7630. </AssociationSet>
  7631. <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="Self.FK_CmPatrolHistoryPos_CmSite">
  7632. <End Role="CmSite" EntitySet="CmSite" />
  7633. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7634. </AssociationSet>
  7635. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="Self.FK_CmPatrolPlan_CmPatrolCourse">
  7636. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7637. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7638. </AssociationSet>
  7639. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="Self.FK_CmPatrolPlan_CmPatrolGroup">
  7640. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7641. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7642. </AssociationSet>
  7643. <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="Self.FK_CmPatrolPlan_CmSite">
  7644. <End Role="CmSite" EntitySet="CmSite" />
  7645. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7646. </AssociationSet>
  7647. <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="Self.FK_CmPatrolPos_CmBuilding">
  7648. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7649. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7650. </AssociationSet>
  7651. <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="Self.FK_CmPatrolPos_CmFloor">
  7652. <End Role="CmFloor" EntitySet="CmFloor" />
  7653. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7654. </AssociationSet>
  7655. <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="Self.FK_CmPatrolPos_CmSite">
  7656. <End Role="CmSite" EntitySet="CmSite" />
  7657. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7658. </AssociationSet>
  7659. <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="Self.FK_CmPatrolSchedule_CmPatrolPlan">
  7660. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7661. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7662. </AssociationSet>
  7663. <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="Self.FK_CmPatrolSchedule_CmSite">
  7664. <End Role="CmSite" EntitySet="CmSite" />
  7665. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7666. </AssociationSet>
  7667. <AssociationSet Name="FK_CmPatrolType_CmSite" Association="Self.FK_CmPatrolType_CmSite">
  7668. <End Role="CmSite" EntitySet="CmSite" />
  7669. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7670. </AssociationSet>
  7671. <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
  7672. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7673. <End Role="CmUser" EntitySet="CmUser" />
  7674. </AssociationSet>
  7675. <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
  7676. <End Role="CmCompany" EntitySet="CmCompany" />
  7677. <End Role="CmUser" EntitySet="CmUser" />
  7678. </AssociationSet>
  7679. <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
  7680. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7681. <End Role="CmUser" EntitySet="CmUser" />
  7682. </AssociationSet>
  7683. <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
  7684. <End Role="CmPosition" EntitySet="CmPosition" />
  7685. <End Role="CmUser" EntitySet="CmUser" />
  7686. </AssociationSet>
  7687. <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
  7688. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7689. <End Role="CmUser" EntitySet="CmUser" />
  7690. </AssociationSet>
  7691. <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
  7692. <End Role="CmUser" EntitySet="CmUser" />
  7693. <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
  7694. </AssociationSet>
  7695. <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
  7696. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7697. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7698. </AssociationSet>
  7699. <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
  7700. <End Role="CmFloor" EntitySet="CmFloor" />
  7701. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7702. </AssociationSet>
  7703. <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="Self.FK_CmZoneTempHumiSet_CmSite">
  7704. <End Role="CmSite" EntitySet="CmSite" />
  7705. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7706. </AssociationSet>
  7707. <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
  7708. <End Role="CmZone" EntitySet="CmZone" />
  7709. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7710. </AssociationSet>
  7711. <AssociationSet Name="FK_FmsAccident_CmCompany" Association="Self.FK_FmsAccident_CmCompany">
  7712. <End Role="CmCompany" EntitySet="CmCompany" />
  7713. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7714. </AssociationSet>
  7715. <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
  7716. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7717. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7718. </AssociationSet>
  7719. <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
  7720. <End Role="CmFile" EntitySet="CmFile" />
  7721. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7722. </AssociationSet>
  7723. <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
  7724. <End Role="CmFile" EntitySet="CmFile" />
  7725. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7726. </AssociationSet>
  7727. <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
  7728. <End Role="CmFile" EntitySet="CmFile" />
  7729. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7730. </AssociationSet>
  7731. <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
  7732. <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
  7733. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7734. </AssociationSet>
  7735. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="Self.FK_FmsBudgetDetail_FmsBudget">
  7736. <End Role="FmsBudget" EntitySet="FmsBudget" />
  7737. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7738. </AssociationSet>
  7739. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="Self.FK_FmsBudgetDetail_FmsBudgetCodeClass">
  7740. <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
  7741. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7742. </AssociationSet>
  7743. <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="Self.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  7744. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7745. <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
  7746. </AssociationSet>
  7747. <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
  7748. <End Role="CmFile" EntitySet="CmFile" />
  7749. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7750. </AssociationSet>
  7751. <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
  7752. <End Role="CmFile" EntitySet="CmFile" />
  7753. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7754. </AssociationSet>
  7755. <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
  7756. <End Role="CmFile" EntitySet="CmFile" />
  7757. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7758. </AssociationSet>
  7759. <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="Self.FK_FmsConstruction_CmPartner">
  7760. <End Role="CmPartner" EntitySet="CmPartner" />
  7761. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7762. </AssociationSet>
  7763. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
  7764. <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
  7765. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7766. </AssociationSet>
  7767. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
  7768. <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
  7769. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7770. </AssociationSet>
  7771. <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
  7772. <End Role="CmUser" EntitySet="CmUser" />
  7773. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  7774. </AssociationSet>
  7775. <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
  7776. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7777. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  7778. </AssociationSet>
  7779. <AssociationSet Name="FK_FmsContract_CmPartner" Association="Self.FK_FmsContract_CmPartner">
  7780. <End Role="CmPartner" EntitySet="CmPartner" />
  7781. <End Role="FmsContract" EntitySet="FmsContract" />
  7782. </AssociationSet>
  7783. <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="Self.FK_FmsContract_CmPartnerType">
  7784. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  7785. <End Role="FmsContract" EntitySet="FmsContract" />
  7786. </AssociationSet>
  7787. <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="Self.FK_FmsContract_FmsContractClass">
  7788. <End Role="FmsContractClass" EntitySet="FmsContractClass" />
  7789. <End Role="FmsContract" EntitySet="FmsContract" />
  7790. </AssociationSet>
  7791. <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="Self.FK_FmsContract_FmsContractMethod">
  7792. <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
  7793. <End Role="FmsContract" EntitySet="FmsContract" />
  7794. </AssociationSet>
  7795. <AssociationSet Name="FK_FmsContract_FmsContractType" Association="Self.FK_FmsContract_FmsContractType">
  7796. <End Role="FmsContractType" EntitySet="FmsContractType" />
  7797. <End Role="FmsContract" EntitySet="FmsContract" />
  7798. </AssociationSet>
  7799. <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="Self.FK_FmsContract_FmsPaymentType">
  7800. <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
  7801. <End Role="FmsContract" EntitySet="FmsContract" />
  7802. </AssociationSet>
  7803. <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="Self.FK_FmsDailyCheckReport_CmUser">
  7804. <End Role="CmUser" EntitySet="CmUser" />
  7805. <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
  7806. </AssociationSet>
  7807. <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="Self.FK_FmsDailyReport_CmBusinessField">
  7808. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7809. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  7810. </AssociationSet>
  7811. <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="Self.FK_FmsDailyReport_CmUser">
  7812. <End Role="CmUser" EntitySet="CmUser" />
  7813. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  7814. </AssociationSet>
  7815. <AssociationSet Name="FK_FmsEquipment_CmUser" Association="Self.FK_FmsEquipment_CmUser">
  7816. <End Role="CmUser" EntitySet="CmUser" />
  7817. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7818. </AssociationSet>
  7819. <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="Self.FK_FmsEquipment_FmsEquipmentCodeType">
  7820. <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
  7821. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7822. </AssociationSet>
  7823. <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="Self.FK_FmsEquipment_FmsMaterialWarehouse">
  7824. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7825. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7826. </AssociationSet>
  7827. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="Self.FK_FmsEquipmentHistory_FmsEquipment">
  7828. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7829. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7830. </AssociationSet>
  7831. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  7832. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  7833. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7834. </AssociationSet>
  7835. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  7836. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7837. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7838. </AssociationSet>
  7839. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="Self.FK_FmsEquipmentRentInfo_CmUser">
  7840. <End Role="CmUser" EntitySet="CmUser" />
  7841. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7842. </AssociationSet>
  7843. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="Self.FK_FmsEquipmentRentInfo_CmUser1">
  7844. <End Role="CmUser" EntitySet="CmUser" />
  7845. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7846. </AssociationSet>
  7847. <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  7848. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  7849. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7850. </AssociationSet>
  7851. <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="Self.FK_FmsFacilityOperationReport_CmUser">
  7852. <End Role="CmUser" EntitySet="CmUser" />
  7853. <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
  7854. </AssociationSet>
  7855. <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
  7856. <End Role="FmsManualType" EntitySet="FmsManualType" />
  7857. <End Role="FmsManual" EntitySet="FmsManual" />
  7858. </AssociationSet>
  7859. <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
  7860. <End Role="CmFile" EntitySet="CmFile" />
  7861. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7862. </AssociationSet>
  7863. <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
  7864. <End Role="CmUser" EntitySet="CmUser" />
  7865. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7866. </AssociationSet>
  7867. <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
  7868. <End Role="FmsManual" EntitySet="FmsManual" />
  7869. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7870. </AssociationSet>
  7871. <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="Self.FK_FmsMaterial_CmBusinessField">
  7872. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7873. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7874. </AssociationSet>
  7875. <AssociationSet Name="FK_FmsMaterial_CmFile" Association="Self.FK_FmsMaterial_CmFile">
  7876. <End Role="CmFile" EntitySet="CmFile" />
  7877. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7878. </AssociationSet>
  7879. <AssociationSet Name="FK_FmsMaterial_CmSite" Association="Self.FK_FmsMaterial_CmSite">
  7880. <End Role="CmSite" EntitySet="CmSite" />
  7881. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7882. </AssociationSet>
  7883. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="Self.FK_FmsMaterial_FmsMaterialCodeLocation">
  7884. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7885. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7886. </AssociationSet>
  7887. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="Self.FK_FmsMaterial_FmsMaterialCodeType">
  7888. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  7889. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7890. </AssociationSet>
  7891. <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="Self.FK_FmsMaterial_FmsMaterialTradeCompany">
  7892. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7893. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7894. </AssociationSet>
  7895. <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="Self.FK_FmsMaterial_FmsMaterialWarehouse">
  7896. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7897. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7898. </AssociationSet>
  7899. <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  7900. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7901. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7902. </AssociationSet>
  7903. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  7904. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7905. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  7906. </AssociationSet>
  7907. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  7908. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7909. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  7910. </AssociationSet>
  7911. <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  7912. <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
  7913. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7914. </AssociationSet>
  7915. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  7916. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7917. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  7918. </AssociationSet>
  7919. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  7920. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7921. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  7922. </AssociationSet>
  7923. <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="Self.FK_FmsMaterialRelease_CmBusinessField">
  7924. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7925. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7926. </AssociationSet>
  7927. <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="Self.FK_FmsMaterialRelease_CmSite">
  7928. <End Role="CmSite" EntitySet="CmSite" />
  7929. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7930. </AssociationSet>
  7931. <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="Self.FK_FmsMaterialRelease_CmUser">
  7932. <End Role="CmUser" EntitySet="CmUser" />
  7933. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7934. </AssociationSet>
  7935. <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="Self.FK_FmsMaterialRelease_CmUser1">
  7936. <End Role="CmUser" EntitySet="CmUser" />
  7937. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7938. </AssociationSet>
  7939. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="Self.FK_FmsMaterialRelease_FmsMaterial">
  7940. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7941. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7942. </AssociationSet>
  7943. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  7944. <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
  7945. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7946. </AssociationSet>
  7947. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  7948. <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
  7949. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7950. </AssociationSet>
  7951. <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="Self.FK_FmsMaterialRelease_FmsWorkResult">
  7952. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7953. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7954. </AssociationSet>
  7955. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="Self.FK_FmsMaterialStored_FmsMaterial">
  7956. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7957. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7958. </AssociationSet>
  7959. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  7960. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7961. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7962. </AssociationSet>
  7963. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
  7964. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7965. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7966. </AssociationSet>
  7967. <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="Self.FK_FmsMonthlyReport_CmUser">
  7968. <End Role="CmUser" EntitySet="CmUser" />
  7969. <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
  7970. </AssociationSet>
  7971. <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="Self.FK_FmsReport_CmBusinessField">
  7972. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7973. <End Role="FmsReport" EntitySet="FmsReport" />
  7974. </AssociationSet>
  7975. <AssociationSet Name="FK_FmsReport_CmFile" Association="Self.FK_FmsReport_CmFile">
  7976. <End Role="CmFile" EntitySet="CmFile" />
  7977. <End Role="FmsReport" EntitySet="FmsReport" />
  7978. </AssociationSet>
  7979. <AssociationSet Name="FK_FmsReport_CmSite" Association="Self.FK_FmsReport_CmSite">
  7980. <End Role="CmSite" EntitySet="CmSite" />
  7981. <End Role="FmsReport" EntitySet="FmsReport" />
  7982. </AssociationSet>
  7983. <AssociationSet Name="FK_FmsReport_CmUser" Association="Self.FK_FmsReport_CmUser">
  7984. <End Role="CmUser" EntitySet="CmUser" />
  7985. <End Role="FmsReport" EntitySet="FmsReport" />
  7986. </AssociationSet>
  7987. <AssociationSet Name="FK_FmsReport_CmUser1" Association="Self.FK_FmsReport_CmUser1">
  7988. <End Role="CmUser" EntitySet="CmUser" />
  7989. <End Role="FmsReport" EntitySet="FmsReport" />
  7990. </AssociationSet>
  7991. <AssociationSet Name="FK_FmsReport_CmUser2" Association="Self.FK_FmsReport_CmUser2">
  7992. <End Role="CmUser" EntitySet="CmUser" />
  7993. <End Role="FmsReport" EntitySet="FmsReport" />
  7994. </AssociationSet>
  7995. <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="Self.FK_FmsWorkOrderToFacility_CmFacility">
  7996. <End Role="CmFacility" EntitySet="CmFacility" />
  7997. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  7998. </AssociationSet>
  7999. <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="Self.FK_FmsWorkRequest_CmPartner">
  8000. <End Role="CmPartner" EntitySet="CmPartner" />
  8001. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  8002. </AssociationSet>
  8003. <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="Self.FK_FmsWorkRequestToFacility_CmFacility">
  8004. <End Role="CmFacility" EntitySet="CmFacility" />
  8005. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  8006. </AssociationSet>
  8007. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  8008. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  8009. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  8010. </AssociationSet>
  8011. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  8012. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  8013. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  8014. </AssociationSet>
  8015. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  8016. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  8017. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  8018. </AssociationSet>
  8019. <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="Self.FK_FmsWorkSchedule_CmPartner">
  8020. <End Role="CmPartner" EntitySet="CmPartner" />
  8021. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  8022. </AssociationSet>
  8023. <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="Self.FK_FmsWorkScheduleToFacility_CmFacility">
  8024. <End Role="CmFacility" EntitySet="CmFacility" />
  8025. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  8026. </AssociationSet>
  8027. </EntityContainer>
  8028. </Schema>