e0b42ecb89ff49a1f7d42bad8f5a7ea8190d574e.svn-base 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  3. <!-- EF Runtime content -->
  4. <edmx:Runtime>
  5. <!-- SSDL content -->
  6. <edmx:StorageModels>
  7. <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">
  8. <EntityType Name="BemsAlarmGroup">
  9. <Key>
  10. <PropertyRef Name="SiteId" />
  11. <PropertyRef Name="AlarmGroupId" />
  12. </Key>
  13. <Property Name="SiteId" Type="int" Nullable="false" />
  14. <Property Name="AlarmGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  15. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  16. </EntityType>
  17. <EntityType Name="BemsAlarmGroupUser">
  18. <Key>
  19. <PropertyRef Name="SiteId" />
  20. <PropertyRef Name="AlarmGroupId" />
  21. <PropertyRef Name="UserId" />
  22. </Key>
  23. <Property Name="SiteId" Type="int" Nullable="false" />
  24. <Property Name="AlarmGroupId" Type="int" Nullable="false" />
  25. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  26. </EntityType>
  27. <EntityType Name="BemsAlarmLog">
  28. <Key>
  29. <PropertyRef Name="SiteId" />
  30. <PropertyRef Name="FacilityTypeId" />
  31. <PropertyRef Name="FacilityCode" />
  32. <PropertyRef Name="PropertyId" />
  33. <PropertyRef Name="FormulaId" />
  34. <PropertyRef Name="CreatedDateTime" />
  35. </Key>
  36. <Property Name="SiteId" Type="int" Nullable="false" />
  37. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  38. <Property Name="FacilityCode" Type="int" Nullable="false" />
  39. <Property Name="PropertyId" Type="int" Nullable="false" />
  40. <Property Name="FormulaId" Type="int" Nullable="false" />
  41. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  42. <Property Name="CurrentValue" Type="float" />
  43. <Property Name="SMSResult" Type="nvarchar" MaxLength="2" />
  44. <Property Name="EmailResult" Type="nvarchar" MaxLength="2" />
  45. <Property Name="Conform" Type="bit" />
  46. </EntityType>
  47. <EntityType Name="BemsAlarmSetting">
  48. <Key>
  49. <PropertyRef Name="SiteId" />
  50. <PropertyRef Name="FacilityTypeId" />
  51. <PropertyRef Name="FacilityCode" />
  52. <PropertyRef Name="PropertyId" />
  53. <PropertyRef Name="FormulaId" />
  54. </Key>
  55. <Property Name="SiteId" Type="int" Nullable="false" />
  56. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  57. <Property Name="FacilityCode" Type="int" Nullable="false" />
  58. <Property Name="PropertyId" Type="int" Nullable="false" />
  59. <Property Name="FormulaId" Type="int" Nullable="false" />
  60. <Property Name="FacilityName" Type="nvarchar" MaxLength="80" Nullable="false" />
  61. <Property Name="PointName" Type="nvarchar" MaxLength="64" Nullable="false" />
  62. <Property Name="UseUpperLimit" Type="bit" Nullable="false" />
  63. <Property Name="UpperLimit" Type="float" />
  64. <Property Name="UseLowerLimit" Type="bit" Nullable="false" />
  65. <Property Name="LowerLimit" Type="float" />
  66. <Property Name="UseAlarm" Type="bit" Nullable="false" />
  67. <Property Name="UseSMS" Type="bit" Nullable="false" />
  68. <Property Name="UseEmail" Type="bit" Nullable="false" />
  69. <Property Name="AlarmGroupName" Type="nvarchar" MaxLength="50" Nullable="false" />
  70. <Property Name="Content" Type="nvarchar" MaxLength="1000" />
  71. </EntityType>
  72. <EntityType Name="BemsAnalysisType">
  73. <Key>
  74. <PropertyRef Name="SiteId" />
  75. <PropertyRef Name="AnalysisType" />
  76. </Key>
  77. <Property Name="SiteId" Type="int" Nullable="false" />
  78. <Property Name="AnalysisType" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  79. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  80. </EntityType>
  81. <EntityType Name="BemsChartInfo">
  82. <Key>
  83. <PropertyRef Name="SiteId" />
  84. <PropertyRef Name="FacilityTypeId" />
  85. <PropertyRef Name="ChartId" />
  86. </Key>
  87. <Property Name="SiteId" Type="int" Nullable="false" />
  88. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  89. <Property Name="ChartId" Type="int" Nullable="false" />
  90. <Property Name="LAxTitle" Type="nvarchar" MaxLength="64" Nullable="false" />
  91. <Property Name="RAxTitle" Type="nvarchar" MaxLength="64" />
  92. <Property Name="XAxTitle" Type="nvarchar" MaxLength="64" />
  93. <Property Name="XSFmId" Type="int" />
  94. <Property Name="XSType" Type="nvarchar" MaxLength="16" />
  95. <Property Name="LSFmId1" Type="int" Nullable="false" />
  96. <Property Name="LSName1" Type="nvarchar" MaxLength="64" Nullable="false" />
  97. <Property Name="LSType1" Type="nvarchar" MaxLength="16" Nullable="false" />
  98. <Property Name="LSFmId2" Type="int" />
  99. <Property Name="LSName2" Type="nvarchar" MaxLength="64" />
  100. <Property Name="LSType2" Type="nvarchar" MaxLength="16" />
  101. <Property Name="LSFmId3" Type="int" />
  102. <Property Name="LSName3" Type="nvarchar" MaxLength="64" />
  103. <Property Name="LSType3" Type="nvarchar" MaxLength="16" />
  104. <Property Name="LSFmId4" Type="int" />
  105. <Property Name="LSName4" Type="nvarchar" MaxLength="64" />
  106. <Property Name="LSType4" Type="nvarchar" MaxLength="16" />
  107. <Property Name="RSFmId1" Type="int" />
  108. <Property Name="RSName1" Type="nvarchar" MaxLength="64" />
  109. <Property Name="RSType1" Type="nvarchar" MaxLength="16" />
  110. <Property Name="RSFmId2" Type="int" />
  111. <Property Name="RSName2" Type="nvarchar" MaxLength="64" />
  112. <Property Name="RSType2" Type="nvarchar" MaxLength="16" />
  113. <Property Name="RSFmId3" Type="int" />
  114. <Property Name="RSName3" Type="nvarchar" MaxLength="64" />
  115. <Property Name="RSType3" Type="nvarchar" MaxLength="16" />
  116. <Property Name="RSFmId4" Type="int" />
  117. <Property Name="RSName4" Type="nvarchar" MaxLength="64" />
  118. <Property Name="RSType4" Type="nvarchar" MaxLength="16" />
  119. <Property Name="Title" Type="nvarchar" MaxLength="64" Nullable="false" />
  120. <Property Name="UseX" Type="bit" />
  121. <Property Name="UseLAxMinMax" Type="bit" />
  122. <Property Name="UseRAxMinMax" Type="bit" />
  123. <Property Name="UseXAxMinMax" Type="bit" />
  124. <Property Name="LAxMin" Type="float" />
  125. <Property Name="LAxMax" Type="float" />
  126. <Property Name="RAxMin" Type="float" />
  127. <Property Name="RAxMax" Type="float" />
  128. <Property Name="XAxMin" Type="float" />
  129. <Property Name="XAxMax" Type="float" />
  130. <Property Name="Palette" Type="nvarchar" MaxLength="32" Nullable="false" />
  131. <Property Name="UseChart" Type="bit" />
  132. <Property Name="UseLCTLine" Type="bit" Nullable="false" />
  133. <Property Name="LCTLineTitle" Type="nvarchar" MaxLength="64" />
  134. <Property Name="LCTLineValue" Type="float" />
  135. <Property Name="UseRCTLine" Type="bit" Nullable="false" />
  136. <Property Name="RCTLineTitle" Type="nvarchar" MaxLength="64" />
  137. <Property Name="RCTLineValue" Type="float" />
  138. </EntityType>
  139. <EntityType Name="BemsConfigData">
  140. <Key>
  141. <PropertyRef Name="SiteId" />
  142. </Key>
  143. <Property Name="SiteId" Type="int" Nullable="false" />
  144. <Property Name="LoadDBIP" Type="nvarchar" MaxLength="50" Nullable="false" />
  145. <Property Name="LoadDBUserID" Type="nvarchar" MaxLength="50" Nullable="false" />
  146. <Property Name="LoadDBUserPW" Type="nvarchar" MaxLength="50" Nullable="false" />
  147. <Property Name="LoadDBName" Type="nvarchar" MaxLength="50" Nullable="false" />
  148. <Property Name="TargetDBIP" Type="nvarchar" MaxLength="50" Nullable="false" />
  149. <Property Name="TargetDBUserID" Type="nvarchar" MaxLength="50" Nullable="false" />
  150. <Property Name="TargetDBUserPW" Type="nvarchar" MaxLength="50" Nullable="false" />
  151. <Property Name="TargetDBName" Type="nvarchar" MaxLength="50" Nullable="false" />
  152. <Property Name="InitialDate" Type="datetime" Nullable="false" />
  153. <Property Name="LinearFilterLength" Type="nvarchar" MaxLength="50" Nullable="false" />
  154. <Property Name="NonlinearTestSize" Type="float" Nullable="false" />
  155. </EntityType>
  156. <EntityType Name="BemsControlAHUTempConfig">
  157. <Key>
  158. <PropertyRef Name="SiteId" />
  159. <PropertyRef Name="FacilityTypeId" />
  160. <PropertyRef Name="FacilityCode" />
  161. </Key>
  162. <Property Name="SiteId" Type="int" Nullable="false" />
  163. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  164. <Property Name="FacilityCode" Type="int" Nullable="false" />
  165. <Property Name="MaxTemperature" Type="float" Nullable="false" />
  166. <Property Name="MinTemperature" Type="float" Nullable="false" />
  167. </EntityType>
  168. <EntityType Name="BemsControlPointHistory">
  169. <Key>
  170. <PropertyRef Name="SiteId" />
  171. <PropertyRef Name="FacilityCode" />
  172. <PropertyRef Name="PropertyId" />
  173. <PropertyRef Name="CreateDateTime" />
  174. </Key>
  175. <Property Name="SiteId" Type="int" Nullable="false" />
  176. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  177. <Property Name="FacilityCode" Type="int" Nullable="false" />
  178. <Property Name="PropertyId" Type="int" Nullable="false" />
  179. <Property Name="CreateDateTime" Type="datetime" Nullable="false" />
  180. <Property Name="ControlValue" Type="float" Nullable="false" />
  181. <Property Name="WriteServiceName" Type="nvarchar" MaxLength="64" />
  182. <Property Name="ActionDateTime" Type="datetime" />
  183. </EntityType>
  184. <EntityType Name="BemsEnergyConfigPercentMonth">
  185. <Key>
  186. <PropertyRef Name="SiteId" />
  187. <PropertyRef Name="Year" />
  188. <PropertyRef Name="Month" />
  189. </Key>
  190. <Property Name="SiteId" Type="int" Nullable="false" />
  191. <Property Name="Year" Type="int" Nullable="false" />
  192. <Property Name="Month" Type="int" Nullable="false" />
  193. <Property Name="Electricity" Type="float" />
  194. <Property Name="Gas" Type="float" />
  195. <Property Name="Water" Type="float" />
  196. </EntityType>
  197. <EntityType Name="BemsEnergyConfigPercentWeek">
  198. <Key>
  199. <PropertyRef Name="SiteId" />
  200. <PropertyRef Name="Year" />
  201. <PropertyRef Name="Week" />
  202. </Key>
  203. <Property Name="SiteId" Type="int" Nullable="false" />
  204. <Property Name="Year" Type="int" Nullable="false" />
  205. <Property Name="Week" Type="int" Nullable="false" />
  206. <Property Name="Electricity" Type="float" />
  207. <Property Name="Gas" Type="float" />
  208. <Property Name="Water" Type="float" />
  209. </EntityType>
  210. <EntityType Name="BemsEnergyCost">
  211. <Key>
  212. <PropertyRef Name="SiteId" />
  213. <PropertyRef Name="FacilityCode" />
  214. </Key>
  215. <Property Name="SiteId" Type="int" Nullable="false" />
  216. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  217. <Property Name="FacilityCode" Type="int" Nullable="false" />
  218. <Property Name="PowerConsumption1" Type="float" />
  219. <Property Name="PowerConsumption2" Type="float" />
  220. <Property Name="GasConsumption" Type="float" />
  221. <Property Name="GasHeatQuantity" Type="float" />
  222. <Property Name="PowerPriceTypeId" Type="int" />
  223. <Property Name="GasPriceTypeId" Type="int" />
  224. <Property Name="IsUse" Type="bit" />
  225. </EntityType>
  226. <EntityType Name="BemsEnergyDaily">
  227. <Key>
  228. <PropertyRef Name="SiteId" />
  229. <PropertyRef Name="BuildingId" />
  230. <PropertyRef Name="ServiceTypeId" />
  231. <PropertyRef Name="FuelTypeId" />
  232. <PropertyRef Name="CreatedDate" />
  233. </Key>
  234. <Property Name="SiteId" Type="int" Nullable="false" />
  235. <Property Name="BuildingId" Type="int" Nullable="false" />
  236. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  237. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  238. <Property Name="CreatedDate" Type="date" Nullable="false" />
  239. <Property Name="Prediction" Type="float" />
  240. <Property Name="Measurement" Type="float" />
  241. <Property Name="Goal" Type="float" />
  242. <Property Name="Prediction_Regression" Type="float" />
  243. <Property Name="MeanT" Type="float" />
  244. <Property Name="HDD" Type="float" />
  245. <Property Name="CDD" Type="float" />
  246. </EntityType>
  247. <EntityType Name="BemsEnergyDailyRegression">
  248. <Key>
  249. <PropertyRef Name="SiteId" />
  250. </Key>
  251. <Property Name="SiteId" Type="int" Nullable="false" />
  252. <Property Name="Weekday_Power" Type="nvarchar" MaxLength="50" />
  253. <Property Name="Weekday_Power_Temp" Type="nvarchar" MaxLength="50" />
  254. <Property Name="Weekday_Gas" Type="nvarchar" MaxLength="50" />
  255. <Property Name="Weekday_Gas_Temp" Type="nvarchar" MaxLength="50" />
  256. <Property Name="Weekday_Water" Type="nvarchar" MaxLength="50" />
  257. <Property Name="Weekday_Water_Temp" Type="nvarchar" MaxLength="50" />
  258. <Property Name="Holiday_Power" Type="nvarchar" MaxLength="50" />
  259. <Property Name="Holiday_Power_Temp" Type="nvarchar" MaxLength="50" />
  260. <Property Name="Holiday_Gas" Type="nvarchar" MaxLength="50" />
  261. <Property Name="Holiday_Gas_Temp" Type="nvarchar" MaxLength="50" />
  262. <Property Name="Holiday_Water" Type="nvarchar" MaxLength="50" />
  263. <Property Name="Holiday_Water_Temp" Type="nvarchar" MaxLength="50" />
  264. <Property Name="IsRegression" Type="bit" />
  265. </EntityType>
  266. <EntityType Name="BemsFacilityType">
  267. <Key>
  268. <PropertyRef Name="FacilityTypeId" />
  269. </Key>
  270. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  271. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  272. </EntityType>
  273. <EntityType Name="BemsFactorCo2">
  274. <Key>
  275. <PropertyRef Name="FuelTypeId" />
  276. </Key>
  277. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  278. <Property Name="Factor" Type="float" Nullable="false" />
  279. </EntityType>
  280. <EntityType Name="BemsFactorToe">
  281. <Key>
  282. <PropertyRef Name="FuelTypeId" />
  283. </Key>
  284. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  285. <Property Name="TotalFactor" Type="float" Nullable="false" />
  286. <Property Name="PureFactor" Type="float" Nullable="false" />
  287. <Property Name="kcal" Type="float" />
  288. </EntityType>
  289. <EntityType Name="BemsFloorPlan">
  290. <Key>
  291. <PropertyRef Name="SiteId" />
  292. <PropertyRef Name="Name" />
  293. </Key>
  294. <Property Name="SiteId" Type="int" Nullable="false" />
  295. <Property Name="FloorId" Type="int" Nullable="false" />
  296. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  297. <Property Name="ImageFileId" Type="int" />
  298. </EntityType>
  299. <EntityType Name="BemsFloorStatus">
  300. <Key>
  301. <PropertyRef Name="SiteId" />
  302. <PropertyRef Name="FloorId" />
  303. <PropertyRef Name="FloorName" />
  304. <PropertyRef Name="ImageFileId" />
  305. <PropertyRef Name="Xvalue" />
  306. <PropertyRef Name="Yvalue" />
  307. <PropertyRef Name="PropertyId" />
  308. </Key>
  309. <Property Name="SiteId" Type="int" Nullable="false" />
  310. <Property Name="FloorId" Type="int" Nullable="false" />
  311. <Property Name="FloorName" Type="nvarchar" MaxLength="50" Nullable="false" />
  312. <Property Name="ImageFileId" Type="int" Nullable="false" />
  313. <Property Name="Xvalue" Type="int" Nullable="false" />
  314. <Property Name="Yvalue" Type="int" Nullable="false" />
  315. <Property Name="ZoneId" Type="int" />
  316. <Property Name="ServiceTypeId" Type="int" />
  317. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  318. <Property Name="FacilityCode" Type="int" Nullable="false" />
  319. <Property Name="PropertyId" Type="int" Nullable="false" />
  320. <Property Name="FacilityName" Type="nvarchar" MaxLength="64" />
  321. </EntityType>
  322. <EntityType Name="BemsFormula">
  323. <Key>
  324. <PropertyRef Name="SiteId" />
  325. <PropertyRef Name="FacilityTypeId" />
  326. <PropertyRef Name="FacilityCode" />
  327. <PropertyRef Name="FormulaId" />
  328. </Key>
  329. <Property Name="SiteId" Type="int" Nullable="false" />
  330. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  331. <Property Name="FacilityCode" Type="int" Nullable="false" />
  332. <Property Name="FormulaId" Type="int" Nullable="false" />
  333. <Property Name="Formula" Type="nvarchar" MaxLength="120" Nullable="false" />
  334. </EntityType>
  335. <EntityType Name="BemsFormulaBase">
  336. <Key>
  337. <PropertyRef Name="FacilityTypeId" />
  338. <PropertyRef Name="FormulaId" />
  339. </Key>
  340. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  341. <Property Name="FormulaId" Type="int" Nullable="false" />
  342. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  343. </EntityType>
  344. <EntityType Name="BemsFormulaParameter">
  345. <Key>
  346. <PropertyRef Name="SiteId" />
  347. <PropertyRef Name="FacilityCode" />
  348. <PropertyRef Name="FormulaId" />
  349. <PropertyRef Name="ParameterId" />
  350. </Key>
  351. <Property Name="SiteId" Type="int" Nullable="false" />
  352. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  353. <Property Name="FacilityCode" Type="int" Nullable="false" />
  354. <Property Name="FormulaId" Type="int" Nullable="false" />
  355. <Property Name="ParameterId" Type="nchar" MaxLength="1" Nullable="false" />
  356. <Property Name="ParameterFacilityCode" Type="int" Nullable="false" />
  357. <Property Name="ParameterPropertyId" Type="int" Nullable="false" />
  358. </EntityType>
  359. <EntityType Name="BemsFormulaTable">
  360. <Key>
  361. <PropertyRef Name="TableId" />
  362. </Key>
  363. <Property Name="TableId" Type="int" Nullable="false" />
  364. <Property Name="FunctionName" Type="nvarchar" MaxLength="20" Nullable="false" />
  365. <Property Name="Description" Type="nvarchar" MaxLength="80" Nullable="false" />
  366. </EntityType>
  367. <EntityType Name="BemsFormulaTableValue">
  368. <Key>
  369. <PropertyRef Name="TableId" />
  370. <PropertyRef Name="XValue" />
  371. </Key>
  372. <Property Name="TableId" Type="int" Nullable="false" />
  373. <Property Name="XValue" Type="float" Nullable="false" />
  374. <Property Name="YValue" Type="float" Nullable="false" />
  375. </EntityType>
  376. <EntityType Name="BemsFuelType">
  377. <Key>
  378. <PropertyRef Name="FuelTypeId" />
  379. </Key>
  380. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  381. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  382. </EntityType>
  383. <EntityType Name="BemsIceThermalStorageSimulation">
  384. <Key>
  385. <PropertyRef Name="SiteId" />
  386. <PropertyRef Name="FacilityCode" />
  387. <PropertyRef Name="PropertyId" />
  388. <PropertyRef Name="CreatedDateTime" />
  389. <PropertyRef Name="TargetDateTime" />
  390. <PropertyRef Name="SimulationCase" />
  391. </Key>
  392. <Property Name="SiteId" Type="int" Nullable="false" />
  393. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  394. <Property Name="FacilityCode" Type="int" Nullable="false" />
  395. <Property Name="PropertyId" Type="int" Nullable="false" />
  396. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  397. <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
  398. <Property Name="SimulationValue" Type="float" />
  399. <Property Name="SimulationCase" Type="int" Nullable="false" />
  400. </EntityType>
  401. <EntityType Name="BemsMonitoringPoint">
  402. <Key>
  403. <PropertyRef Name="SiteId" />
  404. <PropertyRef Name="FacilityCode" />
  405. <PropertyRef Name="PropertyId" />
  406. </Key>
  407. <Property Name="SiteId" Type="int" Nullable="false" />
  408. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  409. <Property Name="FacilityCode" Type="int" Nullable="false" />
  410. <Property Name="PropertyId" Type="int" Nullable="false" />
  411. <Property Name="ValueType" Type="int" Nullable="false" />
  412. <Property Name="ServiceTypeId" Type="smallint" />
  413. <Property Name="FuelTypeId" Type="smallint" />
  414. <Property Name="Name" Type="nvarchar" MaxLength="64" />
  415. <Property Name="Description" Type="nvarchar" MaxLength="256" />
  416. <Property Name="BuildingId" Type="int" />
  417. <Property Name="FloorId" Type="int" />
  418. <Property Name="ZoneId" Type="int" />
  419. </EntityType>
  420. <EntityType Name="BemsMonitoringPointBaseData">
  421. <Key>
  422. <PropertyRef Name="FacilityTypeId" />
  423. <PropertyRef Name="PropertyId" />
  424. </Key>
  425. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  426. <Property Name="PropertyId" Type="int" Nullable="false" />
  427. <Property Name="ValueType" Type="int" Nullable="false" />
  428. <Property Name="IsAccumulated" Type="bit" Nullable="false" />
  429. <Property Name="ServiceTypeId" Type="smallint" />
  430. <Property Name="FuelTypeId" Type="smallint" />
  431. <Property Name="Name" Type="nvarchar" MaxLength="64" />
  432. <Property Name="Description" Type="nvarchar" MaxLength="256" />
  433. <Property Name="IsSampled" Type="bit" />
  434. <Property Name="IsConverted" Type="bit" />
  435. </EntityType>
  436. <EntityType Name="BemsMonitoringPointConfig">
  437. <Key>
  438. <PropertyRef Name="SiteId" />
  439. <PropertyRef Name="FacilityCode" />
  440. <PropertyRef Name="PropertyId" />
  441. </Key>
  442. <Property Name="SiteId" Type="int" Nullable="false" />
  443. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  444. <Property Name="FacilityCode" Type="int" Nullable="false" />
  445. <Property Name="PropertyId" Type="int" Nullable="false" />
  446. <Property Name="IsAccumulated" Type="bit" Nullable="false" />
  447. <Property Name="IsSampled" Type="bit" Nullable="false" />
  448. <Property Name="SaveMode" Type="int" Nullable="false" />
  449. <Property Name="ControlPointName" Type="nvarchar" MaxLength="200" />
  450. <Property Name="IsConverted" Type="bit" />
  451. </EntityType>
  452. <EntityType Name="BemsMonitoringPointForecastingDayAhead">
  453. <Key>
  454. <PropertyRef Name="SiteId" />
  455. <PropertyRef Name="FacilityCode" />
  456. <PropertyRef Name="PropertyId" />
  457. <PropertyRef Name="CreatedDateTime" />
  458. <PropertyRef Name="TargetDateTime" />
  459. </Key>
  460. <Property Name="SiteId" Type="int" Nullable="false" />
  461. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  462. <Property Name="FacilityCode" Type="int" Nullable="false" />
  463. <Property Name="PropertyId" Type="int" Nullable="false" />
  464. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  465. <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
  466. <Property Name="ForecastedValue" Type="float" Nullable="false" />
  467. </EntityType>
  468. <EntityType Name="BemsMonitoringPointForecastingHourAhead">
  469. <Key>
  470. <PropertyRef Name="SiteId" />
  471. <PropertyRef Name="FacilityCode" />
  472. <PropertyRef Name="PropertyId" />
  473. <PropertyRef Name="CreatedDateTime" />
  474. <PropertyRef Name="TargetDateTime" />
  475. </Key>
  476. <Property Name="SiteId" Type="int" Nullable="false" />
  477. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  478. <Property Name="FacilityCode" Type="int" Nullable="false" />
  479. <Property Name="PropertyId" Type="int" Nullable="false" />
  480. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  481. <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
  482. <Property Name="ForecastedValue" Type="float" Nullable="false" />
  483. </EntityType>
  484. <EntityType Name="BemsMonitoringPointHistory15min">
  485. <Key>
  486. <PropertyRef Name="SiteId" />
  487. <PropertyRef Name="FacilityCode" />
  488. <PropertyRef Name="PropertyId" />
  489. <PropertyRef Name="CreatedDateTime" />
  490. </Key>
  491. <Property Name="SiteId" Type="int" Nullable="false" />
  492. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  493. <Property Name="FacilityCode" Type="int" Nullable="false" />
  494. <Property Name="PropertyId" Type="int" Nullable="false" />
  495. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  496. <Property Name="CurrentValue" Type="float" Nullable="false" />
  497. </EntityType>
  498. <EntityType Name="BemsMonitoringPointHistory15minRawData">
  499. <Key>
  500. <PropertyRef Name="SiteId" />
  501. <PropertyRef Name="FacilityCode" />
  502. <PropertyRef Name="PropertyId" />
  503. <PropertyRef Name="CreatedDateTime" />
  504. </Key>
  505. <Property Name="SiteId" Type="int" Nullable="false" />
  506. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  507. <Property Name="FacilityCode" Type="int" Nullable="false" />
  508. <Property Name="PropertyId" Type="int" Nullable="false" />
  509. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  510. <Property Name="CurrentValue" Type="float" Nullable="false" />
  511. </EntityType>
  512. <EntityType Name="BemsMonitoringPointHistoryDaily">
  513. <Key>
  514. <PropertyRef Name="SiteId" />
  515. <PropertyRef Name="FacilityCode" />
  516. <PropertyRef Name="PropertyId" />
  517. <PropertyRef Name="CreatedDateTime" />
  518. </Key>
  519. <Property Name="SiteId" Type="int" Nullable="false" />
  520. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  521. <Property Name="FacilityCode" Type="int" Nullable="false" />
  522. <Property Name="PropertyId" Type="int" Nullable="false" />
  523. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  524. <Property Name="DailyValue" Type="float" Nullable="false" />
  525. <Property Name="MaxValue" Type="float" />
  526. <Property Name="MinValue" Type="float" />
  527. </EntityType>
  528. <EntityType Name="BemsMonitoringPointHistoryHourly">
  529. <Key>
  530. <PropertyRef Name="SiteId" />
  531. <PropertyRef Name="FacilityCode" />
  532. <PropertyRef Name="PropertyId" />
  533. <PropertyRef Name="CreatedDateTime" />
  534. </Key>
  535. <Property Name="SiteId" Type="int" Nullable="false" />
  536. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  537. <Property Name="FacilityCode" Type="int" Nullable="false" />
  538. <Property Name="PropertyId" Type="int" Nullable="false" />
  539. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  540. <Property Name="CurrentValue" Type="float" Nullable="false" />
  541. </EntityType>
  542. <EntityType Name="BemsMonitoringPointToAnlaysisType">
  543. <Key>
  544. <PropertyRef Name="SiteId" />
  545. <PropertyRef Name="FacilityTypeId" />
  546. <PropertyRef Name="FacilityCode" />
  547. <PropertyRef Name="PropertyId" />
  548. <PropertyRef Name="AnalysisType" />
  549. </Key>
  550. <Property Name="SiteId" Type="int" Nullable="false" />
  551. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  552. <Property Name="FacilityCode" Type="int" Nullable="false" />
  553. <Property Name="PropertyId" Type="int" Nullable="false" />
  554. <Property Name="AnalysisType" Type="int" Nullable="false" />
  555. </EntityType>
  556. <EntityType Name="BemsMonitoringPointWeatherForecasted">
  557. <Key>
  558. <PropertyRef Name="SiteId" />
  559. <PropertyRef Name="CreatedDateTime" />
  560. <PropertyRef Name="Category" />
  561. <PropertyRef Name="BaseDateTime" />
  562. <PropertyRef Name="ForecastedDateTime" />
  563. </Key>
  564. <Property Name="SiteId" Type="int" Nullable="false" />
  565. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  566. <Property Name="Category" Type="nvarchar" MaxLength="50" Nullable="false" />
  567. <Property Name="BaseDateTime" Type="datetime" Nullable="false" />
  568. <Property Name="ForecastedDateTime" Type="datetime" Nullable="false" />
  569. <Property Name="ForecastedValue" Type="float" Nullable="false" />
  570. <Property Name="nx" Type="int" Nullable="false" />
  571. <Property Name="ny" Type="int" Nullable="false" />
  572. </EntityType>
  573. <EntityType Name="BemsNoticePriceBase">
  574. <Key>
  575. <PropertyRef Name="SiteId" />
  576. <PropertyRef Name="FuelTypeId" />
  577. <PropertyRef Name="ApplyDate" />
  578. <PropertyRef Name="ContractType" />
  579. </Key>
  580. <Property Name="SiteId" Type="int" Nullable="false" />
  581. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  582. <Property Name="ApplyDate" Type="date" Nullable="false" />
  583. <Property Name="ContractType" Type="smallint" Nullable="false" />
  584. <Property Name="PrimaryPrice" Type="int" />
  585. <Property Name="SecondaryPrice" Type="int" />
  586. </EntityType>
  587. <EntityType Name="BemsNoticePriceContractType">
  588. <Key>
  589. <PropertyRef Name="FuelTypeId" />
  590. <PropertyRef Name="ContractType" />
  591. </Key>
  592. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  593. <Property Name="ContractType" Type="smallint" Nullable="false" />
  594. <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
  595. </EntityType>
  596. <EntityType Name="BemsNoticePriceDetail">
  597. <Key>
  598. <PropertyRef Name="SiteId" />
  599. <PropertyRef Name="FuelTypeId" />
  600. <PropertyRef Name="ApplyDate" />
  601. <PropertyRef Name="ContractType" />
  602. <PropertyRef Name="DataId" />
  603. </Key>
  604. <Property Name="SiteId" Type="int" Nullable="false" />
  605. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  606. <Property Name="ApplyDate" Type="date" Nullable="false" />
  607. <Property Name="ContractType" Type="smallint" Nullable="false" />
  608. <Property Name="DataId" Type="smallint" Nullable="false" />
  609. <Property Name="P01" Type="float" />
  610. <Property Name="P02" Type="float" />
  611. <Property Name="P03" Type="float" />
  612. <Property Name="P04" Type="float" />
  613. <Property Name="P05" Type="float" />
  614. <Property Name="P06" Type="float" />
  615. <Property Name="P07" Type="float" />
  616. <Property Name="P08" Type="float" />
  617. <Property Name="P09" Type="float" />
  618. <Property Name="P10" Type="float" />
  619. <Property Name="P11" Type="float" />
  620. <Property Name="P12" Type="float" />
  621. </EntityType>
  622. <EntityType Name="BemsPeakFacility">
  623. <Key>
  624. <PropertyRef Name="SiteId" />
  625. <PropertyRef Name="MaxDateTime" />
  626. <PropertyRef Name="FacilityCode" />
  627. </Key>
  628. <Property Name="SiteId" Type="int" Nullable="false" />
  629. <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
  630. <Property Name="FacilityCode" Type="int" Nullable="false" />
  631. </EntityType>
  632. <EntityType Name="BemsPeakHistory">
  633. <Key>
  634. <PropertyRef Name="SiteId" />
  635. <PropertyRef Name="CreatedDateTime" />
  636. </Key>
  637. <Property Name="SiteId" Type="int" Nullable="false" />
  638. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  639. <Property Name="CurrentValue" Type="float" Nullable="false" />
  640. </EntityType>
  641. <EntityType Name="BemsPeakHistoryDaily">
  642. <Key>
  643. <PropertyRef Name="SiteId" />
  644. <PropertyRef Name="CreatedDateTime" />
  645. </Key>
  646. <Property Name="SiteId" Type="int" Nullable="false" />
  647. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  648. <Property Name="MaxPeakValue" Type="float" />
  649. <Property Name="MaxDateTime" Type="datetime" />
  650. <Property Name="MinPeakValue" Type="float" />
  651. <Property Name="MinDateTime" Type="datetime" />
  652. </EntityType>
  653. <EntityType Name="BemsPeakInfo">
  654. <Key>
  655. <PropertyRef Name="SiteId" />
  656. </Key>
  657. <Property Name="SiteId" Type="int" Nullable="false" />
  658. <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
  659. <Property Name="MaxPeakValue" Type="float" Nullable="false" />
  660. <Property Name="MinDateTime" Type="datetime" Nullable="false" />
  661. <Property Name="MinPeakValue" Type="float" Nullable="false" />
  662. <Property Name="todayMaxPeakValue" Type="float" Nullable="false" />
  663. <Property Name="todayMinPeakValue" Type="float" Nullable="false" />
  664. </EntityType>
  665. <EntityType Name="BemsPeopleIncrease">
  666. <Key>
  667. <PropertyRef Name="Date" />
  668. <PropertyRef Name="SiteId" />
  669. </Key>
  670. <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
  671. <Property Name="SiteId" Type="int" Nullable="false" />
  672. <Property Name="m1" Type="nvarchar" MaxLength="50" />
  673. <Property Name="m2" Type="nvarchar" MaxLength="50" />
  674. <Property Name="m3" Type="nvarchar" MaxLength="50" />
  675. <Property Name="m4" Type="nvarchar" MaxLength="50" />
  676. <Property Name="m5" Type="nvarchar" MaxLength="50" />
  677. <Property Name="m6" Type="nvarchar" MaxLength="50" />
  678. <Property Name="m7" Type="nvarchar" MaxLength="50" />
  679. <Property Name="m8" Type="nvarchar" MaxLength="50" />
  680. <Property Name="m9" Type="nvarchar" MaxLength="50" />
  681. <Property Name="m10" Type="nvarchar" MaxLength="50" />
  682. <Property Name="m11" Type="nvarchar" MaxLength="50" />
  683. <Property Name="m12" Type="nvarchar" MaxLength="50" />
  684. </EntityType>
  685. <EntityType Name="BemsPriceCode">
  686. <Key>
  687. <PropertyRef Name="PriceCode" />
  688. </Key>
  689. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  690. <Property Name="PriceCodeDesc" Type="varchar" MaxLength="200" />
  691. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  692. <Property Name="Unit" Type="varchar" MaxLength="20" />
  693. </EntityType>
  694. <EntityType Name="BemsPriceFormula">
  695. <Key>
  696. <PropertyRef Name="SiteId" />
  697. <PropertyRef Name="PriceTypeId" />
  698. <PropertyRef Name="FacilityTypeId" />
  699. <PropertyRef Name="FormulaId" />
  700. <PropertyRef Name="FacilityCode" />
  701. </Key>
  702. <Property Name="SiteId" Type="int" Nullable="false" />
  703. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  704. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  705. <Property Name="FormulaId" Type="int" Nullable="false" />
  706. <Property Name="FacilityCode" Type="int" Nullable="false" />
  707. <Property Name="UseYN" Type="nvarchar" MaxLength="1" Nullable="false" />
  708. </EntityType>
  709. <EntityType Name="BemsPriceMeta">
  710. <Key>
  711. <PropertyRef Name="PriceTypeId" />
  712. <PropertyRef Name="PublishDate" />
  713. </Key>
  714. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  715. <Property Name="PublishDate" Type="datetime" Nullable="false" />
  716. <Property Name="BasePrice" Type="int" />
  717. <Property Name="01_00" Type="float" />
  718. <Property Name="01_01" Type="float" />
  719. <Property Name="01_02" Type="float" />
  720. <Property Name="01_03" Type="float" />
  721. <Property Name="01_04" Type="float" />
  722. <Property Name="01_05" Type="float" />
  723. <Property Name="01_06" Type="float" />
  724. <Property Name="01_07" Type="float" />
  725. <Property Name="01_08" Type="float" />
  726. <Property Name="01_09" Type="float" />
  727. <Property Name="01_10" Type="float" />
  728. <Property Name="01_11" Type="float" />
  729. <Property Name="01_12" Type="float" />
  730. <Property Name="01_13" Type="float" />
  731. <Property Name="01_14" Type="float" />
  732. <Property Name="01_15" Type="float" />
  733. <Property Name="01_16" Type="float" />
  734. <Property Name="01_17" Type="float" />
  735. <Property Name="01_18" Type="float" />
  736. <Property Name="01_19" Type="float" />
  737. <Property Name="01_20" Type="float" />
  738. <Property Name="01_21" Type="float" />
  739. <Property Name="01_22" Type="float" />
  740. <Property Name="01_23" Type="float" />
  741. <Property Name="02_00" Type="float" />
  742. <Property Name="02_01" Type="float" />
  743. <Property Name="02_02" Type="float" />
  744. <Property Name="02_03" Type="float" />
  745. <Property Name="02_04" Type="float" />
  746. <Property Name="02_05" Type="float" />
  747. <Property Name="02_06" Type="float" />
  748. <Property Name="02_07" Type="float" />
  749. <Property Name="02_08" Type="float" />
  750. <Property Name="02_09" Type="float" />
  751. <Property Name="02_10" Type="float" />
  752. <Property Name="02_11" Type="float" />
  753. <Property Name="02_12" Type="float" />
  754. <Property Name="02_13" Type="float" />
  755. <Property Name="02_14" Type="float" />
  756. <Property Name="02_15" Type="float" />
  757. <Property Name="02_16" Type="float" />
  758. <Property Name="02_17" Type="float" />
  759. <Property Name="02_18" Type="float" />
  760. <Property Name="02_19" Type="float" />
  761. <Property Name="02_20" Type="float" />
  762. <Property Name="02_21" Type="float" />
  763. <Property Name="02_22" Type="float" />
  764. <Property Name="02_23" Type="float" />
  765. <Property Name="03_00" Type="float" />
  766. <Property Name="03_01" Type="float" />
  767. <Property Name="03_02" Type="float" />
  768. <Property Name="03_03" Type="float" />
  769. <Property Name="03_04" Type="float" />
  770. <Property Name="03_05" Type="float" />
  771. <Property Name="03_06" Type="float" />
  772. <Property Name="03_07" Type="float" />
  773. <Property Name="03_08" Type="float" />
  774. <Property Name="03_09" Type="float" />
  775. <Property Name="03_10" Type="float" />
  776. <Property Name="03_11" Type="float" />
  777. <Property Name="03_12" Type="float" />
  778. <Property Name="03_13" Type="float" />
  779. <Property Name="03_14" Type="float" />
  780. <Property Name="03_15" Type="float" />
  781. <Property Name="03_16" Type="float" />
  782. <Property Name="03_17" Type="float" />
  783. <Property Name="03_18" Type="float" />
  784. <Property Name="03_19" Type="float" />
  785. <Property Name="03_20" Type="float" />
  786. <Property Name="03_21" Type="float" />
  787. <Property Name="03_22" Type="float" />
  788. <Property Name="03_23" Type="float" />
  789. <Property Name="04_00" Type="float" />
  790. <Property Name="04_01" Type="float" />
  791. <Property Name="04_02" Type="float" />
  792. <Property Name="04_03" Type="float" />
  793. <Property Name="04_04" Type="float" />
  794. <Property Name="04_05" Type="float" />
  795. <Property Name="04_06" Type="float" />
  796. <Property Name="04_07" Type="float" />
  797. <Property Name="04_08" Type="float" />
  798. <Property Name="04_09" Type="float" />
  799. <Property Name="04_10" Type="float" />
  800. <Property Name="04_11" Type="float" />
  801. <Property Name="04_12" Type="float" />
  802. <Property Name="04_13" Type="float" />
  803. <Property Name="04_14" Type="float" />
  804. <Property Name="04_15" Type="float" />
  805. <Property Name="04_16" Type="float" />
  806. <Property Name="04_17" Type="float" />
  807. <Property Name="04_18" Type="float" />
  808. <Property Name="04_19" Type="float" />
  809. <Property Name="04_20" Type="float" />
  810. <Property Name="04_21" Type="float" />
  811. <Property Name="04_22" Type="float" />
  812. <Property Name="04_23" Type="float" />
  813. <Property Name="05_00" Type="float" />
  814. <Property Name="05_01" Type="float" />
  815. <Property Name="05_02" Type="float" />
  816. <Property Name="05_03" Type="float" />
  817. <Property Name="05_04" Type="float" />
  818. <Property Name="05_05" Type="float" />
  819. <Property Name="05_06" Type="float" />
  820. <Property Name="05_07" Type="float" />
  821. <Property Name="05_08" Type="float" />
  822. <Property Name="05_09" Type="float" />
  823. <Property Name="05_10" Type="float" />
  824. <Property Name="05_11" Type="float" />
  825. <Property Name="05_12" Type="float" />
  826. <Property Name="05_13" Type="float" />
  827. <Property Name="05_14" Type="float" />
  828. <Property Name="05_15" Type="float" />
  829. <Property Name="05_16" Type="float" />
  830. <Property Name="05_17" Type="float" />
  831. <Property Name="05_18" Type="float" />
  832. <Property Name="05_19" Type="float" />
  833. <Property Name="05_20" Type="float" />
  834. <Property Name="05_21" Type="float" />
  835. <Property Name="05_22" Type="float" />
  836. <Property Name="05_23" Type="float" />
  837. <Property Name="06_00" Type="float" />
  838. <Property Name="06_01" Type="float" />
  839. <Property Name="06_02" Type="float" />
  840. <Property Name="06_03" Type="float" />
  841. <Property Name="06_04" Type="float" />
  842. <Property Name="06_05" Type="float" />
  843. <Property Name="06_06" Type="float" />
  844. <Property Name="06_07" Type="float" />
  845. <Property Name="06_08" Type="float" />
  846. <Property Name="06_09" Type="float" />
  847. <Property Name="06_10" Type="float" />
  848. <Property Name="06_11" Type="float" />
  849. <Property Name="06_12" Type="float" />
  850. <Property Name="06_13" Type="float" />
  851. <Property Name="06_14" Type="float" />
  852. <Property Name="06_15" Type="float" />
  853. <Property Name="06_16" Type="float" />
  854. <Property Name="06_17" Type="float" />
  855. <Property Name="06_18" Type="float" />
  856. <Property Name="06_19" Type="float" />
  857. <Property Name="06_20" Type="float" />
  858. <Property Name="06_21" Type="float" />
  859. <Property Name="06_22" Type="float" />
  860. <Property Name="06_23" Type="float" />
  861. <Property Name="07_00" Type="float" />
  862. <Property Name="07_01" Type="float" />
  863. <Property Name="07_02" Type="float" />
  864. <Property Name="07_03" Type="float" />
  865. <Property Name="07_04" Type="float" />
  866. <Property Name="07_05" Type="float" />
  867. <Property Name="07_06" Type="float" />
  868. <Property Name="07_07" Type="float" />
  869. <Property Name="07_08" Type="float" />
  870. <Property Name="07_09" Type="float" />
  871. <Property Name="07_10" Type="float" />
  872. <Property Name="07_11" Type="float" />
  873. <Property Name="07_12" Type="float" />
  874. <Property Name="07_13" Type="float" />
  875. <Property Name="07_14" Type="float" />
  876. <Property Name="07_15" Type="float" />
  877. <Property Name="07_16" Type="float" />
  878. <Property Name="07_17" Type="float" />
  879. <Property Name="07_18" Type="float" />
  880. <Property Name="07_19" Type="float" />
  881. <Property Name="07_20" Type="float" />
  882. <Property Name="07_21" Type="float" />
  883. <Property Name="07_22" Type="float" />
  884. <Property Name="07_23" Type="float" />
  885. <Property Name="08_00" Type="float" />
  886. <Property Name="08_01" Type="float" />
  887. <Property Name="08_02" Type="float" />
  888. <Property Name="08_03" Type="float" />
  889. <Property Name="08_04" Type="float" />
  890. <Property Name="08_05" Type="float" />
  891. <Property Name="08_06" Type="float" />
  892. <Property Name="08_07" Type="float" />
  893. <Property Name="08_08" Type="float" />
  894. <Property Name="08_09" Type="float" />
  895. <Property Name="08_10" Type="float" />
  896. <Property Name="08_11" Type="float" />
  897. <Property Name="08_12" Type="float" />
  898. <Property Name="08_13" Type="float" />
  899. <Property Name="08_14" Type="float" />
  900. <Property Name="08_15" Type="float" />
  901. <Property Name="08_16" Type="float" />
  902. <Property Name="08_17" Type="float" />
  903. <Property Name="08_18" Type="float" />
  904. <Property Name="08_19" Type="float" />
  905. <Property Name="08_20" Type="float" />
  906. <Property Name="08_21" Type="float" />
  907. <Property Name="08_22" Type="float" />
  908. <Property Name="08_23" Type="float" />
  909. <Property Name="09_00" Type="float" />
  910. <Property Name="09_01" Type="float" />
  911. <Property Name="09_02" Type="float" />
  912. <Property Name="09_03" Type="float" />
  913. <Property Name="09_04" Type="float" />
  914. <Property Name="09_05" Type="float" />
  915. <Property Name="09_06" Type="float" />
  916. <Property Name="09_07" Type="float" />
  917. <Property Name="09_08" Type="float" />
  918. <Property Name="09_09" Type="float" />
  919. <Property Name="09_10" Type="float" />
  920. <Property Name="09_11" Type="float" />
  921. <Property Name="09_12" Type="float" />
  922. <Property Name="09_13" Type="float" />
  923. <Property Name="09_14" Type="float" />
  924. <Property Name="09_15" Type="float" />
  925. <Property Name="09_16" Type="float" />
  926. <Property Name="09_17" Type="float" />
  927. <Property Name="09_18" Type="float" />
  928. <Property Name="09_19" Type="float" />
  929. <Property Name="09_20" Type="float" />
  930. <Property Name="09_21" Type="float" />
  931. <Property Name="09_22" Type="float" />
  932. <Property Name="09_23" Type="float" />
  933. <Property Name="10_00" Type="float" />
  934. <Property Name="10_01" Type="float" />
  935. <Property Name="10_02" Type="float" />
  936. <Property Name="10_03" Type="float" />
  937. <Property Name="10_04" Type="float" />
  938. <Property Name="10_05" Type="float" />
  939. <Property Name="10_06" Type="float" />
  940. <Property Name="10_07" Type="float" />
  941. <Property Name="10_08" Type="float" />
  942. <Property Name="10_09" Type="float" />
  943. <Property Name="10_10" Type="float" />
  944. <Property Name="10_11" Type="float" />
  945. <Property Name="10_12" Type="float" />
  946. <Property Name="10_13" Type="float" />
  947. <Property Name="10_14" Type="float" />
  948. <Property Name="10_15" Type="float" />
  949. <Property Name="10_16" Type="float" />
  950. <Property Name="10_17" Type="float" />
  951. <Property Name="10_18" Type="float" />
  952. <Property Name="10_19" Type="float" />
  953. <Property Name="10_20" Type="float" />
  954. <Property Name="10_21" Type="float" />
  955. <Property Name="10_22" Type="float" />
  956. <Property Name="10_23" Type="float" />
  957. <Property Name="11_00" Type="float" />
  958. <Property Name="11_01" Type="float" />
  959. <Property Name="11_02" Type="float" />
  960. <Property Name="11_03" Type="float" />
  961. <Property Name="11_04" Type="float" />
  962. <Property Name="11_05" Type="float" />
  963. <Property Name="11_06" Type="float" />
  964. <Property Name="11_07" Type="float" />
  965. <Property Name="11_08" Type="float" />
  966. <Property Name="11_09" Type="float" />
  967. <Property Name="11_10" Type="float" />
  968. <Property Name="11_11" Type="float" />
  969. <Property Name="11_12" Type="float" />
  970. <Property Name="11_13" Type="float" />
  971. <Property Name="11_14" Type="float" />
  972. <Property Name="11_15" Type="float" />
  973. <Property Name="11_16" Type="float" />
  974. <Property Name="11_17" Type="float" />
  975. <Property Name="11_18" Type="float" />
  976. <Property Name="11_19" Type="float" />
  977. <Property Name="11_20" Type="float" />
  978. <Property Name="11_21" Type="float" />
  979. <Property Name="11_22" Type="float" />
  980. <Property Name="11_23" Type="float" />
  981. <Property Name="12_00" Type="float" />
  982. <Property Name="12_01" Type="float" />
  983. <Property Name="12_02" Type="float" />
  984. <Property Name="12_03" Type="float" />
  985. <Property Name="12_04" Type="float" />
  986. <Property Name="12_05" Type="float" />
  987. <Property Name="12_06" Type="float" />
  988. <Property Name="12_07" Type="float" />
  989. <Property Name="12_08" Type="float" />
  990. <Property Name="12_09" Type="float" />
  991. <Property Name="12_10" Type="float" />
  992. <Property Name="12_11" Type="float" />
  993. <Property Name="12_12" Type="float" />
  994. <Property Name="12_13" Type="float" />
  995. <Property Name="12_14" Type="float" />
  996. <Property Name="12_15" Type="float" />
  997. <Property Name="12_16" Type="float" />
  998. <Property Name="12_17" Type="float" />
  999. <Property Name="12_18" Type="float" />
  1000. <Property Name="12_19" Type="float" />
  1001. <Property Name="12_20" Type="float" />
  1002. <Property Name="12_21" Type="float" />
  1003. <Property Name="12_22" Type="float" />
  1004. <Property Name="12_23" Type="float" />
  1005. </EntityType>
  1006. <EntityType Name="BemsPriceType">
  1007. <Key>
  1008. <PropertyRef Name="PriceTypeId" />
  1009. </Key>
  1010. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1011. <Property Name="PriceTypeIdDesc" Type="varchar" MaxLength="200" />
  1012. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1013. </EntityType>
  1014. <EntityType Name="BemsRentalRate">
  1015. <Key>
  1016. <PropertyRef Name="Date" />
  1017. <PropertyRef Name="SiteId" />
  1018. </Key>
  1019. <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
  1020. <Property Name="SiteId" Type="int" Nullable="false" />
  1021. <Property Name="m1" Type="nvarchar" MaxLength="50" />
  1022. <Property Name="m2" Type="nvarchar" MaxLength="50" />
  1023. <Property Name="m3" Type="nvarchar" MaxLength="50" />
  1024. <Property Name="m4" Type="nvarchar" MaxLength="50" />
  1025. <Property Name="m5" Type="nvarchar" MaxLength="50" />
  1026. <Property Name="m6" Type="nvarchar" MaxLength="50" />
  1027. <Property Name="m7" Type="nvarchar" MaxLength="50" />
  1028. <Property Name="m8" Type="nvarchar" MaxLength="50" />
  1029. <Property Name="m9" Type="nvarchar" MaxLength="50" />
  1030. <Property Name="m10" Type="nvarchar" MaxLength="50" />
  1031. <Property Name="m11" Type="nvarchar" MaxLength="50" />
  1032. <Property Name="m12" Type="nvarchar" MaxLength="50" />
  1033. </EntityType>
  1034. <EntityType Name="BemsReportFormat">
  1035. <Key>
  1036. <PropertyRef Name="ReportFormatId" />
  1037. <PropertyRef Name="parts" />
  1038. </Key>
  1039. <Property Name="ReportFormatId" Type="int" Nullable="false" />
  1040. <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
  1041. <Property Name="Content" Type="varchar(max)" />
  1042. <Property Name="parts" Type="int" Nullable="false" />
  1043. </EntityType>
  1044. <EntityType Name="BemsReportHistory">
  1045. <Key>
  1046. <PropertyRef Name="Seq" />
  1047. <PropertyRef Name="DateTime" />
  1048. <PropertyRef Name="ReportFormatId" />
  1049. <PropertyRef Name="parts" />
  1050. </Key>
  1051. <Property Name="SiteId" Type="int" Nullable="false" />
  1052. <Property Name="Seq" Type="int" Nullable="false" />
  1053. <Property Name="DateTime" Type="datetime" Nullable="false" />
  1054. <Property Name="ReportName" Type="varchar" MaxLength="200" Nullable="false" />
  1055. <Property Name="ReportFormatId" Type="int" Nullable="false" />
  1056. <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
  1057. <Property Name="Content" Type="varchar(max)" />
  1058. <Property Name="Writer" Type="varchar" MaxLength="50" />
  1059. <Property Name="Confirm1" Type="varchar" MaxLength="50" />
  1060. <Property Name="Confirm2" Type="varchar" MaxLength="50" />
  1061. <Property Name="parts" Type="int" Nullable="false" />
  1062. <Property Name="FileName" Type="nvarchar" MaxLength="100" />
  1063. </EntityType>
  1064. <EntityType Name="BemsServiceType">
  1065. <Key>
  1066. <PropertyRef Name="ServiceTypeId" />
  1067. </Key>
  1068. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1069. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  1070. </EntityType>
  1071. <EntityType Name="BemsSitePrice">
  1072. <Key>
  1073. <PropertyRef Name="SiteID" />
  1074. <PropertyRef Name="FuelTypeId" />
  1075. <PropertyRef Name="PriceTypeId" />
  1076. <PropertyRef Name="PriceCode" />
  1077. </Key>
  1078. <Property Name="SiteID" Type="int" Nullable="false" />
  1079. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1080. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1081. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  1082. <Property Name="UseYN" Type="varchar" MaxLength="1" Nullable="false" />
  1083. </EntityType>
  1084. <EntityType Name="BemsSitePriceHistory">
  1085. <Key>
  1086. <PropertyRef Name="SiteId" />
  1087. <PropertyRef Name="FuelTypeId" />
  1088. <PropertyRef Name="PriceTypeId" />
  1089. <PropertyRef Name="PriceCode" />
  1090. <PropertyRef Name="PayDate" />
  1091. </Key>
  1092. <Property Name="SiteId" Type="int" Nullable="false" />
  1093. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1094. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1095. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  1096. <Property Name="PriceValue" Type="varchar" MaxLength="200" />
  1097. <Property Name="PayDate" Type="varchar" MaxLength="6" Nullable="false" />
  1098. <Property Name="StartDate" Type="datetime" />
  1099. <Property Name="EndDate" Type="datetime" />
  1100. <Property Name="PayCharge" Type="varchar" MaxLength="200" />
  1101. </EntityType>
  1102. <EntityType Name="CmAlarmAdmin">
  1103. <Key>
  1104. <PropertyRef Name="SiteId" />
  1105. </Key>
  1106. <Property Name="SiteId" Type="int" Nullable="false" />
  1107. <Property Name="UserCode" Type="nvarchar" MaxLength="50" />
  1108. <Property Name="DeptCode" Type="nvarchar" MaxLength="50" />
  1109. <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
  1110. <Property Name="EmailAddress" Type="nvarchar" MaxLength="50" />
  1111. <Property Name="EmailPassword" Type="nvarchar" MaxLength="50" />
  1112. </EntityType>
  1113. <EntityType Name="CmAnnouncement">
  1114. <Key>
  1115. <PropertyRef Name="SiteId" />
  1116. <PropertyRef Name="AnnouncementId" />
  1117. </Key>
  1118. <Property Name="SiteId" Type="int" Nullable="false" />
  1119. <Property Name="AnnouncementId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1120. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  1121. <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
  1122. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  1123. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1124. <Property Name="FileId" Type="int" />
  1125. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1126. <Property Name="UpdateDate" Type="datetime" Nullable="false" />
  1127. <Property Name="IsUse" Type="bit" />
  1128. <Property Name="ReadCount" Type="int" Nullable="false" />
  1129. </EntityType>
  1130. <EntityType Name="CmBuilding">
  1131. <Key>
  1132. <PropertyRef Name="SiteId" />
  1133. <PropertyRef Name="BuildingId" />
  1134. </Key>
  1135. <Property Name="SiteId" Type="int" Nullable="false" />
  1136. <Property Name="BuildingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1137. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1138. <Property Name="FileId" Type="int" />
  1139. <Property Name="IsUse" Type="bit" />
  1140. <Property Name="SortOrderNo" Type="int" />
  1141. </EntityType>
  1142. <EntityType Name="CmBusinessField">
  1143. <Key>
  1144. <PropertyRef Name="SiteId" />
  1145. <PropertyRef Name="BusinessFieldId" />
  1146. </Key>
  1147. <Property Name="SiteId" Type="int" Nullable="false" />
  1148. <Property Name="BusinessFieldId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1149. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1150. <Property Name="IsUse" Type="bit" />
  1151. </EntityType>
  1152. <EntityType Name="CmCompany">
  1153. <Key>
  1154. <PropertyRef Name="SiteId" />
  1155. <PropertyRef Name="CompanyId" />
  1156. </Key>
  1157. <Property Name="SiteId" Type="int" Nullable="false" />
  1158. <Property Name="CompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1159. <Property Name="CompanyTypeId" Type="int" Nullable="false" />
  1160. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1161. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1162. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  1163. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" Nullable="false" />
  1164. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  1165. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  1166. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  1167. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1168. <Property Name="Address1" Type="nvarchar" MaxLength="50" />
  1169. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1170. <Property Name="Homepage" Type="nvarchar" MaxLength="100" />
  1171. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1172. <Property Name="IsUse" Type="bit" />
  1173. </EntityType>
  1174. <EntityType Name="CmCompanyType">
  1175. <Key>
  1176. <PropertyRef Name="SiteId" />
  1177. <PropertyRef Name="CompanyTypeId" />
  1178. </Key>
  1179. <Property Name="SiteId" Type="int" Nullable="false" />
  1180. <Property Name="CompanyTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1181. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1182. <Property Name="IsUse" Type="bit" />
  1183. </EntityType>
  1184. <EntityType Name="CmDepartment">
  1185. <Key>
  1186. <PropertyRef Name="SiteId" />
  1187. <PropertyRef Name="CompanyId" />
  1188. <PropertyRef Name="DepartmentId" />
  1189. </Key>
  1190. <Property Name="SiteId" Type="int" Nullable="false" />
  1191. <Property Name="CompanyId" Type="int" Nullable="false" />
  1192. <Property Name="DepartmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1193. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1194. <Property Name="ShortName" Type="nvarchar" MaxLength="50" />
  1195. <Property Name="FaxNo" Type="nvarchar" MaxLength="50" />
  1196. <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
  1197. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1198. <Property Name="IsUse" Type="bit" />
  1199. </EntityType>
  1200. <EntityType Name="CmFacility">
  1201. <Key>
  1202. <PropertyRef Name="SiteId" />
  1203. <PropertyRef Name="FacilityCode" />
  1204. </Key>
  1205. <Property Name="SiteId" Type="int" Nullable="false" />
  1206. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  1207. <Property Name="FacilityCode" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1208. <Property Name="FirstClassId" Type="int" />
  1209. <Property Name="SecondClassId" Type="int" />
  1210. <Property Name="ThirdClassId" Type="int" />
  1211. <Property Name="DeviceType" Type="nvarchar" MaxLength="48" />
  1212. <Property Name="ParentFacilityCode" Type="int" />
  1213. <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
  1214. <Property Name="Nickname" Type="nvarchar" MaxLength="40" />
  1215. <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
  1216. <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
  1217. <Property Name="ManufactureDate" Type="date" />
  1218. <Property Name="ManufactureSerial" Type="nvarchar" MaxLength="20" />
  1219. <Property Name="ManufactureModel" Type="nvarchar" MaxLength="40" />
  1220. <Property Name="Supplier" Type="nvarchar" MaxLength="40" />
  1221. <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
  1222. <Property Name="BuildingId" Type="int" />
  1223. <Property Name="FloorId" Type="int" />
  1224. <Property Name="ZoneId" Type="int" />
  1225. <Property Name="InstallDate" Type="date" />
  1226. <Property Name="OperationStartDate" Type="date" />
  1227. <Property Name="FacilityCapacity" Type="nvarchar" MaxLength="40" />
  1228. <Property Name="FacilityCost" Type="int" />
  1229. <Property Name="FacilityCount" Type="int" />
  1230. <Property Name="FacilitySeviceLifeYear" Type="int" />
  1231. <Property Name="FacilityUsage" Type="nvarchar" MaxLength="80" />
  1232. <Property Name="RatedPowerConsumption" Type="nvarchar" MaxLength="40" />
  1233. <Property Name="RatedCOP" Type="float" />
  1234. <Property Name="MainContactorUserId" Type="nvarchar" MaxLength="24" />
  1235. <Property Name="SubContactorUserId" Type="nvarchar" MaxLength="24" />
  1236. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  1237. <Property Name="Reserved1" Type="nvarchar" MaxLength="64" />
  1238. <Property Name="Reserved2" Type="nvarchar" MaxLength="64" />
  1239. <Property Name="IsUse" Type="bit" />
  1240. <Property Name="FileId" Type="int" />
  1241. <Property Name="IsVirtualFacility" Type="bit" Nullable="false" />
  1242. <Property Name="FuelTypeId" Type="smallint" />
  1243. <Property Name="ContractType" Type="smallint" />
  1244. </EntityType>
  1245. <EntityType Name="CmFacilityFile">
  1246. <Key>
  1247. <PropertyRef Name="SiteId" />
  1248. <PropertyRef Name="FileId" />
  1249. </Key>
  1250. <Property Name="SiteId" Type="int" Nullable="false" />
  1251. <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1252. <Property Name="FacilityCode" Type="int" Nullable="false" />
  1253. <Property Name="InsertedDate" Type="datetime" />
  1254. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  1255. <Property Name="UpdatedDate" Type="datetime" />
  1256. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1257. </EntityType>
  1258. <EntityType Name="CmFacilityTempSet">
  1259. <Key>
  1260. <PropertyRef Name="SiteId" />
  1261. <PropertyRef Name="FacilityCode" />
  1262. </Key>
  1263. <Property Name="SiteId" Type="int" Nullable="false" />
  1264. <Property Name="FacilityCode" Type="int" Nullable="false" />
  1265. <Property Name="T1" Type="float" Nullable="false" />
  1266. <Property Name="T2" Type="float" Nullable="false" />
  1267. <Property Name="T3" Type="float" Nullable="false" />
  1268. <Property Name="T4" Type="float" Nullable="false" />
  1269. <Property Name="T5" Type="float" Nullable="false" />
  1270. <Property Name="T6" Type="float" Nullable="false" />
  1271. <Property Name="T7" Type="float" Nullable="false" />
  1272. <Property Name="T8" Type="float" Nullable="false" />
  1273. <Property Name="T9" Type="float" Nullable="false" />
  1274. <Property Name="T10" Type="float" Nullable="false" />
  1275. <Property Name="T11" Type="float" Nullable="false" />
  1276. <Property Name="T12" Type="float" Nullable="false" />
  1277. </EntityType>
  1278. <EntityType Name="CmFile">
  1279. <Key>
  1280. <PropertyRef Name="SiteId" />
  1281. <PropertyRef Name="FileId" />
  1282. </Key>
  1283. <Property Name="SiteId" Type="int" Nullable="false" />
  1284. <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1285. <Property Name="FileCategoryId" Type="int" Nullable="false" />
  1286. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1287. <Property Name="FileSize" Type="int" />
  1288. <Property Name="CreatedDate" Type="datetime" />
  1289. <Property Name="ContentType" Type="nvarchar" MaxLength="128" />
  1290. </EntityType>
  1291. <EntityType Name="CmFileCategory">
  1292. <Key>
  1293. <PropertyRef Name="FileCategoryId" />
  1294. </Key>
  1295. <Property Name="FileCategoryId" Type="int" Nullable="false" />
  1296. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1297. </EntityType>
  1298. <EntityType Name="CmFloor">
  1299. <Key>
  1300. <PropertyRef Name="SiteId" />
  1301. <PropertyRef Name="BuildingId" />
  1302. <PropertyRef Name="FloorId" />
  1303. </Key>
  1304. <Property Name="SiteId" Type="int" Nullable="false" />
  1305. <Property Name="BuildingId" Type="int" Nullable="false" />
  1306. <Property Name="FloorId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1307. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1308. </EntityType>
  1309. <EntityType Name="CmHoliday">
  1310. <Key>
  1311. <PropertyRef Name="SiteId" />
  1312. <PropertyRef Name="HolidayMonth" />
  1313. <PropertyRef Name="HolidayDay" />
  1314. <PropertyRef Name="IsLunar" />
  1315. </Key>
  1316. <Property Name="SiteId" Type="int" Nullable="false" />
  1317. <Property Name="HolidayMonth" Type="smallint" Nullable="false" />
  1318. <Property Name="HolidayDay" Type="smallint" Nullable="false" />
  1319. <Property Name="IsLunar" Type="bit" Nullable="false" />
  1320. <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
  1321. <Property Name="IsUse" Type="bit" />
  1322. </EntityType>
  1323. <EntityType Name="CmHolidayCustom">
  1324. <Key>
  1325. <PropertyRef Name="SiteId" />
  1326. <PropertyRef Name="HolidayDate" />
  1327. </Key>
  1328. <Property Name="SiteId" Type="int" Nullable="false" />
  1329. <Property Name="HolidayDate" Type="datetime" Nullable="false" />
  1330. <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
  1331. <Property Name="IsUse" Type="bit" />
  1332. </EntityType>
  1333. <EntityType Name="CmHolidayWeekend">
  1334. <Key>
  1335. <PropertyRef Name="SiteId" />
  1336. </Key>
  1337. <Property Name="SiteId" Type="int" Nullable="false" />
  1338. <Property Name="Saturday" Type="bit" Nullable="false" />
  1339. <Property Name="Sunday" Type="bit" Nullable="false" />
  1340. <Property Name="IsUse" Type="bit" />
  1341. </EntityType>
  1342. <EntityType Name="CmMenu">
  1343. <Key>
  1344. <PropertyRef Name="SiteId" />
  1345. <PropertyRef Name="MenuId" />
  1346. </Key>
  1347. <Property Name="SiteId" Type="int" Nullable="false" />
  1348. <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
  1349. <Property Name="Used" Type="bit" />
  1350. <Property Name="MenuPath" Type="nvarchar" MaxLength="255" />
  1351. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  1352. </EntityType>
  1353. <EntityType Name="CmPartner">
  1354. <Key>
  1355. <PropertyRef Name="SiteId" />
  1356. <PropertyRef Name="PartnerId" />
  1357. </Key>
  1358. <Property Name="SiteId" Type="int" Nullable="false" />
  1359. <Property Name="PartnerId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1360. <Property Name="PartnerTypeId" Type="int" Nullable="false" />
  1361. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1362. <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" />
  1363. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" />
  1364. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
  1365. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  1366. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  1367. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  1368. <Property Name="AddressZip1" Type="nchar" MaxLength="3" />
  1369. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1370. <Property Name="Address1" Type="nvarchar" MaxLength="50" />
  1371. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1372. <Property Name="HomepageUri" Type="nvarchar" MaxLength="100" />
  1373. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  1374. <Property Name="IsUse" Type="bit" />
  1375. </EntityType>
  1376. <EntityType Name="CmPartnerType">
  1377. <Key>
  1378. <PropertyRef Name="PartnerTypeId" />
  1379. </Key>
  1380. <Property Name="PartnerTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1381. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1382. <Property Name="IsUse" Type="bit" />
  1383. </EntityType>
  1384. <EntityType Name="CmPatrolCourse">
  1385. <Key>
  1386. <PropertyRef Name="SiteId" />
  1387. <PropertyRef Name="PatrolCourseId" />
  1388. </Key>
  1389. <Property Name="SiteId" Type="int" Nullable="false" />
  1390. <Property Name="PatrolCourseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1391. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1392. </EntityType>
  1393. <EntityType Name="CmPatrolCoursePos">
  1394. <Key>
  1395. <PropertyRef Name="SiteId" />
  1396. <PropertyRef Name="PatrolCourseId" />
  1397. <PropertyRef Name="BuildingId" />
  1398. <PropertyRef Name="FloorId" />
  1399. <PropertyRef Name="PosId" />
  1400. </Key>
  1401. <Property Name="SiteId" Type="int" Nullable="false" />
  1402. <Property Name="PatrolCourseId" Type="int" Nullable="false" />
  1403. <Property Name="BuildingId" Type="int" Nullable="false" />
  1404. <Property Name="FloorId" Type="int" Nullable="false" />
  1405. <Property Name="PosId" Type="int" Nullable="false" />
  1406. <Property Name="CourseOrder" Type="int" Nullable="false" />
  1407. </EntityType>
  1408. <EntityType Name="CmPatrolGroup">
  1409. <Key>
  1410. <PropertyRef Name="SiteId" />
  1411. <PropertyRef Name="PatrolGroupId" />
  1412. </Key>
  1413. <Property Name="SiteId" Type="int" Nullable="false" />
  1414. <Property Name="PatrolGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1415. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1416. </EntityType>
  1417. <EntityType Name="CmPatrolGroupUser">
  1418. <Key>
  1419. <PropertyRef Name="SiteId" />
  1420. <PropertyRef Name="PatrolGroupId" />
  1421. <PropertyRef Name="UserId" />
  1422. </Key>
  1423. <Property Name="SiteId" Type="int" Nullable="false" />
  1424. <Property Name="PatrolGroupId" Type="int" Nullable="false" />
  1425. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1426. </EntityType>
  1427. <EntityType Name="CmPatrolHistory">
  1428. <Key>
  1429. <PropertyRef Name="PatrolHistoryId" />
  1430. </Key>
  1431. <Property Name="SiteId" Type="int" Nullable="false" />
  1432. <Property Name="PatrolHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1433. <Property Name="ScheduleId" Type="int" Nullable="false" />
  1434. <Property Name="startDate" Type="datetime" Nullable="false" />
  1435. <Property Name="endDate" Type="datetime" />
  1436. <Property Name="resultTypeId" Type="int" Nullable="false" />
  1437. <Property Name="resultDesc" Type="varchar" MaxLength="1024" />
  1438. <Property Name="resultPosCnt" Type="int" />
  1439. <Property Name="resultNormalCnt" Type="int" />
  1440. <Property Name="resultAbnormalCnt" Type="int" />
  1441. </EntityType>
  1442. <EntityType Name="CmPatrolHistoryPos">
  1443. <Key>
  1444. <PropertyRef Name="mId" />
  1445. </Key>
  1446. <Property Name="SiteId" Type="int" Nullable="false" />
  1447. <Property Name="PatrolHistoryId" Type="int" Nullable="false" />
  1448. <Property Name="PosId" Type="int" Nullable="false" />
  1449. <Property Name="PatrolTime" Type="datetime" Nullable="false" />
  1450. <Property Name="term" Type="int" />
  1451. <Property Name="resultType" Type="int" Nullable="false" />
  1452. <Property Name="mId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1453. </EntityType>
  1454. <EntityType Name="CmPatrolPlan">
  1455. <Key>
  1456. <PropertyRef Name="SiteId" />
  1457. <PropertyRef Name="PatrolPlanId" />
  1458. </Key>
  1459. <Property Name="SiteId" Type="int" Nullable="false" />
  1460. <Property Name="PatrolPlanId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1461. <Property Name="GroupId" Type="int" Nullable="false" />
  1462. <Property Name="CourseId" Type="int" Nullable="false" />
  1463. <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
  1464. <Property Name="PlanDesc" Type="varchar" MaxLength="1024" />
  1465. <Property Name="term" Type="int" Nullable="false" />
  1466. <Property Name="inDate" Type="datetime" />
  1467. </EntityType>
  1468. <EntityType Name="CmPatrolPos">
  1469. <Key>
  1470. <PropertyRef Name="SiteId" />
  1471. <PropertyRef Name="PosId" />
  1472. </Key>
  1473. <Property Name="SiteId" Type="int" Nullable="false" />
  1474. <Property Name="BuildingId" Type="int" Nullable="false" />
  1475. <Property Name="FloorId" Type="int" Nullable="false" />
  1476. <Property Name="PosId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1477. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1478. <Property Name="TagId" Type="nvarchar" MaxLength="32" />
  1479. <Property Name="PosDesc" Type="nvarchar" MaxLength="1024" />
  1480. </EntityType>
  1481. <EntityType Name="CmPatrolSchedule">
  1482. <Key>
  1483. <PropertyRef Name="SiteId" />
  1484. <PropertyRef Name="ScheduleId" />
  1485. </Key>
  1486. <Property Name="SiteId" Type="int" Nullable="false" />
  1487. <Property Name="ScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1488. <Property Name="PlanId" Type="int" Nullable="false" />
  1489. <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
  1490. <Property Name="ScheduleDesc" Type="varchar" MaxLength="128" />
  1491. <Property Name="inDate" Type="datetime" />
  1492. <Property Name="patrolDateTime" Type="datetime" Nullable="false" />
  1493. </EntityType>
  1494. <EntityType Name="CmPatrolType">
  1495. <Key>
  1496. <PropertyRef Name="SiteId" />
  1497. <PropertyRef Name="PatrolTypeId" />
  1498. </Key>
  1499. <Property Name="SiteId" Type="int" Nullable="false" />
  1500. <Property Name="PatrolTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1501. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1502. <Property Name="IsUse" Type="bit" />
  1503. </EntityType>
  1504. <EntityType Name="CmPosition">
  1505. <Key>
  1506. <PropertyRef Name="SiteId" />
  1507. <PropertyRef Name="PositionId" />
  1508. </Key>
  1509. <Property Name="SiteId" Type="int" Nullable="false" />
  1510. <Property Name="PositionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1511. <Property Name="Name" Type="nvarchar" MaxLength="40" Nullable="false" />
  1512. <Property Name="IsUse" Type="bit" />
  1513. </EntityType>
  1514. <EntityType Name="CmServiceEnergyCalcDay">
  1515. <Key>
  1516. <PropertyRef Name="SiteId" />
  1517. <PropertyRef Name="calDate" />
  1518. <PropertyRef Name="ServiceTypeId" />
  1519. </Key>
  1520. <Property Name="SiteId" Type="int" Nullable="false" />
  1521. <Property Name="calDate" Type="datetime" Nullable="false" />
  1522. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1523. <Property Name="Value" Type="float" />
  1524. </EntityType>
  1525. <EntityType Name="CmServiceEnergyCalcMonth">
  1526. <Key>
  1527. <PropertyRef Name="SiteId" />
  1528. <PropertyRef Name="calDate" />
  1529. <PropertyRef Name="ServiceTypeId" />
  1530. </Key>
  1531. <Property Name="SiteId" Type="int" Nullable="false" />
  1532. <Property Name="calDate" Type="datetime" Nullable="false" />
  1533. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1534. <Property Name="Value" Type="float" />
  1535. </EntityType>
  1536. <EntityType Name="CmSite">
  1537. <Key>
  1538. <PropertyRef Name="SiteId" />
  1539. </Key>
  1540. <Property Name="SiteId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1541. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1542. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  1543. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1544. <Property Name="Address1" Type="nvarchar" MaxLength="100" />
  1545. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1546. <Property Name="PhoneNo" Type="nvarchar" MaxLength="24" />
  1547. <Property Name="URL" Type="nvarchar" MaxLength="100" />
  1548. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1549. <Property Name="IsUse" Type="bit" />
  1550. <Property Name="SortOrderNo" Type="int" />
  1551. <Property Name="InsertedDate" Type="datetime" />
  1552. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  1553. <Property Name="UpdatedDate" Type="datetime" />
  1554. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1555. <Property Name="IsControlSchedule" Type="bit" />
  1556. <Property Name="ScheduleCheckHour" Type="int" />
  1557. <Property Name="MaxPeak" Type="float" />
  1558. <Property Name="lat" Type="float" />
  1559. <Property Name="lng" Type="float" />
  1560. <Property Name="controlSchedule" Type="bit" />
  1561. <Property Name="HDD" Type="nvarchar" MaxLength="24" />
  1562. <Property Name="CDD" Type="nvarchar" MaxLength="24" />
  1563. <Property Name="BuildingSize" Type="nvarchar" MaxLength="50" />
  1564. <Property Name="GrossArea" Type="nvarchar" MaxLength="24" />
  1565. <Property Name="BuildingArea" Type="nvarchar" MaxLength="24" />
  1566. <Property Name="FloorAreaRatio" Type="nvarchar" MaxLength="24" />
  1567. <Property Name="BuildingCoverageRatio" Type="nvarchar" MaxLength="24" />
  1568. <Property Name="MainUse" Type="nvarchar" MaxLength="10" />
  1569. <Property Name="CompletionDate" Type="nvarchar" MaxLength="24" />
  1570. <Property Name="Standard" Type="nvarchar" MaxLength="24" />
  1571. <Property Name="MainUseIndex" Type="int" />
  1572. </EntityType>
  1573. <EntityType Name="CmUser">
  1574. <Key>
  1575. <PropertyRef Name="SiteId" />
  1576. <PropertyRef Name="UserId" />
  1577. </Key>
  1578. <Property Name="SiteId" Type="int" Nullable="false" />
  1579. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1580. <Property Name="CompanyId" Type="int" />
  1581. <Property Name="DepartmentId" Type="int" />
  1582. <Property Name="PositionId" Type="int" />
  1583. <Property Name="BusinessFieldId" Type="int" />
  1584. <Property Name="UserGroupId" Type="int" />
  1585. <Property Name="Name" Type="nvarchar" MaxLength="30" Nullable="false" />
  1586. <Property Name="Passwd" Type="nvarchar" MaxLength="30" Nullable="false" />
  1587. <Property Name="Birthday" Type="datetime" />
  1588. <Property Name="Lunar" Type="bit" />
  1589. <Property Name="StateId" Type="int" />
  1590. <Property Name="EmploymentType" Type="int" />
  1591. <Property Name="EmploymentStatus" Type="int" />
  1592. <Property Name="OfficePhoneNo" Type="nvarchar" MaxLength="50" />
  1593. <Property Name="HomePhoneNo" Type="nvarchar" MaxLength="50" />
  1594. <Property Name="MobilePhoneNo" Type="nvarchar" MaxLength="50" />
  1595. <Property Name="HomeZip1" Type="char" MaxLength="3" />
  1596. <Property Name="HomeZip2" Type="char" MaxLength="3" />
  1597. <Property Name="HomeAddress1" Type="nvarchar" MaxLength="50" />
  1598. <Property Name="HomeAdderss2" Type="nvarchar" MaxLength="100" />
  1599. <Property Name="Email" Type="nvarchar" MaxLength="50" />
  1600. <Property Name="EnterDate" Type="datetime" />
  1601. <Property Name="RetireDate" Type="datetime" />
  1602. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1603. <Property Name="Rfcsn" Type="nvarchar" MaxLength="30" />
  1604. <Property Name="PasswordUpdatedDate" Type="datetime" />
  1605. <Property Name="FileId" Type="int" />
  1606. <Property Name="IsBems" Type="bit" />
  1607. <Property Name="IsUse" Type="bit" />
  1608. <Property Name="IsScheduleUser" Type="bit" />
  1609. <Property Name="Certificated" Type="nvarchar" MaxLength="512" />
  1610. <Property Name="IsSI" Type="bit" />
  1611. <Property Name="IsMobile" Type="bit" />
  1612. <Property Name="Devicetoken" Type="nvarchar" MaxLength="500" />
  1613. </EntityType>
  1614. <EntityType Name="CmUserGroup">
  1615. <Key>
  1616. <PropertyRef Name="SiteId" />
  1617. <PropertyRef Name="UserGroupId" />
  1618. </Key>
  1619. <Property Name="SiteId" Type="int" Nullable="false" />
  1620. <Property Name="UserGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1621. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1622. </EntityType>
  1623. <EntityType Name="CmUserGroupPermission">
  1624. <Key>
  1625. <PropertyRef Name="SiteId" />
  1626. <PropertyRef Name="UserGroupId" />
  1627. <PropertyRef Name="MenuId" />
  1628. </Key>
  1629. <Property Name="SiteId" Type="int" Nullable="false" />
  1630. <Property Name="UserGroupId" Type="int" Nullable="false" />
  1631. <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
  1632. <Property Name="MenuPermission" Type="smallint" />
  1633. </EntityType>
  1634. <EntityType Name="CmUserLoginHistory">
  1635. <Key>
  1636. <PropertyRef Name="LoginHistoryId" />
  1637. </Key>
  1638. <Property Name="LoginHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1639. <Property Name="SiteId" Type="int" Nullable="false" />
  1640. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1641. <Property Name="Type" Type="nvarchar" MaxLength="10" Nullable="false" />
  1642. <Property Name="TraceTime" Type="datetime" Nullable="false" />
  1643. <Property Name="IpAddress" Type="nvarchar" MaxLength="16" />
  1644. </EntityType>
  1645. <EntityType Name="CmUserToLicense">
  1646. <Key>
  1647. <PropertyRef Name="SiteId" />
  1648. <PropertyRef Name="UserId" />
  1649. <PropertyRef Name="LicenseId" />
  1650. </Key>
  1651. <Property Name="SiteId" Type="int" Nullable="false" />
  1652. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1653. <Property Name="LicenseId" Type="int" Nullable="false" />
  1654. </EntityType>
  1655. <EntityType Name="CmZone">
  1656. <Key>
  1657. <PropertyRef Name="SiteId" />
  1658. <PropertyRef Name="BuildingId" />
  1659. <PropertyRef Name="FloorId" />
  1660. <PropertyRef Name="ZoneId" />
  1661. </Key>
  1662. <Property Name="SiteId" Type="int" Nullable="false" />
  1663. <Property Name="BuildingId" Type="int" Nullable="false" />
  1664. <Property Name="FloorId" Type="int" Nullable="false" />
  1665. <Property Name="ZoneId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1666. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1667. <Property Name="Target_temperature" Type="float" />
  1668. <Property Name="Target_humidity" Type="smallint" />
  1669. </EntityType>
  1670. <EntityType Name="CmZoneTempHumiSet">
  1671. <Key>
  1672. <PropertyRef Name="SiteId" />
  1673. <PropertyRef Name="BuildingId" />
  1674. <PropertyRef Name="FloorId" />
  1675. <PropertyRef Name="ZoneId" />
  1676. </Key>
  1677. <Property Name="SiteId" Type="int" Nullable="false" />
  1678. <Property Name="BuildingId" Type="int" Nullable="false" />
  1679. <Property Name="FloorId" Type="int" Nullable="false" />
  1680. <Property Name="ZoneId" Type="int" Nullable="false" />
  1681. <Property Name="T1" Type="float" Nullable="false" />
  1682. <Property Name="T2" Type="float" Nullable="false" />
  1683. <Property Name="T3" Type="float" Nullable="false" />
  1684. <Property Name="T4" Type="float" Nullable="false" />
  1685. <Property Name="T5" Type="float" Nullable="false" />
  1686. <Property Name="T6" Type="float" Nullable="false" />
  1687. <Property Name="T7" Type="float" Nullable="false" />
  1688. <Property Name="T8" Type="float" Nullable="false" />
  1689. <Property Name="T9" Type="float" Nullable="false" />
  1690. <Property Name="T10" Type="float" Nullable="false" />
  1691. <Property Name="T11" Type="float" Nullable="false" />
  1692. <Property Name="T12" Type="float" Nullable="false" />
  1693. <Property Name="H1" Type="smallint" Nullable="false" />
  1694. <Property Name="H2" Type="smallint" Nullable="false" />
  1695. <Property Name="H3" Type="smallint" Nullable="false" />
  1696. <Property Name="H4" Type="smallint" Nullable="false" />
  1697. <Property Name="H5" Type="smallint" Nullable="false" />
  1698. <Property Name="H6" Type="smallint" Nullable="false" />
  1699. <Property Name="H7" Type="smallint" Nullable="false" />
  1700. <Property Name="H8" Type="smallint" Nullable="false" />
  1701. <Property Name="H9" Type="smallint" Nullable="false" />
  1702. <Property Name="H10" Type="smallint" Nullable="false" />
  1703. <Property Name="H11" Type="smallint" Nullable="false" />
  1704. <Property Name="H12" Type="smallint" Nullable="false" />
  1705. </EntityType>
  1706. <EntityType Name="FmsAccident">
  1707. <Key>
  1708. <PropertyRef Name="SiteId" />
  1709. <PropertyRef Name="AccidentId" />
  1710. </Key>
  1711. <Property Name="SiteId" Type="int" Nullable="false" />
  1712. <Property Name="AccidentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1713. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1714. <Property Name="StartDate" Type="datetime" />
  1715. <Property Name="EndDate" Type="datetime" />
  1716. <Property Name="AccidentTypeId" Type="int" Nullable="false" />
  1717. <Property Name="DepartmentId" Type="int" />
  1718. <Property Name="AccidentLocation" Type="nvarchar" MaxLength="256" />
  1719. <Property Name="Reason" Type="nvarchar" MaxLength="1024" />
  1720. <Property Name="Action" Type="nvarchar" MaxLength="1024" />
  1721. <Property Name="Damage" Type="nvarchar" MaxLength="1024" />
  1722. <Property Name="Measurement" Type="nvarchar" MaxLength="1024" />
  1723. <Property Name="FileId1" Type="int" />
  1724. <Property Name="FileId2" Type="int" />
  1725. <Property Name="FileId3" Type="int" />
  1726. <Property Name="CompanyId" Type="int" />
  1727. </EntityType>
  1728. <EntityType Name="FmsAccidentCodeType">
  1729. <Key>
  1730. <PropertyRef Name="SiteId" />
  1731. <PropertyRef Name="AccidentTypeId" />
  1732. </Key>
  1733. <Property Name="SiteId" Type="int" Nullable="false" />
  1734. <Property Name="AccidentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1735. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1736. <Property Name="IsUse" Type="bit" Nullable="false" />
  1737. </EntityType>
  1738. <EntityType Name="FmsBudget">
  1739. <Key>
  1740. <PropertyRef Name="SiteId" />
  1741. <PropertyRef Name="Year" />
  1742. </Key>
  1743. <Property Name="SiteId" Type="int" Nullable="false" />
  1744. <Property Name="Year" Type="int" Nullable="false" />
  1745. </EntityType>
  1746. <EntityType Name="FmsBudgetCodeClass">
  1747. <Key>
  1748. <PropertyRef Name="SiteId" />
  1749. <PropertyRef Name="BudgetClassId" />
  1750. </Key>
  1751. <Property Name="SiteId" Type="int" Nullable="false" />
  1752. <Property Name="BudgetClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1753. <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
  1754. <Property Name="RootBudgetClassId" Type="int" />
  1755. <Property Name="ParentBudgetClassId" Type="int" />
  1756. <Property Name="Depth" Type="int" Nullable="false" />
  1757. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1758. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  1759. <Property Name="IsUse" Type="bit" />
  1760. <Property Name="YearlyBudget" Type="float" />
  1761. <Property Name="MonthlyBudget" Type="float" />
  1762. </EntityType>
  1763. <EntityType Name="FmsBudgetDetail">
  1764. <Key>
  1765. <PropertyRef Name="SiteId" />
  1766. <PropertyRef Name="Year" />
  1767. <PropertyRef Name="BudgetClassId" />
  1768. <PropertyRef Name="ParentBudgetClassId" />
  1769. </Key>
  1770. <Property Name="SiteId" Type="int" Nullable="false" />
  1771. <Property Name="Year" Type="int" Nullable="false" />
  1772. <Property Name="BudgetClassId" Type="int" Nullable="false" />
  1773. <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
  1774. <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
  1775. <Property Name="RootBudgetClassId" Type="int" />
  1776. <Property Name="Depth" Type="int" Nullable="false" />
  1777. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1778. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  1779. <Property Name="IsUse" Type="bit" />
  1780. <Property Name="YearlyBudget" Type="float" Nullable="false" />
  1781. <Property Name="MonthlyBudget" Type="float" Nullable="false" />
  1782. </EntityType>
  1783. <EntityType Name="FmsBudgetDetailExecution">
  1784. <Key>
  1785. <PropertyRef Name="SiteId" />
  1786. <PropertyRef Name="Year" />
  1787. <PropertyRef Name="BudgetClassId" />
  1788. <PropertyRef Name="ParentBudgetClassId" />
  1789. <PropertyRef Name="Month" />
  1790. </Key>
  1791. <Property Name="SiteId" Type="int" Nullable="false" />
  1792. <Property Name="Year" Type="int" Nullable="false" />
  1793. <Property Name="BudgetClassId" Type="int" Nullable="false" />
  1794. <Property Name="RootBudgetClassId" Type="int" />
  1795. <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
  1796. <Property Name="Month" Type="int" Nullable="false" />
  1797. <Property Name="YearlyBudget" Type="float" Nullable="false" />
  1798. <Property Name="MonthlyBudget" Type="float" Nullable="false" />
  1799. <Property Name="YearlyExecution" Type="float" Nullable="false" />
  1800. <Property Name="MonthlyExecution" Type="float" Nullable="false" />
  1801. </EntityType>
  1802. <EntityType Name="FmsCompanyEstimationCodeClass">
  1803. <Key>
  1804. <PropertyRef Name="SiteId" />
  1805. <PropertyRef Name="CompanyEstimationClassId" />
  1806. </Key>
  1807. <Property Name="SiteId" Type="int" Nullable="false" />
  1808. <Property Name="CompanyEstimationClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1809. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1810. <Property Name="IsUse" Type="bit" />
  1811. </EntityType>
  1812. <EntityType Name="FmsConstruction">
  1813. <Key>
  1814. <PropertyRef Name="SiteId" />
  1815. <PropertyRef Name="ConstructionId" />
  1816. </Key>
  1817. <Property Name="SiteId" Type="int" Nullable="false" />
  1818. <Property Name="ConstructionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1819. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1820. <Property Name="ConstructionTypeId" Type="int" Nullable="false" />
  1821. <Property Name="StartDate" Type="datetime" Nullable="false" />
  1822. <Property Name="EndDate" Type="datetime" Nullable="false" />
  1823. <Property Name="PartnerId" Type="int" Nullable="false" />
  1824. <Property Name="ConstructLocation" Type="nvarchar" MaxLength="256" Nullable="false" />
  1825. <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" Nullable="false" />
  1826. <Property Name="CommitmentMan" Type="smallint" />
  1827. <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1828. <Property Name="WeldWorkStartTime" Type="datetime" />
  1829. <Property Name="WeldWorkEndTime" Type="datetime" />
  1830. <Property Name="GasWorkStartTime" Type="datetime" />
  1831. <Property Name="GasWorkEndTime" Type="datetime" />
  1832. <Property Name="PaintWorkStartTime" Type="datetime" />
  1833. <Property Name="PaintWorkEndTime" Type="datetime" />
  1834. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1835. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  1836. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1837. <Property Name="UpdateDate" Type="datetime" Nullable="false" />
  1838. <Property Name="ConstructionDetail" Type="nvarchar" MaxLength="1024" />
  1839. <Property Name="InOutStockName" Type="nvarchar" MaxLength="1024" />
  1840. <Property Name="FileId1" Type="int" />
  1841. <Property Name="FileId2" Type="int" />
  1842. <Property Name="FileId3" Type="int" />
  1843. </EntityType>
  1844. <EntityType Name="FmsConstructionCodeProgress">
  1845. <Key>
  1846. <PropertyRef Name="ProgressId" />
  1847. </Key>
  1848. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  1849. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1850. <Property Name="Description" Type="nvarchar" MaxLength="100" />
  1851. </EntityType>
  1852. <EntityType Name="FmsConstructionCodeType">
  1853. <Key>
  1854. <PropertyRef Name="SiteId" />
  1855. <PropertyRef Name="ConstructionTypeId" />
  1856. </Key>
  1857. <Property Name="SiteId" Type="int" Nullable="false" />
  1858. <Property Name="ConstructionTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1859. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1860. <Property Name="IsUse" Type="bit" Nullable="false" />
  1861. </EntityType>
  1862. <EntityType Name="FmsConstructionEstimation">
  1863. <Key>
  1864. <PropertyRef Name="SiteId" />
  1865. <PropertyRef Name="ConstructionId" />
  1866. </Key>
  1867. <Property Name="SiteId" Type="int" Nullable="false" />
  1868. <Property Name="ConstructionId" Type="int" Nullable="false" />
  1869. <Property Name="EstimateDate" Type="datetime" Nullable="false" />
  1870. <Property Name="EstimateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1871. <Property Name="Safety01_CleanUp" Type="bit" />
  1872. <Property Name="Safety02_PersonalProtection" Type="bit" />
  1873. <Property Name="Safety03_FireExtinguisher" Type="bit" />
  1874. <Property Name="Safety04_HighPlaceWork" Type="bit" />
  1875. <Property Name="Safety05_Weld" Type="bit" />
  1876. <Property Name="Safety06_SurroundingCleanUp" Type="bit" />
  1877. <Property Name="Safety07_SurroundingHealthy" Type="bit" />
  1878. <Property Name="Safety08_Noise" Type="bit" />
  1879. <Property Name="Safety09_FacilityProtection" Type="bit" />
  1880. <Property Name="Safety10_Waste" Type="bit" />
  1881. <Property Name="Safety11_Execution" Type="bit" />
  1882. <Property Name="Safety12_Announcement" Type="bit" />
  1883. <Property Name="Ability01_Compliance" Type="bit" />
  1884. <Property Name="Ability02_Fault" Type="bit" />
  1885. <Property Name="Ability03_SkillLevel" Type="bit" />
  1886. <Property Name="Ability04_ProcessManagement" Type="bit" />
  1887. <Property Name="Ability05_Collaboration" Type="bit" />
  1888. <Property Name="Service01_Compliance" Type="bit" />
  1889. <Property Name="Service02_SkillLevel" Type="bit" />
  1890. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1891. <Property Name="TotalEstimateScore" Type="float" />
  1892. <Property Name="SafetyScore" Type="float" />
  1893. <Property Name="AbilityScore" Type="float" />
  1894. <Property Name="ServiceScore" Type="float" />
  1895. </EntityType>
  1896. <EntityType Name="FmsContract">
  1897. <Key>
  1898. <PropertyRef Name="SiteId" />
  1899. <PropertyRef Name="ContractId" />
  1900. </Key>
  1901. <Property Name="SiteId" Type="int" Nullable="false" />
  1902. <Property Name="ContractId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1903. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1904. <Property Name="PartnerTypeId" Type="int" />
  1905. <Property Name="PartnerId" Type="int" />
  1906. <Property Name="ContractDate" Type="datetime" />
  1907. <Property Name="StartDate" Type="datetime" />
  1908. <Property Name="EndDate" Type="datetime" />
  1909. <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" />
  1910. <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" />
  1911. <Property Name="CommitmentMan" Type="smallint" />
  1912. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1913. <Property Name="ContractClassId" Type="int" />
  1914. <Property Name="ContractTypeId" Type="int" />
  1915. <Property Name="ContractMethodId" Type="int" />
  1916. <Property Name="PaymentTypeId" Type="int" />
  1917. </EntityType>
  1918. <EntityType Name="FmsContractClass">
  1919. <Key>
  1920. <PropertyRef Name="SiteId" />
  1921. <PropertyRef Name="ContractClassId" />
  1922. </Key>
  1923. <Property Name="SiteId" Type="int" Nullable="false" />
  1924. <Property Name="ContractClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1925. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1926. <Property Name="IsUse" Type="bit" />
  1927. </EntityType>
  1928. <EntityType Name="FmsContractMethod">
  1929. <Key>
  1930. <PropertyRef Name="SiteId" />
  1931. <PropertyRef Name="ContractMethodId" />
  1932. </Key>
  1933. <Property Name="SiteId" Type="int" Nullable="false" />
  1934. <Property Name="ContractMethodId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1935. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1936. <Property Name="IsUse" Type="bit" />
  1937. </EntityType>
  1938. <EntityType Name="FmsContractType">
  1939. <Key>
  1940. <PropertyRef Name="SiteId" />
  1941. <PropertyRef Name="ContractTypeId" />
  1942. </Key>
  1943. <Property Name="SiteId" Type="int" Nullable="false" />
  1944. <Property Name="ContractTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1945. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1946. <Property Name="IsUse" Type="bit" />
  1947. </EntityType>
  1948. <EntityType Name="FmsDailyCheckReport">
  1949. <Key>
  1950. <PropertyRef Name="SiteId" />
  1951. <PropertyRef Name="DailyCheckReportId" />
  1952. </Key>
  1953. <Property Name="SiteId" Type="int" Nullable="false" />
  1954. <Property Name="DailyCheckReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1955. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  1956. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  1957. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1958. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1959. </EntityType>
  1960. <EntityType Name="FmsDailyReport">
  1961. <Key>
  1962. <PropertyRef Name="SiteId" />
  1963. <PropertyRef Name="AddDate" />
  1964. <PropertyRef Name="BusinessFieldId" />
  1965. </Key>
  1966. <Property Name="SiteId" Type="int" Nullable="false" />
  1967. <Property Name="DailyReportId" Type="int" />
  1968. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  1969. <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
  1970. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1971. <Property Name="AddDate" Type="date" Nullable="false" />
  1972. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  1973. <Property Name="Datas" Type="varchar(max)" />
  1974. <Property Name="ApproverUserId" Type="nvarchar" MaxLength="24" />
  1975. <Property Name="ApproveDate" Type="date" />
  1976. <Property Name="RegisterDate" Type="date" />
  1977. <Property Name="ApproverUserId2" Type="nvarchar" MaxLength="24" />
  1978. <Property Name="ApproveDate2" Type="date" />
  1979. <Property Name="ApproverUserId3" Type="nvarchar" MaxLength="24" />
  1980. <Property Name="ApproveDate3" Type="date" />
  1981. <Property Name="ApproverUserId4" Type="nvarchar" MaxLength="24" />
  1982. <Property Name="ApproveDate4" Type="date" />
  1983. <Property Name="ApproverUserId5" Type="nvarchar" MaxLength="24" />
  1984. <Property Name="ApproveDate5" Type="date" />
  1985. </EntityType>
  1986. <EntityType Name="FmsDrawing">
  1987. <Key>
  1988. <PropertyRef Name="SiteId" />
  1989. <PropertyRef Name="DrawingId" />
  1990. </Key>
  1991. <Property Name="SiteId" Type="int" Nullable="false" />
  1992. <Property Name="DrawingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1993. <Property Name="DrawingNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1994. <Property Name="DrawingGroupId" Type="int" Nullable="false" />
  1995. <Property Name="DrawingTypeId" Type="int" Nullable="false" />
  1996. <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
  1997. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  1998. </EntityType>
  1999. <EntityType Name="FmsDrawingCodeGroup">
  2000. <Key>
  2001. <PropertyRef Name="SiteId" />
  2002. <PropertyRef Name="DrawingGroupId" />
  2003. </Key>
  2004. <Property Name="SiteId" Type="int" Nullable="false" />
  2005. <Property Name="DrawingGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2006. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2007. <Property Name="IsUse" Type="bit" />
  2008. </EntityType>
  2009. <EntityType Name="FmsDrawingCodeType">
  2010. <Key>
  2011. <PropertyRef Name="SiteId" />
  2012. <PropertyRef Name="DrawingTypeId" />
  2013. </Key>
  2014. <Property Name="SiteId" Type="int" Nullable="false" />
  2015. <Property Name="DrawingTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2016. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2017. <Property Name="IsUse" Type="bit" />
  2018. </EntityType>
  2019. <EntityType Name="FmsDrawingHistory">
  2020. <Key>
  2021. <PropertyRef Name="SiteId" />
  2022. <PropertyRef Name="DrawingId" />
  2023. <PropertyRef Name="HistoryId" />
  2024. </Key>
  2025. <Property Name="SiteId" Type="int" Nullable="false" />
  2026. <Property Name="DrawingId" Type="int" Nullable="false" />
  2027. <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2028. <Property Name="RevisionNo" Type="int" />
  2029. <Property Name="FileId" Type="int" />
  2030. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2031. <Property Name="UpdatedDate" Type="datetime" />
  2032. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2033. </EntityType>
  2034. <EntityType Name="FmsEquipment">
  2035. <Key>
  2036. <PropertyRef Name="SiteId" />
  2037. <PropertyRef Name="EquipmentId" />
  2038. </Key>
  2039. <Property Name="SiteId" Type="int" Nullable="false" />
  2040. <Property Name="EquipmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2041. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2042. <Property Name="EquipmentTypeId" Type="int" Nullable="false" />
  2043. <Property Name="WarehouseId" Type="int" />
  2044. <Property Name="Unit" Type="nvarchar" MaxLength="12" />
  2045. <Property Name="Standard" Type="nvarchar" MaxLength="20" />
  2046. <Property Name="AddDate" Type="datetime" />
  2047. <Property Name="UpdateDate" Type="datetime" />
  2048. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2049. <Property Name="SupplierName" Type="nvarchar" MaxLength="256" />
  2050. <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
  2051. <Property Name="ImageFileId" Type="int" />
  2052. </EntityType>
  2053. <EntityType Name="FmsEquipmentCodeStateType">
  2054. <Key>
  2055. <PropertyRef Name="EquipmentStateTypeId" />
  2056. </Key>
  2057. <Property Name="EquipmentStateTypeId" Type="smallint" Nullable="false" />
  2058. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2059. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2060. </EntityType>
  2061. <EntityType Name="FmsEquipmentCodeType">
  2062. <Key>
  2063. <PropertyRef Name="SiteId" />
  2064. <PropertyRef Name="EquipmentTypeId" />
  2065. </Key>
  2066. <Property Name="SiteId" Type="int" Nullable="false" />
  2067. <Property Name="EquipmentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2068. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2069. <Property Name="IsUse" Type="bit" Nullable="false" />
  2070. <Property Name="Description" Type="nvarchar" MaxLength="255" />
  2071. </EntityType>
  2072. <EntityType Name="FmsEquipmentHistory">
  2073. <Key>
  2074. <PropertyRef Name="SiteId" />
  2075. <PropertyRef Name="EquipmentHistoryId" />
  2076. <PropertyRef Name="EquipmentId" />
  2077. </Key>
  2078. <Property Name="SiteId" Type="int" Nullable="false" />
  2079. <Property Name="EquipmentHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2080. <Property Name="EquipmentId" Type="int" Nullable="false" />
  2081. <Property Name="TotalStockCount" Type="int" />
  2082. <Property Name="CurrentStockCount" Type="int" />
  2083. <Property Name="RentCount" Type="int" />
  2084. <Property Name="CurrentRentCount" Type="int" />
  2085. <Property Name="ReturnCount" Type="int" />
  2086. <Property Name="LossCount" Type="int" />
  2087. <Property Name="StoredCount" Type="int" />
  2088. <Property Name="EquipmentRentId" Type="int" />
  2089. <Property Name="EquipmentStateTypeId" Type="smallint" />
  2090. <Property Name="AddDate" Type="datetime" />
  2091. <Property Name="UpdateDate" Type="datetime" />
  2092. <Property Name="IsReturned" Type="bit" />
  2093. </EntityType>
  2094. <EntityType Name="FmsEquipmentRentInfo">
  2095. <Key>
  2096. <PropertyRef Name="SiteId" />
  2097. <PropertyRef Name="EquipmentRentId" />
  2098. </Key>
  2099. <Property Name="SiteId" Type="int" Nullable="false" />
  2100. <Property Name="EquipmentRentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2101. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2102. <Property Name="RentUserId" Type="nvarchar" MaxLength="24" />
  2103. <Property Name="RegisterDate" Type="nchar" MaxLength="10" />
  2104. <Property Name="RentDate" Type="datetime" />
  2105. <Property Name="ReturnDueDate" Type="datetime" />
  2106. <Property Name="ReturnFixDate" Type="datetime" />
  2107. <Property Name="EquipmentStateTypeId" Type="smallint" />
  2108. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2109. <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
  2110. <Property Name="RentUser" Type="nvarchar" MaxLength="128" />
  2111. </EntityType>
  2112. <EntityType Name="FmsFacilityCheckItem">
  2113. <Key>
  2114. <PropertyRef Name="SiteId" />
  2115. <PropertyRef Name="FacilityCode" />
  2116. <PropertyRef Name="CheckItemId" />
  2117. </Key>
  2118. <Property Name="SiteId" Type="int" Nullable="false" />
  2119. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2120. <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2121. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2122. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2123. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  2124. <Property Name="IsYesNoResult" Type="bit" Nullable="false" />
  2125. <Property Name="IsUse" Type="bit" />
  2126. </EntityType>
  2127. <EntityType Name="FmsFacilityCodeClass">
  2128. <Key>
  2129. <PropertyRef Name="SiteId" />
  2130. <PropertyRef Name="FacilityClassId" />
  2131. </Key>
  2132. <Property Name="SiteId" Type="int" Nullable="false" />
  2133. <Property Name="FacilityClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2134. <Property Name="ParentFacilityClassId" Type="int" />
  2135. <Property Name="Depth" Type="int" Nullable="false" />
  2136. <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
  2137. <Property Name="Abbreviation" Type="nvarchar" MaxLength="40" />
  2138. <Property Name="IsUse" Type="bit" />
  2139. </EntityType>
  2140. <EntityType Name="FmsFacilityManual">
  2141. <Key>
  2142. <PropertyRef Name="SiteId" />
  2143. <PropertyRef Name="FacilityCode" />
  2144. <PropertyRef Name="ManualId" />
  2145. </Key>
  2146. <Property Name="SiteId" Type="int" Nullable="false" />
  2147. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2148. <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2149. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2150. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  2151. <Property Name="Description" Type="nvarchar" MaxLength="1024" />
  2152. <Property Name="Keyword" Type="nvarchar" MaxLength="100" />
  2153. <Property Name="FileId" Type="int" />
  2154. <Property Name="IsUse" Type="bit" />
  2155. </EntityType>
  2156. <EntityType Name="FmsFacilityOperationItem">
  2157. <Key>
  2158. <PropertyRef Name="SiteId" />
  2159. <PropertyRef Name="ItemId" />
  2160. </Key>
  2161. <Property Name="SiteId" Type="int" Nullable="false" />
  2162. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2163. <Property Name="ItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2164. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  2165. <Property Name="ResultUnit" Type="nvarchar" MaxLength="10" Nullable="false" />
  2166. <Property Name="PointId" Type="nvarchar" MaxLength="50" />
  2167. <Property Name="SystemId" Type="int" />
  2168. <Property Name="EnergyCode" Type="bit" />
  2169. <Property Name="IsUse" Type="bit" />
  2170. <Property Name="SortOrderNo" Type="int" />
  2171. <Property Name="InsertedDate" Type="datetime" />
  2172. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  2173. <Property Name="UpdatedDate" Type="datetime" />
  2174. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2175. </EntityType>
  2176. <EntityType Name="FmsFacilityOperationReport">
  2177. <Key>
  2178. <PropertyRef Name="SiteId" />
  2179. <PropertyRef Name="FacilityOperationReportId" />
  2180. </Key>
  2181. <Property Name="SiteId" Type="int" Nullable="false" />
  2182. <Property Name="FacilityOperationReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2183. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2184. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  2185. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2186. <Property Name="AddDate" Type="datetime" Nullable="false" />
  2187. </EntityType>
  2188. <EntityType Name="FmsInvestmentCost">
  2189. <Key>
  2190. <PropertyRef Name="SiteId" />
  2191. <PropertyRef Name="InsvestmentCostId" />
  2192. </Key>
  2193. <Property Name="SiteId" Type="int" Nullable="false" />
  2194. <Property Name="InsvestmentCostId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2195. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  2196. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2197. <Property Name="InsvestmentCost" Type="float" Nullable="false" />
  2198. </EntityType>
  2199. <EntityType Name="FmsLicense">
  2200. <Key>
  2201. <PropertyRef Name="SiteId" />
  2202. <PropertyRef Name="LicenseId" />
  2203. </Key>
  2204. <Property Name="SiteId" Type="int" Nullable="false" />
  2205. <Property Name="LicenseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2206. <Property Name="Name" Type="nvarchar" MaxLength="52" Nullable="false" />
  2207. <Property Name="IssuingOffice" Type="nvarchar" MaxLength="52" Nullable="false" />
  2208. <Property Name="BusinessFieldId" Type="int" />
  2209. <Property Name="EducationalInstitute" Type="nvarchar" MaxLength="52" />
  2210. <Property Name="Note" Type="nvarchar" MaxLength="256" />
  2211. <Property Name="IsUse" Type="bit" />
  2212. </EntityType>
  2213. <EntityType Name="FmsManual">
  2214. <Key>
  2215. <PropertyRef Name="SiteId" />
  2216. <PropertyRef Name="ManualId" />
  2217. </Key>
  2218. <Property Name="SiteId" Type="int" Nullable="false" />
  2219. <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2220. <Property Name="ManualNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  2221. <Property Name="ManualTypeId" Type="int" Nullable="false" />
  2222. <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
  2223. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2224. </EntityType>
  2225. <EntityType Name="FmsManualHistory">
  2226. <Key>
  2227. <PropertyRef Name="SiteId" />
  2228. <PropertyRef Name="ManualId" />
  2229. <PropertyRef Name="HistoryId" />
  2230. </Key>
  2231. <Property Name="SiteId" Type="int" Nullable="false" />
  2232. <Property Name="ManualId" Type="int" Nullable="false" />
  2233. <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2234. <Property Name="RevisionNo" Type="int" />
  2235. <Property Name="FileId" Type="int" />
  2236. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2237. <Property Name="UpdatedDate" Type="datetime" />
  2238. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2239. </EntityType>
  2240. <EntityType Name="FmsManualType">
  2241. <Key>
  2242. <PropertyRef Name="SiteId" />
  2243. <PropertyRef Name="ManualTypeId" />
  2244. </Key>
  2245. <Property Name="SiteId" Type="int" Nullable="false" />
  2246. <Property Name="ManualTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2247. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2248. <Property Name="IsUse" Type="bit" />
  2249. </EntityType>
  2250. <EntityType Name="FmsMaterial">
  2251. <Key>
  2252. <PropertyRef Name="SiteId" />
  2253. <PropertyRef Name="MaterialId" />
  2254. </Key>
  2255. <Property Name="SiteId" Type="int" Nullable="false" />
  2256. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2257. <Property Name="MaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2258. <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" Nullable="false" />
  2259. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2260. <Property Name="FirstClassId" Type="int" />
  2261. <Property Name="SecondClassId" Type="int" />
  2262. <Property Name="ThirdClassId" Type="int" />
  2263. <Property Name="LocationId" Type="int" />
  2264. <Property Name="MaterialTypeId" Type="int" />
  2265. <Property Name="WarehouseId" Type="int" />
  2266. <Property Name="TradeCompanyId" Type="int" />
  2267. <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
  2268. <Property Name="Unit" Type="nvarchar" MaxLength="12" />
  2269. <Property Name="DurableYears" Type="smallint" />
  2270. <Property Name="ReasonableStockCount" Type="smallint" />
  2271. <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
  2272. <Property Name="Standard" Type="nvarchar" MaxLength="20" />
  2273. <Property Name="FinalPrice" Type="int" />
  2274. <Property Name="ImageFileId" Type="int" />
  2275. <Property Name="Note" Type="nvarchar" MaxLength="512" />
  2276. <Property Name="IsDiscontinued" Type="bit" />
  2277. <Property Name="IsUse" Type="bit" Nullable="false" />
  2278. <Property Name="FinalStockCount" Type="int" Nullable="false" />
  2279. <Property Name="FinalTotalStockAmount" Type="int" Nullable="false" />
  2280. </EntityType>
  2281. <EntityType Name="FmsMaterialCarriedForward">
  2282. <Key>
  2283. <PropertyRef Name="SiteId" />
  2284. <PropertyRef Name="ClosedDate" />
  2285. <PropertyRef Name="BusinessFieldId" />
  2286. <PropertyRef Name="WarehouseId" />
  2287. <PropertyRef Name="MaterialId" />
  2288. </Key>
  2289. <Property Name="SiteId" Type="int" Nullable="false" />
  2290. <Property Name="ClosedDate" Type="datetime" Nullable="false" />
  2291. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2292. <Property Name="WarehouseId" Type="int" Nullable="false" />
  2293. <Property Name="MaterialId" Type="int" Nullable="false" />
  2294. <Property Name="StockCount" Type="int" Nullable="false" />
  2295. <Property Name="StockTotalCost" Type="int" Nullable="false" />
  2296. </EntityType>
  2297. <EntityType Name="FmsMaterialCodeAdjustmentType">
  2298. <Key>
  2299. <PropertyRef Name="AdjustmentTypeId" />
  2300. </Key>
  2301. <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
  2302. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2303. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2304. </EntityType>
  2305. <EntityType Name="FmsMaterialCodeClass">
  2306. <Key>
  2307. <PropertyRef Name="SiteId" />
  2308. <PropertyRef Name="MaterialClassId" />
  2309. </Key>
  2310. <Property Name="SiteId" Type="int" Nullable="false" />
  2311. <Property Name="MaterialClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2312. <Property Name="ParentMaterialClassId" Type="int" />
  2313. <Property Name="Depth" Type="int" Nullable="false" />
  2314. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  2315. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  2316. <Property Name="IsUse" Type="bit" />
  2317. </EntityType>
  2318. <EntityType Name="FmsMaterialCodeLocation">
  2319. <Key>
  2320. <PropertyRef Name="SiteId" />
  2321. <PropertyRef Name="LocationId" />
  2322. </Key>
  2323. <Property Name="SiteId" Type="int" Nullable="false" />
  2324. <Property Name="LocationId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2325. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2326. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2327. <Property Name="IsUse" Type="bit" Nullable="false" />
  2328. </EntityType>
  2329. <EntityType Name="FmsMaterialCodeProgress">
  2330. <Key>
  2331. <PropertyRef Name="ProgressId" />
  2332. </Key>
  2333. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  2334. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2335. <Property Name="Description" Type="nvarchar" MaxLength="100" />
  2336. </EntityType>
  2337. <EntityType Name="FmsMaterialCodePurchaseType">
  2338. <Key>
  2339. <PropertyRef Name="PurchaseTypeId" />
  2340. </Key>
  2341. <Property Name="PurchaseTypeId" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
  2342. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2343. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2344. </EntityType>
  2345. <EntityType Name="FmsMaterialCodeReleaseType">
  2346. <Key>
  2347. <PropertyRef Name="ReleaseTypeId" />
  2348. </Key>
  2349. <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
  2350. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2351. <Property Name="Description" Type="nvarchar" MaxLength="255" />
  2352. </EntityType>
  2353. <EntityType Name="FmsMaterialCodeType">
  2354. <Key>
  2355. <PropertyRef Name="SiteId" />
  2356. <PropertyRef Name="MaterialTypeId" />
  2357. </Key>
  2358. <Property Name="SiteId" Type="int" Nullable="false" />
  2359. <Property Name="MaterialTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2360. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2361. <Property Name="Nickname" Type="nvarchar" MaxLength="24" Nullable="false" />
  2362. <Property Name="IsUse" Type="bit" Nullable="false" />
  2363. </EntityType>
  2364. <EntityType Name="FmsMaterialPurchaseOrder">
  2365. <Key>
  2366. <PropertyRef Name="SiteId" />
  2367. <PropertyRef Name="PurchaseOrderId" />
  2368. </Key>
  2369. <Property Name="SiteId" Type="int" Nullable="false" />
  2370. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2371. <Property Name="PurchaseOrderId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2372. <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
  2373. <Property Name="TradeCompanyId" Type="int" />
  2374. <Property Name="OrderDate" Type="datetime" Nullable="false" />
  2375. <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2376. <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
  2377. <Property Name="Reason" Type="nvarchar" MaxLength="2000" />
  2378. <Property Name="StoredDueDate" Type="datetime" />
  2379. <Property Name="FileId" Type="int" />
  2380. </EntityType>
  2381. <EntityType Name="FmsMaterialPurchaseOrderMaterial">
  2382. <Key>
  2383. <PropertyRef Name="SiteId" />
  2384. <PropertyRef Name="PurchaseOrderId" />
  2385. <PropertyRef Name="MaterialId" />
  2386. </Key>
  2387. <Property Name="SiteId" Type="int" Nullable="false" />
  2388. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2389. <Property Name="PurchaseOrderId" Type="int" Nullable="false" />
  2390. <Property Name="MaterialId" Type="int" Nullable="false" />
  2391. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2392. <Property Name="UnitCost" Type="int" Nullable="false" />
  2393. </EntityType>
  2394. <EntityType Name="FmsMaterialPurchaseRequest">
  2395. <Key>
  2396. <PropertyRef Name="SiteId" />
  2397. <PropertyRef Name="PurchaseRequestId" />
  2398. </Key>
  2399. <Property Name="SiteId" Type="int" Nullable="false" />
  2400. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2401. <Property Name="PurchaseRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2402. <Property Name="PurchaseTypeId" Type="smallint" Nullable="false" />
  2403. <Property Name="RequestDate" Type="datetime" Nullable="false" />
  2404. <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2405. <Property Name="PurchaseHopeDate" Type="datetime" />
  2406. <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
  2407. <Property Name="Reason" Type="nvarchar" MaxLength="2000" Nullable="false" />
  2408. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  2409. <Property Name="ApprovalDate" Type="datetime" />
  2410. <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
  2411. <Property Name="bSameOrder" Type="bit" />
  2412. </EntityType>
  2413. <EntityType Name="FmsMaterialPurchaseRequestMaterial">
  2414. <Key>
  2415. <PropertyRef Name="SiteId" />
  2416. <PropertyRef Name="PurchaseRequestId" />
  2417. <PropertyRef Name="MaterialId" />
  2418. </Key>
  2419. <Property Name="SiteId" Type="int" Nullable="false" />
  2420. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2421. <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
  2422. <Property Name="MaterialId" Type="int" Nullable="false" />
  2423. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2424. </EntityType>
  2425. <EntityType Name="FmsMaterialRelease">
  2426. <Key>
  2427. <PropertyRef Name="SiteId" />
  2428. <PropertyRef Name="MaterialReleaseId" />
  2429. </Key>
  2430. <Property Name="SiteId" Type="int" Nullable="false" />
  2431. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2432. <Property Name="ReleaseDate" Type="datetime" Nullable="false" />
  2433. <Property Name="MaterialReleaseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2434. <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
  2435. <Property Name="WorkRequestId" Type="int" />
  2436. <Property Name="WarehouseId" Type="int" />
  2437. <Property Name="MaterialId" Type="int" />
  2438. <Property Name="MaterialCount" Type="int" />
  2439. <Property Name="StockCountByPoint" Type="int" />
  2440. <Property Name="ReleaseTotalCost" Type="int" />
  2441. <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
  2442. <Property Name="AdjustmentUserId" Type="nvarchar" MaxLength="24" />
  2443. <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
  2444. <Property Name="ConfirmedDate" Type="datetime" />
  2445. <Property Name="IsConfirmed" Type="bit" Nullable="false" />
  2446. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2447. </EntityType>
  2448. <EntityType Name="FmsMaterialStored">
  2449. <Key>
  2450. <PropertyRef Name="SiteId" />
  2451. <PropertyRef Name="MaterialStoredId" />
  2452. </Key>
  2453. <Property Name="SiteId" Type="int" Nullable="false" />
  2454. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2455. <Property Name="StoredDate" Type="datetime" Nullable="false" />
  2456. <Property Name="MaterialStoredId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2457. <Property Name="PurchaseOrderId" Type="int" />
  2458. <Property Name="WarehouseId" Type="int" Nullable="false" />
  2459. <Property Name="MaterialId" Type="int" Nullable="false" />
  2460. <Property Name="StoredCount" Type="int" Nullable="false" />
  2461. <Property Name="RemainStoredCount" Type="int" Nullable="false" />
  2462. <Property Name="UnitCost" Type="int" Nullable="false" />
  2463. <Property Name="StockCount" Type="int" Nullable="false" />
  2464. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  2465. <Property Name="StoredUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2466. <Property Name="ApprovalDate" Type="datetime" />
  2467. <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
  2468. <Property Name="IsApproval" Type="bit" Nullable="false" />
  2469. <Property Name="LocationInWarehouse" Type="nvarchar" MaxLength="100" />
  2470. </EntityType>
  2471. <EntityType Name="FmsMaterialTradeCompany">
  2472. <Key>
  2473. <PropertyRef Name="SiteId" />
  2474. <PropertyRef Name="TradeCompanyId" />
  2475. </Key>
  2476. <Property Name="SiteId" Type="int" Nullable="false" />
  2477. <Property Name="TradeCompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2478. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2479. <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" Nullable="false" />
  2480. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="24" />
  2481. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
  2482. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  2483. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  2484. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  2485. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  2486. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  2487. <Property Name="Address1" Type="nvarchar" MaxLength="100" />
  2488. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  2489. <Property Name="HomepageUri" Type="nvarchar" MaxLength="200" />
  2490. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  2491. <Property Name="IsUse" Type="bit" Nullable="false" />
  2492. </EntityType>
  2493. <EntityType Name="FmsMaterialWarehouse">
  2494. <Key>
  2495. <PropertyRef Name="SiteId" />
  2496. <PropertyRef Name="WarehouseId" />
  2497. </Key>
  2498. <Property Name="SiteId" Type="int" Nullable="false" />
  2499. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2500. <Property Name="WarehouseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2501. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2502. <Property Name="IsUse" Type="bit" Nullable="false" />
  2503. </EntityType>
  2504. <EntityType Name="FmsMonthlyReport">
  2505. <Key>
  2506. <PropertyRef Name="SiteId" />
  2507. <PropertyRef Name="MonthlyReportId" />
  2508. </Key>
  2509. <Property Name="SiteId" Type="int" Nullable="false" />
  2510. <Property Name="MonthlyReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2511. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2512. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  2513. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2514. <Property Name="AddDate" Type="datetime" Nullable="false" />
  2515. </EntityType>
  2516. <EntityType Name="FmsPaymentType">
  2517. <Key>
  2518. <PropertyRef Name="SiteId" />
  2519. <PropertyRef Name="PaymentTypeId" />
  2520. </Key>
  2521. <Property Name="SiteId" Type="int" Nullable="false" />
  2522. <Property Name="PaymentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2523. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2524. <Property Name="IsUse" Type="bit" />
  2525. </EntityType>
  2526. <EntityType Name="FmsReport">
  2527. <Key>
  2528. <PropertyRef Name="SiteId" />
  2529. <PropertyRef Name="RId" />
  2530. </Key>
  2531. <Property Name="SiteId" Type="int" Nullable="false" />
  2532. <Property Name="RId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2533. <Property Name="Title" Type="nvarchar" MaxLength="128" />
  2534. <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
  2535. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" />
  2536. <Property Name="FileId" Type="int" />
  2537. <Property Name="MakeDate" Type="datetime" Nullable="false" />
  2538. <Property Name="ConfirmUserId1" Type="nvarchar" MaxLength="24" />
  2539. <Property Name="ConfirmUserId2" Type="nvarchar" MaxLength="24" />
  2540. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2541. </EntityType>
  2542. <EntityType Name="FmsWorkCodeCauseClass">
  2543. <Key>
  2544. <PropertyRef Name="SiteId" />
  2545. <PropertyRef Name="CauseClassId" />
  2546. </Key>
  2547. <Property Name="SiteId" Type="int" Nullable="false" />
  2548. <Property Name="CauseClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2549. <Property Name="ParentId" Type="int" Nullable="false" />
  2550. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2551. <Property Name="IsUse" Type="bit" />
  2552. </EntityType>
  2553. <EntityType Name="FmsWorkCodeCycleUnit">
  2554. <Key>
  2555. <PropertyRef Name="SiteId" />
  2556. <PropertyRef Name="CycleUnitId" />
  2557. </Key>
  2558. <Property Name="SiteId" Type="int" Nullable="false" />
  2559. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2560. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2561. <Property Name="Description" Type="nvarchar" MaxLength="200" />
  2562. </EntityType>
  2563. <EntityType Name="FmsWorkCodeEmergency">
  2564. <Key>
  2565. <PropertyRef Name="SiteId" />
  2566. <PropertyRef Name="EmergencyId" />
  2567. </Key>
  2568. <Property Name="SiteId" Type="int" Nullable="false" />
  2569. <Property Name="EmergencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2570. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  2571. <Property Name="IsUse" Type="bit" />
  2572. </EntityType>
  2573. <EntityType Name="FmsWorkCodeHolidayWorkType">
  2574. <Key>
  2575. <PropertyRef Name="SiteId" />
  2576. <PropertyRef Name="HolidayWorkTypeId" />
  2577. </Key>
  2578. <Property Name="SiteId" Type="int" Nullable="false" />
  2579. <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
  2580. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  2581. <Property Name="IsUse" Type="bit" />
  2582. </EntityType>
  2583. <EntityType Name="FmsWorkCodeLegalInspectionAgency">
  2584. <Key>
  2585. <PropertyRef Name="SiteId" />
  2586. <PropertyRef Name="InspectionAgencyId" />
  2587. </Key>
  2588. <Property Name="SiteId" Type="int" Nullable="false" />
  2589. <Property Name="InspectionAgencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2590. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2591. <Property Name="IsUse" Type="bit" />
  2592. </EntityType>
  2593. <EntityType Name="FmsWorkCodeProgress">
  2594. <Key>
  2595. <PropertyRef Name="WorkProgressId" />
  2596. </Key>
  2597. <Property Name="WorkProgressId" Type="int" Nullable="false" />
  2598. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2599. <Property Name="Description" Type="nvarchar" MaxLength="512" />
  2600. </EntityType>
  2601. <EntityType Name="FmsWorkCodeType">
  2602. <Key>
  2603. <PropertyRef Name="WorkTypeId" />
  2604. </Key>
  2605. <Property Name="WorkTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2606. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2607. <Property Name="Description" Type="nvarchar" MaxLength="512" />
  2608. </EntityType>
  2609. <EntityType Name="FmsWorkOrder">
  2610. <Key>
  2611. <PropertyRef Name="SiteId" />
  2612. <PropertyRef Name="WorkRequestId" />
  2613. </Key>
  2614. <Property Name="SiteId" Type="int" Nullable="false" />
  2615. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2616. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2617. <Property Name="EmergencyId" Type="int" />
  2618. <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2619. <Property Name="OrderDate" Type="datetime" Nullable="false" />
  2620. <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
  2621. <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
  2622. <Property Name="Content" Type="nvarchar" MaxLength="2000" />
  2623. </EntityType>
  2624. <EntityType Name="FmsWorkOrderToFacility">
  2625. <Key>
  2626. <PropertyRef Name="SiteId" />
  2627. <PropertyRef Name="WorkRequestId" />
  2628. <PropertyRef Name="FacilityCode" />
  2629. </Key>
  2630. <Property Name="SiteId" Type="int" Nullable="false" />
  2631. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2632. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2633. </EntityType>
  2634. <EntityType Name="FmsWorkRequest">
  2635. <Key>
  2636. <PropertyRef Name="SiteId" />
  2637. <PropertyRef Name="WorkRequestId" />
  2638. </Key>
  2639. <Property Name="SiteId" Type="int" Nullable="false" />
  2640. <Property Name="WorkRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2641. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2642. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2643. <Property Name="WorkScheduleId" Type="int" />
  2644. <Property Name="WorkProgressId" Type="int" Nullable="false" />
  2645. <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
  2646. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2647. <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" />
  2648. <Property Name="RequestDate" Type="datetime" Nullable="false" />
  2649. <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
  2650. <Property Name="RejectUserId" Type="nvarchar" MaxLength="24" />
  2651. <Property Name="RejectDate" Type="datetime" />
  2652. <Property Name="RejectReason" Type="nvarchar" MaxLength="512" />
  2653. <Property Name="InspectionAgencyId" Type="int" />
  2654. </EntityType>
  2655. <EntityType Name="FmsWorkRequestToFacility">
  2656. <Key>
  2657. <PropertyRef Name="SiteId" />
  2658. <PropertyRef Name="WorkRequestId" />
  2659. <PropertyRef Name="FacilityCode" />
  2660. </Key>
  2661. <Property Name="SiteId" Type="int" Nullable="false" />
  2662. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2663. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2664. </EntityType>
  2665. <EntityType Name="FmsWorkResult">
  2666. <Key>
  2667. <PropertyRef Name="SiteId" />
  2668. <PropertyRef Name="WorkRequestId" />
  2669. </Key>
  2670. <Property Name="SiteId" Type="int" Nullable="false" />
  2671. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2672. <Property Name="WorkerUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2673. <Property Name="StartDate" Type="datetime" Nullable="false" />
  2674. <Property Name="EndDate" Type="datetime" Nullable="false" />
  2675. <Property Name="CauseClassId" Type="int" />
  2676. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2677. <Property Name="ConfirmedDate" Type="datetime" />
  2678. <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
  2679. <Property Name="IsConfirmed" Type="bit" Nullable="false" />
  2680. <Property Name="ConfirmDesc" Type="nvarchar" MaxLength="1024" />
  2681. </EntityType>
  2682. <EntityType Name="FmsWorkResultCheckItem">
  2683. <Key>
  2684. <PropertyRef Name="CheckItemId" />
  2685. </Key>
  2686. <Property Name="SiteId" Type="int" Nullable="false" />
  2687. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2688. <Property Name="FacilityCode" Type="int" />
  2689. <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2690. <Property Name="BoolResult" Type="bit" />
  2691. <Property Name="TextResult" Type="nvarchar" MaxLength="1024" />
  2692. <Property Name="CheckDate" Type="datetime" Nullable="false" />
  2693. <Property Name="FileId1" Type="int" />
  2694. <Property Name="FileId2" Type="int" />
  2695. </EntityType>
  2696. <EntityType Name="FmsWorkResultCheckItemMaterial">
  2697. <Key>
  2698. <PropertyRef Name="CheckItemMaterialId" />
  2699. </Key>
  2700. <Property Name="SiteId" Type="int" Nullable="false" />
  2701. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2702. <Property Name="CheckItemId" Type="int" Nullable="false" />
  2703. <Property Name="CheckItemMaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2704. <Property Name="MaterialId" Type="int" Nullable="false" />
  2705. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2706. <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" />
  2707. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  2708. </EntityType>
  2709. <EntityType Name="FmsWorkResultFile">
  2710. <Key>
  2711. <PropertyRef Name="SiteId" />
  2712. <PropertyRef Name="WorkRequestId" />
  2713. </Key>
  2714. <Property Name="SiteId" Type="int" Nullable="false" />
  2715. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2716. <Property Name="FileId" Type="int" Nullable="false" />
  2717. </EntityType>
  2718. <EntityType Name="FmsWorkResultLaw">
  2719. <Key>
  2720. <PropertyRef Name="SiteId" />
  2721. <PropertyRef Name="WorkRequestId" />
  2722. </Key>
  2723. <Property Name="SiteId" Type="int" Nullable="false" />
  2724. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2725. <Property Name="CertificationNo" Type="nvarchar" MaxLength="50" />
  2726. <Property Name="CheckCommission" Type="numeric" Precision="10" Scale="0" />
  2727. <Property Name="CheckResult" Type="bit" />
  2728. </EntityType>
  2729. <EntityType Name="FmsWorkResultToFacility">
  2730. <Key>
  2731. <PropertyRef Name="SiteId" />
  2732. <PropertyRef Name="WorkRequestId" />
  2733. <PropertyRef Name="FacilityCode" />
  2734. </Key>
  2735. <Property Name="SiteId" Type="int" Nullable="false" />
  2736. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2737. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2738. </EntityType>
  2739. <EntityType Name="FmsWorkSchedule">
  2740. <Key>
  2741. <PropertyRef Name="SiteId" />
  2742. <PropertyRef Name="WorkScheduleId" />
  2743. </Key>
  2744. <Property Name="SiteId" Type="int" Nullable="false" />
  2745. <Property Name="WorkScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2746. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2747. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2748. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  2749. <Property Name="InspectionAgencyId" Type="int" />
  2750. <Property Name="CycleSize" Type="int" Nullable="false" />
  2751. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2752. <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
  2753. <Property Name="WorkDueDate" Type="datetime" Nullable="false" />
  2754. <Property Name="UpdateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2755. <Property Name="IsUse" Type="bit" Nullable="false" />
  2756. <Property Name="IsAutoOrder" Type="bit" Nullable="false" />
  2757. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2758. </EntityType>
  2759. <EntityType Name="FmsWorkScheduleToFacility">
  2760. <Key>
  2761. <PropertyRef Name="SiteId" />
  2762. <PropertyRef Name="WorkScheduleId" />
  2763. <PropertyRef Name="FacilityCode" />
  2764. </Key>
  2765. <Property Name="SiteId" Type="int" Nullable="false" />
  2766. <Property Name="WorkScheduleId" Type="int" Nullable="false" />
  2767. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2768. </EntityType>
  2769. <EntityType Name="sysdiagrams">
  2770. <Key>
  2771. <PropertyRef Name="diagram_id" />
  2772. </Key>
  2773. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2774. <Property Name="principal_id" Type="int" Nullable="false" />
  2775. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2776. <Property Name="version" Type="int" />
  2777. <Property Name="definition" Type="varbinary(max)" />
  2778. </EntityType>
  2779. <EntityType Name="WeatherDongNaeForecast">
  2780. <Key>
  2781. <PropertyRef Name="BaseTime" />
  2782. <PropertyRef Name="ForecastTime" />
  2783. </Key>
  2784. <Property Name="BaseTime" Type="datetime" Nullable="false" />
  2785. <Property Name="nx" Type="int" />
  2786. <Property Name="ny" Type="int" />
  2787. <Property Name="ForecastTime" Type="datetime" Nullable="false" />
  2788. <Property Name="POP" Type="float" />
  2789. <Property Name="PTY" Type="float" />
  2790. <Property Name="R06" Type="float" />
  2791. <Property Name="REH" Type="float" />
  2792. <Property Name="S06" Type="float" />
  2793. <Property Name="SKY" Type="float" />
  2794. <Property Name="T3H" Type="float" />
  2795. <Property Name="TMN" Type="float" />
  2796. <Property Name="TMX" Type="float" />
  2797. <Property Name="UUU" Type="float" />
  2798. <Property Name="VVV" Type="float" />
  2799. <Property Name="VEC" Type="float" />
  2800. <Property Name="WSD" Type="float" />
  2801. <Property Name="Type" Type="int" />
  2802. <Property Name="DBTime" Type="datetime" />
  2803. <Property Name="Version" Type="int" />
  2804. </EntityType>
  2805. <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
  2806. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  2807. <End Role="BemsEnergyConfigPercentMonth" Type="Self.BemsEnergyConfigPercentMonth" Multiplicity="*" />
  2808. <ReferentialConstraint>
  2809. <Principal Role="CmSite">
  2810. <PropertyRef Name="SiteId" />
  2811. </Principal>
  2812. <Dependent Role="BemsEnergyConfigPercentMonth">
  2813. <PropertyRef Name="SiteId" />
  2814. </Dependent>
  2815. </ReferentialConstraint>
  2816. </Association>
  2817. <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
  2818. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  2819. <End Role="BemsEnergyConfigPercentWeek" Type="Self.BemsEnergyConfigPercentWeek" Multiplicity="*" />
  2820. <ReferentialConstraint>
  2821. <Principal Role="CmSite">
  2822. <PropertyRef Name="SiteId" />
  2823. </Principal>
  2824. <Dependent Role="BemsEnergyConfigPercentWeek">
  2825. <PropertyRef Name="SiteId" />
  2826. </Dependent>
  2827. </ReferentialConstraint>
  2828. </Association>
  2829. <Association Name="FK__BemsEnergyDaily__BemsFuelType">
  2830. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2831. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2832. <ReferentialConstraint>
  2833. <Principal Role="BemsFuelType">
  2834. <PropertyRef Name="FuelTypeId" />
  2835. </Principal>
  2836. <Dependent Role="BemsEnergyDaily">
  2837. <PropertyRef Name="FuelTypeId" />
  2838. </Dependent>
  2839. </ReferentialConstraint>
  2840. </Association>
  2841. <Association Name="FK__BemsEnergyDaily__BemsServiceType">
  2842. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="1" />
  2843. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2844. <ReferentialConstraint>
  2845. <Principal Role="BemsServiceType">
  2846. <PropertyRef Name="ServiceTypeId" />
  2847. </Principal>
  2848. <Dependent Role="BemsEnergyDaily">
  2849. <PropertyRef Name="ServiceTypeId" />
  2850. </Dependent>
  2851. </ReferentialConstraint>
  2852. </Association>
  2853. <Association Name="FK__BemsEnergyDaily__CmBuilding">
  2854. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  2855. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2856. <ReferentialConstraint>
  2857. <Principal Role="CmBuilding">
  2858. <PropertyRef Name="SiteId" />
  2859. <PropertyRef Name="BuildingId" />
  2860. </Principal>
  2861. <Dependent Role="BemsEnergyDaily">
  2862. <PropertyRef Name="SiteId" />
  2863. <PropertyRef Name="BuildingId" />
  2864. </Dependent>
  2865. </ReferentialConstraint>
  2866. </Association>
  2867. <Association Name="FK__BemsFactorCo2__BemsFuelType">
  2868. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2869. <End Role="BemsFactorCo2" Type="Self.BemsFactorCo2" Multiplicity="0..1" />
  2870. <ReferentialConstraint>
  2871. <Principal Role="BemsFuelType">
  2872. <PropertyRef Name="FuelTypeId" />
  2873. </Principal>
  2874. <Dependent Role="BemsFactorCo2">
  2875. <PropertyRef Name="FuelTypeId" />
  2876. </Dependent>
  2877. </ReferentialConstraint>
  2878. </Association>
  2879. <Association Name="FK__BemsFactorToe__BemsFuelType">
  2880. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2881. <End Role="BemsFactorToe" Type="Self.BemsFactorToe" Multiplicity="0..1" />
  2882. <ReferentialConstraint>
  2883. <Principal Role="BemsFuelType">
  2884. <PropertyRef Name="FuelTypeId" />
  2885. </Principal>
  2886. <Dependent Role="BemsFactorToe">
  2887. <PropertyRef Name="FuelTypeId" />
  2888. </Dependent>
  2889. </ReferentialConstraint>
  2890. </Association>
  2891. <Association Name="FK__BemsFormula__BemsFormulaBase">
  2892. <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
  2893. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
  2894. <ReferentialConstraint>
  2895. <Principal Role="BemsFormulaBase">
  2896. <PropertyRef Name="FacilityTypeId" />
  2897. <PropertyRef Name="FormulaId" />
  2898. </Principal>
  2899. <Dependent Role="BemsFormula">
  2900. <PropertyRef Name="FacilityTypeId" />
  2901. <PropertyRef Name="FormulaId" />
  2902. </Dependent>
  2903. </ReferentialConstraint>
  2904. </Association>
  2905. <Association Name="FK__BemsFormulaParameter__BemsFormula">
  2906. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  2907. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  2908. <ReferentialConstraint>
  2909. <Principal Role="BemsFormula">
  2910. <PropertyRef Name="SiteId" />
  2911. <PropertyRef Name="FacilityTypeId" />
  2912. <PropertyRef Name="FacilityCode" />
  2913. <PropertyRef Name="FormulaId" />
  2914. </Principal>
  2915. <Dependent Role="BemsFormulaParameter">
  2916. <PropertyRef Name="SiteId" />
  2917. <PropertyRef Name="FacilityTypeId" />
  2918. <PropertyRef Name="FacilityCode" />
  2919. <PropertyRef Name="FormulaId" />
  2920. </Dependent>
  2921. </ReferentialConstraint>
  2922. </Association>
  2923. <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
  2924. <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
  2925. <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
  2926. <ReferentialConstraint>
  2927. <Principal Role="BemsFormulaTable">
  2928. <PropertyRef Name="TableId" />
  2929. </Principal>
  2930. <Dependent Role="BemsFormulaTableValue">
  2931. <PropertyRef Name="TableId" />
  2932. </Dependent>
  2933. </ReferentialConstraint>
  2934. </Association>
  2935. <Association Name="FK__BemsMonitoringPo__1372D2FE">
  2936. <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
  2937. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  2938. <ReferentialConstraint>
  2939. <Principal Role="BemsAnalysisType">
  2940. <PropertyRef Name="SiteId" />
  2941. <PropertyRef Name="AnalysisType" />
  2942. </Principal>
  2943. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  2944. <PropertyRef Name="SiteId" />
  2945. <PropertyRef Name="AnalysisType" />
  2946. </Dependent>
  2947. </ReferentialConstraint>
  2948. </Association>
  2949. <Association Name="FK__BemsMonitoringPo__155B1B70">
  2950. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  2951. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  2952. <ReferentialConstraint>
  2953. <Principal Role="BemsMonitoringPoint">
  2954. <PropertyRef Name="SiteId" />
  2955. <PropertyRef Name="FacilityCode" />
  2956. <PropertyRef Name="PropertyId" />
  2957. </Principal>
  2958. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  2959. <PropertyRef Name="SiteId" />
  2960. <PropertyRef Name="FacilityCode" />
  2961. <PropertyRef Name="PropertyId" />
  2962. </Dependent>
  2963. </ReferentialConstraint>
  2964. </Association>
  2965. <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
  2966. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
  2967. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2968. <ReferentialConstraint>
  2969. <Principal Role="BemsFuelType">
  2970. <PropertyRef Name="FuelTypeId" />
  2971. </Principal>
  2972. <Dependent Role="BemsMonitoringPoint">
  2973. <PropertyRef Name="FuelTypeId" />
  2974. </Dependent>
  2975. </ReferentialConstraint>
  2976. </Association>
  2977. <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
  2978. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  2979. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2980. <ReferentialConstraint>
  2981. <Principal Role="BemsServiceType">
  2982. <PropertyRef Name="ServiceTypeId" />
  2983. </Principal>
  2984. <Dependent Role="BemsMonitoringPoint">
  2985. <PropertyRef Name="ServiceTypeId" />
  2986. </Dependent>
  2987. </ReferentialConstraint>
  2988. </Association>
  2989. <Association Name="FK__BemsMonitoringPoint__CmBuilding">
  2990. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
  2991. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2992. <ReferentialConstraint>
  2993. <Principal Role="CmBuilding">
  2994. <PropertyRef Name="SiteId" />
  2995. <PropertyRef Name="BuildingId" />
  2996. </Principal>
  2997. <Dependent Role="BemsMonitoringPoint">
  2998. <PropertyRef Name="SiteId" />
  2999. <PropertyRef Name="BuildingId" />
  3000. </Dependent>
  3001. </ReferentialConstraint>
  3002. </Association>
  3003. <Association Name="FK__BemsMonitoringPoint__CmFloor">
  3004. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
  3005. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  3006. <ReferentialConstraint>
  3007. <Principal Role="CmFloor">
  3008. <PropertyRef Name="SiteId" />
  3009. <PropertyRef Name="BuildingId" />
  3010. <PropertyRef Name="FloorId" />
  3011. </Principal>
  3012. <Dependent Role="BemsMonitoringPoint">
  3013. <PropertyRef Name="SiteId" />
  3014. <PropertyRef Name="BuildingId" />
  3015. <PropertyRef Name="FloorId" />
  3016. </Dependent>
  3017. </ReferentialConstraint>
  3018. </Association>
  3019. <Association Name="FK__BemsMonitoringPoint__CmZone">
  3020. <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
  3021. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  3022. <ReferentialConstraint>
  3023. <Principal Role="CmZone">
  3024. <PropertyRef Name="SiteId" />
  3025. <PropertyRef Name="BuildingId" />
  3026. <PropertyRef Name="FloorId" />
  3027. <PropertyRef Name="ZoneId" />
  3028. </Principal>
  3029. <Dependent Role="BemsMonitoringPoint">
  3030. <PropertyRef Name="SiteId" />
  3031. <PropertyRef Name="BuildingId" />
  3032. <PropertyRef Name="FloorId" />
  3033. <PropertyRef Name="ZoneId" />
  3034. </Dependent>
  3035. </ReferentialConstraint>
  3036. </Association>
  3037. <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
  3038. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3039. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  3040. <ReferentialConstraint>
  3041. <Principal Role="BemsFacilityType">
  3042. <PropertyRef Name="FacilityTypeId" />
  3043. </Principal>
  3044. <Dependent Role="BemsMonitoringPointBaseData">
  3045. <PropertyRef Name="FacilityTypeId" />
  3046. </Dependent>
  3047. </ReferentialConstraint>
  3048. </Association>
  3049. <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
  3050. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
  3051. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  3052. <ReferentialConstraint>
  3053. <Principal Role="BemsFuelType">
  3054. <PropertyRef Name="FuelTypeId" />
  3055. </Principal>
  3056. <Dependent Role="BemsMonitoringPointBaseData">
  3057. <PropertyRef Name="FuelTypeId" />
  3058. </Dependent>
  3059. </ReferentialConstraint>
  3060. </Association>
  3061. <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
  3062. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  3063. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  3064. <ReferentialConstraint>
  3065. <Principal Role="BemsServiceType">
  3066. <PropertyRef Name="ServiceTypeId" />
  3067. </Principal>
  3068. <Dependent Role="BemsMonitoringPointBaseData">
  3069. <PropertyRef Name="ServiceTypeId" />
  3070. </Dependent>
  3071. </ReferentialConstraint>
  3072. </Association>
  3073. <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  3074. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3075. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  3076. <ReferentialConstraint>
  3077. <Principal Role="BemsFacilityType">
  3078. <PropertyRef Name="FacilityTypeId" />
  3079. </Principal>
  3080. <Dependent Role="BemsMonitoringPointHistory15min">
  3081. <PropertyRef Name="FacilityTypeId" />
  3082. </Dependent>
  3083. </ReferentialConstraint>
  3084. </Association>
  3085. <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  3086. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3087. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  3088. <ReferentialConstraint>
  3089. <Principal Role="BemsMonitoringPoint">
  3090. <PropertyRef Name="SiteId" />
  3091. <PropertyRef Name="FacilityCode" />
  3092. <PropertyRef Name="PropertyId" />
  3093. </Principal>
  3094. <Dependent Role="BemsMonitoringPointHistory15min">
  3095. <PropertyRef Name="SiteId" />
  3096. <PropertyRef Name="FacilityCode" />
  3097. <PropertyRef Name="PropertyId" />
  3098. </Dependent>
  3099. </ReferentialConstraint>
  3100. </Association>
  3101. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  3102. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3103. <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  3104. <ReferentialConstraint>
  3105. <Principal Role="BemsFacilityType">
  3106. <PropertyRef Name="FacilityTypeId" />
  3107. </Principal>
  3108. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  3109. <PropertyRef Name="FacilityTypeId" />
  3110. </Dependent>
  3111. </ReferentialConstraint>
  3112. </Association>
  3113. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  3114. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3115. <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  3116. <ReferentialConstraint>
  3117. <Principal Role="BemsMonitoringPoint">
  3118. <PropertyRef Name="SiteId" />
  3119. <PropertyRef Name="FacilityCode" />
  3120. <PropertyRef Name="PropertyId" />
  3121. </Principal>
  3122. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  3123. <PropertyRef Name="SiteId" />
  3124. <PropertyRef Name="FacilityCode" />
  3125. <PropertyRef Name="PropertyId" />
  3126. </Dependent>
  3127. </ReferentialConstraint>
  3128. </Association>
  3129. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  3130. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3131. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  3132. <ReferentialConstraint>
  3133. <Principal Role="BemsFacilityType">
  3134. <PropertyRef Name="FacilityTypeId" />
  3135. </Principal>
  3136. <Dependent Role="BemsMonitoringPointHistoryDaily">
  3137. <PropertyRef Name="FacilityTypeId" />
  3138. </Dependent>
  3139. </ReferentialConstraint>
  3140. </Association>
  3141. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  3142. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3143. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  3144. <ReferentialConstraint>
  3145. <Principal Role="BemsMonitoringPoint">
  3146. <PropertyRef Name="SiteId" />
  3147. <PropertyRef Name="FacilityCode" />
  3148. <PropertyRef Name="PropertyId" />
  3149. </Principal>
  3150. <Dependent Role="BemsMonitoringPointHistoryDaily">
  3151. <PropertyRef Name="SiteId" />
  3152. <PropertyRef Name="FacilityCode" />
  3153. <PropertyRef Name="PropertyId" />
  3154. </Dependent>
  3155. </ReferentialConstraint>
  3156. </Association>
  3157. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  3158. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3159. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  3160. <ReferentialConstraint>
  3161. <Principal Role="BemsFacilityType">
  3162. <PropertyRef Name="FacilityTypeId" />
  3163. </Principal>
  3164. <Dependent Role="BemsMonitoringPointHistoryHourly">
  3165. <PropertyRef Name="FacilityTypeId" />
  3166. </Dependent>
  3167. </ReferentialConstraint>
  3168. </Association>
  3169. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  3170. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3171. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  3172. <ReferentialConstraint>
  3173. <Principal Role="BemsMonitoringPoint">
  3174. <PropertyRef Name="SiteId" />
  3175. <PropertyRef Name="FacilityCode" />
  3176. <PropertyRef Name="PropertyId" />
  3177. </Principal>
  3178. <Dependent Role="BemsMonitoringPointHistoryHourly">
  3179. <PropertyRef Name="SiteId" />
  3180. <PropertyRef Name="FacilityCode" />
  3181. <PropertyRef Name="PropertyId" />
  3182. </Dependent>
  3183. </ReferentialConstraint>
  3184. </Association>
  3185. <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  3186. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3187. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  3188. <ReferentialConstraint>
  3189. <Principal Role="BemsFacilityType">
  3190. <PropertyRef Name="FacilityTypeId" />
  3191. </Principal>
  3192. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  3193. <PropertyRef Name="FacilityTypeId" />
  3194. </Dependent>
  3195. </ReferentialConstraint>
  3196. </Association>
  3197. <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  3198. <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="1" />
  3199. <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="*" />
  3200. <ReferentialConstraint>
  3201. <Principal Role="BemsNoticePriceContractType">
  3202. <PropertyRef Name="FuelTypeId" />
  3203. <PropertyRef Name="ContractType" />
  3204. </Principal>
  3205. <Dependent Role="BemsNoticePriceBase">
  3206. <PropertyRef Name="FuelTypeId" />
  3207. <PropertyRef Name="ContractType" />
  3208. </Dependent>
  3209. </ReferentialConstraint>
  3210. </Association>
  3211. <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
  3212. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  3213. <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="*" />
  3214. <ReferentialConstraint>
  3215. <Principal Role="BemsFuelType">
  3216. <PropertyRef Name="FuelTypeId" />
  3217. </Principal>
  3218. <Dependent Role="BemsNoticePriceContractType">
  3219. <PropertyRef Name="FuelTypeId" />
  3220. </Dependent>
  3221. </ReferentialConstraint>
  3222. </Association>
  3223. <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  3224. <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="1" />
  3225. <End Role="BemsNoticePriceDetail" Type="Self.BemsNoticePriceDetail" Multiplicity="*" />
  3226. <ReferentialConstraint>
  3227. <Principal Role="BemsNoticePriceBase">
  3228. <PropertyRef Name="SiteId" />
  3229. <PropertyRef Name="FuelTypeId" />
  3230. <PropertyRef Name="ApplyDate" />
  3231. <PropertyRef Name="ContractType" />
  3232. </Principal>
  3233. <Dependent Role="BemsNoticePriceDetail">
  3234. <PropertyRef Name="SiteId" />
  3235. <PropertyRef Name="FuelTypeId" />
  3236. <PropertyRef Name="ApplyDate" />
  3237. <PropertyRef Name="ContractType" />
  3238. </Dependent>
  3239. </ReferentialConstraint>
  3240. </Association>
  3241. <Association Name="FK__CmCompany__345EC57D">
  3242. <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
  3243. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  3244. <ReferentialConstraint>
  3245. <Principal Role="CmCompanyType">
  3246. <PropertyRef Name="SiteId" />
  3247. <PropertyRef Name="CompanyTypeId" />
  3248. </Principal>
  3249. <Dependent Role="CmCompany">
  3250. <PropertyRef Name="SiteId" />
  3251. <PropertyRef Name="CompanyTypeId" />
  3252. </Dependent>
  3253. </ReferentialConstraint>
  3254. </Association>
  3255. <Association Name="FK__CmCompany__SiteI__336AA144">
  3256. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3257. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  3258. <ReferentialConstraint>
  3259. <Principal Role="CmSite">
  3260. <PropertyRef Name="SiteId" />
  3261. </Principal>
  3262. <Dependent Role="CmCompany">
  3263. <PropertyRef Name="SiteId" />
  3264. </Dependent>
  3265. </ReferentialConstraint>
  3266. </Association>
  3267. <Association Name="FK__CmDepartment__3552E9B6">
  3268. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
  3269. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
  3270. <ReferentialConstraint>
  3271. <Principal Role="CmCompany">
  3272. <PropertyRef Name="SiteId" />
  3273. <PropertyRef Name="CompanyId" />
  3274. </Principal>
  3275. <Dependent Role="CmDepartment">
  3276. <PropertyRef Name="SiteId" />
  3277. <PropertyRef Name="CompanyId" />
  3278. </Dependent>
  3279. </ReferentialConstraint>
  3280. </Association>
  3281. <Association Name="FK__CmFacility__CmFacility">
  3282. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
  3283. <End Role="CmFacility1" Type="Self.CmFacility" Multiplicity="*" />
  3284. <ReferentialConstraint>
  3285. <Principal Role="CmFacility">
  3286. <PropertyRef Name="SiteId" />
  3287. <PropertyRef Name="FacilityCode" />
  3288. </Principal>
  3289. <Dependent Role="CmFacility1">
  3290. <PropertyRef Name="SiteId" />
  3291. <PropertyRef Name="ParentFacilityCode" />
  3292. </Dependent>
  3293. </ReferentialConstraint>
  3294. </Association>
  3295. <Association Name="FK__CmFacilityFile__7720AD13">
  3296. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3297. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="*" />
  3298. <ReferentialConstraint>
  3299. <Principal Role="CmFacility">
  3300. <PropertyRef Name="SiteId" />
  3301. <PropertyRef Name="FacilityCode" />
  3302. </Principal>
  3303. <Dependent Role="CmFacilityFile">
  3304. <PropertyRef Name="SiteId" />
  3305. <PropertyRef Name="FacilityCode" />
  3306. </Dependent>
  3307. </ReferentialConstraint>
  3308. </Association>
  3309. <Association Name="FK__CmFacilityFile__CmFile">
  3310. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  3311. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
  3312. <ReferentialConstraint>
  3313. <Principal Role="CmFile">
  3314. <PropertyRef Name="SiteId" />
  3315. <PropertyRef Name="FileId" />
  3316. </Principal>
  3317. <Dependent Role="CmFacilityFile">
  3318. <PropertyRef Name="SiteId" />
  3319. <PropertyRef Name="FileId" />
  3320. </Dependent>
  3321. </ReferentialConstraint>
  3322. </Association>
  3323. <Association Name="FK__CmFacilityManual__79FD19BE">
  3324. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3325. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  3326. <ReferentialConstraint>
  3327. <Principal Role="CmFacility">
  3328. <PropertyRef Name="SiteId" />
  3329. <PropertyRef Name="FacilityCode" />
  3330. </Principal>
  3331. <Dependent Role="FmsFacilityManual">
  3332. <PropertyRef Name="SiteId" />
  3333. <PropertyRef Name="FacilityCode" />
  3334. </Dependent>
  3335. </ReferentialConstraint>
  3336. </Association>
  3337. <Association Name="FK__CmFacilityManual__7BE56230">
  3338. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3339. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  3340. <ReferentialConstraint>
  3341. <Principal Role="CmBusinessField">
  3342. <PropertyRef Name="SiteId" />
  3343. <PropertyRef Name="BusinessFieldId" />
  3344. </Principal>
  3345. <Dependent Role="FmsFacilityManual">
  3346. <PropertyRef Name="SiteId" />
  3347. <PropertyRef Name="BusinessFieldId" />
  3348. </Dependent>
  3349. </ReferentialConstraint>
  3350. </Association>
  3351. <Association Name="FK__CmFile__CmFileCategory">
  3352. <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
  3353. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  3354. <ReferentialConstraint>
  3355. <Principal Role="CmFileCategory">
  3356. <PropertyRef Name="FileCategoryId" />
  3357. </Principal>
  3358. <Dependent Role="CmFile">
  3359. <PropertyRef Name="FileCategoryId" />
  3360. </Dependent>
  3361. </ReferentialConstraint>
  3362. </Association>
  3363. <Association Name="FK__CmFile__SiteId__2759D01A">
  3364. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3365. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  3366. <ReferentialConstraint>
  3367. <Principal Role="CmSite">
  3368. <PropertyRef Name="SiteId" />
  3369. </Principal>
  3370. <Dependent Role="CmFile">
  3371. <PropertyRef Name="SiteId" />
  3372. </Dependent>
  3373. </ReferentialConstraint>
  3374. </Association>
  3375. <Association Name="FK__CmFloor__3CF40B7E">
  3376. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  3377. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
  3378. <ReferentialConstraint>
  3379. <Principal Role="CmBuilding">
  3380. <PropertyRef Name="SiteId" />
  3381. <PropertyRef Name="BuildingId" />
  3382. </Principal>
  3383. <Dependent Role="CmFloor">
  3384. <PropertyRef Name="SiteId" />
  3385. <PropertyRef Name="BuildingId" />
  3386. </Dependent>
  3387. </ReferentialConstraint>
  3388. </Association>
  3389. <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
  3390. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3391. <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
  3392. <ReferentialConstraint>
  3393. <Principal Role="CmSite">
  3394. <PropertyRef Name="SiteId" />
  3395. </Principal>
  3396. <Dependent Role="CmHoliday">
  3397. <PropertyRef Name="SiteId" />
  3398. </Dependent>
  3399. </ReferentialConstraint>
  3400. </Association>
  3401. <Association Name="FK__CmHoliday__SiteI__0D99FE17">
  3402. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3403. <End Role="CmHolidayWeekend" Type="Self.CmHolidayWeekend" Multiplicity="0..1" />
  3404. <ReferentialConstraint>
  3405. <Principal Role="CmSite">
  3406. <PropertyRef Name="SiteId" />
  3407. </Principal>
  3408. <Dependent Role="CmHolidayWeekend">
  3409. <PropertyRef Name="SiteId" />
  3410. </Dependent>
  3411. </ReferentialConstraint>
  3412. </Association>
  3413. <Association Name="FK__CmHoliday__SiteI__10766AC2">
  3414. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3415. <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
  3416. <ReferentialConstraint>
  3417. <Principal Role="CmSite">
  3418. <PropertyRef Name="SiteId" />
  3419. </Principal>
  3420. <Dependent Role="CmHolidayCustom">
  3421. <PropertyRef Name="SiteId" />
  3422. </Dependent>
  3423. </ReferentialConstraint>
  3424. </Association>
  3425. <Association Name="FK__CmHoliday__SiteI__65AC084E">
  3426. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3427. <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
  3428. <ReferentialConstraint>
  3429. <Principal Role="CmSite">
  3430. <PropertyRef Name="SiteId" />
  3431. </Principal>
  3432. <Dependent Role="CmHoliday">
  3433. <PropertyRef Name="SiteId" />
  3434. </Dependent>
  3435. </ReferentialConstraint>
  3436. </Association>
  3437. <Association Name="FK__CmHoliday__SiteI__66A02C87">
  3438. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3439. <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
  3440. <ReferentialConstraint>
  3441. <Principal Role="CmSite">
  3442. <PropertyRef Name="SiteId" />
  3443. </Principal>
  3444. <Dependent Role="CmHolidayCustom">
  3445. <PropertyRef Name="SiteId" />
  3446. </Dependent>
  3447. </ReferentialConstraint>
  3448. </Association>
  3449. <Association Name="FK__CmLocation__3DE82FB7">
  3450. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  3451. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  3452. <ReferentialConstraint>
  3453. <Principal Role="CmFloor">
  3454. <PropertyRef Name="SiteId" />
  3455. <PropertyRef Name="BuildingId" />
  3456. <PropertyRef Name="FloorId" />
  3457. </Principal>
  3458. <Dependent Role="CmZone">
  3459. <PropertyRef Name="SiteId" />
  3460. <PropertyRef Name="BuildingId" />
  3461. <PropertyRef Name="FloorId" />
  3462. </Dependent>
  3463. </ReferentialConstraint>
  3464. </Association>
  3465. <Association Name="FK__CmPositio__SiteI__6A70BD6B">
  3466. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3467. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
  3468. <ReferentialConstraint>
  3469. <Principal Role="CmSite">
  3470. <PropertyRef Name="SiteId" />
  3471. </Principal>
  3472. <Dependent Role="CmPosition">
  3473. <PropertyRef Name="SiteId" />
  3474. </Dependent>
  3475. </ReferentialConstraint>
  3476. </Association>
  3477. <Association Name="FK__CmUserGro__SiteI__53D770D6">
  3478. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3479. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="*" />
  3480. <ReferentialConstraint>
  3481. <Principal Role="CmSite">
  3482. <PropertyRef Name="SiteId" />
  3483. </Principal>
  3484. <Dependent Role="CmUserGroup">
  3485. <PropertyRef Name="SiteId" />
  3486. </Dependent>
  3487. </ReferentialConstraint>
  3488. </Association>
  3489. <Association Name="FK__CmUserGroupPermission__CmUserGroup">
  3490. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
  3491. <OnDelete Action="Cascade" />
  3492. </End>
  3493. <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
  3494. <ReferentialConstraint>
  3495. <Principal Role="CmUserGroup">
  3496. <PropertyRef Name="SiteId" />
  3497. <PropertyRef Name="UserGroupId" />
  3498. </Principal>
  3499. <Dependent Role="CmUserGroupPermission">
  3500. <PropertyRef Name="SiteId" />
  3501. <PropertyRef Name="UserGroupId" />
  3502. </Dependent>
  3503. </ReferentialConstraint>
  3504. </Association>
  3505. <Association Name="FK__CmUserPos__SiteI__44952D46">
  3506. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3507. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
  3508. <ReferentialConstraint>
  3509. <Principal Role="CmSite">
  3510. <PropertyRef Name="SiteId" />
  3511. </Principal>
  3512. <Dependent Role="CmPosition">
  3513. <PropertyRef Name="SiteId" />
  3514. </Dependent>
  3515. </ReferentialConstraint>
  3516. </Association>
  3517. <Association Name="FK__CmUserToLicense__CmUser">
  3518. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3519. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  3520. <ReferentialConstraint>
  3521. <Principal Role="CmUser">
  3522. <PropertyRef Name="SiteId" />
  3523. <PropertyRef Name="UserId" />
  3524. </Principal>
  3525. <Dependent Role="CmUserToLicense">
  3526. <PropertyRef Name="SiteId" />
  3527. <PropertyRef Name="UserId" />
  3528. </Dependent>
  3529. </ReferentialConstraint>
  3530. </Association>
  3531. <Association Name="FK__CmUserToLicense__FmsLicense">
  3532. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
  3533. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  3534. <ReferentialConstraint>
  3535. <Principal Role="FmsLicense">
  3536. <PropertyRef Name="SiteId" />
  3537. <PropertyRef Name="LicenseId" />
  3538. </Principal>
  3539. <Dependent Role="CmUserToLicense">
  3540. <PropertyRef Name="SiteId" />
  3541. <PropertyRef Name="LicenseId" />
  3542. </Dependent>
  3543. </ReferentialConstraint>
  3544. </Association>
  3545. <Association Name="FK__CmZone__CmBuilding">
  3546. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  3547. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  3548. <ReferentialConstraint>
  3549. <Principal Role="CmBuilding">
  3550. <PropertyRef Name="SiteId" />
  3551. <PropertyRef Name="BuildingId" />
  3552. </Principal>
  3553. <Dependent Role="CmZone">
  3554. <PropertyRef Name="SiteId" />
  3555. <PropertyRef Name="BuildingId" />
  3556. </Dependent>
  3557. </ReferentialConstraint>
  3558. </Association>
  3559. <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
  3560. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3561. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
  3562. <ReferentialConstraint>
  3563. <Principal Role="CmSite">
  3564. <PropertyRef Name="SiteId" />
  3565. </Principal>
  3566. <Dependent Role="FmsDrawingCodeGroup">
  3567. <PropertyRef Name="SiteId" />
  3568. </Dependent>
  3569. </ReferentialConstraint>
  3570. </Association>
  3571. <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
  3572. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3573. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
  3574. <ReferentialConstraint>
  3575. <Principal Role="CmSite">
  3576. <PropertyRef Name="SiteId" />
  3577. </Principal>
  3578. <Dependent Role="FmsDrawingCodeType">
  3579. <PropertyRef Name="SiteId" />
  3580. </Dependent>
  3581. </ReferentialConstraint>
  3582. </Association>
  3583. <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
  3584. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3585. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3586. <ReferentialConstraint>
  3587. <Principal Role="CmSite">
  3588. <PropertyRef Name="SiteId" />
  3589. </Principal>
  3590. <Dependent Role="FmsDrawing">
  3591. <PropertyRef Name="SiteId" />
  3592. </Dependent>
  3593. </ReferentialConstraint>
  3594. </Association>
  3595. <Association Name="FK__FmsDrawin__SiteI__6F357288">
  3596. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3597. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
  3598. <ReferentialConstraint>
  3599. <Principal Role="CmSite">
  3600. <PropertyRef Name="SiteId" />
  3601. </Principal>
  3602. <Dependent Role="FmsDrawingCodeGroup">
  3603. <PropertyRef Name="SiteId" />
  3604. </Dependent>
  3605. </ReferentialConstraint>
  3606. </Association>
  3607. <Association Name="FK__FmsDrawin__SiteI__702996C1">
  3608. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3609. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
  3610. <ReferentialConstraint>
  3611. <Principal Role="CmSite">
  3612. <PropertyRef Name="SiteId" />
  3613. </Principal>
  3614. <Dependent Role="FmsDrawingCodeType">
  3615. <PropertyRef Name="SiteId" />
  3616. </Dependent>
  3617. </ReferentialConstraint>
  3618. </Association>
  3619. <Association Name="FK__FmsDrawing__6E565CE8">
  3620. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
  3621. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3622. <ReferentialConstraint>
  3623. <Principal Role="FmsDrawingCodeGroup">
  3624. <PropertyRef Name="SiteId" />
  3625. <PropertyRef Name="DrawingGroupId" />
  3626. </Principal>
  3627. <Dependent Role="FmsDrawing">
  3628. <PropertyRef Name="SiteId" />
  3629. <PropertyRef Name="DrawingGroupId" />
  3630. </Dependent>
  3631. </ReferentialConstraint>
  3632. </Association>
  3633. <Association Name="FK__FmsDrawing__6F4A8121">
  3634. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
  3635. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3636. <ReferentialConstraint>
  3637. <Principal Role="FmsDrawingCodeType">
  3638. <PropertyRef Name="SiteId" />
  3639. <PropertyRef Name="DrawingTypeId" />
  3640. </Principal>
  3641. <Dependent Role="FmsDrawing">
  3642. <PropertyRef Name="SiteId" />
  3643. <PropertyRef Name="DrawingTypeId" />
  3644. </Dependent>
  3645. </ReferentialConstraint>
  3646. </Association>
  3647. <Association Name="FK__FmsDrawingHistor__04DA9AE4">
  3648. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  3649. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3650. <ReferentialConstraint>
  3651. <Principal Role="CmFile">
  3652. <PropertyRef Name="SiteId" />
  3653. <PropertyRef Name="FileId" />
  3654. </Principal>
  3655. <Dependent Role="FmsDrawingHistory">
  3656. <PropertyRef Name="SiteId" />
  3657. <PropertyRef Name="FileId" />
  3658. </Dependent>
  3659. </ReferentialConstraint>
  3660. </Association>
  3661. <Association Name="FK__FmsDrawingHistor__7132C993">
  3662. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1">
  3663. <OnDelete Action="Cascade" />
  3664. </End>
  3665. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3666. <ReferentialConstraint>
  3667. <Principal Role="FmsDrawing">
  3668. <PropertyRef Name="SiteId" />
  3669. <PropertyRef Name="DrawingId" />
  3670. </Principal>
  3671. <Dependent Role="FmsDrawingHistory">
  3672. <PropertyRef Name="SiteId" />
  3673. <PropertyRef Name="DrawingId" />
  3674. </Dependent>
  3675. </ReferentialConstraint>
  3676. </Association>
  3677. <Association Name="FK__FmsDrawingHistory__CmUser">
  3678. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  3679. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3680. <ReferentialConstraint>
  3681. <Principal Role="CmUser">
  3682. <PropertyRef Name="SiteId" />
  3683. <PropertyRef Name="UserId" />
  3684. </Principal>
  3685. <Dependent Role="FmsDrawingHistory">
  3686. <PropertyRef Name="SiteId" />
  3687. <PropertyRef Name="UpdatedUserId" />
  3688. </Dependent>
  3689. </ReferentialConstraint>
  3690. </Association>
  3691. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  3692. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  3693. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  3694. <ReferentialConstraint>
  3695. <Principal Role="FmsWorkCodeCycleUnit">
  3696. <PropertyRef Name="SiteId" />
  3697. <PropertyRef Name="CycleUnitId" />
  3698. </Principal>
  3699. <Dependent Role="FmsFacilityCheckItem">
  3700. <PropertyRef Name="SiteId" />
  3701. <PropertyRef Name="CycleUnitId" />
  3702. </Dependent>
  3703. </ReferentialConstraint>
  3704. </Association>
  3705. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  3706. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  3707. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  3708. <ReferentialConstraint>
  3709. <Principal Role="FmsWorkCodeType">
  3710. <PropertyRef Name="WorkTypeId" />
  3711. </Principal>
  3712. <Dependent Role="FmsFacilityCheckItem">
  3713. <PropertyRef Name="WorkTypeId" />
  3714. </Dependent>
  3715. </ReferentialConstraint>
  3716. </Association>
  3717. <Association Name="FK__FmsFacilityCodeClass__CmSite">
  3718. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1">
  3719. <OnDelete Action="Cascade" />
  3720. </End>
  3721. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  3722. <ReferentialConstraint>
  3723. <Principal Role="CmSite">
  3724. <PropertyRef Name="SiteId" />
  3725. </Principal>
  3726. <Dependent Role="FmsFacilityCodeClass">
  3727. <PropertyRef Name="SiteId" />
  3728. </Dependent>
  3729. </ReferentialConstraint>
  3730. </Association>
  3731. <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  3732. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
  3733. <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  3734. <ReferentialConstraint>
  3735. <Principal Role="FmsFacilityCodeClass">
  3736. <PropertyRef Name="SiteId" />
  3737. <PropertyRef Name="FacilityClassId" />
  3738. </Principal>
  3739. <Dependent Role="FmsFacilityCodeClass1">
  3740. <PropertyRef Name="SiteId" />
  3741. <PropertyRef Name="ParentFacilityClassId" />
  3742. </Dependent>
  3743. </ReferentialConstraint>
  3744. </Association>
  3745. <Association Name="FK__FmsFacilityOpera__725BF7F6">
  3746. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3747. <End Role="FmsFacilityOperationItem" Type="Self.FmsFacilityOperationItem" Multiplicity="0..1" />
  3748. <ReferentialConstraint>
  3749. <Principal Role="CmFacility">
  3750. <PropertyRef Name="SiteId" />
  3751. <PropertyRef Name="FacilityCode" />
  3752. </Principal>
  3753. <Dependent Role="FmsFacilityOperationItem">
  3754. <PropertyRef Name="SiteId" />
  3755. <PropertyRef Name="ItemId" />
  3756. </Dependent>
  3757. </ReferentialConstraint>
  3758. </Association>
  3759. <Association Name="FK__FmsLicense__CmBusinessField">
  3760. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  3761. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  3762. <ReferentialConstraint>
  3763. <Principal Role="CmBusinessField">
  3764. <PropertyRef Name="SiteId" />
  3765. <PropertyRef Name="BusinessFieldId" />
  3766. </Principal>
  3767. <Dependent Role="FmsLicense">
  3768. <PropertyRef Name="SiteId" />
  3769. <PropertyRef Name="BusinessFieldId" />
  3770. </Dependent>
  3771. </ReferentialConstraint>
  3772. </Association>
  3773. <Association Name="FK__FmsLicense__CmSite">
  3774. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3775. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  3776. <ReferentialConstraint>
  3777. <Principal Role="CmSite">
  3778. <PropertyRef Name="SiteId" />
  3779. </Principal>
  3780. <Dependent Role="FmsLicense">
  3781. <PropertyRef Name="SiteId" />
  3782. </Dependent>
  3783. </ReferentialConstraint>
  3784. </Association>
  3785. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  3786. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3787. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3788. <ReferentialConstraint>
  3789. <Principal Role="FmsMaterialCodeClass">
  3790. <PropertyRef Name="SiteId" />
  3791. <PropertyRef Name="MaterialClassId" />
  3792. </Principal>
  3793. <Dependent Role="FmsMaterial">
  3794. <PropertyRef Name="SiteId" />
  3795. <PropertyRef Name="FirstClassId" />
  3796. </Dependent>
  3797. </ReferentialConstraint>
  3798. </Association>
  3799. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  3800. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3801. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3802. <ReferentialConstraint>
  3803. <Principal Role="FmsMaterialCodeClass">
  3804. <PropertyRef Name="SiteId" />
  3805. <PropertyRef Name="MaterialClassId" />
  3806. </Principal>
  3807. <Dependent Role="FmsMaterial">
  3808. <PropertyRef Name="SiteId" />
  3809. <PropertyRef Name="SecondClassId" />
  3810. </Dependent>
  3811. </ReferentialConstraint>
  3812. </Association>
  3813. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  3814. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3815. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3816. <ReferentialConstraint>
  3817. <Principal Role="FmsMaterialCodeClass">
  3818. <PropertyRef Name="SiteId" />
  3819. <PropertyRef Name="MaterialClassId" />
  3820. </Principal>
  3821. <Dependent Role="FmsMaterial">
  3822. <PropertyRef Name="SiteId" />
  3823. <PropertyRef Name="ThirdClassId" />
  3824. </Dependent>
  3825. </ReferentialConstraint>
  3826. </Association>
  3827. <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
  3828. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3829. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  3830. <ReferentialConstraint>
  3831. <Principal Role="CmBusinessField">
  3832. <PropertyRef Name="SiteId" />
  3833. <PropertyRef Name="BusinessFieldId" />
  3834. </Principal>
  3835. <Dependent Role="FmsMaterialCarriedForward">
  3836. <PropertyRef Name="SiteId" />
  3837. <PropertyRef Name="BusinessFieldId" />
  3838. </Dependent>
  3839. </ReferentialConstraint>
  3840. </Association>
  3841. <Association Name="FK__FmsMaterialCarriedForward__CmSite">
  3842. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3843. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  3844. <ReferentialConstraint>
  3845. <Principal Role="CmSite">
  3846. <PropertyRef Name="SiteId" />
  3847. </Principal>
  3848. <Dependent Role="FmsMaterialCarriedForward">
  3849. <PropertyRef Name="SiteId" />
  3850. </Dependent>
  3851. </ReferentialConstraint>
  3852. </Association>
  3853. <Association Name="FK__FmsMaterialCodeClass__CmSite">
  3854. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3855. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3856. <ReferentialConstraint>
  3857. <Principal Role="CmSite">
  3858. <PropertyRef Name="SiteId" />
  3859. </Principal>
  3860. <Dependent Role="FmsMaterialCodeClass">
  3861. <PropertyRef Name="SiteId" />
  3862. </Dependent>
  3863. </ReferentialConstraint>
  3864. </Association>
  3865. <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  3866. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3867. <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3868. <ReferentialConstraint>
  3869. <Principal Role="FmsMaterialCodeClass">
  3870. <PropertyRef Name="SiteId" />
  3871. <PropertyRef Name="MaterialClassId" />
  3872. </Principal>
  3873. <Dependent Role="FmsMaterialCodeClass1">
  3874. <PropertyRef Name="SiteId" />
  3875. <PropertyRef Name="ParentMaterialClassId" />
  3876. </Dependent>
  3877. </ReferentialConstraint>
  3878. </Association>
  3879. <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
  3880. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3881. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  3882. <ReferentialConstraint>
  3883. <Principal Role="CmBusinessField">
  3884. <PropertyRef Name="SiteId" />
  3885. <PropertyRef Name="BusinessFieldId" />
  3886. </Principal>
  3887. <Dependent Role="FmsMaterialCodeLocation">
  3888. <PropertyRef Name="SiteId" />
  3889. <PropertyRef Name="BusinessFieldId" />
  3890. </Dependent>
  3891. </ReferentialConstraint>
  3892. </Association>
  3893. <Association Name="FK__FmsMaterialCodeLocation__CmSite">
  3894. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3895. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  3896. <ReferentialConstraint>
  3897. <Principal Role="CmSite">
  3898. <PropertyRef Name="SiteId" />
  3899. </Principal>
  3900. <Dependent Role="FmsMaterialCodeLocation">
  3901. <PropertyRef Name="SiteId" />
  3902. </Dependent>
  3903. </ReferentialConstraint>
  3904. </Association>
  3905. <Association Name="FK__FmsMaterialCodeType__CmSite">
  3906. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3907. <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="*" />
  3908. <ReferentialConstraint>
  3909. <Principal Role="CmSite">
  3910. <PropertyRef Name="SiteId" />
  3911. </Principal>
  3912. <Dependent Role="FmsMaterialCodeType">
  3913. <PropertyRef Name="SiteId" />
  3914. </Dependent>
  3915. </ReferentialConstraint>
  3916. </Association>
  3917. <Association Name="FK__FmsMaterialOrder__CmBusinessField">
  3918. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3919. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3920. <ReferentialConstraint>
  3921. <Principal Role="CmBusinessField">
  3922. <PropertyRef Name="SiteId" />
  3923. <PropertyRef Name="BusinessFieldId" />
  3924. </Principal>
  3925. <Dependent Role="FmsMaterialPurchaseOrder">
  3926. <PropertyRef Name="SiteId" />
  3927. <PropertyRef Name="BusinessFieldId" />
  3928. </Dependent>
  3929. </ReferentialConstraint>
  3930. </Association>
  3931. <Association Name="FK__FmsMaterialOrder__CmSite">
  3932. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3933. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3934. <ReferentialConstraint>
  3935. <Principal Role="CmSite">
  3936. <PropertyRef Name="SiteId" />
  3937. </Principal>
  3938. <Dependent Role="FmsMaterialPurchaseOrder">
  3939. <PropertyRef Name="SiteId" />
  3940. </Dependent>
  3941. </ReferentialConstraint>
  3942. </Association>
  3943. <Association Name="FK__FmsMaterialOrder__CmUser">
  3944. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3945. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3946. <ReferentialConstraint>
  3947. <Principal Role="CmUser">
  3948. <PropertyRef Name="SiteId" />
  3949. <PropertyRef Name="UserId" />
  3950. </Principal>
  3951. <Dependent Role="FmsMaterialPurchaseOrder">
  3952. <PropertyRef Name="SiteId" />
  3953. <PropertyRef Name="OrderUserId" />
  3954. </Dependent>
  3955. </ReferentialConstraint>
  3956. </Association>
  3957. <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
  3958. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  3959. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3960. <ReferentialConstraint>
  3961. <Principal Role="CmFile">
  3962. <PropertyRef Name="SiteId" />
  3963. <PropertyRef Name="FileId" />
  3964. </Principal>
  3965. <Dependent Role="FmsMaterialPurchaseOrder">
  3966. <PropertyRef Name="SiteId" />
  3967. <PropertyRef Name="FileId" />
  3968. </Dependent>
  3969. </ReferentialConstraint>
  3970. </Association>
  3971. <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  3972. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  3973. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3974. <ReferentialConstraint>
  3975. <Principal Role="FmsMaterialTradeCompany">
  3976. <PropertyRef Name="SiteId" />
  3977. <PropertyRef Name="TradeCompanyId" />
  3978. </Principal>
  3979. <Dependent Role="FmsMaterialPurchaseOrder">
  3980. <PropertyRef Name="SiteId" />
  3981. <PropertyRef Name="TradeCompanyId" />
  3982. </Dependent>
  3983. </ReferentialConstraint>
  3984. </Association>
  3985. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  3986. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3987. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3988. <ReferentialConstraint>
  3989. <Principal Role="CmUser">
  3990. <PropertyRef Name="SiteId" />
  3991. <PropertyRef Name="UserId" />
  3992. </Principal>
  3993. <Dependent Role="FmsMaterialPurchaseRequest">
  3994. <PropertyRef Name="SiteId" />
  3995. <PropertyRef Name="RequestUserId" />
  3996. </Dependent>
  3997. </ReferentialConstraint>
  3998. </Association>
  3999. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  4000. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4001. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4002. <ReferentialConstraint>
  4003. <Principal Role="CmUser">
  4004. <PropertyRef Name="SiteId" />
  4005. <PropertyRef Name="UserId" />
  4006. </Principal>
  4007. <Dependent Role="FmsMaterialPurchaseRequest">
  4008. <PropertyRef Name="SiteId" />
  4009. <PropertyRef Name="ApprovalUserId" />
  4010. </Dependent>
  4011. </ReferentialConstraint>
  4012. </Association>
  4013. <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
  4014. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4015. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4016. <ReferentialConstraint>
  4017. <Principal Role="CmBusinessField">
  4018. <PropertyRef Name="SiteId" />
  4019. <PropertyRef Name="BusinessFieldId" />
  4020. </Principal>
  4021. <Dependent Role="FmsMaterialPurchaseRequest">
  4022. <PropertyRef Name="SiteId" />
  4023. <PropertyRef Name="BusinessFieldId" />
  4024. </Dependent>
  4025. </ReferentialConstraint>
  4026. </Association>
  4027. <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
  4028. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4029. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4030. <ReferentialConstraint>
  4031. <Principal Role="CmSite">
  4032. <PropertyRef Name="SiteId" />
  4033. </Principal>
  4034. <Dependent Role="FmsMaterialPurchaseRequest">
  4035. <PropertyRef Name="SiteId" />
  4036. </Dependent>
  4037. </ReferentialConstraint>
  4038. </Association>
  4039. <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  4040. <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
  4041. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4042. <ReferentialConstraint>
  4043. <Principal Role="FmsMaterialCodeProgress">
  4044. <PropertyRef Name="ProgressId" />
  4045. </Principal>
  4046. <Dependent Role="FmsMaterialPurchaseRequest">
  4047. <PropertyRef Name="ProgressId" />
  4048. </Dependent>
  4049. </ReferentialConstraint>
  4050. </Association>
  4051. <Association Name="FK__FmsMaterialStored__CmBusinessField">
  4052. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4053. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4054. <ReferentialConstraint>
  4055. <Principal Role="CmBusinessField">
  4056. <PropertyRef Name="SiteId" />
  4057. <PropertyRef Name="BusinessFieldId" />
  4058. </Principal>
  4059. <Dependent Role="FmsMaterialStored">
  4060. <PropertyRef Name="SiteId" />
  4061. <PropertyRef Name="BusinessFieldId" />
  4062. </Dependent>
  4063. </ReferentialConstraint>
  4064. </Association>
  4065. <Association Name="FK__FmsMaterialStored__CmSite">
  4066. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4067. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4068. <ReferentialConstraint>
  4069. <Principal Role="CmSite">
  4070. <PropertyRef Name="SiteId" />
  4071. </Principal>
  4072. <Dependent Role="FmsMaterialStored">
  4073. <PropertyRef Name="SiteId" />
  4074. </Dependent>
  4075. </ReferentialConstraint>
  4076. </Association>
  4077. <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
  4078. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4079. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4080. <ReferentialConstraint>
  4081. <Principal Role="CmUser">
  4082. <PropertyRef Name="SiteId" />
  4083. <PropertyRef Name="UserId" />
  4084. </Principal>
  4085. <Dependent Role="FmsMaterialStored">
  4086. <PropertyRef Name="SiteId" />
  4087. <PropertyRef Name="StoredUserId" />
  4088. </Dependent>
  4089. </ReferentialConstraint>
  4090. </Association>
  4091. <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  4092. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4093. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4094. <ReferentialConstraint>
  4095. <Principal Role="CmUser">
  4096. <PropertyRef Name="SiteId" />
  4097. <PropertyRef Name="UserId" />
  4098. </Principal>
  4099. <Dependent Role="FmsMaterialStored">
  4100. <PropertyRef Name="SiteId" />
  4101. <PropertyRef Name="ApprovalUserId" />
  4102. </Dependent>
  4103. </ReferentialConstraint>
  4104. </Association>
  4105. <Association Name="FK__FmsMaterialTradeCompany__CmSite">
  4106. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4107. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="*" />
  4108. <ReferentialConstraint>
  4109. <Principal Role="CmSite">
  4110. <PropertyRef Name="SiteId" />
  4111. </Principal>
  4112. <Dependent Role="FmsMaterialTradeCompany">
  4113. <PropertyRef Name="SiteId" />
  4114. </Dependent>
  4115. </ReferentialConstraint>
  4116. </Association>
  4117. <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
  4118. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4119. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  4120. <ReferentialConstraint>
  4121. <Principal Role="CmBusinessField">
  4122. <PropertyRef Name="SiteId" />
  4123. <PropertyRef Name="BusinessFieldId" />
  4124. </Principal>
  4125. <Dependent Role="FmsMaterialWarehouse">
  4126. <PropertyRef Name="SiteId" />
  4127. <PropertyRef Name="BusinessFieldId" />
  4128. </Dependent>
  4129. </ReferentialConstraint>
  4130. </Association>
  4131. <Association Name="FK__FmsMaterialWarehouse__CmSite">
  4132. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4133. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  4134. <ReferentialConstraint>
  4135. <Principal Role="CmSite">
  4136. <PropertyRef Name="SiteId" />
  4137. </Principal>
  4138. <Dependent Role="FmsMaterialWarehouse">
  4139. <PropertyRef Name="SiteId" />
  4140. </Dependent>
  4141. </ReferentialConstraint>
  4142. </Association>
  4143. <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
  4144. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4145. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="*" />
  4146. <ReferentialConstraint>
  4147. <Principal Role="CmSite">
  4148. <PropertyRef Name="SiteId" />
  4149. </Principal>
  4150. <Dependent Role="FmsWorkCodeCauseClass">
  4151. <PropertyRef Name="SiteId" />
  4152. </Dependent>
  4153. </ReferentialConstraint>
  4154. </Association>
  4155. <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
  4156. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4157. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="*" />
  4158. <ReferentialConstraint>
  4159. <Principal Role="CmSite">
  4160. <PropertyRef Name="SiteId" />
  4161. </Principal>
  4162. <Dependent Role="FmsWorkCodeCycleUnit">
  4163. <PropertyRef Name="SiteId" />
  4164. </Dependent>
  4165. </ReferentialConstraint>
  4166. </Association>
  4167. <Association Name="FK__FmsWorkCodeEmergency__CmSite">
  4168. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4169. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="*" />
  4170. <ReferentialConstraint>
  4171. <Principal Role="CmSite">
  4172. <PropertyRef Name="SiteId" />
  4173. </Principal>
  4174. <Dependent Role="FmsWorkCodeEmergency">
  4175. <PropertyRef Name="SiteId" />
  4176. </Dependent>
  4177. </ReferentialConstraint>
  4178. </Association>
  4179. <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
  4180. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4181. <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="*" />
  4182. <ReferentialConstraint>
  4183. <Principal Role="CmSite">
  4184. <PropertyRef Name="SiteId" />
  4185. </Principal>
  4186. <Dependent Role="FmsWorkCodeHolidayWorkType">
  4187. <PropertyRef Name="SiteId" />
  4188. </Dependent>
  4189. </ReferentialConstraint>
  4190. </Association>
  4191. <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  4192. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4193. <End Role="FmsWorkCodeLegalInspectionAgency" Type="Self.FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
  4194. <ReferentialConstraint>
  4195. <Principal Role="CmSite">
  4196. <PropertyRef Name="SiteId" />
  4197. </Principal>
  4198. <Dependent Role="FmsWorkCodeLegalInspectionAgency">
  4199. <PropertyRef Name="SiteId" />
  4200. </Dependent>
  4201. </ReferentialConstraint>
  4202. </Association>
  4203. <Association Name="FK__FmsWorkOrder__CmBusinessField">
  4204. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4205. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4206. <ReferentialConstraint>
  4207. <Principal Role="CmBusinessField">
  4208. <PropertyRef Name="SiteId" />
  4209. <PropertyRef Name="BusinessFieldId" />
  4210. </Principal>
  4211. <Dependent Role="FmsWorkOrder">
  4212. <PropertyRef Name="SiteId" />
  4213. <PropertyRef Name="BusinessFieldId" />
  4214. </Dependent>
  4215. </ReferentialConstraint>
  4216. </Association>
  4217. <Association Name="FK__FmsWorkOrder__CmSite">
  4218. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4219. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4220. <ReferentialConstraint>
  4221. <Principal Role="CmSite">
  4222. <PropertyRef Name="SiteId" />
  4223. </Principal>
  4224. <Dependent Role="FmsWorkOrder">
  4225. <PropertyRef Name="SiteId" />
  4226. </Dependent>
  4227. </ReferentialConstraint>
  4228. </Association>
  4229. <Association Name="FK__FmsWorkOrder__CmUser">
  4230. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4231. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4232. <ReferentialConstraint>
  4233. <Principal Role="CmUser">
  4234. <PropertyRef Name="SiteId" />
  4235. <PropertyRef Name="UserId" />
  4236. </Principal>
  4237. <Dependent Role="FmsWorkOrder">
  4238. <PropertyRef Name="SiteId" />
  4239. <PropertyRef Name="OrderUserId" />
  4240. </Dependent>
  4241. </ReferentialConstraint>
  4242. </Association>
  4243. <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
  4244. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
  4245. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4246. <ReferentialConstraint>
  4247. <Principal Role="FmsWorkCodeEmergency">
  4248. <PropertyRef Name="SiteId" />
  4249. <PropertyRef Name="EmergencyId" />
  4250. </Principal>
  4251. <Dependent Role="FmsWorkOrder">
  4252. <PropertyRef Name="SiteId" />
  4253. <PropertyRef Name="EmergencyId" />
  4254. </Dependent>
  4255. </ReferentialConstraint>
  4256. </Association>
  4257. <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
  4258. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  4259. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
  4260. <ReferentialConstraint>
  4261. <Principal Role="FmsWorkRequest">
  4262. <PropertyRef Name="SiteId" />
  4263. <PropertyRef Name="WorkRequestId" />
  4264. </Principal>
  4265. <Dependent Role="FmsWorkOrder">
  4266. <PropertyRef Name="SiteId" />
  4267. <PropertyRef Name="WorkRequestId" />
  4268. </Dependent>
  4269. </ReferentialConstraint>
  4270. </Association>
  4271. <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
  4272. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
  4273. <OnDelete Action="Cascade" />
  4274. </End>
  4275. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  4276. <ReferentialConstraint>
  4277. <Principal Role="FmsWorkOrder">
  4278. <PropertyRef Name="SiteId" />
  4279. <PropertyRef Name="WorkRequestId" />
  4280. </Principal>
  4281. <Dependent Role="FmsWorkOrderToFacility">
  4282. <PropertyRef Name="SiteId" />
  4283. <PropertyRef Name="WorkRequestId" />
  4284. </Dependent>
  4285. </ReferentialConstraint>
  4286. </Association>
  4287. <Association Name="FK__FmsWorkRequest__CmBusinessField">
  4288. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4289. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4290. <ReferentialConstraint>
  4291. <Principal Role="CmBusinessField">
  4292. <PropertyRef Name="SiteId" />
  4293. <PropertyRef Name="BusinessFieldId" />
  4294. </Principal>
  4295. <Dependent Role="FmsWorkRequest">
  4296. <PropertyRef Name="SiteId" />
  4297. <PropertyRef Name="BusinessFieldId" />
  4298. </Dependent>
  4299. </ReferentialConstraint>
  4300. </Association>
  4301. <Association Name="FK__FmsWorkRequest__CmSite">
  4302. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4303. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4304. <ReferentialConstraint>
  4305. <Principal Role="CmSite">
  4306. <PropertyRef Name="SiteId" />
  4307. </Principal>
  4308. <Dependent Role="FmsWorkRequest">
  4309. <PropertyRef Name="SiteId" />
  4310. </Dependent>
  4311. </ReferentialConstraint>
  4312. </Association>
  4313. <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
  4314. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4315. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4316. <ReferentialConstraint>
  4317. <Principal Role="CmUser">
  4318. <PropertyRef Name="SiteId" />
  4319. <PropertyRef Name="UserId" />
  4320. </Principal>
  4321. <Dependent Role="FmsWorkRequest">
  4322. <PropertyRef Name="SiteId" />
  4323. <PropertyRef Name="RequestUserId" />
  4324. </Dependent>
  4325. </ReferentialConstraint>
  4326. </Association>
  4327. <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  4328. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4329. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4330. <ReferentialConstraint>
  4331. <Principal Role="CmUser">
  4332. <PropertyRef Name="SiteId" />
  4333. <PropertyRef Name="UserId" />
  4334. </Principal>
  4335. <Dependent Role="FmsWorkRequest">
  4336. <PropertyRef Name="SiteId" />
  4337. <PropertyRef Name="RejectUserId" />
  4338. </Dependent>
  4339. </ReferentialConstraint>
  4340. </Association>
  4341. <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
  4342. <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
  4343. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4344. <ReferentialConstraint>
  4345. <Principal Role="FmsWorkCodeProgress">
  4346. <PropertyRef Name="WorkProgressId" />
  4347. </Principal>
  4348. <Dependent Role="FmsWorkRequest">
  4349. <PropertyRef Name="WorkProgressId" />
  4350. </Dependent>
  4351. </ReferentialConstraint>
  4352. </Association>
  4353. <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
  4354. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  4355. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4356. <ReferentialConstraint>
  4357. <Principal Role="FmsWorkCodeType">
  4358. <PropertyRef Name="WorkTypeId" />
  4359. </Principal>
  4360. <Dependent Role="FmsWorkRequest">
  4361. <PropertyRef Name="WorkTypeId" />
  4362. </Dependent>
  4363. </ReferentialConstraint>
  4364. </Association>
  4365. <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
  4366. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="0..1" />
  4367. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4368. <ReferentialConstraint>
  4369. <Principal Role="FmsWorkSchedule">
  4370. <PropertyRef Name="SiteId" />
  4371. <PropertyRef Name="WorkScheduleId" />
  4372. </Principal>
  4373. <Dependent Role="FmsWorkRequest">
  4374. <PropertyRef Name="SiteId" />
  4375. <PropertyRef Name="WorkScheduleId" />
  4376. </Dependent>
  4377. </ReferentialConstraint>
  4378. </Association>
  4379. <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
  4380. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
  4381. <OnDelete Action="Cascade" />
  4382. </End>
  4383. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  4384. <ReferentialConstraint>
  4385. <Principal Role="FmsWorkRequest">
  4386. <PropertyRef Name="SiteId" />
  4387. <PropertyRef Name="WorkRequestId" />
  4388. </Principal>
  4389. <Dependent Role="FmsWorkRequestToFacility">
  4390. <PropertyRef Name="SiteId" />
  4391. <PropertyRef Name="WorkRequestId" />
  4392. </Dependent>
  4393. </ReferentialConstraint>
  4394. </Association>
  4395. <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
  4396. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4397. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4398. <ReferentialConstraint>
  4399. <Principal Role="CmUser">
  4400. <PropertyRef Name="SiteId" />
  4401. <PropertyRef Name="UserId" />
  4402. </Principal>
  4403. <Dependent Role="FmsWorkResult">
  4404. <PropertyRef Name="SiteId" />
  4405. <PropertyRef Name="WorkerUserId" />
  4406. </Dependent>
  4407. </ReferentialConstraint>
  4408. </Association>
  4409. <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  4410. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4411. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4412. <ReferentialConstraint>
  4413. <Principal Role="CmUser">
  4414. <PropertyRef Name="SiteId" />
  4415. <PropertyRef Name="UserId" />
  4416. </Principal>
  4417. <Dependent Role="FmsWorkResult">
  4418. <PropertyRef Name="SiteId" />
  4419. <PropertyRef Name="ConfirmedUserId" />
  4420. </Dependent>
  4421. </ReferentialConstraint>
  4422. </Association>
  4423. <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
  4424. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
  4425. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4426. <ReferentialConstraint>
  4427. <Principal Role="FmsWorkCodeCauseClass">
  4428. <PropertyRef Name="SiteId" />
  4429. <PropertyRef Name="CauseClassId" />
  4430. </Principal>
  4431. <Dependent Role="FmsWorkResult">
  4432. <PropertyRef Name="SiteId" />
  4433. <PropertyRef Name="CauseClassId" />
  4434. </Dependent>
  4435. </ReferentialConstraint>
  4436. </Association>
  4437. <Association Name="FK__FmsWorkResult__FmsWorkOrder">
  4438. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
  4439. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  4440. <ReferentialConstraint>
  4441. <Principal Role="FmsWorkOrder">
  4442. <PropertyRef Name="SiteId" />
  4443. <PropertyRef Name="WorkRequestId" />
  4444. </Principal>
  4445. <Dependent Role="FmsWorkResult">
  4446. <PropertyRef Name="SiteId" />
  4447. <PropertyRef Name="WorkRequestId" />
  4448. </Dependent>
  4449. </ReferentialConstraint>
  4450. </Association>
  4451. <Association Name="FK__FmsWorkResult__FmsWorkRequest">
  4452. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  4453. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  4454. <ReferentialConstraint>
  4455. <Principal Role="FmsWorkRequest">
  4456. <PropertyRef Name="SiteId" />
  4457. <PropertyRef Name="WorkRequestId" />
  4458. </Principal>
  4459. <Dependent Role="FmsWorkResult">
  4460. <PropertyRef Name="SiteId" />
  4461. <PropertyRef Name="WorkRequestId" />
  4462. </Dependent>
  4463. </ReferentialConstraint>
  4464. </Association>
  4465. <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
  4466. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
  4467. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4468. <ReferentialConstraint>
  4469. <Principal Role="CmFacility">
  4470. <PropertyRef Name="SiteId" />
  4471. <PropertyRef Name="FacilityCode" />
  4472. </Principal>
  4473. <Dependent Role="FmsWorkResultCheckItem">
  4474. <PropertyRef Name="SiteId" />
  4475. <PropertyRef Name="FacilityCode" />
  4476. </Dependent>
  4477. </ReferentialConstraint>
  4478. </Association>
  4479. <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  4480. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
  4481. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4482. <ReferentialConstraint>
  4483. <Principal Role="FmsFacilityCheckItem">
  4484. <PropertyRef Name="SiteId" />
  4485. <PropertyRef Name="FacilityCode" />
  4486. <PropertyRef Name="CheckItemId" />
  4487. </Principal>
  4488. <Dependent Role="FmsWorkResultCheckItem">
  4489. <PropertyRef Name="SiteId" />
  4490. <PropertyRef Name="FacilityCode" />
  4491. <PropertyRef Name="CheckItemId" />
  4492. </Dependent>
  4493. </ReferentialConstraint>
  4494. </Association>
  4495. <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
  4496. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  4497. <OnDelete Action="Cascade" />
  4498. </End>
  4499. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4500. <ReferentialConstraint>
  4501. <Principal Role="FmsWorkResult">
  4502. <PropertyRef Name="SiteId" />
  4503. <PropertyRef Name="WorkRequestId" />
  4504. </Principal>
  4505. <Dependent Role="FmsWorkResultCheckItem">
  4506. <PropertyRef Name="SiteId" />
  4507. <PropertyRef Name="WorkRequestId" />
  4508. </Dependent>
  4509. </ReferentialConstraint>
  4510. </Association>
  4511. <Association Name="FK__FmsWorkResultFile__CmFile">
  4512. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  4513. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
  4514. <ReferentialConstraint>
  4515. <Principal Role="CmFile">
  4516. <PropertyRef Name="SiteId" />
  4517. <PropertyRef Name="FileId" />
  4518. </Principal>
  4519. <Dependent Role="FmsWorkResultFile">
  4520. <PropertyRef Name="SiteId" />
  4521. <PropertyRef Name="FileId" />
  4522. </Dependent>
  4523. </ReferentialConstraint>
  4524. </Association>
  4525. <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
  4526. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  4527. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
  4528. <ReferentialConstraint>
  4529. <Principal Role="FmsWorkResult">
  4530. <PropertyRef Name="SiteId" />
  4531. <PropertyRef Name="WorkRequestId" />
  4532. </Principal>
  4533. <Dependent Role="FmsWorkResultFile">
  4534. <PropertyRef Name="SiteId" />
  4535. <PropertyRef Name="WorkRequestId" />
  4536. </Dependent>
  4537. </ReferentialConstraint>
  4538. </Association>
  4539. <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
  4540. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  4541. <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
  4542. <ReferentialConstraint>
  4543. <Principal Role="FmsWorkResult">
  4544. <PropertyRef Name="SiteId" />
  4545. <PropertyRef Name="WorkRequestId" />
  4546. </Principal>
  4547. <Dependent Role="FmsWorkResultLaw">
  4548. <PropertyRef Name="SiteId" />
  4549. <PropertyRef Name="WorkRequestId" />
  4550. </Dependent>
  4551. </ReferentialConstraint>
  4552. </Association>
  4553. <Association Name="FK__FmsWorkResultToFacility__CmFacility">
  4554. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4555. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  4556. <ReferentialConstraint>
  4557. <Principal Role="CmFacility">
  4558. <PropertyRef Name="SiteId" />
  4559. <PropertyRef Name="FacilityCode" />
  4560. </Principal>
  4561. <Dependent Role="FmsWorkResultToFacility">
  4562. <PropertyRef Name="SiteId" />
  4563. <PropertyRef Name="FacilityCode" />
  4564. </Dependent>
  4565. </ReferentialConstraint>
  4566. </Association>
  4567. <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
  4568. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  4569. <OnDelete Action="Cascade" />
  4570. </End>
  4571. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  4572. <ReferentialConstraint>
  4573. <Principal Role="FmsWorkResult">
  4574. <PropertyRef Name="SiteId" />
  4575. <PropertyRef Name="WorkRequestId" />
  4576. </Principal>
  4577. <Dependent Role="FmsWorkResultToFacility">
  4578. <PropertyRef Name="SiteId" />
  4579. <PropertyRef Name="WorkRequestId" />
  4580. </Dependent>
  4581. </ReferentialConstraint>
  4582. </Association>
  4583. <Association Name="FK__FmsWorkSchedule__CmBusinessField">
  4584. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4585. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4586. <ReferentialConstraint>
  4587. <Principal Role="CmBusinessField">
  4588. <PropertyRef Name="SiteId" />
  4589. <PropertyRef Name="BusinessFieldId" />
  4590. </Principal>
  4591. <Dependent Role="FmsWorkSchedule">
  4592. <PropertyRef Name="SiteId" />
  4593. <PropertyRef Name="BusinessFieldId" />
  4594. </Dependent>
  4595. </ReferentialConstraint>
  4596. </Association>
  4597. <Association Name="FK__FmsWorkSchedule__CmUser">
  4598. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4599. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4600. <ReferentialConstraint>
  4601. <Principal Role="CmUser">
  4602. <PropertyRef Name="SiteId" />
  4603. <PropertyRef Name="UserId" />
  4604. </Principal>
  4605. <Dependent Role="FmsWorkSchedule">
  4606. <PropertyRef Name="SiteId" />
  4607. <PropertyRef Name="UpdateUserId" />
  4608. </Dependent>
  4609. </ReferentialConstraint>
  4610. </Association>
  4611. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  4612. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  4613. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4614. <ReferentialConstraint>
  4615. <Principal Role="FmsWorkCodeCycleUnit">
  4616. <PropertyRef Name="SiteId" />
  4617. <PropertyRef Name="CycleUnitId" />
  4618. </Principal>
  4619. <Dependent Role="FmsWorkSchedule">
  4620. <PropertyRef Name="SiteId" />
  4621. <PropertyRef Name="CycleUnitId" />
  4622. </Dependent>
  4623. </ReferentialConstraint>
  4624. </Association>
  4625. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  4626. <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="1" />
  4627. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4628. <ReferentialConstraint>
  4629. <Principal Role="FmsWorkCodeHolidayWorkType">
  4630. <PropertyRef Name="SiteId" />
  4631. <PropertyRef Name="HolidayWorkTypeId" />
  4632. </Principal>
  4633. <Dependent Role="FmsWorkSchedule">
  4634. <PropertyRef Name="SiteId" />
  4635. <PropertyRef Name="HolidayWorkTypeId" />
  4636. </Dependent>
  4637. </ReferentialConstraint>
  4638. </Association>
  4639. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  4640. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  4641. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4642. <ReferentialConstraint>
  4643. <Principal Role="FmsWorkCodeType">
  4644. <PropertyRef Name="WorkTypeId" />
  4645. </Principal>
  4646. <Dependent Role="FmsWorkSchedule">
  4647. <PropertyRef Name="WorkTypeId" />
  4648. </Dependent>
  4649. </ReferentialConstraint>
  4650. </Association>
  4651. <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  4652. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="1" />
  4653. <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
  4654. <ReferentialConstraint>
  4655. <Principal Role="FmsWorkSchedule">
  4656. <PropertyRef Name="SiteId" />
  4657. <PropertyRef Name="WorkScheduleId" />
  4658. </Principal>
  4659. <Dependent Role="FmsWorkScheduleToFacility">
  4660. <PropertyRef Name="SiteId" />
  4661. <PropertyRef Name="WorkScheduleId" />
  4662. </Dependent>
  4663. </ReferentialConstraint>
  4664. </Association>
  4665. <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
  4666. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="1" />
  4667. <End Role="BemsAlarmLog" Type="Self.BemsAlarmLog" Multiplicity="*" />
  4668. <ReferentialConstraint>
  4669. <Principal Role="BemsAlarmSetting">
  4670. <PropertyRef Name="SiteId" />
  4671. <PropertyRef Name="FacilityTypeId" />
  4672. <PropertyRef Name="FacilityCode" />
  4673. <PropertyRef Name="PropertyId" />
  4674. <PropertyRef Name="FormulaId" />
  4675. </Principal>
  4676. <Dependent Role="BemsAlarmLog">
  4677. <PropertyRef Name="SiteId" />
  4678. <PropertyRef Name="FacilityTypeId" />
  4679. <PropertyRef Name="FacilityCode" />
  4680. <PropertyRef Name="PropertyId" />
  4681. <PropertyRef Name="FormulaId" />
  4682. </Dependent>
  4683. </ReferentialConstraint>
  4684. </Association>
  4685. <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
  4686. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4687. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4688. <ReferentialConstraint>
  4689. <Principal Role="BemsFacilityType">
  4690. <PropertyRef Name="FacilityTypeId" />
  4691. </Principal>
  4692. <Dependent Role="BemsAlarmSetting">
  4693. <PropertyRef Name="FacilityTypeId" />
  4694. </Dependent>
  4695. </ReferentialConstraint>
  4696. </Association>
  4697. <Association Name="FK_BemsAlarmSetting_CmFacility">
  4698. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4699. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4700. <ReferentialConstraint>
  4701. <Principal Role="CmFacility">
  4702. <PropertyRef Name="SiteId" />
  4703. <PropertyRef Name="FacilityCode" />
  4704. </Principal>
  4705. <Dependent Role="BemsAlarmSetting">
  4706. <PropertyRef Name="SiteId" />
  4707. <PropertyRef Name="FacilityCode" />
  4708. </Dependent>
  4709. </ReferentialConstraint>
  4710. </Association>
  4711. <Association Name="FK_BemsAlarmSetting_CmSite1">
  4712. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4713. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4714. <ReferentialConstraint>
  4715. <Principal Role="CmSite">
  4716. <PropertyRef Name="SiteId" />
  4717. </Principal>
  4718. <Dependent Role="BemsAlarmSetting">
  4719. <PropertyRef Name="SiteId" />
  4720. </Dependent>
  4721. </ReferentialConstraint>
  4722. </Association>
  4723. <Association Name="FK_BemsChartInfo_BemsFacilityType">
  4724. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4725. <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
  4726. <ReferentialConstraint>
  4727. <Principal Role="BemsFacilityType">
  4728. <PropertyRef Name="FacilityTypeId" />
  4729. </Principal>
  4730. <Dependent Role="BemsChartInfo">
  4731. <PropertyRef Name="FacilityTypeId" />
  4732. </Dependent>
  4733. </ReferentialConstraint>
  4734. </Association>
  4735. <Association Name="FK_BemsChartInfo_CmSite">
  4736. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4737. <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
  4738. <ReferentialConstraint>
  4739. <Principal Role="CmSite">
  4740. <PropertyRef Name="SiteId" />
  4741. </Principal>
  4742. <Dependent Role="BemsChartInfo">
  4743. <PropertyRef Name="SiteId" />
  4744. </Dependent>
  4745. </ReferentialConstraint>
  4746. </Association>
  4747. <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
  4748. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4749. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  4750. <ReferentialConstraint>
  4751. <Principal Role="BemsFacilityType">
  4752. <PropertyRef Name="FacilityTypeId" />
  4753. </Principal>
  4754. <Dependent Role="BemsControlPointHistory">
  4755. <PropertyRef Name="FacilityTypeId" />
  4756. </Dependent>
  4757. </ReferentialConstraint>
  4758. </Association>
  4759. <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
  4760. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  4761. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  4762. <ReferentialConstraint>
  4763. <Principal Role="BemsMonitoringPoint">
  4764. <PropertyRef Name="SiteId" />
  4765. <PropertyRef Name="FacilityCode" />
  4766. <PropertyRef Name="PropertyId" />
  4767. </Principal>
  4768. <Dependent Role="BemsControlPointHistory">
  4769. <PropertyRef Name="SiteId" />
  4770. <PropertyRef Name="FacilityCode" />
  4771. <PropertyRef Name="PropertyId" />
  4772. </Dependent>
  4773. </ReferentialConstraint>
  4774. </Association>
  4775. <Association Name="FK_BemsEnergyCost_CmFacility">
  4776. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4777. <End Role="BemsEnergyCost" Type="Self.BemsEnergyCost" Multiplicity="0..1" />
  4778. <ReferentialConstraint>
  4779. <Principal Role="CmFacility">
  4780. <PropertyRef Name="SiteId" />
  4781. <PropertyRef Name="FacilityCode" />
  4782. </Principal>
  4783. <Dependent Role="BemsEnergyCost">
  4784. <PropertyRef Name="SiteId" />
  4785. <PropertyRef Name="FacilityCode" />
  4786. </Dependent>
  4787. </ReferentialConstraint>
  4788. </Association>
  4789. <Association Name="FK_BemsEnergyDailyRegression_CmSite">
  4790. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4791. <End Role="BemsEnergyDailyRegression" Type="Self.BemsEnergyDailyRegression" Multiplicity="0..1" />
  4792. <ReferentialConstraint>
  4793. <Principal Role="CmSite">
  4794. <PropertyRef Name="SiteId" />
  4795. </Principal>
  4796. <Dependent Role="BemsEnergyDailyRegression">
  4797. <PropertyRef Name="SiteId" />
  4798. </Dependent>
  4799. </ReferentialConstraint>
  4800. </Association>
  4801. <Association Name="FK_BemsFormulaParameter_CmFacility">
  4802. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4803. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  4804. <ReferentialConstraint>
  4805. <Principal Role="CmFacility">
  4806. <PropertyRef Name="SiteId" />
  4807. <PropertyRef Name="FacilityCode" />
  4808. </Principal>
  4809. <Dependent Role="BemsFormulaParameter">
  4810. <PropertyRef Name="SiteId" />
  4811. <PropertyRef Name="FacilityCode" />
  4812. </Dependent>
  4813. </ReferentialConstraint>
  4814. </Association>
  4815. <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
  4816. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4817. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  4818. <ReferentialConstraint>
  4819. <Principal Role="BemsFacilityType">
  4820. <PropertyRef Name="FacilityTypeId" />
  4821. </Principal>
  4822. <Dependent Role="BemsMonitoringPoint">
  4823. <PropertyRef Name="FacilityTypeId" />
  4824. </Dependent>
  4825. </ReferentialConstraint>
  4826. </Association>
  4827. <Association Name="FK_BemsMonitoringPoint_CmFacility">
  4828. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4829. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  4830. <ReferentialConstraint>
  4831. <Principal Role="CmFacility">
  4832. <PropertyRef Name="SiteId" />
  4833. <PropertyRef Name="FacilityCode" />
  4834. </Principal>
  4835. <Dependent Role="BemsMonitoringPoint">
  4836. <PropertyRef Name="SiteId" />
  4837. <PropertyRef Name="FacilityCode" />
  4838. </Dependent>
  4839. </ReferentialConstraint>
  4840. </Association>
  4841. <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
  4842. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4843. <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="*" />
  4844. <ReferentialConstraint>
  4845. <Principal Role="BemsFacilityType">
  4846. <PropertyRef Name="FacilityTypeId" />
  4847. </Principal>
  4848. <Dependent Role="BemsMonitoringPointConfig">
  4849. <PropertyRef Name="FacilityTypeId" />
  4850. </Dependent>
  4851. </ReferentialConstraint>
  4852. </Association>
  4853. <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  4854. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  4855. <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="0..1" />
  4856. <ReferentialConstraint>
  4857. <Principal Role="BemsMonitoringPoint">
  4858. <PropertyRef Name="SiteId" />
  4859. <PropertyRef Name="FacilityCode" />
  4860. <PropertyRef Name="PropertyId" />
  4861. </Principal>
  4862. <Dependent Role="BemsMonitoringPointConfig">
  4863. <PropertyRef Name="SiteId" />
  4864. <PropertyRef Name="FacilityCode" />
  4865. <PropertyRef Name="PropertyId" />
  4866. </Dependent>
  4867. </ReferentialConstraint>
  4868. </Association>
  4869. <Association Name="FK_BemsPeakFacility_CmFacility">
  4870. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4871. <End Role="BemsPeakFacility" Type="Self.BemsPeakFacility" Multiplicity="*" />
  4872. <ReferentialConstraint>
  4873. <Principal Role="CmFacility">
  4874. <PropertyRef Name="SiteId" />
  4875. <PropertyRef Name="FacilityCode" />
  4876. </Principal>
  4877. <Dependent Role="BemsPeakFacility">
  4878. <PropertyRef Name="SiteId" />
  4879. <PropertyRef Name="FacilityCode" />
  4880. </Dependent>
  4881. </ReferentialConstraint>
  4882. </Association>
  4883. <Association Name="FK_BemsPeakHIstory_CmSite">
  4884. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4885. <End Role="BemsPeakHistory" Type="Self.BemsPeakHistory" Multiplicity="*" />
  4886. <ReferentialConstraint>
  4887. <Principal Role="CmSite">
  4888. <PropertyRef Name="SiteId" />
  4889. </Principal>
  4890. <Dependent Role="BemsPeakHistory">
  4891. <PropertyRef Name="SiteId" />
  4892. </Dependent>
  4893. </ReferentialConstraint>
  4894. </Association>
  4895. <Association Name="FK_BemsPeakInfo_CmSite">
  4896. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4897. <End Role="BemsPeakInfo" Type="Self.BemsPeakInfo" Multiplicity="0..1" />
  4898. <ReferentialConstraint>
  4899. <Principal Role="CmSite">
  4900. <PropertyRef Name="SiteId" />
  4901. </Principal>
  4902. <Dependent Role="BemsPeakInfo">
  4903. <PropertyRef Name="SiteId" />
  4904. </Dependent>
  4905. </ReferentialConstraint>
  4906. </Association>
  4907. <Association Name="FK_BemsPeopleIncrease_CmSite">
  4908. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4909. <End Role="BemsPeopleIncrease" Type="Self.BemsPeopleIncrease" Multiplicity="*" />
  4910. <ReferentialConstraint>
  4911. <Principal Role="CmSite">
  4912. <PropertyRef Name="SiteId" />
  4913. </Principal>
  4914. <Dependent Role="BemsPeopleIncrease">
  4915. <PropertyRef Name="SiteId" />
  4916. </Dependent>
  4917. </ReferentialConstraint>
  4918. </Association>
  4919. <Association Name="FK_BemsPriceCode_BemsFuelType">
  4920. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4921. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="*" />
  4922. <ReferentialConstraint>
  4923. <Principal Role="BemsFuelType">
  4924. <PropertyRef Name="FuelTypeId" />
  4925. </Principal>
  4926. <Dependent Role="BemsPriceCode">
  4927. <PropertyRef Name="FuelTypeId" />
  4928. </Dependent>
  4929. </ReferentialConstraint>
  4930. </Association>
  4931. <Association Name="FK_BemsPriceFormula_BemsFormula">
  4932. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  4933. <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
  4934. <ReferentialConstraint>
  4935. <Principal Role="BemsFormula">
  4936. <PropertyRef Name="SiteId" />
  4937. <PropertyRef Name="FacilityTypeId" />
  4938. <PropertyRef Name="FacilityCode" />
  4939. <PropertyRef Name="FormulaId" />
  4940. </Principal>
  4941. <Dependent Role="BemsPriceFormula">
  4942. <PropertyRef Name="SiteId" />
  4943. <PropertyRef Name="FacilityTypeId" />
  4944. <PropertyRef Name="FacilityCode" />
  4945. <PropertyRef Name="FormulaId" />
  4946. </Dependent>
  4947. </ReferentialConstraint>
  4948. </Association>
  4949. <Association Name="FK_BemsPriceFormula_BemsPriceType">
  4950. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4951. <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
  4952. <ReferentialConstraint>
  4953. <Principal Role="BemsPriceType">
  4954. <PropertyRef Name="PriceTypeId" />
  4955. </Principal>
  4956. <Dependent Role="BemsPriceFormula">
  4957. <PropertyRef Name="PriceTypeId" />
  4958. </Dependent>
  4959. </ReferentialConstraint>
  4960. </Association>
  4961. <Association Name="FK_BemsPriceMeta_BemsPriceType">
  4962. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4963. <End Role="BemsPriceMeta" Type="Self.BemsPriceMeta" Multiplicity="*" />
  4964. <ReferentialConstraint>
  4965. <Principal Role="BemsPriceType">
  4966. <PropertyRef Name="PriceTypeId" />
  4967. </Principal>
  4968. <Dependent Role="BemsPriceMeta">
  4969. <PropertyRef Name="PriceTypeId" />
  4970. </Dependent>
  4971. </ReferentialConstraint>
  4972. </Association>
  4973. <Association Name="FK_BemsPriceType_BemsFuelType1">
  4974. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4975. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="*" />
  4976. <ReferentialConstraint>
  4977. <Principal Role="BemsFuelType">
  4978. <PropertyRef Name="FuelTypeId" />
  4979. </Principal>
  4980. <Dependent Role="BemsPriceType">
  4981. <PropertyRef Name="FuelTypeId" />
  4982. </Dependent>
  4983. </ReferentialConstraint>
  4984. </Association>
  4985. <Association Name="FK_BemsRentalRate_CmSite">
  4986. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4987. <End Role="BemsRentalRate" Type="Self.BemsRentalRate" Multiplicity="*" />
  4988. <ReferentialConstraint>
  4989. <Principal Role="CmSite">
  4990. <PropertyRef Name="SiteId" />
  4991. </Principal>
  4992. <Dependent Role="BemsRentalRate">
  4993. <PropertyRef Name="SiteId" />
  4994. </Dependent>
  4995. </ReferentialConstraint>
  4996. </Association>
  4997. <Association Name="FK_BemsSitePrice_BemsFuelType">
  4998. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4999. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  5000. <ReferentialConstraint>
  5001. <Principal Role="BemsFuelType">
  5002. <PropertyRef Name="FuelTypeId" />
  5003. </Principal>
  5004. <Dependent Role="BemsSitePrice">
  5005. <PropertyRef Name="FuelTypeId" />
  5006. </Dependent>
  5007. </ReferentialConstraint>
  5008. </Association>
  5009. <Association Name="FK_BemsSitePrice_BemsPriceCode">
  5010. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
  5011. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  5012. <ReferentialConstraint>
  5013. <Principal Role="BemsPriceCode">
  5014. <PropertyRef Name="PriceCode" />
  5015. </Principal>
  5016. <Dependent Role="BemsSitePrice">
  5017. <PropertyRef Name="PriceCode" />
  5018. </Dependent>
  5019. </ReferentialConstraint>
  5020. </Association>
  5021. <Association Name="FK_BemsSitePrice_BemsPriceType">
  5022. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  5023. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  5024. <ReferentialConstraint>
  5025. <Principal Role="BemsPriceType">
  5026. <PropertyRef Name="PriceTypeId" />
  5027. </Principal>
  5028. <Dependent Role="BemsSitePrice">
  5029. <PropertyRef Name="PriceTypeId" />
  5030. </Dependent>
  5031. </ReferentialConstraint>
  5032. </Association>
  5033. <Association Name="FK_BemsSitePrice_CmSite1">
  5034. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5035. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  5036. <ReferentialConstraint>
  5037. <Principal Role="CmSite">
  5038. <PropertyRef Name="SiteId" />
  5039. </Principal>
  5040. <Dependent Role="BemsSitePrice">
  5041. <PropertyRef Name="SiteID" />
  5042. </Dependent>
  5043. </ReferentialConstraint>
  5044. </Association>
  5045. <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
  5046. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  5047. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5048. <ReferentialConstraint>
  5049. <Principal Role="BemsFuelType">
  5050. <PropertyRef Name="FuelTypeId" />
  5051. </Principal>
  5052. <Dependent Role="BemsSitePriceHistory">
  5053. <PropertyRef Name="FuelTypeId" />
  5054. </Dependent>
  5055. </ReferentialConstraint>
  5056. </Association>
  5057. <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
  5058. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
  5059. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5060. <ReferentialConstraint>
  5061. <Principal Role="BemsPriceCode">
  5062. <PropertyRef Name="PriceCode" />
  5063. </Principal>
  5064. <Dependent Role="BemsSitePriceHistory">
  5065. <PropertyRef Name="PriceCode" />
  5066. </Dependent>
  5067. </ReferentialConstraint>
  5068. </Association>
  5069. <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
  5070. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  5071. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5072. <ReferentialConstraint>
  5073. <Principal Role="BemsPriceType">
  5074. <PropertyRef Name="PriceTypeId" />
  5075. </Principal>
  5076. <Dependent Role="BemsSitePriceHistory">
  5077. <PropertyRef Name="PriceTypeId" />
  5078. </Dependent>
  5079. </ReferentialConstraint>
  5080. </Association>
  5081. <Association Name="FK_BemsSitePriceHistory_CmSite">
  5082. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5083. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5084. <ReferentialConstraint>
  5085. <Principal Role="CmSite">
  5086. <PropertyRef Name="SiteId" />
  5087. </Principal>
  5088. <Dependent Role="BemsSitePriceHistory">
  5089. <PropertyRef Name="SiteId" />
  5090. </Dependent>
  5091. </ReferentialConstraint>
  5092. </Association>
  5093. <Association Name="FK_CmAnnouncement_CmBusinessField">
  5094. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  5095. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5096. <ReferentialConstraint>
  5097. <Principal Role="CmBusinessField">
  5098. <PropertyRef Name="SiteId" />
  5099. <PropertyRef Name="BusinessFieldId" />
  5100. </Principal>
  5101. <Dependent Role="CmAnnouncement">
  5102. <PropertyRef Name="SiteId" />
  5103. <PropertyRef Name="BusinessFieldId" />
  5104. </Dependent>
  5105. </ReferentialConstraint>
  5106. </Association>
  5107. <Association Name="FK_CmAnnouncement_CmFile">
  5108. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5109. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5110. <ReferentialConstraint>
  5111. <Principal Role="CmFile">
  5112. <PropertyRef Name="SiteId" />
  5113. <PropertyRef Name="FileId" />
  5114. </Principal>
  5115. <Dependent Role="CmAnnouncement">
  5116. <PropertyRef Name="SiteId" />
  5117. <PropertyRef Name="FileId" />
  5118. </Dependent>
  5119. </ReferentialConstraint>
  5120. </Association>
  5121. <Association Name="FK_CmAnnouncement_CmUser">
  5122. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5123. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5124. <ReferentialConstraint>
  5125. <Principal Role="CmUser">
  5126. <PropertyRef Name="SiteId" />
  5127. <PropertyRef Name="UserId" />
  5128. </Principal>
  5129. <Dependent Role="CmAnnouncement">
  5130. <PropertyRef Name="SiteId" />
  5131. <PropertyRef Name="RegisterUserId" />
  5132. </Dependent>
  5133. </ReferentialConstraint>
  5134. </Association>
  5135. <Association Name="FK_CmFacilityTempSet_CmFacility">
  5136. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  5137. <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="0..1" />
  5138. <ReferentialConstraint>
  5139. <Principal Role="CmFacility">
  5140. <PropertyRef Name="SiteId" />
  5141. <PropertyRef Name="FacilityCode" />
  5142. </Principal>
  5143. <Dependent Role="CmFacilityTempSet">
  5144. <PropertyRef Name="SiteId" />
  5145. <PropertyRef Name="FacilityCode" />
  5146. </Dependent>
  5147. </ReferentialConstraint>
  5148. </Association>
  5149. <Association Name="FK_CmFacilityTempSet_CmSite">
  5150. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5151. <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="*" />
  5152. <ReferentialConstraint>
  5153. <Principal Role="CmSite">
  5154. <PropertyRef Name="SiteId" />
  5155. </Principal>
  5156. <Dependent Role="CmFacilityTempSet">
  5157. <PropertyRef Name="SiteId" />
  5158. </Dependent>
  5159. </ReferentialConstraint>
  5160. </Association>
  5161. <Association Name="FK_CmMenu_CmSite">
  5162. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5163. <End Role="CmMenu" Type="Self.CmMenu" Multiplicity="*" />
  5164. <ReferentialConstraint>
  5165. <Principal Role="CmSite">
  5166. <PropertyRef Name="SiteId" />
  5167. </Principal>
  5168. <Dependent Role="CmMenu">
  5169. <PropertyRef Name="SiteId" />
  5170. </Dependent>
  5171. </ReferentialConstraint>
  5172. </Association>
  5173. <Association Name="FK_CmPartnerType_CmPartner">
  5174. <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="1" />
  5175. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="*" />
  5176. <ReferentialConstraint>
  5177. <Principal Role="CmPartnerType">
  5178. <PropertyRef Name="PartnerTypeId" />
  5179. </Principal>
  5180. <Dependent Role="CmPartner">
  5181. <PropertyRef Name="PartnerTypeId" />
  5182. </Dependent>
  5183. </ReferentialConstraint>
  5184. </Association>
  5185. <Association Name="FK_CmPatrolCourse_CmSite">
  5186. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5187. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="*" />
  5188. <ReferentialConstraint>
  5189. <Principal Role="CmSite">
  5190. <PropertyRef Name="SiteId" />
  5191. </Principal>
  5192. <Dependent Role="CmPatrolCourse">
  5193. <PropertyRef Name="SiteId" />
  5194. </Dependent>
  5195. </ReferentialConstraint>
  5196. </Association>
  5197. <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
  5198. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
  5199. <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
  5200. <ReferentialConstraint>
  5201. <Principal Role="CmPatrolCourse">
  5202. <PropertyRef Name="SiteId" />
  5203. <PropertyRef Name="PatrolCourseId" />
  5204. </Principal>
  5205. <Dependent Role="CmPatrolCoursePos">
  5206. <PropertyRef Name="SiteId" />
  5207. <PropertyRef Name="PatrolCourseId" />
  5208. </Dependent>
  5209. </ReferentialConstraint>
  5210. </Association>
  5211. <Association Name="FK_CmPatrolCoursePos_CmSite">
  5212. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5213. <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
  5214. <ReferentialConstraint>
  5215. <Principal Role="CmSite">
  5216. <PropertyRef Name="SiteId" />
  5217. </Principal>
  5218. <Dependent Role="CmPatrolCoursePos">
  5219. <PropertyRef Name="SiteId" />
  5220. </Dependent>
  5221. </ReferentialConstraint>
  5222. </Association>
  5223. <Association Name="FK_CmPatrolGroup_CmSite">
  5224. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5225. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="*" />
  5226. <ReferentialConstraint>
  5227. <Principal Role="CmSite">
  5228. <PropertyRef Name="SiteId" />
  5229. </Principal>
  5230. <Dependent Role="CmPatrolGroup">
  5231. <PropertyRef Name="SiteId" />
  5232. </Dependent>
  5233. </ReferentialConstraint>
  5234. </Association>
  5235. <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
  5236. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
  5237. <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
  5238. <ReferentialConstraint>
  5239. <Principal Role="CmPatrolGroup">
  5240. <PropertyRef Name="SiteId" />
  5241. <PropertyRef Name="PatrolGroupId" />
  5242. </Principal>
  5243. <Dependent Role="CmPatrolGroupUser">
  5244. <PropertyRef Name="SiteId" />
  5245. <PropertyRef Name="PatrolGroupId" />
  5246. </Dependent>
  5247. </ReferentialConstraint>
  5248. </Association>
  5249. <Association Name="FK_CmPatrolGroupUser_CmUser">
  5250. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5251. <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
  5252. <ReferentialConstraint>
  5253. <Principal Role="CmUser">
  5254. <PropertyRef Name="SiteId" />
  5255. <PropertyRef Name="UserId" />
  5256. </Principal>
  5257. <Dependent Role="CmPatrolGroupUser">
  5258. <PropertyRef Name="SiteId" />
  5259. <PropertyRef Name="UserId" />
  5260. </Dependent>
  5261. </ReferentialConstraint>
  5262. </Association>
  5263. <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
  5264. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="1" />
  5265. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5266. <ReferentialConstraint>
  5267. <Principal Role="CmPatrolSchedule">
  5268. <PropertyRef Name="SiteId" />
  5269. <PropertyRef Name="ScheduleId" />
  5270. </Principal>
  5271. <Dependent Role="CmPatrolHistory">
  5272. <PropertyRef Name="SiteId" />
  5273. <PropertyRef Name="ScheduleId" />
  5274. </Dependent>
  5275. </ReferentialConstraint>
  5276. </Association>
  5277. <Association Name="FK_CmPatrolHistory_CmPatrolType">
  5278. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
  5279. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5280. <ReferentialConstraint>
  5281. <Principal Role="CmPatrolType">
  5282. <PropertyRef Name="SiteId" />
  5283. <PropertyRef Name="PatrolTypeId" />
  5284. </Principal>
  5285. <Dependent Role="CmPatrolHistory">
  5286. <PropertyRef Name="SiteId" />
  5287. <PropertyRef Name="resultTypeId" />
  5288. </Dependent>
  5289. </ReferentialConstraint>
  5290. </Association>
  5291. <Association Name="FK_CmPatrolHistory_CmSite">
  5292. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5293. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5294. <ReferentialConstraint>
  5295. <Principal Role="CmSite">
  5296. <PropertyRef Name="SiteId" />
  5297. </Principal>
  5298. <Dependent Role="CmPatrolHistory">
  5299. <PropertyRef Name="SiteId" />
  5300. </Dependent>
  5301. </ReferentialConstraint>
  5302. </Association>
  5303. <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
  5304. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="1" />
  5305. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5306. <ReferentialConstraint>
  5307. <Principal Role="CmPatrolPos">
  5308. <PropertyRef Name="SiteId" />
  5309. <PropertyRef Name="PosId" />
  5310. </Principal>
  5311. <Dependent Role="CmPatrolHistoryPos">
  5312. <PropertyRef Name="SiteId" />
  5313. <PropertyRef Name="PosId" />
  5314. </Dependent>
  5315. </ReferentialConstraint>
  5316. </Association>
  5317. <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
  5318. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
  5319. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5320. <ReferentialConstraint>
  5321. <Principal Role="CmPatrolType">
  5322. <PropertyRef Name="SiteId" />
  5323. <PropertyRef Name="PatrolTypeId" />
  5324. </Principal>
  5325. <Dependent Role="CmPatrolHistoryPos">
  5326. <PropertyRef Name="SiteId" />
  5327. <PropertyRef Name="resultType" />
  5328. </Dependent>
  5329. </ReferentialConstraint>
  5330. </Association>
  5331. <Association Name="FK_CmPatrolHistoryPos_CmSite">
  5332. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5333. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5334. <ReferentialConstraint>
  5335. <Principal Role="CmSite">
  5336. <PropertyRef Name="SiteId" />
  5337. </Principal>
  5338. <Dependent Role="CmPatrolHistoryPos">
  5339. <PropertyRef Name="SiteId" />
  5340. </Dependent>
  5341. </ReferentialConstraint>
  5342. </Association>
  5343. <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
  5344. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
  5345. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5346. <ReferentialConstraint>
  5347. <Principal Role="CmPatrolCourse">
  5348. <PropertyRef Name="SiteId" />
  5349. <PropertyRef Name="PatrolCourseId" />
  5350. </Principal>
  5351. <Dependent Role="CmPatrolPlan">
  5352. <PropertyRef Name="SiteId" />
  5353. <PropertyRef Name="CourseId" />
  5354. </Dependent>
  5355. </ReferentialConstraint>
  5356. </Association>
  5357. <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
  5358. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
  5359. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5360. <ReferentialConstraint>
  5361. <Principal Role="CmPatrolGroup">
  5362. <PropertyRef Name="SiteId" />
  5363. <PropertyRef Name="PatrolGroupId" />
  5364. </Principal>
  5365. <Dependent Role="CmPatrolPlan">
  5366. <PropertyRef Name="SiteId" />
  5367. <PropertyRef Name="GroupId" />
  5368. </Dependent>
  5369. </ReferentialConstraint>
  5370. </Association>
  5371. <Association Name="FK_CmPatrolPlan_CmSite">
  5372. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5373. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5374. <ReferentialConstraint>
  5375. <Principal Role="CmSite">
  5376. <PropertyRef Name="SiteId" />
  5377. </Principal>
  5378. <Dependent Role="CmPatrolPlan">
  5379. <PropertyRef Name="SiteId" />
  5380. </Dependent>
  5381. </ReferentialConstraint>
  5382. </Association>
  5383. <Association Name="FK_CmPatrolPos_CmBuilding">
  5384. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  5385. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5386. <ReferentialConstraint>
  5387. <Principal Role="CmBuilding">
  5388. <PropertyRef Name="SiteId" />
  5389. <PropertyRef Name="BuildingId" />
  5390. </Principal>
  5391. <Dependent Role="CmPatrolPos">
  5392. <PropertyRef Name="SiteId" />
  5393. <PropertyRef Name="BuildingId" />
  5394. </Dependent>
  5395. </ReferentialConstraint>
  5396. </Association>
  5397. <Association Name="FK_CmPatrolPos_CmFloor">
  5398. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  5399. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5400. <ReferentialConstraint>
  5401. <Principal Role="CmFloor">
  5402. <PropertyRef Name="SiteId" />
  5403. <PropertyRef Name="BuildingId" />
  5404. <PropertyRef Name="FloorId" />
  5405. </Principal>
  5406. <Dependent Role="CmPatrolPos">
  5407. <PropertyRef Name="SiteId" />
  5408. <PropertyRef Name="BuildingId" />
  5409. <PropertyRef Name="FloorId" />
  5410. </Dependent>
  5411. </ReferentialConstraint>
  5412. </Association>
  5413. <Association Name="FK_CmPatrolPos_CmSite">
  5414. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5415. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5416. <ReferentialConstraint>
  5417. <Principal Role="CmSite">
  5418. <PropertyRef Name="SiteId" />
  5419. </Principal>
  5420. <Dependent Role="CmPatrolPos">
  5421. <PropertyRef Name="SiteId" />
  5422. </Dependent>
  5423. </ReferentialConstraint>
  5424. </Association>
  5425. <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
  5426. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="1" />
  5427. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
  5428. <ReferentialConstraint>
  5429. <Principal Role="CmPatrolPlan">
  5430. <PropertyRef Name="SiteId" />
  5431. <PropertyRef Name="PatrolPlanId" />
  5432. </Principal>
  5433. <Dependent Role="CmPatrolSchedule">
  5434. <PropertyRef Name="SiteId" />
  5435. <PropertyRef Name="PlanId" />
  5436. </Dependent>
  5437. </ReferentialConstraint>
  5438. </Association>
  5439. <Association Name="FK_CmPatrolSchedule_CmSite">
  5440. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5441. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
  5442. <ReferentialConstraint>
  5443. <Principal Role="CmSite">
  5444. <PropertyRef Name="SiteId" />
  5445. </Principal>
  5446. <Dependent Role="CmPatrolSchedule">
  5447. <PropertyRef Name="SiteId" />
  5448. </Dependent>
  5449. </ReferentialConstraint>
  5450. </Association>
  5451. <Association Name="FK_CmPatrolType_CmSite">
  5452. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5453. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="*" />
  5454. <ReferentialConstraint>
  5455. <Principal Role="CmSite">
  5456. <PropertyRef Name="SiteId" />
  5457. </Principal>
  5458. <Dependent Role="CmPatrolType">
  5459. <PropertyRef Name="SiteId" />
  5460. </Dependent>
  5461. </ReferentialConstraint>
  5462. </Association>
  5463. <Association Name="FK_CmUser_CmBusinessField">
  5464. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  5465. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5466. <ReferentialConstraint>
  5467. <Principal Role="CmBusinessField">
  5468. <PropertyRef Name="SiteId" />
  5469. <PropertyRef Name="BusinessFieldId" />
  5470. </Principal>
  5471. <Dependent Role="CmUser">
  5472. <PropertyRef Name="SiteId" />
  5473. <PropertyRef Name="BusinessFieldId" />
  5474. </Dependent>
  5475. </ReferentialConstraint>
  5476. </Association>
  5477. <Association Name="FK_CmUser_CmCompany">
  5478. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  5479. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5480. <ReferentialConstraint>
  5481. <Principal Role="CmCompany">
  5482. <PropertyRef Name="SiteId" />
  5483. <PropertyRef Name="CompanyId" />
  5484. </Principal>
  5485. <Dependent Role="CmUser">
  5486. <PropertyRef Name="SiteId" />
  5487. <PropertyRef Name="CompanyId" />
  5488. </Dependent>
  5489. </ReferentialConstraint>
  5490. </Association>
  5491. <Association Name="FK_CmUser_CmDepartment">
  5492. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  5493. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5494. <ReferentialConstraint>
  5495. <Principal Role="CmDepartment">
  5496. <PropertyRef Name="SiteId" />
  5497. <PropertyRef Name="CompanyId" />
  5498. <PropertyRef Name="DepartmentId" />
  5499. </Principal>
  5500. <Dependent Role="CmUser">
  5501. <PropertyRef Name="SiteId" />
  5502. <PropertyRef Name="CompanyId" />
  5503. <PropertyRef Name="DepartmentId" />
  5504. </Dependent>
  5505. </ReferentialConstraint>
  5506. </Association>
  5507. <Association Name="FK_CmUser_CmPosition">
  5508. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
  5509. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5510. <ReferentialConstraint>
  5511. <Principal Role="CmPosition">
  5512. <PropertyRef Name="SiteId" />
  5513. <PropertyRef Name="PositionId" />
  5514. </Principal>
  5515. <Dependent Role="CmUser">
  5516. <PropertyRef Name="SiteId" />
  5517. <PropertyRef Name="PositionId" />
  5518. </Dependent>
  5519. </ReferentialConstraint>
  5520. </Association>
  5521. <Association Name="FK_CmUser_CmUserGroup">
  5522. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
  5523. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5524. <ReferentialConstraint>
  5525. <Principal Role="CmUserGroup">
  5526. <PropertyRef Name="SiteId" />
  5527. <PropertyRef Name="UserGroupId" />
  5528. </Principal>
  5529. <Dependent Role="CmUser">
  5530. <PropertyRef Name="SiteId" />
  5531. <PropertyRef Name="UserGroupId" />
  5532. </Dependent>
  5533. </ReferentialConstraint>
  5534. </Association>
  5535. <Association Name="FK_CmUserLoginHistory_CmUser">
  5536. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5537. <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
  5538. <ReferentialConstraint>
  5539. <Principal Role="CmUser">
  5540. <PropertyRef Name="SiteId" />
  5541. <PropertyRef Name="UserId" />
  5542. </Principal>
  5543. <Dependent Role="CmUserLoginHistory">
  5544. <PropertyRef Name="SiteId" />
  5545. <PropertyRef Name="UserId" />
  5546. </Dependent>
  5547. </ReferentialConstraint>
  5548. </Association>
  5549. <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
  5550. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  5551. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5552. <ReferentialConstraint>
  5553. <Principal Role="CmBuilding">
  5554. <PropertyRef Name="SiteId" />
  5555. <PropertyRef Name="BuildingId" />
  5556. </Principal>
  5557. <Dependent Role="CmZoneTempHumiSet">
  5558. <PropertyRef Name="SiteId" />
  5559. <PropertyRef Name="BuildingId" />
  5560. </Dependent>
  5561. </ReferentialConstraint>
  5562. </Association>
  5563. <Association Name="FK_CmZoneTempHumiSet_CmFloor">
  5564. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  5565. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5566. <ReferentialConstraint>
  5567. <Principal Role="CmFloor">
  5568. <PropertyRef Name="SiteId" />
  5569. <PropertyRef Name="BuildingId" />
  5570. <PropertyRef Name="FloorId" />
  5571. </Principal>
  5572. <Dependent Role="CmZoneTempHumiSet">
  5573. <PropertyRef Name="SiteId" />
  5574. <PropertyRef Name="BuildingId" />
  5575. <PropertyRef Name="FloorId" />
  5576. </Dependent>
  5577. </ReferentialConstraint>
  5578. </Association>
  5579. <Association Name="FK_CmZoneTempHumiSet_CmSite">
  5580. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5581. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5582. <ReferentialConstraint>
  5583. <Principal Role="CmSite">
  5584. <PropertyRef Name="SiteId" />
  5585. </Principal>
  5586. <Dependent Role="CmZoneTempHumiSet">
  5587. <PropertyRef Name="SiteId" />
  5588. </Dependent>
  5589. </ReferentialConstraint>
  5590. </Association>
  5591. <Association Name="FK_CmZoneTempHumiSet_CmZone">
  5592. <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
  5593. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
  5594. <ReferentialConstraint>
  5595. <Principal Role="CmZone">
  5596. <PropertyRef Name="SiteId" />
  5597. <PropertyRef Name="BuildingId" />
  5598. <PropertyRef Name="FloorId" />
  5599. <PropertyRef Name="ZoneId" />
  5600. </Principal>
  5601. <Dependent Role="CmZoneTempHumiSet">
  5602. <PropertyRef Name="SiteId" />
  5603. <PropertyRef Name="BuildingId" />
  5604. <PropertyRef Name="FloorId" />
  5605. <PropertyRef Name="ZoneId" />
  5606. </Dependent>
  5607. </ReferentialConstraint>
  5608. </Association>
  5609. <Association Name="FK_FmsAccident_CmCompany">
  5610. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  5611. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5612. <ReferentialConstraint>
  5613. <Principal Role="CmCompany">
  5614. <PropertyRef Name="SiteId" />
  5615. <PropertyRef Name="CompanyId" />
  5616. </Principal>
  5617. <Dependent Role="FmsAccident">
  5618. <PropertyRef Name="SiteId" />
  5619. <PropertyRef Name="CompanyId" />
  5620. </Dependent>
  5621. </ReferentialConstraint>
  5622. </Association>
  5623. <Association Name="FK_FmsAccident_CmDepartment">
  5624. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  5625. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5626. <ReferentialConstraint>
  5627. <Principal Role="CmDepartment">
  5628. <PropertyRef Name="SiteId" />
  5629. <PropertyRef Name="CompanyId" />
  5630. <PropertyRef Name="DepartmentId" />
  5631. </Principal>
  5632. <Dependent Role="FmsAccident">
  5633. <PropertyRef Name="SiteId" />
  5634. <PropertyRef Name="CompanyId" />
  5635. <PropertyRef Name="DepartmentId" />
  5636. </Dependent>
  5637. </ReferentialConstraint>
  5638. </Association>
  5639. <Association Name="FK_FmsAccident_CmFile1">
  5640. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5641. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5642. <ReferentialConstraint>
  5643. <Principal Role="CmFile">
  5644. <PropertyRef Name="SiteId" />
  5645. <PropertyRef Name="FileId" />
  5646. </Principal>
  5647. <Dependent Role="FmsAccident">
  5648. <PropertyRef Name="SiteId" />
  5649. <PropertyRef Name="FileId1" />
  5650. </Dependent>
  5651. </ReferentialConstraint>
  5652. </Association>
  5653. <Association Name="FK_FmsAccident_CmFile2">
  5654. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5655. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5656. <ReferentialConstraint>
  5657. <Principal Role="CmFile">
  5658. <PropertyRef Name="SiteId" />
  5659. <PropertyRef Name="FileId" />
  5660. </Principal>
  5661. <Dependent Role="FmsAccident">
  5662. <PropertyRef Name="SiteId" />
  5663. <PropertyRef Name="FileId2" />
  5664. </Dependent>
  5665. </ReferentialConstraint>
  5666. </Association>
  5667. <Association Name="FK_FmsAccident_CmFile3">
  5668. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5669. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5670. <ReferentialConstraint>
  5671. <Principal Role="CmFile">
  5672. <PropertyRef Name="SiteId" />
  5673. <PropertyRef Name="FileId" />
  5674. </Principal>
  5675. <Dependent Role="FmsAccident">
  5676. <PropertyRef Name="SiteId" />
  5677. <PropertyRef Name="FileId3" />
  5678. </Dependent>
  5679. </ReferentialConstraint>
  5680. </Association>
  5681. <Association Name="FK_FmsAccident_FmsAccidentCodeType">
  5682. <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
  5683. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5684. <ReferentialConstraint>
  5685. <Principal Role="FmsAccidentCodeType">
  5686. <PropertyRef Name="SiteId" />
  5687. <PropertyRef Name="AccidentTypeId" />
  5688. </Principal>
  5689. <Dependent Role="FmsAccident">
  5690. <PropertyRef Name="SiteId" />
  5691. <PropertyRef Name="AccidentTypeId" />
  5692. </Dependent>
  5693. </ReferentialConstraint>
  5694. </Association>
  5695. <Association Name="FK_FmsBudgetDetail_FmsBudget">
  5696. <End Role="FmsBudget" Type="Self.FmsBudget" Multiplicity="1">
  5697. <OnDelete Action="Cascade" />
  5698. </End>
  5699. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
  5700. <ReferentialConstraint>
  5701. <Principal Role="FmsBudget">
  5702. <PropertyRef Name="SiteId" />
  5703. <PropertyRef Name="Year" />
  5704. </Principal>
  5705. <Dependent Role="FmsBudgetDetail">
  5706. <PropertyRef Name="SiteId" />
  5707. <PropertyRef Name="Year" />
  5708. </Dependent>
  5709. </ReferentialConstraint>
  5710. </Association>
  5711. <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
  5712. <End Role="FmsBudgetCodeClass" Type="Self.FmsBudgetCodeClass" Multiplicity="1" />
  5713. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
  5714. <ReferentialConstraint>
  5715. <Principal Role="FmsBudgetCodeClass">
  5716. <PropertyRef Name="SiteId" />
  5717. <PropertyRef Name="BudgetClassId" />
  5718. </Principal>
  5719. <Dependent Role="FmsBudgetDetail">
  5720. <PropertyRef Name="SiteId" />
  5721. <PropertyRef Name="BudgetClassId" />
  5722. </Dependent>
  5723. </ReferentialConstraint>
  5724. </Association>
  5725. <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  5726. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="1" />
  5727. <End Role="FmsBudgetDetailExecution" Type="Self.FmsBudgetDetailExecution" Multiplicity="*" />
  5728. <ReferentialConstraint>
  5729. <Principal Role="FmsBudgetDetail">
  5730. <PropertyRef Name="SiteId" />
  5731. <PropertyRef Name="Year" />
  5732. <PropertyRef Name="BudgetClassId" />
  5733. <PropertyRef Name="ParentBudgetClassId" />
  5734. </Principal>
  5735. <Dependent Role="FmsBudgetDetailExecution">
  5736. <PropertyRef Name="SiteId" />
  5737. <PropertyRef Name="Year" />
  5738. <PropertyRef Name="BudgetClassId" />
  5739. <PropertyRef Name="ParentBudgetClassId" />
  5740. </Dependent>
  5741. </ReferentialConstraint>
  5742. </Association>
  5743. <Association Name="FK_FmsConstruction_CmFile1">
  5744. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5745. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5746. <ReferentialConstraint>
  5747. <Principal Role="CmFile">
  5748. <PropertyRef Name="SiteId" />
  5749. <PropertyRef Name="FileId" />
  5750. </Principal>
  5751. <Dependent Role="FmsConstruction">
  5752. <PropertyRef Name="SiteId" />
  5753. <PropertyRef Name="FileId1" />
  5754. </Dependent>
  5755. </ReferentialConstraint>
  5756. </Association>
  5757. <Association Name="FK_FmsConstruction_CmFile2">
  5758. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5759. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5760. <ReferentialConstraint>
  5761. <Principal Role="CmFile">
  5762. <PropertyRef Name="SiteId" />
  5763. <PropertyRef Name="FileId" />
  5764. </Principal>
  5765. <Dependent Role="FmsConstruction">
  5766. <PropertyRef Name="SiteId" />
  5767. <PropertyRef Name="FileId2" />
  5768. </Dependent>
  5769. </ReferentialConstraint>
  5770. </Association>
  5771. <Association Name="FK_FmsConstruction_CmFile3">
  5772. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5773. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5774. <ReferentialConstraint>
  5775. <Principal Role="CmFile">
  5776. <PropertyRef Name="SiteId" />
  5777. <PropertyRef Name="FileId" />
  5778. </Principal>
  5779. <Dependent Role="FmsConstruction">
  5780. <PropertyRef Name="SiteId" />
  5781. <PropertyRef Name="FileId3" />
  5782. </Dependent>
  5783. </ReferentialConstraint>
  5784. </Association>
  5785. <Association Name="FK_FmsConstruction_CmPartner">
  5786. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="1" />
  5787. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5788. <ReferentialConstraint>
  5789. <Principal Role="CmPartner">
  5790. <PropertyRef Name="SiteId" />
  5791. <PropertyRef Name="PartnerId" />
  5792. </Principal>
  5793. <Dependent Role="FmsConstruction">
  5794. <PropertyRef Name="SiteId" />
  5795. <PropertyRef Name="PartnerId" />
  5796. </Dependent>
  5797. </ReferentialConstraint>
  5798. </Association>
  5799. <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
  5800. <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
  5801. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5802. <ReferentialConstraint>
  5803. <Principal Role="FmsConstructionCodeProgress">
  5804. <PropertyRef Name="ProgressId" />
  5805. </Principal>
  5806. <Dependent Role="FmsConstruction">
  5807. <PropertyRef Name="ProgressId" />
  5808. </Dependent>
  5809. </ReferentialConstraint>
  5810. </Association>
  5811. <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
  5812. <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
  5813. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5814. <ReferentialConstraint>
  5815. <Principal Role="FmsConstructionCodeType">
  5816. <PropertyRef Name="SiteId" />
  5817. <PropertyRef Name="ConstructionTypeId" />
  5818. </Principal>
  5819. <Dependent Role="FmsConstruction">
  5820. <PropertyRef Name="SiteId" />
  5821. <PropertyRef Name="ConstructionTypeId" />
  5822. </Dependent>
  5823. </ReferentialConstraint>
  5824. </Association>
  5825. <Association Name="FK_FmsConstructionEstimation_CmUser">
  5826. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5827. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
  5828. <ReferentialConstraint>
  5829. <Principal Role="CmUser">
  5830. <PropertyRef Name="SiteId" />
  5831. <PropertyRef Name="UserId" />
  5832. </Principal>
  5833. <Dependent Role="FmsConstructionEstimation">
  5834. <PropertyRef Name="SiteId" />
  5835. <PropertyRef Name="EstimateUserId" />
  5836. </Dependent>
  5837. </ReferentialConstraint>
  5838. </Association>
  5839. <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
  5840. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
  5841. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
  5842. <ReferentialConstraint>
  5843. <Principal Role="FmsConstruction">
  5844. <PropertyRef Name="SiteId" />
  5845. <PropertyRef Name="ConstructionId" />
  5846. </Principal>
  5847. <Dependent Role="FmsConstructionEstimation">
  5848. <PropertyRef Name="SiteId" />
  5849. <PropertyRef Name="ConstructionId" />
  5850. </Dependent>
  5851. </ReferentialConstraint>
  5852. </Association>
  5853. <Association Name="FK_FmsContract_CmPartner">
  5854. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  5855. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5856. <ReferentialConstraint>
  5857. <Principal Role="CmPartner">
  5858. <PropertyRef Name="SiteId" />
  5859. <PropertyRef Name="PartnerId" />
  5860. </Principal>
  5861. <Dependent Role="FmsContract">
  5862. <PropertyRef Name="SiteId" />
  5863. <PropertyRef Name="PartnerId" />
  5864. </Dependent>
  5865. </ReferentialConstraint>
  5866. </Association>
  5867. <Association Name="FK_FmsContract_CmPartnerType">
  5868. <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="0..1" />
  5869. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5870. <ReferentialConstraint>
  5871. <Principal Role="CmPartnerType">
  5872. <PropertyRef Name="PartnerTypeId" />
  5873. </Principal>
  5874. <Dependent Role="FmsContract">
  5875. <PropertyRef Name="PartnerTypeId" />
  5876. </Dependent>
  5877. </ReferentialConstraint>
  5878. </Association>
  5879. <Association Name="FK_FmsContract_FmsContractClass">
  5880. <End Role="FmsContractClass" Type="Self.FmsContractClass" Multiplicity="0..1" />
  5881. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5882. <ReferentialConstraint>
  5883. <Principal Role="FmsContractClass">
  5884. <PropertyRef Name="SiteId" />
  5885. <PropertyRef Name="ContractClassId" />
  5886. </Principal>
  5887. <Dependent Role="FmsContract">
  5888. <PropertyRef Name="SiteId" />
  5889. <PropertyRef Name="ContractClassId" />
  5890. </Dependent>
  5891. </ReferentialConstraint>
  5892. </Association>
  5893. <Association Name="FK_FmsContract_FmsContractMethod">
  5894. <End Role="FmsContractMethod" Type="Self.FmsContractMethod" Multiplicity="0..1" />
  5895. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5896. <ReferentialConstraint>
  5897. <Principal Role="FmsContractMethod">
  5898. <PropertyRef Name="SiteId" />
  5899. <PropertyRef Name="ContractMethodId" />
  5900. </Principal>
  5901. <Dependent Role="FmsContract">
  5902. <PropertyRef Name="SiteId" />
  5903. <PropertyRef Name="ContractMethodId" />
  5904. </Dependent>
  5905. </ReferentialConstraint>
  5906. </Association>
  5907. <Association Name="FK_FmsContract_FmsContractType">
  5908. <End Role="FmsContractType" Type="Self.FmsContractType" Multiplicity="0..1" />
  5909. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5910. <ReferentialConstraint>
  5911. <Principal Role="FmsContractType">
  5912. <PropertyRef Name="SiteId" />
  5913. <PropertyRef Name="ContractTypeId" />
  5914. </Principal>
  5915. <Dependent Role="FmsContract">
  5916. <PropertyRef Name="SiteId" />
  5917. <PropertyRef Name="ContractTypeId" />
  5918. </Dependent>
  5919. </ReferentialConstraint>
  5920. </Association>
  5921. <Association Name="FK_FmsContract_FmsPaymentType">
  5922. <End Role="FmsPaymentType" Type="Self.FmsPaymentType" Multiplicity="0..1" />
  5923. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5924. <ReferentialConstraint>
  5925. <Principal Role="FmsPaymentType">
  5926. <PropertyRef Name="SiteId" />
  5927. <PropertyRef Name="PaymentTypeId" />
  5928. </Principal>
  5929. <Dependent Role="FmsContract">
  5930. <PropertyRef Name="SiteId" />
  5931. <PropertyRef Name="PartnerTypeId" />
  5932. </Dependent>
  5933. </ReferentialConstraint>
  5934. </Association>
  5935. <Association Name="FK_FmsDailyCheckReport_CmUser">
  5936. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5937. <End Role="FmsDailyCheckReport" Type="Self.FmsDailyCheckReport" Multiplicity="*" />
  5938. <ReferentialConstraint>
  5939. <Principal Role="CmUser">
  5940. <PropertyRef Name="SiteId" />
  5941. <PropertyRef Name="UserId" />
  5942. </Principal>
  5943. <Dependent Role="FmsDailyCheckReport">
  5944. <PropertyRef Name="SiteId" />
  5945. <PropertyRef Name="RegisterUserId" />
  5946. </Dependent>
  5947. </ReferentialConstraint>
  5948. </Association>
  5949. <Association Name="FK_FmsDailyReport_CmBusinessField">
  5950. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  5951. <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
  5952. <ReferentialConstraint>
  5953. <Principal Role="CmBusinessField">
  5954. <PropertyRef Name="SiteId" />
  5955. <PropertyRef Name="BusinessFieldId" />
  5956. </Principal>
  5957. <Dependent Role="FmsDailyReport">
  5958. <PropertyRef Name="SiteId" />
  5959. <PropertyRef Name="BusinessFieldId" />
  5960. </Dependent>
  5961. </ReferentialConstraint>
  5962. </Association>
  5963. <Association Name="FK_FmsDailyReport_CmUser">
  5964. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5965. <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
  5966. <ReferentialConstraint>
  5967. <Principal Role="CmUser">
  5968. <PropertyRef Name="SiteId" />
  5969. <PropertyRef Name="UserId" />
  5970. </Principal>
  5971. <Dependent Role="FmsDailyReport">
  5972. <PropertyRef Name="SiteId" />
  5973. <PropertyRef Name="RegisterUserId" />
  5974. </Dependent>
  5975. </ReferentialConstraint>
  5976. </Association>
  5977. <Association Name="FK_FmsEquipment_CmUser">
  5978. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5979. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5980. <ReferentialConstraint>
  5981. <Principal Role="CmUser">
  5982. <PropertyRef Name="SiteId" />
  5983. <PropertyRef Name="UserId" />
  5984. </Principal>
  5985. <Dependent Role="FmsEquipment">
  5986. <PropertyRef Name="SiteId" />
  5987. <PropertyRef Name="RegisterUserId" />
  5988. </Dependent>
  5989. </ReferentialConstraint>
  5990. </Association>
  5991. <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
  5992. <End Role="FmsEquipmentCodeType" Type="Self.FmsEquipmentCodeType" Multiplicity="1" />
  5993. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5994. <ReferentialConstraint>
  5995. <Principal Role="FmsEquipmentCodeType">
  5996. <PropertyRef Name="SiteId" />
  5997. <PropertyRef Name="EquipmentTypeId" />
  5998. </Principal>
  5999. <Dependent Role="FmsEquipment">
  6000. <PropertyRef Name="SiteId" />
  6001. <PropertyRef Name="EquipmentTypeId" />
  6002. </Dependent>
  6003. </ReferentialConstraint>
  6004. </Association>
  6005. <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
  6006. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
  6007. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  6008. <ReferentialConstraint>
  6009. <Principal Role="FmsMaterialWarehouse">
  6010. <PropertyRef Name="SiteId" />
  6011. <PropertyRef Name="WarehouseId" />
  6012. </Principal>
  6013. <Dependent Role="FmsEquipment">
  6014. <PropertyRef Name="SiteId" />
  6015. <PropertyRef Name="WarehouseId" />
  6016. </Dependent>
  6017. </ReferentialConstraint>
  6018. </Association>
  6019. <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
  6020. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="1" />
  6021. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  6022. <ReferentialConstraint>
  6023. <Principal Role="FmsEquipment">
  6024. <PropertyRef Name="SiteId" />
  6025. <PropertyRef Name="EquipmentId" />
  6026. </Principal>
  6027. <Dependent Role="FmsEquipmentHistory">
  6028. <PropertyRef Name="SiteId" />
  6029. <PropertyRef Name="EquipmentId" />
  6030. </Dependent>
  6031. </ReferentialConstraint>
  6032. </Association>
  6033. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  6034. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  6035. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  6036. <ReferentialConstraint>
  6037. <Principal Role="FmsEquipmentCodeStateType">
  6038. <PropertyRef Name="EquipmentStateTypeId" />
  6039. </Principal>
  6040. <Dependent Role="FmsEquipmentHistory">
  6041. <PropertyRef Name="EquipmentStateTypeId" />
  6042. </Dependent>
  6043. </ReferentialConstraint>
  6044. </Association>
  6045. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  6046. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="0..1">
  6047. <OnDelete Action="Cascade" />
  6048. </End>
  6049. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  6050. <ReferentialConstraint>
  6051. <Principal Role="FmsEquipmentRentInfo">
  6052. <PropertyRef Name="SiteId" />
  6053. <PropertyRef Name="EquipmentRentId" />
  6054. </Principal>
  6055. <Dependent Role="FmsEquipmentHistory">
  6056. <PropertyRef Name="SiteId" />
  6057. <PropertyRef Name="EquipmentRentId" />
  6058. </Dependent>
  6059. </ReferentialConstraint>
  6060. </Association>
  6061. <Association Name="FK_FmsEquipmentRentInfo_CmUser">
  6062. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6063. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6064. <ReferentialConstraint>
  6065. <Principal Role="CmUser">
  6066. <PropertyRef Name="SiteId" />
  6067. <PropertyRef Name="UserId" />
  6068. </Principal>
  6069. <Dependent Role="FmsEquipmentRentInfo">
  6070. <PropertyRef Name="SiteId" />
  6071. <PropertyRef Name="RegisterUserId" />
  6072. </Dependent>
  6073. </ReferentialConstraint>
  6074. </Association>
  6075. <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
  6076. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6077. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6078. <ReferentialConstraint>
  6079. <Principal Role="CmUser">
  6080. <PropertyRef Name="SiteId" />
  6081. <PropertyRef Name="UserId" />
  6082. </Principal>
  6083. <Dependent Role="FmsEquipmentRentInfo">
  6084. <PropertyRef Name="SiteId" />
  6085. <PropertyRef Name="RentUserId" />
  6086. </Dependent>
  6087. </ReferentialConstraint>
  6088. </Association>
  6089. <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  6090. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  6091. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6092. <ReferentialConstraint>
  6093. <Principal Role="FmsEquipmentCodeStateType">
  6094. <PropertyRef Name="EquipmentStateTypeId" />
  6095. </Principal>
  6096. <Dependent Role="FmsEquipmentRentInfo">
  6097. <PropertyRef Name="EquipmentStateTypeId" />
  6098. </Dependent>
  6099. </ReferentialConstraint>
  6100. </Association>
  6101. <Association Name="FK_FmsFacilityOperationReport_CmUser">
  6102. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6103. <End Role="FmsFacilityOperationReport" Type="Self.FmsFacilityOperationReport" Multiplicity="*" />
  6104. <ReferentialConstraint>
  6105. <Principal Role="CmUser">
  6106. <PropertyRef Name="SiteId" />
  6107. <PropertyRef Name="UserId" />
  6108. </Principal>
  6109. <Dependent Role="FmsFacilityOperationReport">
  6110. <PropertyRef Name="SiteId" />
  6111. <PropertyRef Name="RegisterUserId" />
  6112. </Dependent>
  6113. </ReferentialConstraint>
  6114. </Association>
  6115. <Association Name="FK_FmsManual_FmsManualType">
  6116. <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
  6117. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
  6118. <ReferentialConstraint>
  6119. <Principal Role="FmsManualType">
  6120. <PropertyRef Name="SiteId" />
  6121. <PropertyRef Name="ManualTypeId" />
  6122. </Principal>
  6123. <Dependent Role="FmsManual">
  6124. <PropertyRef Name="SiteId" />
  6125. <PropertyRef Name="ManualTypeId" />
  6126. </Dependent>
  6127. </ReferentialConstraint>
  6128. </Association>
  6129. <Association Name="FK_FmsManualHistory_CmFile">
  6130. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6131. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6132. <ReferentialConstraint>
  6133. <Principal Role="CmFile">
  6134. <PropertyRef Name="SiteId" />
  6135. <PropertyRef Name="FileId" />
  6136. </Principal>
  6137. <Dependent Role="FmsManualHistory">
  6138. <PropertyRef Name="SiteId" />
  6139. <PropertyRef Name="FileId" />
  6140. </Dependent>
  6141. </ReferentialConstraint>
  6142. </Association>
  6143. <Association Name="FK_FmsManualHistory_CmUser">
  6144. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6145. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6146. <ReferentialConstraint>
  6147. <Principal Role="CmUser">
  6148. <PropertyRef Name="SiteId" />
  6149. <PropertyRef Name="UserId" />
  6150. </Principal>
  6151. <Dependent Role="FmsManualHistory">
  6152. <PropertyRef Name="SiteId" />
  6153. <PropertyRef Name="UpdatedUserId" />
  6154. </Dependent>
  6155. </ReferentialConstraint>
  6156. </Association>
  6157. <Association Name="FK_FmsManualHistory_FmsManual">
  6158. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
  6159. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6160. <ReferentialConstraint>
  6161. <Principal Role="FmsManual">
  6162. <PropertyRef Name="SiteId" />
  6163. <PropertyRef Name="ManualId" />
  6164. </Principal>
  6165. <Dependent Role="FmsManualHistory">
  6166. <PropertyRef Name="SiteId" />
  6167. <PropertyRef Name="ManualId" />
  6168. </Dependent>
  6169. </ReferentialConstraint>
  6170. </Association>
  6171. <Association Name="FK_FmsMaterial_CmBusinessField">
  6172. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6173. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6174. <ReferentialConstraint>
  6175. <Principal Role="CmBusinessField">
  6176. <PropertyRef Name="SiteId" />
  6177. <PropertyRef Name="BusinessFieldId" />
  6178. </Principal>
  6179. <Dependent Role="FmsMaterial">
  6180. <PropertyRef Name="SiteId" />
  6181. <PropertyRef Name="BusinessFieldId" />
  6182. </Dependent>
  6183. </ReferentialConstraint>
  6184. </Association>
  6185. <Association Name="FK_FmsMaterial_CmFile">
  6186. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6187. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6188. <ReferentialConstraint>
  6189. <Principal Role="CmFile">
  6190. <PropertyRef Name="SiteId" />
  6191. <PropertyRef Name="FileId" />
  6192. </Principal>
  6193. <Dependent Role="FmsMaterial">
  6194. <PropertyRef Name="SiteId" />
  6195. <PropertyRef Name="ImageFileId" />
  6196. </Dependent>
  6197. </ReferentialConstraint>
  6198. </Association>
  6199. <Association Name="FK_FmsMaterial_CmSite">
  6200. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6201. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6202. <ReferentialConstraint>
  6203. <Principal Role="CmSite">
  6204. <PropertyRef Name="SiteId" />
  6205. </Principal>
  6206. <Dependent Role="FmsMaterial">
  6207. <PropertyRef Name="SiteId" />
  6208. </Dependent>
  6209. </ReferentialConstraint>
  6210. </Association>
  6211. <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
  6212. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="0..1" />
  6213. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6214. <ReferentialConstraint>
  6215. <Principal Role="FmsMaterialCodeLocation">
  6216. <PropertyRef Name="SiteId" />
  6217. <PropertyRef Name="LocationId" />
  6218. </Principal>
  6219. <Dependent Role="FmsMaterial">
  6220. <PropertyRef Name="SiteId" />
  6221. <PropertyRef Name="LocationId" />
  6222. </Dependent>
  6223. </ReferentialConstraint>
  6224. </Association>
  6225. <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
  6226. <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="0..1" />
  6227. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6228. <ReferentialConstraint>
  6229. <Principal Role="FmsMaterialCodeType">
  6230. <PropertyRef Name="SiteId" />
  6231. <PropertyRef Name="MaterialTypeId" />
  6232. </Principal>
  6233. <Dependent Role="FmsMaterial">
  6234. <PropertyRef Name="SiteId" />
  6235. <PropertyRef Name="MaterialTypeId" />
  6236. </Dependent>
  6237. </ReferentialConstraint>
  6238. </Association>
  6239. <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
  6240. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  6241. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6242. <ReferentialConstraint>
  6243. <Principal Role="FmsMaterialTradeCompany">
  6244. <PropertyRef Name="SiteId" />
  6245. <PropertyRef Name="TradeCompanyId" />
  6246. </Principal>
  6247. <Dependent Role="FmsMaterial">
  6248. <PropertyRef Name="SiteId" />
  6249. <PropertyRef Name="TradeCompanyId" />
  6250. </Dependent>
  6251. </ReferentialConstraint>
  6252. </Association>
  6253. <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
  6254. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
  6255. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6256. <ReferentialConstraint>
  6257. <Principal Role="FmsMaterialWarehouse">
  6258. <PropertyRef Name="SiteId" />
  6259. <PropertyRef Name="WarehouseId" />
  6260. </Principal>
  6261. <Dependent Role="FmsMaterial">
  6262. <PropertyRef Name="SiteId" />
  6263. <PropertyRef Name="WarehouseId" />
  6264. </Dependent>
  6265. </ReferentialConstraint>
  6266. </Association>
  6267. <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  6268. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
  6269. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  6270. <ReferentialConstraint>
  6271. <Principal Role="FmsMaterialPurchaseRequest">
  6272. <PropertyRef Name="SiteId" />
  6273. <PropertyRef Name="PurchaseRequestId" />
  6274. </Principal>
  6275. <Dependent Role="FmsMaterialPurchaseOrder">
  6276. <PropertyRef Name="SiteId" />
  6277. <PropertyRef Name="PurchaseRequestId" />
  6278. </Dependent>
  6279. </ReferentialConstraint>
  6280. </Association>
  6281. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  6282. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6283. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  6284. <ReferentialConstraint>
  6285. <Principal Role="FmsMaterial">
  6286. <PropertyRef Name="SiteId" />
  6287. <PropertyRef Name="MaterialId" />
  6288. </Principal>
  6289. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  6290. <PropertyRef Name="SiteId" />
  6291. <PropertyRef Name="MaterialId" />
  6292. </Dependent>
  6293. </ReferentialConstraint>
  6294. </Association>
  6295. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  6296. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
  6297. <OnDelete Action="Cascade" />
  6298. </End>
  6299. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  6300. <ReferentialConstraint>
  6301. <Principal Role="FmsMaterialPurchaseOrder">
  6302. <PropertyRef Name="SiteId" />
  6303. <PropertyRef Name="PurchaseOrderId" />
  6304. </Principal>
  6305. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  6306. <PropertyRef Name="SiteId" />
  6307. <PropertyRef Name="PurchaseOrderId" />
  6308. </Dependent>
  6309. </ReferentialConstraint>
  6310. </Association>
  6311. <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  6312. <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
  6313. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  6314. <ReferentialConstraint>
  6315. <Principal Role="FmsMaterialCodePurchaseType">
  6316. <PropertyRef Name="PurchaseTypeId" />
  6317. </Principal>
  6318. <Dependent Role="FmsMaterialPurchaseRequest">
  6319. <PropertyRef Name="PurchaseTypeId" />
  6320. </Dependent>
  6321. </ReferentialConstraint>
  6322. </Association>
  6323. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  6324. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6325. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  6326. <ReferentialConstraint>
  6327. <Principal Role="FmsMaterial">
  6328. <PropertyRef Name="SiteId" />
  6329. <PropertyRef Name="MaterialId" />
  6330. </Principal>
  6331. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  6332. <PropertyRef Name="SiteId" />
  6333. <PropertyRef Name="MaterialId" />
  6334. </Dependent>
  6335. </ReferentialConstraint>
  6336. </Association>
  6337. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  6338. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
  6339. <OnDelete Action="Cascade" />
  6340. </End>
  6341. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  6342. <ReferentialConstraint>
  6343. <Principal Role="FmsMaterialPurchaseRequest">
  6344. <PropertyRef Name="SiteId" />
  6345. <PropertyRef Name="PurchaseRequestId" />
  6346. </Principal>
  6347. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  6348. <PropertyRef Name="SiteId" />
  6349. <PropertyRef Name="PurchaseRequestId" />
  6350. </Dependent>
  6351. </ReferentialConstraint>
  6352. </Association>
  6353. <Association Name="FK_FmsMaterialRelease_CmBusinessField">
  6354. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6355. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6356. <ReferentialConstraint>
  6357. <Principal Role="CmBusinessField">
  6358. <PropertyRef Name="SiteId" />
  6359. <PropertyRef Name="BusinessFieldId" />
  6360. </Principal>
  6361. <Dependent Role="FmsMaterialRelease">
  6362. <PropertyRef Name="SiteId" />
  6363. <PropertyRef Name="BusinessFieldId" />
  6364. </Dependent>
  6365. </ReferentialConstraint>
  6366. </Association>
  6367. <Association Name="FK_FmsMaterialRelease_CmSite">
  6368. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6369. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6370. <ReferentialConstraint>
  6371. <Principal Role="CmSite">
  6372. <PropertyRef Name="SiteId" />
  6373. </Principal>
  6374. <Dependent Role="FmsMaterialRelease">
  6375. <PropertyRef Name="SiteId" />
  6376. </Dependent>
  6377. </ReferentialConstraint>
  6378. </Association>
  6379. <Association Name="FK_FmsMaterialRelease_CmUser">
  6380. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6381. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6382. <ReferentialConstraint>
  6383. <Principal Role="CmUser">
  6384. <PropertyRef Name="SiteId" />
  6385. <PropertyRef Name="UserId" />
  6386. </Principal>
  6387. <Dependent Role="FmsMaterialRelease">
  6388. <PropertyRef Name="SiteId" />
  6389. <PropertyRef Name="ConfirmedUserId" />
  6390. </Dependent>
  6391. </ReferentialConstraint>
  6392. </Association>
  6393. <Association Name="FK_FmsMaterialRelease_CmUser1">
  6394. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6395. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6396. <ReferentialConstraint>
  6397. <Principal Role="CmUser">
  6398. <PropertyRef Name="SiteId" />
  6399. <PropertyRef Name="UserId" />
  6400. </Principal>
  6401. <Dependent Role="FmsMaterialRelease">
  6402. <PropertyRef Name="SiteId" />
  6403. <PropertyRef Name="AdjustmentUserId" />
  6404. </Dependent>
  6405. </ReferentialConstraint>
  6406. </Association>
  6407. <Association Name="FK_FmsMaterialRelease_FmsMaterial">
  6408. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="0..1" />
  6409. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6410. <ReferentialConstraint>
  6411. <Principal Role="FmsMaterial">
  6412. <PropertyRef Name="SiteId" />
  6413. <PropertyRef Name="MaterialId" />
  6414. </Principal>
  6415. <Dependent Role="FmsMaterialRelease">
  6416. <PropertyRef Name="SiteId" />
  6417. <PropertyRef Name="MaterialId" />
  6418. </Dependent>
  6419. </ReferentialConstraint>
  6420. </Association>
  6421. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  6422. <End Role="FmsMaterialCodeAdjustmentType" Type="Self.FmsMaterialCodeAdjustmentType" Multiplicity="1" />
  6423. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6424. <ReferentialConstraint>
  6425. <Principal Role="FmsMaterialCodeAdjustmentType">
  6426. <PropertyRef Name="AdjustmentTypeId" />
  6427. </Principal>
  6428. <Dependent Role="FmsMaterialRelease">
  6429. <PropertyRef Name="AdjustmentTypeId" />
  6430. </Dependent>
  6431. </ReferentialConstraint>
  6432. </Association>
  6433. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  6434. <End Role="FmsMaterialCodeReleaseType" Type="Self.FmsMaterialCodeReleaseType" Multiplicity="1" />
  6435. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6436. <ReferentialConstraint>
  6437. <Principal Role="FmsMaterialCodeReleaseType">
  6438. <PropertyRef Name="ReleaseTypeId" />
  6439. </Principal>
  6440. <Dependent Role="FmsMaterialRelease">
  6441. <PropertyRef Name="ReleaseTypeId" />
  6442. </Dependent>
  6443. </ReferentialConstraint>
  6444. </Association>
  6445. <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
  6446. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  6447. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6448. <ReferentialConstraint>
  6449. <Principal Role="FmsWorkResult">
  6450. <PropertyRef Name="SiteId" />
  6451. <PropertyRef Name="WorkRequestId" />
  6452. </Principal>
  6453. <Dependent Role="FmsMaterialRelease">
  6454. <PropertyRef Name="SiteId" />
  6455. <PropertyRef Name="WorkRequestId" />
  6456. </Dependent>
  6457. </ReferentialConstraint>
  6458. </Association>
  6459. <Association Name="FK_FmsMaterialStored_FmsMaterial">
  6460. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6461. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6462. <ReferentialConstraint>
  6463. <Principal Role="FmsMaterial">
  6464. <PropertyRef Name="SiteId" />
  6465. <PropertyRef Name="MaterialId" />
  6466. </Principal>
  6467. <Dependent Role="FmsMaterialStored">
  6468. <PropertyRef Name="SiteId" />
  6469. <PropertyRef Name="MaterialId" />
  6470. </Dependent>
  6471. </ReferentialConstraint>
  6472. </Association>
  6473. <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  6474. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
  6475. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6476. <ReferentialConstraint>
  6477. <Principal Role="FmsMaterialPurchaseOrder">
  6478. <PropertyRef Name="SiteId" />
  6479. <PropertyRef Name="PurchaseOrderId" />
  6480. </Principal>
  6481. <Dependent Role="FmsMaterialStored">
  6482. <PropertyRef Name="SiteId" />
  6483. <PropertyRef Name="PurchaseOrderId" />
  6484. </Dependent>
  6485. </ReferentialConstraint>
  6486. </Association>
  6487. <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
  6488. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
  6489. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6490. <ReferentialConstraint>
  6491. <Principal Role="FmsMaterialWarehouse">
  6492. <PropertyRef Name="SiteId" />
  6493. <PropertyRef Name="WarehouseId" />
  6494. </Principal>
  6495. <Dependent Role="FmsMaterialStored">
  6496. <PropertyRef Name="SiteId" />
  6497. <PropertyRef Name="WarehouseId" />
  6498. </Dependent>
  6499. </ReferentialConstraint>
  6500. </Association>
  6501. <Association Name="FK_FmsMonthlyReport_CmUser">
  6502. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6503. <End Role="FmsMonthlyReport" Type="Self.FmsMonthlyReport" Multiplicity="*" />
  6504. <ReferentialConstraint>
  6505. <Principal Role="CmUser">
  6506. <PropertyRef Name="SiteId" />
  6507. <PropertyRef Name="UserId" />
  6508. </Principal>
  6509. <Dependent Role="FmsMonthlyReport">
  6510. <PropertyRef Name="SiteId" />
  6511. <PropertyRef Name="RegisterUserId" />
  6512. </Dependent>
  6513. </ReferentialConstraint>
  6514. </Association>
  6515. <Association Name="FK_FmsReport_CmBusinessField">
  6516. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6517. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6518. <ReferentialConstraint>
  6519. <Principal Role="CmBusinessField">
  6520. <PropertyRef Name="SiteId" />
  6521. <PropertyRef Name="BusinessFieldId" />
  6522. </Principal>
  6523. <Dependent Role="FmsReport">
  6524. <PropertyRef Name="SiteId" />
  6525. <PropertyRef Name="BusinessFieldId" />
  6526. </Dependent>
  6527. </ReferentialConstraint>
  6528. </Association>
  6529. <Association Name="FK_FmsReport_CmFile">
  6530. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6531. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6532. <ReferentialConstraint>
  6533. <Principal Role="CmFile">
  6534. <PropertyRef Name="SiteId" />
  6535. <PropertyRef Name="FileId" />
  6536. </Principal>
  6537. <Dependent Role="FmsReport">
  6538. <PropertyRef Name="SiteId" />
  6539. <PropertyRef Name="FileId" />
  6540. </Dependent>
  6541. </ReferentialConstraint>
  6542. </Association>
  6543. <Association Name="FK_FmsReport_CmSite">
  6544. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6545. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6546. <ReferentialConstraint>
  6547. <Principal Role="CmSite">
  6548. <PropertyRef Name="SiteId" />
  6549. </Principal>
  6550. <Dependent Role="FmsReport">
  6551. <PropertyRef Name="SiteId" />
  6552. </Dependent>
  6553. </ReferentialConstraint>
  6554. </Association>
  6555. <Association Name="FK_FmsReport_CmUser">
  6556. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6557. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6558. <ReferentialConstraint>
  6559. <Principal Role="CmUser">
  6560. <PropertyRef Name="SiteId" />
  6561. <PropertyRef Name="UserId" />
  6562. </Principal>
  6563. <Dependent Role="FmsReport">
  6564. <PropertyRef Name="SiteId" />
  6565. <PropertyRef Name="RegisterUserId" />
  6566. </Dependent>
  6567. </ReferentialConstraint>
  6568. </Association>
  6569. <Association Name="FK_FmsReport_CmUser1">
  6570. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6571. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6572. <ReferentialConstraint>
  6573. <Principal Role="CmUser">
  6574. <PropertyRef Name="SiteId" />
  6575. <PropertyRef Name="UserId" />
  6576. </Principal>
  6577. <Dependent Role="FmsReport">
  6578. <PropertyRef Name="SiteId" />
  6579. <PropertyRef Name="ConfirmUserId1" />
  6580. </Dependent>
  6581. </ReferentialConstraint>
  6582. </Association>
  6583. <Association Name="FK_FmsReport_CmUser2">
  6584. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6585. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6586. <ReferentialConstraint>
  6587. <Principal Role="CmUser">
  6588. <PropertyRef Name="SiteId" />
  6589. <PropertyRef Name="UserId" />
  6590. </Principal>
  6591. <Dependent Role="FmsReport">
  6592. <PropertyRef Name="SiteId" />
  6593. <PropertyRef Name="ConfirmUserId2" />
  6594. </Dependent>
  6595. </ReferentialConstraint>
  6596. </Association>
  6597. <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
  6598. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6599. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  6600. <ReferentialConstraint>
  6601. <Principal Role="CmFacility">
  6602. <PropertyRef Name="SiteId" />
  6603. <PropertyRef Name="FacilityCode" />
  6604. </Principal>
  6605. <Dependent Role="FmsWorkOrderToFacility">
  6606. <PropertyRef Name="SiteId" />
  6607. <PropertyRef Name="FacilityCode" />
  6608. </Dependent>
  6609. </ReferentialConstraint>
  6610. </Association>
  6611. <Association Name="FK_FmsWorkRequest_CmPartner">
  6612. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  6613. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  6614. <ReferentialConstraint>
  6615. <Principal Role="CmPartner">
  6616. <PropertyRef Name="SiteId" />
  6617. <PropertyRef Name="PartnerId" />
  6618. </Principal>
  6619. <Dependent Role="FmsWorkRequest">
  6620. <PropertyRef Name="SiteId" />
  6621. <PropertyRef Name="InspectionAgencyId" />
  6622. </Dependent>
  6623. </ReferentialConstraint>
  6624. </Association>
  6625. <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
  6626. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6627. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  6628. <ReferentialConstraint>
  6629. <Principal Role="CmFacility">
  6630. <PropertyRef Name="SiteId" />
  6631. <PropertyRef Name="FacilityCode" />
  6632. </Principal>
  6633. <Dependent Role="FmsWorkRequestToFacility">
  6634. <PropertyRef Name="SiteId" />
  6635. <PropertyRef Name="FacilityCode" />
  6636. </Dependent>
  6637. </ReferentialConstraint>
  6638. </Association>
  6639. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  6640. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6641. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6642. <ReferentialConstraint>
  6643. <Principal Role="FmsMaterial">
  6644. <PropertyRef Name="SiteId" />
  6645. <PropertyRef Name="MaterialId" />
  6646. </Principal>
  6647. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6648. <PropertyRef Name="SiteId" />
  6649. <PropertyRef Name="MaterialId" />
  6650. </Dependent>
  6651. </ReferentialConstraint>
  6652. </Association>
  6653. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  6654. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  6655. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6656. <ReferentialConstraint>
  6657. <Principal Role="FmsWorkResult">
  6658. <PropertyRef Name="SiteId" />
  6659. <PropertyRef Name="WorkRequestId" />
  6660. </Principal>
  6661. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6662. <PropertyRef Name="SiteId" />
  6663. <PropertyRef Name="WorkRequestId" />
  6664. </Dependent>
  6665. </ReferentialConstraint>
  6666. </Association>
  6667. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  6668. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1" />
  6669. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6670. <ReferentialConstraint>
  6671. <Principal Role="FmsWorkResultCheckItem">
  6672. <PropertyRef Name="CheckItemId" />
  6673. </Principal>
  6674. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6675. <PropertyRef Name="CheckItemId" />
  6676. </Dependent>
  6677. </ReferentialConstraint>
  6678. </Association>
  6679. <Association Name="FK_FmsWorkSchedule_CmPartner">
  6680. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  6681. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  6682. <ReferentialConstraint>
  6683. <Principal Role="CmPartner">
  6684. <PropertyRef Name="SiteId" />
  6685. <PropertyRef Name="PartnerId" />
  6686. </Principal>
  6687. <Dependent Role="FmsWorkSchedule">
  6688. <PropertyRef Name="SiteId" />
  6689. <PropertyRef Name="InspectionAgencyId" />
  6690. </Dependent>
  6691. </ReferentialConstraint>
  6692. </Association>
  6693. <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
  6694. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6695. <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
  6696. <ReferentialConstraint>
  6697. <Principal Role="CmFacility">
  6698. <PropertyRef Name="SiteId" />
  6699. <PropertyRef Name="FacilityCode" />
  6700. </Principal>
  6701. <Dependent Role="FmsWorkScheduleToFacility">
  6702. <PropertyRef Name="SiteId" />
  6703. <PropertyRef Name="FacilityCode" />
  6704. </Dependent>
  6705. </ReferentialConstraint>
  6706. </Association>
  6707. <EntityContainer Name="iBemsModelStoreContainer">
  6708. <EntitySet Name="BemsAlarmGroup" EntityType="Self.BemsAlarmGroup" Schema="dbo" store:Type="Tables" />
  6709. <EntitySet Name="BemsAlarmGroupUser" EntityType="Self.BemsAlarmGroupUser" Schema="dbo" store:Type="Tables" />
  6710. <EntitySet Name="BemsAlarmLog" EntityType="Self.BemsAlarmLog" Schema="dbo" store:Type="Tables" />
  6711. <EntitySet Name="BemsAlarmSetting" EntityType="Self.BemsAlarmSetting" Schema="dbo" store:Type="Tables" />
  6712. <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" Schema="dbo" store:Type="Tables" />
  6713. <EntitySet Name="BemsChartInfo" EntityType="Self.BemsChartInfo" Schema="dbo" store:Type="Tables" />
  6714. <EntitySet Name="BemsConfigData" EntityType="Self.BemsConfigData" Schema="dbo" store:Type="Tables" />
  6715. <EntitySet Name="BemsControlAHUTempConfig" EntityType="Self.BemsControlAHUTempConfig" Schema="dbo" store:Type="Tables" />
  6716. <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" Schema="dbo" store:Type="Tables" />
  6717. <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="Self.BemsEnergyConfigPercentMonth" Schema="dbo" store:Type="Tables" />
  6718. <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="Self.BemsEnergyConfigPercentWeek" Schema="dbo" store:Type="Tables" />
  6719. <EntitySet Name="BemsEnergyCost" EntityType="Self.BemsEnergyCost" Schema="dbo" store:Type="Tables" />
  6720. <EntitySet Name="BemsEnergyDaily" EntityType="Self.BemsEnergyDaily" Schema="dbo" store:Type="Tables" />
  6721. <EntitySet Name="BemsEnergyDailyRegression" EntityType="Self.BemsEnergyDailyRegression" Schema="dbo" store:Type="Tables" />
  6722. <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" Schema="dbo" store:Type="Tables" />
  6723. <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" Schema="dbo" store:Type="Tables" />
  6724. <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" Schema="dbo" store:Type="Tables" />
  6725. <EntitySet Name="BemsFloorPlan" EntityType="Self.BemsFloorPlan" Schema="dbo" store:Type="Tables" />
  6726. <EntitySet Name="BemsFloorStatus" EntityType="Self.BemsFloorStatus" Schema="dbo" store:Type="Tables" />
  6727. <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" Schema="dbo" store:Type="Tables" />
  6728. <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" Schema="dbo" store:Type="Tables" />
  6729. <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" Schema="dbo" store:Type="Tables" />
  6730. <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" Schema="dbo" store:Type="Tables" />
  6731. <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" Schema="dbo" store:Type="Tables" />
  6732. <EntitySet Name="BemsFuelType" EntityType="Self.BemsFuelType" Schema="dbo" store:Type="Tables" />
  6733. <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="Self.BemsIceThermalStorageSimulation" Schema="dbo" store:Type="Tables" />
  6734. <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" Schema="dbo" store:Type="Tables" />
  6735. <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" Schema="dbo" store:Type="Tables" />
  6736. <EntitySet Name="BemsMonitoringPointConfig" EntityType="Self.BemsMonitoringPointConfig" Schema="dbo" store:Type="Tables" />
  6737. <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="Self.BemsMonitoringPointForecastingDayAhead" Schema="dbo" store:Type="Tables" />
  6738. <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="Self.BemsMonitoringPointForecastingHourAhead" Schema="dbo" store:Type="Tables" />
  6739. <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" Schema="dbo" store:Type="Tables" />
  6740. <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="Self.BemsMonitoringPointHistory15minRawData" Schema="dbo" store:Type="Tables" />
  6741. <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" Schema="dbo" store:Type="Tables" />
  6742. <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" Schema="dbo" store:Type="Tables" />
  6743. <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" Schema="dbo" store:Type="Tables" />
  6744. <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="Self.BemsMonitoringPointWeatherForecasted" Schema="dbo" store:Type="Tables" />
  6745. <EntitySet Name="BemsNoticePriceBase" EntityType="Self.BemsNoticePriceBase" Schema="dbo" store:Type="Tables" />
  6746. <EntitySet Name="BemsNoticePriceContractType" EntityType="Self.BemsNoticePriceContractType" Schema="dbo" store:Type="Tables" />
  6747. <EntitySet Name="BemsNoticePriceDetail" EntityType="Self.BemsNoticePriceDetail" Schema="dbo" store:Type="Tables" />
  6748. <EntitySet Name="BemsPeakFacility" EntityType="Self.BemsPeakFacility" Schema="dbo" store:Type="Tables" />
  6749. <EntitySet Name="BemsPeakHistory" EntityType="Self.BemsPeakHistory" Schema="dbo" store:Type="Tables" />
  6750. <EntitySet Name="BemsPeakHistoryDaily" EntityType="Self.BemsPeakHistoryDaily" Schema="dbo" store:Type="Tables" />
  6751. <EntitySet Name="BemsPeakInfo" EntityType="Self.BemsPeakInfo" Schema="dbo" store:Type="Tables" />
  6752. <EntitySet Name="BemsPeopleIncrease" EntityType="Self.BemsPeopleIncrease" Schema="dbo" store:Type="Tables" />
  6753. <EntitySet Name="BemsPriceCode" EntityType="Self.BemsPriceCode" Schema="dbo" store:Type="Tables" />
  6754. <EntitySet Name="BemsPriceFormula" EntityType="Self.BemsPriceFormula" Schema="dbo" store:Type="Tables" />
  6755. <EntitySet Name="BemsPriceMeta" EntityType="Self.BemsPriceMeta" Schema="dbo" store:Type="Tables" />
  6756. <EntitySet Name="BemsPriceType" EntityType="Self.BemsPriceType" Schema="dbo" store:Type="Tables" />
  6757. <EntitySet Name="BemsRentalRate" EntityType="Self.BemsRentalRate" Schema="dbo" store:Type="Tables" />
  6758. <EntitySet Name="BemsReportFormat" EntityType="Self.BemsReportFormat" Schema="dbo" store:Type="Tables" />
  6759. <EntitySet Name="BemsReportHistory" EntityType="Self.BemsReportHistory" Schema="dbo" store:Type="Tables" />
  6760. <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" Schema="dbo" store:Type="Tables" />
  6761. <EntitySet Name="BemsSitePrice" EntityType="Self.BemsSitePrice" Schema="dbo" store:Type="Tables" />
  6762. <EntitySet Name="BemsSitePriceHistory" EntityType="Self.BemsSitePriceHistory" Schema="dbo" store:Type="Tables" />
  6763. <EntitySet Name="CmAlarmAdmin" EntityType="Self.CmAlarmAdmin" Schema="dbo" store:Type="Tables" />
  6764. <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" Schema="dbo" store:Type="Tables" />
  6765. <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" Schema="dbo" store:Type="Tables" />
  6766. <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" Schema="dbo" store:Type="Tables" />
  6767. <EntitySet Name="CmCompany" EntityType="Self.CmCompany" Schema="dbo" store:Type="Tables" />
  6768. <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" Schema="dbo" store:Type="Tables" />
  6769. <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" Schema="dbo" store:Type="Tables" />
  6770. <EntitySet Name="CmFacility" EntityType="Self.CmFacility" Schema="dbo" store:Type="Tables" />
  6771. <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" Schema="dbo" store:Type="Tables" />
  6772. <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" Schema="dbo" store:Type="Tables" />
  6773. <EntitySet Name="CmFile" EntityType="Self.CmFile" Schema="dbo" store:Type="Tables" />
  6774. <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" Schema="dbo" store:Type="Tables" />
  6775. <EntitySet Name="CmFloor" EntityType="Self.CmFloor" Schema="dbo" store:Type="Tables" />
  6776. <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" Schema="dbo" store:Type="Tables" />
  6777. <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" Schema="dbo" store:Type="Tables" />
  6778. <EntitySet Name="CmHolidayWeekend" EntityType="Self.CmHolidayWeekend" Schema="dbo" store:Type="Tables" />
  6779. <EntitySet Name="CmMenu" EntityType="Self.CmMenu" Schema="dbo" store:Type="Tables" />
  6780. <EntitySet Name="CmPartner" EntityType="Self.CmPartner" Schema="dbo" store:Type="Tables" />
  6781. <EntitySet Name="CmPartnerType" EntityType="Self.CmPartnerType" Schema="dbo" store:Type="Tables" />
  6782. <EntitySet Name="CmPatrolCourse" EntityType="Self.CmPatrolCourse" Schema="dbo" store:Type="Tables" />
  6783. <EntitySet Name="CmPatrolCoursePos" EntityType="Self.CmPatrolCoursePos" Schema="dbo" store:Type="Tables" />
  6784. <EntitySet Name="CmPatrolGroup" EntityType="Self.CmPatrolGroup" Schema="dbo" store:Type="Tables" />
  6785. <EntitySet Name="CmPatrolGroupUser" EntityType="Self.CmPatrolGroupUser" Schema="dbo" store:Type="Tables" />
  6786. <EntitySet Name="CmPatrolHistory" EntityType="Self.CmPatrolHistory" Schema="dbo" store:Type="Tables" />
  6787. <EntitySet Name="CmPatrolHistoryPos" EntityType="Self.CmPatrolHistoryPos" Schema="dbo" store:Type="Tables" />
  6788. <EntitySet Name="CmPatrolPlan" EntityType="Self.CmPatrolPlan" Schema="dbo" store:Type="Tables" />
  6789. <EntitySet Name="CmPatrolPos" EntityType="Self.CmPatrolPos" Schema="dbo" store:Type="Tables" />
  6790. <EntitySet Name="CmPatrolSchedule" EntityType="Self.CmPatrolSchedule" Schema="dbo" store:Type="Tables" />
  6791. <EntitySet Name="CmPatrolType" EntityType="Self.CmPatrolType" Schema="dbo" store:Type="Tables" />
  6792. <EntitySet Name="CmPosition" EntityType="Self.CmPosition" Schema="dbo" store:Type="Tables" />
  6793. <EntitySet Name="CmServiceEnergyCalcDay" EntityType="Self.CmServiceEnergyCalcDay" Schema="dbo" store:Type="Tables" />
  6794. <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="Self.CmServiceEnergyCalcMonth" Schema="dbo" store:Type="Tables" />
  6795. <EntitySet Name="CmSite" EntityType="Self.CmSite" Schema="dbo" store:Type="Tables" />
  6796. <EntitySet Name="CmUser" EntityType="Self.CmUser" Schema="dbo" store:Type="Tables" />
  6797. <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" Schema="dbo" store:Type="Tables" />
  6798. <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" Schema="dbo" store:Type="Tables" />
  6799. <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" Schema="dbo" store:Type="Tables" />
  6800. <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" Schema="dbo" store:Type="Tables" />
  6801. <EntitySet Name="CmZone" EntityType="Self.CmZone" Schema="dbo" store:Type="Tables" />
  6802. <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" Schema="dbo" store:Type="Tables" />
  6803. <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" Schema="dbo" store:Type="Tables" />
  6804. <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" Schema="dbo" store:Type="Tables" />
  6805. <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" Schema="dbo" store:Type="Tables" />
  6806. <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" Schema="dbo" store:Type="Tables" />
  6807. <EntitySet Name="FmsBudgetDetail" EntityType="Self.FmsBudgetDetail" Schema="dbo" store:Type="Tables" />
  6808. <EntitySet Name="FmsBudgetDetailExecution" EntityType="Self.FmsBudgetDetailExecution" Schema="dbo" store:Type="Tables" />
  6809. <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" Schema="dbo" store:Type="Tables" />
  6810. <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" Schema="dbo" store:Type="Tables" />
  6811. <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" Schema="dbo" store:Type="Tables" />
  6812. <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" Schema="dbo" store:Type="Tables" />
  6813. <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" Schema="dbo" store:Type="Tables" />
  6814. <EntitySet Name="FmsContract" EntityType="Self.FmsContract" Schema="dbo" store:Type="Tables" />
  6815. <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" Schema="dbo" store:Type="Tables" />
  6816. <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" Schema="dbo" store:Type="Tables" />
  6817. <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" Schema="dbo" store:Type="Tables" />
  6818. <EntitySet Name="FmsDailyCheckReport" EntityType="Self.FmsDailyCheckReport" Schema="dbo" store:Type="Tables" />
  6819. <EntitySet Name="FmsDailyReport" EntityType="Self.FmsDailyReport" Schema="dbo" store:Type="Tables" />
  6820. <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" Schema="dbo" store:Type="Tables" />
  6821. <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" Schema="dbo" store:Type="Tables" />
  6822. <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" Schema="dbo" store:Type="Tables" />
  6823. <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" Schema="dbo" store:Type="Tables" />
  6824. <EntitySet Name="FmsEquipment" EntityType="Self.FmsEquipment" Schema="dbo" store:Type="Tables" />
  6825. <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" Schema="dbo" store:Type="Tables" />
  6826. <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" Schema="dbo" store:Type="Tables" />
  6827. <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" Schema="dbo" store:Type="Tables" />
  6828. <EntitySet Name="FmsEquipmentRentInfo" EntityType="Self.FmsEquipmentRentInfo" Schema="dbo" store:Type="Tables" />
  6829. <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" Schema="dbo" store:Type="Tables" />
  6830. <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" Schema="dbo" store:Type="Tables" />
  6831. <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" Schema="dbo" store:Type="Tables" />
  6832. <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" Schema="dbo" store:Type="Tables" />
  6833. <EntitySet Name="FmsFacilityOperationReport" EntityType="Self.FmsFacilityOperationReport" Schema="dbo" store:Type="Tables" />
  6834. <EntitySet Name="FmsInvestmentCost" EntityType="Self.FmsInvestmentCost" Schema="dbo" store:Type="Tables" />
  6835. <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" Schema="dbo" store:Type="Tables" />
  6836. <EntitySet Name="FmsManual" EntityType="Self.FmsManual" Schema="dbo" store:Type="Tables" />
  6837. <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" Schema="dbo" store:Type="Tables" />
  6838. <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" Schema="dbo" store:Type="Tables" />
  6839. <EntitySet Name="FmsMaterial" EntityType="Self.FmsMaterial" Schema="dbo" store:Type="Tables" />
  6840. <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" Schema="dbo" store:Type="Tables" />
  6841. <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" Schema="dbo" store:Type="Tables" />
  6842. <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" Schema="dbo" store:Type="Tables" />
  6843. <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" Schema="dbo" store:Type="Tables" />
  6844. <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" Schema="dbo" store:Type="Tables" />
  6845. <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" Schema="dbo" store:Type="Tables" />
  6846. <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" Schema="dbo" store:Type="Tables" />
  6847. <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" Schema="dbo" store:Type="Tables" />
  6848. <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" Schema="dbo" store:Type="Tables" />
  6849. <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" Schema="dbo" store:Type="Tables" />
  6850. <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" Schema="dbo" store:Type="Tables" />
  6851. <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" Schema="dbo" store:Type="Tables" />
  6852. <EntitySet Name="FmsMaterialRelease" EntityType="Self.FmsMaterialRelease" Schema="dbo" store:Type="Tables" />
  6853. <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" Schema="dbo" store:Type="Tables" />
  6854. <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" Schema="dbo" store:Type="Tables" />
  6855. <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" Schema="dbo" store:Type="Tables" />
  6856. <EntitySet Name="FmsMonthlyReport" EntityType="Self.FmsMonthlyReport" Schema="dbo" store:Type="Tables" />
  6857. <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" Schema="dbo" store:Type="Tables" />
  6858. <EntitySet Name="FmsReport" EntityType="Self.FmsReport" Schema="dbo" store:Type="Tables" />
  6859. <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" Schema="dbo" store:Type="Tables" />
  6860. <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" Schema="dbo" store:Type="Tables" />
  6861. <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" Schema="dbo" store:Type="Tables" />
  6862. <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" Schema="dbo" store:Type="Tables" />
  6863. <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" Schema="dbo" store:Type="Tables" />
  6864. <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" Schema="dbo" store:Type="Tables" />
  6865. <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" Schema="dbo" store:Type="Tables" />
  6866. <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" Schema="dbo" store:Type="Tables" />
  6867. <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" Schema="dbo" store:Type="Tables" />
  6868. <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" Schema="dbo" store:Type="Tables" />
  6869. <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" Schema="dbo" store:Type="Tables" />
  6870. <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" Schema="dbo" store:Type="Tables" />
  6871. <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" Schema="dbo" store:Type="Tables" />
  6872. <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" Schema="dbo" store:Type="Tables" />
  6873. <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" Schema="dbo" store:Type="Tables" />
  6874. <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" Schema="dbo" store:Type="Tables" />
  6875. <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" Schema="dbo" store:Type="Tables" />
  6876. <EntitySet Name="FmsWorkSchedule" EntityType="Self.FmsWorkSchedule" Schema="dbo" store:Type="Tables" />
  6877. <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" Schema="dbo" store:Type="Tables" />
  6878. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  6879. <EntitySet Name="WeatherDongNaeForecast" EntityType="Self.WeatherDongNaeForecast" Schema="dbo" store:Type="Tables" />
  6880. <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="Self.FK__BemsEnerg__SiteI__7954A4F6">
  6881. <End Role="CmSite" EntitySet="CmSite" />
  6882. <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
  6883. </AssociationSet>
  6884. <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="Self.FK__BemsEnerg__SiteI__7C3111A1">
  6885. <End Role="CmSite" EntitySet="CmSite" />
  6886. <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
  6887. </AssociationSet>
  6888. <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="Self.FK__BemsEnergyDaily__BemsFuelType">
  6889. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6890. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6891. </AssociationSet>
  6892. <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="Self.FK__BemsEnergyDaily__BemsServiceType">
  6893. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6894. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6895. </AssociationSet>
  6896. <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="Self.FK__BemsEnergyDaily__CmBuilding">
  6897. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6898. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6899. </AssociationSet>
  6900. <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="Self.FK__BemsFactorCo2__BemsFuelType">
  6901. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6902. <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
  6903. </AssociationSet>
  6904. <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="Self.FK__BemsFactorToe__BemsFuelType">
  6905. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6906. <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
  6907. </AssociationSet>
  6908. <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
  6909. <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
  6910. <End Role="BemsFormula" EntitySet="BemsFormula" />
  6911. </AssociationSet>
  6912. <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
  6913. <End Role="BemsFormula" EntitySet="BemsFormula" />
  6914. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  6915. </AssociationSet>
  6916. <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
  6917. <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
  6918. <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
  6919. </AssociationSet>
  6920. <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
  6921. <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
  6922. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6923. </AssociationSet>
  6924. <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
  6925. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6926. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6927. </AssociationSet>
  6928. <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="Self.FK__BemsMonitoringPoint__BemsFuelType">
  6929. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6930. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6931. </AssociationSet>
  6932. <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
  6933. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6934. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6935. </AssociationSet>
  6936. <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
  6937. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6938. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6939. </AssociationSet>
  6940. <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
  6941. <End Role="CmFloor" EntitySet="CmFloor" />
  6942. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6943. </AssociationSet>
  6944. <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
  6945. <End Role="CmZone" EntitySet="CmZone" />
  6946. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6947. </AssociationSet>
  6948. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
  6949. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6950. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6951. </AssociationSet>
  6952. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFuelType">
  6953. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6954. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6955. </AssociationSet>
  6956. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
  6957. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6958. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6959. </AssociationSet>
  6960. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  6961. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6962. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  6963. </AssociationSet>
  6964. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  6965. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6966. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  6967. </AssociationSet>
  6968. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  6969. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6970. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  6971. </AssociationSet>
  6972. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  6973. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6974. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  6975. </AssociationSet>
  6976. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  6977. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6978. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  6979. </AssociationSet>
  6980. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  6981. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6982. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  6983. </AssociationSet>
  6984. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  6985. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6986. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  6987. </AssociationSet>
  6988. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  6989. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6990. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  6991. </AssociationSet>
  6992. <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  6993. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6994. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6995. </AssociationSet>
  6996. <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="Self.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  6997. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  6998. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  6999. </AssociationSet>
  7000. <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="Self.FK__BemsNoticePriceContractType__BemsFuelType">
  7001. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7002. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  7003. </AssociationSet>
  7004. <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="Self.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  7005. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  7006. <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
  7007. </AssociationSet>
  7008. <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
  7009. <End Role="CmCompanyType" EntitySet="CmCompanyType" />
  7010. <End Role="CmCompany" EntitySet="CmCompany" />
  7011. </AssociationSet>
  7012. <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="Self.FK__CmCompany__SiteI__336AA144">
  7013. <End Role="CmSite" EntitySet="CmSite" />
  7014. <End Role="CmCompany" EntitySet="CmCompany" />
  7015. </AssociationSet>
  7016. <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
  7017. <End Role="CmCompany" EntitySet="CmCompany" />
  7018. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7019. </AssociationSet>
  7020. <AssociationSet Name="FK__CmFacility__CmFacility" Association="Self.FK__CmFacility__CmFacility">
  7021. <End Role="CmFacility" EntitySet="CmFacility" />
  7022. <End Role="CmFacility1" EntitySet="CmFacility" />
  7023. </AssociationSet>
  7024. <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="Self.FK__CmFacilityFile__7720AD13">
  7025. <End Role="CmFacility" EntitySet="CmFacility" />
  7026. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  7027. </AssociationSet>
  7028. <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
  7029. <End Role="CmFile" EntitySet="CmFile" />
  7030. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  7031. </AssociationSet>
  7032. <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="Self.FK__CmFacilityManual__79FD19BE">
  7033. <End Role="CmFacility" EntitySet="CmFacility" />
  7034. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  7035. </AssociationSet>
  7036. <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
  7037. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7038. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  7039. </AssociationSet>
  7040. <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
  7041. <End Role="CmFileCategory" EntitySet="CmFileCategory" />
  7042. <End Role="CmFile" EntitySet="CmFile" />
  7043. </AssociationSet>
  7044. <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="Self.FK__CmFile__SiteId__2759D01A">
  7045. <End Role="CmSite" EntitySet="CmSite" />
  7046. <End Role="CmFile" EntitySet="CmFile" />
  7047. </AssociationSet>
  7048. <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
  7049. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7050. <End Role="CmFloor" EntitySet="CmFloor" />
  7051. </AssociationSet>
  7052. <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="Self.FK__CmHoliday__SiteI__0BB1B5A5">
  7053. <End Role="CmSite" EntitySet="CmSite" />
  7054. <End Role="CmHoliday" EntitySet="CmHoliday" />
  7055. </AssociationSet>
  7056. <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="Self.FK__CmHoliday__SiteI__0D99FE17">
  7057. <End Role="CmSite" EntitySet="CmSite" />
  7058. <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
  7059. </AssociationSet>
  7060. <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="Self.FK__CmHoliday__SiteI__10766AC2">
  7061. <End Role="CmSite" EntitySet="CmSite" />
  7062. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  7063. </AssociationSet>
  7064. <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="Self.FK__CmHoliday__SiteI__65AC084E">
  7065. <End Role="CmSite" EntitySet="CmSite" />
  7066. <End Role="CmHoliday" EntitySet="CmHoliday" />
  7067. </AssociationSet>
  7068. <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="Self.FK__CmHoliday__SiteI__66A02C87">
  7069. <End Role="CmSite" EntitySet="CmSite" />
  7070. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  7071. </AssociationSet>
  7072. <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
  7073. <End Role="CmFloor" EntitySet="CmFloor" />
  7074. <End Role="CmZone" EntitySet="CmZone" />
  7075. </AssociationSet>
  7076. <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="Self.FK__CmPositio__SiteI__6A70BD6B">
  7077. <End Role="CmSite" EntitySet="CmSite" />
  7078. <End Role="CmPosition" EntitySet="CmPosition" />
  7079. </AssociationSet>
  7080. <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="Self.FK__CmUserGro__SiteI__53D770D6">
  7081. <End Role="CmSite" EntitySet="CmSite" />
  7082. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7083. </AssociationSet>
  7084. <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
  7085. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7086. <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
  7087. </AssociationSet>
  7088. <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="Self.FK__CmUserPos__SiteI__44952D46">
  7089. <End Role="CmSite" EntitySet="CmSite" />
  7090. <End Role="CmPosition" EntitySet="CmPosition" />
  7091. </AssociationSet>
  7092. <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
  7093. <End Role="CmUser" EntitySet="CmUser" />
  7094. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  7095. </AssociationSet>
  7096. <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
  7097. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7098. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  7099. </AssociationSet>
  7100. <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
  7101. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7102. <End Role="CmZone" EntitySet="CmZone" />
  7103. </AssociationSet>
  7104. <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="Self.FK__FmsDrawin__SiteI__6B79F03D">
  7105. <End Role="CmSite" EntitySet="CmSite" />
  7106. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7107. </AssociationSet>
  7108. <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="Self.FK__FmsDrawin__SiteI__6C6E1476">
  7109. <End Role="CmSite" EntitySet="CmSite" />
  7110. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7111. </AssociationSet>
  7112. <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="Self.FK__FmsDrawin__SiteI__6D6238AF">
  7113. <End Role="CmSite" EntitySet="CmSite" />
  7114. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7115. </AssociationSet>
  7116. <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="Self.FK__FmsDrawin__SiteI__6F357288">
  7117. <End Role="CmSite" EntitySet="CmSite" />
  7118. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7119. </AssociationSet>
  7120. <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="Self.FK__FmsDrawin__SiteI__702996C1">
  7121. <End Role="CmSite" EntitySet="CmSite" />
  7122. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7123. </AssociationSet>
  7124. <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
  7125. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7126. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7127. </AssociationSet>
  7128. <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
  7129. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7130. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7131. </AssociationSet>
  7132. <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
  7133. <End Role="CmFile" EntitySet="CmFile" />
  7134. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7135. </AssociationSet>
  7136. <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
  7137. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7138. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7139. </AssociationSet>
  7140. <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
  7141. <End Role="CmUser" EntitySet="CmUser" />
  7142. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7143. </AssociationSet>
  7144. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  7145. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7146. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7147. </AssociationSet>
  7148. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  7149. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7150. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7151. </AssociationSet>
  7152. <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="Self.FK__FmsFacilityCodeClass__CmSite">
  7153. <End Role="CmSite" EntitySet="CmSite" />
  7154. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  7155. </AssociationSet>
  7156. <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  7157. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  7158. <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
  7159. </AssociationSet>
  7160. <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="Self.FK__FmsFacilityOpera__725BF7F6">
  7161. <End Role="CmFacility" EntitySet="CmFacility" />
  7162. <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
  7163. </AssociationSet>
  7164. <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
  7165. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7166. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7167. </AssociationSet>
  7168. <AssociationSet Name="FK__FmsLicense__CmSite" Association="Self.FK__FmsLicense__CmSite">
  7169. <End Role="CmSite" EntitySet="CmSite" />
  7170. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7171. </AssociationSet>
  7172. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  7173. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7174. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7175. </AssociationSet>
  7176. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  7177. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7178. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7179. </AssociationSet>
  7180. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  7181. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7182. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7183. </AssociationSet>
  7184. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
  7185. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7186. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  7187. </AssociationSet>
  7188. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="Self.FK__FmsMaterialCarriedForward__CmSite">
  7189. <End Role="CmSite" EntitySet="CmSite" />
  7190. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  7191. </AssociationSet>
  7192. <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="Self.FK__FmsMaterialCodeClass__CmSite">
  7193. <End Role="CmSite" EntitySet="CmSite" />
  7194. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7195. </AssociationSet>
  7196. <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  7197. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7198. <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
  7199. </AssociationSet>
  7200. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
  7201. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7202. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7203. </AssociationSet>
  7204. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="Self.FK__FmsMaterialCodeLocation__CmSite">
  7205. <End Role="CmSite" EntitySet="CmSite" />
  7206. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7207. </AssociationSet>
  7208. <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="Self.FK__FmsMaterialCodeType__CmSite">
  7209. <End Role="CmSite" EntitySet="CmSite" />
  7210. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  7211. </AssociationSet>
  7212. <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
  7213. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7214. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7215. </AssociationSet>
  7216. <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="Self.FK__FmsMaterialOrder__CmSite">
  7217. <End Role="CmSite" EntitySet="CmSite" />
  7218. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7219. </AssociationSet>
  7220. <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
  7221. <End Role="CmUser" EntitySet="CmUser" />
  7222. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7223. </AssociationSet>
  7224. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
  7225. <End Role="CmFile" EntitySet="CmFile" />
  7226. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7227. </AssociationSet>
  7228. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  7229. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7230. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7231. </AssociationSet>
  7232. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  7233. <End Role="CmUser" EntitySet="CmUser" />
  7234. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7235. </AssociationSet>
  7236. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  7237. <End Role="CmUser" EntitySet="CmUser" />
  7238. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7239. </AssociationSet>
  7240. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
  7241. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7242. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7243. </AssociationSet>
  7244. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="Self.FK__FmsMaterialPurchasingRequest__CmSite">
  7245. <End Role="CmSite" EntitySet="CmSite" />
  7246. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7247. </AssociationSet>
  7248. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  7249. <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
  7250. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7251. </AssociationSet>
  7252. <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
  7253. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7254. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7255. </AssociationSet>
  7256. <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="Self.FK__FmsMaterialStored__CmSite">
  7257. <End Role="CmSite" EntitySet="CmSite" />
  7258. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7259. </AssociationSet>
  7260. <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
  7261. <End Role="CmUser" EntitySet="CmUser" />
  7262. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7263. </AssociationSet>
  7264. <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  7265. <End Role="CmUser" EntitySet="CmUser" />
  7266. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7267. </AssociationSet>
  7268. <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="Self.FK__FmsMaterialTradeCompany__CmSite">
  7269. <End Role="CmSite" EntitySet="CmSite" />
  7270. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7271. </AssociationSet>
  7272. <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
  7273. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7274. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7275. </AssociationSet>
  7276. <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="Self.FK__FmsMaterialWarehouse__CmSite">
  7277. <End Role="CmSite" EntitySet="CmSite" />
  7278. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7279. </AssociationSet>
  7280. <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="Self.FK__FmsWorkCodeCauseClass__CmSite">
  7281. <End Role="CmSite" EntitySet="CmSite" />
  7282. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  7283. </AssociationSet>
  7284. <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="Self.FK__FmsWorkCodeCycleUnit__CmSite">
  7285. <End Role="CmSite" EntitySet="CmSite" />
  7286. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7287. </AssociationSet>
  7288. <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="Self.FK__FmsWorkCodeEmergency__CmSite">
  7289. <End Role="CmSite" EntitySet="CmSite" />
  7290. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  7291. </AssociationSet>
  7292. <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="Self.FK__FmsWorkCodeHolidayWorkType__CmSite">
  7293. <End Role="CmSite" EntitySet="CmSite" />
  7294. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  7295. </AssociationSet>
  7296. <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="Self.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  7297. <End Role="CmSite" EntitySet="CmSite" />
  7298. <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
  7299. </AssociationSet>
  7300. <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
  7301. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7302. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7303. </AssociationSet>
  7304. <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="Self.FK__FmsWorkOrder__CmSite">
  7305. <End Role="CmSite" EntitySet="CmSite" />
  7306. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7307. </AssociationSet>
  7308. <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
  7309. <End Role="CmUser" EntitySet="CmUser" />
  7310. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7311. </AssociationSet>
  7312. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
  7313. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  7314. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7315. </AssociationSet>
  7316. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
  7317. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7318. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7319. </AssociationSet>
  7320. <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
  7321. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7322. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  7323. </AssociationSet>
  7324. <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
  7325. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7326. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7327. </AssociationSet>
  7328. <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="Self.FK__FmsWorkRequest__CmSite">
  7329. <End Role="CmSite" EntitySet="CmSite" />
  7330. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7331. </AssociationSet>
  7332. <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
  7333. <End Role="CmUser" EntitySet="CmUser" />
  7334. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7335. </AssociationSet>
  7336. <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  7337. <End Role="CmUser" EntitySet="CmUser" />
  7338. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7339. </AssociationSet>
  7340. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
  7341. <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
  7342. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7343. </AssociationSet>
  7344. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
  7345. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7346. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7347. </AssociationSet>
  7348. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="Self.FK__FmsWorkRequest__FmsWorkSchedule">
  7349. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7350. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7351. </AssociationSet>
  7352. <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
  7353. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7354. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  7355. </AssociationSet>
  7356. <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
  7357. <End Role="CmUser" EntitySet="CmUser" />
  7358. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7359. </AssociationSet>
  7360. <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  7361. <End Role="CmUser" EntitySet="CmUser" />
  7362. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7363. </AssociationSet>
  7364. <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
  7365. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  7366. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7367. </AssociationSet>
  7368. <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
  7369. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7370. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7371. </AssociationSet>
  7372. <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
  7373. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7374. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7375. </AssociationSet>
  7376. <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="Self.FK__FmsWorkResultCheckItem__CmFacility">
  7377. <End Role="CmFacility" EntitySet="CmFacility" />
  7378. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7379. </AssociationSet>
  7380. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  7381. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7382. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7383. </AssociationSet>
  7384. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
  7385. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7386. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7387. </AssociationSet>
  7388. <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
  7389. <End Role="CmFile" EntitySet="CmFile" />
  7390. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  7391. </AssociationSet>
  7392. <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
  7393. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7394. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  7395. </AssociationSet>
  7396. <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
  7397. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7398. <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
  7399. </AssociationSet>
  7400. <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="Self.FK__FmsWorkResultToFacility__CmFacility">
  7401. <End Role="CmFacility" EntitySet="CmFacility" />
  7402. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  7403. </AssociationSet>
  7404. <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
  7405. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7406. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  7407. </AssociationSet>
  7408. <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="Self.FK__FmsWorkSchedule__CmBusinessField">
  7409. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7410. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7411. </AssociationSet>
  7412. <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="Self.FK__FmsWorkSchedule__CmUser">
  7413. <End Role="CmUser" EntitySet="CmUser" />
  7414. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7415. </AssociationSet>
  7416. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  7417. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7418. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7419. </AssociationSet>
  7420. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  7421. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  7422. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7423. </AssociationSet>
  7424. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  7425. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7426. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7427. </AssociationSet>
  7428. <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  7429. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7430. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  7431. </AssociationSet>
  7432. <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="Self.FK_BemsAlarmLog_BemsAlarmSetting">
  7433. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7434. <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
  7435. </AssociationSet>
  7436. <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="Self.FK_BemsAlarmSetting_BemsFacilityType">
  7437. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7438. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7439. </AssociationSet>
  7440. <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="Self.FK_BemsAlarmSetting_CmFacility">
  7441. <End Role="CmFacility" EntitySet="CmFacility" />
  7442. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7443. </AssociationSet>
  7444. <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="Self.FK_BemsAlarmSetting_CmSite1">
  7445. <End Role="CmSite" EntitySet="CmSite" />
  7446. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7447. </AssociationSet>
  7448. <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="Self.FK_BemsChartInfo_BemsFacilityType">
  7449. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7450. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  7451. </AssociationSet>
  7452. <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="Self.FK_BemsChartInfo_CmSite">
  7453. <End Role="CmSite" EntitySet="CmSite" />
  7454. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  7455. </AssociationSet>
  7456. <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
  7457. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7458. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  7459. </AssociationSet>
  7460. <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
  7461. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7462. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  7463. </AssociationSet>
  7464. <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="Self.FK_BemsEnergyCost_CmFacility">
  7465. <End Role="CmFacility" EntitySet="CmFacility" />
  7466. <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
  7467. </AssociationSet>
  7468. <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="Self.FK_BemsEnergyDailyRegression_CmSite">
  7469. <End Role="CmSite" EntitySet="CmSite" />
  7470. <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
  7471. </AssociationSet>
  7472. <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="Self.FK_BemsFormulaParameter_CmFacility">
  7473. <End Role="CmFacility" EntitySet="CmFacility" />
  7474. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  7475. </AssociationSet>
  7476. <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
  7477. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7478. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7479. </AssociationSet>
  7480. <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="Self.FK_BemsMonitoringPoint_CmFacility">
  7481. <End Role="CmFacility" EntitySet="CmFacility" />
  7482. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7483. </AssociationSet>
  7484. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="Self.FK_BemsMonitoringPointConfig_BemsFacilityType1">
  7485. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7486. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  7487. </AssociationSet>
  7488. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="Self.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  7489. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7490. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  7491. </AssociationSet>
  7492. <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="Self.FK_BemsPeakFacility_CmFacility">
  7493. <End Role="CmFacility" EntitySet="CmFacility" />
  7494. <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
  7495. </AssociationSet>
  7496. <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="Self.FK_BemsPeakHIstory_CmSite">
  7497. <End Role="CmSite" EntitySet="CmSite" />
  7498. <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
  7499. </AssociationSet>
  7500. <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="Self.FK_BemsPeakInfo_CmSite">
  7501. <End Role="CmSite" EntitySet="CmSite" />
  7502. <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
  7503. </AssociationSet>
  7504. <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="Self.FK_BemsPeopleIncrease_CmSite">
  7505. <End Role="CmSite" EntitySet="CmSite" />
  7506. <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
  7507. </AssociationSet>
  7508. <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="Self.FK_BemsPriceCode_BemsFuelType">
  7509. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7510. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7511. </AssociationSet>
  7512. <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="Self.FK_BemsPriceFormula_BemsFormula">
  7513. <End Role="BemsFormula" EntitySet="BemsFormula" />
  7514. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  7515. </AssociationSet>
  7516. <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="Self.FK_BemsPriceFormula_BemsPriceType">
  7517. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7518. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  7519. </AssociationSet>
  7520. <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="Self.FK_BemsPriceMeta_BemsPriceType">
  7521. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7522. <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
  7523. </AssociationSet>
  7524. <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="Self.FK_BemsPriceType_BemsFuelType1">
  7525. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7526. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7527. </AssociationSet>
  7528. <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="Self.FK_BemsRentalRate_CmSite">
  7529. <End Role="CmSite" EntitySet="CmSite" />
  7530. <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
  7531. </AssociationSet>
  7532. <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="Self.FK_BemsSitePrice_BemsFuelType">
  7533. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7534. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7535. </AssociationSet>
  7536. <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="Self.FK_BemsSitePrice_BemsPriceCode">
  7537. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7538. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7539. </AssociationSet>
  7540. <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="Self.FK_BemsSitePrice_BemsPriceType">
  7541. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7542. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7543. </AssociationSet>
  7544. <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="Self.FK_BemsSitePrice_CmSite1">
  7545. <End Role="CmSite" EntitySet="CmSite" />
  7546. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7547. </AssociationSet>
  7548. <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="Self.FK_BemsSitePriceHistory_BemsFuelType">
  7549. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7550. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7551. </AssociationSet>
  7552. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="Self.FK_BemsSitePriceHistory_BemsPriceCode">
  7553. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7554. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7555. </AssociationSet>
  7556. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="Self.FK_BemsSitePriceHistory_BemsPriceType">
  7557. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7558. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7559. </AssociationSet>
  7560. <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="Self.FK_BemsSitePriceHistory_CmSite">
  7561. <End Role="CmSite" EntitySet="CmSite" />
  7562. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7563. </AssociationSet>
  7564. <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
  7565. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7566. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7567. </AssociationSet>
  7568. <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
  7569. <End Role="CmFile" EntitySet="CmFile" />
  7570. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7571. </AssociationSet>
  7572. <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
  7573. <End Role="CmUser" EntitySet="CmUser" />
  7574. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7575. </AssociationSet>
  7576. <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="Self.FK_CmFacilityTempSet_CmFacility">
  7577. <End Role="CmFacility" EntitySet="CmFacility" />
  7578. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  7579. </AssociationSet>
  7580. <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="Self.FK_CmFacilityTempSet_CmSite">
  7581. <End Role="CmSite" EntitySet="CmSite" />
  7582. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  7583. </AssociationSet>
  7584. <AssociationSet Name="FK_CmMenu_CmSite" Association="Self.FK_CmMenu_CmSite">
  7585. <End Role="CmSite" EntitySet="CmSite" />
  7586. <End Role="CmMenu" EntitySet="CmMenu" />
  7587. </AssociationSet>
  7588. <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="Self.FK_CmPartnerType_CmPartner">
  7589. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  7590. <End Role="CmPartner" EntitySet="CmPartner" />
  7591. </AssociationSet>
  7592. <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="Self.FK_CmPatrolCourse_CmSite">
  7593. <End Role="CmSite" EntitySet="CmSite" />
  7594. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7595. </AssociationSet>
  7596. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="Self.FK_CmPatrolCoursePos_CmPatrolCourse">
  7597. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7598. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  7599. </AssociationSet>
  7600. <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="Self.FK_CmPatrolCoursePos_CmSite">
  7601. <End Role="CmSite" EntitySet="CmSite" />
  7602. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  7603. </AssociationSet>
  7604. <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="Self.FK_CmPatrolGroup_CmSite">
  7605. <End Role="CmSite" EntitySet="CmSite" />
  7606. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7607. </AssociationSet>
  7608. <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="Self.FK_CmPatrolGroupUser_CmPatrolGroup">
  7609. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7610. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  7611. </AssociationSet>
  7612. <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="Self.FK_CmPatrolGroupUser_CmUser">
  7613. <End Role="CmUser" EntitySet="CmUser" />
  7614. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  7615. </AssociationSet>
  7616. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="Self.FK_CmPatrolHistory_CmPatrolSchedule">
  7617. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7618. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7619. </AssociationSet>
  7620. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="Self.FK_CmPatrolHistory_CmPatrolType">
  7621. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7622. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7623. </AssociationSet>
  7624. <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="Self.FK_CmPatrolHistory_CmSite">
  7625. <End Role="CmSite" EntitySet="CmSite" />
  7626. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7627. </AssociationSet>
  7628. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="Self.FK_CmPatrolHistoryPos_CmPatrolPos">
  7629. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7630. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7631. </AssociationSet>
  7632. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="Self.FK_CmPatrolHistoryPos_CmPatrolType">
  7633. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7634. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7635. </AssociationSet>
  7636. <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="Self.FK_CmPatrolHistoryPos_CmSite">
  7637. <End Role="CmSite" EntitySet="CmSite" />
  7638. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7639. </AssociationSet>
  7640. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="Self.FK_CmPatrolPlan_CmPatrolCourse">
  7641. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7642. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7643. </AssociationSet>
  7644. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="Self.FK_CmPatrolPlan_CmPatrolGroup">
  7645. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7646. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7647. </AssociationSet>
  7648. <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="Self.FK_CmPatrolPlan_CmSite">
  7649. <End Role="CmSite" EntitySet="CmSite" />
  7650. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7651. </AssociationSet>
  7652. <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="Self.FK_CmPatrolPos_CmBuilding">
  7653. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7654. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7655. </AssociationSet>
  7656. <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="Self.FK_CmPatrolPos_CmFloor">
  7657. <End Role="CmFloor" EntitySet="CmFloor" />
  7658. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7659. </AssociationSet>
  7660. <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="Self.FK_CmPatrolPos_CmSite">
  7661. <End Role="CmSite" EntitySet="CmSite" />
  7662. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7663. </AssociationSet>
  7664. <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="Self.FK_CmPatrolSchedule_CmPatrolPlan">
  7665. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7666. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7667. </AssociationSet>
  7668. <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="Self.FK_CmPatrolSchedule_CmSite">
  7669. <End Role="CmSite" EntitySet="CmSite" />
  7670. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7671. </AssociationSet>
  7672. <AssociationSet Name="FK_CmPatrolType_CmSite" Association="Self.FK_CmPatrolType_CmSite">
  7673. <End Role="CmSite" EntitySet="CmSite" />
  7674. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7675. </AssociationSet>
  7676. <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
  7677. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7678. <End Role="CmUser" EntitySet="CmUser" />
  7679. </AssociationSet>
  7680. <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
  7681. <End Role="CmCompany" EntitySet="CmCompany" />
  7682. <End Role="CmUser" EntitySet="CmUser" />
  7683. </AssociationSet>
  7684. <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
  7685. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7686. <End Role="CmUser" EntitySet="CmUser" />
  7687. </AssociationSet>
  7688. <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
  7689. <End Role="CmPosition" EntitySet="CmPosition" />
  7690. <End Role="CmUser" EntitySet="CmUser" />
  7691. </AssociationSet>
  7692. <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
  7693. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7694. <End Role="CmUser" EntitySet="CmUser" />
  7695. </AssociationSet>
  7696. <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
  7697. <End Role="CmUser" EntitySet="CmUser" />
  7698. <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
  7699. </AssociationSet>
  7700. <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
  7701. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7702. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7703. </AssociationSet>
  7704. <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
  7705. <End Role="CmFloor" EntitySet="CmFloor" />
  7706. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7707. </AssociationSet>
  7708. <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="Self.FK_CmZoneTempHumiSet_CmSite">
  7709. <End Role="CmSite" EntitySet="CmSite" />
  7710. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7711. </AssociationSet>
  7712. <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
  7713. <End Role="CmZone" EntitySet="CmZone" />
  7714. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7715. </AssociationSet>
  7716. <AssociationSet Name="FK_FmsAccident_CmCompany" Association="Self.FK_FmsAccident_CmCompany">
  7717. <End Role="CmCompany" EntitySet="CmCompany" />
  7718. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7719. </AssociationSet>
  7720. <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
  7721. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7722. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7723. </AssociationSet>
  7724. <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
  7725. <End Role="CmFile" EntitySet="CmFile" />
  7726. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7727. </AssociationSet>
  7728. <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
  7729. <End Role="CmFile" EntitySet="CmFile" />
  7730. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7731. </AssociationSet>
  7732. <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
  7733. <End Role="CmFile" EntitySet="CmFile" />
  7734. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7735. </AssociationSet>
  7736. <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
  7737. <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
  7738. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7739. </AssociationSet>
  7740. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="Self.FK_FmsBudgetDetail_FmsBudget">
  7741. <End Role="FmsBudget" EntitySet="FmsBudget" />
  7742. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7743. </AssociationSet>
  7744. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="Self.FK_FmsBudgetDetail_FmsBudgetCodeClass">
  7745. <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
  7746. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7747. </AssociationSet>
  7748. <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="Self.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  7749. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7750. <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
  7751. </AssociationSet>
  7752. <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
  7753. <End Role="CmFile" EntitySet="CmFile" />
  7754. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7755. </AssociationSet>
  7756. <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
  7757. <End Role="CmFile" EntitySet="CmFile" />
  7758. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7759. </AssociationSet>
  7760. <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
  7761. <End Role="CmFile" EntitySet="CmFile" />
  7762. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7763. </AssociationSet>
  7764. <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="Self.FK_FmsConstruction_CmPartner">
  7765. <End Role="CmPartner" EntitySet="CmPartner" />
  7766. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7767. </AssociationSet>
  7768. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
  7769. <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
  7770. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7771. </AssociationSet>
  7772. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
  7773. <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
  7774. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7775. </AssociationSet>
  7776. <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
  7777. <End Role="CmUser" EntitySet="CmUser" />
  7778. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  7779. </AssociationSet>
  7780. <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
  7781. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7782. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  7783. </AssociationSet>
  7784. <AssociationSet Name="FK_FmsContract_CmPartner" Association="Self.FK_FmsContract_CmPartner">
  7785. <End Role="CmPartner" EntitySet="CmPartner" />
  7786. <End Role="FmsContract" EntitySet="FmsContract" />
  7787. </AssociationSet>
  7788. <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="Self.FK_FmsContract_CmPartnerType">
  7789. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  7790. <End Role="FmsContract" EntitySet="FmsContract" />
  7791. </AssociationSet>
  7792. <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="Self.FK_FmsContract_FmsContractClass">
  7793. <End Role="FmsContractClass" EntitySet="FmsContractClass" />
  7794. <End Role="FmsContract" EntitySet="FmsContract" />
  7795. </AssociationSet>
  7796. <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="Self.FK_FmsContract_FmsContractMethod">
  7797. <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
  7798. <End Role="FmsContract" EntitySet="FmsContract" />
  7799. </AssociationSet>
  7800. <AssociationSet Name="FK_FmsContract_FmsContractType" Association="Self.FK_FmsContract_FmsContractType">
  7801. <End Role="FmsContractType" EntitySet="FmsContractType" />
  7802. <End Role="FmsContract" EntitySet="FmsContract" />
  7803. </AssociationSet>
  7804. <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="Self.FK_FmsContract_FmsPaymentType">
  7805. <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
  7806. <End Role="FmsContract" EntitySet="FmsContract" />
  7807. </AssociationSet>
  7808. <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="Self.FK_FmsDailyCheckReport_CmUser">
  7809. <End Role="CmUser" EntitySet="CmUser" />
  7810. <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
  7811. </AssociationSet>
  7812. <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="Self.FK_FmsDailyReport_CmBusinessField">
  7813. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7814. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  7815. </AssociationSet>
  7816. <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="Self.FK_FmsDailyReport_CmUser">
  7817. <End Role="CmUser" EntitySet="CmUser" />
  7818. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  7819. </AssociationSet>
  7820. <AssociationSet Name="FK_FmsEquipment_CmUser" Association="Self.FK_FmsEquipment_CmUser">
  7821. <End Role="CmUser" EntitySet="CmUser" />
  7822. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7823. </AssociationSet>
  7824. <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="Self.FK_FmsEquipment_FmsEquipmentCodeType">
  7825. <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
  7826. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7827. </AssociationSet>
  7828. <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="Self.FK_FmsEquipment_FmsMaterialWarehouse">
  7829. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7830. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7831. </AssociationSet>
  7832. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="Self.FK_FmsEquipmentHistory_FmsEquipment">
  7833. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7834. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7835. </AssociationSet>
  7836. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  7837. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  7838. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7839. </AssociationSet>
  7840. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  7841. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7842. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7843. </AssociationSet>
  7844. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="Self.FK_FmsEquipmentRentInfo_CmUser">
  7845. <End Role="CmUser" EntitySet="CmUser" />
  7846. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7847. </AssociationSet>
  7848. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="Self.FK_FmsEquipmentRentInfo_CmUser1">
  7849. <End Role="CmUser" EntitySet="CmUser" />
  7850. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7851. </AssociationSet>
  7852. <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  7853. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  7854. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7855. </AssociationSet>
  7856. <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="Self.FK_FmsFacilityOperationReport_CmUser">
  7857. <End Role="CmUser" EntitySet="CmUser" />
  7858. <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
  7859. </AssociationSet>
  7860. <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
  7861. <End Role="FmsManualType" EntitySet="FmsManualType" />
  7862. <End Role="FmsManual" EntitySet="FmsManual" />
  7863. </AssociationSet>
  7864. <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
  7865. <End Role="CmFile" EntitySet="CmFile" />
  7866. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7867. </AssociationSet>
  7868. <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
  7869. <End Role="CmUser" EntitySet="CmUser" />
  7870. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7871. </AssociationSet>
  7872. <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
  7873. <End Role="FmsManual" EntitySet="FmsManual" />
  7874. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7875. </AssociationSet>
  7876. <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="Self.FK_FmsMaterial_CmBusinessField">
  7877. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7878. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7879. </AssociationSet>
  7880. <AssociationSet Name="FK_FmsMaterial_CmFile" Association="Self.FK_FmsMaterial_CmFile">
  7881. <End Role="CmFile" EntitySet="CmFile" />
  7882. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7883. </AssociationSet>
  7884. <AssociationSet Name="FK_FmsMaterial_CmSite" Association="Self.FK_FmsMaterial_CmSite">
  7885. <End Role="CmSite" EntitySet="CmSite" />
  7886. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7887. </AssociationSet>
  7888. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="Self.FK_FmsMaterial_FmsMaterialCodeLocation">
  7889. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7890. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7891. </AssociationSet>
  7892. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="Self.FK_FmsMaterial_FmsMaterialCodeType">
  7893. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  7894. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7895. </AssociationSet>
  7896. <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="Self.FK_FmsMaterial_FmsMaterialTradeCompany">
  7897. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7898. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7899. </AssociationSet>
  7900. <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="Self.FK_FmsMaterial_FmsMaterialWarehouse">
  7901. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7902. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7903. </AssociationSet>
  7904. <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  7905. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7906. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7907. </AssociationSet>
  7908. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  7909. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7910. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  7911. </AssociationSet>
  7912. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  7913. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7914. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  7915. </AssociationSet>
  7916. <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  7917. <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
  7918. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7919. </AssociationSet>
  7920. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  7921. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7922. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  7923. </AssociationSet>
  7924. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  7925. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7926. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  7927. </AssociationSet>
  7928. <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="Self.FK_FmsMaterialRelease_CmBusinessField">
  7929. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7930. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7931. </AssociationSet>
  7932. <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="Self.FK_FmsMaterialRelease_CmSite">
  7933. <End Role="CmSite" EntitySet="CmSite" />
  7934. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7935. </AssociationSet>
  7936. <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="Self.FK_FmsMaterialRelease_CmUser">
  7937. <End Role="CmUser" EntitySet="CmUser" />
  7938. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7939. </AssociationSet>
  7940. <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="Self.FK_FmsMaterialRelease_CmUser1">
  7941. <End Role="CmUser" EntitySet="CmUser" />
  7942. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7943. </AssociationSet>
  7944. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="Self.FK_FmsMaterialRelease_FmsMaterial">
  7945. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7946. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7947. </AssociationSet>
  7948. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  7949. <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
  7950. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7951. </AssociationSet>
  7952. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  7953. <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
  7954. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7955. </AssociationSet>
  7956. <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="Self.FK_FmsMaterialRelease_FmsWorkResult">
  7957. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7958. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7959. </AssociationSet>
  7960. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="Self.FK_FmsMaterialStored_FmsMaterial">
  7961. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7962. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7963. </AssociationSet>
  7964. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  7965. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7966. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7967. </AssociationSet>
  7968. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
  7969. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7970. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7971. </AssociationSet>
  7972. <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="Self.FK_FmsMonthlyReport_CmUser">
  7973. <End Role="CmUser" EntitySet="CmUser" />
  7974. <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
  7975. </AssociationSet>
  7976. <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="Self.FK_FmsReport_CmBusinessField">
  7977. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7978. <End Role="FmsReport" EntitySet="FmsReport" />
  7979. </AssociationSet>
  7980. <AssociationSet Name="FK_FmsReport_CmFile" Association="Self.FK_FmsReport_CmFile">
  7981. <End Role="CmFile" EntitySet="CmFile" />
  7982. <End Role="FmsReport" EntitySet="FmsReport" />
  7983. </AssociationSet>
  7984. <AssociationSet Name="FK_FmsReport_CmSite" Association="Self.FK_FmsReport_CmSite">
  7985. <End Role="CmSite" EntitySet="CmSite" />
  7986. <End Role="FmsReport" EntitySet="FmsReport" />
  7987. </AssociationSet>
  7988. <AssociationSet Name="FK_FmsReport_CmUser" Association="Self.FK_FmsReport_CmUser">
  7989. <End Role="CmUser" EntitySet="CmUser" />
  7990. <End Role="FmsReport" EntitySet="FmsReport" />
  7991. </AssociationSet>
  7992. <AssociationSet Name="FK_FmsReport_CmUser1" Association="Self.FK_FmsReport_CmUser1">
  7993. <End Role="CmUser" EntitySet="CmUser" />
  7994. <End Role="FmsReport" EntitySet="FmsReport" />
  7995. </AssociationSet>
  7996. <AssociationSet Name="FK_FmsReport_CmUser2" Association="Self.FK_FmsReport_CmUser2">
  7997. <End Role="CmUser" EntitySet="CmUser" />
  7998. <End Role="FmsReport" EntitySet="FmsReport" />
  7999. </AssociationSet>
  8000. <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="Self.FK_FmsWorkOrderToFacility_CmFacility">
  8001. <End Role="CmFacility" EntitySet="CmFacility" />
  8002. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  8003. </AssociationSet>
  8004. <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="Self.FK_FmsWorkRequest_CmPartner">
  8005. <End Role="CmPartner" EntitySet="CmPartner" />
  8006. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  8007. </AssociationSet>
  8008. <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="Self.FK_FmsWorkRequestToFacility_CmFacility">
  8009. <End Role="CmFacility" EntitySet="CmFacility" />
  8010. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  8011. </AssociationSet>
  8012. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  8013. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  8014. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  8015. </AssociationSet>
  8016. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  8017. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  8018. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  8019. </AssociationSet>
  8020. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  8021. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  8022. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  8023. </AssociationSet>
  8024. <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="Self.FK_FmsWorkSchedule_CmPartner">
  8025. <End Role="CmPartner" EntitySet="CmPartner" />
  8026. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  8027. </AssociationSet>
  8028. <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="Self.FK_FmsWorkScheduleToFacility_CmFacility">
  8029. <End Role="CmFacility" EntitySet="CmFacility" />
  8030. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  8031. </AssociationSet>
  8032. </EntityContainer>
  8033. </Schema></edmx:StorageModels>
  8034. <!-- CSDL content -->
  8035. <edmx:ConceptualModels>
  8036. <Schema Namespace="iBemsModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
  8037. <EntityType Name="BemsAnalysisType">
  8038. <Key>
  8039. <PropertyRef Name="SiteId" />
  8040. <PropertyRef Name="AnalysisType" />
  8041. </Key>
  8042. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8043. <Property Name="AnalysisType" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8044. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  8045. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsAnalysisType" ToRole="BemsMonitoringPointToAnlaysisType" />
  8046. </EntityType>
  8047. <EntityType Name="BemsControlPointHistory">
  8048. <Key>
  8049. <PropertyRef Name="SiteId" />
  8050. <PropertyRef Name="FacilityCode" />
  8051. <PropertyRef Name="PropertyId" />
  8052. <PropertyRef Name="CreateDateTime" />
  8053. </Key>
  8054. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8055. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8056. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8057. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8058. <Property Name="CreateDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8059. <Property Name="ControlValue" Type="Double" Nullable="false" />
  8060. <Property Name="WriteServiceName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8061. <Property Name="ActionDateTime" Type="DateTime" Precision="3" />
  8062. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsControlPointHistory" ToRole="BemsFacilityType" />
  8063. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsControlPointHistory" ToRole="BemsMonitoringPoint" />
  8064. </EntityType>
  8065. <EntityType Name="BemsFacilityType">
  8066. <Key>
  8067. <PropertyRef Name="FacilityTypeId" />
  8068. </Key>
  8069. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8070. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  8071. <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsControlPointHistory" />
  8072. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointBaseData" />
  8073. <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15min" />
  8074. <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryDaily" />
  8075. <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryHourly" />
  8076. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointToAnlaysisType" />
  8077. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPoint" />
  8078. <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsChartInfo" />
  8079. <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointConfig" />
  8080. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsAlarmSetting" />
  8081. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="BemsFacilityType" ToRole="CmFacility" />
  8082. <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15minRawData" />
  8083. </EntityType>
  8084. <EntityType Name="BemsFactorCo2">
  8085. <Key>
  8086. <PropertyRef Name="FuelTypeId" />
  8087. </Key>
  8088. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  8089. <Property Name="Factor" Type="Double" Nullable="false" />
  8090. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFactorCo2" ToRole="BemsFuelType" />
  8091. </EntityType>
  8092. <EntityType Name="BemsFactorToe">
  8093. <Key>
  8094. <PropertyRef Name="FuelTypeId" />
  8095. </Key>
  8096. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  8097. <Property Name="TotalFactor" Type="Double" Nullable="false" />
  8098. <Property Name="PureFactor" Type="Double" Nullable="false" />
  8099. <Property Name="kcal" Type="Double" />
  8100. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFactorToe" ToRole="BemsFuelType" />
  8101. </EntityType>
  8102. <EntityType Name="BemsFormula">
  8103. <Key>
  8104. <PropertyRef Name="SiteId" />
  8105. <PropertyRef Name="FacilityTypeId" />
  8106. <PropertyRef Name="FacilityCode" />
  8107. <PropertyRef Name="FormulaId" />
  8108. </Key>
  8109. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8110. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8111. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8112. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  8113. <Property Name="Formula" Type="String" MaxLength="120" FixedLength="false" Unicode="true" Nullable="false" />
  8114. <NavigationProperty Name="BemsFormulaBase" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormula" ToRole="BemsFormulaBase" />
  8115. <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormula" ToRole="BemsFormulaParameter" />
  8116. <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsFormula" ToRole="BemsPriceFormula" />
  8117. </EntityType>
  8118. <EntityType Name="BemsFormulaBase">
  8119. <Key>
  8120. <PropertyRef Name="FacilityTypeId" />
  8121. <PropertyRef Name="FormulaId" />
  8122. </Key>
  8123. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8124. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  8125. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8126. <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormulaBase" ToRole="BemsFormula" />
  8127. </EntityType>
  8128. <EntityType Name="BemsFormulaParameter">
  8129. <Key>
  8130. <PropertyRef Name="SiteId" />
  8131. <PropertyRef Name="FacilityCode" />
  8132. <PropertyRef Name="FormulaId" />
  8133. <PropertyRef Name="ParameterId" />
  8134. </Key>
  8135. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8136. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8137. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8138. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  8139. <Property Name="ParameterId" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
  8140. <Property Name="ParameterFacilityCode" Type="Int32" Nullable="false" />
  8141. <Property Name="ParameterPropertyId" Type="Int32" Nullable="false" />
  8142. <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormulaParameter" ToRole="BemsFormula" />
  8143. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsFormulaParameter" ToRole="BemsMonitoringPoint" />
  8144. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="BemsFormulaParameter" ToRole="CmFacility" />
  8145. </EntityType>
  8146. <EntityType Name="BemsFormulaTable">
  8147. <Key>
  8148. <PropertyRef Name="TableId" />
  8149. </Key>
  8150. <Property Name="TableId" Type="Int32" Nullable="false" />
  8151. <Property Name="FunctionName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8152. <Property Name="Description" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
  8153. <NavigationProperty Name="BemsFormulaTableValue" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTable" ToRole="BemsFormulaTableValue" />
  8154. </EntityType>
  8155. <EntityType Name="BemsFormulaTableValue">
  8156. <Key>
  8157. <PropertyRef Name="TableId" />
  8158. <PropertyRef Name="XValue" />
  8159. </Key>
  8160. <Property Name="TableId" Type="Int32" Nullable="false" />
  8161. <Property Name="XValue" Type="Double" Nullable="false" />
  8162. <Property Name="YValue" Type="Double" Nullable="false" />
  8163. <NavigationProperty Name="BemsFormulaTable" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTableValue" ToRole="BemsFormulaTable" />
  8164. </EntityType>
  8165. <EntityType Name="BemsMonitoringPoint">
  8166. <Key>
  8167. <PropertyRef Name="SiteId" />
  8168. <PropertyRef Name="FacilityCode" />
  8169. <PropertyRef Name="PropertyId" />
  8170. </Key>
  8171. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8172. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8173. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8174. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8175. <Property Name="ValueType" Type="Int32" Nullable="false" />
  8176. <Property Name="ServiceTypeId" Type="Int16" />
  8177. <Property Name="FuelTypeId" Type="Int16" />
  8178. <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8179. <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  8180. <Property Name="BuildingId" Type="Int32" />
  8181. <Property Name="FloorId" Type="Int32" />
  8182. <Property Name="ZoneId" Type="Int32" />
  8183. <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsControlPointHistory" />
  8184. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsMonitoringPoint" ToRole="BemsFacilityType" />
  8185. <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsFormulaParameter" />
  8186. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointToAnlaysisType" />
  8187. <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsMonitoringPoint" ToRole="BemsServiceType" />
  8188. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="BemsMonitoringPoint" ToRole="CmBuilding" />
  8189. <NavigationProperty Name="CmFloor" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="BemsMonitoringPoint" ToRole="CmFloor" />
  8190. <NavigationProperty Name="CmZone" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="BemsMonitoringPoint" ToRole="CmZone" />
  8191. <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15min" />
  8192. <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryDaily" />
  8193. <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryHourly" />
  8194. <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointConfig" />
  8195. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsMonitoringPoint" ToRole="BemsFuelType" />
  8196. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="BemsMonitoringPoint" ToRole="CmFacility" />
  8197. <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15minRawData" />
  8198. </EntityType>
  8199. <EntityType Name="BemsMonitoringPointBaseData">
  8200. <Key>
  8201. <PropertyRef Name="FacilityTypeId" />
  8202. <PropertyRef Name="PropertyId" />
  8203. </Key>
  8204. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8205. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8206. <Property Name="ValueType" Type="Int32" Nullable="false" />
  8207. <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
  8208. <Property Name="ServiceTypeId" Type="Int16" />
  8209. <Property Name="FuelTypeId" Type="Int16" />
  8210. <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8211. <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  8212. <Property Name="IsSampled" Type="Boolean" />
  8213. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFacilityType" />
  8214. <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsServiceType" />
  8215. <Property Name="IsConverted" Type="Boolean" />
  8216. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFuelType" />
  8217. </EntityType>
  8218. <EntityType Name="BemsMonitoringPointHistory15min">
  8219. <Key>
  8220. <PropertyRef Name="SiteId" />
  8221. <PropertyRef Name="FacilityCode" />
  8222. <PropertyRef Name="PropertyId" />
  8223. <PropertyRef Name="CreatedDateTime" />
  8224. </Key>
  8225. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8226. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8227. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8228. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8229. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8230. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  8231. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsFacilityType" />
  8232. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsMonitoringPoint" />
  8233. </EntityType>
  8234. <EntityType Name="BemsMonitoringPointHistoryDaily">
  8235. <Key>
  8236. <PropertyRef Name="SiteId" />
  8237. <PropertyRef Name="FacilityCode" />
  8238. <PropertyRef Name="PropertyId" />
  8239. <PropertyRef Name="CreatedDateTime" />
  8240. </Key>
  8241. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8242. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8243. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8244. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8245. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8246. <Property Name="DailyValue" Type="Double" Nullable="false" />
  8247. <Property Name="MaxValue" Type="Double" />
  8248. <Property Name="MinValue" Type="Double" />
  8249. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsFacilityType" />
  8250. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsMonitoringPoint" />
  8251. </EntityType>
  8252. <EntityType Name="BemsMonitoringPointHistoryHourly">
  8253. <Key>
  8254. <PropertyRef Name="SiteId" />
  8255. <PropertyRef Name="FacilityCode" />
  8256. <PropertyRef Name="PropertyId" />
  8257. <PropertyRef Name="CreatedDateTime" />
  8258. </Key>
  8259. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8260. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8261. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8262. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8263. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8264. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  8265. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsFacilityType" />
  8266. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsMonitoringPoint" />
  8267. </EntityType>
  8268. <EntityType Name="BemsMonitoringPointToAnlaysisType">
  8269. <Key>
  8270. <PropertyRef Name="SiteId" />
  8271. <PropertyRef Name="FacilityTypeId" />
  8272. <PropertyRef Name="FacilityCode" />
  8273. <PropertyRef Name="PropertyId" />
  8274. <PropertyRef Name="AnalysisType" />
  8275. </Key>
  8276. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8277. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8278. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8279. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8280. <Property Name="AnalysisType" Type="Int32" Nullable="false" />
  8281. <NavigationProperty Name="BemsAnalysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsAnalysisType" />
  8282. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsFacilityType" />
  8283. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsMonitoringPoint" />
  8284. </EntityType>
  8285. <EntityType Name="BemsServiceType">
  8286. <Key>
  8287. <PropertyRef Name="ServiceTypeId" />
  8288. </Key>
  8289. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  8290. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  8291. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPoint" />
  8292. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPointBaseData" />
  8293. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsEnergyDaily" />
  8294. </EntityType>
  8295. <EntityType Name="CmAnnouncement">
  8296. <Key>
  8297. <PropertyRef Name="SiteId" />
  8298. <PropertyRef Name="AnnouncementId" />
  8299. </Key>
  8300. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8301. <Property Name="AnnouncementId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8302. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  8303. <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  8304. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" Nullable="false" />
  8305. <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8306. <Property Name="FileId" Type="Int32" />
  8307. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  8308. <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
  8309. <Property Name="IsUse" Type="Boolean" />
  8310. <Property Name="ReadCount" Type="Int32" Nullable="false" />
  8311. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmAnnouncement" ToRole="CmBusinessField" />
  8312. <NavigationProperty Name="CmFile" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmAnnouncement" ToRole="CmFile" />
  8313. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmAnnouncement" ToRole="CmUser" />
  8314. </EntityType>
  8315. <EntityType Name="CmBuilding">
  8316. <Key>
  8317. <PropertyRef Name="SiteId" />
  8318. <PropertyRef Name="BuildingId" />
  8319. </Key>
  8320. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8321. <Property Name="BuildingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8322. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8323. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="CmBuilding" ToRole="BemsMonitoringPoint" />
  8324. <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmBuilding" ToRole="CmFloor" />
  8325. <NavigationProperty Name="CmZone" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmBuilding" ToRole="CmZone" />
  8326. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmBuilding" ToRole="CmZoneTempHumiSet" />
  8327. <Property Name="FileId" Type="Int32" />
  8328. <Property Name="IsUse" Type="Boolean" />
  8329. <Property Name="SortOrderNo" Type="Int32" />
  8330. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmBuilding" ToRole="CmPatrolPos" />
  8331. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmBuilding" ToRole="CmSite" />
  8332. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="CmBuilding" ToRole="BemsEnergyDaily" />
  8333. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmBuilding" ToRole="CmFacility" />
  8334. </EntityType>
  8335. <EntityType Name="CmBusinessField">
  8336. <Key>
  8337. <PropertyRef Name="SiteId" />
  8338. <PropertyRef Name="BusinessFieldId" />
  8339. </Key>
  8340. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8341. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8342. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8343. <Property Name="IsUse" Type="Boolean" />
  8344. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmBusinessField" ToRole="CmAnnouncement" />
  8345. <NavigationProperty Name="FmsFacilityManual" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="CmBusinessField" ToRole="FmsFacilityManual" />
  8346. <NavigationProperty Name="FmsLicense" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsLicense" />
  8347. <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCarriedForward" />
  8348. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCodeLocation" />
  8349. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseOrder" />
  8350. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseRequest" />
  8351. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialStored" />
  8352. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialWarehouse" />
  8353. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkOrder" />
  8354. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkRequest" />
  8355. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkSchedule" />
  8356. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmBusinessField" ToRole="CmUser" />
  8357. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterial" />
  8358. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialRelease" />
  8359. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsReport" />
  8360. <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsDailyReport" />
  8361. </EntityType>
  8362. <EntityType Name="CmCompany">
  8363. <Key>
  8364. <PropertyRef Name="SiteId" />
  8365. <PropertyRef Name="CompanyId" />
  8366. </Key>
  8367. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8368. <Property Name="CompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8369. <Property Name="CompanyTypeId" Type="Int32" Nullable="false" />
  8370. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8371. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8372. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8373. <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8374. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8375. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8376. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  8377. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  8378. <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8379. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8380. <Property Name="Homepage" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8381. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8382. <Property Name="IsUse" Type="Boolean" />
  8383. <NavigationProperty Name="CmCompanyType" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompany" ToRole="CmCompanyType" />
  8384. <NavigationProperty Name="CmDepartment" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmCompany" ToRole="CmDepartment" />
  8385. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmCompany" ToRole="CmUser" />
  8386. <NavigationProperty Name="FmsAccident" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="CmCompany" ToRole="FmsAccident" />
  8387. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmCompany" ToRole="CmSite" />
  8388. </EntityType>
  8389. <EntityType Name="CmCompanyType">
  8390. <Key>
  8391. <PropertyRef Name="SiteId" />
  8392. <PropertyRef Name="CompanyTypeId" />
  8393. </Key>
  8394. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8395. <Property Name="CompanyTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8396. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8397. <Property Name="IsUse" Type="Boolean" />
  8398. <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompanyType" ToRole="CmCompany" />
  8399. </EntityType>
  8400. <EntityType Name="CmDepartment">
  8401. <Key>
  8402. <PropertyRef Name="SiteId" />
  8403. <PropertyRef Name="CompanyId" />
  8404. <PropertyRef Name="DepartmentId" />
  8405. </Key>
  8406. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8407. <Property Name="CompanyId" Type="Int32" Nullable="false" />
  8408. <Property Name="DepartmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8409. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8410. <Property Name="ShortName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8411. <Property Name="FaxNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8412. <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8413. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8414. <Property Name="IsUse" Type="Boolean" />
  8415. <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmDepartment" ToRole="CmCompany" />
  8416. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmDepartment" ToRole="CmUser" />
  8417. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="CmDepartment" ToRole="FmsAccident" />
  8418. </EntityType>
  8419. <EntityType Name="CmFacilityFile">
  8420. <Key>
  8421. <PropertyRef Name="SiteId" />
  8422. <PropertyRef Name="FileId" />
  8423. </Key>
  8424. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8425. <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8426. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8427. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  8428. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8429. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  8430. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8431. <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFacilityFile" ToRole="CmFile" />
  8432. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacilityFile" ToRole="CmFacility" />
  8433. </EntityType>
  8434. <EntityType Name="CmFacilityTempSet">
  8435. <Key>
  8436. <PropertyRef Name="SiteId" />
  8437. <PropertyRef Name="FacilityCode" />
  8438. </Key>
  8439. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8440. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8441. <Property Name="T1" Type="Double" Nullable="false" />
  8442. <Property Name="T2" Type="Double" Nullable="false" />
  8443. <Property Name="T3" Type="Double" Nullable="false" />
  8444. <Property Name="T4" Type="Double" Nullable="false" />
  8445. <Property Name="T5" Type="Double" Nullable="false" />
  8446. <Property Name="T6" Type="Double" Nullable="false" />
  8447. <Property Name="T7" Type="Double" Nullable="false" />
  8448. <Property Name="T8" Type="Double" Nullable="false" />
  8449. <Property Name="T9" Type="Double" Nullable="false" />
  8450. <Property Name="T10" Type="Double" Nullable="false" />
  8451. <Property Name="T11" Type="Double" Nullable="false" />
  8452. <Property Name="T12" Type="Double" Nullable="false" />
  8453. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmFacilityTempSet" ToRole="CmSite" />
  8454. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacilityTempSet" ToRole="CmFacility" />
  8455. </EntityType>
  8456. <EntityType Name="CmFile" m:HasStream="true" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
  8457. <Key>
  8458. <PropertyRef Name="SiteId" />
  8459. <PropertyRef Name="FileId" />
  8460. </Key>
  8461. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8462. <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8463. <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
  8464. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  8465. <Property Name="FileSize" Type="Int32" />
  8466. <Property Name="CreatedDate" Type="DateTime" Precision="3" />
  8467. <Property Name="ContentType" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  8468. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmFile" ToRole="CmAnnouncement" />
  8469. <NavigationProperty Name="CmFacilityFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFile" ToRole="CmFacilityFile" />
  8470. <NavigationProperty Name="CmFileCategory" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFile" ToRole="CmFileCategory" />
  8471. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="CmFile" ToRole="FmsDrawingHistory" />
  8472. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="CmFile" ToRole="FmsMaterialPurchaseOrder" />
  8473. <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="CmFile" ToRole="FmsWorkResultFile" />
  8474. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="CmFile" ToRole="FmsAccident" />
  8475. <NavigationProperty Name="FmsAccident1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="CmFile" ToRole="FmsAccident" />
  8476. <NavigationProperty Name="FmsAccident2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="CmFile" ToRole="FmsAccident" />
  8477. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="CmFile" ToRole="FmsConstruction" />
  8478. <NavigationProperty Name="FmsConstruction1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="CmFile" ToRole="FmsConstruction" />
  8479. <NavigationProperty Name="FmsConstruction2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="CmFile" ToRole="FmsConstruction" />
  8480. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="CmFile" ToRole="FmsManualHistory" />
  8481. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="CmFile" ToRole="FmsMaterial" />
  8482. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmFile" ToRole="CmSite" />
  8483. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="CmFile" ToRole="FmsReport" />
  8484. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
  8485. <NavigationProperty Name="FmsWorkResultCheckItem1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
  8486. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFile" ToRole="CmFacility" />
  8487. </EntityType>
  8488. <EntityType Name="CmFileCategory">
  8489. <Key>
  8490. <PropertyRef Name="FileCategoryId" />
  8491. </Key>
  8492. <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
  8493. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8494. <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFileCategory" ToRole="CmFile" />
  8495. </EntityType>
  8496. <EntityType Name="CmFloor">
  8497. <Key>
  8498. <PropertyRef Name="SiteId" />
  8499. <PropertyRef Name="BuildingId" />
  8500. <PropertyRef Name="FloorId" />
  8501. </Key>
  8502. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8503. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  8504. <Property Name="FloorId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8505. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8506. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="CmFloor" ToRole="BemsMonitoringPoint" />
  8507. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmFloor" ToRole="CmBuilding" />
  8508. <NavigationProperty Name="CmZone" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmFloor" ToRole="CmZone" />
  8509. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmFloor" ToRole="CmZoneTempHumiSet" />
  8510. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmFloor" ToRole="CmPatrolPos" />
  8511. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFloor" ToRole="CmFacility" />
  8512. </EntityType>
  8513. <EntityType Name="CmHoliday">
  8514. <Key>
  8515. <PropertyRef Name="SiteId" />
  8516. <PropertyRef Name="HolidayMonth" />
  8517. <PropertyRef Name="HolidayDay" />
  8518. <PropertyRef Name="IsLunar" />
  8519. </Key>
  8520. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8521. <Property Name="HolidayMonth" Type="Int16" Nullable="false" />
  8522. <Property Name="HolidayDay" Type="Int16" Nullable="false" />
  8523. <Property Name="IsLunar" Type="Boolean" Nullable="false" />
  8524. <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
  8525. <Property Name="IsUse" Type="Boolean" />
  8526. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmHoliday" ToRole="CmSite" />
  8527. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmHoliday" ToRole="CmSite" />
  8528. </EntityType>
  8529. <EntityType Name="CmHolidayCustom">
  8530. <Key>
  8531. <PropertyRef Name="SiteId" />
  8532. <PropertyRef Name="HolidayDate" />
  8533. </Key>
  8534. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8535. <Property Name="HolidayDate" Type="DateTime" Nullable="false" Precision="3" />
  8536. <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
  8537. <Property Name="IsUse" Type="Boolean" />
  8538. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmHolidayCustom" ToRole="CmSite" />
  8539. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmHolidayCustom" ToRole="CmSite" />
  8540. </EntityType>
  8541. <EntityType Name="CmPosition">
  8542. <Key>
  8543. <PropertyRef Name="SiteId" />
  8544. <PropertyRef Name="PositionId" />
  8545. </Key>
  8546. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8547. <Property Name="PositionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8548. <Property Name="Name" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
  8549. <Property Name="IsUse" Type="Boolean" />
  8550. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmPosition" ToRole="CmUser" />
  8551. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmPosition" ToRole="CmSite" />
  8552. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmPosition" ToRole="CmSite" />
  8553. </EntityType>
  8554. <EntityType Name="CmUser">
  8555. <Key>
  8556. <PropertyRef Name="SiteId" />
  8557. <PropertyRef Name="UserId" />
  8558. </Key>
  8559. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8560. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8561. <Property Name="CompanyId" Type="Int32" />
  8562. <Property Name="DepartmentId" Type="Int32" />
  8563. <Property Name="PositionId" Type="Int32" />
  8564. <Property Name="BusinessFieldId" Type="Int32" />
  8565. <Property Name="UserGroupId" Type="Int32" />
  8566. <Property Name="Name" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  8567. <Property Name="Passwd" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  8568. <Property Name="Birthday" Type="DateTime" Precision="3" />
  8569. <Property Name="Lunar" Type="Boolean" />
  8570. <Property Name="StateId" Type="Int32" />
  8571. <Property Name="EmploymentType" Type="Int32" />
  8572. <Property Name="EmploymentStatus" Type="Int32" />
  8573. <Property Name="OfficePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8574. <Property Name="HomePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8575. <Property Name="MobilePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8576. <Property Name="HomeZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
  8577. <Property Name="HomeZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
  8578. <Property Name="HomeAddress1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8579. <Property Name="HomeAdderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8580. <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8581. <Property Name="EnterDate" Type="DateTime" Precision="3" />
  8582. <Property Name="RetireDate" Type="DateTime" Precision="3" />
  8583. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8584. <Property Name="Rfcsn" Type="String" MaxLength="30" FixedLength="false" Unicode="true" />
  8585. <Property Name="PasswordUpdatedDate" Type="DateTime" Precision="3" />
  8586. <Property Name="FileId" Type="Int32" />
  8587. <Property Name="IsBems" Type="Boolean" />
  8588. <Property Name="IsUse" Type="Boolean" />
  8589. <Property Name="Certificated" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  8590. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmUser" ToRole="CmAnnouncement" />
  8591. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmUser" ToRole="CmBusinessField" />
  8592. <NavigationProperty Name="CmCompany" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmUser" ToRole="CmCompany" />
  8593. <NavigationProperty Name="CmDepartment" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmUser" ToRole="CmDepartment" />
  8594. <NavigationProperty Name="CmPosition" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmUser" ToRole="CmPosition" />
  8595. <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUser" ToRole="CmUserToLicense" />
  8596. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="CmUser" ToRole="FmsDrawingHistory" />
  8597. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="CmUser" ToRole="FmsMaterialPurchaseOrder" />
  8598. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
  8599. <NavigationProperty Name="FmsMaterialPurchaseRequest1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
  8600. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
  8601. <NavigationProperty Name="FmsMaterialStored1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
  8602. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="CmUser" ToRole="FmsWorkOrder" />
  8603. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
  8604. <NavigationProperty Name="FmsWorkRequest1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
  8605. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
  8606. <NavigationProperty Name="FmsWorkResult1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
  8607. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmUser" FromRole="CmUser" ToRole="FmsWorkSchedule" />
  8608. <NavigationProperty Name="CmUserGroup" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUser" ToRole="CmUserGroup" />
  8609. <NavigationProperty Name="CmUserLoginHistory" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUser" ToRole="CmUserLoginHistory" />
  8610. <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="CmUser" ToRole="FmsConstructionEstimation" />
  8611. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="CmUser" ToRole="FmsManualHistory" />
  8612. <NavigationProperty Name="FmsDailyCheckReport" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="CmUser" ToRole="FmsDailyCheckReport" />
  8613. <NavigationProperty Name="FmsFacilityOperationReport" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="CmUser" ToRole="FmsFacilityOperationReport" />
  8614. <Property Name="IsScheduleUser" Type="Boolean" />
  8615. <NavigationProperty Name="FmsMonthlyReport" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="CmUser" ToRole="FmsMonthlyReport" />
  8616. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="CmUser" ToRole="FmsMaterialRelease" />
  8617. <NavigationProperty Name="FmsMaterialRelease1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="CmUser" ToRole="FmsMaterialRelease" />
  8618. <Property Name="IsSI" Type="Boolean" Nullable="true" />
  8619. <Property Name="IsMobile" Type="Boolean" Nullable="true" />
  8620. <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmUser" ToRole="CmPatrolGroupUser" />
  8621. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="CmUser" ToRole="FmsReport" />
  8622. <NavigationProperty Name="FmsReport1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="CmUser" ToRole="FmsReport" />
  8623. <NavigationProperty Name="FmsReport2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="CmUser" ToRole="FmsReport" />
  8624. <Property Name="Devicetoken" Type="String" MaxLength="500" FixedLength="false" Unicode="true" />
  8625. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
  8626. <NavigationProperty Name="FmsEquipmentRentInfo1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
  8627. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmUser" ToRole="CmFacility" />
  8628. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmUser" ToRole="CmFacility" />
  8629. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmUser" ToRole="CmFacility" />
  8630. <NavigationProperty Name="CmFacility3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmUser" ToRole="CmFacility" />
  8631. <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="CmUser" ToRole="FmsDailyReport" />
  8632. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="CmUser" ToRole="FmsEquipment" />
  8633. </EntityType>
  8634. <EntityType Name="CmUserGroup">
  8635. <Key>
  8636. <PropertyRef Name="SiteId" />
  8637. <PropertyRef Name="UserGroupId" />
  8638. </Key>
  8639. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8640. <Property Name="UserGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8641. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8642. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUserGroup" ToRole="CmUser" />
  8643. <NavigationProperty Name="CmUserGroupPermission" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroup" ToRole="CmUserGroupPermission" />
  8644. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmUserGroup" ToRole="CmSite" />
  8645. </EntityType>
  8646. <EntityType Name="CmUserGroupPermission">
  8647. <Key>
  8648. <PropertyRef Name="SiteId" />
  8649. <PropertyRef Name="UserGroupId" />
  8650. <PropertyRef Name="MenuId" />
  8651. </Key>
  8652. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8653. <Property Name="UserGroupId" Type="Int32" Nullable="false" />
  8654. <Property Name="MenuId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8655. <Property Name="MenuPermission" Type="Int16" />
  8656. <NavigationProperty Name="CmUserGroup" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroupPermission" ToRole="CmUserGroup" />
  8657. </EntityType>
  8658. <EntityType Name="CmUserLoginHistory">
  8659. <Key>
  8660. <PropertyRef Name="LoginHistoryId" />
  8661. </Key>
  8662. <Property Name="LoginHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8663. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8664. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8665. <Property Name="Type" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
  8666. <Property Name="TraceTime" Type="DateTime" Nullable="false" Precision="3" />
  8667. <Property Name="IpAddress" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  8668. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUserLoginHistory" ToRole="CmUser" />
  8669. </EntityType>
  8670. <EntityType Name="CmUserToLicense">
  8671. <Key>
  8672. <PropertyRef Name="SiteId" />
  8673. <PropertyRef Name="UserId" />
  8674. <PropertyRef Name="LicenseId" />
  8675. </Key>
  8676. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8677. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8678. <Property Name="LicenseId" Type="Int32" Nullable="false" />
  8679. <NavigationProperty Name="CmUser" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUserToLicense" ToRole="CmUser" />
  8680. <NavigationProperty Name="FmsLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="CmUserToLicense" ToRole="FmsLicense" />
  8681. </EntityType>
  8682. <EntityType Name="CmZone">
  8683. <Key>
  8684. <PropertyRef Name="SiteId" />
  8685. <PropertyRef Name="BuildingId" />
  8686. <PropertyRef Name="FloorId" />
  8687. <PropertyRef Name="ZoneId" />
  8688. </Key>
  8689. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8690. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  8691. <Property Name="FloorId" Type="Int32" Nullable="false" />
  8692. <Property Name="ZoneId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8693. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8694. <Property Name="Target_temperature" Type="Double" />
  8695. <Property Name="Target_humidity" Type="Int16" />
  8696. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="CmZone" ToRole="BemsMonitoringPoint" />
  8697. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmZone" ToRole="CmBuilding" />
  8698. <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmZone" ToRole="CmFloor" />
  8699. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZone" ToRole="CmZoneTempHumiSet" />
  8700. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmZone" ToRole="CmFacility" />
  8701. </EntityType>
  8702. <EntityType Name="CmZoneTempHumiSet">
  8703. <Key>
  8704. <PropertyRef Name="SiteId" />
  8705. <PropertyRef Name="BuildingId" />
  8706. <PropertyRef Name="FloorId" />
  8707. <PropertyRef Name="ZoneId" />
  8708. </Key>
  8709. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8710. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  8711. <Property Name="FloorId" Type="Int32" Nullable="false" />
  8712. <Property Name="ZoneId" Type="Int32" Nullable="false" />
  8713. <Property Name="T1" Type="Double" Nullable="false" />
  8714. <Property Name="T2" Type="Double" Nullable="false" />
  8715. <Property Name="T3" Type="Double" Nullable="false" />
  8716. <Property Name="T4" Type="Double" Nullable="false" />
  8717. <Property Name="T5" Type="Double" Nullable="false" />
  8718. <Property Name="T6" Type="Double" Nullable="false" />
  8719. <Property Name="T7" Type="Double" Nullable="false" />
  8720. <Property Name="T8" Type="Double" Nullable="false" />
  8721. <Property Name="T9" Type="Double" Nullable="false" />
  8722. <Property Name="T10" Type="Double" Nullable="false" />
  8723. <Property Name="T11" Type="Double" Nullable="false" />
  8724. <Property Name="T12" Type="Double" Nullable="false" />
  8725. <Property Name="H1" Type="Int16" Nullable="false" />
  8726. <Property Name="H2" Type="Int16" Nullable="false" />
  8727. <Property Name="H3" Type="Int16" Nullable="false" />
  8728. <Property Name="H4" Type="Int16" Nullable="false" />
  8729. <Property Name="H5" Type="Int16" Nullable="false" />
  8730. <Property Name="H6" Type="Int16" Nullable="false" />
  8731. <Property Name="H7" Type="Int16" Nullable="false" />
  8732. <Property Name="H8" Type="Int16" Nullable="false" />
  8733. <Property Name="H9" Type="Int16" Nullable="false" />
  8734. <Property Name="H10" Type="Int16" Nullable="false" />
  8735. <Property Name="H11" Type="Int16" Nullable="false" />
  8736. <Property Name="H12" Type="Int16" Nullable="false" />
  8737. <NavigationProperty Name="CmBuilding" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmZoneTempHumiSet" ToRole="CmBuilding" />
  8738. <NavigationProperty Name="CmFloor" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmZoneTempHumiSet" ToRole="CmFloor" />
  8739. <NavigationProperty Name="CmZone" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZoneTempHumiSet" ToRole="CmZone" />
  8740. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmZoneTempHumiSet" ToRole="CmSite" />
  8741. </EntityType>
  8742. <EntityType Name="FmsAccident">
  8743. <Key>
  8744. <PropertyRef Name="SiteId" />
  8745. <PropertyRef Name="AccidentId" />
  8746. </Key>
  8747. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8748. <Property Name="AccidentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8749. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  8750. <Property Name="StartDate" Type="DateTime" Precision="3" />
  8751. <Property Name="EndDate" Type="DateTime" Precision="3" />
  8752. <Property Name="AccidentTypeId" Type="Int32" Nullable="false" />
  8753. <Property Name="DepartmentId" Type="Int32" />
  8754. <Property Name="AccidentLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  8755. <Property Name="Reason" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8756. <Property Name="Action" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8757. <Property Name="Damage" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8758. <Property Name="Measurement" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8759. <Property Name="FileId1" Type="Int32" />
  8760. <Property Name="FileId2" Type="Int32" />
  8761. <Property Name="FileId3" Type="Int32" />
  8762. <Property Name="CompanyId" Type="Int32" />
  8763. <NavigationProperty Name="CmDepartment" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="FmsAccident" ToRole="CmDepartment" />
  8764. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="FmsAccident" ToRole="CmFile" />
  8765. <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="FmsAccident" ToRole="CmFile" />
  8766. <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="FmsAccident" ToRole="CmFile" />
  8767. <NavigationProperty Name="FmsAccidentCodeType" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccident" ToRole="FmsAccidentCodeType" />
  8768. <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="FmsAccident" ToRole="CmCompany" />
  8769. </EntityType>
  8770. <EntityType Name="FmsAccidentCodeType">
  8771. <Key>
  8772. <PropertyRef Name="SiteId" />
  8773. <PropertyRef Name="AccidentTypeId" />
  8774. </Key>
  8775. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8776. <Property Name="AccidentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8777. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8778. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  8779. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccidentCodeType" ToRole="FmsAccident" />
  8780. </EntityType>
  8781. <EntityType Name="FmsBudget">
  8782. <Key>
  8783. <PropertyRef Name="SiteId" />
  8784. <PropertyRef Name="Year" />
  8785. </Key>
  8786. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8787. <Property Name="Year" Type="Int32" Nullable="false" />
  8788. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudget" ToRole="FmsBudgetDetail" />
  8789. </EntityType>
  8790. <EntityType Name="FmsBudgetCodeClass">
  8791. <Key>
  8792. <PropertyRef Name="SiteId" />
  8793. <PropertyRef Name="BudgetClassId" />
  8794. </Key>
  8795. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8796. <Property Name="BudgetClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8797. <Property Name="BudgetSeq" Type="String" MaxLength="6" FixedLength="false" Unicode="true" Nullable="false" />
  8798. <Property Name="ParentBudgetClassId" Type="Int32" />
  8799. <Property Name="Depth" Type="Int32" Nullable="false" />
  8800. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8801. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  8802. <Property Name="IsUse" Type="Boolean" />
  8803. <Property Name="YearlyBudget" Type="Double" />
  8804. <Property Name="MonthlyBudget" Type="Double" />
  8805. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetCodeClass" ToRole="FmsBudgetDetail" />
  8806. <Property Name="RootBudgetClassId" Type="Int32" />
  8807. </EntityType>
  8808. <EntityType Name="FmsCompanyEstimationCodeClass">
  8809. <Key>
  8810. <PropertyRef Name="SiteId" />
  8811. <PropertyRef Name="CompanyEstimationClassId" />
  8812. </Key>
  8813. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8814. <Property Name="CompanyEstimationClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8815. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8816. <Property Name="IsUse" Type="Boolean" />
  8817. </EntityType>
  8818. <EntityType Name="FmsConstruction">
  8819. <Key>
  8820. <PropertyRef Name="SiteId" />
  8821. <PropertyRef Name="ConstructionId" />
  8822. </Key>
  8823. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8824. <Property Name="ConstructionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8825. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  8826. <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
  8827. <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
  8828. <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
  8829. <Property Name="PartnerId" Type="Int32" Nullable="false" />
  8830. <Property Name="ConstructLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  8831. <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8832. <Property Name="CommitmentMan" Type="Int16" />
  8833. <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8834. <Property Name="WeldWorkStartTime" Type="DateTime" Precision="3" />
  8835. <Property Name="WeldWorkEndTime" Type="DateTime" Precision="3" />
  8836. <Property Name="GasWorkStartTime" Type="DateTime" Precision="3" />
  8837. <Property Name="GasWorkEndTime" Type="DateTime" Precision="3" />
  8838. <Property Name="PaintWorkStartTime" Type="DateTime" Precision="3" />
  8839. <Property Name="PaintWorkEndTime" Type="DateTime" Precision="3" />
  8840. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8841. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  8842. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  8843. <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
  8844. <Property Name="ConstructionDetail" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8845. <Property Name="InOutStockName" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8846. <Property Name="FileId1" Type="Int32" />
  8847. <Property Name="FileId2" Type="Int32" />
  8848. <Property Name="FileId3" Type="Int32" />
  8849. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="FmsConstruction" ToRole="CmFile" />
  8850. <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="FmsConstruction" ToRole="CmFile" />
  8851. <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="FmsConstruction" ToRole="CmFile" />
  8852. <NavigationProperty Name="FmsConstructionCodeProgress" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstruction" ToRole="FmsConstructionCodeProgress" />
  8853. <NavigationProperty Name="FmsConstructionCodeType" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstruction" ToRole="FmsConstructionCodeType" />
  8854. <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstruction" ToRole="FmsConstructionEstimation" />
  8855. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="FmsConstruction" ToRole="CmPartner" />
  8856. </EntityType>
  8857. <EntityType Name="FmsConstructionCodeProgress">
  8858. <Key>
  8859. <PropertyRef Name="ProgressId" />
  8860. </Key>
  8861. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  8862. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8863. <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8864. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstructionCodeProgress" ToRole="FmsConstruction" />
  8865. </EntityType>
  8866. <EntityType Name="FmsConstructionCodeType">
  8867. <Key>
  8868. <PropertyRef Name="SiteId" />
  8869. <PropertyRef Name="ConstructionTypeId" />
  8870. </Key>
  8871. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8872. <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
  8873. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8874. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  8875. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstructionCodeType" ToRole="FmsConstruction" />
  8876. </EntityType>
  8877. <EntityType Name="FmsConstructionEstimation">
  8878. <Key>
  8879. <PropertyRef Name="SiteId" />
  8880. <PropertyRef Name="ConstructionId" />
  8881. </Key>
  8882. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8883. <Property Name="ConstructionId" Type="Int32" Nullable="false" />
  8884. <Property Name="EstimateDate" Type="DateTime" Nullable="false" Precision="3" />
  8885. <Property Name="EstimateUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8886. <Property Name="Safety01_CleanUp" Type="Boolean" />
  8887. <Property Name="Safety02_PersonalProtection" Type="Boolean" />
  8888. <Property Name="Safety03_FireExtinguisher" Type="Boolean" />
  8889. <Property Name="Safety04_HighPlaceWork" Type="Boolean" />
  8890. <Property Name="Safety05_Weld" Type="Boolean" />
  8891. <Property Name="Safety06_SurroundingCleanUp" Type="Boolean" />
  8892. <Property Name="Safety07_SurroundingHealthy" Type="Boolean" />
  8893. <Property Name="Safety08_Noise" Type="Boolean" />
  8894. <Property Name="Safety09_FacilityProtection" Type="Boolean" />
  8895. <Property Name="Safety10_Waste" Type="Boolean" />
  8896. <Property Name="Safety11_Execution" Type="Boolean" />
  8897. <Property Name="Safety12_Announcement" Type="Boolean" />
  8898. <Property Name="Ability01_Compliance" Type="Boolean" />
  8899. <Property Name="Ability02_Fault" Type="Boolean" />
  8900. <Property Name="Ability03_SkillLevel" Type="Boolean" />
  8901. <Property Name="Ability04_ProcessManagement" Type="Boolean" />
  8902. <Property Name="Ability05_Collaboration" Type="Boolean" />
  8903. <Property Name="Service01_Compliance" Type="Boolean" />
  8904. <Property Name="Service02_SkillLevel" Type="Boolean" />
  8905. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8906. <Property Name="TotalEstimateScore" Type="Double" />
  8907. <Property Name="SafetyScore" Type="Double" />
  8908. <Property Name="AbilityScore" Type="Double" />
  8909. <Property Name="ServiceScore" Type="Double" />
  8910. <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="FmsConstructionEstimation" ToRole="CmUser" />
  8911. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstructionEstimation" ToRole="FmsConstruction" />
  8912. </EntityType>
  8913. <EntityType Name="FmsContractClass">
  8914. <Key>
  8915. <PropertyRef Name="SiteId" />
  8916. <PropertyRef Name="ContractClassId" />
  8917. </Key>
  8918. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8919. <Property Name="ContractClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8920. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8921. <Property Name="IsUse" Type="Boolean" />
  8922. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContractClass" ToRole="FmsContract" />
  8923. </EntityType>
  8924. <EntityType Name="FmsContractMethod">
  8925. <Key>
  8926. <PropertyRef Name="SiteId" />
  8927. <PropertyRef Name="ContractMethodId" />
  8928. </Key>
  8929. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8930. <Property Name="ContractMethodId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8931. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8932. <Property Name="IsUse" Type="Boolean" />
  8933. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContractMethod" ToRole="FmsContract" />
  8934. </EntityType>
  8935. <EntityType Name="FmsContractType">
  8936. <Key>
  8937. <PropertyRef Name="SiteId" />
  8938. <PropertyRef Name="ContractTypeId" />
  8939. </Key>
  8940. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8941. <Property Name="ContractTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8942. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8943. <Property Name="IsUse" Type="Boolean" />
  8944. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContractType" ToRole="FmsContract" />
  8945. </EntityType>
  8946. <EntityType Name="FmsDrawing">
  8947. <Key>
  8948. <PropertyRef Name="SiteId" />
  8949. <PropertyRef Name="DrawingId" />
  8950. </Key>
  8951. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8952. <Property Name="DrawingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8953. <Property Name="DrawingNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8954. <Property Name="DrawingGroupId" Type="Int32" Nullable="false" />
  8955. <Property Name="DrawingTypeId" Type="Int32" Nullable="false" />
  8956. <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  8957. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  8958. <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawing" ToRole="FmsDrawingCodeGroup" />
  8959. <NavigationProperty Name="FmsDrawingCodeType" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawing" ToRole="FmsDrawingCodeType" />
  8960. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawing" ToRole="FmsDrawingHistory" />
  8961. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="FmsDrawing" ToRole="CmSite" />
  8962. </EntityType>
  8963. <EntityType Name="FmsDrawingCodeGroup">
  8964. <Key>
  8965. <PropertyRef Name="SiteId" />
  8966. <PropertyRef Name="DrawingGroupId" />
  8967. </Key>
  8968. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8969. <Property Name="DrawingGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8970. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8971. <Property Name="IsUse" Type="Boolean" />
  8972. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawingCodeGroup" ToRole="FmsDrawing" />
  8973. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
  8974. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
  8975. </EntityType>
  8976. <EntityType Name="FmsDrawingCodeType">
  8977. <Key>
  8978. <PropertyRef Name="SiteId" />
  8979. <PropertyRef Name="DrawingTypeId" />
  8980. </Key>
  8981. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8982. <Property Name="DrawingTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8983. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8984. <Property Name="IsUse" Type="Boolean" />
  8985. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawingCodeType" ToRole="FmsDrawing" />
  8986. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
  8987. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
  8988. </EntityType>
  8989. <EntityType Name="FmsDrawingHistory">
  8990. <Key>
  8991. <PropertyRef Name="SiteId" />
  8992. <PropertyRef Name="DrawingId" />
  8993. <PropertyRef Name="HistoryId" />
  8994. </Key>
  8995. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8996. <Property Name="DrawingId" Type="Int32" Nullable="false" />
  8997. <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8998. <Property Name="RevisionNo" Type="Int32" />
  8999. <Property Name="FileId" Type="Int32" />
  9000. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9001. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  9002. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9003. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="FmsDrawingHistory" ToRole="CmFile" />
  9004. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="FmsDrawingHistory" ToRole="CmUser" />
  9005. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawingHistory" ToRole="FmsDrawing" />
  9006. </EntityType>
  9007. <EntityType Name="FmsEquipmentCodeStateType">
  9008. <Key>
  9009. <PropertyRef Name="EquipmentStateTypeId" />
  9010. </Key>
  9011. <Property Name="EquipmentStateTypeId" Type="Int16" Nullable="false" />
  9012. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9013. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9014. <NavigationProperty Name="FmsEquipmentHistory" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentHistory" />
  9015. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentRentInfo" />
  9016. </EntityType>
  9017. <EntityType Name="FmsEquipmentCodeType">
  9018. <Key>
  9019. <PropertyRef Name="SiteId" />
  9020. <PropertyRef Name="EquipmentTypeId" />
  9021. </Key>
  9022. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9023. <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9024. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9025. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9026. <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  9027. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipmentCodeType" ToRole="FmsEquipment" />
  9028. </EntityType>
  9029. <EntityType Name="FmsEquipmentHistory">
  9030. <Key>
  9031. <PropertyRef Name="SiteId" />
  9032. <PropertyRef Name="EquipmentHistoryId" />
  9033. <PropertyRef Name="EquipmentId" />
  9034. </Key>
  9035. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9036. <Property Name="EquipmentHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9037. <Property Name="EquipmentId" Type="Int32" Nullable="false" />
  9038. <Property Name="TotalStockCount" Type="Int32" />
  9039. <Property Name="CurrentStockCount" Type="Int32" />
  9040. <Property Name="RentCount" Type="Int32" />
  9041. <Property Name="CurrentRentCount" Type="Int32" />
  9042. <Property Name="ReturnCount" Type="Int32" />
  9043. <Property Name="LossCount" Type="Int32" />
  9044. <Property Name="StoredCount" Type="Int32" />
  9045. <Property Name="EquipmentRentId" Type="Int32" />
  9046. <Property Name="EquipmentStateTypeId" Type="Int16" />
  9047. <Property Name="AddDate" Type="DateTime" Precision="3" />
  9048. <Property Name="UpdateDate" Type="DateTime" Precision="3" />
  9049. <Property Name="IsReturned" Type="Boolean" />
  9050. <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentCodeStateType" />
  9051. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentRentInfo" />
  9052. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipmentHistory" ToRole="FmsEquipment" />
  9053. </EntityType>
  9054. <EntityType Name="FmsFacilityCheckItem">
  9055. <Key>
  9056. <PropertyRef Name="SiteId" />
  9057. <PropertyRef Name="FacilityCode" />
  9058. <PropertyRef Name="CheckItemId" />
  9059. </Key>
  9060. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9061. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9062. <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9063. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  9064. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  9065. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  9066. <Property Name="IsYesNoResult" Type="Boolean" Nullable="false" />
  9067. <Property Name="IsUse" Type="Boolean" />
  9068. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeCycleUnit" />
  9069. <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeType" />
  9070. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkResultCheckItem" />
  9071. </EntityType>
  9072. <EntityType Name="FmsFacilityCodeClass">
  9073. <Key>
  9074. <PropertyRef Name="SiteId" />
  9075. <PropertyRef Name="FacilityClassId" />
  9076. </Key>
  9077. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9078. <Property Name="FacilityClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9079. <Property Name="ParentFacilityClassId" Type="Int32" />
  9080. <Property Name="Depth" Type="Int32" Nullable="false" />
  9081. <Property Name="Name" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
  9082. <Property Name="Abbreviation" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  9083. <Property Name="IsUse" Type="Boolean" />
  9084. <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass" ToRole="FmsFacilityCodeClass1" />
  9085. <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass1" ToRole="FmsFacilityCodeClass" />
  9086. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="FmsFacilityCodeClass" ToRole="CmSite" />
  9087. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  9088. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  9089. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  9090. </EntityType>
  9091. <EntityType Name="FmsFacilityManual">
  9092. <Key>
  9093. <PropertyRef Name="SiteId" />
  9094. <PropertyRef Name="FacilityCode" />
  9095. <PropertyRef Name="ManualId" />
  9096. </Key>
  9097. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9098. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9099. <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9100. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9101. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9102. <Property Name="Description" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9103. <Property Name="Keyword" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9104. <Property Name="FileId" Type="Int32" />
  9105. <Property Name="IsUse" Type="Boolean" />
  9106. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="FmsFacilityManual" ToRole="CmBusinessField" />
  9107. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="FmsFacilityManual" ToRole="CmFacility" />
  9108. </EntityType>
  9109. <EntityType Name="FmsFacilityOperationItem">
  9110. <Key>
  9111. <PropertyRef Name="SiteId" />
  9112. <PropertyRef Name="ItemId" />
  9113. </Key>
  9114. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9115. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9116. <Property Name="ItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9117. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9118. <Property Name="ResultUnit" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
  9119. <Property Name="PointId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  9120. <Property Name="SystemId" Type="Int32" />
  9121. <Property Name="EnergyCode" Type="Boolean" />
  9122. <Property Name="IsUse" Type="Boolean" />
  9123. <Property Name="SortOrderNo" Type="Int32" />
  9124. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  9125. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9126. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  9127. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9128. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="FmsFacilityOperationItem" ToRole="CmFacility" />
  9129. </EntityType>
  9130. <EntityType Name="FmsLicense">
  9131. <Key>
  9132. <PropertyRef Name="SiteId" />
  9133. <PropertyRef Name="LicenseId" />
  9134. </Key>
  9135. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9136. <Property Name="LicenseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9137. <Property Name="Name" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
  9138. <Property Name="IssuingOffice" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
  9139. <Property Name="BusinessFieldId" Type="Int32" />
  9140. <Property Name="EducationalInstitute" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  9141. <Property Name="Note" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  9142. <Property Name="IsUse" Type="Boolean" />
  9143. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="FmsLicense" ToRole="CmBusinessField" />
  9144. <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="FmsLicense" ToRole="CmUserToLicense" />
  9145. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="FmsLicense" ToRole="CmSite" />
  9146. </EntityType>
  9147. <EntityType Name="FmsManual">
  9148. <Key>
  9149. <PropertyRef Name="SiteId" />
  9150. <PropertyRef Name="ManualId" />
  9151. </Key>
  9152. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9153. <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9154. <Property Name="ManualNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  9155. <Property Name="ManualTypeId" Type="Int32" Nullable="false" />
  9156. <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  9157. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9158. <NavigationProperty Name="FmsManualType" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManual" ToRole="FmsManualType" />
  9159. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManual" ToRole="FmsManualHistory" />
  9160. </EntityType>
  9161. <EntityType Name="FmsManualHistory">
  9162. <Key>
  9163. <PropertyRef Name="SiteId" />
  9164. <PropertyRef Name="ManualId" />
  9165. <PropertyRef Name="HistoryId" />
  9166. </Key>
  9167. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9168. <Property Name="ManualId" Type="Int32" Nullable="false" />
  9169. <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9170. <Property Name="RevisionNo" Type="Int32" />
  9171. <Property Name="FileId" Type="Int32" />
  9172. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9173. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  9174. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9175. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="FmsManualHistory" ToRole="CmFile" />
  9176. <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="FmsManualHistory" ToRole="CmUser" />
  9177. <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManualHistory" ToRole="FmsManual" />
  9178. </EntityType>
  9179. <EntityType Name="FmsManualType">
  9180. <Key>
  9181. <PropertyRef Name="SiteId" />
  9182. <PropertyRef Name="ManualTypeId" />
  9183. </Key>
  9184. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9185. <Property Name="ManualTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9186. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  9187. <Property Name="IsUse" Type="Boolean" />
  9188. <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManualType" ToRole="FmsManual" />
  9189. </EntityType>
  9190. <EntityType Name="FmsMaterialCarriedForward">
  9191. <Key>
  9192. <PropertyRef Name="SiteId" />
  9193. <PropertyRef Name="ClosedDate" />
  9194. <PropertyRef Name="BusinessFieldId" />
  9195. <PropertyRef Name="WarehouseId" />
  9196. <PropertyRef Name="MaterialId" />
  9197. </Key>
  9198. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9199. <Property Name="ClosedDate" Type="DateTime" Nullable="false" Precision="3" />
  9200. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9201. <Property Name="WarehouseId" Type="Int32" Nullable="false" />
  9202. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9203. <Property Name="StockCount" Type="Int32" Nullable="false" />
  9204. <Property Name="StockTotalCost" Type="Int32" Nullable="false" />
  9205. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="FmsMaterialCarriedForward" ToRole="CmBusinessField" />
  9206. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="FmsMaterialCarriedForward" ToRole="CmSite" />
  9207. </EntityType>
  9208. <EntityType Name="FmsMaterialCodeAdjustmentType">
  9209. <Key>
  9210. <PropertyRef Name="AdjustmentTypeId" />
  9211. </Key>
  9212. <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
  9213. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9214. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9215. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialCodeAdjustmentType" ToRole="FmsMaterialRelease" />
  9216. </EntityType>
  9217. <EntityType Name="FmsMaterialCodeClass">
  9218. <Key>
  9219. <PropertyRef Name="SiteId" />
  9220. <PropertyRef Name="MaterialClassId" />
  9221. </Key>
  9222. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9223. <Property Name="MaterialClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9224. <Property Name="ParentMaterialClassId" Type="Int32" />
  9225. <Property Name="Depth" Type="Int32" Nullable="false" />
  9226. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  9227. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  9228. <Property Name="IsUse" Type="Boolean" />
  9229. <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterialCodeClass1" />
  9230. <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass1" ToRole="FmsMaterialCodeClass" />
  9231. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  9232. <NavigationProperty Name="FmsMaterial1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  9233. <NavigationProperty Name="FmsMaterial2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  9234. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="FmsMaterialCodeClass" ToRole="CmSite" />
  9235. </EntityType>
  9236. <EntityType Name="FmsMaterialCodeLocation">
  9237. <Key>
  9238. <PropertyRef Name="SiteId" />
  9239. <PropertyRef Name="LocationId" />
  9240. </Key>
  9241. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9242. <Property Name="LocationId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9243. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9244. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  9245. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9246. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="FmsMaterialCodeLocation" ToRole="CmBusinessField" />
  9247. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterialCodeLocation" ToRole="FmsMaterial" />
  9248. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="FmsMaterialCodeLocation" ToRole="CmSite" />
  9249. </EntityType>
  9250. <EntityType Name="FmsMaterialCodeProgress">
  9251. <Key>
  9252. <PropertyRef Name="ProgressId" />
  9253. </Key>
  9254. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  9255. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9256. <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9257. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialCodeProgress" ToRole="FmsMaterialPurchaseRequest" />
  9258. </EntityType>
  9259. <EntityType Name="FmsMaterialCodePurchaseType">
  9260. <Key>
  9261. <PropertyRef Name="PurchaseTypeId" />
  9262. </Key>
  9263. <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9264. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9265. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9266. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialCodePurchaseType" ToRole="FmsMaterialPurchaseRequest" />
  9267. </EntityType>
  9268. <EntityType Name="FmsMaterialCodeReleaseType">
  9269. <Key>
  9270. <PropertyRef Name="ReleaseTypeId" />
  9271. </Key>
  9272. <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
  9273. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9274. <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  9275. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialCodeReleaseType" ToRole="FmsMaterialRelease" />
  9276. </EntityType>
  9277. <EntityType Name="FmsMaterialCodeType">
  9278. <Key>
  9279. <PropertyRef Name="SiteId" />
  9280. <PropertyRef Name="MaterialTypeId" />
  9281. </Key>
  9282. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9283. <Property Name="MaterialTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9284. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9285. <Property Name="Nickname" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9286. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9287. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterialCodeType" ToRole="FmsMaterial" />
  9288. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="FmsMaterialCodeType" ToRole="CmSite" />
  9289. </EntityType>
  9290. <EntityType Name="FmsMaterialPurchaseOrder">
  9291. <Key>
  9292. <PropertyRef Name="SiteId" />
  9293. <PropertyRef Name="PurchaseOrderId" />
  9294. </Key>
  9295. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9296. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9297. <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9298. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
  9299. <Property Name="TradeCompanyId" Type="Int32" />
  9300. <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
  9301. <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9302. <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  9303. <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9304. <Property Name="StoredDueDate" Type="DateTime" Precision="3" />
  9305. <Property Name="FileId" Type="Int32" />
  9306. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="FmsMaterialPurchaseOrder" ToRole="CmBusinessField" />
  9307. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="FmsMaterialPurchaseOrder" ToRole="CmFile" />
  9308. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="FmsMaterialPurchaseOrder" ToRole="CmUser" />
  9309. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialTradeCompany" />
  9310. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseRequest" />
  9311. <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseOrderMaterial" />
  9312. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialStored" />
  9313. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="FmsMaterialPurchaseOrder" ToRole="CmSite" />
  9314. </EntityType>
  9315. <EntityType Name="FmsMaterialPurchaseOrderMaterial">
  9316. <Key>
  9317. <PropertyRef Name="SiteId" />
  9318. <PropertyRef Name="PurchaseOrderId" />
  9319. <PropertyRef Name="MaterialId" />
  9320. </Key>
  9321. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9322. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9323. <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" />
  9324. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9325. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  9326. <Property Name="UnitCost" Type="Int32" Nullable="false" />
  9327. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterialPurchaseOrder" />
  9328. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterial" />
  9329. </EntityType>
  9330. <EntityType Name="FmsMaterialPurchaseRequest">
  9331. <Key>
  9332. <PropertyRef Name="SiteId" />
  9333. <PropertyRef Name="PurchaseRequestId" />
  9334. </Key>
  9335. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9336. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9337. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9338. <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" />
  9339. <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
  9340. <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9341. <Property Name="PurchaseHopeDate" Type="DateTime" Precision="3" />
  9342. <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  9343. <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" Nullable="false" />
  9344. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  9345. <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
  9346. <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9347. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="FmsMaterialPurchaseRequest" ToRole="CmBusinessField" />
  9348. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
  9349. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
  9350. <NavigationProperty Name="FmsMaterialCodeProgress" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodeProgress" />
  9351. <NavigationProperty Name="FmsMaterialCodePurchaseType" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodePurchaseType" />
  9352. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseOrder" />
  9353. <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseRequestMaterial" />
  9354. <Property Name="bSameOrder" Type="Boolean" />
  9355. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="FmsMaterialPurchaseRequest" ToRole="CmSite" />
  9356. </EntityType>
  9357. <EntityType Name="FmsMaterialPurchaseRequestMaterial">
  9358. <Key>
  9359. <PropertyRef Name="SiteId" />
  9360. <PropertyRef Name="PurchaseRequestId" />
  9361. <PropertyRef Name="MaterialId" />
  9362. </Key>
  9363. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9364. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9365. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
  9366. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9367. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  9368. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterialPurchaseRequest" />
  9369. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterial" />
  9370. </EntityType>
  9371. <EntityType Name="FmsMaterialStored">
  9372. <Key>
  9373. <PropertyRef Name="SiteId" />
  9374. <PropertyRef Name="MaterialStoredId" />
  9375. </Key>
  9376. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9377. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9378. <Property Name="StoredDate" Type="DateTime" Nullable="false" Precision="3" />
  9379. <Property Name="MaterialStoredId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9380. <Property Name="PurchaseOrderId" Type="Int32" />
  9381. <Property Name="WarehouseId" Type="Int32" Nullable="false" />
  9382. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9383. <Property Name="StoredCount" Type="Int32" Nullable="false" />
  9384. <Property Name="RemainStoredCount" Type="Int32" Nullable="false" />
  9385. <Property Name="UnitCost" Type="Int32" Nullable="false" />
  9386. <Property Name="StockCount" Type="Int32" Nullable="false" />
  9387. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9388. <Property Name="StoredUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9389. <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
  9390. <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9391. <Property Name="IsApproval" Type="Boolean" Nullable="false" />
  9392. <Property Name="LocationInWarehouse" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9393. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="FmsMaterialStored" ToRole="CmBusinessField" />
  9394. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
  9395. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
  9396. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialStored" ToRole="FmsMaterialPurchaseOrder" />
  9397. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialStored" ToRole="FmsMaterialWarehouse" />
  9398. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterialStored" ToRole="FmsMaterial" />
  9399. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="FmsMaterialStored" ToRole="CmSite" />
  9400. </EntityType>
  9401. <EntityType Name="FmsMaterialTradeCompany">
  9402. <Key>
  9403. <PropertyRef Name="SiteId" />
  9404. <PropertyRef Name="TradeCompanyId" />
  9405. </Key>
  9406. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9407. <Property Name="TradeCompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9408. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  9409. <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9410. <Property Name="RepresentativeName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9411. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  9412. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  9413. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  9414. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  9415. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  9416. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  9417. <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9418. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9419. <Property Name="HomepageUri" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  9420. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9421. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9422. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterialPurchaseOrder" />
  9423. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterial" />
  9424. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="FmsMaterialTradeCompany" ToRole="CmSite" />
  9425. </EntityType>
  9426. <EntityType Name="FmsMaterialWarehouse">
  9427. <Key>
  9428. <PropertyRef Name="SiteId" />
  9429. <PropertyRef Name="WarehouseId" />
  9430. </Key>
  9431. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9432. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9433. <Property Name="WarehouseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9434. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  9435. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9436. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="FmsMaterialWarehouse" ToRole="CmBusinessField" />
  9437. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterialStored" />
  9438. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterial" />
  9439. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="FmsMaterialWarehouse" ToRole="CmSite" />
  9440. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsEquipment" />
  9441. </EntityType>
  9442. <EntityType Name="FmsPaymentType">
  9443. <Key>
  9444. <PropertyRef Name="SiteId" />
  9445. <PropertyRef Name="PaymentTypeId" />
  9446. </Key>
  9447. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9448. <Property Name="PaymentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9449. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  9450. <Property Name="IsUse" Type="Boolean" />
  9451. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsPaymentType" ToRole="FmsContract" />
  9452. </EntityType>
  9453. <EntityType Name="FmsWorkCodeCauseClass">
  9454. <Key>
  9455. <PropertyRef Name="SiteId" />
  9456. <PropertyRef Name="CauseClassId" />
  9457. </Key>
  9458. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9459. <Property Name="CauseClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9460. <Property Name="ParentId" Type="Int32" Nullable="false" />
  9461. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  9462. <Property Name="IsUse" Type="Boolean" />
  9463. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkCodeCauseClass" ToRole="FmsWorkResult" />
  9464. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="FmsWorkCodeCauseClass" ToRole="CmSite" />
  9465. </EntityType>
  9466. <EntityType Name="FmsWorkCodeCycleUnit">
  9467. <Key>
  9468. <PropertyRef Name="SiteId" />
  9469. <PropertyRef Name="CycleUnitId" />
  9470. </Key>
  9471. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9472. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  9473. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9474. <Property Name="Description" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  9475. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsFacilityCheckItem" />
  9476. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsWorkSchedule" />
  9477. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="FmsWorkCodeCycleUnit" ToRole="CmSite" />
  9478. </EntityType>
  9479. <EntityType Name="FmsWorkCodeEmergency">
  9480. <Key>
  9481. <PropertyRef Name="SiteId" />
  9482. <PropertyRef Name="EmergencyId" />
  9483. </Key>
  9484. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9485. <Property Name="EmergencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9486. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  9487. <Property Name="IsUse" Type="Boolean" />
  9488. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkCodeEmergency" ToRole="FmsWorkOrder" />
  9489. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="FmsWorkCodeEmergency" ToRole="CmSite" />
  9490. </EntityType>
  9491. <EntityType Name="FmsWorkCodeHolidayWorkType">
  9492. <Key>
  9493. <PropertyRef Name="SiteId" />
  9494. <PropertyRef Name="HolidayWorkTypeId" />
  9495. </Key>
  9496. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9497. <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
  9498. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  9499. <Property Name="IsUse" Type="Boolean" />
  9500. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkCodeHolidayWorkType" ToRole="FmsWorkSchedule" />
  9501. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="FmsWorkCodeHolidayWorkType" ToRole="CmSite" />
  9502. </EntityType>
  9503. <EntityType Name="FmsWorkCodeLegalInspectionAgency">
  9504. <Key>
  9505. <PropertyRef Name="SiteId" />
  9506. <PropertyRef Name="InspectionAgencyId" />
  9507. </Key>
  9508. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9509. <Property Name="InspectionAgencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9510. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9511. <Property Name="IsUse" Type="Boolean" />
  9512. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="FmsWorkCodeLegalInspectionAgency" ToRole="CmSite" />
  9513. </EntityType>
  9514. <EntityType Name="FmsWorkCodeProgress">
  9515. <Key>
  9516. <PropertyRef Name="WorkProgressId" />
  9517. </Key>
  9518. <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
  9519. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9520. <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  9521. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkCodeProgress" ToRole="FmsWorkRequest" />
  9522. </EntityType>
  9523. <EntityType Name="FmsWorkCodeType">
  9524. <Key>
  9525. <PropertyRef Name="WorkTypeId" />
  9526. </Key>
  9527. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  9528. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  9529. <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  9530. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsFacilityCheckItem" />
  9531. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkRequest" />
  9532. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkSchedule" />
  9533. </EntityType>
  9534. <EntityType Name="FmsWorkOrder">
  9535. <Key>
  9536. <PropertyRef Name="SiteId" />
  9537. <PropertyRef Name="WorkRequestId" />
  9538. </Key>
  9539. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9540. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9541. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9542. <Property Name="EmergencyId" Type="Int32" />
  9543. <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9544. <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
  9545. <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
  9546. <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  9547. <Property Name="Content" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9548. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="FmsWorkOrder" ToRole="CmBusinessField" />
  9549. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="FmsWorkOrder" ToRole="CmUser" />
  9550. <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkOrder" ToRole="FmsWorkCodeEmergency" />
  9551. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkOrder" ToRole="FmsWorkRequest" />
  9552. <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkOrderToFacility" />
  9553. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkResult" />
  9554. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="FmsWorkOrder" ToRole="CmSite" />
  9555. </EntityType>
  9556. <EntityType Name="FmsWorkOrderToFacility">
  9557. <Key>
  9558. <PropertyRef Name="SiteId" />
  9559. <PropertyRef Name="WorkRequestId" />
  9560. <PropertyRef Name="FacilityCode" />
  9561. </Key>
  9562. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9563. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9564. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9565. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrderToFacility" ToRole="FmsWorkOrder" />
  9566. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="FmsWorkOrderToFacility" ToRole="CmFacility" />
  9567. </EntityType>
  9568. <EntityType Name="FmsWorkRequest">
  9569. <Key>
  9570. <PropertyRef Name="SiteId" />
  9571. <PropertyRef Name="WorkRequestId" />
  9572. </Key>
  9573. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9574. <Property Name="WorkRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9575. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  9576. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9577. <Property Name="WorkScheduleId" Type="Int32" />
  9578. <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
  9579. <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  9580. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9581. <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9582. <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
  9583. <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
  9584. <Property Name="RejectUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9585. <Property Name="RejectDate" Type="DateTime" Precision="3" />
  9586. <Property Name="RejectReason" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  9587. <Property Name="InspectionAgencyId" Type="Int32" />
  9588. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="FmsWorkRequest" ToRole="CmBusinessField" />
  9589. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
  9590. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
  9591. <NavigationProperty Name="FmsWorkCodeProgress" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeProgress" />
  9592. <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeType" />
  9593. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkOrder" />
  9594. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkRequest" ToRole="FmsWorkSchedule" />
  9595. <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkRequestToFacility" />
  9596. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkResult" />
  9597. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="FmsWorkRequest" ToRole="CmSite" />
  9598. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="FmsWorkRequest" ToRole="CmPartner" />
  9599. </EntityType>
  9600. <EntityType Name="FmsWorkRequestToFacility">
  9601. <Key>
  9602. <PropertyRef Name="SiteId" />
  9603. <PropertyRef Name="WorkRequestId" />
  9604. <PropertyRef Name="FacilityCode" />
  9605. </Key>
  9606. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9607. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9608. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9609. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequestToFacility" ToRole="FmsWorkRequest" />
  9610. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="FmsWorkRequestToFacility" ToRole="CmFacility" />
  9611. </EntityType>
  9612. <EntityType Name="FmsWorkResult">
  9613. <Key>
  9614. <PropertyRef Name="SiteId" />
  9615. <PropertyRef Name="WorkRequestId" />
  9616. </Key>
  9617. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9618. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9619. <Property Name="WorkerUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9620. <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
  9621. <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
  9622. <Property Name="CauseClassId" Type="Int32" />
  9623. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9624. <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
  9625. <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9626. <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
  9627. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
  9628. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
  9629. <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkResult" ToRole="FmsWorkCodeCauseClass" />
  9630. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkOrder" />
  9631. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkResult" ToRole="FmsWorkRequest" />
  9632. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItem" />
  9633. <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultFile" />
  9634. <NavigationProperty Name="FmsWorkResultLaw" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultLaw" />
  9635. <NavigationProperty Name="FmsWorkResultToFacility" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkResultToFacility" />
  9636. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsMaterialRelease" />
  9637. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItemMaterial" />
  9638. <Property Name="ConfirmDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9639. </EntityType>
  9640. <EntityType Name="FmsWorkResultCheckItem">
  9641. <Key>
  9642. <PropertyRef Name="CheckItemId" />
  9643. </Key>
  9644. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9645. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9646. <Property Name="FacilityCode" Type="Int32" />
  9647. <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9648. <Property Name="BoolResult" Type="Boolean" />
  9649. <Property Name="TextResult" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9650. <Property Name="CheckDate" Type="DateTime" Nullable="false" Precision="3" />
  9651. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsFacilityCheckItem" />
  9652. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResult" />
  9653. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResultCheckItemMaterial" />
  9654. <Property Name="FileId1" Type="Int32" />
  9655. <Property Name="FileId2" Type="Int32" />
  9656. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
  9657. <NavigationProperty Name="CmFile1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
  9658. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="FmsWorkResultCheckItem" ToRole="CmFacility" />
  9659. </EntityType>
  9660. <EntityType Name="FmsWorkResultCheckItemMaterial">
  9661. <Key>
  9662. <PropertyRef Name="CheckItemMaterialId" />
  9663. </Key>
  9664. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9665. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9666. <Property Name="CheckItemId" Type="Int32" Nullable="false" />
  9667. <Property Name="CheckItemMaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9668. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9669. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  9670. <Property Name="MaterialCode" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  9671. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  9672. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResultCheckItem" />
  9673. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsMaterial" />
  9674. <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResult" />
  9675. </EntityType>
  9676. <EntityType Name="FmsWorkResultFile">
  9677. <Key>
  9678. <PropertyRef Name="SiteId" />
  9679. <PropertyRef Name="WorkRequestId" />
  9680. </Key>
  9681. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9682. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9683. <Property Name="FileId" Type="Int32" Nullable="false" />
  9684. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="FmsWorkResultFile" ToRole="CmFile" />
  9685. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResultFile" ToRole="FmsWorkResult" />
  9686. </EntityType>
  9687. <EntityType Name="FmsWorkResultLaw">
  9688. <Key>
  9689. <PropertyRef Name="SiteId" />
  9690. <PropertyRef Name="WorkRequestId" />
  9691. </Key>
  9692. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9693. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9694. <Property Name="CertificationNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  9695. <Property Name="CheckCommission" Type="Decimal" Precision="10" Scale="0" />
  9696. <Property Name="CheckResult" Type="Boolean" />
  9697. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResultLaw" ToRole="FmsWorkResult" />
  9698. </EntityType>
  9699. <EntityType Name="FmsWorkResultToFacility">
  9700. <Key>
  9701. <PropertyRef Name="SiteId" />
  9702. <PropertyRef Name="WorkRequestId" />
  9703. <PropertyRef Name="FacilityCode" />
  9704. </Key>
  9705. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9706. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9707. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9708. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResultToFacility" ToRole="FmsWorkResult" />
  9709. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="FmsWorkResultToFacility" ToRole="CmFacility" />
  9710. </EntityType>
  9711. <EntityType Name="FmsWorkScheduleToFacility">
  9712. <Key>
  9713. <PropertyRef Name="SiteId" />
  9714. <PropertyRef Name="WorkScheduleId" />
  9715. <PropertyRef Name="FacilityCode" />
  9716. </Key>
  9717. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9718. <Property Name="WorkScheduleId" Type="Int32" Nullable="false" />
  9719. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9720. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkScheduleToFacility" ToRole="FmsWorkSchedule" />
  9721. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="FmsWorkScheduleToFacility" ToRole="CmFacility" />
  9722. </EntityType>
  9723. <EntityType Name="sysdiagrams">
  9724. <Key>
  9725. <PropertyRef Name="diagram_id" />
  9726. </Key>
  9727. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  9728. <Property Name="principal_id" Type="Int32" Nullable="false" />
  9729. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9730. <Property Name="version" Type="Int32" />
  9731. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  9732. </EntityType>
  9733. <Association Name="FK__BemsMonitoringPo__1372D2FE">
  9734. <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
  9735. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  9736. <ReferentialConstraint>
  9737. <Principal Role="BemsAnalysisType">
  9738. <PropertyRef Name="SiteId" />
  9739. <PropertyRef Name="AnalysisType" />
  9740. </Principal>
  9741. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  9742. <PropertyRef Name="SiteId" />
  9743. <PropertyRef Name="AnalysisType" />
  9744. </Dependent>
  9745. </ReferentialConstraint>
  9746. </Association>
  9747. <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
  9748. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9749. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  9750. <ReferentialConstraint>
  9751. <Principal Role="BemsFacilityType">
  9752. <PropertyRef Name="FacilityTypeId" />
  9753. </Principal>
  9754. <Dependent Role="BemsControlPointHistory">
  9755. <PropertyRef Name="FacilityTypeId" />
  9756. </Dependent>
  9757. </ReferentialConstraint>
  9758. </Association>
  9759. <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
  9760. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9761. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  9762. <ReferentialConstraint>
  9763. <Principal Role="BemsMonitoringPoint">
  9764. <PropertyRef Name="SiteId" />
  9765. <PropertyRef Name="FacilityCode" />
  9766. <PropertyRef Name="PropertyId" />
  9767. </Principal>
  9768. <Dependent Role="BemsControlPointHistory">
  9769. <PropertyRef Name="SiteId" />
  9770. <PropertyRef Name="FacilityCode" />
  9771. <PropertyRef Name="PropertyId" />
  9772. </Dependent>
  9773. </ReferentialConstraint>
  9774. </Association>
  9775. <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
  9776. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9777. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  9778. <ReferentialConstraint>
  9779. <Principal Role="BemsFacilityType">
  9780. <PropertyRef Name="FacilityTypeId" />
  9781. </Principal>
  9782. <Dependent Role="BemsMonitoringPointBaseData">
  9783. <PropertyRef Name="FacilityTypeId" />
  9784. </Dependent>
  9785. </ReferentialConstraint>
  9786. </Association>
  9787. <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  9788. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9789. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  9790. <ReferentialConstraint>
  9791. <Principal Role="BemsFacilityType">
  9792. <PropertyRef Name="FacilityTypeId" />
  9793. </Principal>
  9794. <Dependent Role="BemsMonitoringPointHistory15min">
  9795. <PropertyRef Name="FacilityTypeId" />
  9796. </Dependent>
  9797. </ReferentialConstraint>
  9798. </Association>
  9799. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  9800. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9801. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  9802. <ReferentialConstraint>
  9803. <Principal Role="BemsFacilityType">
  9804. <PropertyRef Name="FacilityTypeId" />
  9805. </Principal>
  9806. <Dependent Role="BemsMonitoringPointHistoryDaily">
  9807. <PropertyRef Name="FacilityTypeId" />
  9808. </Dependent>
  9809. </ReferentialConstraint>
  9810. </Association>
  9811. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  9812. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9813. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  9814. <ReferentialConstraint>
  9815. <Principal Role="BemsFacilityType">
  9816. <PropertyRef Name="FacilityTypeId" />
  9817. </Principal>
  9818. <Dependent Role="BemsMonitoringPointHistoryHourly">
  9819. <PropertyRef Name="FacilityTypeId" />
  9820. </Dependent>
  9821. </ReferentialConstraint>
  9822. </Association>
  9823. <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  9824. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9825. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  9826. <ReferentialConstraint>
  9827. <Principal Role="BemsFacilityType">
  9828. <PropertyRef Name="FacilityTypeId" />
  9829. </Principal>
  9830. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  9831. <PropertyRef Name="FacilityTypeId" />
  9832. </Dependent>
  9833. </ReferentialConstraint>
  9834. </Association>
  9835. <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
  9836. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9837. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9838. <ReferentialConstraint>
  9839. <Principal Role="BemsFacilityType">
  9840. <PropertyRef Name="FacilityTypeId" />
  9841. </Principal>
  9842. <Dependent Role="BemsMonitoringPoint">
  9843. <PropertyRef Name="FacilityTypeId" />
  9844. </Dependent>
  9845. </ReferentialConstraint>
  9846. </Association>
  9847. <Association Name="FK__BemsFormula__BemsFormulaBase">
  9848. <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
  9849. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
  9850. <ReferentialConstraint>
  9851. <Principal Role="BemsFormulaBase">
  9852. <PropertyRef Name="FacilityTypeId" />
  9853. <PropertyRef Name="FormulaId" />
  9854. </Principal>
  9855. <Dependent Role="BemsFormula">
  9856. <PropertyRef Name="FacilityTypeId" />
  9857. <PropertyRef Name="FormulaId" />
  9858. </Dependent>
  9859. </ReferentialConstraint>
  9860. </Association>
  9861. <Association Name="FK__BemsFormulaParameter__BemsFormula">
  9862. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  9863. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  9864. <ReferentialConstraint>
  9865. <Principal Role="BemsFormula">
  9866. <PropertyRef Name="SiteId" />
  9867. <PropertyRef Name="FacilityTypeId" />
  9868. <PropertyRef Name="FacilityCode" />
  9869. <PropertyRef Name="FormulaId" />
  9870. </Principal>
  9871. <Dependent Role="BemsFormulaParameter">
  9872. <PropertyRef Name="SiteId" />
  9873. <PropertyRef Name="FacilityTypeId" />
  9874. <PropertyRef Name="FacilityCode" />
  9875. <PropertyRef Name="FormulaId" />
  9876. </Dependent>
  9877. </ReferentialConstraint>
  9878. </Association>
  9879. <Association Name="FK__BemsFormulaParameter__BemsMonitoringPoint">
  9880. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9881. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  9882. <ReferentialConstraint>
  9883. <Principal Role="BemsMonitoringPoint">
  9884. <PropertyRef Name="SiteId" />
  9885. <PropertyRef Name="FacilityCode" />
  9886. <PropertyRef Name="PropertyId" />
  9887. </Principal>
  9888. <Dependent Role="BemsFormulaParameter">
  9889. <PropertyRef Name="SiteId" />
  9890. <PropertyRef Name="ParameterFacilityCode" />
  9891. <PropertyRef Name="ParameterPropertyId" />
  9892. </Dependent>
  9893. </ReferentialConstraint>
  9894. </Association>
  9895. <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
  9896. <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
  9897. <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
  9898. <ReferentialConstraint>
  9899. <Principal Role="BemsFormulaTable">
  9900. <PropertyRef Name="TableId" />
  9901. </Principal>
  9902. <Dependent Role="BemsFormulaTableValue">
  9903. <PropertyRef Name="TableId" />
  9904. </Dependent>
  9905. </ReferentialConstraint>
  9906. </Association>
  9907. <Association Name="FK__BemsMonitoringPo__155B1B70">
  9908. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9909. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  9910. <ReferentialConstraint>
  9911. <Principal Role="BemsMonitoringPoint">
  9912. <PropertyRef Name="SiteId" />
  9913. <PropertyRef Name="FacilityCode" />
  9914. <PropertyRef Name="PropertyId" />
  9915. </Principal>
  9916. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  9917. <PropertyRef Name="SiteId" />
  9918. <PropertyRef Name="FacilityCode" />
  9919. <PropertyRef Name="PropertyId" />
  9920. </Dependent>
  9921. </ReferentialConstraint>
  9922. </Association>
  9923. <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
  9924. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  9925. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9926. <ReferentialConstraint>
  9927. <Principal Role="BemsServiceType">
  9928. <PropertyRef Name="ServiceTypeId" />
  9929. </Principal>
  9930. <Dependent Role="BemsMonitoringPoint">
  9931. <PropertyRef Name="ServiceTypeId" />
  9932. </Dependent>
  9933. </ReferentialConstraint>
  9934. </Association>
  9935. <Association Name="FK__BemsMonitoringPoint__CmBuilding">
  9936. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
  9937. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9938. <ReferentialConstraint>
  9939. <Principal Role="CmBuilding">
  9940. <PropertyRef Name="SiteId" />
  9941. <PropertyRef Name="BuildingId" />
  9942. </Principal>
  9943. <Dependent Role="BemsMonitoringPoint">
  9944. <PropertyRef Name="SiteId" />
  9945. <PropertyRef Name="BuildingId" />
  9946. </Dependent>
  9947. </ReferentialConstraint>
  9948. </Association>
  9949. <Association Name="FK__BemsMonitoringPoint__CmFloor">
  9950. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
  9951. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9952. <ReferentialConstraint>
  9953. <Principal Role="CmFloor">
  9954. <PropertyRef Name="SiteId" />
  9955. <PropertyRef Name="BuildingId" />
  9956. <PropertyRef Name="FloorId" />
  9957. </Principal>
  9958. <Dependent Role="BemsMonitoringPoint">
  9959. <PropertyRef Name="SiteId" />
  9960. <PropertyRef Name="BuildingId" />
  9961. <PropertyRef Name="FloorId" />
  9962. </Dependent>
  9963. </ReferentialConstraint>
  9964. </Association>
  9965. <Association Name="FK__BemsMonitoringPoint__CmZone">
  9966. <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
  9967. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9968. <ReferentialConstraint>
  9969. <Principal Role="CmZone">
  9970. <PropertyRef Name="SiteId" />
  9971. <PropertyRef Name="BuildingId" />
  9972. <PropertyRef Name="FloorId" />
  9973. <PropertyRef Name="ZoneId" />
  9974. </Principal>
  9975. <Dependent Role="BemsMonitoringPoint">
  9976. <PropertyRef Name="SiteId" />
  9977. <PropertyRef Name="BuildingId" />
  9978. <PropertyRef Name="FloorId" />
  9979. <PropertyRef Name="ZoneId" />
  9980. </Dependent>
  9981. </ReferentialConstraint>
  9982. </Association>
  9983. <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  9984. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9985. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  9986. <ReferentialConstraint>
  9987. <Principal Role="BemsMonitoringPoint">
  9988. <PropertyRef Name="SiteId" />
  9989. <PropertyRef Name="FacilityCode" />
  9990. <PropertyRef Name="PropertyId" />
  9991. </Principal>
  9992. <Dependent Role="BemsMonitoringPointHistory15min">
  9993. <PropertyRef Name="SiteId" />
  9994. <PropertyRef Name="FacilityCode" />
  9995. <PropertyRef Name="PropertyId" />
  9996. </Dependent>
  9997. </ReferentialConstraint>
  9998. </Association>
  9999. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  10000. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  10001. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  10002. <ReferentialConstraint>
  10003. <Principal Role="BemsMonitoringPoint">
  10004. <PropertyRef Name="SiteId" />
  10005. <PropertyRef Name="FacilityCode" />
  10006. <PropertyRef Name="PropertyId" />
  10007. </Principal>
  10008. <Dependent Role="BemsMonitoringPointHistoryDaily">
  10009. <PropertyRef Name="SiteId" />
  10010. <PropertyRef Name="FacilityCode" />
  10011. <PropertyRef Name="PropertyId" />
  10012. </Dependent>
  10013. </ReferentialConstraint>
  10014. </Association>
  10015. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  10016. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  10017. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  10018. <ReferentialConstraint>
  10019. <Principal Role="BemsMonitoringPoint">
  10020. <PropertyRef Name="SiteId" />
  10021. <PropertyRef Name="FacilityCode" />
  10022. <PropertyRef Name="PropertyId" />
  10023. </Principal>
  10024. <Dependent Role="BemsMonitoringPointHistoryHourly">
  10025. <PropertyRef Name="SiteId" />
  10026. <PropertyRef Name="FacilityCode" />
  10027. <PropertyRef Name="PropertyId" />
  10028. </Dependent>
  10029. </ReferentialConstraint>
  10030. </Association>
  10031. <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
  10032. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  10033. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  10034. <ReferentialConstraint>
  10035. <Principal Role="BemsServiceType">
  10036. <PropertyRef Name="ServiceTypeId" />
  10037. </Principal>
  10038. <Dependent Role="BemsMonitoringPointBaseData">
  10039. <PropertyRef Name="ServiceTypeId" />
  10040. </Dependent>
  10041. </ReferentialConstraint>
  10042. </Association>
  10043. <Association Name="FK_CmAnnouncement_CmBusinessField">
  10044. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10045. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  10046. <ReferentialConstraint>
  10047. <Principal Role="CmBusinessField">
  10048. <PropertyRef Name="SiteId" />
  10049. <PropertyRef Name="BusinessFieldId" />
  10050. </Principal>
  10051. <Dependent Role="CmAnnouncement">
  10052. <PropertyRef Name="SiteId" />
  10053. <PropertyRef Name="BusinessFieldId" />
  10054. </Dependent>
  10055. </ReferentialConstraint>
  10056. </Association>
  10057. <Association Name="FK_CmAnnouncement_CmFile">
  10058. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10059. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  10060. <ReferentialConstraint>
  10061. <Principal Role="CmFile">
  10062. <PropertyRef Name="SiteId" />
  10063. <PropertyRef Name="FileId" />
  10064. </Principal>
  10065. <Dependent Role="CmAnnouncement">
  10066. <PropertyRef Name="SiteId" />
  10067. <PropertyRef Name="FileId" />
  10068. </Dependent>
  10069. </ReferentialConstraint>
  10070. </Association>
  10071. <Association Name="FK_CmAnnouncement_CmUser">
  10072. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10073. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  10074. <ReferentialConstraint>
  10075. <Principal Role="CmUser">
  10076. <PropertyRef Name="SiteId" />
  10077. <PropertyRef Name="UserId" />
  10078. </Principal>
  10079. <Dependent Role="CmAnnouncement">
  10080. <PropertyRef Name="SiteId" />
  10081. <PropertyRef Name="RegisterUserId" />
  10082. </Dependent>
  10083. </ReferentialConstraint>
  10084. </Association>
  10085. <Association Name="FK__CmFloor__3CF40B7E">
  10086. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  10087. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
  10088. <ReferentialConstraint>
  10089. <Principal Role="CmBuilding">
  10090. <PropertyRef Name="SiteId" />
  10091. <PropertyRef Name="BuildingId" />
  10092. </Principal>
  10093. <Dependent Role="CmFloor">
  10094. <PropertyRef Name="SiteId" />
  10095. <PropertyRef Name="BuildingId" />
  10096. </Dependent>
  10097. </ReferentialConstraint>
  10098. </Association>
  10099. <Association Name="FK__CmZone__CmBuilding">
  10100. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  10101. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  10102. <ReferentialConstraint>
  10103. <Principal Role="CmBuilding">
  10104. <PropertyRef Name="SiteId" />
  10105. <PropertyRef Name="BuildingId" />
  10106. </Principal>
  10107. <Dependent Role="CmZone">
  10108. <PropertyRef Name="SiteId" />
  10109. <PropertyRef Name="BuildingId" />
  10110. </Dependent>
  10111. </ReferentialConstraint>
  10112. </Association>
  10113. <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
  10114. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  10115. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  10116. <ReferentialConstraint>
  10117. <Principal Role="CmBuilding">
  10118. <PropertyRef Name="SiteId" />
  10119. <PropertyRef Name="BuildingId" />
  10120. </Principal>
  10121. <Dependent Role="CmZoneTempHumiSet">
  10122. <PropertyRef Name="SiteId" />
  10123. <PropertyRef Name="BuildingId" />
  10124. </Dependent>
  10125. </ReferentialConstraint>
  10126. </Association>
  10127. <Association Name="FK__CmFacilityManual__7BE56230">
  10128. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10129. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  10130. <ReferentialConstraint>
  10131. <Principal Role="CmBusinessField">
  10132. <PropertyRef Name="SiteId" />
  10133. <PropertyRef Name="BusinessFieldId" />
  10134. </Principal>
  10135. <Dependent Role="FmsFacilityManual">
  10136. <PropertyRef Name="SiteId" />
  10137. <PropertyRef Name="BusinessFieldId" />
  10138. </Dependent>
  10139. </ReferentialConstraint>
  10140. </Association>
  10141. <Association Name="FK__FmsLicense__CmBusinessField">
  10142. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  10143. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  10144. <ReferentialConstraint>
  10145. <Principal Role="CmBusinessField">
  10146. <PropertyRef Name="SiteId" />
  10147. <PropertyRef Name="BusinessFieldId" />
  10148. </Principal>
  10149. <Dependent Role="FmsLicense">
  10150. <PropertyRef Name="SiteId" />
  10151. <PropertyRef Name="BusinessFieldId" />
  10152. </Dependent>
  10153. </ReferentialConstraint>
  10154. </Association>
  10155. <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
  10156. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10157. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  10158. <ReferentialConstraint>
  10159. <Principal Role="CmBusinessField">
  10160. <PropertyRef Name="SiteId" />
  10161. <PropertyRef Name="BusinessFieldId" />
  10162. </Principal>
  10163. <Dependent Role="FmsMaterialCarriedForward">
  10164. <PropertyRef Name="SiteId" />
  10165. <PropertyRef Name="BusinessFieldId" />
  10166. </Dependent>
  10167. </ReferentialConstraint>
  10168. </Association>
  10169. <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
  10170. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10171. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  10172. <ReferentialConstraint>
  10173. <Principal Role="CmBusinessField">
  10174. <PropertyRef Name="SiteId" />
  10175. <PropertyRef Name="BusinessFieldId" />
  10176. </Principal>
  10177. <Dependent Role="FmsMaterialCodeLocation">
  10178. <PropertyRef Name="SiteId" />
  10179. <PropertyRef Name="BusinessFieldId" />
  10180. </Dependent>
  10181. </ReferentialConstraint>
  10182. </Association>
  10183. <Association Name="FK__FmsMaterialOrder__CmBusinessField">
  10184. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10185. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  10186. <ReferentialConstraint>
  10187. <Principal Role="CmBusinessField">
  10188. <PropertyRef Name="SiteId" />
  10189. <PropertyRef Name="BusinessFieldId" />
  10190. </Principal>
  10191. <Dependent Role="FmsMaterialPurchaseOrder">
  10192. <PropertyRef Name="SiteId" />
  10193. <PropertyRef Name="BusinessFieldId" />
  10194. </Dependent>
  10195. </ReferentialConstraint>
  10196. </Association>
  10197. <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
  10198. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10199. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  10200. <ReferentialConstraint>
  10201. <Principal Role="CmBusinessField">
  10202. <PropertyRef Name="SiteId" />
  10203. <PropertyRef Name="BusinessFieldId" />
  10204. </Principal>
  10205. <Dependent Role="FmsMaterialPurchaseRequest">
  10206. <PropertyRef Name="SiteId" />
  10207. <PropertyRef Name="BusinessFieldId" />
  10208. </Dependent>
  10209. </ReferentialConstraint>
  10210. </Association>
  10211. <Association Name="FK__FmsMaterialStored__CmBusinessField">
  10212. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10213. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  10214. <ReferentialConstraint>
  10215. <Principal Role="CmBusinessField">
  10216. <PropertyRef Name="SiteId" />
  10217. <PropertyRef Name="BusinessFieldId" />
  10218. </Principal>
  10219. <Dependent Role="FmsMaterialStored">
  10220. <PropertyRef Name="SiteId" />
  10221. <PropertyRef Name="BusinessFieldId" />
  10222. </Dependent>
  10223. </ReferentialConstraint>
  10224. </Association>
  10225. <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
  10226. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10227. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  10228. <ReferentialConstraint>
  10229. <Principal Role="CmBusinessField">
  10230. <PropertyRef Name="SiteId" />
  10231. <PropertyRef Name="BusinessFieldId" />
  10232. </Principal>
  10233. <Dependent Role="FmsMaterialWarehouse">
  10234. <PropertyRef Name="SiteId" />
  10235. <PropertyRef Name="BusinessFieldId" />
  10236. </Dependent>
  10237. </ReferentialConstraint>
  10238. </Association>
  10239. <Association Name="FK__FmsWorkOrder__CmBusinessField">
  10240. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10241. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  10242. <ReferentialConstraint>
  10243. <Principal Role="CmBusinessField">
  10244. <PropertyRef Name="SiteId" />
  10245. <PropertyRef Name="BusinessFieldId" />
  10246. </Principal>
  10247. <Dependent Role="FmsWorkOrder">
  10248. <PropertyRef Name="SiteId" />
  10249. <PropertyRef Name="BusinessFieldId" />
  10250. </Dependent>
  10251. </ReferentialConstraint>
  10252. </Association>
  10253. <Association Name="FK__FmsWorkRequest__CmBusinessField">
  10254. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10255. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  10256. <ReferentialConstraint>
  10257. <Principal Role="CmBusinessField">
  10258. <PropertyRef Name="SiteId" />
  10259. <PropertyRef Name="BusinessFieldId" />
  10260. </Principal>
  10261. <Dependent Role="FmsWorkRequest">
  10262. <PropertyRef Name="SiteId" />
  10263. <PropertyRef Name="BusinessFieldId" />
  10264. </Dependent>
  10265. </ReferentialConstraint>
  10266. </Association>
  10267. <Association Name="FK_CmUser_CmBusinessField">
  10268. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  10269. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10270. <ReferentialConstraint>
  10271. <Principal Role="CmBusinessField">
  10272. <PropertyRef Name="SiteId" />
  10273. <PropertyRef Name="BusinessFieldId" />
  10274. </Principal>
  10275. <Dependent Role="CmUser">
  10276. <PropertyRef Name="SiteId" />
  10277. <PropertyRef Name="BusinessFieldId" />
  10278. </Dependent>
  10279. </ReferentialConstraint>
  10280. </Association>
  10281. <Association Name="FK__CmCompany__345EC57D">
  10282. <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
  10283. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  10284. <ReferentialConstraint>
  10285. <Principal Role="CmCompanyType">
  10286. <PropertyRef Name="SiteId" />
  10287. <PropertyRef Name="CompanyTypeId" />
  10288. </Principal>
  10289. <Dependent Role="CmCompany">
  10290. <PropertyRef Name="SiteId" />
  10291. <PropertyRef Name="CompanyTypeId" />
  10292. </Dependent>
  10293. </ReferentialConstraint>
  10294. </Association>
  10295. <Association Name="FK__CmDepartment__3552E9B6">
  10296. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
  10297. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
  10298. <ReferentialConstraint>
  10299. <Principal Role="CmCompany">
  10300. <PropertyRef Name="SiteId" />
  10301. <PropertyRef Name="CompanyId" />
  10302. </Principal>
  10303. <Dependent Role="CmDepartment">
  10304. <PropertyRef Name="SiteId" />
  10305. <PropertyRef Name="CompanyId" />
  10306. </Dependent>
  10307. </ReferentialConstraint>
  10308. </Association>
  10309. <Association Name="FK_CmUser_CmCompany">
  10310. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  10311. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10312. <ReferentialConstraint>
  10313. <Principal Role="CmCompany">
  10314. <PropertyRef Name="SiteId" />
  10315. <PropertyRef Name="CompanyId" />
  10316. </Principal>
  10317. <Dependent Role="CmUser">
  10318. <PropertyRef Name="SiteId" />
  10319. <PropertyRef Name="CompanyId" />
  10320. </Dependent>
  10321. </ReferentialConstraint>
  10322. </Association>
  10323. <Association Name="FK_CmUser_CmDepartment">
  10324. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  10325. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10326. <ReferentialConstraint>
  10327. <Principal Role="CmDepartment">
  10328. <PropertyRef Name="SiteId" />
  10329. <PropertyRef Name="CompanyId" />
  10330. <PropertyRef Name="DepartmentId" />
  10331. </Principal>
  10332. <Dependent Role="CmUser">
  10333. <PropertyRef Name="SiteId" />
  10334. <PropertyRef Name="CompanyId" />
  10335. <PropertyRef Name="DepartmentId" />
  10336. </Dependent>
  10337. </ReferentialConstraint>
  10338. </Association>
  10339. <Association Name="FK_FmsAccident_CmDepartment">
  10340. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  10341. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10342. <ReferentialConstraint>
  10343. <Principal Role="CmDepartment">
  10344. <PropertyRef Name="SiteId" />
  10345. <PropertyRef Name="CompanyId" />
  10346. <PropertyRef Name="DepartmentId" />
  10347. </Principal>
  10348. <Dependent Role="FmsAccident">
  10349. <PropertyRef Name="SiteId" />
  10350. <PropertyRef Name="CompanyId" />
  10351. <PropertyRef Name="DepartmentId" />
  10352. </Dependent>
  10353. </ReferentialConstraint>
  10354. </Association>
  10355. <Association Name="FK__CmFacilityFile__CmFile">
  10356. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  10357. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
  10358. <ReferentialConstraint>
  10359. <Principal Role="CmFile">
  10360. <PropertyRef Name="SiteId" />
  10361. <PropertyRef Name="FileId" />
  10362. </Principal>
  10363. <Dependent Role="CmFacilityFile">
  10364. <PropertyRef Name="SiteId" />
  10365. <PropertyRef Name="FileId" />
  10366. </Dependent>
  10367. </ReferentialConstraint>
  10368. </Association>
  10369. <Association Name="FK__CmFile__CmFileCategory">
  10370. <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
  10371. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  10372. <ReferentialConstraint>
  10373. <Principal Role="CmFileCategory">
  10374. <PropertyRef Name="FileCategoryId" />
  10375. </Principal>
  10376. <Dependent Role="CmFile">
  10377. <PropertyRef Name="FileCategoryId" />
  10378. </Dependent>
  10379. </ReferentialConstraint>
  10380. </Association>
  10381. <Association Name="FK__FmsDrawingHistor__04DA9AE4">
  10382. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10383. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  10384. <ReferentialConstraint>
  10385. <Principal Role="CmFile">
  10386. <PropertyRef Name="SiteId" />
  10387. <PropertyRef Name="FileId" />
  10388. </Principal>
  10389. <Dependent Role="FmsDrawingHistory">
  10390. <PropertyRef Name="SiteId" />
  10391. <PropertyRef Name="FileId" />
  10392. </Dependent>
  10393. </ReferentialConstraint>
  10394. </Association>
  10395. <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
  10396. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10397. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  10398. <ReferentialConstraint>
  10399. <Principal Role="CmFile">
  10400. <PropertyRef Name="SiteId" />
  10401. <PropertyRef Name="FileId" />
  10402. </Principal>
  10403. <Dependent Role="FmsMaterialPurchaseOrder">
  10404. <PropertyRef Name="SiteId" />
  10405. <PropertyRef Name="FileId" />
  10406. </Dependent>
  10407. </ReferentialConstraint>
  10408. </Association>
  10409. <Association Name="FK__FmsWorkResultFile__CmFile">
  10410. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  10411. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
  10412. <ReferentialConstraint>
  10413. <Principal Role="CmFile">
  10414. <PropertyRef Name="SiteId" />
  10415. <PropertyRef Name="FileId" />
  10416. </Principal>
  10417. <Dependent Role="FmsWorkResultFile">
  10418. <PropertyRef Name="SiteId" />
  10419. <PropertyRef Name="FileId" />
  10420. </Dependent>
  10421. </ReferentialConstraint>
  10422. </Association>
  10423. <Association Name="FK_FmsAccident_CmFile1">
  10424. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10425. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10426. <ReferentialConstraint>
  10427. <Principal Role="CmFile">
  10428. <PropertyRef Name="SiteId" />
  10429. <PropertyRef Name="FileId" />
  10430. </Principal>
  10431. <Dependent Role="FmsAccident">
  10432. <PropertyRef Name="SiteId" />
  10433. <PropertyRef Name="FileId1" />
  10434. </Dependent>
  10435. </ReferentialConstraint>
  10436. </Association>
  10437. <Association Name="FK_FmsAccident_CmFile2">
  10438. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10439. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10440. <ReferentialConstraint>
  10441. <Principal Role="CmFile">
  10442. <PropertyRef Name="SiteId" />
  10443. <PropertyRef Name="FileId" />
  10444. </Principal>
  10445. <Dependent Role="FmsAccident">
  10446. <PropertyRef Name="SiteId" />
  10447. <PropertyRef Name="FileId2" />
  10448. </Dependent>
  10449. </ReferentialConstraint>
  10450. </Association>
  10451. <Association Name="FK_FmsAccident_CmFile3">
  10452. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10453. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10454. <ReferentialConstraint>
  10455. <Principal Role="CmFile">
  10456. <PropertyRef Name="SiteId" />
  10457. <PropertyRef Name="FileId" />
  10458. </Principal>
  10459. <Dependent Role="FmsAccident">
  10460. <PropertyRef Name="SiteId" />
  10461. <PropertyRef Name="FileId3" />
  10462. </Dependent>
  10463. </ReferentialConstraint>
  10464. </Association>
  10465. <Association Name="FK_FmsConstruction_CmFile1">
  10466. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10467. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10468. <ReferentialConstraint>
  10469. <Principal Role="CmFile">
  10470. <PropertyRef Name="SiteId" />
  10471. <PropertyRef Name="FileId" />
  10472. </Principal>
  10473. <Dependent Role="FmsConstruction">
  10474. <PropertyRef Name="SiteId" />
  10475. <PropertyRef Name="FileId1" />
  10476. </Dependent>
  10477. </ReferentialConstraint>
  10478. </Association>
  10479. <Association Name="FK_FmsConstruction_CmFile2">
  10480. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10481. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10482. <ReferentialConstraint>
  10483. <Principal Role="CmFile">
  10484. <PropertyRef Name="SiteId" />
  10485. <PropertyRef Name="FileId" />
  10486. </Principal>
  10487. <Dependent Role="FmsConstruction">
  10488. <PropertyRef Name="SiteId" />
  10489. <PropertyRef Name="FileId2" />
  10490. </Dependent>
  10491. </ReferentialConstraint>
  10492. </Association>
  10493. <Association Name="FK_FmsConstruction_CmFile3">
  10494. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10495. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10496. <ReferentialConstraint>
  10497. <Principal Role="CmFile">
  10498. <PropertyRef Name="SiteId" />
  10499. <PropertyRef Name="FileId" />
  10500. </Principal>
  10501. <Dependent Role="FmsConstruction">
  10502. <PropertyRef Name="SiteId" />
  10503. <PropertyRef Name="FileId3" />
  10504. </Dependent>
  10505. </ReferentialConstraint>
  10506. </Association>
  10507. <Association Name="FK_FmsManualHistory_CmFile">
  10508. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10509. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  10510. <ReferentialConstraint>
  10511. <Principal Role="CmFile">
  10512. <PropertyRef Name="SiteId" />
  10513. <PropertyRef Name="FileId" />
  10514. </Principal>
  10515. <Dependent Role="FmsManualHistory">
  10516. <PropertyRef Name="SiteId" />
  10517. <PropertyRef Name="FileId" />
  10518. </Dependent>
  10519. </ReferentialConstraint>
  10520. </Association>
  10521. <Association Name="FK__CmLocation__3DE82FB7">
  10522. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  10523. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  10524. <ReferentialConstraint>
  10525. <Principal Role="CmFloor">
  10526. <PropertyRef Name="SiteId" />
  10527. <PropertyRef Name="BuildingId" />
  10528. <PropertyRef Name="FloorId" />
  10529. </Principal>
  10530. <Dependent Role="CmZone">
  10531. <PropertyRef Name="SiteId" />
  10532. <PropertyRef Name="BuildingId" />
  10533. <PropertyRef Name="FloorId" />
  10534. </Dependent>
  10535. </ReferentialConstraint>
  10536. </Association>
  10537. <Association Name="FK_CmZoneTempHumiSet_CmFloor">
  10538. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  10539. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  10540. <ReferentialConstraint>
  10541. <Principal Role="CmFloor">
  10542. <PropertyRef Name="SiteId" />
  10543. <PropertyRef Name="BuildingId" />
  10544. <PropertyRef Name="FloorId" />
  10545. </Principal>
  10546. <Dependent Role="CmZoneTempHumiSet">
  10547. <PropertyRef Name="SiteId" />
  10548. <PropertyRef Name="BuildingId" />
  10549. <PropertyRef Name="FloorId" />
  10550. </Dependent>
  10551. </ReferentialConstraint>
  10552. </Association>
  10553. <Association Name="FK_CmUser_CmPosition">
  10554. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
  10555. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10556. <ReferentialConstraint>
  10557. <Principal Role="CmPosition">
  10558. <PropertyRef Name="SiteId" />
  10559. <PropertyRef Name="PositionId" />
  10560. </Principal>
  10561. <Dependent Role="CmUser">
  10562. <PropertyRef Name="SiteId" />
  10563. <PropertyRef Name="PositionId" />
  10564. </Dependent>
  10565. </ReferentialConstraint>
  10566. </Association>
  10567. <Association Name="FK__CmUserToLicense__CmUser">
  10568. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10569. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  10570. <ReferentialConstraint>
  10571. <Principal Role="CmUser">
  10572. <PropertyRef Name="SiteId" />
  10573. <PropertyRef Name="UserId" />
  10574. </Principal>
  10575. <Dependent Role="CmUserToLicense">
  10576. <PropertyRef Name="SiteId" />
  10577. <PropertyRef Name="UserId" />
  10578. </Dependent>
  10579. </ReferentialConstraint>
  10580. </Association>
  10581. <Association Name="FK__FmsDrawingHistory__CmUser">
  10582. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10583. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  10584. <ReferentialConstraint>
  10585. <Principal Role="CmUser">
  10586. <PropertyRef Name="SiteId" />
  10587. <PropertyRef Name="UserId" />
  10588. </Principal>
  10589. <Dependent Role="FmsDrawingHistory">
  10590. <PropertyRef Name="SiteId" />
  10591. <PropertyRef Name="UpdatedUserId" />
  10592. </Dependent>
  10593. </ReferentialConstraint>
  10594. </Association>
  10595. <Association Name="FK__FmsMaterialOrder__CmUser">
  10596. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10597. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  10598. <ReferentialConstraint>
  10599. <Principal Role="CmUser">
  10600. <PropertyRef Name="SiteId" />
  10601. <PropertyRef Name="UserId" />
  10602. </Principal>
  10603. <Dependent Role="FmsMaterialPurchaseOrder">
  10604. <PropertyRef Name="SiteId" />
  10605. <PropertyRef Name="OrderUserId" />
  10606. </Dependent>
  10607. </ReferentialConstraint>
  10608. </Association>
  10609. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  10610. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10611. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  10612. <ReferentialConstraint>
  10613. <Principal Role="CmUser">
  10614. <PropertyRef Name="SiteId" />
  10615. <PropertyRef Name="UserId" />
  10616. </Principal>
  10617. <Dependent Role="FmsMaterialPurchaseRequest">
  10618. <PropertyRef Name="SiteId" />
  10619. <PropertyRef Name="RequestUserId" />
  10620. </Dependent>
  10621. </ReferentialConstraint>
  10622. </Association>
  10623. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  10624. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10625. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  10626. <ReferentialConstraint>
  10627. <Principal Role="CmUser">
  10628. <PropertyRef Name="SiteId" />
  10629. <PropertyRef Name="UserId" />
  10630. </Principal>
  10631. <Dependent Role="FmsMaterialPurchaseRequest">
  10632. <PropertyRef Name="SiteId" />
  10633. <PropertyRef Name="ApprovalUserId" />
  10634. </Dependent>
  10635. </ReferentialConstraint>
  10636. </Association>
  10637. <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
  10638. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10639. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  10640. <ReferentialConstraint>
  10641. <Principal Role="CmUser">
  10642. <PropertyRef Name="SiteId" />
  10643. <PropertyRef Name="UserId" />
  10644. </Principal>
  10645. <Dependent Role="FmsMaterialStored">
  10646. <PropertyRef Name="SiteId" />
  10647. <PropertyRef Name="StoredUserId" />
  10648. </Dependent>
  10649. </ReferentialConstraint>
  10650. </Association>
  10651. <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  10652. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10653. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  10654. <ReferentialConstraint>
  10655. <Principal Role="CmUser">
  10656. <PropertyRef Name="SiteId" />
  10657. <PropertyRef Name="UserId" />
  10658. </Principal>
  10659. <Dependent Role="FmsMaterialStored">
  10660. <PropertyRef Name="SiteId" />
  10661. <PropertyRef Name="ApprovalUserId" />
  10662. </Dependent>
  10663. </ReferentialConstraint>
  10664. </Association>
  10665. <Association Name="FK__FmsWorkOrder__CmUser">
  10666. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10667. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  10668. <ReferentialConstraint>
  10669. <Principal Role="CmUser">
  10670. <PropertyRef Name="SiteId" />
  10671. <PropertyRef Name="UserId" />
  10672. </Principal>
  10673. <Dependent Role="FmsWorkOrder">
  10674. <PropertyRef Name="SiteId" />
  10675. <PropertyRef Name="OrderUserId" />
  10676. </Dependent>
  10677. </ReferentialConstraint>
  10678. </Association>
  10679. <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
  10680. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10681. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  10682. <ReferentialConstraint>
  10683. <Principal Role="CmUser">
  10684. <PropertyRef Name="SiteId" />
  10685. <PropertyRef Name="UserId" />
  10686. </Principal>
  10687. <Dependent Role="FmsWorkRequest">
  10688. <PropertyRef Name="SiteId" />
  10689. <PropertyRef Name="RequestUserId" />
  10690. </Dependent>
  10691. </ReferentialConstraint>
  10692. </Association>
  10693. <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  10694. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10695. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  10696. <ReferentialConstraint>
  10697. <Principal Role="CmUser">
  10698. <PropertyRef Name="SiteId" />
  10699. <PropertyRef Name="UserId" />
  10700. </Principal>
  10701. <Dependent Role="FmsWorkRequest">
  10702. <PropertyRef Name="SiteId" />
  10703. <PropertyRef Name="RejectUserId" />
  10704. </Dependent>
  10705. </ReferentialConstraint>
  10706. </Association>
  10707. <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
  10708. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10709. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  10710. <ReferentialConstraint>
  10711. <Principal Role="CmUser">
  10712. <PropertyRef Name="SiteId" />
  10713. <PropertyRef Name="UserId" />
  10714. </Principal>
  10715. <Dependent Role="FmsWorkResult">
  10716. <PropertyRef Name="SiteId" />
  10717. <PropertyRef Name="WorkerUserId" />
  10718. </Dependent>
  10719. </ReferentialConstraint>
  10720. </Association>
  10721. <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  10722. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10723. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  10724. <ReferentialConstraint>
  10725. <Principal Role="CmUser">
  10726. <PropertyRef Name="SiteId" />
  10727. <PropertyRef Name="UserId" />
  10728. </Principal>
  10729. <Dependent Role="FmsWorkResult">
  10730. <PropertyRef Name="SiteId" />
  10731. <PropertyRef Name="ConfirmedUserId" />
  10732. </Dependent>
  10733. </ReferentialConstraint>
  10734. </Association>
  10735. <Association Name="FK_CmUser_CmUserGroup">
  10736. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
  10737. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10738. <ReferentialConstraint>
  10739. <Principal Role="CmUserGroup">
  10740. <PropertyRef Name="SiteId" />
  10741. <PropertyRef Name="UserGroupId" />
  10742. </Principal>
  10743. <Dependent Role="CmUser">
  10744. <PropertyRef Name="SiteId" />
  10745. <PropertyRef Name="UserGroupId" />
  10746. </Dependent>
  10747. </ReferentialConstraint>
  10748. </Association>
  10749. <Association Name="FK_CmUserLoginHistory_CmUser">
  10750. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10751. <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
  10752. <ReferentialConstraint>
  10753. <Principal Role="CmUser">
  10754. <PropertyRef Name="SiteId" />
  10755. <PropertyRef Name="UserId" />
  10756. </Principal>
  10757. <Dependent Role="CmUserLoginHistory">
  10758. <PropertyRef Name="SiteId" />
  10759. <PropertyRef Name="UserId" />
  10760. </Dependent>
  10761. </ReferentialConstraint>
  10762. </Association>
  10763. <Association Name="FK_FmsConstructionEstimation_CmUser">
  10764. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10765. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
  10766. <ReferentialConstraint>
  10767. <Principal Role="CmUser">
  10768. <PropertyRef Name="SiteId" />
  10769. <PropertyRef Name="UserId" />
  10770. </Principal>
  10771. <Dependent Role="FmsConstructionEstimation">
  10772. <PropertyRef Name="SiteId" />
  10773. <PropertyRef Name="EstimateUserId" />
  10774. </Dependent>
  10775. </ReferentialConstraint>
  10776. </Association>
  10777. <Association Name="FK_FmsManualHistory_CmUser">
  10778. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10779. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  10780. <ReferentialConstraint>
  10781. <Principal Role="CmUser">
  10782. <PropertyRef Name="SiteId" />
  10783. <PropertyRef Name="UserId" />
  10784. </Principal>
  10785. <Dependent Role="FmsManualHistory">
  10786. <PropertyRef Name="SiteId" />
  10787. <PropertyRef Name="UpdatedUserId" />
  10788. </Dependent>
  10789. </ReferentialConstraint>
  10790. </Association>
  10791. <Association Name="FK__CmUserGroupPermission__CmUserGroup">
  10792. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
  10793. <OnDelete Action="Cascade" />
  10794. </End>
  10795. <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
  10796. <ReferentialConstraint>
  10797. <Principal Role="CmUserGroup">
  10798. <PropertyRef Name="SiteId" />
  10799. <PropertyRef Name="UserGroupId" />
  10800. </Principal>
  10801. <Dependent Role="CmUserGroupPermission">
  10802. <PropertyRef Name="SiteId" />
  10803. <PropertyRef Name="UserGroupId" />
  10804. </Dependent>
  10805. </ReferentialConstraint>
  10806. </Association>
  10807. <Association Name="FK__CmUserToLicense__FmsLicense">
  10808. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
  10809. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  10810. <ReferentialConstraint>
  10811. <Principal Role="FmsLicense">
  10812. <PropertyRef Name="SiteId" />
  10813. <PropertyRef Name="LicenseId" />
  10814. </Principal>
  10815. <Dependent Role="CmUserToLicense">
  10816. <PropertyRef Name="SiteId" />
  10817. <PropertyRef Name="LicenseId" />
  10818. </Dependent>
  10819. </ReferentialConstraint>
  10820. </Association>
  10821. <Association Name="FK_CmZoneTempHumiSet_CmZone">
  10822. <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
  10823. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
  10824. <ReferentialConstraint>
  10825. <Principal Role="CmZone">
  10826. <PropertyRef Name="SiteId" />
  10827. <PropertyRef Name="BuildingId" />
  10828. <PropertyRef Name="FloorId" />
  10829. <PropertyRef Name="ZoneId" />
  10830. </Principal>
  10831. <Dependent Role="CmZoneTempHumiSet">
  10832. <PropertyRef Name="SiteId" />
  10833. <PropertyRef Name="BuildingId" />
  10834. <PropertyRef Name="FloorId" />
  10835. <PropertyRef Name="ZoneId" />
  10836. </Dependent>
  10837. </ReferentialConstraint>
  10838. </Association>
  10839. <Association Name="FK_FmsAccident_FmsAccidentCodeType">
  10840. <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
  10841. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10842. <ReferentialConstraint>
  10843. <Principal Role="FmsAccidentCodeType">
  10844. <PropertyRef Name="SiteId" />
  10845. <PropertyRef Name="AccidentTypeId" />
  10846. </Principal>
  10847. <Dependent Role="FmsAccident">
  10848. <PropertyRef Name="SiteId" />
  10849. <PropertyRef Name="AccidentTypeId" />
  10850. </Dependent>
  10851. </ReferentialConstraint>
  10852. </Association>
  10853. <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
  10854. <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
  10855. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10856. <ReferentialConstraint>
  10857. <Principal Role="FmsConstructionCodeProgress">
  10858. <PropertyRef Name="ProgressId" />
  10859. </Principal>
  10860. <Dependent Role="FmsConstruction">
  10861. <PropertyRef Name="ProgressId" />
  10862. </Dependent>
  10863. </ReferentialConstraint>
  10864. </Association>
  10865. <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
  10866. <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
  10867. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10868. <ReferentialConstraint>
  10869. <Principal Role="FmsConstructionCodeType">
  10870. <PropertyRef Name="SiteId" />
  10871. <PropertyRef Name="ConstructionTypeId" />
  10872. </Principal>
  10873. <Dependent Role="FmsConstruction">
  10874. <PropertyRef Name="SiteId" />
  10875. <PropertyRef Name="ConstructionTypeId" />
  10876. </Dependent>
  10877. </ReferentialConstraint>
  10878. </Association>
  10879. <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
  10880. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
  10881. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
  10882. <ReferentialConstraint>
  10883. <Principal Role="FmsConstruction">
  10884. <PropertyRef Name="SiteId" />
  10885. <PropertyRef Name="ConstructionId" />
  10886. </Principal>
  10887. <Dependent Role="FmsConstructionEstimation">
  10888. <PropertyRef Name="SiteId" />
  10889. <PropertyRef Name="ConstructionId" />
  10890. </Dependent>
  10891. </ReferentialConstraint>
  10892. </Association>
  10893. <Association Name="FK__FmsDrawing__6E565CE8">
  10894. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
  10895. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  10896. <ReferentialConstraint>
  10897. <Principal Role="FmsDrawingCodeGroup">
  10898. <PropertyRef Name="SiteId" />
  10899. <PropertyRef Name="DrawingGroupId" />
  10900. </Principal>
  10901. <Dependent Role="FmsDrawing">
  10902. <PropertyRef Name="SiteId" />
  10903. <PropertyRef Name="DrawingGroupId" />
  10904. </Dependent>
  10905. </ReferentialConstraint>
  10906. </Association>
  10907. <Association Name="FK__FmsDrawing__6F4A8121">
  10908. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
  10909. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  10910. <ReferentialConstraint>
  10911. <Principal Role="FmsDrawingCodeType">
  10912. <PropertyRef Name="SiteId" />
  10913. <PropertyRef Name="DrawingTypeId" />
  10914. </Principal>
  10915. <Dependent Role="FmsDrawing">
  10916. <PropertyRef Name="SiteId" />
  10917. <PropertyRef Name="DrawingTypeId" />
  10918. </Dependent>
  10919. </ReferentialConstraint>
  10920. </Association>
  10921. <Association Name="FK__FmsDrawingHistor__7132C993">
  10922. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1" />
  10923. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  10924. <ReferentialConstraint>
  10925. <Principal Role="FmsDrawing">
  10926. <PropertyRef Name="SiteId" />
  10927. <PropertyRef Name="DrawingId" />
  10928. </Principal>
  10929. <Dependent Role="FmsDrawingHistory">
  10930. <PropertyRef Name="SiteId" />
  10931. <PropertyRef Name="DrawingId" />
  10932. </Dependent>
  10933. </ReferentialConstraint>
  10934. </Association>
  10935. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  10936. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  10937. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  10938. <ReferentialConstraint>
  10939. <Principal Role="FmsEquipmentCodeStateType">
  10940. <PropertyRef Name="EquipmentStateTypeId" />
  10941. </Principal>
  10942. <Dependent Role="FmsEquipmentHistory">
  10943. <PropertyRef Name="EquipmentStateTypeId" />
  10944. </Dependent>
  10945. </ReferentialConstraint>
  10946. </Association>
  10947. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  10948. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  10949. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  10950. <ReferentialConstraint>
  10951. <Principal Role="FmsWorkCodeCycleUnit">
  10952. <PropertyRef Name="SiteId" />
  10953. <PropertyRef Name="CycleUnitId" />
  10954. </Principal>
  10955. <Dependent Role="FmsFacilityCheckItem">
  10956. <PropertyRef Name="SiteId" />
  10957. <PropertyRef Name="CycleUnitId" />
  10958. </Dependent>
  10959. </ReferentialConstraint>
  10960. </Association>
  10961. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  10962. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  10963. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  10964. <ReferentialConstraint>
  10965. <Principal Role="FmsWorkCodeType">
  10966. <PropertyRef Name="WorkTypeId" />
  10967. </Principal>
  10968. <Dependent Role="FmsFacilityCheckItem">
  10969. <PropertyRef Name="WorkTypeId" />
  10970. </Dependent>
  10971. </ReferentialConstraint>
  10972. </Association>
  10973. <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  10974. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
  10975. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  10976. <ReferentialConstraint>
  10977. <Principal Role="FmsFacilityCheckItem">
  10978. <PropertyRef Name="SiteId" />
  10979. <PropertyRef Name="FacilityCode" />
  10980. <PropertyRef Name="CheckItemId" />
  10981. </Principal>
  10982. <Dependent Role="FmsWorkResultCheckItem">
  10983. <PropertyRef Name="SiteId" />
  10984. <PropertyRef Name="FacilityCode" />
  10985. <PropertyRef Name="CheckItemId" />
  10986. </Dependent>
  10987. </ReferentialConstraint>
  10988. </Association>
  10989. <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  10990. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
  10991. <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  10992. <ReferentialConstraint>
  10993. <Principal Role="FmsFacilityCodeClass">
  10994. <PropertyRef Name="SiteId" />
  10995. <PropertyRef Name="FacilityClassId" />
  10996. </Principal>
  10997. <Dependent Role="FmsFacilityCodeClass1">
  10998. <PropertyRef Name="SiteId" />
  10999. <PropertyRef Name="ParentFacilityClassId" />
  11000. </Dependent>
  11001. </ReferentialConstraint>
  11002. </Association>
  11003. <Association Name="FK_FmsManual_FmsManualType">
  11004. <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
  11005. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
  11006. <ReferentialConstraint>
  11007. <Principal Role="FmsManualType">
  11008. <PropertyRef Name="SiteId" />
  11009. <PropertyRef Name="ManualTypeId" />
  11010. </Principal>
  11011. <Dependent Role="FmsManual">
  11012. <PropertyRef Name="SiteId" />
  11013. <PropertyRef Name="ManualTypeId" />
  11014. </Dependent>
  11015. </ReferentialConstraint>
  11016. </Association>
  11017. <Association Name="FK_FmsManualHistory_FmsManual">
  11018. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
  11019. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  11020. <ReferentialConstraint>
  11021. <Principal Role="FmsManual">
  11022. <PropertyRef Name="SiteId" />
  11023. <PropertyRef Name="ManualId" />
  11024. </Principal>
  11025. <Dependent Role="FmsManualHistory">
  11026. <PropertyRef Name="SiteId" />
  11027. <PropertyRef Name="ManualId" />
  11028. </Dependent>
  11029. </ReferentialConstraint>
  11030. </Association>
  11031. <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  11032. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  11033. <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  11034. <ReferentialConstraint>
  11035. <Principal Role="FmsMaterialCodeClass">
  11036. <PropertyRef Name="SiteId" />
  11037. <PropertyRef Name="MaterialClassId" />
  11038. </Principal>
  11039. <Dependent Role="FmsMaterialCodeClass1">
  11040. <PropertyRef Name="SiteId" />
  11041. <PropertyRef Name="ParentMaterialClassId" />
  11042. </Dependent>
  11043. </ReferentialConstraint>
  11044. </Association>
  11045. <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  11046. <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
  11047. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  11048. <ReferentialConstraint>
  11049. <Principal Role="FmsMaterialCodeProgress">
  11050. <PropertyRef Name="ProgressId" />
  11051. </Principal>
  11052. <Dependent Role="FmsMaterialPurchaseRequest">
  11053. <PropertyRef Name="ProgressId" />
  11054. </Dependent>
  11055. </ReferentialConstraint>
  11056. </Association>
  11057. <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  11058. <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
  11059. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  11060. <ReferentialConstraint>
  11061. <Principal Role="FmsMaterialCodePurchaseType">
  11062. <PropertyRef Name="PurchaseTypeId" />
  11063. </Principal>
  11064. <Dependent Role="FmsMaterialPurchaseRequest">
  11065. <PropertyRef Name="PurchaseTypeId" />
  11066. </Dependent>
  11067. </ReferentialConstraint>
  11068. </Association>
  11069. <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  11070. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  11071. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  11072. <ReferentialConstraint>
  11073. <Principal Role="FmsMaterialTradeCompany">
  11074. <PropertyRef Name="SiteId" />
  11075. <PropertyRef Name="TradeCompanyId" />
  11076. </Principal>
  11077. <Dependent Role="FmsMaterialPurchaseOrder">
  11078. <PropertyRef Name="SiteId" />
  11079. <PropertyRef Name="TradeCompanyId" />
  11080. </Dependent>
  11081. </ReferentialConstraint>
  11082. </Association>
  11083. <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  11084. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
  11085. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  11086. <ReferentialConstraint>
  11087. <Principal Role="FmsMaterialPurchaseRequest">
  11088. <PropertyRef Name="SiteId" />
  11089. <PropertyRef Name="PurchaseRequestId" />
  11090. </Principal>
  11091. <Dependent Role="FmsMaterialPurchaseOrder">
  11092. <PropertyRef Name="SiteId" />
  11093. <PropertyRef Name="PurchaseRequestId" />
  11094. </Dependent>
  11095. </ReferentialConstraint>
  11096. </Association>
  11097. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  11098. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
  11099. <OnDelete Action="Cascade" />
  11100. </End>
  11101. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  11102. <ReferentialConstraint>
  11103. <Principal Role="FmsMaterialPurchaseOrder">
  11104. <PropertyRef Name="SiteId" />
  11105. <PropertyRef Name="PurchaseOrderId" />
  11106. </Principal>
  11107. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  11108. <PropertyRef Name="SiteId" />
  11109. <PropertyRef Name="PurchaseOrderId" />
  11110. </Dependent>
  11111. </ReferentialConstraint>
  11112. </Association>
  11113. <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  11114. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
  11115. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  11116. <ReferentialConstraint>
  11117. <Principal Role="FmsMaterialPurchaseOrder">
  11118. <PropertyRef Name="SiteId" />
  11119. <PropertyRef Name="PurchaseOrderId" />
  11120. </Principal>
  11121. <Dependent Role="FmsMaterialStored">
  11122. <PropertyRef Name="SiteId" />
  11123. <PropertyRef Name="PurchaseOrderId" />
  11124. </Dependent>
  11125. </ReferentialConstraint>
  11126. </Association>
  11127. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  11128. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
  11129. <OnDelete Action="Cascade" />
  11130. </End>
  11131. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  11132. <ReferentialConstraint>
  11133. <Principal Role="FmsMaterialPurchaseRequest">
  11134. <PropertyRef Name="SiteId" />
  11135. <PropertyRef Name="PurchaseRequestId" />
  11136. </Principal>
  11137. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  11138. <PropertyRef Name="SiteId" />
  11139. <PropertyRef Name="PurchaseRequestId" />
  11140. </Dependent>
  11141. </ReferentialConstraint>
  11142. </Association>
  11143. <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
  11144. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
  11145. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  11146. <ReferentialConstraint>
  11147. <Principal Role="FmsMaterialWarehouse">
  11148. <PropertyRef Name="SiteId" />
  11149. <PropertyRef Name="WarehouseId" />
  11150. </Principal>
  11151. <Dependent Role="FmsMaterialStored">
  11152. <PropertyRef Name="SiteId" />
  11153. <PropertyRef Name="WarehouseId" />
  11154. </Dependent>
  11155. </ReferentialConstraint>
  11156. </Association>
  11157. <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
  11158. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
  11159. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  11160. <ReferentialConstraint>
  11161. <Principal Role="FmsWorkCodeCauseClass">
  11162. <PropertyRef Name="SiteId" />
  11163. <PropertyRef Name="CauseClassId" />
  11164. </Principal>
  11165. <Dependent Role="FmsWorkResult">
  11166. <PropertyRef Name="SiteId" />
  11167. <PropertyRef Name="CauseClassId" />
  11168. </Dependent>
  11169. </ReferentialConstraint>
  11170. </Association>
  11171. <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
  11172. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
  11173. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  11174. <ReferentialConstraint>
  11175. <Principal Role="FmsWorkCodeEmergency">
  11176. <PropertyRef Name="SiteId" />
  11177. <PropertyRef Name="EmergencyId" />
  11178. </Principal>
  11179. <Dependent Role="FmsWorkOrder">
  11180. <PropertyRef Name="SiteId" />
  11181. <PropertyRef Name="EmergencyId" />
  11182. </Dependent>
  11183. </ReferentialConstraint>
  11184. </Association>
  11185. <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
  11186. <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
  11187. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  11188. <ReferentialConstraint>
  11189. <Principal Role="FmsWorkCodeProgress">
  11190. <PropertyRef Name="WorkProgressId" />
  11191. </Principal>
  11192. <Dependent Role="FmsWorkRequest">
  11193. <PropertyRef Name="WorkProgressId" />
  11194. </Dependent>
  11195. </ReferentialConstraint>
  11196. </Association>
  11197. <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
  11198. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  11199. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  11200. <ReferentialConstraint>
  11201. <Principal Role="FmsWorkCodeType">
  11202. <PropertyRef Name="WorkTypeId" />
  11203. </Principal>
  11204. <Dependent Role="FmsWorkRequest">
  11205. <PropertyRef Name="WorkTypeId" />
  11206. </Dependent>
  11207. </ReferentialConstraint>
  11208. </Association>
  11209. <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
  11210. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  11211. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
  11212. <ReferentialConstraint>
  11213. <Principal Role="FmsWorkRequest">
  11214. <PropertyRef Name="SiteId" />
  11215. <PropertyRef Name="WorkRequestId" />
  11216. </Principal>
  11217. <Dependent Role="FmsWorkOrder">
  11218. <PropertyRef Name="SiteId" />
  11219. <PropertyRef Name="WorkRequestId" />
  11220. </Dependent>
  11221. </ReferentialConstraint>
  11222. </Association>
  11223. <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
  11224. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
  11225. <OnDelete Action="Cascade" />
  11226. </End>
  11227. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  11228. <ReferentialConstraint>
  11229. <Principal Role="FmsWorkOrder">
  11230. <PropertyRef Name="SiteId" />
  11231. <PropertyRef Name="WorkRequestId" />
  11232. </Principal>
  11233. <Dependent Role="FmsWorkOrderToFacility">
  11234. <PropertyRef Name="SiteId" />
  11235. <PropertyRef Name="WorkRequestId" />
  11236. </Dependent>
  11237. </ReferentialConstraint>
  11238. </Association>
  11239. <Association Name="FK__FmsWorkResult__FmsWorkOrder">
  11240. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
  11241. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  11242. <ReferentialConstraint>
  11243. <Principal Role="FmsWorkOrder">
  11244. <PropertyRef Name="SiteId" />
  11245. <PropertyRef Name="WorkRequestId" />
  11246. </Principal>
  11247. <Dependent Role="FmsWorkResult">
  11248. <PropertyRef Name="SiteId" />
  11249. <PropertyRef Name="WorkRequestId" />
  11250. </Dependent>
  11251. </ReferentialConstraint>
  11252. </Association>
  11253. <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
  11254. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
  11255. <OnDelete Action="Cascade" />
  11256. </End>
  11257. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  11258. <ReferentialConstraint>
  11259. <Principal Role="FmsWorkRequest">
  11260. <PropertyRef Name="SiteId" />
  11261. <PropertyRef Name="WorkRequestId" />
  11262. </Principal>
  11263. <Dependent Role="FmsWorkRequestToFacility">
  11264. <PropertyRef Name="SiteId" />
  11265. <PropertyRef Name="WorkRequestId" />
  11266. </Dependent>
  11267. </ReferentialConstraint>
  11268. </Association>
  11269. <Association Name="FK__FmsWorkResult__FmsWorkRequest">
  11270. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  11271. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  11272. <ReferentialConstraint>
  11273. <Principal Role="FmsWorkRequest">
  11274. <PropertyRef Name="SiteId" />
  11275. <PropertyRef Name="WorkRequestId" />
  11276. </Principal>
  11277. <Dependent Role="FmsWorkResult">
  11278. <PropertyRef Name="SiteId" />
  11279. <PropertyRef Name="WorkRequestId" />
  11280. </Dependent>
  11281. </ReferentialConstraint>
  11282. </Association>
  11283. <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
  11284. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  11285. <OnDelete Action="Cascade" />
  11286. </End>
  11287. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  11288. <ReferentialConstraint>
  11289. <Principal Role="FmsWorkResult">
  11290. <PropertyRef Name="SiteId" />
  11291. <PropertyRef Name="WorkRequestId" />
  11292. </Principal>
  11293. <Dependent Role="FmsWorkResultCheckItem">
  11294. <PropertyRef Name="SiteId" />
  11295. <PropertyRef Name="WorkRequestId" />
  11296. </Dependent>
  11297. </ReferentialConstraint>
  11298. </Association>
  11299. <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
  11300. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  11301. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
  11302. <ReferentialConstraint>
  11303. <Principal Role="FmsWorkResult">
  11304. <PropertyRef Name="SiteId" />
  11305. <PropertyRef Name="WorkRequestId" />
  11306. </Principal>
  11307. <Dependent Role="FmsWorkResultFile">
  11308. <PropertyRef Name="SiteId" />
  11309. <PropertyRef Name="WorkRequestId" />
  11310. </Dependent>
  11311. </ReferentialConstraint>
  11312. </Association>
  11313. <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
  11314. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  11315. <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
  11316. <ReferentialConstraint>
  11317. <Principal Role="FmsWorkResult">
  11318. <PropertyRef Name="SiteId" />
  11319. <PropertyRef Name="WorkRequestId" />
  11320. </Principal>
  11321. <Dependent Role="FmsWorkResultLaw">
  11322. <PropertyRef Name="SiteId" />
  11323. <PropertyRef Name="WorkRequestId" />
  11324. </Dependent>
  11325. </ReferentialConstraint>
  11326. </Association>
  11327. <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
  11328. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  11329. <OnDelete Action="Cascade" />
  11330. </End>
  11331. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  11332. <ReferentialConstraint>
  11333. <Principal Role="FmsWorkResult">
  11334. <PropertyRef Name="SiteId" />
  11335. <PropertyRef Name="WorkRequestId" />
  11336. </Principal>
  11337. <Dependent Role="FmsWorkResultToFacility">
  11338. <PropertyRef Name="SiteId" />
  11339. <PropertyRef Name="WorkRequestId" />
  11340. </Dependent>
  11341. </ReferentialConstraint>
  11342. </Association>
  11343. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  11344. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1">
  11345. <OnDelete Action="Cascade" />
  11346. </End>
  11347. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  11348. <ReferentialConstraint>
  11349. <Principal Role="FmsWorkResultCheckItem">
  11350. <PropertyRef Name="CheckItemId" />
  11351. </Principal>
  11352. <Dependent Role="FmsWorkResultCheckItemMaterial">
  11353. <PropertyRef Name="CheckItemId" />
  11354. </Dependent>
  11355. </ReferentialConstraint>
  11356. </Association>
  11357. <EntityContainer Name="iBemsEntities" annotation:LazyLoadingEnabled="true">
  11358. <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" />
  11359. <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" />
  11360. <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" />
  11361. <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" />
  11362. <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" />
  11363. <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" />
  11364. <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" />
  11365. <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" />
  11366. <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" />
  11367. <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" />
  11368. <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" />
  11369. <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" />
  11370. <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" />
  11371. <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" />
  11372. <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" />
  11373. <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" />
  11374. <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" />
  11375. <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" />
  11376. <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" />
  11377. <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" />
  11378. <EntitySet Name="CmCompany" EntityType="Self.CmCompany" />
  11379. <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" />
  11380. <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" />
  11381. <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" />
  11382. <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" />
  11383. <EntitySet Name="CmFile" EntityType="Self.CmFile" />
  11384. <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" />
  11385. <EntitySet Name="CmFloor" EntityType="Self.CmFloor" />
  11386. <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" />
  11387. <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" />
  11388. <EntitySet Name="CmPosition" EntityType="Self.CmPosition" />
  11389. <EntitySet Name="CmUser" EntityType="Self.CmUser" />
  11390. <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" />
  11391. <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" />
  11392. <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" />
  11393. <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" />
  11394. <EntitySet Name="CmZone" EntityType="Self.CmZone" />
  11395. <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" />
  11396. <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" />
  11397. <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" />
  11398. <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" />
  11399. <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" />
  11400. <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" />
  11401. <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" />
  11402. <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" />
  11403. <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" />
  11404. <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" />
  11405. <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" />
  11406. <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" />
  11407. <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" />
  11408. <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" />
  11409. <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" />
  11410. <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" />
  11411. <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" />
  11412. <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" />
  11413. <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" />
  11414. <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" />
  11415. <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" />
  11416. <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" />
  11417. <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" />
  11418. <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" />
  11419. <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" />
  11420. <EntitySet Name="FmsManual" EntityType="Self.FmsManual" />
  11421. <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" />
  11422. <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" />
  11423. <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" />
  11424. <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" />
  11425. <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" />
  11426. <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" />
  11427. <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" />
  11428. <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" />
  11429. <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" />
  11430. <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" />
  11431. <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" />
  11432. <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" />
  11433. <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" />
  11434. <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" />
  11435. <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" />
  11436. <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" />
  11437. <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" />
  11438. <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" />
  11439. <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" />
  11440. <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" />
  11441. <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" />
  11442. <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" />
  11443. <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" />
  11444. <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" />
  11445. <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" />
  11446. <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" />
  11447. <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" />
  11448. <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" />
  11449. <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" />
  11450. <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" />
  11451. <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" />
  11452. <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" />
  11453. <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" />
  11454. <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" />
  11455. <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" />
  11456. <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" />
  11457. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  11458. <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
  11459. <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
  11460. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  11461. </AssociationSet>
  11462. <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
  11463. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11464. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  11465. </AssociationSet>
  11466. <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
  11467. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11468. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  11469. </AssociationSet>
  11470. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
  11471. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11472. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  11473. </AssociationSet>
  11474. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  11475. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11476. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  11477. </AssociationSet>
  11478. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  11479. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11480. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  11481. </AssociationSet>
  11482. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  11483. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11484. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  11485. </AssociationSet>
  11486. <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  11487. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11488. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  11489. </AssociationSet>
  11490. <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
  11491. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11492. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11493. </AssociationSet>
  11494. <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
  11495. <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
  11496. <End Role="BemsFormula" EntitySet="BemsFormula" />
  11497. </AssociationSet>
  11498. <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
  11499. <End Role="BemsFormula" EntitySet="BemsFormula" />
  11500. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  11501. </AssociationSet>
  11502. <AssociationSet Name="FK__BemsFormulaParameter__BemsMonitoringPoint" Association="Self.FK__BemsFormulaParameter__BemsMonitoringPoint">
  11503. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11504. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  11505. </AssociationSet>
  11506. <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
  11507. <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
  11508. <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
  11509. </AssociationSet>
  11510. <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
  11511. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11512. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  11513. </AssociationSet>
  11514. <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
  11515. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  11516. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11517. </AssociationSet>
  11518. <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
  11519. <End Role="CmBuilding" EntitySet="CmBuilding" />
  11520. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11521. </AssociationSet>
  11522. <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
  11523. <End Role="CmFloor" EntitySet="CmFloor" />
  11524. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11525. </AssociationSet>
  11526. <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
  11527. <End Role="CmZone" EntitySet="CmZone" />
  11528. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11529. </AssociationSet>
  11530. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  11531. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11532. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  11533. </AssociationSet>
  11534. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  11535. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11536. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  11537. </AssociationSet>
  11538. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  11539. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11540. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  11541. </AssociationSet>
  11542. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
  11543. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  11544. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  11545. </AssociationSet>
  11546. <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
  11547. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11548. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  11549. </AssociationSet>
  11550. <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
  11551. <End Role="CmFile" EntitySet="CmFile" />
  11552. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  11553. </AssociationSet>
  11554. <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
  11555. <End Role="CmUser" EntitySet="CmUser" />
  11556. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  11557. </AssociationSet>
  11558. <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
  11559. <End Role="CmBuilding" EntitySet="CmBuilding" />
  11560. <End Role="CmFloor" EntitySet="CmFloor" />
  11561. </AssociationSet>
  11562. <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
  11563. <End Role="CmBuilding" EntitySet="CmBuilding" />
  11564. <End Role="CmZone" EntitySet="CmZone" />
  11565. </AssociationSet>
  11566. <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
  11567. <End Role="CmBuilding" EntitySet="CmBuilding" />
  11568. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  11569. </AssociationSet>
  11570. <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
  11571. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11572. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  11573. </AssociationSet>
  11574. <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
  11575. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11576. <End Role="FmsLicense" EntitySet="FmsLicense" />
  11577. </AssociationSet>
  11578. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
  11579. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11580. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  11581. </AssociationSet>
  11582. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
  11583. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11584. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  11585. </AssociationSet>
  11586. <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
  11587. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11588. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11589. </AssociationSet>
  11590. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
  11591. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11592. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11593. </AssociationSet>
  11594. <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
  11595. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11596. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11597. </AssociationSet>
  11598. <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
  11599. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11600. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  11601. </AssociationSet>
  11602. <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
  11603. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11604. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11605. </AssociationSet>
  11606. <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
  11607. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11608. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11609. </AssociationSet>
  11610. <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
  11611. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11612. <End Role="CmUser" EntitySet="CmUser" />
  11613. </AssociationSet>
  11614. <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
  11615. <End Role="CmCompanyType" EntitySet="CmCompanyType" />
  11616. <End Role="CmCompany" EntitySet="CmCompany" />
  11617. </AssociationSet>
  11618. <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
  11619. <End Role="CmCompany" EntitySet="CmCompany" />
  11620. <End Role="CmDepartment" EntitySet="CmDepartment" />
  11621. </AssociationSet>
  11622. <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
  11623. <End Role="CmCompany" EntitySet="CmCompany" />
  11624. <End Role="CmUser" EntitySet="CmUser" />
  11625. </AssociationSet>
  11626. <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
  11627. <End Role="CmDepartment" EntitySet="CmDepartment" />
  11628. <End Role="CmUser" EntitySet="CmUser" />
  11629. </AssociationSet>
  11630. <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
  11631. <End Role="CmDepartment" EntitySet="CmDepartment" />
  11632. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11633. </AssociationSet>
  11634. <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
  11635. <End Role="CmFile" EntitySet="CmFile" />
  11636. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  11637. </AssociationSet>
  11638. <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
  11639. <End Role="CmFileCategory" EntitySet="CmFileCategory" />
  11640. <End Role="CmFile" EntitySet="CmFile" />
  11641. </AssociationSet>
  11642. <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
  11643. <End Role="CmFile" EntitySet="CmFile" />
  11644. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  11645. </AssociationSet>
  11646. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
  11647. <End Role="CmFile" EntitySet="CmFile" />
  11648. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11649. </AssociationSet>
  11650. <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
  11651. <End Role="CmFile" EntitySet="CmFile" />
  11652. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  11653. </AssociationSet>
  11654. <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
  11655. <End Role="CmFile" EntitySet="CmFile" />
  11656. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11657. </AssociationSet>
  11658. <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
  11659. <End Role="CmFile" EntitySet="CmFile" />
  11660. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11661. </AssociationSet>
  11662. <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
  11663. <End Role="CmFile" EntitySet="CmFile" />
  11664. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11665. </AssociationSet>
  11666. <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
  11667. <End Role="CmFile" EntitySet="CmFile" />
  11668. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11669. </AssociationSet>
  11670. <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
  11671. <End Role="CmFile" EntitySet="CmFile" />
  11672. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11673. </AssociationSet>
  11674. <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
  11675. <End Role="CmFile" EntitySet="CmFile" />
  11676. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11677. </AssociationSet>
  11678. <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
  11679. <End Role="CmFile" EntitySet="CmFile" />
  11680. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  11681. </AssociationSet>
  11682. <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
  11683. <End Role="CmFloor" EntitySet="CmFloor" />
  11684. <End Role="CmZone" EntitySet="CmZone" />
  11685. </AssociationSet>
  11686. <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
  11687. <End Role="CmFloor" EntitySet="CmFloor" />
  11688. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  11689. </AssociationSet>
  11690. <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
  11691. <End Role="CmPosition" EntitySet="CmPosition" />
  11692. <End Role="CmUser" EntitySet="CmUser" />
  11693. </AssociationSet>
  11694. <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
  11695. <End Role="CmUser" EntitySet="CmUser" />
  11696. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  11697. </AssociationSet>
  11698. <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
  11699. <End Role="CmUser" EntitySet="CmUser" />
  11700. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  11701. </AssociationSet>
  11702. <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
  11703. <End Role="CmUser" EntitySet="CmUser" />
  11704. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11705. </AssociationSet>
  11706. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  11707. <End Role="CmUser" EntitySet="CmUser" />
  11708. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11709. </AssociationSet>
  11710. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  11711. <End Role="CmUser" EntitySet="CmUser" />
  11712. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11713. </AssociationSet>
  11714. <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
  11715. <End Role="CmUser" EntitySet="CmUser" />
  11716. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11717. </AssociationSet>
  11718. <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  11719. <End Role="CmUser" EntitySet="CmUser" />
  11720. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11721. </AssociationSet>
  11722. <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
  11723. <End Role="CmUser" EntitySet="CmUser" />
  11724. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11725. </AssociationSet>
  11726. <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
  11727. <End Role="CmUser" EntitySet="CmUser" />
  11728. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11729. </AssociationSet>
  11730. <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  11731. <End Role="CmUser" EntitySet="CmUser" />
  11732. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11733. </AssociationSet>
  11734. <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
  11735. <End Role="CmUser" EntitySet="CmUser" />
  11736. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11737. </AssociationSet>
  11738. <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  11739. <End Role="CmUser" EntitySet="CmUser" />
  11740. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11741. </AssociationSet>
  11742. <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
  11743. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  11744. <End Role="CmUser" EntitySet="CmUser" />
  11745. </AssociationSet>
  11746. <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
  11747. <End Role="CmUser" EntitySet="CmUser" />
  11748. <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
  11749. </AssociationSet>
  11750. <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
  11751. <End Role="CmUser" EntitySet="CmUser" />
  11752. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  11753. </AssociationSet>
  11754. <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
  11755. <End Role="CmUser" EntitySet="CmUser" />
  11756. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  11757. </AssociationSet>
  11758. <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
  11759. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  11760. <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
  11761. </AssociationSet>
  11762. <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
  11763. <End Role="FmsLicense" EntitySet="FmsLicense" />
  11764. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  11765. </AssociationSet>
  11766. <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
  11767. <End Role="CmZone" EntitySet="CmZone" />
  11768. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  11769. </AssociationSet>
  11770. <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
  11771. <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
  11772. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11773. </AssociationSet>
  11774. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
  11775. <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
  11776. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11777. </AssociationSet>
  11778. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
  11779. <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
  11780. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11781. </AssociationSet>
  11782. <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
  11783. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11784. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  11785. </AssociationSet>
  11786. <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
  11787. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  11788. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  11789. </AssociationSet>
  11790. <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
  11791. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  11792. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  11793. </AssociationSet>
  11794. <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
  11795. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  11796. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  11797. </AssociationSet>
  11798. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  11799. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  11800. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  11801. </AssociationSet>
  11802. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  11803. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  11804. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  11805. </AssociationSet>
  11806. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  11807. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  11808. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  11809. </AssociationSet>
  11810. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  11811. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  11812. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  11813. </AssociationSet>
  11814. <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  11815. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  11816. <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
  11817. </AssociationSet>
  11818. <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
  11819. <End Role="FmsManualType" EntitySet="FmsManualType" />
  11820. <End Role="FmsManual" EntitySet="FmsManual" />
  11821. </AssociationSet>
  11822. <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
  11823. <End Role="FmsManual" EntitySet="FmsManual" />
  11824. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  11825. </AssociationSet>
  11826. <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  11827. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  11828. <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
  11829. </AssociationSet>
  11830. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  11831. <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
  11832. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11833. </AssociationSet>
  11834. <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  11835. <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
  11836. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11837. </AssociationSet>
  11838. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  11839. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  11840. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11841. </AssociationSet>
  11842. <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  11843. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11844. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11845. </AssociationSet>
  11846. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  11847. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11848. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  11849. </AssociationSet>
  11850. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  11851. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11852. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11853. </AssociationSet>
  11854. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  11855. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11856. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  11857. </AssociationSet>
  11858. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
  11859. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  11860. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11861. </AssociationSet>
  11862. <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
  11863. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  11864. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11865. </AssociationSet>
  11866. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
  11867. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  11868. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11869. </AssociationSet>
  11870. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
  11871. <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
  11872. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11873. </AssociationSet>
  11874. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
  11875. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  11876. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11877. </AssociationSet>
  11878. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
  11879. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11880. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11881. </AssociationSet>
  11882. <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
  11883. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11884. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  11885. </AssociationSet>
  11886. <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
  11887. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11888. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11889. </AssociationSet>
  11890. <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
  11891. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11892. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  11893. </AssociationSet>
  11894. <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
  11895. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11896. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11897. </AssociationSet>
  11898. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
  11899. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11900. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  11901. </AssociationSet>
  11902. <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
  11903. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11904. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  11905. </AssociationSet>
  11906. <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
  11907. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11908. <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
  11909. </AssociationSet>
  11910. <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
  11911. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11912. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  11913. </AssociationSet>
  11914. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  11915. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  11916. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  11917. </AssociationSet>
  11918. <EntitySet Name="FmsDailyCheckReport" EntityType="iBemsModel.FmsDailyCheckReport" />
  11919. <EntitySet Name="FmsFacilityOperationReport" EntityType="iBemsModel.FmsFacilityOperationReport" />
  11920. <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="iBemsModel.FK_FmsDailyCheckReport_CmUser">
  11921. <End Role="CmUser" EntitySet="CmUser" />
  11922. <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
  11923. </AssociationSet>
  11924. <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="iBemsModel.FK_FmsFacilityOperationReport_CmUser">
  11925. <End Role="CmUser" EntitySet="CmUser" />
  11926. <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
  11927. </AssociationSet>
  11928. <EntitySet Name="FmsBudgetDetail" EntityType="iBemsModel.FmsBudgetDetail" />
  11929. <EntitySet Name="FmsBudgetDetailExecution" EntityType="iBemsModel.FmsBudgetDetailExecution" />
  11930. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudget">
  11931. <End Role="FmsBudget" EntitySet="FmsBudget" />
  11932. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  11933. </AssociationSet>
  11934. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass">
  11935. <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
  11936. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  11937. </AssociationSet>
  11938. <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  11939. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  11940. <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
  11941. </AssociationSet>
  11942. <EntitySet Name="FmsMonthlyReport" EntityType="iBemsModel.FmsMonthlyReport" />
  11943. <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="iBemsModel.FK_FmsMonthlyReport_CmUser">
  11944. <End Role="CmUser" EntitySet="CmUser" />
  11945. <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
  11946. </AssociationSet>
  11947. <EntitySet Name="FmsInvestmentCost" EntityType="iBemsModel.FmsInvestmentCost" />
  11948. <EntitySet Name="CmHolidayWeekend" EntityType="iBemsModel.CmHolidayWeekend" />
  11949. <AssociationSet Name="FK_FmsAccident_CmCompany" Association="iBemsModel.FK_FmsAccident_CmCompany">
  11950. <End Role="CmCompany" EntitySet="CmCompany" />
  11951. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11952. </AssociationSet>
  11953. <EntitySet Name="FmsMaterial" EntityType="iBemsModel.FmsMaterial" />
  11954. <EntitySet Name="FmsMaterialRelease" EntityType="iBemsModel.FmsMaterialRelease" />
  11955. <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="iBemsModel.FK_FmsMaterial_CmBusinessField">
  11956. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11957. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11958. </AssociationSet>
  11959. <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="iBemsModel.FK_FmsMaterialRelease_CmBusinessField">
  11960. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11961. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  11962. </AssociationSet>
  11963. <AssociationSet Name="FK_FmsMaterial_CmFile" Association="iBemsModel.FK_FmsMaterial_CmFile">
  11964. <End Role="CmFile" EntitySet="CmFile" />
  11965. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11966. </AssociationSet>
  11967. <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="iBemsModel.FK_FmsMaterialRelease_CmUser">
  11968. <End Role="CmUser" EntitySet="CmUser" />
  11969. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  11970. </AssociationSet>
  11971. <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="iBemsModel.FK_FmsMaterialRelease_CmUser1">
  11972. <End Role="CmUser" EntitySet="CmUser" />
  11973. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  11974. </AssociationSet>
  11975. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  11976. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  11977. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11978. </AssociationSet>
  11979. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  11980. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  11981. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11982. </AssociationSet>
  11983. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  11984. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  11985. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11986. </AssociationSet>
  11987. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation">
  11988. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  11989. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11990. </AssociationSet>
  11991. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType">
  11992. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  11993. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11994. </AssociationSet>
  11995. <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany">
  11996. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  11997. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11998. </AssociationSet>
  11999. <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse">
  12000. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  12001. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12002. </AssociationSet>
  12003. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  12004. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12005. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  12006. </AssociationSet>
  12007. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  12008. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12009. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  12010. </AssociationSet>
  12011. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterial">
  12012. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12013. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  12014. </AssociationSet>
  12015. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="iBemsModel.FK_FmsMaterialStored_FmsMaterial">
  12016. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12017. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  12018. </AssociationSet>
  12019. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  12020. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12021. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  12022. </AssociationSet>
  12023. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  12024. <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
  12025. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  12026. </AssociationSet>
  12027. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  12028. <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
  12029. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  12030. </AssociationSet>
  12031. <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult">
  12032. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  12033. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  12034. </AssociationSet>
  12035. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  12036. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  12037. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  12038. </AssociationSet>
  12039. <EntitySet Name="CmPatrolType" EntityType="iBemsModel.CmPatrolType" />
  12040. <EntitySet Name="CmPatrolGroup" EntityType="iBemsModel.CmPatrolGroup" />
  12041. <EntitySet Name="CmPatrolGroupUser" EntityType="iBemsModel.CmPatrolGroupUser" />
  12042. <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup">
  12043. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  12044. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  12045. </AssociationSet>
  12046. <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="iBemsModel.FK_CmPatrolGroupUser_CmUser">
  12047. <End Role="CmUser" EntitySet="CmUser" />
  12048. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  12049. </AssociationSet>
  12050. <EntitySet Name="CmPatrolPos" EntityType="iBemsModel.CmPatrolPos" />
  12051. <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="iBemsModel.FK_CmPatrolPos_CmBuilding">
  12052. <End Role="CmBuilding" EntitySet="CmBuilding" />
  12053. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  12054. </AssociationSet>
  12055. <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="iBemsModel.FK_CmPatrolPos_CmFloor">
  12056. <End Role="CmFloor" EntitySet="CmFloor" />
  12057. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  12058. </AssociationSet>
  12059. <EntitySet Name="CmPatrolCourse" EntityType="iBemsModel.CmPatrolCourse" />
  12060. <EntitySet Name="CmPatrolCoursePos" EntityType="iBemsModel.CmPatrolCoursePos" />
  12061. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse">
  12062. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  12063. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  12064. </AssociationSet>
  12065. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos">
  12066. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  12067. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  12068. </AssociationSet>
  12069. <EntitySet Name="CmPatrolPlan" EntityType="iBemsModel.CmPatrolPlan" />
  12070. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse">
  12071. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  12072. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  12073. </AssociationSet>
  12074. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup">
  12075. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  12076. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  12077. </AssociationSet>
  12078. <EntitySet Name="CmPatrolHistoryPos" EntityType="iBemsModel.CmPatrolHistoryPos" />
  12079. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos">
  12080. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  12081. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  12082. </AssociationSet>
  12083. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType">
  12084. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  12085. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  12086. </AssociationSet>
  12087. <EntitySet Name="BemsPeakInfo" EntityType="iBemsModel.BemsPeakInfo" />
  12088. <EntitySet Name="BemsPeakHistory" EntityType="iBemsModel.BemsPeakHistory" />
  12089. <EntitySet Name="CmPatrolSchedule" EntityType="iBemsModel.CmPatrolSchedule" />
  12090. <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan">
  12091. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  12092. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  12093. </AssociationSet>
  12094. <EntitySet Name="BemsNoticePriceBase" EntityType="iBemsModel.BemsNoticePriceBase" />
  12095. <EntitySet Name="BemsNoticePriceContractType" EntityType="iBemsModel.BemsNoticePriceContractType" />
  12096. <EntitySet Name="BemsNoticePriceDetail" EntityType="iBemsModel.BemsNoticePriceDetail" />
  12097. <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  12098. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  12099. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  12100. </AssociationSet>
  12101. <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  12102. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  12103. <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
  12104. </AssociationSet>
  12105. <EntitySet Name="BemsPeakFacility" EntityType="iBemsModel.BemsPeakFacility" />
  12106. <EntitySet Name="CmSite" EntityType="iBemsModel.CmSite" />
  12107. <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="iBemsModel.FK_BemsPeakHIstory_CmSite">
  12108. <End Role="CmSite" EntitySet="CmSite" />
  12109. <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
  12110. </AssociationSet>
  12111. <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="iBemsModel.FK_BemsPeakInfo_CmSite">
  12112. <End Role="CmSite" EntitySet="CmSite" />
  12113. <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
  12114. </AssociationSet>
  12115. <AssociationSet Name="FK__CmBuildin__SiteI__3BFFE745" Association="iBemsModel.FK__CmBuildin__SiteI__3BFFE745">
  12116. <End Role="CmSite" EntitySet="CmSite" />
  12117. <End Role="CmBuilding" EntitySet="CmBuilding" />
  12118. </AssociationSet>
  12119. <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="iBemsModel.FK__CmCompany__SiteI__336AA144">
  12120. <End Role="CmSite" EntitySet="CmSite" />
  12121. <End Role="CmCompany" EntitySet="CmCompany" />
  12122. </AssociationSet>
  12123. <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="iBemsModel.FK_CmFacilityTempSet_CmSite">
  12124. <End Role="CmSite" EntitySet="CmSite" />
  12125. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  12126. </AssociationSet>
  12127. <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="iBemsModel.FK__CmFile__SiteId__2759D01A">
  12128. <End Role="CmSite" EntitySet="CmSite" />
  12129. <End Role="CmFile" EntitySet="CmFile" />
  12130. </AssociationSet>
  12131. <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5">
  12132. <End Role="CmSite" EntitySet="CmSite" />
  12133. <End Role="CmHoliday" EntitySet="CmHoliday" />
  12134. </AssociationSet>
  12135. <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="iBemsModel.FK__CmHoliday__SiteI__65AC084E">
  12136. <End Role="CmSite" EntitySet="CmSite" />
  12137. <End Role="CmHoliday" EntitySet="CmHoliday" />
  12138. </AssociationSet>
  12139. <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="iBemsModel.FK__CmHoliday__SiteI__10766AC2">
  12140. <End Role="CmSite" EntitySet="CmSite" />
  12141. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  12142. </AssociationSet>
  12143. <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="iBemsModel.FK__CmHoliday__SiteI__66A02C87">
  12144. <End Role="CmSite" EntitySet="CmSite" />
  12145. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  12146. </AssociationSet>
  12147. <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="iBemsModel.FK__CmHoliday__SiteI__0D99FE17">
  12148. <End Role="CmSite" EntitySet="CmSite" />
  12149. <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
  12150. </AssociationSet>
  12151. <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="iBemsModel.FK_CmPatrolCourse_CmSite">
  12152. <End Role="CmSite" EntitySet="CmSite" />
  12153. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  12154. </AssociationSet>
  12155. <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="iBemsModel.FK_CmPatrolCoursePos_CmSite">
  12156. <End Role="CmSite" EntitySet="CmSite" />
  12157. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  12158. </AssociationSet>
  12159. <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="iBemsModel.FK_CmPatrolGroup_CmSite">
  12160. <End Role="CmSite" EntitySet="CmSite" />
  12161. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  12162. </AssociationSet>
  12163. <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="iBemsModel.FK_CmPatrolHistoryPos_CmSite">
  12164. <End Role="CmSite" EntitySet="CmSite" />
  12165. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  12166. </AssociationSet>
  12167. <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="iBemsModel.FK_CmPatrolPlan_CmSite">
  12168. <End Role="CmSite" EntitySet="CmSite" />
  12169. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  12170. </AssociationSet>
  12171. <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="iBemsModel.FK_CmPatrolPos_CmSite">
  12172. <End Role="CmSite" EntitySet="CmSite" />
  12173. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  12174. </AssociationSet>
  12175. <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="iBemsModel.FK_CmPatrolSchedule_CmSite">
  12176. <End Role="CmSite" EntitySet="CmSite" />
  12177. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  12178. </AssociationSet>
  12179. <AssociationSet Name="FK_CmPatrolType_CmSite" Association="iBemsModel.FK_CmPatrolType_CmSite">
  12180. <End Role="CmSite" EntitySet="CmSite" />
  12181. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  12182. </AssociationSet>
  12183. <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="iBemsModel.FK__CmPositio__SiteI__6A70BD6B">
  12184. <End Role="CmSite" EntitySet="CmSite" />
  12185. <End Role="CmPosition" EntitySet="CmPosition" />
  12186. </AssociationSet>
  12187. <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="iBemsModel.FK__CmUserPos__SiteI__44952D46">
  12188. <End Role="CmSite" EntitySet="CmSite" />
  12189. <End Role="CmPosition" EntitySet="CmPosition" />
  12190. </AssociationSet>
  12191. <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="iBemsModel.FK__CmUserGro__SiteI__53D770D6">
  12192. <End Role="CmSite" EntitySet="CmSite" />
  12193. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  12194. </AssociationSet>
  12195. <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D">
  12196. <End Role="CmSite" EntitySet="CmSite" />
  12197. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  12198. </AssociationSet>
  12199. <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476">
  12200. <End Role="CmSite" EntitySet="CmSite" />
  12201. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  12202. </AssociationSet>
  12203. <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF">
  12204. <End Role="CmSite" EntitySet="CmSite" />
  12205. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  12206. </AssociationSet>
  12207. <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="iBemsModel.FK__FmsDrawin__SiteI__6F357288">
  12208. <End Role="CmSite" EntitySet="CmSite" />
  12209. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  12210. </AssociationSet>
  12211. <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="iBemsModel.FK__FmsDrawin__SiteI__702996C1">
  12212. <End Role="CmSite" EntitySet="CmSite" />
  12213. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  12214. </AssociationSet>
  12215. <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="iBemsModel.FK__FmsFacilityCodeClass__CmSite">
  12216. <End Role="CmSite" EntitySet="CmSite" />
  12217. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  12218. </AssociationSet>
  12219. <AssociationSet Name="FK__FmsLicense__CmSite" Association="iBemsModel.FK__FmsLicense__CmSite">
  12220. <End Role="CmSite" EntitySet="CmSite" />
  12221. <End Role="FmsLicense" EntitySet="FmsLicense" />
  12222. </AssociationSet>
  12223. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="iBemsModel.FK__FmsMaterialCarriedForward__CmSite">
  12224. <End Role="CmSite" EntitySet="CmSite" />
  12225. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  12226. </AssociationSet>
  12227. <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="iBemsModel.FK__FmsMaterialCodeClass__CmSite">
  12228. <End Role="CmSite" EntitySet="CmSite" />
  12229. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  12230. </AssociationSet>
  12231. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="iBemsModel.FK__FmsMaterialCodeLocation__CmSite">
  12232. <End Role="CmSite" EntitySet="CmSite" />
  12233. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  12234. </AssociationSet>
  12235. <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="iBemsModel.FK__FmsMaterialCodeType__CmSite">
  12236. <End Role="CmSite" EntitySet="CmSite" />
  12237. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  12238. </AssociationSet>
  12239. <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="iBemsModel.FK__FmsMaterialOrder__CmSite">
  12240. <End Role="CmSite" EntitySet="CmSite" />
  12241. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  12242. </AssociationSet>
  12243. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite">
  12244. <End Role="CmSite" EntitySet="CmSite" />
  12245. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  12246. </AssociationSet>
  12247. <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="iBemsModel.FK__FmsMaterialStored__CmSite">
  12248. <End Role="CmSite" EntitySet="CmSite" />
  12249. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  12250. </AssociationSet>
  12251. <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="iBemsModel.FK__FmsMaterialTradeCompany__CmSite">
  12252. <End Role="CmSite" EntitySet="CmSite" />
  12253. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  12254. </AssociationSet>
  12255. <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="iBemsModel.FK__FmsMaterialWarehouse__CmSite">
  12256. <End Role="CmSite" EntitySet="CmSite" />
  12257. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  12258. </AssociationSet>
  12259. <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite">
  12260. <End Role="CmSite" EntitySet="CmSite" />
  12261. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  12262. </AssociationSet>
  12263. <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite">
  12264. <End Role="CmSite" EntitySet="CmSite" />
  12265. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  12266. </AssociationSet>
  12267. <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="iBemsModel.FK__FmsWorkCodeEmergency__CmSite">
  12268. <End Role="CmSite" EntitySet="CmSite" />
  12269. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  12270. </AssociationSet>
  12271. <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite">
  12272. <End Role="CmSite" EntitySet="CmSite" />
  12273. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  12274. </AssociationSet>
  12275. <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  12276. <End Role="CmSite" EntitySet="CmSite" />
  12277. <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
  12278. </AssociationSet>
  12279. <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="iBemsModel.FK__FmsWorkOrder__CmSite">
  12280. <End Role="CmSite" EntitySet="CmSite" />
  12281. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  12282. </AssociationSet>
  12283. <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="iBemsModel.FK__FmsWorkRequest__CmSite">
  12284. <End Role="CmSite" EntitySet="CmSite" />
  12285. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  12286. </AssociationSet>
  12287. <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="iBemsModel.FK_CmZoneTempHumiSet_CmSite">
  12288. <End Role="CmSite" EntitySet="CmSite" />
  12289. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  12290. </AssociationSet>
  12291. <AssociationSet Name="FK_FmsMaterial_CmSite" Association="iBemsModel.FK_FmsMaterial_CmSite">
  12292. <End Role="CmSite" EntitySet="CmSite" />
  12293. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12294. </AssociationSet>
  12295. <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="iBemsModel.FK_FmsMaterialRelease_CmSite">
  12296. <End Role="CmSite" EntitySet="CmSite" />
  12297. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  12298. </AssociationSet>
  12299. <EntitySet Name="FmsReport" EntityType="iBemsModel.FmsReport" />
  12300. <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="iBemsModel.FK_FmsReport_CmBusinessField">
  12301. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  12302. <End Role="FmsReport" EntitySet="FmsReport" />
  12303. </AssociationSet>
  12304. <AssociationSet Name="FK_FmsReport_CmFile" Association="iBemsModel.FK_FmsReport_CmFile">
  12305. <End Role="CmFile" EntitySet="CmFile" />
  12306. <End Role="FmsReport" EntitySet="FmsReport" />
  12307. </AssociationSet>
  12308. <AssociationSet Name="FK_FmsReport_CmSite" Association="iBemsModel.FK_FmsReport_CmSite">
  12309. <End Role="CmSite" EntitySet="CmSite" />
  12310. <End Role="FmsReport" EntitySet="FmsReport" />
  12311. </AssociationSet>
  12312. <AssociationSet Name="FK_FmsReport_CmUser" Association="iBemsModel.FK_FmsReport_CmUser">
  12313. <End Role="CmUser" EntitySet="CmUser" />
  12314. <End Role="FmsReport" EntitySet="FmsReport" />
  12315. </AssociationSet>
  12316. <AssociationSet Name="FK_FmsReport_CmUser1" Association="iBemsModel.FK_FmsReport_CmUser1">
  12317. <End Role="CmUser" EntitySet="CmUser" />
  12318. <End Role="FmsReport" EntitySet="FmsReport" />
  12319. </AssociationSet>
  12320. <AssociationSet Name="FK_FmsReport_CmUser2" Association="iBemsModel.FK_FmsReport_CmUser2">
  12321. <End Role="CmUser" EntitySet="CmUser" />
  12322. <End Role="FmsReport" EntitySet="FmsReport" />
  12323. </AssociationSet>
  12324. <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="iBemsModel.CmServiceEnergyCalcMonth" />
  12325. <EntitySet Name="CmServiceEnergyCalcDay" EntityType="iBemsModel.CmServiceEnergyCalcDay" />
  12326. <EntitySet Name="CmPatrolHistory" EntityType="iBemsModel.CmPatrolHistory" />
  12327. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule">
  12328. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  12329. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  12330. </AssociationSet>
  12331. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolType">
  12332. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  12333. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  12334. </AssociationSet>
  12335. <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="iBemsModel.FK_CmPatrolHistory_CmSite">
  12336. <End Role="CmSite" EntitySet="CmSite" />
  12337. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  12338. </AssociationSet>
  12339. <EntitySet Name="CmMenu" EntityType="iBemsModel.CmMenu" />
  12340. <EntitySet Name="BemsChartInfo" EntityType="iBemsModel.BemsChartInfo" />
  12341. <EntitySet Name="BemsReportFormat" EntityType="iBemsModel.BemsReportFormat" />
  12342. <EntitySet Name="FmsWorkSchedule" EntityType="iBemsModel.FmsWorkSchedule" />
  12343. <AssociationSet Name="FK_CmMenu_CmSite" Association="iBemsModel.FK_CmMenu_CmSite">
  12344. <End Role="CmSite" EntitySet="CmSite" />
  12345. <End Role="CmMenu" EntitySet="CmMenu" />
  12346. </AssociationSet>
  12347. <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="iBemsModel.FK_BemsChartInfo_BemsFacilityType">
  12348. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12349. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  12350. </AssociationSet>
  12351. <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="iBemsModel.FK__FmsWorkSchedule__CmBusinessField">
  12352. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  12353. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12354. </AssociationSet>
  12355. <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="iBemsModel.FK__FmsWorkSchedule__CmUser">
  12356. <End Role="CmUser" EntitySet="CmUser" />
  12357. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12358. </AssociationSet>
  12359. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  12360. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  12361. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12362. </AssociationSet>
  12363. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  12364. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  12365. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12366. </AssociationSet>
  12367. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  12368. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  12369. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12370. </AssociationSet>
  12371. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule">
  12372. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12373. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  12374. </AssociationSet>
  12375. <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  12376. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12377. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  12378. </AssociationSet>
  12379. <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile">
  12380. <End Role="CmFile" EntitySet="CmFile" />
  12381. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  12382. </AssociationSet>
  12383. <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile1" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1">
  12384. <End Role="CmFile" EntitySet="CmFile" />
  12385. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  12386. </AssociationSet>
  12387. <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="iBemsModel.FK_BemsChartInfo_CmSite">
  12388. <End Role="CmSite" EntitySet="CmSite" />
  12389. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  12390. </AssociationSet>
  12391. <EntitySet Name="BemsPeopleIncrease" EntityType="iBemsModel.BemsPeopleIncrease" />
  12392. <EntitySet Name="BemsPriceCode" EntityType="iBemsModel.BemsPriceCode" />
  12393. <EntitySet Name="BemsPriceFormula" EntityType="iBemsModel.BemsPriceFormula" />
  12394. <EntitySet Name="BemsPriceMeta" EntityType="iBemsModel.BemsPriceMeta" />
  12395. <EntitySet Name="BemsPriceType" EntityType="iBemsModel.BemsPriceType" />
  12396. <EntitySet Name="BemsRentalRate" EntityType="iBemsModel.BemsRentalRate" />
  12397. <EntitySet Name="BemsSitePrice" EntityType="iBemsModel.BemsSitePrice" />
  12398. <EntitySet Name="BemsSitePriceHistory" EntityType="iBemsModel.BemsSitePriceHistory" />
  12399. <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="iBemsModel.FK_BemsPriceFormula_BemsFormula">
  12400. <End Role="BemsFormula" EntitySet="BemsFormula" />
  12401. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  12402. </AssociationSet>
  12403. <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="iBemsModel.FK_BemsPeopleIncrease_CmSite">
  12404. <End Role="CmSite" EntitySet="CmSite" />
  12405. <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
  12406. </AssociationSet>
  12407. <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="iBemsModel.FK_BemsSitePrice_BemsPriceCode">
  12408. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  12409. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  12410. </AssociationSet>
  12411. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode">
  12412. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  12413. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  12414. </AssociationSet>
  12415. <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="iBemsModel.FK_BemsPriceFormula_BemsPriceType">
  12416. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12417. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  12418. </AssociationSet>
  12419. <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="iBemsModel.FK_BemsPriceMeta_BemsPriceType">
  12420. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12421. <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
  12422. </AssociationSet>
  12423. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType">
  12424. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12425. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  12426. </AssociationSet>
  12427. <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="iBemsModel.FK_BemsRentalRate_CmSite">
  12428. <End Role="CmSite" EntitySet="CmSite" />
  12429. <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
  12430. </AssociationSet>
  12431. <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="iBemsModel.FK_BemsSitePrice_CmSite1">
  12432. <End Role="CmSite" EntitySet="CmSite" />
  12433. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  12434. </AssociationSet>
  12435. <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="iBemsModel.FK_BemsSitePriceHistory_CmSite">
  12436. <End Role="CmSite" EntitySet="CmSite" />
  12437. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  12438. </AssociationSet>
  12439. <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="iBemsModel.FK_BemsSitePrice_BemsPriceType">
  12440. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12441. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  12442. </AssociationSet>
  12443. <EntitySet Name="BemsMonitoringPointConfig" EntityType="iBemsModel.BemsMonitoringPointConfig" />
  12444. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1">
  12445. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12446. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  12447. </AssociationSet>
  12448. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  12449. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  12450. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  12451. </AssociationSet>
  12452. <EntitySet Name="BemsAlarmSetting" EntityType="iBemsModel.BemsAlarmSetting" />
  12453. <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType">
  12454. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12455. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  12456. </AssociationSet>
  12457. <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="iBemsModel.FK_BemsAlarmSetting_CmSite1">
  12458. <End Role="CmSite" EntitySet="CmSite" />
  12459. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  12460. </AssociationSet>
  12461. <EntitySet Name="BemsAlarmLog" EntityType="iBemsModel.BemsAlarmLog" />
  12462. <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting">
  12463. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  12464. <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
  12465. </AssociationSet>
  12466. <EntitySet Name="BemsAlarmGroup" EntityType="iBemsModel.BemsAlarmGroup" />
  12467. <EntitySet Name="BemsAlarmGroupUser" EntityType="iBemsModel.BemsAlarmGroupUser" />
  12468. <EntitySet Name="BemsEnergyCost" EntityType="iBemsModel.BemsEnergyCost" />
  12469. <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="iBemsModel.BemsEnergyConfigPercentMonth" />
  12470. <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="iBemsModel.BemsEnergyConfigPercentWeek" />
  12471. <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6">
  12472. <End Role="CmSite" EntitySet="CmSite" />
  12473. <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
  12474. </AssociationSet>
  12475. <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1">
  12476. <End Role="CmSite" EntitySet="CmSite" />
  12477. <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
  12478. </AssociationSet>
  12479. <EntitySet Name="BemsEnergyDaily" EntityType="iBemsModel.BemsEnergyDaily" />
  12480. <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="iBemsModel.FK__BemsEnergyDaily__BemsServiceType">
  12481. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  12482. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  12483. </AssociationSet>
  12484. <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="iBemsModel.FK__BemsEnergyDaily__CmBuilding">
  12485. <End Role="CmBuilding" EntitySet="CmBuilding" />
  12486. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  12487. </AssociationSet>
  12488. <EntitySet Name="BemsEnergyDailyRegression" EntityType="iBemsModel.BemsEnergyDailyRegression" />
  12489. <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="iBemsModel.FK_BemsEnergyDailyRegression_CmSite">
  12490. <End Role="CmSite" EntitySet="CmSite" />
  12491. <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
  12492. </AssociationSet>
  12493. <EntitySet Name="WeatherDongNaeForecast" EntityType="iBemsModel.WeatherDongNaeForecast" />
  12494. <EntitySet Name="FmsEquipmentRentInfo" EntityType="iBemsModel.FmsEquipmentRentInfo" />
  12495. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser">
  12496. <End Role="CmUser" EntitySet="CmUser" />
  12497. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  12498. </AssociationSet>
  12499. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1">
  12500. <End Role="CmUser" EntitySet="CmUser" />
  12501. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  12502. </AssociationSet>
  12503. <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  12504. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  12505. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  12506. </AssociationSet>
  12507. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  12508. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  12509. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  12510. </AssociationSet>
  12511. <EntitySet Name="BemsControlAHUTempConfig" EntityType="iBemsModel.BemsControlAHUTempConfig" />
  12512. <EntitySet Name="BemsFuelType" EntityType="iBemsModel.BemsFuelType" />
  12513. <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="iBemsModel.FK__BemsEnergyDaily__BemsFuelType">
  12514. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12515. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  12516. </AssociationSet>
  12517. <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="iBemsModel.FK__BemsFactorCo2__BemsFuelType">
  12518. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12519. <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
  12520. </AssociationSet>
  12521. <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="iBemsModel.FK__BemsFactorToe__BemsFuelType">
  12522. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12523. <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
  12524. </AssociationSet>
  12525. <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType">
  12526. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12527. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  12528. </AssociationSet>
  12529. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType">
  12530. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12531. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  12532. </AssociationSet>
  12533. <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType">
  12534. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12535. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  12536. </AssociationSet>
  12537. <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="iBemsModel.FK_BemsPriceCode_BemsFuelType">
  12538. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12539. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  12540. </AssociationSet>
  12541. <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="iBemsModel.FK_BemsPriceType_BemsFuelType1">
  12542. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12543. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12544. </AssociationSet>
  12545. <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="iBemsModel.FK_BemsSitePrice_BemsFuelType">
  12546. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12547. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  12548. </AssociationSet>
  12549. <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType">
  12550. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12551. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  12552. </AssociationSet>
  12553. <EntitySet Name="CmFacility" EntityType="iBemsModel.CmFacility" />
  12554. <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="iBemsModel.FK_BemsAlarmSetting_CmFacility">
  12555. <End Role="CmFacility" EntitySet="CmFacility" />
  12556. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  12557. </AssociationSet>
  12558. <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="iBemsModel.FK_BemsEnergyCost_CmFacility">
  12559. <End Role="CmFacility" EntitySet="CmFacility" />
  12560. <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
  12561. </AssociationSet>
  12562. <AssociationSet Name="FK__CmFacility__BemsFacilityType" Association="iBemsModel.FK__CmFacility__BemsFacilityType">
  12563. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12564. <End Role="CmFacility" EntitySet="CmFacility" />
  12565. </AssociationSet>
  12566. <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="iBemsModel.FK_BemsFormulaParameter_CmFacility">
  12567. <End Role="CmFacility" EntitySet="CmFacility" />
  12568. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  12569. </AssociationSet>
  12570. <AssociationSet Name="FK_CmFacility_BemsFuelType" Association="iBemsModel.FK_CmFacility_BemsFuelType">
  12571. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12572. <End Role="CmFacility" EntitySet="CmFacility" />
  12573. </AssociationSet>
  12574. <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="iBemsModel.FK_BemsMonitoringPoint_CmFacility">
  12575. <End Role="CmFacility" EntitySet="CmFacility" />
  12576. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  12577. </AssociationSet>
  12578. <AssociationSet Name="FK_CmFacility_BemsNoticePriceContractType" Association="iBemsModel.FK_CmFacility_BemsNoticePriceContractType">
  12579. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  12580. <End Role="CmFacility" EntitySet="CmFacility" />
  12581. </AssociationSet>
  12582. <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="iBemsModel.FK_BemsPeakFacility_CmFacility">
  12583. <End Role="CmFacility" EntitySet="CmFacility" />
  12584. <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
  12585. </AssociationSet>
  12586. <AssociationSet Name="FK__CmFacility__CmBuilding" Association="iBemsModel.FK__CmFacility__CmBuilding">
  12587. <End Role="CmBuilding" EntitySet="CmBuilding" />
  12588. <End Role="CmFacility" EntitySet="CmFacility" />
  12589. </AssociationSet>
  12590. <AssociationSet Name="FK__CmFacility__74444068" Association="iBemsModel.FK__CmFacility__74444068">
  12591. <End Role="CmFloor" EntitySet="CmFloor" />
  12592. <End Role="CmFacility" EntitySet="CmFacility" />
  12593. </AssociationSet>
  12594. <AssociationSet Name="FK__CmFacility__753864A1" Association="iBemsModel.FK__CmFacility__753864A1">
  12595. <End Role="CmUser" EntitySet="CmUser" />
  12596. <End Role="CmFacility" EntitySet="CmFacility" />
  12597. </AssociationSet>
  12598. <AssociationSet Name="FK__CmFacility__762C88DA" Association="iBemsModel.FK__CmFacility__762C88DA">
  12599. <End Role="CmUser" EntitySet="CmUser" />
  12600. <End Role="CmFacility" EntitySet="CmFacility" />
  12601. </AssociationSet>
  12602. <AssociationSet Name="FK__CmFacility__CmFacility" Association="iBemsModel.FK__CmFacility__CmFacility">
  12603. <End Role="CmFacility" EntitySet="CmFacility" />
  12604. <End Role="CmFacility1" EntitySet="CmFacility" />
  12605. </AssociationSet>
  12606. <AssociationSet Name="FK__CmFacility__CmFile" Association="iBemsModel.FK__CmFacility__CmFile">
  12607. <End Role="CmFile" EntitySet="CmFile" />
  12608. <End Role="CmFacility" EntitySet="CmFacility" />
  12609. </AssociationSet>
  12610. <AssociationSet Name="FK__CmFacility__CmZone" Association="iBemsModel.FK__CmFacility__CmZone">
  12611. <End Role="CmZone" EntitySet="CmZone" />
  12612. <End Role="CmFacility" EntitySet="CmFacility" />
  12613. </AssociationSet>
  12614. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsFirst" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst">
  12615. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  12616. <End Role="CmFacility" EntitySet="CmFacility" />
  12617. </AssociationSet>
  12618. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsSecond" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond">
  12619. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  12620. <End Role="CmFacility" EntitySet="CmFacility" />
  12621. </AssociationSet>
  12622. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsThird" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird">
  12623. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  12624. <End Role="CmFacility" EntitySet="CmFacility" />
  12625. </AssociationSet>
  12626. <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="iBemsModel.FK__CmFacilityFile__7720AD13">
  12627. <End Role="CmFacility" EntitySet="CmFacility" />
  12628. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  12629. </AssociationSet>
  12630. <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="iBemsModel.FK__CmFacilityManual__79FD19BE">
  12631. <End Role="CmFacility" EntitySet="CmFacility" />
  12632. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  12633. </AssociationSet>
  12634. <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="iBemsModel.FK__FmsFacilityOpera__725BF7F6">
  12635. <End Role="CmFacility" EntitySet="CmFacility" />
  12636. <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
  12637. </AssociationSet>
  12638. <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility">
  12639. <End Role="CmFacility" EntitySet="CmFacility" />
  12640. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  12641. </AssociationSet>
  12642. <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="iBemsModel.FK__FmsWorkResultToFacility__CmFacility">
  12643. <End Role="CmFacility" EntitySet="CmFacility" />
  12644. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  12645. </AssociationSet>
  12646. <AssociationSet Name="FK_CmFacility_CmUser" Association="iBemsModel.FK_CmFacility_CmUser">
  12647. <End Role="CmUser" EntitySet="CmUser" />
  12648. <End Role="CmFacility" EntitySet="CmFacility" />
  12649. </AssociationSet>
  12650. <AssociationSet Name="FK_CmFacility_CmUser1" Association="iBemsModel.FK_CmFacility_CmUser1">
  12651. <End Role="CmUser" EntitySet="CmUser" />
  12652. <End Role="CmFacility" EntitySet="CmFacility" />
  12653. </AssociationSet>
  12654. <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="iBemsModel.FK_CmFacilityTempSet_CmFacility">
  12655. <End Role="CmFacility" EntitySet="CmFacility" />
  12656. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  12657. </AssociationSet>
  12658. <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility">
  12659. <End Role="CmFacility" EntitySet="CmFacility" />
  12660. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  12661. </AssociationSet>
  12662. <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility">
  12663. <End Role="CmFacility" EntitySet="CmFacility" />
  12664. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  12665. </AssociationSet>
  12666. <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility">
  12667. <End Role="CmFacility" EntitySet="CmFacility" />
  12668. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  12669. </AssociationSet>
  12670. <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="iBemsModel.BemsMonitoringPointHistory15minRawData" />
  12671. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  12672. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12673. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  12674. </AssociationSet>
  12675. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  12676. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  12677. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  12678. </AssociationSet>
  12679. <EntitySet Name="FmsDailyReport" EntityType="iBemsModel.FmsDailyReport" />
  12680. <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="iBemsModel.FK_FmsDailyReport_CmBusinessField">
  12681. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  12682. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  12683. </AssociationSet>
  12684. <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="iBemsModel.FK_FmsDailyReport_CmUser">
  12685. <End Role="CmUser" EntitySet="CmUser" />
  12686. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  12687. </AssociationSet>
  12688. <EntitySet Name="BemsPeakHistoryDaily" EntityType="iBemsModel.BemsPeakHistoryDaily" />
  12689. <EntitySet Name="FmsEquipment" EntityType="iBemsModel.FmsEquipment" />
  12690. <AssociationSet Name="FK_FmsEquipment_CmUser" Association="iBemsModel.FK_FmsEquipment_CmUser">
  12691. <End Role="CmUser" EntitySet="CmUser" />
  12692. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  12693. </AssociationSet>
  12694. <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType">
  12695. <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
  12696. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  12697. </AssociationSet>
  12698. <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse">
  12699. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  12700. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  12701. </AssociationSet>
  12702. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment">
  12703. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  12704. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  12705. </AssociationSet>
  12706. <EntitySet Name="CmAlarmAdmin" EntityType="iBemsModel.CmAlarmAdmin" />
  12707. <EntitySet Name="BemsFloorStatus" EntityType="iBemsModel.BemsFloorStatus" />
  12708. <EntitySet Name="BemsReportHistory" EntityType="iBemsModel.BemsReportHistory" />
  12709. <EntitySet Name="CmPartner" EntityType="iBemsModel.CmPartner" />
  12710. <EntitySet Name="CmPartnerType" EntityType="iBemsModel.CmPartnerType" />
  12711. <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="iBemsModel.FK_CmPartnerType_CmPartner">
  12712. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  12713. <End Role="CmPartner" EntitySet="CmPartner" />
  12714. </AssociationSet>
  12715. <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="iBemsModel.FK_FmsConstruction_CmPartner">
  12716. <End Role="CmPartner" EntitySet="CmPartner" />
  12717. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  12718. </AssociationSet>
  12719. <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="iBemsModel.FK_FmsWorkRequest_CmPartner">
  12720. <End Role="CmPartner" EntitySet="CmPartner" />
  12721. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  12722. </AssociationSet>
  12723. <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="iBemsModel.FK_FmsWorkSchedule_CmPartner">
  12724. <End Role="CmPartner" EntitySet="CmPartner" />
  12725. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12726. </AssociationSet>
  12727. <EntitySet Name="FmsContract" EntityType="iBemsModel.FmsContract" />
  12728. <AssociationSet Name="FK_FmsContract_CmPartner" Association="iBemsModel.FK_FmsContract_CmPartner">
  12729. <End Role="CmPartner" EntitySet="CmPartner" />
  12730. <End Role="FmsContract" EntitySet="FmsContract" />
  12731. </AssociationSet>
  12732. <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="iBemsModel.FK_FmsContract_CmPartnerType">
  12733. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  12734. <End Role="FmsContract" EntitySet="FmsContract" />
  12735. </AssociationSet>
  12736. <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="iBemsModel.FK_FmsContract_FmsContractClass">
  12737. <End Role="FmsContractClass" EntitySet="FmsContractClass" />
  12738. <End Role="FmsContract" EntitySet="FmsContract" />
  12739. </AssociationSet>
  12740. <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="iBemsModel.FK_FmsContract_FmsContractMethod">
  12741. <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
  12742. <End Role="FmsContract" EntitySet="FmsContract" />
  12743. </AssociationSet>
  12744. <AssociationSet Name="FK_FmsContract_FmsContractType" Association="iBemsModel.FK_FmsContract_FmsContractType">
  12745. <End Role="FmsContractType" EntitySet="FmsContractType" />
  12746. <End Role="FmsContract" EntitySet="FmsContract" />
  12747. </AssociationSet>
  12748. <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="iBemsModel.FK_FmsContract_FmsPaymentType">
  12749. <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
  12750. <End Role="FmsContract" EntitySet="FmsContract" />
  12751. </AssociationSet>
  12752. <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingDayAhead" />
  12753. <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingHourAhead" />
  12754. <EntitySet Name="BemsFloorPlan" EntityType="iBemsModel.BemsFloorPlan" />
  12755. <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="iBemsModel.BemsMonitoringPointWeatherForecasted" />
  12756. <EntitySet Name="BemsConfigData" EntityType="iBemsModel.BemsConfigData" />
  12757. <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="iBemsModel.BemsIceThermalStorageSimulation" />
  12758. </EntityContainer>
  12759. <EntityType Name="FmsDailyCheckReport">
  12760. <Key>
  12761. <PropertyRef Name="SiteId" />
  12762. <PropertyRef Name="DailyCheckReportId" />
  12763. </Key>
  12764. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12765. <Property Name="DailyCheckReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12766. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  12767. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  12768. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  12769. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  12770. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="FmsDailyCheckReport" ToRole="CmUser" />
  12771. </EntityType>
  12772. <EntityType Name="FmsFacilityOperationReport">
  12773. <Key>
  12774. <PropertyRef Name="SiteId" />
  12775. <PropertyRef Name="FacilityOperationReportId" />
  12776. </Key>
  12777. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12778. <Property Name="FacilityOperationReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12779. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  12780. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  12781. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  12782. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  12783. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="FmsFacilityOperationReport" ToRole="CmUser" />
  12784. </EntityType>
  12785. <Association Name="FK_FmsDailyCheckReport_CmUser">
  12786. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  12787. <End Type="iBemsModel.FmsDailyCheckReport" Role="FmsDailyCheckReport" Multiplicity="*" />
  12788. <ReferentialConstraint>
  12789. <Principal Role="CmUser">
  12790. <PropertyRef Name="SiteId" />
  12791. <PropertyRef Name="UserId" />
  12792. </Principal>
  12793. <Dependent Role="FmsDailyCheckReport">
  12794. <PropertyRef Name="SiteId" />
  12795. <PropertyRef Name="RegisterUserId" />
  12796. </Dependent>
  12797. </ReferentialConstraint>
  12798. </Association>
  12799. <Association Name="FK_FmsFacilityOperationReport_CmUser">
  12800. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  12801. <End Type="iBemsModel.FmsFacilityOperationReport" Role="FmsFacilityOperationReport" Multiplicity="*" />
  12802. <ReferentialConstraint>
  12803. <Principal Role="CmUser">
  12804. <PropertyRef Name="SiteId" />
  12805. <PropertyRef Name="UserId" />
  12806. </Principal>
  12807. <Dependent Role="FmsFacilityOperationReport">
  12808. <PropertyRef Name="SiteId" />
  12809. <PropertyRef Name="RegisterUserId" />
  12810. </Dependent>
  12811. </ReferentialConstraint>
  12812. </Association>
  12813. <EntityType Name="FmsBudgetDetail">
  12814. <Key>
  12815. <PropertyRef Name="SiteId" />
  12816. <PropertyRef Name="Year" />
  12817. <PropertyRef Name="BudgetClassId" />
  12818. <PropertyRef Name="ParentBudgetClassId" />
  12819. </Key>
  12820. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12821. <Property Name="Year" Type="Int32" Nullable="false" />
  12822. <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
  12823. <Property Name="BudgetSeq" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="true" />
  12824. <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
  12825. <Property Name="Depth" Type="Int32" Nullable="false" />
  12826. <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  12827. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  12828. <Property Name="IsUse" Type="Boolean" />
  12829. <Property Name="YearlyBudget" Type="Double" Nullable="false" />
  12830. <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
  12831. <NavigationProperty Name="FmsBudget" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudgetDetail" ToRole="FmsBudget" />
  12832. <NavigationProperty Name="FmsBudgetCodeClass" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetDetail" ToRole="FmsBudgetCodeClass" />
  12833. <NavigationProperty Name="FmsBudgetDetailExecution" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetail" ToRole="FmsBudgetDetailExecution" />
  12834. <Property Name="RootBudgetClassId" Type="Int32" />
  12835. </EntityType>
  12836. <EntityType Name="FmsBudgetDetailExecution">
  12837. <Key>
  12838. <PropertyRef Name="SiteId" />
  12839. <PropertyRef Name="Year" />
  12840. <PropertyRef Name="BudgetClassId" />
  12841. <PropertyRef Name="ParentBudgetClassId" />
  12842. <PropertyRef Name="Month" />
  12843. </Key>
  12844. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12845. <Property Name="Year" Type="Int32" Nullable="false" />
  12846. <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
  12847. <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
  12848. <Property Name="MonthlyExecution" Type="Double" Nullable="false" />
  12849. <Property Name="Month" Type="Int32" Nullable="false" />
  12850. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetailExecution" ToRole="FmsBudgetDetail" />
  12851. <Property Name="YearlyBudget" Type="Double" Nullable="false" />
  12852. <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
  12853. <Property Name="YearlyExecution" Type="Double" Nullable="false" />
  12854. <Property Name="RootBudgetClassId" Type="Int32" />
  12855. </EntityType>
  12856. <Association Name="FK_FmsBudgetDetail_FmsBudget">
  12857. <End Type="iBemsModel.FmsBudget" Role="FmsBudget" Multiplicity="1">
  12858. <OnDelete Action="Cascade" />
  12859. </End>
  12860. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
  12861. <ReferentialConstraint>
  12862. <Principal Role="FmsBudget">
  12863. <PropertyRef Name="SiteId" />
  12864. <PropertyRef Name="Year" />
  12865. </Principal>
  12866. <Dependent Role="FmsBudgetDetail">
  12867. <PropertyRef Name="SiteId" />
  12868. <PropertyRef Name="Year" />
  12869. </Dependent>
  12870. </ReferentialConstraint>
  12871. </Association>
  12872. <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
  12873. <End Type="iBemsModel.FmsBudgetCodeClass" Role="FmsBudgetCodeClass" Multiplicity="1" />
  12874. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
  12875. <ReferentialConstraint>
  12876. <Principal Role="FmsBudgetCodeClass">
  12877. <PropertyRef Name="SiteId" />
  12878. <PropertyRef Name="BudgetClassId" />
  12879. </Principal>
  12880. <Dependent Role="FmsBudgetDetail">
  12881. <PropertyRef Name="SiteId" />
  12882. <PropertyRef Name="BudgetClassId" />
  12883. </Dependent>
  12884. </ReferentialConstraint>
  12885. </Association>
  12886. <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  12887. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="1" />
  12888. <End Type="iBemsModel.FmsBudgetDetailExecution" Role="FmsBudgetDetailExecution" Multiplicity="*" />
  12889. <ReferentialConstraint>
  12890. <Principal Role="FmsBudgetDetail">
  12891. <PropertyRef Name="SiteId" />
  12892. <PropertyRef Name="Year" />
  12893. <PropertyRef Name="BudgetClassId" />
  12894. <PropertyRef Name="ParentBudgetClassId" />
  12895. </Principal>
  12896. <Dependent Role="FmsBudgetDetailExecution">
  12897. <PropertyRef Name="SiteId" />
  12898. <PropertyRef Name="Year" />
  12899. <PropertyRef Name="BudgetClassId" />
  12900. <PropertyRef Name="ParentBudgetClassId" />
  12901. </Dependent>
  12902. </ReferentialConstraint>
  12903. </Association>
  12904. <EntityType Name="FmsMonthlyReport">
  12905. <Key>
  12906. <PropertyRef Name="SiteId" />
  12907. <PropertyRef Name="MonthlyReportId" />
  12908. </Key>
  12909. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12910. <Property Name="MonthlyReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12911. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  12912. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  12913. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  12914. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  12915. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="FmsMonthlyReport" ToRole="CmUser" />
  12916. </EntityType>
  12917. <Association Name="FK_FmsMonthlyReport_CmUser">
  12918. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  12919. <End Type="iBemsModel.FmsMonthlyReport" Role="FmsMonthlyReport" Multiplicity="*" />
  12920. <ReferentialConstraint>
  12921. <Principal Role="CmUser">
  12922. <PropertyRef Name="SiteId" />
  12923. <PropertyRef Name="UserId" />
  12924. </Principal>
  12925. <Dependent Role="FmsMonthlyReport">
  12926. <PropertyRef Name="SiteId" />
  12927. <PropertyRef Name="RegisterUserId" />
  12928. </Dependent>
  12929. </ReferentialConstraint>
  12930. </Association>
  12931. <EntityType Name="FmsInvestmentCost">
  12932. <Key>
  12933. <PropertyRef Name="SiteId" />
  12934. <PropertyRef Name="InsvestmentCostId" />
  12935. </Key>
  12936. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12937. <Property Name="InsvestmentCostId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12938. <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  12939. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  12940. <Property Name="InsvestmentCost" Type="Double" Nullable="false" />
  12941. </EntityType>
  12942. <EntityType Name="CmHolidayWeekend">
  12943. <Key>
  12944. <PropertyRef Name="SiteId" />
  12945. </Key>
  12946. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12947. <Property Name="Saturday" Type="Boolean" Nullable="false" />
  12948. <Property Name="Sunday" Type="Boolean" Nullable="false" />
  12949. <Property Name="IsUse" Type="Boolean" />
  12950. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmHolidayWeekend" ToRole="CmSite" />
  12951. </EntityType>
  12952. <Association Name="FK_FmsAccident_CmCompany">
  12953. <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="0..1" />
  12954. <End Type="iBemsModel.FmsAccident" Role="FmsAccident" Multiplicity="*" />
  12955. <ReferentialConstraint>
  12956. <Principal Role="CmCompany">
  12957. <PropertyRef Name="SiteId" />
  12958. <PropertyRef Name="CompanyId" />
  12959. </Principal>
  12960. <Dependent Role="FmsAccident">
  12961. <PropertyRef Name="SiteId" />
  12962. <PropertyRef Name="CompanyId" />
  12963. </Dependent>
  12964. </ReferentialConstraint>
  12965. </Association>
  12966. <EntityType Name="FmsMaterial">
  12967. <Key>
  12968. <PropertyRef Name="SiteId" />
  12969. <PropertyRef Name="MaterialId" />
  12970. </Key>
  12971. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12972. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  12973. <Property Name="MaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12974. <Property Name="MaterialCode" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  12975. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  12976. <Property Name="FirstClassId" Type="Int32" />
  12977. <Property Name="SecondClassId" Type="Int32" />
  12978. <Property Name="ThirdClassId" Type="Int32" />
  12979. <Property Name="LocationId" Type="Int32" />
  12980. <Property Name="MaterialTypeId" Type="Int32" />
  12981. <Property Name="WarehouseId" Type="Int32" />
  12982. <Property Name="TradeCompanyId" Type="Int32" />
  12983. <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  12984. <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
  12985. <Property Name="DurableYears" Type="Int16" />
  12986. <Property Name="ReasonableStockCount" Type="Int16" />
  12987. <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  12988. <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  12989. <Property Name="FinalPrice" Type="Int32" />
  12990. <Property Name="ImageFileId" Type="Int32" />
  12991. <Property Name="Note" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  12992. <Property Name="IsDiscontinued" Type="Boolean" />
  12993. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  12994. <Property Name="FinalStockCount" Type="Int32" Nullable="false" />
  12995. <Property Name="FinalTotalStockAmount" Type="Int32" Nullable="false" />
  12996. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="FmsMaterial" ToRole="CmBusinessField" />
  12997. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="FmsMaterial" ToRole="CmFile" />
  12998. <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  12999. <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  13000. <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  13001. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterial" ToRole="FmsMaterialCodeLocation" />
  13002. <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterial" ToRole="FmsMaterialCodeType" />
  13003. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterial" ToRole="FmsMaterialTradeCompany" />
  13004. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterial" ToRole="FmsMaterialWarehouse" />
  13005. <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseOrderMaterial" />
  13006. <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseRequestMaterial" />
  13007. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialRelease" />
  13008. <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialStored" />
  13009. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsWorkResultCheckItemMaterial" />
  13010. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="FmsMaterial" ToRole="CmSite" />
  13011. </EntityType>
  13012. <EntityType Name="FmsMaterialRelease">
  13013. <Key>
  13014. <PropertyRef Name="SiteId" />
  13015. <PropertyRef Name="MaterialReleaseId" />
  13016. </Key>
  13017. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13018. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  13019. <Property Name="ReleaseDate" Type="DateTime" Nullable="false" Precision="3" />
  13020. <Property Name="MaterialReleaseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13021. <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
  13022. <Property Name="WorkRequestId" Type="Int32" />
  13023. <Property Name="WarehouseId" Type="Int32" />
  13024. <Property Name="MaterialId" Type="Int32" />
  13025. <Property Name="MaterialCount" Type="Int32" />
  13026. <Property Name="ReleaseTotalCost" Type="Int32" />
  13027. <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
  13028. <Property Name="AdjustmentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13029. <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13030. <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
  13031. <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
  13032. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  13033. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="FmsMaterialRelease" ToRole="CmBusinessField" />
  13034. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="FmsMaterialRelease" ToRole="CmUser" />
  13035. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="FmsMaterialRelease" ToRole="CmUser" />
  13036. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterialRelease" ToRole="FmsMaterial" />
  13037. <NavigationProperty Name="FmsMaterialCodeAdjustmentType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeAdjustmentType" />
  13038. <NavigationProperty Name="FmsMaterialCodeReleaseType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeReleaseType" />
  13039. <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsMaterialRelease" ToRole="FmsWorkResult" />
  13040. <Property Name="StockCountByPoint" Type="Int32" />
  13041. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="FmsMaterialRelease" ToRole="CmSite" />
  13042. </EntityType>
  13043. <Association Name="FK_FmsMaterial_CmBusinessField">
  13044. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  13045. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13046. <ReferentialConstraint>
  13047. <Principal Role="CmBusinessField">
  13048. <PropertyRef Name="SiteId" />
  13049. <PropertyRef Name="BusinessFieldId" />
  13050. </Principal>
  13051. <Dependent Role="FmsMaterial">
  13052. <PropertyRef Name="SiteId" />
  13053. <PropertyRef Name="BusinessFieldId" />
  13054. </Dependent>
  13055. </ReferentialConstraint>
  13056. </Association>
  13057. <Association Name="FK_FmsMaterialRelease_CmBusinessField">
  13058. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  13059. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13060. <ReferentialConstraint>
  13061. <Principal Role="CmBusinessField">
  13062. <PropertyRef Name="SiteId" />
  13063. <PropertyRef Name="BusinessFieldId" />
  13064. </Principal>
  13065. <Dependent Role="FmsMaterialRelease">
  13066. <PropertyRef Name="SiteId" />
  13067. <PropertyRef Name="BusinessFieldId" />
  13068. </Dependent>
  13069. </ReferentialConstraint>
  13070. </Association>
  13071. <Association Name="FK_FmsMaterial_CmFile">
  13072. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  13073. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13074. <ReferentialConstraint>
  13075. <Principal Role="CmFile">
  13076. <PropertyRef Name="SiteId" />
  13077. <PropertyRef Name="FileId" />
  13078. </Principal>
  13079. <Dependent Role="FmsMaterial">
  13080. <PropertyRef Name="SiteId" />
  13081. <PropertyRef Name="ImageFileId" />
  13082. </Dependent>
  13083. </ReferentialConstraint>
  13084. </Association>
  13085. <Association Name="FK_FmsMaterialRelease_CmUser">
  13086. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  13087. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13088. <ReferentialConstraint>
  13089. <Principal Role="CmUser">
  13090. <PropertyRef Name="SiteId" />
  13091. <PropertyRef Name="UserId" />
  13092. </Principal>
  13093. <Dependent Role="FmsMaterialRelease">
  13094. <PropertyRef Name="SiteId" />
  13095. <PropertyRef Name="ConfirmedUserId" />
  13096. </Dependent>
  13097. </ReferentialConstraint>
  13098. </Association>
  13099. <Association Name="FK_FmsMaterialRelease_CmUser1">
  13100. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  13101. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13102. <ReferentialConstraint>
  13103. <Principal Role="CmUser">
  13104. <PropertyRef Name="SiteId" />
  13105. <PropertyRef Name="UserId" />
  13106. </Principal>
  13107. <Dependent Role="FmsMaterialRelease">
  13108. <PropertyRef Name="SiteId" />
  13109. <PropertyRef Name="AdjustmentUserId" />
  13110. </Dependent>
  13111. </ReferentialConstraint>
  13112. </Association>
  13113. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  13114. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  13115. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13116. <ReferentialConstraint>
  13117. <Principal Role="FmsMaterialCodeClass">
  13118. <PropertyRef Name="SiteId" />
  13119. <PropertyRef Name="MaterialClassId" />
  13120. </Principal>
  13121. <Dependent Role="FmsMaterial">
  13122. <PropertyRef Name="SiteId" />
  13123. <PropertyRef Name="FirstClassId" />
  13124. </Dependent>
  13125. </ReferentialConstraint>
  13126. </Association>
  13127. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  13128. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  13129. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13130. <ReferentialConstraint>
  13131. <Principal Role="FmsMaterialCodeClass">
  13132. <PropertyRef Name="SiteId" />
  13133. <PropertyRef Name="MaterialClassId" />
  13134. </Principal>
  13135. <Dependent Role="FmsMaterial">
  13136. <PropertyRef Name="SiteId" />
  13137. <PropertyRef Name="SecondClassId" />
  13138. </Dependent>
  13139. </ReferentialConstraint>
  13140. </Association>
  13141. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  13142. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  13143. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13144. <ReferentialConstraint>
  13145. <Principal Role="FmsMaterialCodeClass">
  13146. <PropertyRef Name="SiteId" />
  13147. <PropertyRef Name="MaterialClassId" />
  13148. </Principal>
  13149. <Dependent Role="FmsMaterial">
  13150. <PropertyRef Name="SiteId" />
  13151. <PropertyRef Name="ThirdClassId" />
  13152. </Dependent>
  13153. </ReferentialConstraint>
  13154. </Association>
  13155. <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
  13156. <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="0..1" />
  13157. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13158. <ReferentialConstraint>
  13159. <Principal Role="FmsMaterialCodeLocation">
  13160. <PropertyRef Name="SiteId" />
  13161. <PropertyRef Name="LocationId" />
  13162. </Principal>
  13163. <Dependent Role="FmsMaterial">
  13164. <PropertyRef Name="SiteId" />
  13165. <PropertyRef Name="LocationId" />
  13166. </Dependent>
  13167. </ReferentialConstraint>
  13168. </Association>
  13169. <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
  13170. <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="0..1" />
  13171. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13172. <ReferentialConstraint>
  13173. <Principal Role="FmsMaterialCodeType">
  13174. <PropertyRef Name="SiteId" />
  13175. <PropertyRef Name="MaterialTypeId" />
  13176. </Principal>
  13177. <Dependent Role="FmsMaterial">
  13178. <PropertyRef Name="SiteId" />
  13179. <PropertyRef Name="MaterialTypeId" />
  13180. </Dependent>
  13181. </ReferentialConstraint>
  13182. </Association>
  13183. <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
  13184. <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="0..1" />
  13185. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13186. <ReferentialConstraint>
  13187. <Principal Role="FmsMaterialTradeCompany">
  13188. <PropertyRef Name="SiteId" />
  13189. <PropertyRef Name="TradeCompanyId" />
  13190. </Principal>
  13191. <Dependent Role="FmsMaterial">
  13192. <PropertyRef Name="SiteId" />
  13193. <PropertyRef Name="TradeCompanyId" />
  13194. </Dependent>
  13195. </ReferentialConstraint>
  13196. </Association>
  13197. <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
  13198. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
  13199. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13200. <ReferentialConstraint>
  13201. <Principal Role="FmsMaterialWarehouse">
  13202. <PropertyRef Name="SiteId" />
  13203. <PropertyRef Name="WarehouseId" />
  13204. </Principal>
  13205. <Dependent Role="FmsMaterial">
  13206. <PropertyRef Name="SiteId" />
  13207. <PropertyRef Name="WarehouseId" />
  13208. </Dependent>
  13209. </ReferentialConstraint>
  13210. </Association>
  13211. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  13212. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13213. <End Type="iBemsModel.FmsMaterialPurchaseOrderMaterial" Role="FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  13214. <ReferentialConstraint>
  13215. <Principal Role="FmsMaterial">
  13216. <PropertyRef Name="SiteId" />
  13217. <PropertyRef Name="MaterialId" />
  13218. </Principal>
  13219. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  13220. <PropertyRef Name="SiteId" />
  13221. <PropertyRef Name="MaterialId" />
  13222. </Dependent>
  13223. </ReferentialConstraint>
  13224. </Association>
  13225. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  13226. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13227. <End Type="iBemsModel.FmsMaterialPurchaseRequestMaterial" Role="FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  13228. <ReferentialConstraint>
  13229. <Principal Role="FmsMaterial">
  13230. <PropertyRef Name="SiteId" />
  13231. <PropertyRef Name="MaterialId" />
  13232. </Principal>
  13233. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  13234. <PropertyRef Name="SiteId" />
  13235. <PropertyRef Name="MaterialId" />
  13236. </Dependent>
  13237. </ReferentialConstraint>
  13238. </Association>
  13239. <Association Name="FK_FmsMaterialRelease_FmsMaterial">
  13240. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13241. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13242. <ReferentialConstraint>
  13243. <Principal Role="FmsMaterial">
  13244. <PropertyRef Name="SiteId" />
  13245. <PropertyRef Name="MaterialId" />
  13246. </Principal>
  13247. <Dependent Role="FmsMaterialRelease">
  13248. <PropertyRef Name="SiteId" />
  13249. <PropertyRef Name="MaterialId" />
  13250. </Dependent>
  13251. </ReferentialConstraint>
  13252. </Association>
  13253. <Association Name="FK_FmsMaterialStored_FmsMaterial">
  13254. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13255. <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
  13256. <ReferentialConstraint>
  13257. <Principal Role="FmsMaterial">
  13258. <PropertyRef Name="SiteId" />
  13259. <PropertyRef Name="MaterialId" />
  13260. </Principal>
  13261. <Dependent Role="FmsMaterialStored">
  13262. <PropertyRef Name="SiteId" />
  13263. <PropertyRef Name="MaterialId" />
  13264. </Dependent>
  13265. </ReferentialConstraint>
  13266. </Association>
  13267. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  13268. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13269. <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  13270. <ReferentialConstraint>
  13271. <Principal Role="FmsMaterial">
  13272. <PropertyRef Name="SiteId" />
  13273. <PropertyRef Name="MaterialId" />
  13274. </Principal>
  13275. <Dependent Role="FmsWorkResultCheckItemMaterial">
  13276. <PropertyRef Name="SiteId" />
  13277. <PropertyRef Name="MaterialId" />
  13278. </Dependent>
  13279. </ReferentialConstraint>
  13280. </Association>
  13281. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  13282. <End Type="iBemsModel.FmsMaterialCodeAdjustmentType" Role="FmsMaterialCodeAdjustmentType" Multiplicity="1" />
  13283. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13284. <ReferentialConstraint>
  13285. <Principal Role="FmsMaterialCodeAdjustmentType">
  13286. <PropertyRef Name="AdjustmentTypeId" />
  13287. </Principal>
  13288. <Dependent Role="FmsMaterialRelease">
  13289. <PropertyRef Name="AdjustmentTypeId" />
  13290. </Dependent>
  13291. </ReferentialConstraint>
  13292. </Association>
  13293. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  13294. <End Type="iBemsModel.FmsMaterialCodeReleaseType" Role="FmsMaterialCodeReleaseType" Multiplicity="1" />
  13295. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13296. <ReferentialConstraint>
  13297. <Principal Role="FmsMaterialCodeReleaseType">
  13298. <PropertyRef Name="ReleaseTypeId" />
  13299. </Principal>
  13300. <Dependent Role="FmsMaterialRelease">
  13301. <PropertyRef Name="ReleaseTypeId" />
  13302. </Dependent>
  13303. </ReferentialConstraint>
  13304. </Association>
  13305. <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
  13306. <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="0..1" />
  13307. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13308. <ReferentialConstraint>
  13309. <Principal Role="FmsWorkResult">
  13310. <PropertyRef Name="SiteId" />
  13311. <PropertyRef Name="WorkRequestId" />
  13312. </Principal>
  13313. <Dependent Role="FmsMaterialRelease">
  13314. <PropertyRef Name="SiteId" />
  13315. <PropertyRef Name="WorkRequestId" />
  13316. </Dependent>
  13317. </ReferentialConstraint>
  13318. </Association>
  13319. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  13320. <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="1" />
  13321. <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  13322. <ReferentialConstraint>
  13323. <Principal Role="FmsWorkResult">
  13324. <PropertyRef Name="SiteId" />
  13325. <PropertyRef Name="WorkRequestId" />
  13326. </Principal>
  13327. <Dependent Role="FmsWorkResultCheckItemMaterial">
  13328. <PropertyRef Name="SiteId" />
  13329. <PropertyRef Name="WorkRequestId" />
  13330. </Dependent>
  13331. </ReferentialConstraint>
  13332. </Association>
  13333. <EntityType Name="CmPatrolType">
  13334. <Key>
  13335. <PropertyRef Name="SiteId" />
  13336. <PropertyRef Name="PatrolTypeId" />
  13337. </Key>
  13338. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13339. <Property Name="PatrolTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13340. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  13341. <Property Name="IsUse" Type="Boolean" />
  13342. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistoryPos" />
  13343. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmPatrolType" ToRole="CmSite" />
  13344. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistory" />
  13345. </EntityType>
  13346. <EntityType Name="CmPatrolGroup">
  13347. <Key>
  13348. <PropertyRef Name="SiteId" />
  13349. <PropertyRef Name="PatrolGroupId" />
  13350. </Key>
  13351. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13352. <Property Name="PatrolGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13353. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  13354. <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolGroupUser" />
  13355. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolPlan" />
  13356. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmPatrolGroup" ToRole="CmSite" />
  13357. </EntityType>
  13358. <EntityType Name="CmPatrolGroupUser">
  13359. <Key>
  13360. <PropertyRef Name="SiteId" />
  13361. <PropertyRef Name="PatrolGroupId" />
  13362. <PropertyRef Name="UserId" />
  13363. </Key>
  13364. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13365. <Property Name="PatrolGroupId" Type="Int32" Nullable="false" />
  13366. <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  13367. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroupUser" ToRole="CmPatrolGroup" />
  13368. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmPatrolGroupUser" ToRole="CmUser" />
  13369. </EntityType>
  13370. <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
  13371. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
  13372. <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
  13373. <ReferentialConstraint>
  13374. <Principal Role="CmPatrolGroup">
  13375. <PropertyRef Name="SiteId" />
  13376. <PropertyRef Name="PatrolGroupId" />
  13377. </Principal>
  13378. <Dependent Role="CmPatrolGroupUser">
  13379. <PropertyRef Name="SiteId" />
  13380. <PropertyRef Name="PatrolGroupId" />
  13381. </Dependent>
  13382. </ReferentialConstraint>
  13383. </Association>
  13384. <Association Name="FK_CmPatrolGroupUser_CmUser">
  13385. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  13386. <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
  13387. <ReferentialConstraint>
  13388. <Principal Role="CmUser">
  13389. <PropertyRef Name="SiteId" />
  13390. <PropertyRef Name="UserId" />
  13391. </Principal>
  13392. <Dependent Role="CmPatrolGroupUser">
  13393. <PropertyRef Name="SiteId" />
  13394. <PropertyRef Name="UserId" />
  13395. </Dependent>
  13396. </ReferentialConstraint>
  13397. </Association>
  13398. <EntityType Name="CmPatrolPos">
  13399. <Key>
  13400. <PropertyRef Name="SiteId" />
  13401. <PropertyRef Name="PosId" />
  13402. </Key>
  13403. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13404. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  13405. <Property Name="FloorId" Type="Int32" Nullable="false" />
  13406. <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13407. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  13408. <Property Name="TagId" Type="String" MaxLength="32" FixedLength="false" Unicode="true" />
  13409. <Property Name="PosDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  13410. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmPatrolPos" ToRole="CmBuilding" />
  13411. <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmPatrolPos" ToRole="CmFloor" />
  13412. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolCoursePos" />
  13413. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolHistoryPos" />
  13414. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmPatrolPos" ToRole="CmSite" />
  13415. </EntityType>
  13416. <Association Name="FK_CmPatrolPos_CmBuilding">
  13417. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
  13418. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  13419. <ReferentialConstraint>
  13420. <Principal Role="CmBuilding">
  13421. <PropertyRef Name="SiteId" />
  13422. <PropertyRef Name="BuildingId" />
  13423. </Principal>
  13424. <Dependent Role="CmPatrolPos">
  13425. <PropertyRef Name="SiteId" />
  13426. <PropertyRef Name="BuildingId" />
  13427. </Dependent>
  13428. </ReferentialConstraint>
  13429. </Association>
  13430. <Association Name="FK_CmPatrolPos_CmFloor">
  13431. <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="1" />
  13432. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  13433. <ReferentialConstraint>
  13434. <Principal Role="CmFloor">
  13435. <PropertyRef Name="SiteId" />
  13436. <PropertyRef Name="BuildingId" />
  13437. <PropertyRef Name="FloorId" />
  13438. </Principal>
  13439. <Dependent Role="CmPatrolPos">
  13440. <PropertyRef Name="SiteId" />
  13441. <PropertyRef Name="BuildingId" />
  13442. <PropertyRef Name="FloorId" />
  13443. </Dependent>
  13444. </ReferentialConstraint>
  13445. </Association>
  13446. <EntityType Name="CmPatrolCourse">
  13447. <Key>
  13448. <PropertyRef Name="SiteId" />
  13449. <PropertyRef Name="PatrolCourseId" />
  13450. </Key>
  13451. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13452. <Property Name="PatrolCourseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13453. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  13454. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolCoursePos" />
  13455. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolPlan" />
  13456. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmPatrolCourse" ToRole="CmSite" />
  13457. </EntityType>
  13458. <EntityType Name="CmPatrolCoursePos">
  13459. <Key>
  13460. <PropertyRef Name="SiteId" />
  13461. <PropertyRef Name="PatrolCourseId" />
  13462. <PropertyRef Name="PosId" />
  13463. <PropertyRef Name="BuildingId" />
  13464. <PropertyRef Name="FloorId" />
  13465. </Key>
  13466. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13467. <Property Name="PatrolCourseId" Type="Int32" Nullable="false" />
  13468. <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="None" />
  13469. <Property Name="CourseOrder" Type="Int32" Nullable="false" />
  13470. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCoursePos" ToRole="CmPatrolCourse" />
  13471. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  13472. <Property Name="FloorId" Type="Int32" Nullable="false" />
  13473. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolCoursePos" ToRole="CmPatrolPos" />
  13474. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmPatrolCoursePos" ToRole="CmSite" />
  13475. </EntityType>
  13476. <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
  13477. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
  13478. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  13479. <ReferentialConstraint>
  13480. <Principal Role="CmPatrolCourse">
  13481. <PropertyRef Name="SiteId" />
  13482. <PropertyRef Name="PatrolCourseId" />
  13483. </Principal>
  13484. <Dependent Role="CmPatrolCoursePos">
  13485. <PropertyRef Name="SiteId" />
  13486. <PropertyRef Name="PatrolCourseId" />
  13487. </Dependent>
  13488. </ReferentialConstraint>
  13489. </Association>
  13490. <Association Name="FK_CmPatrolCoursePos_CmPatrolPos">
  13491. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
  13492. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  13493. <ReferentialConstraint>
  13494. <Principal Role="CmPatrolPos">
  13495. <PropertyRef Name="SiteId" />
  13496. <PropertyRef Name="PosId" />
  13497. </Principal>
  13498. <Dependent Role="CmPatrolCoursePos">
  13499. <PropertyRef Name="SiteId" />
  13500. <PropertyRef Name="PosId" />
  13501. </Dependent>
  13502. </ReferentialConstraint>
  13503. </Association>
  13504. <EntityType Name="CmPatrolPlan">
  13505. <Key>
  13506. <PropertyRef Name="SiteId" />
  13507. <PropertyRef Name="PatrolPlanId" />
  13508. </Key>
  13509. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13510. <Property Name="PatrolPlanId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13511. <Property Name="GroupId" Type="Int32" Nullable="false" />
  13512. <Property Name="CourseId" Type="Int32" Nullable="false" />
  13513. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
  13514. <Property Name="PlanDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
  13515. <Property Name="term" Type="Int32" Nullable="false" />
  13516. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolPlan" ToRole="CmPatrolCourse" />
  13517. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolPlan" ToRole="CmPatrolGroup" />
  13518. <Property Name="inDate" Type="DateTime" Precision="3" />
  13519. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolPlan" ToRole="CmPatrolSchedule" />
  13520. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmPatrolPlan" ToRole="CmSite" />
  13521. </EntityType>
  13522. <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
  13523. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
  13524. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  13525. <ReferentialConstraint>
  13526. <Principal Role="CmPatrolCourse">
  13527. <PropertyRef Name="SiteId" />
  13528. <PropertyRef Name="PatrolCourseId" />
  13529. </Principal>
  13530. <Dependent Role="CmPatrolPlan">
  13531. <PropertyRef Name="SiteId" />
  13532. <PropertyRef Name="CourseId" />
  13533. </Dependent>
  13534. </ReferentialConstraint>
  13535. </Association>
  13536. <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
  13537. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
  13538. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  13539. <ReferentialConstraint>
  13540. <Principal Role="CmPatrolGroup">
  13541. <PropertyRef Name="SiteId" />
  13542. <PropertyRef Name="PatrolGroupId" />
  13543. </Principal>
  13544. <Dependent Role="CmPatrolPlan">
  13545. <PropertyRef Name="SiteId" />
  13546. <PropertyRef Name="GroupId" />
  13547. </Dependent>
  13548. </ReferentialConstraint>
  13549. </Association>
  13550. <EntityType Name="CmPatrolHistoryPos">
  13551. <Key>
  13552. <PropertyRef Name="mId" />
  13553. </Key>
  13554. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13555. <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" />
  13556. <Property Name="PosId" Type="Int32" Nullable="false" />
  13557. <Property Name="PatrolTime" Type="DateTime" Nullable="false" Precision="3" />
  13558. <Property Name="term" Type="Int32" />
  13559. <Property Name="resultType" Type="Int32" Nullable="false" />
  13560. <Property Name="mId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13561. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolPos" />
  13562. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolType" />
  13563. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmPatrolHistoryPos" ToRole="CmSite" />
  13564. </EntityType>
  13565. <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
  13566. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
  13567. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  13568. <ReferentialConstraint>
  13569. <Principal Role="CmPatrolPos">
  13570. <PropertyRef Name="SiteId" />
  13571. <PropertyRef Name="PosId" />
  13572. </Principal>
  13573. <Dependent Role="CmPatrolHistoryPos">
  13574. <PropertyRef Name="SiteId" />
  13575. <PropertyRef Name="PosId" />
  13576. </Dependent>
  13577. </ReferentialConstraint>
  13578. </Association>
  13579. <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
  13580. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
  13581. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  13582. <ReferentialConstraint>
  13583. <Principal Role="CmPatrolType">
  13584. <PropertyRef Name="SiteId" />
  13585. <PropertyRef Name="PatrolTypeId" />
  13586. </Principal>
  13587. <Dependent Role="CmPatrolHistoryPos">
  13588. <PropertyRef Name="SiteId" />
  13589. <PropertyRef Name="resultType" />
  13590. </Dependent>
  13591. </ReferentialConstraint>
  13592. </Association>
  13593. <EntityType Name="BemsPeakInfo">
  13594. <Key>
  13595. <PropertyRef Name="SiteId" />
  13596. </Key>
  13597. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13598. <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13599. <Property Name="MaxPeakValue" Type="Double" Nullable="false" />
  13600. <Property Name="MinDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13601. <Property Name="MinPeakValue" Type="Double" Nullable="false" />
  13602. <Property Name="todayMaxPeakValue" Type="Double" Nullable="false" />
  13603. <Property Name="todayMinPeakValue" Type="Double" Nullable="false" />
  13604. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="BemsPeakInfo" ToRole="CmSite" />
  13605. </EntityType>
  13606. <EntityType Name="BemsPeakHistory">
  13607. <Key>
  13608. <PropertyRef Name="SiteId" />
  13609. <PropertyRef Name="CreatedDateTime" />
  13610. </Key>
  13611. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13612. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13613. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  13614. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="BemsPeakHistory" ToRole="CmSite" />
  13615. </EntityType>
  13616. <EntityType Name="CmPatrolSchedule">
  13617. <Key>
  13618. <PropertyRef Name="SiteId" />
  13619. <PropertyRef Name="ScheduleId" />
  13620. </Key>
  13621. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13622. <Property Name="ScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13623. <Property Name="PlanId" Type="Int32" Nullable="false" />
  13624. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
  13625. <Property Name="ScheduleDesc" Type="String" MaxLength="128" FixedLength="false" Unicode="false" />
  13626. <Property Name="inDate" Type="DateTime" Precision="3" />
  13627. <Property Name="patrolDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13628. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolSchedule" ToRole="CmPatrolPlan" />
  13629. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmPatrolSchedule" ToRole="CmSite" />
  13630. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolSchedule" ToRole="CmPatrolHistory" />
  13631. </EntityType>
  13632. <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
  13633. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="1" />
  13634. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
  13635. <ReferentialConstraint>
  13636. <Principal Role="CmPatrolPlan">
  13637. <PropertyRef Name="SiteId" />
  13638. <PropertyRef Name="PatrolPlanId" />
  13639. </Principal>
  13640. <Dependent Role="CmPatrolSchedule">
  13641. <PropertyRef Name="SiteId" />
  13642. <PropertyRef Name="PlanId" />
  13643. </Dependent>
  13644. </ReferentialConstraint>
  13645. </Association>
  13646. <EntityType Name="BemsNoticePriceBase">
  13647. <Key>
  13648. <PropertyRef Name="SiteId" />
  13649. <PropertyRef Name="FuelTypeId" />
  13650. <PropertyRef Name="ApplyDate" />
  13651. <PropertyRef Name="ContractType" />
  13652. </Key>
  13653. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13654. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  13655. <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
  13656. <Property Name="ContractType" Type="Int16" Nullable="false" />
  13657. <Property Name="PrimaryPrice" Type="Int32" />
  13658. <Property Name="SecondaryPrice" Type="Int32" />
  13659. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceContractType" />
  13660. <NavigationProperty Name="BemsNoticePriceDetail" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceDetail" />
  13661. </EntityType>
  13662. <EntityType Name="BemsNoticePriceContractType">
  13663. <Key>
  13664. <PropertyRef Name="FuelTypeId" />
  13665. <PropertyRef Name="ContractType" />
  13666. </Key>
  13667. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  13668. <Property Name="ContractType" Type="Int16" Nullable="false" />
  13669. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  13670. <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="BemsNoticePriceBase" />
  13671. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsNoticePriceContractType" ToRole="BemsFuelType" />
  13672. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="CmFacility" />
  13673. </EntityType>
  13674. <EntityType Name="BemsNoticePriceDetail">
  13675. <Key>
  13676. <PropertyRef Name="SiteId" />
  13677. <PropertyRef Name="FuelTypeId" />
  13678. <PropertyRef Name="ApplyDate" />
  13679. <PropertyRef Name="ContractType" />
  13680. <PropertyRef Name="DataId" />
  13681. </Key>
  13682. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13683. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  13684. <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
  13685. <Property Name="ContractType" Type="Int16" Nullable="false" />
  13686. <Property Name="DataId" Type="Int16" Nullable="false" />
  13687. <Property Name="P01" Type="Double" />
  13688. <Property Name="P02" Type="Double" />
  13689. <Property Name="P03" Type="Double" />
  13690. <Property Name="P04" Type="Double" />
  13691. <Property Name="P05" Type="Double" />
  13692. <Property Name="P06" Type="Double" />
  13693. <Property Name="P07" Type="Double" />
  13694. <Property Name="P08" Type="Double" />
  13695. <Property Name="P09" Type="Double" />
  13696. <Property Name="P10" Type="Double" />
  13697. <Property Name="P11" Type="Double" />
  13698. <Property Name="P12" Type="Double" />
  13699. <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceDetail" ToRole="BemsNoticePriceBase" />
  13700. </EntityType>
  13701. <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  13702. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="1" />
  13703. <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="*" />
  13704. <ReferentialConstraint>
  13705. <Principal Role="BemsNoticePriceContractType">
  13706. <PropertyRef Name="FuelTypeId" />
  13707. <PropertyRef Name="ContractType" />
  13708. </Principal>
  13709. <Dependent Role="BemsNoticePriceBase">
  13710. <PropertyRef Name="FuelTypeId" />
  13711. <PropertyRef Name="ContractType" />
  13712. </Dependent>
  13713. </ReferentialConstraint>
  13714. </Association>
  13715. <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  13716. <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="1" />
  13717. <End Type="iBemsModel.BemsNoticePriceDetail" Role="BemsNoticePriceDetail" Multiplicity="*" />
  13718. <ReferentialConstraint>
  13719. <Principal Role="BemsNoticePriceBase">
  13720. <PropertyRef Name="SiteId" />
  13721. <PropertyRef Name="FuelTypeId" />
  13722. <PropertyRef Name="ApplyDate" />
  13723. <PropertyRef Name="ContractType" />
  13724. </Principal>
  13725. <Dependent Role="BemsNoticePriceDetail">
  13726. <PropertyRef Name="SiteId" />
  13727. <PropertyRef Name="FuelTypeId" />
  13728. <PropertyRef Name="ApplyDate" />
  13729. <PropertyRef Name="ContractType" />
  13730. </Dependent>
  13731. </ReferentialConstraint>
  13732. </Association>
  13733. <EntityType Name="BemsPeakFacility">
  13734. <Key>
  13735. <PropertyRef Name="SiteId" />
  13736. <PropertyRef Name="MaxDateTime" />
  13737. <PropertyRef Name="FacilityCode" />
  13738. </Key>
  13739. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13740. <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13741. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  13742. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="BemsPeakFacility" ToRole="CmFacility" />
  13743. </EntityType>
  13744. <EntityType Name="CmSite">
  13745. <Key>
  13746. <PropertyRef Name="SiteId" />
  13747. </Key>
  13748. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13749. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  13750. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  13751. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  13752. <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  13753. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  13754. <Property Name="PhoneNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13755. <Property Name="URL" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  13756. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  13757. <Property Name="IsUse" Type="Boolean" />
  13758. <Property Name="SortOrderNo" Type="Int32" />
  13759. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  13760. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13761. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  13762. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13763. <Property Name="IsControlSchedule" Type="Boolean" />
  13764. <Property Name="ScheduleCheckHour" Type="Int32" />
  13765. <Property Name="MaxPeak" Type="Double" />
  13766. <Property Name="lat" Type="Double" />
  13767. <Property Name="lng" Type="Double" />
  13768. <NavigationProperty Name="BemsPeakHistory" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="CmSite" ToRole="BemsPeakHistory" />
  13769. <NavigationProperty Name="BemsPeakInfo" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="CmSite" ToRole="BemsPeakInfo" />
  13770. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmSite" ToRole="CmBuilding" />
  13771. <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmSite" ToRole="CmCompany" />
  13772. <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmSite" ToRole="CmFacilityTempSet" />
  13773. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmSite" ToRole="CmFile" />
  13774. <NavigationProperty Name="CmHoliday" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmSite" ToRole="CmHoliday" />
  13775. <NavigationProperty Name="CmHoliday1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmSite" ToRole="CmHoliday" />
  13776. <NavigationProperty Name="CmHolidayCustom" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmSite" ToRole="CmHolidayCustom" />
  13777. <NavigationProperty Name="CmHolidayCustom1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmSite" ToRole="CmHolidayCustom" />
  13778. <NavigationProperty Name="CmHolidayWeekend" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmSite" ToRole="CmHolidayWeekend" />
  13779. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmSite" ToRole="CmPatrolCourse" />
  13780. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmSite" ToRole="CmPatrolCoursePos" />
  13781. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmSite" ToRole="CmPatrolGroup" />
  13782. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmSite" ToRole="CmPatrolHistoryPos" />
  13783. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmSite" ToRole="CmPatrolPlan" />
  13784. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmSite" ToRole="CmPatrolPos" />
  13785. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmSite" ToRole="CmPatrolSchedule" />
  13786. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmSite" ToRole="CmPatrolType" />
  13787. <NavigationProperty Name="CmPosition" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmSite" ToRole="CmPosition" />
  13788. <NavigationProperty Name="CmPosition1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmSite" ToRole="CmPosition" />
  13789. <NavigationProperty Name="CmUserGroup" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmSite" ToRole="CmUserGroup" />
  13790. <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
  13791. <NavigationProperty Name="FmsDrawingCodeType" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
  13792. <NavigationProperty Name="FmsDrawing" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="CmSite" ToRole="FmsDrawing" />
  13793. <NavigationProperty Name="FmsDrawingCodeGroup1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
  13794. <NavigationProperty Name="FmsDrawingCodeType1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
  13795. <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="CmSite" ToRole="FmsFacilityCodeClass" />
  13796. <NavigationProperty Name="FmsLicense" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="CmSite" ToRole="FmsLicense" />
  13797. <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="CmSite" ToRole="FmsMaterialCarriedForward" />
  13798. <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeClass" />
  13799. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeLocation" />
  13800. <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeType" />
  13801. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseOrder" />
  13802. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseRequest" />
  13803. <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="CmSite" ToRole="FmsMaterialStored" />
  13804. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="CmSite" ToRole="FmsMaterialTradeCompany" />
  13805. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="CmSite" ToRole="FmsMaterialWarehouse" />
  13806. <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCauseClass" />
  13807. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCycleUnit" />
  13808. <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeEmergency" />
  13809. <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeHolidayWorkType" />
  13810. <NavigationProperty Name="FmsWorkCodeLegalInspectionAgency" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeLegalInspectionAgency" />
  13811. <NavigationProperty Name="FmsWorkOrder" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="CmSite" ToRole="FmsWorkOrder" />
  13812. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="CmSite" ToRole="FmsWorkRequest" />
  13813. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmSite" ToRole="CmZoneTempHumiSet" />
  13814. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="CmSite" ToRole="FmsMaterial" />
  13815. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="CmSite" ToRole="FmsMaterialRelease" />
  13816. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="CmSite" ToRole="FmsReport" />
  13817. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmSite" ToRole="CmPatrolHistory" />
  13818. <Property Name="controlSchedule" Type="Boolean" />
  13819. <NavigationProperty Name="CmMenu" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmSite" ToRole="CmMenu" />
  13820. <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="CmSite" ToRole="BemsChartInfo" />
  13821. <Property Name="BuildingSize" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  13822. <Property Name="GrossArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13823. <Property Name="BuildingArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13824. <Property Name="FloorAreaRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13825. <Property Name="BuildingCoverageRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13826. <Property Name="MainUse" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  13827. <Property Name="CompletionDate" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13828. <Property Name="Standard" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13829. <Property Name="MainUseIndex" Type="Int32" />
  13830. <Property Name="HDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13831. <Property Name="CDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13832. <NavigationProperty Name="BemsPeopleIncrease" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="CmSite" ToRole="BemsPeopleIncrease" />
  13833. <NavigationProperty Name="BemsRentalRate" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="CmSite" ToRole="BemsRentalRate" />
  13834. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="CmSite" ToRole="BemsSitePrice" />
  13835. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="CmSite" ToRole="BemsSitePriceHistory" />
  13836. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="CmSite" ToRole="BemsAlarmSetting" />
  13837. <NavigationProperty Name="BemsEnergyConfigPercentMonth" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="CmSite" ToRole="BemsEnergyConfigPercentMonth" />
  13838. <NavigationProperty Name="BemsEnergyConfigPercentWeek" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="CmSite" ToRole="BemsEnergyConfigPercentWeek" />
  13839. <NavigationProperty Name="BemsEnergyDailyRegression" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="CmSite" ToRole="BemsEnergyDailyRegression" />
  13840. </EntityType>
  13841. <Association Name="FK_BemsPeakHIstory_CmSite">
  13842. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13843. <End Type="iBemsModel.BemsPeakHistory" Role="BemsPeakHistory" Multiplicity="*" />
  13844. <ReferentialConstraint>
  13845. <Principal Role="CmSite">
  13846. <PropertyRef Name="SiteId" />
  13847. </Principal>
  13848. <Dependent Role="BemsPeakHistory">
  13849. <PropertyRef Name="SiteId" />
  13850. </Dependent>
  13851. </ReferentialConstraint>
  13852. </Association>
  13853. <Association Name="FK_BemsPeakInfo_CmSite">
  13854. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13855. <End Type="iBemsModel.BemsPeakInfo" Role="BemsPeakInfo" Multiplicity="0..1" />
  13856. <ReferentialConstraint>
  13857. <Principal Role="CmSite">
  13858. <PropertyRef Name="SiteId" />
  13859. </Principal>
  13860. <Dependent Role="BemsPeakInfo">
  13861. <PropertyRef Name="SiteId" />
  13862. </Dependent>
  13863. </ReferentialConstraint>
  13864. </Association>
  13865. <Association Name="FK__CmBuildin__SiteI__3BFFE745">
  13866. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13867. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="*" />
  13868. <ReferentialConstraint>
  13869. <Principal Role="CmSite">
  13870. <PropertyRef Name="SiteId" />
  13871. </Principal>
  13872. <Dependent Role="CmBuilding">
  13873. <PropertyRef Name="SiteId" />
  13874. </Dependent>
  13875. </ReferentialConstraint>
  13876. </Association>
  13877. <Association Name="FK__CmCompany__SiteI__336AA144">
  13878. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13879. <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="*" />
  13880. <ReferentialConstraint>
  13881. <Principal Role="CmSite">
  13882. <PropertyRef Name="SiteId" />
  13883. </Principal>
  13884. <Dependent Role="CmCompany">
  13885. <PropertyRef Name="SiteId" />
  13886. </Dependent>
  13887. </ReferentialConstraint>
  13888. </Association>
  13889. <Association Name="FK_CmFacilityTempSet_CmSite">
  13890. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13891. <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="*" />
  13892. <ReferentialConstraint>
  13893. <Principal Role="CmSite">
  13894. <PropertyRef Name="SiteId" />
  13895. </Principal>
  13896. <Dependent Role="CmFacilityTempSet">
  13897. <PropertyRef Name="SiteId" />
  13898. </Dependent>
  13899. </ReferentialConstraint>
  13900. </Association>
  13901. <Association Name="FK__CmFile__SiteId__2759D01A">
  13902. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13903. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="*" />
  13904. <ReferentialConstraint>
  13905. <Principal Role="CmSite">
  13906. <PropertyRef Name="SiteId" />
  13907. </Principal>
  13908. <Dependent Role="CmFile">
  13909. <PropertyRef Name="SiteId" />
  13910. </Dependent>
  13911. </ReferentialConstraint>
  13912. </Association>
  13913. <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
  13914. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13915. <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
  13916. <ReferentialConstraint>
  13917. <Principal Role="CmSite">
  13918. <PropertyRef Name="SiteId" />
  13919. </Principal>
  13920. <Dependent Role="CmHoliday">
  13921. <PropertyRef Name="SiteId" />
  13922. </Dependent>
  13923. </ReferentialConstraint>
  13924. </Association>
  13925. <Association Name="FK__CmHoliday__SiteI__65AC084E">
  13926. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13927. <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
  13928. <ReferentialConstraint>
  13929. <Principal Role="CmSite">
  13930. <PropertyRef Name="SiteId" />
  13931. </Principal>
  13932. <Dependent Role="CmHoliday">
  13933. <PropertyRef Name="SiteId" />
  13934. </Dependent>
  13935. </ReferentialConstraint>
  13936. </Association>
  13937. <Association Name="FK__CmHoliday__SiteI__10766AC2">
  13938. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13939. <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
  13940. <ReferentialConstraint>
  13941. <Principal Role="CmSite">
  13942. <PropertyRef Name="SiteId" />
  13943. </Principal>
  13944. <Dependent Role="CmHolidayCustom">
  13945. <PropertyRef Name="SiteId" />
  13946. </Dependent>
  13947. </ReferentialConstraint>
  13948. </Association>
  13949. <Association Name="FK__CmHoliday__SiteI__66A02C87">
  13950. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13951. <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
  13952. <ReferentialConstraint>
  13953. <Principal Role="CmSite">
  13954. <PropertyRef Name="SiteId" />
  13955. </Principal>
  13956. <Dependent Role="CmHolidayCustom">
  13957. <PropertyRef Name="SiteId" />
  13958. </Dependent>
  13959. </ReferentialConstraint>
  13960. </Association>
  13961. <Association Name="FK__CmHoliday__SiteI__0D99FE17">
  13962. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13963. <End Type="iBemsModel.CmHolidayWeekend" Role="CmHolidayWeekend" Multiplicity="0..1" />
  13964. <ReferentialConstraint>
  13965. <Principal Role="CmSite">
  13966. <PropertyRef Name="SiteId" />
  13967. </Principal>
  13968. <Dependent Role="CmHolidayWeekend">
  13969. <PropertyRef Name="SiteId" />
  13970. </Dependent>
  13971. </ReferentialConstraint>
  13972. </Association>
  13973. <Association Name="FK_CmPatrolCourse_CmSite">
  13974. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13975. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="*" />
  13976. <ReferentialConstraint>
  13977. <Principal Role="CmSite">
  13978. <PropertyRef Name="SiteId" />
  13979. </Principal>
  13980. <Dependent Role="CmPatrolCourse">
  13981. <PropertyRef Name="SiteId" />
  13982. </Dependent>
  13983. </ReferentialConstraint>
  13984. </Association>
  13985. <Association Name="FK_CmPatrolCoursePos_CmSite">
  13986. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13987. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  13988. <ReferentialConstraint>
  13989. <Principal Role="CmSite">
  13990. <PropertyRef Name="SiteId" />
  13991. </Principal>
  13992. <Dependent Role="CmPatrolCoursePos">
  13993. <PropertyRef Name="SiteId" />
  13994. </Dependent>
  13995. </ReferentialConstraint>
  13996. </Association>
  13997. <Association Name="FK_CmPatrolGroup_CmSite">
  13998. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13999. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="*" />
  14000. <ReferentialConstraint>
  14001. <Principal Role="CmSite">
  14002. <PropertyRef Name="SiteId" />
  14003. </Principal>
  14004. <Dependent Role="CmPatrolGroup">
  14005. <PropertyRef Name="SiteId" />
  14006. </Dependent>
  14007. </ReferentialConstraint>
  14008. </Association>
  14009. <Association Name="FK_CmPatrolHistoryPos_CmSite">
  14010. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14011. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  14012. <ReferentialConstraint>
  14013. <Principal Role="CmSite">
  14014. <PropertyRef Name="SiteId" />
  14015. </Principal>
  14016. <Dependent Role="CmPatrolHistoryPos">
  14017. <PropertyRef Name="SiteId" />
  14018. </Dependent>
  14019. </ReferentialConstraint>
  14020. </Association>
  14021. <Association Name="FK_CmPatrolPlan_CmSite">
  14022. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14023. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  14024. <ReferentialConstraint>
  14025. <Principal Role="CmSite">
  14026. <PropertyRef Name="SiteId" />
  14027. </Principal>
  14028. <Dependent Role="CmPatrolPlan">
  14029. <PropertyRef Name="SiteId" />
  14030. </Dependent>
  14031. </ReferentialConstraint>
  14032. </Association>
  14033. <Association Name="FK_CmPatrolPos_CmSite">
  14034. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14035. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  14036. <ReferentialConstraint>
  14037. <Principal Role="CmSite">
  14038. <PropertyRef Name="SiteId" />
  14039. </Principal>
  14040. <Dependent Role="CmPatrolPos">
  14041. <PropertyRef Name="SiteId" />
  14042. </Dependent>
  14043. </ReferentialConstraint>
  14044. </Association>
  14045. <Association Name="FK_CmPatrolSchedule_CmSite">
  14046. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14047. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
  14048. <ReferentialConstraint>
  14049. <Principal Role="CmSite">
  14050. <PropertyRef Name="SiteId" />
  14051. </Principal>
  14052. <Dependent Role="CmPatrolSchedule">
  14053. <PropertyRef Name="SiteId" />
  14054. </Dependent>
  14055. </ReferentialConstraint>
  14056. </Association>
  14057. <Association Name="FK_CmPatrolType_CmSite">
  14058. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14059. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="*" />
  14060. <ReferentialConstraint>
  14061. <Principal Role="CmSite">
  14062. <PropertyRef Name="SiteId" />
  14063. </Principal>
  14064. <Dependent Role="CmPatrolType">
  14065. <PropertyRef Name="SiteId" />
  14066. </Dependent>
  14067. </ReferentialConstraint>
  14068. </Association>
  14069. <Association Name="FK__CmPositio__SiteI__6A70BD6B">
  14070. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14071. <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
  14072. <ReferentialConstraint>
  14073. <Principal Role="CmSite">
  14074. <PropertyRef Name="SiteId" />
  14075. </Principal>
  14076. <Dependent Role="CmPosition">
  14077. <PropertyRef Name="SiteId" />
  14078. </Dependent>
  14079. </ReferentialConstraint>
  14080. </Association>
  14081. <Association Name="FK__CmUserPos__SiteI__44952D46">
  14082. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14083. <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
  14084. <ReferentialConstraint>
  14085. <Principal Role="CmSite">
  14086. <PropertyRef Name="SiteId" />
  14087. </Principal>
  14088. <Dependent Role="CmPosition">
  14089. <PropertyRef Name="SiteId" />
  14090. </Dependent>
  14091. </ReferentialConstraint>
  14092. </Association>
  14093. <Association Name="FK__CmUserGro__SiteI__53D770D6">
  14094. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14095. <End Type="iBemsModel.CmUserGroup" Role="CmUserGroup" Multiplicity="*" />
  14096. <ReferentialConstraint>
  14097. <Principal Role="CmSite">
  14098. <PropertyRef Name="SiteId" />
  14099. </Principal>
  14100. <Dependent Role="CmUserGroup">
  14101. <PropertyRef Name="SiteId" />
  14102. </Dependent>
  14103. </ReferentialConstraint>
  14104. </Association>
  14105. <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
  14106. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14107. <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
  14108. <ReferentialConstraint>
  14109. <Principal Role="CmSite">
  14110. <PropertyRef Name="SiteId" />
  14111. </Principal>
  14112. <Dependent Role="FmsDrawingCodeGroup">
  14113. <PropertyRef Name="SiteId" />
  14114. </Dependent>
  14115. </ReferentialConstraint>
  14116. </Association>
  14117. <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
  14118. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14119. <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
  14120. <ReferentialConstraint>
  14121. <Principal Role="CmSite">
  14122. <PropertyRef Name="SiteId" />
  14123. </Principal>
  14124. <Dependent Role="FmsDrawingCodeType">
  14125. <PropertyRef Name="SiteId" />
  14126. </Dependent>
  14127. </ReferentialConstraint>
  14128. </Association>
  14129. <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
  14130. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14131. <End Type="iBemsModel.FmsDrawing" Role="FmsDrawing" Multiplicity="*" />
  14132. <ReferentialConstraint>
  14133. <Principal Role="CmSite">
  14134. <PropertyRef Name="SiteId" />
  14135. </Principal>
  14136. <Dependent Role="FmsDrawing">
  14137. <PropertyRef Name="SiteId" />
  14138. </Dependent>
  14139. </ReferentialConstraint>
  14140. </Association>
  14141. <Association Name="FK__FmsDrawin__SiteI__6F357288">
  14142. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14143. <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
  14144. <ReferentialConstraint>
  14145. <Principal Role="CmSite">
  14146. <PropertyRef Name="SiteId" />
  14147. </Principal>
  14148. <Dependent Role="FmsDrawingCodeGroup">
  14149. <PropertyRef Name="SiteId" />
  14150. </Dependent>
  14151. </ReferentialConstraint>
  14152. </Association>
  14153. <Association Name="FK__FmsDrawin__SiteI__702996C1">
  14154. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14155. <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
  14156. <ReferentialConstraint>
  14157. <Principal Role="CmSite">
  14158. <PropertyRef Name="SiteId" />
  14159. </Principal>
  14160. <Dependent Role="FmsDrawingCodeType">
  14161. <PropertyRef Name="SiteId" />
  14162. </Dependent>
  14163. </ReferentialConstraint>
  14164. </Association>
  14165. <Association Name="FK__FmsFacilityCodeClass__CmSite">
  14166. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1">
  14167. <OnDelete Action="Cascade" />
  14168. </End>
  14169. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="*" />
  14170. <ReferentialConstraint>
  14171. <Principal Role="CmSite">
  14172. <PropertyRef Name="SiteId" />
  14173. </Principal>
  14174. <Dependent Role="FmsFacilityCodeClass">
  14175. <PropertyRef Name="SiteId" />
  14176. </Dependent>
  14177. </ReferentialConstraint>
  14178. </Association>
  14179. <Association Name="FK__FmsLicense__CmSite">
  14180. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14181. <End Type="iBemsModel.FmsLicense" Role="FmsLicense" Multiplicity="*" />
  14182. <ReferentialConstraint>
  14183. <Principal Role="CmSite">
  14184. <PropertyRef Name="SiteId" />
  14185. </Principal>
  14186. <Dependent Role="FmsLicense">
  14187. <PropertyRef Name="SiteId" />
  14188. </Dependent>
  14189. </ReferentialConstraint>
  14190. </Association>
  14191. <Association Name="FK__FmsMaterialCarriedForward__CmSite">
  14192. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14193. <End Type="iBemsModel.FmsMaterialCarriedForward" Role="FmsMaterialCarriedForward" Multiplicity="*" />
  14194. <ReferentialConstraint>
  14195. <Principal Role="CmSite">
  14196. <PropertyRef Name="SiteId" />
  14197. </Principal>
  14198. <Dependent Role="FmsMaterialCarriedForward">
  14199. <PropertyRef Name="SiteId" />
  14200. </Dependent>
  14201. </ReferentialConstraint>
  14202. </Association>
  14203. <Association Name="FK__FmsMaterialCodeClass__CmSite">
  14204. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14205. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="*" />
  14206. <ReferentialConstraint>
  14207. <Principal Role="CmSite">
  14208. <PropertyRef Name="SiteId" />
  14209. </Principal>
  14210. <Dependent Role="FmsMaterialCodeClass">
  14211. <PropertyRef Name="SiteId" />
  14212. </Dependent>
  14213. </ReferentialConstraint>
  14214. </Association>
  14215. <Association Name="FK__FmsMaterialCodeLocation__CmSite">
  14216. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14217. <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="*" />
  14218. <ReferentialConstraint>
  14219. <Principal Role="CmSite">
  14220. <PropertyRef Name="SiteId" />
  14221. </Principal>
  14222. <Dependent Role="FmsMaterialCodeLocation">
  14223. <PropertyRef Name="SiteId" />
  14224. </Dependent>
  14225. </ReferentialConstraint>
  14226. </Association>
  14227. <Association Name="FK__FmsMaterialCodeType__CmSite">
  14228. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14229. <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="*" />
  14230. <ReferentialConstraint>
  14231. <Principal Role="CmSite">
  14232. <PropertyRef Name="SiteId" />
  14233. </Principal>
  14234. <Dependent Role="FmsMaterialCodeType">
  14235. <PropertyRef Name="SiteId" />
  14236. </Dependent>
  14237. </ReferentialConstraint>
  14238. </Association>
  14239. <Association Name="FK__FmsMaterialOrder__CmSite">
  14240. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14241. <End Type="iBemsModel.FmsMaterialPurchaseOrder" Role="FmsMaterialPurchaseOrder" Multiplicity="*" />
  14242. <ReferentialConstraint>
  14243. <Principal Role="CmSite">
  14244. <PropertyRef Name="SiteId" />
  14245. </Principal>
  14246. <Dependent Role="FmsMaterialPurchaseOrder">
  14247. <PropertyRef Name="SiteId" />
  14248. </Dependent>
  14249. </ReferentialConstraint>
  14250. </Association>
  14251. <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
  14252. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14253. <End Type="iBemsModel.FmsMaterialPurchaseRequest" Role="FmsMaterialPurchaseRequest" Multiplicity="*" />
  14254. <ReferentialConstraint>
  14255. <Principal Role="CmSite">
  14256. <PropertyRef Name="SiteId" />
  14257. </Principal>
  14258. <Dependent Role="FmsMaterialPurchaseRequest">
  14259. <PropertyRef Name="SiteId" />
  14260. </Dependent>
  14261. </ReferentialConstraint>
  14262. </Association>
  14263. <Association Name="FK__FmsMaterialStored__CmSite">
  14264. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14265. <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
  14266. <ReferentialConstraint>
  14267. <Principal Role="CmSite">
  14268. <PropertyRef Name="SiteId" />
  14269. </Principal>
  14270. <Dependent Role="FmsMaterialStored">
  14271. <PropertyRef Name="SiteId" />
  14272. </Dependent>
  14273. </ReferentialConstraint>
  14274. </Association>
  14275. <Association Name="FK__FmsMaterialTradeCompany__CmSite">
  14276. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14277. <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="*" />
  14278. <ReferentialConstraint>
  14279. <Principal Role="CmSite">
  14280. <PropertyRef Name="SiteId" />
  14281. </Principal>
  14282. <Dependent Role="FmsMaterialTradeCompany">
  14283. <PropertyRef Name="SiteId" />
  14284. </Dependent>
  14285. </ReferentialConstraint>
  14286. </Association>
  14287. <Association Name="FK__FmsMaterialWarehouse__CmSite">
  14288. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14289. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="*" />
  14290. <ReferentialConstraint>
  14291. <Principal Role="CmSite">
  14292. <PropertyRef Name="SiteId" />
  14293. </Principal>
  14294. <Dependent Role="FmsMaterialWarehouse">
  14295. <PropertyRef Name="SiteId" />
  14296. </Dependent>
  14297. </ReferentialConstraint>
  14298. </Association>
  14299. <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
  14300. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14301. <End Type="iBemsModel.FmsWorkCodeCauseClass" Role="FmsWorkCodeCauseClass" Multiplicity="*" />
  14302. <ReferentialConstraint>
  14303. <Principal Role="CmSite">
  14304. <PropertyRef Name="SiteId" />
  14305. </Principal>
  14306. <Dependent Role="FmsWorkCodeCauseClass">
  14307. <PropertyRef Name="SiteId" />
  14308. </Dependent>
  14309. </ReferentialConstraint>
  14310. </Association>
  14311. <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
  14312. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14313. <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="*" />
  14314. <ReferentialConstraint>
  14315. <Principal Role="CmSite">
  14316. <PropertyRef Name="SiteId" />
  14317. </Principal>
  14318. <Dependent Role="FmsWorkCodeCycleUnit">
  14319. <PropertyRef Name="SiteId" />
  14320. </Dependent>
  14321. </ReferentialConstraint>
  14322. </Association>
  14323. <Association Name="FK__FmsWorkCodeEmergency__CmSite">
  14324. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14325. <End Type="iBemsModel.FmsWorkCodeEmergency" Role="FmsWorkCodeEmergency" Multiplicity="*" />
  14326. <ReferentialConstraint>
  14327. <Principal Role="CmSite">
  14328. <PropertyRef Name="SiteId" />
  14329. </Principal>
  14330. <Dependent Role="FmsWorkCodeEmergency">
  14331. <PropertyRef Name="SiteId" />
  14332. </Dependent>
  14333. </ReferentialConstraint>
  14334. </Association>
  14335. <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
  14336. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14337. <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="*" />
  14338. <ReferentialConstraint>
  14339. <Principal Role="CmSite">
  14340. <PropertyRef Name="SiteId" />
  14341. </Principal>
  14342. <Dependent Role="FmsWorkCodeHolidayWorkType">
  14343. <PropertyRef Name="SiteId" />
  14344. </Dependent>
  14345. </ReferentialConstraint>
  14346. </Association>
  14347. <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  14348. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14349. <End Type="iBemsModel.FmsWorkCodeLegalInspectionAgency" Role="FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
  14350. <ReferentialConstraint>
  14351. <Principal Role="CmSite">
  14352. <PropertyRef Name="SiteId" />
  14353. </Principal>
  14354. <Dependent Role="FmsWorkCodeLegalInspectionAgency">
  14355. <PropertyRef Name="SiteId" />
  14356. </Dependent>
  14357. </ReferentialConstraint>
  14358. </Association>
  14359. <Association Name="FK__FmsWorkOrder__CmSite">
  14360. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14361. <End Type="iBemsModel.FmsWorkOrder" Role="FmsWorkOrder" Multiplicity="*" />
  14362. <ReferentialConstraint>
  14363. <Principal Role="CmSite">
  14364. <PropertyRef Name="SiteId" />
  14365. </Principal>
  14366. <Dependent Role="FmsWorkOrder">
  14367. <PropertyRef Name="SiteId" />
  14368. </Dependent>
  14369. </ReferentialConstraint>
  14370. </Association>
  14371. <Association Name="FK__FmsWorkRequest__CmSite">
  14372. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14373. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  14374. <ReferentialConstraint>
  14375. <Principal Role="CmSite">
  14376. <PropertyRef Name="SiteId" />
  14377. </Principal>
  14378. <Dependent Role="FmsWorkRequest">
  14379. <PropertyRef Name="SiteId" />
  14380. </Dependent>
  14381. </ReferentialConstraint>
  14382. </Association>
  14383. <Association Name="FK_CmZoneTempHumiSet_CmSite">
  14384. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14385. <End Type="iBemsModel.CmZoneTempHumiSet" Role="CmZoneTempHumiSet" Multiplicity="*" />
  14386. <ReferentialConstraint>
  14387. <Principal Role="CmSite">
  14388. <PropertyRef Name="SiteId" />
  14389. </Principal>
  14390. <Dependent Role="CmZoneTempHumiSet">
  14391. <PropertyRef Name="SiteId" />
  14392. </Dependent>
  14393. </ReferentialConstraint>
  14394. </Association>
  14395. <Association Name="FK_FmsMaterial_CmSite">
  14396. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14397. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  14398. <ReferentialConstraint>
  14399. <Principal Role="CmSite">
  14400. <PropertyRef Name="SiteId" />
  14401. </Principal>
  14402. <Dependent Role="FmsMaterial">
  14403. <PropertyRef Name="SiteId" />
  14404. </Dependent>
  14405. </ReferentialConstraint>
  14406. </Association>
  14407. <Association Name="FK_FmsMaterialRelease_CmSite">
  14408. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14409. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  14410. <ReferentialConstraint>
  14411. <Principal Role="CmSite">
  14412. <PropertyRef Name="SiteId" />
  14413. </Principal>
  14414. <Dependent Role="FmsMaterialRelease">
  14415. <PropertyRef Name="SiteId" />
  14416. </Dependent>
  14417. </ReferentialConstraint>
  14418. </Association>
  14419. <EntityType Name="FmsReport">
  14420. <Key>
  14421. <PropertyRef Name="SiteId" />
  14422. <PropertyRef Name="RId" />
  14423. </Key>
  14424. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14425. <Property Name="RId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  14426. <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  14427. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  14428. <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  14429. <Property Name="FileId" Type="Int32" />
  14430. <Property Name="MakeDate" Type="DateTime" Nullable="false" Precision="3" />
  14431. <Property Name="ConfirmUserId1" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  14432. <Property Name="ConfirmUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  14433. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  14434. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="FmsReport" ToRole="CmBusinessField" />
  14435. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="FmsReport" ToRole="CmFile" />
  14436. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="FmsReport" ToRole="CmSite" />
  14437. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="FmsReport" ToRole="CmUser" />
  14438. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="FmsReport" ToRole="CmUser" />
  14439. <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="FmsReport" ToRole="CmUser" />
  14440. </EntityType>
  14441. <Association Name="FK_FmsReport_CmBusinessField">
  14442. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  14443. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14444. <ReferentialConstraint>
  14445. <Principal Role="CmBusinessField">
  14446. <PropertyRef Name="SiteId" />
  14447. <PropertyRef Name="BusinessFieldId" />
  14448. </Principal>
  14449. <Dependent Role="FmsReport">
  14450. <PropertyRef Name="SiteId" />
  14451. <PropertyRef Name="BusinessFieldId" />
  14452. </Dependent>
  14453. </ReferentialConstraint>
  14454. </Association>
  14455. <Association Name="FK_FmsReport_CmFile">
  14456. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  14457. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14458. <ReferentialConstraint>
  14459. <Principal Role="CmFile">
  14460. <PropertyRef Name="SiteId" />
  14461. <PropertyRef Name="FileId" />
  14462. </Principal>
  14463. <Dependent Role="FmsReport">
  14464. <PropertyRef Name="SiteId" />
  14465. <PropertyRef Name="FileId" />
  14466. </Dependent>
  14467. </ReferentialConstraint>
  14468. </Association>
  14469. <Association Name="FK_FmsReport_CmSite">
  14470. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14471. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14472. <ReferentialConstraint>
  14473. <Principal Role="CmSite">
  14474. <PropertyRef Name="SiteId" />
  14475. </Principal>
  14476. <Dependent Role="FmsReport">
  14477. <PropertyRef Name="SiteId" />
  14478. </Dependent>
  14479. </ReferentialConstraint>
  14480. </Association>
  14481. <Association Name="FK_FmsReport_CmUser">
  14482. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  14483. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14484. <ReferentialConstraint>
  14485. <Principal Role="CmUser">
  14486. <PropertyRef Name="SiteId" />
  14487. <PropertyRef Name="UserId" />
  14488. </Principal>
  14489. <Dependent Role="FmsReport">
  14490. <PropertyRef Name="SiteId" />
  14491. <PropertyRef Name="RegisterUserId" />
  14492. </Dependent>
  14493. </ReferentialConstraint>
  14494. </Association>
  14495. <Association Name="FK_FmsReport_CmUser1">
  14496. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  14497. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14498. <ReferentialConstraint>
  14499. <Principal Role="CmUser">
  14500. <PropertyRef Name="SiteId" />
  14501. <PropertyRef Name="UserId" />
  14502. </Principal>
  14503. <Dependent Role="FmsReport">
  14504. <PropertyRef Name="SiteId" />
  14505. <PropertyRef Name="ConfirmUserId1" />
  14506. </Dependent>
  14507. </ReferentialConstraint>
  14508. </Association>
  14509. <Association Name="FK_FmsReport_CmUser2">
  14510. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  14511. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14512. <ReferentialConstraint>
  14513. <Principal Role="CmUser">
  14514. <PropertyRef Name="SiteId" />
  14515. <PropertyRef Name="UserId" />
  14516. </Principal>
  14517. <Dependent Role="FmsReport">
  14518. <PropertyRef Name="SiteId" />
  14519. <PropertyRef Name="ConfirmUserId2" />
  14520. </Dependent>
  14521. </ReferentialConstraint>
  14522. </Association>
  14523. <EntityType Name="CmServiceEnergyCalcMonth">
  14524. <Key>
  14525. <PropertyRef Name="SiteId" />
  14526. <PropertyRef Name="calDate" />
  14527. <PropertyRef Name="ServiceTypeId" />
  14528. </Key>
  14529. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14530. <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
  14531. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  14532. <Property Name="Value" Type="Double" />
  14533. </EntityType>
  14534. <EntityType Name="CmServiceEnergyCalcDay">
  14535. <Key>
  14536. <PropertyRef Name="SiteId" />
  14537. <PropertyRef Name="calDate" />
  14538. <PropertyRef Name="ServiceTypeId" />
  14539. </Key>
  14540. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14541. <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
  14542. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  14543. <Property Name="Value" Type="Double" />
  14544. </EntityType>
  14545. <EntityType Name="CmPatrolHistory">
  14546. <Key>
  14547. <PropertyRef Name="PatrolHistoryId" />
  14548. </Key>
  14549. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14550. <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  14551. <Property Name="ScheduleId" Type="Int32" Nullable="false" />
  14552. <Property Name="startDate" Type="DateTime" Nullable="false" Precision="3" />
  14553. <Property Name="endDate" Type="DateTime" Precision="3" />
  14554. <Property Name="resultTypeId" Type="Int32" Nullable="false" />
  14555. <Property Name="resultDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
  14556. <Property Name="resultPosCnt" Type="Int32" />
  14557. <Property Name="resultNormalCnt" Type="Int32" />
  14558. <Property Name="resultAbnormalCnt" Type="Int32" />
  14559. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolHistory" ToRole="CmPatrolSchedule" />
  14560. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolHistory" ToRole="CmPatrolType" />
  14561. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmPatrolHistory" ToRole="CmSite" />
  14562. </EntityType>
  14563. <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
  14564. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="1" />
  14565. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  14566. <ReferentialConstraint>
  14567. <Principal Role="CmPatrolSchedule">
  14568. <PropertyRef Name="SiteId" />
  14569. <PropertyRef Name="ScheduleId" />
  14570. </Principal>
  14571. <Dependent Role="CmPatrolHistory">
  14572. <PropertyRef Name="SiteId" />
  14573. <PropertyRef Name="ScheduleId" />
  14574. </Dependent>
  14575. </ReferentialConstraint>
  14576. </Association>
  14577. <Association Name="FK_CmPatrolHistory_CmPatrolType">
  14578. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
  14579. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  14580. <ReferentialConstraint>
  14581. <Principal Role="CmPatrolType">
  14582. <PropertyRef Name="SiteId" />
  14583. <PropertyRef Name="PatrolTypeId" />
  14584. </Principal>
  14585. <Dependent Role="CmPatrolHistory">
  14586. <PropertyRef Name="SiteId" />
  14587. <PropertyRef Name="resultTypeId" />
  14588. </Dependent>
  14589. </ReferentialConstraint>
  14590. </Association>
  14591. <Association Name="FK_CmPatrolHistory_CmSite">
  14592. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14593. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  14594. <ReferentialConstraint>
  14595. <Principal Role="CmSite">
  14596. <PropertyRef Name="SiteId" />
  14597. </Principal>
  14598. <Dependent Role="CmPatrolHistory">
  14599. <PropertyRef Name="SiteId" />
  14600. </Dependent>
  14601. </ReferentialConstraint>
  14602. </Association>
  14603. <EntityType Name="BemsReportFormat">
  14604. <Key>
  14605. <PropertyRef Name="ReportFormatId" />
  14606. <PropertyRef Name="parts" />
  14607. </Key>
  14608. <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
  14609. <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  14610. <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  14611. <Property Name="parts" Type="Int32" Nullable="false" />
  14612. </EntityType>
  14613. <EntityType Name="FmsWorkSchedule">
  14614. <Key>
  14615. <PropertyRef Name="SiteId" />
  14616. <PropertyRef Name="WorkScheduleId" />
  14617. </Key>
  14618. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14619. <Property Name="WorkScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  14620. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  14621. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  14622. <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
  14623. <Property Name="InspectionAgencyId" Type="Int32" />
  14624. <Property Name="CycleSize" Type="Int32" Nullable="false" />
  14625. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  14626. <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
  14627. <Property Name="WorkDueDate" Type="DateTime" Nullable="false" Precision="3" />
  14628. <Property Name="UpdateUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  14629. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  14630. <Property Name="IsAutoOrder" Type="Boolean" Nullable="false" />
  14631. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  14632. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK__FmsWorkSchedule__CmBusinessField" FromRole="FmsWorkSchedule" ToRole="CmBusinessField" />
  14633. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__FmsWorkSchedule__CmUser" FromRole="FmsWorkSchedule" ToRole="CmUser" />
  14634. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeCycleUnit" />
  14635. <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeHolidayWorkType" />
  14636. <NavigationProperty Name="FmsWorkCodeType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeType" />
  14637. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkRequest" />
  14638. <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkScheduleToFacility" />
  14639. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="FmsWorkSchedule" ToRole="CmPartner" />
  14640. </EntityType>
  14641. <Association Name="FK__FmsWorkSchedule__CmBusinessField">
  14642. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  14643. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14644. <ReferentialConstraint>
  14645. <Principal Role="CmBusinessField">
  14646. <PropertyRef Name="SiteId" />
  14647. <PropertyRef Name="BusinessFieldId" />
  14648. </Principal>
  14649. <Dependent Role="FmsWorkSchedule">
  14650. <PropertyRef Name="SiteId" />
  14651. <PropertyRef Name="BusinessFieldId" />
  14652. </Dependent>
  14653. </ReferentialConstraint>
  14654. </Association>
  14655. <Association Name="FK__FmsWorkSchedule__CmUser">
  14656. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  14657. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14658. <ReferentialConstraint>
  14659. <Principal Role="CmUser">
  14660. <PropertyRef Name="SiteId" />
  14661. <PropertyRef Name="UserId" />
  14662. </Principal>
  14663. <Dependent Role="FmsWorkSchedule">
  14664. <PropertyRef Name="SiteId" />
  14665. <PropertyRef Name="UpdateUserId" />
  14666. </Dependent>
  14667. </ReferentialConstraint>
  14668. </Association>
  14669. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  14670. <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="1" />
  14671. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14672. <ReferentialConstraint>
  14673. <Principal Role="FmsWorkCodeCycleUnit">
  14674. <PropertyRef Name="SiteId" />
  14675. <PropertyRef Name="CycleUnitId" />
  14676. </Principal>
  14677. <Dependent Role="FmsWorkSchedule">
  14678. <PropertyRef Name="SiteId" />
  14679. <PropertyRef Name="CycleUnitId" />
  14680. </Dependent>
  14681. </ReferentialConstraint>
  14682. </Association>
  14683. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  14684. <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="1" />
  14685. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14686. <ReferentialConstraint>
  14687. <Principal Role="FmsWorkCodeHolidayWorkType">
  14688. <PropertyRef Name="SiteId" />
  14689. <PropertyRef Name="HolidayWorkTypeId" />
  14690. </Principal>
  14691. <Dependent Role="FmsWorkSchedule">
  14692. <PropertyRef Name="SiteId" />
  14693. <PropertyRef Name="HolidayWorkTypeId" />
  14694. </Dependent>
  14695. </ReferentialConstraint>
  14696. </Association>
  14697. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  14698. <End Type="iBemsModel.FmsWorkCodeType" Role="FmsWorkCodeType" Multiplicity="1" />
  14699. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14700. <ReferentialConstraint>
  14701. <Principal Role="FmsWorkCodeType">
  14702. <PropertyRef Name="WorkTypeId" />
  14703. </Principal>
  14704. <Dependent Role="FmsWorkSchedule">
  14705. <PropertyRef Name="WorkTypeId" />
  14706. </Dependent>
  14707. </ReferentialConstraint>
  14708. </Association>
  14709. <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
  14710. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="0..1" />
  14711. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  14712. <ReferentialConstraint>
  14713. <Principal Role="FmsWorkSchedule">
  14714. <PropertyRef Name="SiteId" />
  14715. <PropertyRef Name="WorkScheduleId" />
  14716. </Principal>
  14717. <Dependent Role="FmsWorkRequest">
  14718. <PropertyRef Name="SiteId" />
  14719. <PropertyRef Name="WorkScheduleId" />
  14720. </Dependent>
  14721. </ReferentialConstraint>
  14722. </Association>
  14723. <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  14724. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="1" />
  14725. <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
  14726. <ReferentialConstraint>
  14727. <Principal Role="FmsWorkSchedule">
  14728. <PropertyRef Name="SiteId" />
  14729. <PropertyRef Name="WorkScheduleId" />
  14730. </Principal>
  14731. <Dependent Role="FmsWorkScheduleToFacility">
  14732. <PropertyRef Name="SiteId" />
  14733. <PropertyRef Name="WorkScheduleId" />
  14734. </Dependent>
  14735. </ReferentialConstraint>
  14736. </Association>
  14737. <EntityType Name="CmMenu">
  14738. <Key>
  14739. <PropertyRef Name="SiteId" />
  14740. <PropertyRef Name="MenuId" />
  14741. </Key>
  14742. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14743. <Property Name="MenuId" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  14744. <Property Name="Used" Type="Boolean" />
  14745. <Property Name="MenuPath" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  14746. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14747. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmMenu" ToRole="CmSite" />
  14748. </EntityType>
  14749. <Association Name="FK_FmsWorkResultCheckItem_CmFile">
  14750. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  14751. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  14752. <ReferentialConstraint>
  14753. <Principal Role="CmFile">
  14754. <PropertyRef Name="SiteId" />
  14755. <PropertyRef Name="FileId" />
  14756. </Principal>
  14757. <Dependent Role="FmsWorkResultCheckItem">
  14758. <PropertyRef Name="SiteId" />
  14759. <PropertyRef Name="FileId1" />
  14760. </Dependent>
  14761. </ReferentialConstraint>
  14762. </Association>
  14763. <Association Name="FK_FmsWorkResultCheckItem_CmFile1">
  14764. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  14765. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  14766. <ReferentialConstraint>
  14767. <Principal Role="CmFile">
  14768. <PropertyRef Name="SiteId" />
  14769. <PropertyRef Name="FileId" />
  14770. </Principal>
  14771. <Dependent Role="FmsWorkResultCheckItem">
  14772. <PropertyRef Name="SiteId" />
  14773. <PropertyRef Name="FileId2" />
  14774. </Dependent>
  14775. </ReferentialConstraint>
  14776. </Association>
  14777. <Association Name="FK_CmMenu_CmSite">
  14778. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14779. <End Type="iBemsModel.CmMenu" Role="CmMenu" Multiplicity="*" />
  14780. <ReferentialConstraint>
  14781. <Principal Role="CmSite">
  14782. <PropertyRef Name="SiteId" />
  14783. </Principal>
  14784. <Dependent Role="CmMenu">
  14785. <PropertyRef Name="SiteId" />
  14786. </Dependent>
  14787. </ReferentialConstraint>
  14788. </Association>
  14789. <EntityType Name="BemsChartInfo">
  14790. <Key>
  14791. <PropertyRef Name="SiteId" />
  14792. <PropertyRef Name="FacilityTypeId" />
  14793. <PropertyRef Name="ChartId" />
  14794. </Key>
  14795. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14796. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  14797. <Property Name="ChartId" Type="Int32" Nullable="false" />
  14798. <Property Name="LAxTitle" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  14799. <Property Name="RAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14800. <Property Name="XAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14801. <Property Name="XSFmId" Type="Int32" />
  14802. <Property Name="XSType" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14803. <Property Name="LSFmId1" Type="Int32" Nullable="false" />
  14804. <Property Name="LSName1" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  14805. <Property Name="LSType1" Type="String" Nullable="false" MaxLength="16" FixedLength="false" Unicode="true" />
  14806. <Property Name="LSFmId2" Type="Int32" />
  14807. <Property Name="LSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14808. <Property Name="LSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14809. <Property Name="LSFmId3" Type="Int32" />
  14810. <Property Name="LSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14811. <Property Name="LSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14812. <Property Name="LSFmId4" Type="Int32" />
  14813. <Property Name="LSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14814. <Property Name="LSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14815. <Property Name="RSFmId1" Type="Int32" />
  14816. <Property Name="RSName1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14817. <Property Name="RSType1" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14818. <Property Name="RSFmId2" Type="Int32" />
  14819. <Property Name="RSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14820. <Property Name="RSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14821. <Property Name="RSFmId3" Type="Int32" />
  14822. <Property Name="RSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14823. <Property Name="RSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14824. <Property Name="RSFmId4" Type="Int32" />
  14825. <Property Name="RSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14826. <Property Name="RSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14827. <Property Name="Title" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  14828. <Property Name="UseX" Type="Boolean" />
  14829. <Property Name="UseLAxMinMax" Type="Boolean" />
  14830. <Property Name="UseRAxMinMax" Type="Boolean" />
  14831. <Property Name="UseXAxMinMax" Type="Boolean" />
  14832. <Property Name="LAxMin" Type="Double" />
  14833. <Property Name="LAxMax" Type="Double" />
  14834. <Property Name="RAxMin" Type="Double" />
  14835. <Property Name="RAxMax" Type="Double" />
  14836. <Property Name="XAxMin" Type="Double" />
  14837. <Property Name="XAxMax" Type="Double" />
  14838. <Property Name="Palette" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  14839. <Property Name="UseChart" Type="Boolean" />
  14840. <Property Name="UseLCTLine" Type="Boolean" Nullable="false" />
  14841. <Property Name="LCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14842. <Property Name="LCTLineValue" Type="Double" />
  14843. <Property Name="UseRCTLine" Type="Boolean" Nullable="false" />
  14844. <Property Name="RCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14845. <Property Name="RCTLineValue" Type="Double" />
  14846. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsChartInfo" ToRole="BemsFacilityType" />
  14847. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="BemsChartInfo" ToRole="CmSite" />
  14848. </EntityType>
  14849. <Association Name="FK_BemsChartInfo_BemsFacilityType">
  14850. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  14851. <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
  14852. <ReferentialConstraint>
  14853. <Principal Role="BemsFacilityType">
  14854. <PropertyRef Name="FacilityTypeId" />
  14855. </Principal>
  14856. <Dependent Role="BemsChartInfo">
  14857. <PropertyRef Name="FacilityTypeId" />
  14858. </Dependent>
  14859. </ReferentialConstraint>
  14860. </Association>
  14861. <Association Name="FK_BemsChartInfo_CmSite">
  14862. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14863. <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
  14864. <ReferentialConstraint>
  14865. <Principal Role="CmSite">
  14866. <PropertyRef Name="SiteId" />
  14867. </Principal>
  14868. <Dependent Role="BemsChartInfo">
  14869. <PropertyRef Name="SiteId" />
  14870. </Dependent>
  14871. </ReferentialConstraint>
  14872. </Association>
  14873. <EntityType Name="BemsPeopleIncrease">
  14874. <Key>
  14875. <PropertyRef Name="Date" />
  14876. <PropertyRef Name="SiteId" />
  14877. </Key>
  14878. <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
  14879. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14880. <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14881. <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14882. <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14883. <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14884. <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14885. <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14886. <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14887. <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14888. <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14889. <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14890. <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14891. <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14892. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="BemsPeopleIncrease" ToRole="CmSite" />
  14893. </EntityType>
  14894. <EntityType Name="BemsPriceCode">
  14895. <Key>
  14896. <PropertyRef Name="PriceCode" />
  14897. </Key>
  14898. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  14899. <Property Name="PriceCodeDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  14900. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  14901. <Property Name="Unit" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
  14902. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePrice" />
  14903. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePriceHistory" />
  14904. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsPriceCode" ToRole="BemsFuelType" />
  14905. </EntityType>
  14906. <EntityType Name="BemsPriceFormula">
  14907. <Key>
  14908. <PropertyRef Name="SiteId" />
  14909. <PropertyRef Name="PriceTypeId" />
  14910. <PropertyRef Name="FacilityTypeId" />
  14911. <PropertyRef Name="FormulaId" />
  14912. <PropertyRef Name="FacilityCode" />
  14913. </Key>
  14914. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14915. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  14916. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  14917. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  14918. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  14919. <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="true" />
  14920. <NavigationProperty Name="BemsFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsPriceFormula" ToRole="BemsFormula" />
  14921. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceFormula" ToRole="BemsPriceType" />
  14922. </EntityType>
  14923. <EntityType Name="BemsPriceMeta">
  14924. <Key>
  14925. <PropertyRef Name="PriceTypeId" />
  14926. <PropertyRef Name="PublishDate" />
  14927. </Key>
  14928. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  14929. <Property Name="PublishDate" Type="DateTime" Nullable="false" Precision="3" />
  14930. <Property Name="BasePrice" Type="Int32" />
  14931. <Property Name="C01_00" Type="Double" />
  14932. <Property Name="C01_01" Type="Double" />
  14933. <Property Name="C01_02" Type="Double" />
  14934. <Property Name="C01_03" Type="Double" />
  14935. <Property Name="C01_04" Type="Double" />
  14936. <Property Name="C01_05" Type="Double" />
  14937. <Property Name="C01_06" Type="Double" />
  14938. <Property Name="C01_07" Type="Double" />
  14939. <Property Name="C01_08" Type="Double" />
  14940. <Property Name="C01_09" Type="Double" />
  14941. <Property Name="C01_10" Type="Double" />
  14942. <Property Name="C01_11" Type="Double" />
  14943. <Property Name="C01_12" Type="Double" />
  14944. <Property Name="C01_13" Type="Double" />
  14945. <Property Name="C01_14" Type="Double" />
  14946. <Property Name="C01_15" Type="Double" />
  14947. <Property Name="C01_16" Type="Double" />
  14948. <Property Name="C01_17" Type="Double" />
  14949. <Property Name="C01_18" Type="Double" />
  14950. <Property Name="C01_19" Type="Double" />
  14951. <Property Name="C01_20" Type="Double" />
  14952. <Property Name="C01_21" Type="Double" />
  14953. <Property Name="C01_22" Type="Double" />
  14954. <Property Name="C01_23" Type="Double" />
  14955. <Property Name="C02_00" Type="Double" />
  14956. <Property Name="C02_01" Type="Double" />
  14957. <Property Name="C02_02" Type="Double" />
  14958. <Property Name="C02_03" Type="Double" />
  14959. <Property Name="C02_04" Type="Double" />
  14960. <Property Name="C02_05" Type="Double" />
  14961. <Property Name="C02_06" Type="Double" />
  14962. <Property Name="C02_07" Type="Double" />
  14963. <Property Name="C02_08" Type="Double" />
  14964. <Property Name="C02_09" Type="Double" />
  14965. <Property Name="C02_10" Type="Double" />
  14966. <Property Name="C02_11" Type="Double" />
  14967. <Property Name="C02_12" Type="Double" />
  14968. <Property Name="C02_13" Type="Double" />
  14969. <Property Name="C02_14" Type="Double" />
  14970. <Property Name="C02_15" Type="Double" />
  14971. <Property Name="C02_16" Type="Double" />
  14972. <Property Name="C02_17" Type="Double" />
  14973. <Property Name="C02_18" Type="Double" />
  14974. <Property Name="C02_19" Type="Double" />
  14975. <Property Name="C02_20" Type="Double" />
  14976. <Property Name="C02_21" Type="Double" />
  14977. <Property Name="C02_22" Type="Double" />
  14978. <Property Name="C02_23" Type="Double" />
  14979. <Property Name="C03_00" Type="Double" />
  14980. <Property Name="C03_01" Type="Double" />
  14981. <Property Name="C03_02" Type="Double" />
  14982. <Property Name="C03_03" Type="Double" />
  14983. <Property Name="C03_04" Type="Double" />
  14984. <Property Name="C03_05" Type="Double" />
  14985. <Property Name="C03_06" Type="Double" />
  14986. <Property Name="C03_07" Type="Double" />
  14987. <Property Name="C03_08" Type="Double" />
  14988. <Property Name="C03_09" Type="Double" />
  14989. <Property Name="C03_10" Type="Double" />
  14990. <Property Name="C03_11" Type="Double" />
  14991. <Property Name="C03_12" Type="Double" />
  14992. <Property Name="C03_13" Type="Double" />
  14993. <Property Name="C03_14" Type="Double" />
  14994. <Property Name="C03_15" Type="Double" />
  14995. <Property Name="C03_16" Type="Double" />
  14996. <Property Name="C03_17" Type="Double" />
  14997. <Property Name="C03_18" Type="Double" />
  14998. <Property Name="C03_19" Type="Double" />
  14999. <Property Name="C03_20" Type="Double" />
  15000. <Property Name="C03_21" Type="Double" />
  15001. <Property Name="C03_22" Type="Double" />
  15002. <Property Name="C03_23" Type="Double" />
  15003. <Property Name="C04_00" Type="Double" />
  15004. <Property Name="C04_01" Type="Double" />
  15005. <Property Name="C04_02" Type="Double" />
  15006. <Property Name="C04_03" Type="Double" />
  15007. <Property Name="C04_04" Type="Double" />
  15008. <Property Name="C04_05" Type="Double" />
  15009. <Property Name="C04_06" Type="Double" />
  15010. <Property Name="C04_07" Type="Double" />
  15011. <Property Name="C04_08" Type="Double" />
  15012. <Property Name="C04_09" Type="Double" />
  15013. <Property Name="C04_10" Type="Double" />
  15014. <Property Name="C04_11" Type="Double" />
  15015. <Property Name="C04_12" Type="Double" />
  15016. <Property Name="C04_13" Type="Double" />
  15017. <Property Name="C04_14" Type="Double" />
  15018. <Property Name="C04_15" Type="Double" />
  15019. <Property Name="C04_16" Type="Double" />
  15020. <Property Name="C04_17" Type="Double" />
  15021. <Property Name="C04_18" Type="Double" />
  15022. <Property Name="C04_19" Type="Double" />
  15023. <Property Name="C04_20" Type="Double" />
  15024. <Property Name="C04_21" Type="Double" />
  15025. <Property Name="C04_22" Type="Double" />
  15026. <Property Name="C04_23" Type="Double" />
  15027. <Property Name="C05_00" Type="Double" />
  15028. <Property Name="C05_01" Type="Double" />
  15029. <Property Name="C05_02" Type="Double" />
  15030. <Property Name="C05_03" Type="Double" />
  15031. <Property Name="C05_04" Type="Double" />
  15032. <Property Name="C05_05" Type="Double" />
  15033. <Property Name="C05_06" Type="Double" />
  15034. <Property Name="C05_07" Type="Double" />
  15035. <Property Name="C05_08" Type="Double" />
  15036. <Property Name="C05_09" Type="Double" />
  15037. <Property Name="C05_10" Type="Double" />
  15038. <Property Name="C05_11" Type="Double" />
  15039. <Property Name="C05_12" Type="Double" />
  15040. <Property Name="C05_13" Type="Double" />
  15041. <Property Name="C05_14" Type="Double" />
  15042. <Property Name="C05_15" Type="Double" />
  15043. <Property Name="C05_16" Type="Double" />
  15044. <Property Name="C05_17" Type="Double" />
  15045. <Property Name="C05_18" Type="Double" />
  15046. <Property Name="C05_19" Type="Double" />
  15047. <Property Name="C05_20" Type="Double" />
  15048. <Property Name="C05_21" Type="Double" />
  15049. <Property Name="C05_22" Type="Double" />
  15050. <Property Name="C05_23" Type="Double" />
  15051. <Property Name="C06_00" Type="Double" />
  15052. <Property Name="C06_01" Type="Double" />
  15053. <Property Name="C06_02" Type="Double" />
  15054. <Property Name="C06_03" Type="Double" />
  15055. <Property Name="C06_04" Type="Double" />
  15056. <Property Name="C06_05" Type="Double" />
  15057. <Property Name="C06_06" Type="Double" />
  15058. <Property Name="C06_07" Type="Double" />
  15059. <Property Name="C06_08" Type="Double" />
  15060. <Property Name="C06_09" Type="Double" />
  15061. <Property Name="C06_10" Type="Double" />
  15062. <Property Name="C06_11" Type="Double" />
  15063. <Property Name="C06_12" Type="Double" />
  15064. <Property Name="C06_13" Type="Double" />
  15065. <Property Name="C06_14" Type="Double" />
  15066. <Property Name="C06_15" Type="Double" />
  15067. <Property Name="C06_16" Type="Double" />
  15068. <Property Name="C06_17" Type="Double" />
  15069. <Property Name="C06_18" Type="Double" />
  15070. <Property Name="C06_19" Type="Double" />
  15071. <Property Name="C06_20" Type="Double" />
  15072. <Property Name="C06_21" Type="Double" />
  15073. <Property Name="C06_22" Type="Double" />
  15074. <Property Name="C06_23" Type="Double" />
  15075. <Property Name="C07_00" Type="Double" />
  15076. <Property Name="C07_01" Type="Double" />
  15077. <Property Name="C07_02" Type="Double" />
  15078. <Property Name="C07_03" Type="Double" />
  15079. <Property Name="C07_04" Type="Double" />
  15080. <Property Name="C07_05" Type="Double" />
  15081. <Property Name="C07_06" Type="Double" />
  15082. <Property Name="C07_07" Type="Double" />
  15083. <Property Name="C07_08" Type="Double" />
  15084. <Property Name="C07_09" Type="Double" />
  15085. <Property Name="C07_10" Type="Double" />
  15086. <Property Name="C07_11" Type="Double" />
  15087. <Property Name="C07_12" Type="Double" />
  15088. <Property Name="C07_13" Type="Double" />
  15089. <Property Name="C07_14" Type="Double" />
  15090. <Property Name="C07_15" Type="Double" />
  15091. <Property Name="C07_16" Type="Double" />
  15092. <Property Name="C07_17" Type="Double" />
  15093. <Property Name="C07_18" Type="Double" />
  15094. <Property Name="C07_19" Type="Double" />
  15095. <Property Name="C07_20" Type="Double" />
  15096. <Property Name="C07_21" Type="Double" />
  15097. <Property Name="C07_22" Type="Double" />
  15098. <Property Name="C07_23" Type="Double" />
  15099. <Property Name="C08_00" Type="Double" />
  15100. <Property Name="C08_01" Type="Double" />
  15101. <Property Name="C08_02" Type="Double" />
  15102. <Property Name="C08_03" Type="Double" />
  15103. <Property Name="C08_04" Type="Double" />
  15104. <Property Name="C08_05" Type="Double" />
  15105. <Property Name="C08_06" Type="Double" />
  15106. <Property Name="C08_07" Type="Double" />
  15107. <Property Name="C08_08" Type="Double" />
  15108. <Property Name="C08_09" Type="Double" />
  15109. <Property Name="C08_10" Type="Double" />
  15110. <Property Name="C08_11" Type="Double" />
  15111. <Property Name="C08_12" Type="Double" />
  15112. <Property Name="C08_13" Type="Double" />
  15113. <Property Name="C08_14" Type="Double" />
  15114. <Property Name="C08_15" Type="Double" />
  15115. <Property Name="C08_16" Type="Double" />
  15116. <Property Name="C08_17" Type="Double" />
  15117. <Property Name="C08_18" Type="Double" />
  15118. <Property Name="C08_19" Type="Double" />
  15119. <Property Name="C08_20" Type="Double" />
  15120. <Property Name="C08_21" Type="Double" />
  15121. <Property Name="C08_22" Type="Double" />
  15122. <Property Name="C08_23" Type="Double" />
  15123. <Property Name="C09_00" Type="Double" />
  15124. <Property Name="C09_01" Type="Double" />
  15125. <Property Name="C09_02" Type="Double" />
  15126. <Property Name="C09_03" Type="Double" />
  15127. <Property Name="C09_04" Type="Double" />
  15128. <Property Name="C09_05" Type="Double" />
  15129. <Property Name="C09_06" Type="Double" />
  15130. <Property Name="C09_07" Type="Double" />
  15131. <Property Name="C09_08" Type="Double" />
  15132. <Property Name="C09_09" Type="Double" />
  15133. <Property Name="C09_10" Type="Double" />
  15134. <Property Name="C09_11" Type="Double" />
  15135. <Property Name="C09_12" Type="Double" />
  15136. <Property Name="C09_13" Type="Double" />
  15137. <Property Name="C09_14" Type="Double" />
  15138. <Property Name="C09_15" Type="Double" />
  15139. <Property Name="C09_16" Type="Double" />
  15140. <Property Name="C09_17" Type="Double" />
  15141. <Property Name="C09_18" Type="Double" />
  15142. <Property Name="C09_19" Type="Double" />
  15143. <Property Name="C09_20" Type="Double" />
  15144. <Property Name="C09_21" Type="Double" />
  15145. <Property Name="C09_22" Type="Double" />
  15146. <Property Name="C09_23" Type="Double" />
  15147. <Property Name="C10_00" Type="Double" />
  15148. <Property Name="C10_01" Type="Double" />
  15149. <Property Name="C10_02" Type="Double" />
  15150. <Property Name="C10_03" Type="Double" />
  15151. <Property Name="C10_04" Type="Double" />
  15152. <Property Name="C10_05" Type="Double" />
  15153. <Property Name="C10_06" Type="Double" />
  15154. <Property Name="C10_07" Type="Double" />
  15155. <Property Name="C10_08" Type="Double" />
  15156. <Property Name="C10_09" Type="Double" />
  15157. <Property Name="C10_10" Type="Double" />
  15158. <Property Name="C10_11" Type="Double" />
  15159. <Property Name="C10_12" Type="Double" />
  15160. <Property Name="C10_13" Type="Double" />
  15161. <Property Name="C10_14" Type="Double" />
  15162. <Property Name="C10_15" Type="Double" />
  15163. <Property Name="C10_16" Type="Double" />
  15164. <Property Name="C10_17" Type="Double" />
  15165. <Property Name="C10_18" Type="Double" />
  15166. <Property Name="C10_19" Type="Double" />
  15167. <Property Name="C10_20" Type="Double" />
  15168. <Property Name="C10_21" Type="Double" />
  15169. <Property Name="C10_22" Type="Double" />
  15170. <Property Name="C10_23" Type="Double" />
  15171. <Property Name="C11_00" Type="Double" />
  15172. <Property Name="C11_01" Type="Double" />
  15173. <Property Name="C11_02" Type="Double" />
  15174. <Property Name="C11_03" Type="Double" />
  15175. <Property Name="C11_04" Type="Double" />
  15176. <Property Name="C11_05" Type="Double" />
  15177. <Property Name="C11_06" Type="Double" />
  15178. <Property Name="C11_07" Type="Double" />
  15179. <Property Name="C11_08" Type="Double" />
  15180. <Property Name="C11_09" Type="Double" />
  15181. <Property Name="C11_10" Type="Double" />
  15182. <Property Name="C11_11" Type="Double" />
  15183. <Property Name="C11_12" Type="Double" />
  15184. <Property Name="C11_13" Type="Double" />
  15185. <Property Name="C11_14" Type="Double" />
  15186. <Property Name="C11_15" Type="Double" />
  15187. <Property Name="C11_16" Type="Double" />
  15188. <Property Name="C11_17" Type="Double" />
  15189. <Property Name="C11_18" Type="Double" />
  15190. <Property Name="C11_19" Type="Double" />
  15191. <Property Name="C11_20" Type="Double" />
  15192. <Property Name="C11_21" Type="Double" />
  15193. <Property Name="C11_22" Type="Double" />
  15194. <Property Name="C11_23" Type="Double" />
  15195. <Property Name="C12_00" Type="Double" />
  15196. <Property Name="C12_01" Type="Double" />
  15197. <Property Name="C12_02" Type="Double" />
  15198. <Property Name="C12_03" Type="Double" />
  15199. <Property Name="C12_04" Type="Double" />
  15200. <Property Name="C12_05" Type="Double" />
  15201. <Property Name="C12_06" Type="Double" />
  15202. <Property Name="C12_07" Type="Double" />
  15203. <Property Name="C12_08" Type="Double" />
  15204. <Property Name="C12_09" Type="Double" />
  15205. <Property Name="C12_10" Type="Double" />
  15206. <Property Name="C12_11" Type="Double" />
  15207. <Property Name="C12_12" Type="Double" />
  15208. <Property Name="C12_13" Type="Double" />
  15209. <Property Name="C12_14" Type="Double" />
  15210. <Property Name="C12_15" Type="Double" />
  15211. <Property Name="C12_16" Type="Double" />
  15212. <Property Name="C12_17" Type="Double" />
  15213. <Property Name="C12_18" Type="Double" />
  15214. <Property Name="C12_19" Type="Double" />
  15215. <Property Name="C12_20" Type="Double" />
  15216. <Property Name="C12_21" Type="Double" />
  15217. <Property Name="C12_22" Type="Double" />
  15218. <Property Name="C12_23" Type="Double" />
  15219. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceMeta" ToRole="BemsPriceType" />
  15220. </EntityType>
  15221. <EntityType Name="BemsPriceType">
  15222. <Key>
  15223. <PropertyRef Name="PriceTypeId" />
  15224. </Key>
  15225. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  15226. <Property Name="PriceTypeIdDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  15227. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15228. <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceFormula" />
  15229. <NavigationProperty Name="BemsPriceMeta" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceMeta" />
  15230. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePriceHistory" />
  15231. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePrice" />
  15232. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsPriceType" ToRole="BemsFuelType" />
  15233. </EntityType>
  15234. <EntityType Name="BemsRentalRate">
  15235. <Key>
  15236. <PropertyRef Name="Date" />
  15237. <PropertyRef Name="SiteId" />
  15238. </Key>
  15239. <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
  15240. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15241. <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15242. <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15243. <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15244. <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15245. <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15246. <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15247. <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15248. <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15249. <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15250. <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15251. <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15252. <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15253. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="BemsRentalRate" ToRole="CmSite" />
  15254. </EntityType>
  15255. <EntityType Name="BemsSitePrice">
  15256. <Key>
  15257. <PropertyRef Name="SiteID" />
  15258. <PropertyRef Name="FuelTypeId" />
  15259. <PropertyRef Name="PriceTypeId" />
  15260. <PropertyRef Name="PriceCode" />
  15261. </Key>
  15262. <Property Name="SiteID" Type="Int32" Nullable="false" />
  15263. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15264. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  15265. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  15266. <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
  15267. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsSitePrice" ToRole="BemsPriceCode" />
  15268. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="BemsSitePrice" ToRole="CmSite" />
  15269. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsSitePrice" ToRole="BemsPriceType" />
  15270. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsSitePrice" ToRole="BemsFuelType" />
  15271. </EntityType>
  15272. <EntityType Name="BemsSitePriceHistory">
  15273. <Key>
  15274. <PropertyRef Name="SiteId" />
  15275. <PropertyRef Name="FuelTypeId" />
  15276. <PropertyRef Name="PriceTypeId" />
  15277. <PropertyRef Name="PriceCode" />
  15278. <PropertyRef Name="PayDate" />
  15279. </Key>
  15280. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15281. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15282. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  15283. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  15284. <Property Name="PriceValue" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  15285. <Property Name="PayDate" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="false" />
  15286. <Property Name="StartDate" Type="DateTime" Precision="3" />
  15287. <Property Name="EndDate" Type="DateTime" Precision="3" />
  15288. <Property Name="PayCharge" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  15289. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsSitePriceHistory" ToRole="BemsPriceCode" />
  15290. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsSitePriceHistory" ToRole="BemsPriceType" />
  15291. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="BemsSitePriceHistory" ToRole="CmSite" />
  15292. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsSitePriceHistory" ToRole="BemsFuelType" />
  15293. </EntityType>
  15294. <Association Name="FK_BemsPriceFormula_BemsFormula">
  15295. <End Type="iBemsModel.BemsFormula" Role="BemsFormula" Multiplicity="1" />
  15296. <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
  15297. <ReferentialConstraint>
  15298. <Principal Role="BemsFormula">
  15299. <PropertyRef Name="SiteId" />
  15300. <PropertyRef Name="FacilityTypeId" />
  15301. <PropertyRef Name="FacilityCode" />
  15302. <PropertyRef Name="FormulaId" />
  15303. </Principal>
  15304. <Dependent Role="BemsPriceFormula">
  15305. <PropertyRef Name="SiteId" />
  15306. <PropertyRef Name="FacilityTypeId" />
  15307. <PropertyRef Name="FacilityCode" />
  15308. <PropertyRef Name="FormulaId" />
  15309. </Dependent>
  15310. </ReferentialConstraint>
  15311. </Association>
  15312. <Association Name="FK_BemsPeopleIncrease_CmSite">
  15313. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15314. <End Type="iBemsModel.BemsPeopleIncrease" Role="BemsPeopleIncrease" Multiplicity="*" />
  15315. <ReferentialConstraint>
  15316. <Principal Role="CmSite">
  15317. <PropertyRef Name="SiteId" />
  15318. </Principal>
  15319. <Dependent Role="BemsPeopleIncrease">
  15320. <PropertyRef Name="SiteId" />
  15321. </Dependent>
  15322. </ReferentialConstraint>
  15323. </Association>
  15324. <Association Name="FK_BemsSitePrice_BemsPriceCode">
  15325. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
  15326. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  15327. <ReferentialConstraint>
  15328. <Principal Role="BemsPriceCode">
  15329. <PropertyRef Name="PriceCode" />
  15330. </Principal>
  15331. <Dependent Role="BemsSitePrice">
  15332. <PropertyRef Name="PriceCode" />
  15333. </Dependent>
  15334. </ReferentialConstraint>
  15335. </Association>
  15336. <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
  15337. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
  15338. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  15339. <ReferentialConstraint>
  15340. <Principal Role="BemsPriceCode">
  15341. <PropertyRef Name="PriceCode" />
  15342. </Principal>
  15343. <Dependent Role="BemsSitePriceHistory">
  15344. <PropertyRef Name="PriceCode" />
  15345. </Dependent>
  15346. </ReferentialConstraint>
  15347. </Association>
  15348. <Association Name="FK_BemsPriceFormula_BemsPriceType">
  15349. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  15350. <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
  15351. <ReferentialConstraint>
  15352. <Principal Role="BemsPriceType">
  15353. <PropertyRef Name="PriceTypeId" />
  15354. </Principal>
  15355. <Dependent Role="BemsPriceFormula">
  15356. <PropertyRef Name="PriceTypeId" />
  15357. </Dependent>
  15358. </ReferentialConstraint>
  15359. </Association>
  15360. <Association Name="FK_BemsPriceMeta_BemsPriceType">
  15361. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  15362. <End Type="iBemsModel.BemsPriceMeta" Role="BemsPriceMeta" Multiplicity="*" />
  15363. <ReferentialConstraint>
  15364. <Principal Role="BemsPriceType">
  15365. <PropertyRef Name="PriceTypeId" />
  15366. </Principal>
  15367. <Dependent Role="BemsPriceMeta">
  15368. <PropertyRef Name="PriceTypeId" />
  15369. </Dependent>
  15370. </ReferentialConstraint>
  15371. </Association>
  15372. <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
  15373. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  15374. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  15375. <ReferentialConstraint>
  15376. <Principal Role="BemsPriceType">
  15377. <PropertyRef Name="PriceTypeId" />
  15378. </Principal>
  15379. <Dependent Role="BemsSitePriceHistory">
  15380. <PropertyRef Name="PriceTypeId" />
  15381. </Dependent>
  15382. </ReferentialConstraint>
  15383. </Association>
  15384. <Association Name="FK_BemsRentalRate_CmSite">
  15385. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15386. <End Type="iBemsModel.BemsRentalRate" Role="BemsRentalRate" Multiplicity="*" />
  15387. <ReferentialConstraint>
  15388. <Principal Role="CmSite">
  15389. <PropertyRef Name="SiteId" />
  15390. </Principal>
  15391. <Dependent Role="BemsRentalRate">
  15392. <PropertyRef Name="SiteId" />
  15393. </Dependent>
  15394. </ReferentialConstraint>
  15395. </Association>
  15396. <Association Name="FK_BemsSitePrice_CmSite1">
  15397. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15398. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  15399. <ReferentialConstraint>
  15400. <Principal Role="CmSite">
  15401. <PropertyRef Name="SiteId" />
  15402. </Principal>
  15403. <Dependent Role="BemsSitePrice">
  15404. <PropertyRef Name="SiteID" />
  15405. </Dependent>
  15406. </ReferentialConstraint>
  15407. </Association>
  15408. <Association Name="FK_BemsSitePriceHistory_CmSite">
  15409. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15410. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  15411. <ReferentialConstraint>
  15412. <Principal Role="CmSite">
  15413. <PropertyRef Name="SiteId" />
  15414. </Principal>
  15415. <Dependent Role="BemsSitePriceHistory">
  15416. <PropertyRef Name="SiteId" />
  15417. </Dependent>
  15418. </ReferentialConstraint>
  15419. </Association>
  15420. <Association Name="FK_BemsSitePrice_BemsPriceType">
  15421. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  15422. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  15423. <ReferentialConstraint>
  15424. <Principal Role="BemsPriceType">
  15425. <PropertyRef Name="PriceTypeId" />
  15426. </Principal>
  15427. <Dependent Role="BemsSitePrice">
  15428. <PropertyRef Name="PriceTypeId" />
  15429. </Dependent>
  15430. </ReferentialConstraint>
  15431. </Association>
  15432. <EntityType Name="BemsMonitoringPointConfig">
  15433. <Key>
  15434. <PropertyRef Name="SiteId" />
  15435. <PropertyRef Name="FacilityCode" />
  15436. <PropertyRef Name="PropertyId" />
  15437. </Key>
  15438. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15439. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15440. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15441. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  15442. <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
  15443. <Property Name="IsSampled" Type="Boolean" Nullable="false" />
  15444. <Property Name="SaveMode" Type="Int32" Nullable="false" />
  15445. <Property Name="ControlPointName" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  15446. <Property Name="IsConverted" Type="Boolean" />
  15447. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsMonitoringPointConfig" ToRole="BemsFacilityType" />
  15448. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPointConfig" ToRole="BemsMonitoringPoint" />
  15449. </EntityType>
  15450. <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
  15451. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  15452. <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="*" />
  15453. <ReferentialConstraint>
  15454. <Principal Role="BemsFacilityType">
  15455. <PropertyRef Name="FacilityTypeId" />
  15456. </Principal>
  15457. <Dependent Role="BemsMonitoringPointConfig">
  15458. <PropertyRef Name="FacilityTypeId" />
  15459. </Dependent>
  15460. </ReferentialConstraint>
  15461. </Association>
  15462. <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  15463. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
  15464. <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="0..1" />
  15465. <ReferentialConstraint>
  15466. <Principal Role="BemsMonitoringPoint">
  15467. <PropertyRef Name="SiteId" />
  15468. <PropertyRef Name="FacilityCode" />
  15469. <PropertyRef Name="PropertyId" />
  15470. </Principal>
  15471. <Dependent Role="BemsMonitoringPointConfig">
  15472. <PropertyRef Name="SiteId" />
  15473. <PropertyRef Name="FacilityCode" />
  15474. <PropertyRef Name="PropertyId" />
  15475. </Dependent>
  15476. </ReferentialConstraint>
  15477. </Association>
  15478. <EntityType Name="BemsAlarmSetting">
  15479. <Key>
  15480. <PropertyRef Name="SiteId" />
  15481. <PropertyRef Name="FacilityTypeId" />
  15482. <PropertyRef Name="FacilityCode" />
  15483. <PropertyRef Name="PropertyId" />
  15484. <PropertyRef Name="FormulaId" />
  15485. </Key>
  15486. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15487. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15488. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15489. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  15490. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  15491. <Property Name="FacilityName" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
  15492. <Property Name="PointName" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  15493. <Property Name="UseUpperLimit" Type="Boolean" Nullable="false" />
  15494. <Property Name="UpperLimit" Type="Double" />
  15495. <Property Name="UseLowerLimit" Type="Boolean" Nullable="false" />
  15496. <Property Name="LowerLimit" Type="Double" />
  15497. <Property Name="UseAlarm" Type="Boolean" Nullable="false" />
  15498. <Property Name="UseSMS" Type="Boolean" Nullable="false" />
  15499. <Property Name="UseEmail" Type="Boolean" Nullable="false" />
  15500. <Property Name="AlarmGroupName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  15501. <Property Name="Content" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  15502. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsAlarmSetting" ToRole="BemsFacilityType" />
  15503. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="BemsAlarmSetting" ToRole="CmSite" />
  15504. <NavigationProperty Name="BemsAlarmLog" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmSetting" ToRole="BemsAlarmLog" />
  15505. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="BemsAlarmSetting" ToRole="CmFacility" />
  15506. </EntityType>
  15507. <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
  15508. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  15509. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  15510. <ReferentialConstraint>
  15511. <Principal Role="BemsFacilityType">
  15512. <PropertyRef Name="FacilityTypeId" />
  15513. </Principal>
  15514. <Dependent Role="BemsAlarmSetting">
  15515. <PropertyRef Name="FacilityTypeId" />
  15516. </Dependent>
  15517. </ReferentialConstraint>
  15518. </Association>
  15519. <Association Name="FK_BemsAlarmSetting_CmSite1">
  15520. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15521. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  15522. <ReferentialConstraint>
  15523. <Principal Role="CmSite">
  15524. <PropertyRef Name="SiteId" />
  15525. </Principal>
  15526. <Dependent Role="BemsAlarmSetting">
  15527. <PropertyRef Name="SiteId" />
  15528. </Dependent>
  15529. </ReferentialConstraint>
  15530. </Association>
  15531. <EntityType Name="BemsAlarmLog">
  15532. <Key>
  15533. <PropertyRef Name="SiteId" />
  15534. <PropertyRef Name="FacilityTypeId" />
  15535. <PropertyRef Name="FacilityCode" />
  15536. <PropertyRef Name="PropertyId" />
  15537. <PropertyRef Name="FormulaId" />
  15538. <PropertyRef Name="CreatedDateTime" />
  15539. </Key>
  15540. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15541. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15542. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15543. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  15544. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  15545. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  15546. <Property Name="CurrentValue" Type="Double" />
  15547. <Property Name="SMSResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
  15548. <Property Name="EmailResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
  15549. <Property Name="Conform" Type="Boolean" />
  15550. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmLog" ToRole="BemsAlarmSetting" />
  15551. </EntityType>
  15552. <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
  15553. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="1" />
  15554. <End Type="iBemsModel.BemsAlarmLog" Role="BemsAlarmLog" Multiplicity="*" />
  15555. <ReferentialConstraint>
  15556. <Principal Role="BemsAlarmSetting">
  15557. <PropertyRef Name="SiteId" />
  15558. <PropertyRef Name="FacilityTypeId" />
  15559. <PropertyRef Name="FacilityCode" />
  15560. <PropertyRef Name="PropertyId" />
  15561. <PropertyRef Name="FormulaId" />
  15562. </Principal>
  15563. <Dependent Role="BemsAlarmLog">
  15564. <PropertyRef Name="SiteId" />
  15565. <PropertyRef Name="FacilityTypeId" />
  15566. <PropertyRef Name="FacilityCode" />
  15567. <PropertyRef Name="PropertyId" />
  15568. <PropertyRef Name="FormulaId" />
  15569. </Dependent>
  15570. </ReferentialConstraint>
  15571. </Association>
  15572. <EntityType Name="BemsAlarmGroup">
  15573. <Key>
  15574. <PropertyRef Name="SiteId" />
  15575. <PropertyRef Name="AlarmGroupId" />
  15576. </Key>
  15577. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15578. <Property Name="AlarmGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  15579. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  15580. </EntityType>
  15581. <EntityType Name="BemsAlarmGroupUser">
  15582. <Key>
  15583. <PropertyRef Name="SiteId" />
  15584. <PropertyRef Name="AlarmGroupId" />
  15585. <PropertyRef Name="UserId" />
  15586. </Key>
  15587. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15588. <Property Name="AlarmGroupId" Type="Int32" Nullable="false" />
  15589. <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  15590. </EntityType>
  15591. <EntityType Name="BemsEnergyCost">
  15592. <Key>
  15593. <PropertyRef Name="SiteId" />
  15594. <PropertyRef Name="FacilityCode" />
  15595. </Key>
  15596. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15597. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15598. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15599. <Property Name="PowerConsumption1" Type="Double" />
  15600. <Property Name="PowerConsumption2" Type="Double" />
  15601. <Property Name="GasConsumption" Type="Double" />
  15602. <Property Name="GasHeatQuantity" Type="Double" />
  15603. <Property Name="PowerPriceTypeId" Type="Int32" />
  15604. <Property Name="GasPriceTypeId" Type="Int32" />
  15605. <Property Name="IsUse" Type="Boolean" />
  15606. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="BemsEnergyCost" ToRole="CmFacility" />
  15607. </EntityType>
  15608. <EntityType Name="BemsEnergyConfigPercentMonth">
  15609. <Key>
  15610. <PropertyRef Name="SiteId" />
  15611. <PropertyRef Name="Year" />
  15612. <PropertyRef Name="Month" />
  15613. </Key>
  15614. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15615. <Property Name="Year" Type="Int32" Nullable="false" />
  15616. <Property Name="Month" Type="Int32" Nullable="false" />
  15617. <Property Name="Electricity" Type="Double" />
  15618. <Property Name="Gas" Type="Double" />
  15619. <Property Name="Water" Type="Double" />
  15620. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="BemsEnergyConfigPercentMonth" ToRole="CmSite" />
  15621. </EntityType>
  15622. <EntityType Name="BemsEnergyConfigPercentWeek">
  15623. <Key>
  15624. <PropertyRef Name="SiteId" />
  15625. <PropertyRef Name="Year" />
  15626. <PropertyRef Name="Week" />
  15627. </Key>
  15628. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15629. <Property Name="Year" Type="Int32" Nullable="false" />
  15630. <Property Name="Week" Type="Int32" Nullable="false" />
  15631. <Property Name="Electricity" Type="Double" />
  15632. <Property Name="Gas" Type="Double" />
  15633. <Property Name="Water" Type="Double" />
  15634. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="BemsEnergyConfigPercentWeek" ToRole="CmSite" />
  15635. </EntityType>
  15636. <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
  15637. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15638. <End Type="iBemsModel.BemsEnergyConfigPercentMonth" Role="BemsEnergyConfigPercentMonth" Multiplicity="*" />
  15639. <ReferentialConstraint>
  15640. <Principal Role="CmSite">
  15641. <PropertyRef Name="SiteId" />
  15642. </Principal>
  15643. <Dependent Role="BemsEnergyConfigPercentMonth">
  15644. <PropertyRef Name="SiteId" />
  15645. </Dependent>
  15646. </ReferentialConstraint>
  15647. </Association>
  15648. <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
  15649. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15650. <End Type="iBemsModel.BemsEnergyConfigPercentWeek" Role="BemsEnergyConfigPercentWeek" Multiplicity="*" />
  15651. <ReferentialConstraint>
  15652. <Principal Role="CmSite">
  15653. <PropertyRef Name="SiteId" />
  15654. </Principal>
  15655. <Dependent Role="BemsEnergyConfigPercentWeek">
  15656. <PropertyRef Name="SiteId" />
  15657. </Dependent>
  15658. </ReferentialConstraint>
  15659. </Association>
  15660. <EntityType Name="BemsEnergyDaily">
  15661. <Key>
  15662. <PropertyRef Name="SiteId" />
  15663. <PropertyRef Name="BuildingId" />
  15664. <PropertyRef Name="ServiceTypeId" />
  15665. <PropertyRef Name="FuelTypeId" />
  15666. <PropertyRef Name="CreatedDate" />
  15667. </Key>
  15668. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15669. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  15670. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  15671. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15672. <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="0" />
  15673. <Property Name="Prediction" Type="Double" />
  15674. <Property Name="Measurement" Type="Double" />
  15675. <Property Name="Goal" Type="Double" />
  15676. <Property Name="Prediction_Regression" Type="Double" />
  15677. <Property Name="MeanT" Type="Double" />
  15678. <Property Name="HDD" Type="Double" />
  15679. <Property Name="CDD" Type="Double" />
  15680. <NavigationProperty Name="BemsServiceType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsEnergyDaily" ToRole="BemsServiceType" />
  15681. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="BemsEnergyDaily" ToRole="CmBuilding" />
  15682. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsEnergyDaily" ToRole="BemsFuelType" />
  15683. </EntityType>
  15684. <Association Name="FK__BemsEnergyDaily__BemsServiceType">
  15685. <End Type="iBemsModel.BemsServiceType" Role="BemsServiceType" Multiplicity="1" />
  15686. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  15687. <ReferentialConstraint>
  15688. <Principal Role="BemsServiceType">
  15689. <PropertyRef Name="ServiceTypeId" />
  15690. </Principal>
  15691. <Dependent Role="BemsEnergyDaily">
  15692. <PropertyRef Name="ServiceTypeId" />
  15693. </Dependent>
  15694. </ReferentialConstraint>
  15695. </Association>
  15696. <Association Name="FK__BemsEnergyDaily__CmBuilding">
  15697. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
  15698. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  15699. <ReferentialConstraint>
  15700. <Principal Role="CmBuilding">
  15701. <PropertyRef Name="SiteId" />
  15702. <PropertyRef Name="BuildingId" />
  15703. </Principal>
  15704. <Dependent Role="BemsEnergyDaily">
  15705. <PropertyRef Name="SiteId" />
  15706. <PropertyRef Name="BuildingId" />
  15707. </Dependent>
  15708. </ReferentialConstraint>
  15709. </Association>
  15710. <EntityType Name="BemsEnergyDailyRegression">
  15711. <Key>
  15712. <PropertyRef Name="SiteId" />
  15713. </Key>
  15714. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15715. <Property Name="Weekday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15716. <Property Name="Weekday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15717. <Property Name="Weekday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15718. <Property Name="Weekday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15719. <Property Name="Weekday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15720. <Property Name="Weekday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15721. <Property Name="Holiday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15722. <Property Name="Holiday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15723. <Property Name="Holiday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15724. <Property Name="Holiday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15725. <Property Name="Holiday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15726. <Property Name="Holiday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15727. <Property Name="IsRegression" Type="Boolean" />
  15728. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="BemsEnergyDailyRegression" ToRole="CmSite" />
  15729. </EntityType>
  15730. <Association Name="FK_BemsEnergyDailyRegression_CmSite">
  15731. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15732. <End Type="iBemsModel.BemsEnergyDailyRegression" Role="BemsEnergyDailyRegression" Multiplicity="0..1" />
  15733. <ReferentialConstraint>
  15734. <Principal Role="CmSite">
  15735. <PropertyRef Name="SiteId" />
  15736. </Principal>
  15737. <Dependent Role="BemsEnergyDailyRegression">
  15738. <PropertyRef Name="SiteId" />
  15739. </Dependent>
  15740. </ReferentialConstraint>
  15741. </Association>
  15742. <EntityType Name="WeatherDongNaeForecast">
  15743. <Key>
  15744. <PropertyRef Name="BaseTime" />
  15745. <PropertyRef Name="ForecastTime" />
  15746. </Key>
  15747. <Property Name="BaseTime" Type="DateTime" Nullable="false" Precision="3" />
  15748. <Property Name="nx" Type="Int32" />
  15749. <Property Name="ny" Type="Int32" />
  15750. <Property Name="ForecastTime" Type="DateTime" Nullable="false" Precision="3" />
  15751. <Property Name="POP" Type="Double" />
  15752. <Property Name="PTY" Type="Double" />
  15753. <Property Name="R06" Type="Double" />
  15754. <Property Name="REH" Type="Double" />
  15755. <Property Name="S06" Type="Double" />
  15756. <Property Name="SKY" Type="Double" />
  15757. <Property Name="T3H" Type="Double" />
  15758. <Property Name="TMN" Type="Double" />
  15759. <Property Name="TMX" Type="Double" />
  15760. <Property Name="UUU" Type="Double" />
  15761. <Property Name="VVV" Type="Double" />
  15762. <Property Name="VEC" Type="Double" />
  15763. <Property Name="WSD" Type="Double" />
  15764. <Property Name="Type" Type="Int32" />
  15765. <Property Name="DBTime" Type="DateTime" Precision="3" />
  15766. <Property Name="Version" Type="Int32" />
  15767. </EntityType>
  15768. <EntityType Name="FmsEquipmentRentInfo">
  15769. <Key>
  15770. <PropertyRef Name="SiteId" />
  15771. <PropertyRef Name="EquipmentRentId" />
  15772. </Key>
  15773. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15774. <Property Name="EquipmentRentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  15775. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  15776. <Property Name="RentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  15777. <Property Name="RegisterDate" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
  15778. <Property Name="RentDate" Type="DateTime" Precision="3" />
  15779. <Property Name="ReturnDueDate" Type="DateTime" Precision="3" />
  15780. <Property Name="ReturnFixDate" Type="DateTime" Precision="3" />
  15781. <Property Name="EquipmentStateTypeId" Type="Int16" />
  15782. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  15783. <Property Name="Title" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  15784. <Property Name="RentUser" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  15785. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
  15786. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
  15787. <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentCodeStateType" />
  15788. <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentHistory" />
  15789. </EntityType>
  15790. <Association Name="FK_FmsEquipmentRentInfo_CmUser">
  15791. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  15792. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  15793. <ReferentialConstraint>
  15794. <Principal Role="CmUser">
  15795. <PropertyRef Name="SiteId" />
  15796. <PropertyRef Name="UserId" />
  15797. </Principal>
  15798. <Dependent Role="FmsEquipmentRentInfo">
  15799. <PropertyRef Name="SiteId" />
  15800. <PropertyRef Name="RegisterUserId" />
  15801. </Dependent>
  15802. </ReferentialConstraint>
  15803. </Association>
  15804. <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
  15805. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  15806. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  15807. <ReferentialConstraint>
  15808. <Principal Role="CmUser">
  15809. <PropertyRef Name="SiteId" />
  15810. <PropertyRef Name="UserId" />
  15811. </Principal>
  15812. <Dependent Role="FmsEquipmentRentInfo">
  15813. <PropertyRef Name="SiteId" />
  15814. <PropertyRef Name="RentUserId" />
  15815. </Dependent>
  15816. </ReferentialConstraint>
  15817. </Association>
  15818. <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  15819. <End Type="iBemsModel.FmsEquipmentCodeStateType" Role="FmsEquipmentCodeStateType" Multiplicity="0..1" />
  15820. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  15821. <ReferentialConstraint>
  15822. <Principal Role="FmsEquipmentCodeStateType">
  15823. <PropertyRef Name="EquipmentStateTypeId" />
  15824. </Principal>
  15825. <Dependent Role="FmsEquipmentRentInfo">
  15826. <PropertyRef Name="EquipmentStateTypeId" />
  15827. </Dependent>
  15828. </ReferentialConstraint>
  15829. </Association>
  15830. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  15831. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="0..1">
  15832. <OnDelete Action="Cascade" />
  15833. </End>
  15834. <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
  15835. <ReferentialConstraint>
  15836. <Principal Role="FmsEquipmentRentInfo">
  15837. <PropertyRef Name="SiteId" />
  15838. <PropertyRef Name="EquipmentRentId" />
  15839. </Principal>
  15840. <Dependent Role="FmsEquipmentHistory">
  15841. <PropertyRef Name="SiteId" />
  15842. <PropertyRef Name="EquipmentRentId" />
  15843. </Dependent>
  15844. </ReferentialConstraint>
  15845. </Association>
  15846. <EntityType Name="BemsControlAHUTempConfig">
  15847. <Key>
  15848. <PropertyRef Name="SiteId" />
  15849. <PropertyRef Name="FacilityTypeId" />
  15850. <PropertyRef Name="FacilityCode" />
  15851. </Key>
  15852. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15853. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15854. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15855. <Property Name="MaxTemperature" Type="Double" Nullable="false" />
  15856. <Property Name="MinTemperature" Type="Double" Nullable="false" />
  15857. </EntityType>
  15858. <EntityType Name="BemsFuelType">
  15859. <Key>
  15860. <PropertyRef Name="FuelTypeId" />
  15861. </Key>
  15862. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15863. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  15864. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsEnergyDaily" />
  15865. <NavigationProperty Name="BemsFactorCo2" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorCo2" />
  15866. <NavigationProperty Name="BemsFactorToe" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorToe" />
  15867. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPoint" />
  15868. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPointBaseData" />
  15869. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="BemsFuelType" ToRole="CmFacility" />
  15870. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsNoticePriceContractType" />
  15871. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsPriceCode" />
  15872. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsFuelType" ToRole="BemsPriceType" />
  15873. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePrice" />
  15874. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePriceHistory" />
  15875. </EntityType>
  15876. <Association Name="FK__BemsEnergyDaily__BemsFuelType">
  15877. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15878. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  15879. <ReferentialConstraint>
  15880. <Principal Role="BemsFuelType">
  15881. <PropertyRef Name="FuelTypeId" />
  15882. </Principal>
  15883. <Dependent Role="BemsEnergyDaily">
  15884. <PropertyRef Name="FuelTypeId" />
  15885. </Dependent>
  15886. </ReferentialConstraint>
  15887. </Association>
  15888. <Association Name="FK__BemsFactorCo2__BemsFuelType">
  15889. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15890. <End Type="iBemsModel.BemsFactorCo2" Role="BemsFactorCo2" Multiplicity="0..1" />
  15891. <ReferentialConstraint>
  15892. <Principal Role="BemsFuelType">
  15893. <PropertyRef Name="FuelTypeId" />
  15894. </Principal>
  15895. <Dependent Role="BemsFactorCo2">
  15896. <PropertyRef Name="FuelTypeId" />
  15897. </Dependent>
  15898. </ReferentialConstraint>
  15899. </Association>
  15900. <Association Name="FK__BemsFactorToe__BemsFuelType">
  15901. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15902. <End Type="iBemsModel.BemsFactorToe" Role="BemsFactorToe" Multiplicity="0..1" />
  15903. <ReferentialConstraint>
  15904. <Principal Role="BemsFuelType">
  15905. <PropertyRef Name="FuelTypeId" />
  15906. </Principal>
  15907. <Dependent Role="BemsFactorToe">
  15908. <PropertyRef Name="FuelTypeId" />
  15909. </Dependent>
  15910. </ReferentialConstraint>
  15911. </Association>
  15912. <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
  15913. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  15914. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
  15915. <ReferentialConstraint>
  15916. <Principal Role="BemsFuelType">
  15917. <PropertyRef Name="FuelTypeId" />
  15918. </Principal>
  15919. <Dependent Role="BemsMonitoringPoint">
  15920. <PropertyRef Name="FuelTypeId" />
  15921. </Dependent>
  15922. </ReferentialConstraint>
  15923. </Association>
  15924. <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
  15925. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  15926. <End Type="iBemsModel.BemsMonitoringPointBaseData" Role="BemsMonitoringPointBaseData" Multiplicity="*" />
  15927. <ReferentialConstraint>
  15928. <Principal Role="BemsFuelType">
  15929. <PropertyRef Name="FuelTypeId" />
  15930. </Principal>
  15931. <Dependent Role="BemsMonitoringPointBaseData">
  15932. <PropertyRef Name="FuelTypeId" />
  15933. </Dependent>
  15934. </ReferentialConstraint>
  15935. </Association>
  15936. <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
  15937. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15938. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="*" />
  15939. <ReferentialConstraint>
  15940. <Principal Role="BemsFuelType">
  15941. <PropertyRef Name="FuelTypeId" />
  15942. </Principal>
  15943. <Dependent Role="BemsNoticePriceContractType">
  15944. <PropertyRef Name="FuelTypeId" />
  15945. </Dependent>
  15946. </ReferentialConstraint>
  15947. </Association>
  15948. <Association Name="FK_BemsPriceCode_BemsFuelType">
  15949. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15950. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="*" />
  15951. <ReferentialConstraint>
  15952. <Principal Role="BemsFuelType">
  15953. <PropertyRef Name="FuelTypeId" />
  15954. </Principal>
  15955. <Dependent Role="BemsPriceCode">
  15956. <PropertyRef Name="FuelTypeId" />
  15957. </Dependent>
  15958. </ReferentialConstraint>
  15959. </Association>
  15960. <Association Name="FK_BemsPriceType_BemsFuelType1">
  15961. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15962. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="*" />
  15963. <ReferentialConstraint>
  15964. <Principal Role="BemsFuelType">
  15965. <PropertyRef Name="FuelTypeId" />
  15966. </Principal>
  15967. <Dependent Role="BemsPriceType">
  15968. <PropertyRef Name="FuelTypeId" />
  15969. </Dependent>
  15970. </ReferentialConstraint>
  15971. </Association>
  15972. <Association Name="FK_BemsSitePrice_BemsFuelType">
  15973. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15974. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  15975. <ReferentialConstraint>
  15976. <Principal Role="BemsFuelType">
  15977. <PropertyRef Name="FuelTypeId" />
  15978. </Principal>
  15979. <Dependent Role="BemsSitePrice">
  15980. <PropertyRef Name="FuelTypeId" />
  15981. </Dependent>
  15982. </ReferentialConstraint>
  15983. </Association>
  15984. <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
  15985. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15986. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  15987. <ReferentialConstraint>
  15988. <Principal Role="BemsFuelType">
  15989. <PropertyRef Name="FuelTypeId" />
  15990. </Principal>
  15991. <Dependent Role="BemsSitePriceHistory">
  15992. <PropertyRef Name="FuelTypeId" />
  15993. </Dependent>
  15994. </ReferentialConstraint>
  15995. </Association>
  15996. <EntityType Name="CmFacility">
  15997. <Key>
  15998. <PropertyRef Name="SiteId" />
  15999. <PropertyRef Name="FacilityCode" />
  16000. </Key>
  16001. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16002. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  16003. <Property Name="FacilityCode" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16004. <Property Name="FirstClassId" Type="Int32" />
  16005. <Property Name="SecondClassId" Type="Int32" />
  16006. <Property Name="ThirdClassId" Type="Int32" />
  16007. <Property Name="DeviceType" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  16008. <Property Name="ParentFacilityCode" Type="Int32" />
  16009. <Property Name="Name" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
  16010. <Property Name="Nickname" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  16011. <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  16012. <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  16013. <Property Name="ManufactureDate" Type="DateTime" Precision="0" />
  16014. <Property Name="ManufactureSerial" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16015. <Property Name="ManufactureModel" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  16016. <Property Name="Supplier" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  16017. <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16018. <Property Name="BuildingId" Type="Int32" />
  16019. <Property Name="FloorId" Type="Int32" />
  16020. <Property Name="ZoneId" Type="Int32" />
  16021. <Property Name="InstallDate" Type="DateTime" Precision="0" />
  16022. <Property Name="OperationStartDate" Type="DateTime" Precision="0" />
  16023. <Property Name="FacilityCapacity" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  16024. <Property Name="FacilityCost" Type="Int32" />
  16025. <Property Name="FacilityCount" Type="Int32" />
  16026. <Property Name="FacilitySeviceLifeYear" Type="Int32" />
  16027. <Property Name="FacilityUsage" Type="String" MaxLength="80" FixedLength="false" Unicode="true" />
  16028. <Property Name="RatedPowerConsumption" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  16029. <Property Name="RatedCOP" Type="Double" />
  16030. <Property Name="MainContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16031. <Property Name="SubContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16032. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  16033. <Property Name="Reserved1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  16034. <Property Name="Reserved2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  16035. <Property Name="IsUse" Type="Boolean" />
  16036. <Property Name="FileId" Type="Int32" />
  16037. <Property Name="IsVirtualFacility" Type="Boolean" Nullable="false" />
  16038. <Property Name="FuelTypeId" Type="Int16" />
  16039. <Property Name="ContractType" Type="Int16" />
  16040. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="CmFacility" ToRole="BemsAlarmSetting" />
  16041. <NavigationProperty Name="BemsEnergyCost" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="CmFacility" ToRole="BemsEnergyCost" />
  16042. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="CmFacility" ToRole="BemsFacilityType" />
  16043. <NavigationProperty Name="BemsFormulaParameter" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="CmFacility" ToRole="BemsFormulaParameter" />
  16044. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="CmFacility" ToRole="BemsFuelType" />
  16045. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="CmFacility" ToRole="BemsMonitoringPoint" />
  16046. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="CmFacility" ToRole="BemsNoticePriceContractType" />
  16047. <NavigationProperty Name="BemsPeakFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="CmFacility" ToRole="BemsPeakFacility" />
  16048. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmFacility" ToRole="CmBuilding" />
  16049. <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFacility" ToRole="CmFloor" />
  16050. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmFacility" ToRole="CmUser" />
  16051. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmFacility" ToRole="CmUser" />
  16052. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility" ToRole="CmFacility1" />
  16053. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility1" ToRole="CmFacility" />
  16054. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFacility" ToRole="CmFile" />
  16055. <NavigationProperty Name="CmZone" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmFacility" ToRole="CmZone" />
  16056. <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  16057. <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  16058. <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  16059. <NavigationProperty Name="CmFacilityFile" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacility" ToRole="CmFacilityFile" />
  16060. <NavigationProperty Name="FmsFacilityManual" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="CmFacility" ToRole="FmsFacilityManual" />
  16061. <NavigationProperty Name="FmsFacilityOperationItem" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="CmFacility" ToRole="FmsFacilityOperationItem" />
  16062. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultCheckItem" />
  16063. <NavigationProperty Name="FmsWorkResultToFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultToFacility" />
  16064. <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmFacility" ToRole="CmUser" />
  16065. <NavigationProperty Name="CmUser3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmFacility" ToRole="CmUser" />
  16066. <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacility" ToRole="CmFacilityTempSet" />
  16067. <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkOrderToFacility" />
  16068. <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkRequestToFacility" />
  16069. <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkScheduleToFacility" />
  16070. </EntityType>
  16071. <Association Name="FK_BemsAlarmSetting_CmFacility">
  16072. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16073. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  16074. <ReferentialConstraint>
  16075. <Principal Role="CmFacility">
  16076. <PropertyRef Name="SiteId" />
  16077. <PropertyRef Name="FacilityCode" />
  16078. </Principal>
  16079. <Dependent Role="BemsAlarmSetting">
  16080. <PropertyRef Name="SiteId" />
  16081. <PropertyRef Name="FacilityCode" />
  16082. </Dependent>
  16083. </ReferentialConstraint>
  16084. </Association>
  16085. <Association Name="FK_BemsEnergyCost_CmFacility">
  16086. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16087. <End Type="iBemsModel.BemsEnergyCost" Role="BemsEnergyCost" Multiplicity="0..1" />
  16088. <ReferentialConstraint>
  16089. <Principal Role="CmFacility">
  16090. <PropertyRef Name="SiteId" />
  16091. <PropertyRef Name="FacilityCode" />
  16092. </Principal>
  16093. <Dependent Role="BemsEnergyCost">
  16094. <PropertyRef Name="SiteId" />
  16095. <PropertyRef Name="FacilityCode" />
  16096. </Dependent>
  16097. </ReferentialConstraint>
  16098. </Association>
  16099. <Association Name="FK__CmFacility__BemsFacilityType">
  16100. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  16101. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16102. <ReferentialConstraint>
  16103. <Principal Role="BemsFacilityType">
  16104. <PropertyRef Name="FacilityTypeId" />
  16105. </Principal>
  16106. <Dependent Role="CmFacility">
  16107. <PropertyRef Name="FacilityTypeId" />
  16108. </Dependent>
  16109. </ReferentialConstraint>
  16110. </Association>
  16111. <Association Name="FK_BemsFormulaParameter_CmFacility">
  16112. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16113. <End Type="iBemsModel.BemsFormulaParameter" Role="BemsFormulaParameter" Multiplicity="*" />
  16114. <ReferentialConstraint>
  16115. <Principal Role="CmFacility">
  16116. <PropertyRef Name="SiteId" />
  16117. <PropertyRef Name="FacilityCode" />
  16118. </Principal>
  16119. <Dependent Role="BemsFormulaParameter">
  16120. <PropertyRef Name="SiteId" />
  16121. <PropertyRef Name="FacilityCode" />
  16122. </Dependent>
  16123. </ReferentialConstraint>
  16124. </Association>
  16125. <Association Name="FK_CmFacility_BemsFuelType">
  16126. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  16127. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16128. <ReferentialConstraint>
  16129. <Principal Role="BemsFuelType">
  16130. <PropertyRef Name="FuelTypeId" />
  16131. </Principal>
  16132. <Dependent Role="CmFacility">
  16133. <PropertyRef Name="FuelTypeId" />
  16134. </Dependent>
  16135. </ReferentialConstraint>
  16136. </Association>
  16137. <Association Name="FK_BemsMonitoringPoint_CmFacility">
  16138. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16139. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
  16140. <ReferentialConstraint>
  16141. <Principal Role="CmFacility">
  16142. <PropertyRef Name="SiteId" />
  16143. <PropertyRef Name="FacilityCode" />
  16144. </Principal>
  16145. <Dependent Role="BemsMonitoringPoint">
  16146. <PropertyRef Name="SiteId" />
  16147. <PropertyRef Name="FacilityCode" />
  16148. </Dependent>
  16149. </ReferentialConstraint>
  16150. </Association>
  16151. <Association Name="FK_CmFacility_BemsNoticePriceContractType">
  16152. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="0..1" />
  16153. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16154. <ReferentialConstraint>
  16155. <Principal Role="BemsNoticePriceContractType">
  16156. <PropertyRef Name="FuelTypeId" />
  16157. <PropertyRef Name="ContractType" />
  16158. </Principal>
  16159. <Dependent Role="CmFacility">
  16160. <PropertyRef Name="FuelTypeId" />
  16161. <PropertyRef Name="ContractType" />
  16162. </Dependent>
  16163. </ReferentialConstraint>
  16164. </Association>
  16165. <Association Name="FK_BemsPeakFacility_CmFacility">
  16166. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16167. <End Type="iBemsModel.BemsPeakFacility" Role="BemsPeakFacility" Multiplicity="*" />
  16168. <ReferentialConstraint>
  16169. <Principal Role="CmFacility">
  16170. <PropertyRef Name="SiteId" />
  16171. <PropertyRef Name="FacilityCode" />
  16172. </Principal>
  16173. <Dependent Role="BemsPeakFacility">
  16174. <PropertyRef Name="SiteId" />
  16175. <PropertyRef Name="FacilityCode" />
  16176. </Dependent>
  16177. </ReferentialConstraint>
  16178. </Association>
  16179. <Association Name="FK__CmFacility__CmBuilding">
  16180. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="0..1" />
  16181. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16182. <ReferentialConstraint>
  16183. <Principal Role="CmBuilding">
  16184. <PropertyRef Name="SiteId" />
  16185. <PropertyRef Name="BuildingId" />
  16186. </Principal>
  16187. <Dependent Role="CmFacility">
  16188. <PropertyRef Name="SiteId" />
  16189. <PropertyRef Name="BuildingId" />
  16190. </Dependent>
  16191. </ReferentialConstraint>
  16192. </Association>
  16193. <Association Name="FK__CmFacility__74444068">
  16194. <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="0..1" />
  16195. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16196. <ReferentialConstraint>
  16197. <Principal Role="CmFloor">
  16198. <PropertyRef Name="SiteId" />
  16199. <PropertyRef Name="BuildingId" />
  16200. <PropertyRef Name="FloorId" />
  16201. </Principal>
  16202. <Dependent Role="CmFacility">
  16203. <PropertyRef Name="SiteId" />
  16204. <PropertyRef Name="BuildingId" />
  16205. <PropertyRef Name="FloorId" />
  16206. </Dependent>
  16207. </ReferentialConstraint>
  16208. </Association>
  16209. <Association Name="FK__CmFacility__753864A1">
  16210. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  16211. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16212. <ReferentialConstraint>
  16213. <Principal Role="CmUser">
  16214. <PropertyRef Name="SiteId" />
  16215. <PropertyRef Name="UserId" />
  16216. </Principal>
  16217. <Dependent Role="CmFacility">
  16218. <PropertyRef Name="SiteId" />
  16219. <PropertyRef Name="MainContactorUserId" />
  16220. </Dependent>
  16221. </ReferentialConstraint>
  16222. </Association>
  16223. <Association Name="FK__CmFacility__762C88DA">
  16224. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  16225. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16226. <ReferentialConstraint>
  16227. <Principal Role="CmUser">
  16228. <PropertyRef Name="SiteId" />
  16229. <PropertyRef Name="UserId" />
  16230. </Principal>
  16231. <Dependent Role="CmFacility">
  16232. <PropertyRef Name="SiteId" />
  16233. <PropertyRef Name="SubContactorUserId" />
  16234. </Dependent>
  16235. </ReferentialConstraint>
  16236. </Association>
  16237. <Association Name="FK__CmFacility__CmFacility">
  16238. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
  16239. <End Type="iBemsModel.CmFacility" Role="CmFacility1" Multiplicity="*" />
  16240. <ReferentialConstraint>
  16241. <Principal Role="CmFacility">
  16242. <PropertyRef Name="SiteId" />
  16243. <PropertyRef Name="FacilityCode" />
  16244. </Principal>
  16245. <Dependent Role="CmFacility1">
  16246. <PropertyRef Name="SiteId" />
  16247. <PropertyRef Name="ParentFacilityCode" />
  16248. </Dependent>
  16249. </ReferentialConstraint>
  16250. </Association>
  16251. <Association Name="FK__CmFacility__CmFile">
  16252. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  16253. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16254. <ReferentialConstraint>
  16255. <Principal Role="CmFile">
  16256. <PropertyRef Name="SiteId" />
  16257. <PropertyRef Name="FileId" />
  16258. </Principal>
  16259. <Dependent Role="CmFacility">
  16260. <PropertyRef Name="SiteId" />
  16261. <PropertyRef Name="FileId" />
  16262. </Dependent>
  16263. </ReferentialConstraint>
  16264. </Association>
  16265. <Association Name="FK__CmFacility__CmZone">
  16266. <End Type="iBemsModel.CmZone" Role="CmZone" Multiplicity="0..1" />
  16267. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16268. <ReferentialConstraint>
  16269. <Principal Role="CmZone">
  16270. <PropertyRef Name="SiteId" />
  16271. <PropertyRef Name="BuildingId" />
  16272. <PropertyRef Name="FloorId" />
  16273. <PropertyRef Name="ZoneId" />
  16274. </Principal>
  16275. <Dependent Role="CmFacility">
  16276. <PropertyRef Name="SiteId" />
  16277. <PropertyRef Name="BuildingId" />
  16278. <PropertyRef Name="FloorId" />
  16279. <PropertyRef Name="ZoneId" />
  16280. </Dependent>
  16281. </ReferentialConstraint>
  16282. </Association>
  16283. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsFirst">
  16284. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  16285. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16286. <ReferentialConstraint>
  16287. <Principal Role="FmsFacilityCodeClass">
  16288. <PropertyRef Name="SiteId" />
  16289. <PropertyRef Name="FacilityClassId" />
  16290. </Principal>
  16291. <Dependent Role="CmFacility">
  16292. <PropertyRef Name="SiteId" />
  16293. <PropertyRef Name="FirstClassId" />
  16294. </Dependent>
  16295. </ReferentialConstraint>
  16296. </Association>
  16297. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsSecond">
  16298. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  16299. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16300. <ReferentialConstraint>
  16301. <Principal Role="FmsFacilityCodeClass">
  16302. <PropertyRef Name="SiteId" />
  16303. <PropertyRef Name="FacilityClassId" />
  16304. </Principal>
  16305. <Dependent Role="CmFacility">
  16306. <PropertyRef Name="SiteId" />
  16307. <PropertyRef Name="SecondClassId" />
  16308. </Dependent>
  16309. </ReferentialConstraint>
  16310. </Association>
  16311. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsThird">
  16312. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  16313. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16314. <ReferentialConstraint>
  16315. <Principal Role="FmsFacilityCodeClass">
  16316. <PropertyRef Name="SiteId" />
  16317. <PropertyRef Name="FacilityClassId" />
  16318. </Principal>
  16319. <Dependent Role="CmFacility">
  16320. <PropertyRef Name="SiteId" />
  16321. <PropertyRef Name="ThirdClassId" />
  16322. </Dependent>
  16323. </ReferentialConstraint>
  16324. </Association>
  16325. <Association Name="FK__CmFacilityFile__7720AD13">
  16326. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16327. <End Type="iBemsModel.CmFacilityFile" Role="CmFacilityFile" Multiplicity="*" />
  16328. <ReferentialConstraint>
  16329. <Principal Role="CmFacility">
  16330. <PropertyRef Name="SiteId" />
  16331. <PropertyRef Name="FacilityCode" />
  16332. </Principal>
  16333. <Dependent Role="CmFacilityFile">
  16334. <PropertyRef Name="SiteId" />
  16335. <PropertyRef Name="FacilityCode" />
  16336. </Dependent>
  16337. </ReferentialConstraint>
  16338. </Association>
  16339. <Association Name="FK__CmFacilityManual__79FD19BE">
  16340. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16341. <End Type="iBemsModel.FmsFacilityManual" Role="FmsFacilityManual" Multiplicity="*" />
  16342. <ReferentialConstraint>
  16343. <Principal Role="CmFacility">
  16344. <PropertyRef Name="SiteId" />
  16345. <PropertyRef Name="FacilityCode" />
  16346. </Principal>
  16347. <Dependent Role="FmsFacilityManual">
  16348. <PropertyRef Name="SiteId" />
  16349. <PropertyRef Name="FacilityCode" />
  16350. </Dependent>
  16351. </ReferentialConstraint>
  16352. </Association>
  16353. <Association Name="FK__FmsFacilityOpera__725BF7F6">
  16354. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16355. <End Type="iBemsModel.FmsFacilityOperationItem" Role="FmsFacilityOperationItem" Multiplicity="0..1" />
  16356. <ReferentialConstraint>
  16357. <Principal Role="CmFacility">
  16358. <PropertyRef Name="SiteId" />
  16359. <PropertyRef Name="FacilityCode" />
  16360. </Principal>
  16361. <Dependent Role="FmsFacilityOperationItem">
  16362. <PropertyRef Name="SiteId" />
  16363. <PropertyRef Name="ItemId" />
  16364. </Dependent>
  16365. </ReferentialConstraint>
  16366. </Association>
  16367. <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
  16368. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
  16369. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  16370. <ReferentialConstraint>
  16371. <Principal Role="CmFacility">
  16372. <PropertyRef Name="SiteId" />
  16373. <PropertyRef Name="FacilityCode" />
  16374. </Principal>
  16375. <Dependent Role="FmsWorkResultCheckItem">
  16376. <PropertyRef Name="SiteId" />
  16377. <PropertyRef Name="FacilityCode" />
  16378. </Dependent>
  16379. </ReferentialConstraint>
  16380. </Association>
  16381. <Association Name="FK__FmsWorkResultToFacility__CmFacility">
  16382. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16383. <End Type="iBemsModel.FmsWorkResultToFacility" Role="FmsWorkResultToFacility" Multiplicity="*" />
  16384. <ReferentialConstraint>
  16385. <Principal Role="CmFacility">
  16386. <PropertyRef Name="SiteId" />
  16387. <PropertyRef Name="FacilityCode" />
  16388. </Principal>
  16389. <Dependent Role="FmsWorkResultToFacility">
  16390. <PropertyRef Name="SiteId" />
  16391. <PropertyRef Name="FacilityCode" />
  16392. </Dependent>
  16393. </ReferentialConstraint>
  16394. </Association>
  16395. <Association Name="FK_CmFacility_CmUser">
  16396. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  16397. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16398. <ReferentialConstraint>
  16399. <Principal Role="CmUser">
  16400. <PropertyRef Name="SiteId" />
  16401. <PropertyRef Name="UserId" />
  16402. </Principal>
  16403. <Dependent Role="CmFacility">
  16404. <PropertyRef Name="SiteId" />
  16405. <PropertyRef Name="MainContactorUserId" />
  16406. </Dependent>
  16407. </ReferentialConstraint>
  16408. </Association>
  16409. <Association Name="FK_CmFacility_CmUser1">
  16410. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  16411. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16412. <ReferentialConstraint>
  16413. <Principal Role="CmUser">
  16414. <PropertyRef Name="SiteId" />
  16415. <PropertyRef Name="UserId" />
  16416. </Principal>
  16417. <Dependent Role="CmFacility">
  16418. <PropertyRef Name="SiteId" />
  16419. <PropertyRef Name="SubContactorUserId" />
  16420. </Dependent>
  16421. </ReferentialConstraint>
  16422. </Association>
  16423. <Association Name="FK_CmFacilityTempSet_CmFacility">
  16424. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16425. <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="0..1" />
  16426. <ReferentialConstraint>
  16427. <Principal Role="CmFacility">
  16428. <PropertyRef Name="SiteId" />
  16429. <PropertyRef Name="FacilityCode" />
  16430. </Principal>
  16431. <Dependent Role="CmFacilityTempSet">
  16432. <PropertyRef Name="SiteId" />
  16433. <PropertyRef Name="FacilityCode" />
  16434. </Dependent>
  16435. </ReferentialConstraint>
  16436. </Association>
  16437. <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
  16438. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16439. <End Type="iBemsModel.FmsWorkOrderToFacility" Role="FmsWorkOrderToFacility" Multiplicity="*" />
  16440. <ReferentialConstraint>
  16441. <Principal Role="CmFacility">
  16442. <PropertyRef Name="SiteId" />
  16443. <PropertyRef Name="FacilityCode" />
  16444. </Principal>
  16445. <Dependent Role="FmsWorkOrderToFacility">
  16446. <PropertyRef Name="SiteId" />
  16447. <PropertyRef Name="FacilityCode" />
  16448. </Dependent>
  16449. </ReferentialConstraint>
  16450. </Association>
  16451. <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
  16452. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16453. <End Type="iBemsModel.FmsWorkRequestToFacility" Role="FmsWorkRequestToFacility" Multiplicity="*" />
  16454. <ReferentialConstraint>
  16455. <Principal Role="CmFacility">
  16456. <PropertyRef Name="SiteId" />
  16457. <PropertyRef Name="FacilityCode" />
  16458. </Principal>
  16459. <Dependent Role="FmsWorkRequestToFacility">
  16460. <PropertyRef Name="SiteId" />
  16461. <PropertyRef Name="FacilityCode" />
  16462. </Dependent>
  16463. </ReferentialConstraint>
  16464. </Association>
  16465. <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
  16466. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16467. <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
  16468. <ReferentialConstraint>
  16469. <Principal Role="CmFacility">
  16470. <PropertyRef Name="SiteId" />
  16471. <PropertyRef Name="FacilityCode" />
  16472. </Principal>
  16473. <Dependent Role="FmsWorkScheduleToFacility">
  16474. <PropertyRef Name="SiteId" />
  16475. <PropertyRef Name="FacilityCode" />
  16476. </Dependent>
  16477. </ReferentialConstraint>
  16478. </Association>
  16479. <EntityType Name="BemsMonitoringPointHistory15minRawData">
  16480. <Key>
  16481. <PropertyRef Name="SiteId" />
  16482. <PropertyRef Name="FacilityCode" />
  16483. <PropertyRef Name="PropertyId" />
  16484. <PropertyRef Name="CreatedDateTime" />
  16485. </Key>
  16486. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16487. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  16488. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  16489. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  16490. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16491. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  16492. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsFacilityType" />
  16493. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsMonitoringPoint" />
  16494. </EntityType>
  16495. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  16496. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  16497. <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  16498. <ReferentialConstraint>
  16499. <Principal Role="BemsFacilityType">
  16500. <PropertyRef Name="FacilityTypeId" />
  16501. </Principal>
  16502. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  16503. <PropertyRef Name="FacilityTypeId" />
  16504. </Dependent>
  16505. </ReferentialConstraint>
  16506. </Association>
  16507. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  16508. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
  16509. <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  16510. <ReferentialConstraint>
  16511. <Principal Role="BemsMonitoringPoint">
  16512. <PropertyRef Name="SiteId" />
  16513. <PropertyRef Name="FacilityCode" />
  16514. <PropertyRef Name="PropertyId" />
  16515. </Principal>
  16516. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  16517. <PropertyRef Name="SiteId" />
  16518. <PropertyRef Name="FacilityCode" />
  16519. <PropertyRef Name="PropertyId" />
  16520. </Dependent>
  16521. </ReferentialConstraint>
  16522. </Association>
  16523. <EntityType Name="FmsDailyReport">
  16524. <Key>
  16525. <PropertyRef Name="SiteId" />
  16526. <PropertyRef Name="AddDate" />
  16527. <PropertyRef Name="BusinessFieldId" />
  16528. </Key>
  16529. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16530. <Property Name="DailyReportId" Type="Int32" />
  16531. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  16532. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  16533. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  16534. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="0" />
  16535. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  16536. <Property Name="Datas" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  16537. <Property Name="ApproverUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16538. <Property Name="ApproveDate" Type="DateTime" Precision="0" />
  16539. <Property Name="RegisterDate" Type="DateTime" Precision="0" />
  16540. <Property Name="ApproverUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16541. <Property Name="ApproveDate2" Type="DateTime" Precision="0" />
  16542. <Property Name="ApproverUserId3" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16543. <Property Name="ApproveDate3" Type="DateTime" Precision="0" />
  16544. <Property Name="ApproverUserId4" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16545. <Property Name="ApproveDate4" Type="DateTime" Precision="0" />
  16546. <Property Name="ApproverUserId5" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16547. <Property Name="ApproveDate5" Type="DateTime" Precision="0" />
  16548. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="FmsDailyReport" ToRole="CmBusinessField" />
  16549. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="FmsDailyReport" ToRole="CmUser" />
  16550. </EntityType>
  16551. <Association Name="FK_FmsDailyReport_CmBusinessField">
  16552. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  16553. <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
  16554. <ReferentialConstraint>
  16555. <Principal Role="CmBusinessField">
  16556. <PropertyRef Name="SiteId" />
  16557. <PropertyRef Name="BusinessFieldId" />
  16558. </Principal>
  16559. <Dependent Role="FmsDailyReport">
  16560. <PropertyRef Name="SiteId" />
  16561. <PropertyRef Name="BusinessFieldId" />
  16562. </Dependent>
  16563. </ReferentialConstraint>
  16564. </Association>
  16565. <Association Name="FK_FmsDailyReport_CmUser">
  16566. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  16567. <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
  16568. <ReferentialConstraint>
  16569. <Principal Role="CmUser">
  16570. <PropertyRef Name="SiteId" />
  16571. <PropertyRef Name="UserId" />
  16572. </Principal>
  16573. <Dependent Role="FmsDailyReport">
  16574. <PropertyRef Name="SiteId" />
  16575. <PropertyRef Name="RegisterUserId" />
  16576. </Dependent>
  16577. </ReferentialConstraint>
  16578. </Association>
  16579. <EntityType Name="BemsPeakHistoryDaily">
  16580. <Key>
  16581. <PropertyRef Name="SiteId" />
  16582. <PropertyRef Name="CreatedDateTime" />
  16583. </Key>
  16584. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16585. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16586. <Property Name="MaxPeakValue" Type="Double" />
  16587. <Property Name="MaxDateTime" Type="DateTime" Precision="3" />
  16588. <Property Name="MinPeakValue" Type="Double" />
  16589. <Property Name="MinDateTime" Type="DateTime" Precision="3" />
  16590. </EntityType>
  16591. <EntityType Name="FmsEquipment">
  16592. <Key>
  16593. <PropertyRef Name="SiteId" />
  16594. <PropertyRef Name="EquipmentId" />
  16595. </Key>
  16596. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16597. <Property Name="EquipmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16598. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  16599. <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" />
  16600. <Property Name="WarehouseId" Type="Int32" />
  16601. <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
  16602. <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16603. <Property Name="AddDate" Type="DateTime" Precision="3" />
  16604. <Property Name="UpdateDate" Type="DateTime" Precision="3" />
  16605. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  16606. <Property Name="SupplierName" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  16607. <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16608. <Property Name="ImageFileId" Type="Int32" />
  16609. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="FmsEquipment" ToRole="CmUser" />
  16610. <NavigationProperty Name="FmsEquipmentCodeType" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipment" ToRole="FmsEquipmentCodeType" />
  16611. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsEquipment" ToRole="FmsMaterialWarehouse" />
  16612. <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipment" ToRole="FmsEquipmentHistory" />
  16613. </EntityType>
  16614. <Association Name="FK_FmsEquipment_CmUser">
  16615. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  16616. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  16617. <ReferentialConstraint>
  16618. <Principal Role="CmUser">
  16619. <PropertyRef Name="SiteId" />
  16620. <PropertyRef Name="UserId" />
  16621. </Principal>
  16622. <Dependent Role="FmsEquipment">
  16623. <PropertyRef Name="SiteId" />
  16624. <PropertyRef Name="RegisterUserId" />
  16625. </Dependent>
  16626. </ReferentialConstraint>
  16627. </Association>
  16628. <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
  16629. <End Type="iBemsModel.FmsEquipmentCodeType" Role="FmsEquipmentCodeType" Multiplicity="1" />
  16630. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  16631. <ReferentialConstraint>
  16632. <Principal Role="FmsEquipmentCodeType">
  16633. <PropertyRef Name="SiteId" />
  16634. <PropertyRef Name="EquipmentTypeId" />
  16635. </Principal>
  16636. <Dependent Role="FmsEquipment">
  16637. <PropertyRef Name="SiteId" />
  16638. <PropertyRef Name="EquipmentTypeId" />
  16639. </Dependent>
  16640. </ReferentialConstraint>
  16641. </Association>
  16642. <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
  16643. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
  16644. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  16645. <ReferentialConstraint>
  16646. <Principal Role="FmsMaterialWarehouse">
  16647. <PropertyRef Name="SiteId" />
  16648. <PropertyRef Name="WarehouseId" />
  16649. </Principal>
  16650. <Dependent Role="FmsEquipment">
  16651. <PropertyRef Name="SiteId" />
  16652. <PropertyRef Name="WarehouseId" />
  16653. </Dependent>
  16654. </ReferentialConstraint>
  16655. </Association>
  16656. <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
  16657. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="1" />
  16658. <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
  16659. <ReferentialConstraint>
  16660. <Principal Role="FmsEquipment">
  16661. <PropertyRef Name="SiteId" />
  16662. <PropertyRef Name="EquipmentId" />
  16663. </Principal>
  16664. <Dependent Role="FmsEquipmentHistory">
  16665. <PropertyRef Name="SiteId" />
  16666. <PropertyRef Name="EquipmentId" />
  16667. </Dependent>
  16668. </ReferentialConstraint>
  16669. </Association>
  16670. <EntityType Name="CmAlarmAdmin">
  16671. <Key>
  16672. <PropertyRef Name="SiteId" />
  16673. </Key>
  16674. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16675. <Property Name="UserCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16676. <Property Name="DeptCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16677. <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16678. <Property Name="EmailAddress" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16679. <Property Name="EmailPassword" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16680. </EntityType>
  16681. <EntityType Name="BemsFloorStatus">
  16682. <Key>
  16683. <PropertyRef Name="SiteId" />
  16684. <PropertyRef Name="FloorId" />
  16685. <PropertyRef Name="FloorName" />
  16686. <PropertyRef Name="ImageFileId" />
  16687. <PropertyRef Name="Xvalue" />
  16688. <PropertyRef Name="Yvalue" />
  16689. <PropertyRef Name="PropertyId" />
  16690. </Key>
  16691. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16692. <Property Name="FloorId" Type="Int32" Nullable="false" />
  16693. <Property Name="FloorName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16694. <Property Name="ImageFileId" Type="Int32" Nullable="false" />
  16695. <Property Name="Xvalue" Type="Int32" Nullable="false" />
  16696. <Property Name="Yvalue" Type="Int32" Nullable="false" />
  16697. <Property Name="ZoneId" Type="Int32" />
  16698. <Property Name="ServiceTypeId" Type="Int32" />
  16699. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  16700. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  16701. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  16702. <Property Name="FacilityName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  16703. </EntityType>
  16704. <EntityType Name="BemsReportHistory">
  16705. <Key>
  16706. <PropertyRef Name="Seq" />
  16707. <PropertyRef Name="DateTime" />
  16708. <PropertyRef Name="ReportFormatId" />
  16709. <PropertyRef Name="parts" />
  16710. </Key>
  16711. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16712. <Property Name="Seq" Type="Int32" Nullable="false" />
  16713. <Property Name="DateTime" Type="DateTime" Nullable="false" Precision="3" />
  16714. <Property Name="ReportName" Type="String" Nullable="false" MaxLength="200" FixedLength="false" Unicode="false" />
  16715. <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
  16716. <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  16717. <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  16718. <Property Name="Writer" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  16719. <Property Name="Confirm1" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  16720. <Property Name="Confirm2" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  16721. <Property Name="parts" Type="Int32" Nullable="false" />
  16722. <Property Name="FileName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  16723. </EntityType>
  16724. <EntityType Name="CmPartner">
  16725. <Key>
  16726. <PropertyRef Name="SiteId" />
  16727. <PropertyRef Name="PartnerId" />
  16728. </Key>
  16729. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16730. <Property Name="PartnerId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16731. <Property Name="PartnerTypeId" Type="Int32" Nullable="false" />
  16732. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16733. <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16734. <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16735. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16736. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16737. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16738. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16739. <Property Name="AddressZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  16740. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  16741. <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16742. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  16743. <Property Name="HomepageUri" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  16744. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  16745. <Property Name="IsUse" Type="Boolean" />
  16746. <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartner" ToRole="CmPartnerType" />
  16747. <NavigationProperty Name="FmsConstruction" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="CmPartner" ToRole="FmsConstruction" />
  16748. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="CmPartner" ToRole="FmsWorkRequest" />
  16749. <NavigationProperty Name="FmsWorkSchedule" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="CmPartner" ToRole="FmsWorkSchedule" />
  16750. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="CmPartner" ToRole="FmsContract" />
  16751. </EntityType>
  16752. <EntityType Name="CmPartnerType">
  16753. <Key>
  16754. <PropertyRef Name="PartnerTypeId" />
  16755. </Key>
  16756. <Property Name="PartnerTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16757. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16758. <Property Name="IsUse" Type="Boolean" />
  16759. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartnerType" ToRole="CmPartner" />
  16760. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="CmPartnerType" ToRole="FmsContract" />
  16761. </EntityType>
  16762. <Association Name="FK_CmPartnerType_CmPartner">
  16763. <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="1" />
  16764. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="*" />
  16765. <ReferentialConstraint>
  16766. <Principal Role="CmPartnerType">
  16767. <PropertyRef Name="PartnerTypeId" />
  16768. </Principal>
  16769. <Dependent Role="CmPartner">
  16770. <PropertyRef Name="PartnerTypeId" />
  16771. </Dependent>
  16772. </ReferentialConstraint>
  16773. </Association>
  16774. <Association Name="FK_FmsConstruction_CmPartner">
  16775. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="1" />
  16776. <End Type="iBemsModel.FmsConstruction" Role="FmsConstruction" Multiplicity="*" />
  16777. <ReferentialConstraint>
  16778. <Principal Role="CmPartner">
  16779. <PropertyRef Name="SiteId" />
  16780. <PropertyRef Name="PartnerId" />
  16781. </Principal>
  16782. <Dependent Role="FmsConstruction">
  16783. <PropertyRef Name="SiteId" />
  16784. <PropertyRef Name="PartnerId" />
  16785. </Dependent>
  16786. </ReferentialConstraint>
  16787. </Association>
  16788. <Association Name="FK_FmsWorkRequest_CmPartner">
  16789. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  16790. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  16791. <ReferentialConstraint>
  16792. <Principal Role="CmPartner">
  16793. <PropertyRef Name="SiteId" />
  16794. <PropertyRef Name="PartnerId" />
  16795. </Principal>
  16796. <Dependent Role="FmsWorkRequest">
  16797. <PropertyRef Name="SiteId" />
  16798. <PropertyRef Name="InspectionAgencyId" />
  16799. </Dependent>
  16800. </ReferentialConstraint>
  16801. </Association>
  16802. <Association Name="FK_FmsWorkSchedule_CmPartner">
  16803. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  16804. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  16805. <ReferentialConstraint>
  16806. <Principal Role="CmPartner">
  16807. <PropertyRef Name="SiteId" />
  16808. <PropertyRef Name="PartnerId" />
  16809. </Principal>
  16810. <Dependent Role="FmsWorkSchedule">
  16811. <PropertyRef Name="SiteId" />
  16812. <PropertyRef Name="InspectionAgencyId" />
  16813. </Dependent>
  16814. </ReferentialConstraint>
  16815. </Association>
  16816. <EntityType Name="FmsContract">
  16817. <Key>
  16818. <PropertyRef Name="SiteId" />
  16819. <PropertyRef Name="ContractId" />
  16820. </Key>
  16821. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16822. <Property Name="ContractId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16823. <Property Name="Name" Type="String" Nullable="false" MaxLength="256" FixedLength="false" Unicode="true" />
  16824. <Property Name="PartnerTypeId" Type="Int32" />
  16825. <Property Name="PartnerId" Type="Int32" />
  16826. <Property Name="ContractDate" Type="DateTime" Precision="3" />
  16827. <Property Name="StartDate" Type="DateTime" Precision="3" />
  16828. <Property Name="EndDate" Type="DateTime" Precision="3" />
  16829. <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16830. <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16831. <Property Name="CommitmentMan" Type="Int16" />
  16832. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  16833. <Property Name="ContractClassId" Type="Int32" />
  16834. <Property Name="ContractTypeId" Type="Int32" />
  16835. <Property Name="ContractMethodId" Type="Int32" />
  16836. <Property Name="PaymentTypeId" Type="Int32" />
  16837. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="FmsContract" ToRole="CmPartner" />
  16838. <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="FmsContract" ToRole="CmPartnerType" />
  16839. <NavigationProperty Name="FmsContractClass" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContract" ToRole="FmsContractClass" />
  16840. <NavigationProperty Name="FmsContractMethod" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContract" ToRole="FmsContractMethod" />
  16841. <NavigationProperty Name="FmsContractType" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContract" ToRole="FmsContractType" />
  16842. <NavigationProperty Name="FmsPaymentType" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsContract" ToRole="FmsPaymentType" />
  16843. </EntityType>
  16844. <Association Name="FK_FmsContract_CmPartner">
  16845. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  16846. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16847. <ReferentialConstraint>
  16848. <Principal Role="CmPartner">
  16849. <PropertyRef Name="SiteId" />
  16850. <PropertyRef Name="PartnerId" />
  16851. </Principal>
  16852. <Dependent Role="FmsContract">
  16853. <PropertyRef Name="SiteId" />
  16854. <PropertyRef Name="PartnerId" />
  16855. </Dependent>
  16856. </ReferentialConstraint>
  16857. </Association>
  16858. <Association Name="FK_FmsContract_CmPartnerType">
  16859. <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="0..1" />
  16860. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16861. <ReferentialConstraint>
  16862. <Principal Role="CmPartnerType">
  16863. <PropertyRef Name="PartnerTypeId" />
  16864. </Principal>
  16865. <Dependent Role="FmsContract">
  16866. <PropertyRef Name="PartnerTypeId" />
  16867. </Dependent>
  16868. </ReferentialConstraint>
  16869. </Association>
  16870. <Association Name="FK_FmsContract_FmsContractClass">
  16871. <End Type="iBemsModel.FmsContractClass" Role="FmsContractClass" Multiplicity="0..1" />
  16872. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16873. <ReferentialConstraint>
  16874. <Principal Role="FmsContractClass">
  16875. <PropertyRef Name="SiteId" />
  16876. <PropertyRef Name="ContractClassId" />
  16877. </Principal>
  16878. <Dependent Role="FmsContract">
  16879. <PropertyRef Name="SiteId" />
  16880. <PropertyRef Name="ContractClassId" />
  16881. </Dependent>
  16882. </ReferentialConstraint>
  16883. </Association>
  16884. <Association Name="FK_FmsContract_FmsContractMethod">
  16885. <End Type="iBemsModel.FmsContractMethod" Role="FmsContractMethod" Multiplicity="0..1" />
  16886. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16887. <ReferentialConstraint>
  16888. <Principal Role="FmsContractMethod">
  16889. <PropertyRef Name="SiteId" />
  16890. <PropertyRef Name="ContractMethodId" />
  16891. </Principal>
  16892. <Dependent Role="FmsContract">
  16893. <PropertyRef Name="SiteId" />
  16894. <PropertyRef Name="ContractMethodId" />
  16895. </Dependent>
  16896. </ReferentialConstraint>
  16897. </Association>
  16898. <Association Name="FK_FmsContract_FmsContractType">
  16899. <End Type="iBemsModel.FmsContractType" Role="FmsContractType" Multiplicity="0..1" />
  16900. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16901. <ReferentialConstraint>
  16902. <Principal Role="FmsContractType">
  16903. <PropertyRef Name="SiteId" />
  16904. <PropertyRef Name="ContractTypeId" />
  16905. </Principal>
  16906. <Dependent Role="FmsContract">
  16907. <PropertyRef Name="SiteId" />
  16908. <PropertyRef Name="ContractTypeId" />
  16909. </Dependent>
  16910. </ReferentialConstraint>
  16911. </Association>
  16912. <Association Name="FK_FmsContract_FmsPaymentType">
  16913. <End Type="iBemsModel.FmsPaymentType" Role="FmsPaymentType" Multiplicity="0..1" />
  16914. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16915. <ReferentialConstraint>
  16916. <Principal Role="FmsPaymentType">
  16917. <PropertyRef Name="SiteId" />
  16918. <PropertyRef Name="PaymentTypeId" />
  16919. </Principal>
  16920. <Dependent Role="FmsContract">
  16921. <PropertyRef Name="SiteId" />
  16922. <PropertyRef Name="PartnerTypeId" />
  16923. </Dependent>
  16924. </ReferentialConstraint>
  16925. </Association>
  16926. <EntityType Name="BemsMonitoringPointForecastingDayAhead">
  16927. <Key>
  16928. <PropertyRef Name="SiteId" />
  16929. <PropertyRef Name="FacilityCode" />
  16930. <PropertyRef Name="PropertyId" />
  16931. <PropertyRef Name="CreatedDateTime" />
  16932. <PropertyRef Name="TargetDateTime" />
  16933. </Key>
  16934. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16935. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  16936. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  16937. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  16938. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16939. <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16940. <Property Name="ForecastedValue" Type="Double" Nullable="false" />
  16941. </EntityType>
  16942. <EntityType Name="BemsMonitoringPointForecastingHourAhead">
  16943. <Key>
  16944. <PropertyRef Name="SiteId" />
  16945. <PropertyRef Name="FacilityCode" />
  16946. <PropertyRef Name="PropertyId" />
  16947. <PropertyRef Name="CreatedDateTime" />
  16948. <PropertyRef Name="TargetDateTime" />
  16949. </Key>
  16950. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16951. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  16952. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  16953. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  16954. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16955. <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16956. <Property Name="ForecastedValue" Type="Double" Nullable="false" />
  16957. </EntityType>
  16958. <EntityType Name="BemsFloorPlan">
  16959. <Key>
  16960. <PropertyRef Name="SiteId" />
  16961. <PropertyRef Name="Name" />
  16962. </Key>
  16963. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16964. <Property Name="FloorId" Type="Int32" Nullable="false" />
  16965. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16966. <Property Name="ImageFileId" Type="Int32" />
  16967. </EntityType>
  16968. <EntityType Name="BemsMonitoringPointWeatherForecasted">
  16969. <Key>
  16970. <PropertyRef Name="SiteId" />
  16971. <PropertyRef Name="CreatedDateTime" />
  16972. <PropertyRef Name="Category" />
  16973. <PropertyRef Name="BaseDateTime" />
  16974. <PropertyRef Name="ForecastedDateTime" />
  16975. </Key>
  16976. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16977. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16978. <Property Name="Category" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16979. <Property Name="BaseDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16980. <Property Name="ForecastedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16981. <Property Name="ForecastedValue" Type="Double" Nullable="false" />
  16982. <Property Name="nx" Type="Int32" Nullable="false" />
  16983. <Property Name="ny" Type="Int32" Nullable="false" />
  16984. </EntityType>
  16985. <EntityType Name="BemsConfigData">
  16986. <Key>
  16987. <PropertyRef Name="SiteId" />
  16988. </Key>
  16989. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16990. <Property Name="LoadDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16991. <Property Name="LoadDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16992. <Property Name="LoadDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16993. <Property Name="LoadDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16994. <Property Name="TargetDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16995. <Property Name="TargetDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16996. <Property Name="TargetDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16997. <Property Name="TargetDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16998. <Property Name="InitialDate" Type="DateTime" Nullable="false" Precision="3" />
  16999. <Property Name="LinearFilterLength" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  17000. <Property Name="NonlinearTestSize" Type="Double" Nullable="false" />
  17001. </EntityType>
  17002. <EntityType Name="BemsIceThermalStorageSimulation">
  17003. <Key>
  17004. <PropertyRef Name="SiteId" />
  17005. <PropertyRef Name="FacilityCode" />
  17006. <PropertyRef Name="PropertyId" />
  17007. <PropertyRef Name="CreatedDateTime" />
  17008. <PropertyRef Name="TargetDateTime" />
  17009. <PropertyRef Name="SimulationCase" />
  17010. </Key>
  17011. <Property Name="SiteId" Type="Int32" Nullable="false" />
  17012. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  17013. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  17014. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  17015. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  17016. <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
  17017. <Property Name="SimulationValue" Type="Double" />
  17018. <Property Name="SimulationCase" Type="Int32" Nullable="false" />
  17019. </EntityType>
  17020. </Schema>
  17021. </edmx:ConceptualModels>
  17022. <!-- C-S mapping content -->
  17023. <edmx:Mappings>
  17024. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  17025. <EntityContainerMapping StorageEntityContainer="iBemsModelStoreContainer" CdmEntityContainer="iBemsEntities">
  17026. <EntitySetMapping Name="BemsAnalysisType">
  17027. <EntityTypeMapping TypeName="iBemsModel.BemsAnalysisType">
  17028. <MappingFragment StoreEntitySet="BemsAnalysisType">
  17029. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17030. <ScalarProperty Name="AnalysisType" ColumnName="AnalysisType" />
  17031. <ScalarProperty Name="Name" ColumnName="Name" />
  17032. </MappingFragment>
  17033. </EntityTypeMapping>
  17034. </EntitySetMapping>
  17035. <EntitySetMapping Name="BemsControlPointHistory">
  17036. <EntityTypeMapping TypeName="iBemsModel.BemsControlPointHistory">
  17037. <MappingFragment StoreEntitySet="BemsControlPointHistory">
  17038. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17039. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17040. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17041. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17042. <ScalarProperty Name="CreateDateTime" ColumnName="CreateDateTime" />
  17043. <ScalarProperty Name="ControlValue" ColumnName="ControlValue" />
  17044. <ScalarProperty Name="WriteServiceName" ColumnName="WriteServiceName" />
  17045. <ScalarProperty Name="ActionDateTime" ColumnName="ActionDateTime" />
  17046. </MappingFragment>
  17047. </EntityTypeMapping>
  17048. </EntitySetMapping>
  17049. <EntitySetMapping Name="BemsFacilityType">
  17050. <EntityTypeMapping TypeName="iBemsModel.BemsFacilityType">
  17051. <MappingFragment StoreEntitySet="BemsFacilityType">
  17052. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17053. <ScalarProperty Name="Name" ColumnName="Name" />
  17054. </MappingFragment>
  17055. </EntityTypeMapping>
  17056. </EntitySetMapping>
  17057. <EntitySetMapping Name="BemsFactorCo2">
  17058. <EntityTypeMapping TypeName="iBemsModel.BemsFactorCo2">
  17059. <MappingFragment StoreEntitySet="BemsFactorCo2">
  17060. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  17061. <ScalarProperty Name="Factor" ColumnName="Factor" />
  17062. </MappingFragment>
  17063. </EntityTypeMapping>
  17064. </EntitySetMapping>
  17065. <EntitySetMapping Name="BemsFactorToe">
  17066. <EntityTypeMapping TypeName="iBemsModel.BemsFactorToe">
  17067. <MappingFragment StoreEntitySet="BemsFactorToe">
  17068. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  17069. <ScalarProperty Name="TotalFactor" ColumnName="TotalFactor" />
  17070. <ScalarProperty Name="PureFactor" ColumnName="PureFactor" />
  17071. <ScalarProperty Name="kcal" ColumnName="kcal" />
  17072. </MappingFragment>
  17073. </EntityTypeMapping>
  17074. </EntitySetMapping>
  17075. <EntitySetMapping Name="BemsFormula">
  17076. <EntityTypeMapping TypeName="iBemsModel.BemsFormula">
  17077. <MappingFragment StoreEntitySet="BemsFormula">
  17078. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17079. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17080. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17081. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  17082. <ScalarProperty Name="Formula" ColumnName="Formula" />
  17083. </MappingFragment>
  17084. </EntityTypeMapping>
  17085. </EntitySetMapping>
  17086. <EntitySetMapping Name="BemsFormulaBase">
  17087. <EntityTypeMapping TypeName="iBemsModel.BemsFormulaBase">
  17088. <MappingFragment StoreEntitySet="BemsFormulaBase">
  17089. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17090. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  17091. <ScalarProperty Name="Name" ColumnName="Name" />
  17092. </MappingFragment>
  17093. </EntityTypeMapping>
  17094. </EntitySetMapping>
  17095. <EntitySetMapping Name="BemsFormulaParameter">
  17096. <EntityTypeMapping TypeName="iBemsModel.BemsFormulaParameter">
  17097. <MappingFragment StoreEntitySet="BemsFormulaParameter">
  17098. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17099. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17100. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17101. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  17102. <ScalarProperty Name="ParameterId" ColumnName="ParameterId" />
  17103. <ScalarProperty Name="ParameterFacilityCode" ColumnName="ParameterFacilityCode" />
  17104. <ScalarProperty Name="ParameterPropertyId" ColumnName="ParameterPropertyId" />
  17105. </MappingFragment>
  17106. </EntityTypeMapping>
  17107. </EntitySetMapping>
  17108. <EntitySetMapping Name="BemsFormulaTable">
  17109. <EntityTypeMapping TypeName="iBemsModel.BemsFormulaTable">
  17110. <MappingFragment StoreEntitySet="BemsFormulaTable">
  17111. <ScalarProperty Name="TableId" ColumnName="TableId" />
  17112. <ScalarProperty Name="FunctionName" ColumnName="FunctionName" />
  17113. <ScalarProperty Name="Description" ColumnName="Description" />
  17114. </MappingFragment>
  17115. </EntityTypeMapping>
  17116. </EntitySetMapping>
  17117. <EntitySetMapping Name="BemsFormulaTableValue">
  17118. <EntityTypeMapping TypeName="iBemsModel.BemsFormulaTableValue">
  17119. <MappingFragment StoreEntitySet="BemsFormulaTableValue">
  17120. <ScalarProperty Name="TableId" ColumnName="TableId" />
  17121. <ScalarProperty Name="XValue" ColumnName="XValue" />
  17122. <ScalarProperty Name="YValue" ColumnName="YValue" />
  17123. </MappingFragment>
  17124. </EntityTypeMapping>
  17125. </EntitySetMapping>
  17126. <EntitySetMapping Name="BemsMonitoringPoint">
  17127. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPoint">
  17128. <MappingFragment StoreEntitySet="BemsMonitoringPoint">
  17129. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17130. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17131. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17132. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17133. <ScalarProperty Name="ValueType" ColumnName="ValueType" />
  17134. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  17135. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  17136. <ScalarProperty Name="Name" ColumnName="Name" />
  17137. <ScalarProperty Name="Description" ColumnName="Description" />
  17138. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17139. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  17140. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  17141. </MappingFragment>
  17142. </EntityTypeMapping>
  17143. </EntitySetMapping>
  17144. <EntitySetMapping Name="BemsMonitoringPointBaseData">
  17145. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointBaseData">
  17146. <MappingFragment StoreEntitySet="BemsMonitoringPointBaseData">
  17147. <ScalarProperty Name="IsConverted" ColumnName="IsConverted" />
  17148. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17149. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17150. <ScalarProperty Name="ValueType" ColumnName="ValueType" />
  17151. <ScalarProperty Name="IsAccumulated" ColumnName="IsAccumulated" />
  17152. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  17153. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  17154. <ScalarProperty Name="Name" ColumnName="Name" />
  17155. <ScalarProperty Name="Description" ColumnName="Description" />
  17156. <ScalarProperty Name="IsSampled" ColumnName="IsSampled" />
  17157. </MappingFragment>
  17158. </EntityTypeMapping>
  17159. </EntitySetMapping>
  17160. <EntitySetMapping Name="BemsMonitoringPointHistory15min">
  17161. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistory15min">
  17162. <MappingFragment StoreEntitySet="BemsMonitoringPointHistory15min">
  17163. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17164. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17165. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17166. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17167. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  17168. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  17169. </MappingFragment>
  17170. </EntityTypeMapping>
  17171. </EntitySetMapping>
  17172. <EntitySetMapping Name="BemsMonitoringPointHistoryDaily">
  17173. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistoryDaily">
  17174. <MappingFragment StoreEntitySet="BemsMonitoringPointHistoryDaily">
  17175. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17176. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17177. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17178. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17179. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  17180. <ScalarProperty Name="DailyValue" ColumnName="DailyValue" />
  17181. <ScalarProperty Name="MaxValue" ColumnName="MaxValue" />
  17182. <ScalarProperty Name="MinValue" ColumnName="MinValue" />
  17183. </MappingFragment>
  17184. </EntityTypeMapping>
  17185. </EntitySetMapping>
  17186. <EntitySetMapping Name="BemsMonitoringPointHistoryHourly">
  17187. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistoryHourly">
  17188. <MappingFragment StoreEntitySet="BemsMonitoringPointHistoryHourly">
  17189. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17190. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17191. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17192. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17193. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  17194. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  17195. </MappingFragment>
  17196. </EntityTypeMapping>
  17197. </EntitySetMapping>
  17198. <EntitySetMapping Name="BemsMonitoringPointToAnlaysisType">
  17199. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointToAnlaysisType">
  17200. <MappingFragment StoreEntitySet="BemsMonitoringPointToAnlaysisType">
  17201. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17202. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17203. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17204. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17205. <ScalarProperty Name="AnalysisType" ColumnName="AnalysisType" />
  17206. </MappingFragment>
  17207. </EntityTypeMapping>
  17208. </EntitySetMapping>
  17209. <EntitySetMapping Name="BemsServiceType">
  17210. <EntityTypeMapping TypeName="iBemsModel.BemsServiceType">
  17211. <MappingFragment StoreEntitySet="BemsServiceType">
  17212. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  17213. <ScalarProperty Name="Name" ColumnName="Name" />
  17214. </MappingFragment>
  17215. </EntityTypeMapping>
  17216. </EntitySetMapping>
  17217. <EntitySetMapping Name="CmAnnouncement">
  17218. <EntityTypeMapping TypeName="iBemsModel.CmAnnouncement">
  17219. <MappingFragment StoreEntitySet="CmAnnouncement">
  17220. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17221. <ScalarProperty Name="AnnouncementId" ColumnName="AnnouncementId" />
  17222. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17223. <ScalarProperty Name="Title" ColumnName="Title" />
  17224. <ScalarProperty Name="Contents" ColumnName="Contents" />
  17225. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  17226. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17227. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  17228. <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
  17229. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17230. <ScalarProperty Name="ReadCount" ColumnName="ReadCount" />
  17231. </MappingFragment>
  17232. </EntityTypeMapping>
  17233. </EntitySetMapping>
  17234. <EntitySetMapping Name="CmBuilding">
  17235. <EntityTypeMapping TypeName="iBemsModel.CmBuilding">
  17236. <MappingFragment StoreEntitySet="CmBuilding">
  17237. <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
  17238. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17239. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17240. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17241. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17242. <ScalarProperty Name="Name" ColumnName="Name" />
  17243. </MappingFragment>
  17244. </EntityTypeMapping>
  17245. </EntitySetMapping>
  17246. <EntitySetMapping Name="CmBusinessField">
  17247. <EntityTypeMapping TypeName="iBemsModel.CmBusinessField">
  17248. <MappingFragment StoreEntitySet="CmBusinessField">
  17249. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17250. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17251. <ScalarProperty Name="Name" ColumnName="Name" />
  17252. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17253. </MappingFragment>
  17254. </EntityTypeMapping>
  17255. </EntitySetMapping>
  17256. <EntitySetMapping Name="CmCompany">
  17257. <EntityTypeMapping TypeName="iBemsModel.CmCompany">
  17258. <MappingFragment StoreEntitySet="CmCompany">
  17259. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17260. <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
  17261. <ScalarProperty Name="CompanyTypeId" ColumnName="CompanyTypeId" />
  17262. <ScalarProperty Name="Name" ColumnName="Name" />
  17263. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  17264. <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
  17265. <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
  17266. <ScalarProperty Name="SalesName" ColumnName="SalesName" />
  17267. <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
  17268. <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
  17269. <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
  17270. <ScalarProperty Name="Address1" ColumnName="Address1" />
  17271. <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
  17272. <ScalarProperty Name="Homepage" ColumnName="Homepage" />
  17273. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17274. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17275. </MappingFragment>
  17276. </EntityTypeMapping>
  17277. </EntitySetMapping>
  17278. <EntitySetMapping Name="CmCompanyType">
  17279. <EntityTypeMapping TypeName="iBemsModel.CmCompanyType">
  17280. <MappingFragment StoreEntitySet="CmCompanyType">
  17281. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17282. <ScalarProperty Name="CompanyTypeId" ColumnName="CompanyTypeId" />
  17283. <ScalarProperty Name="Name" ColumnName="Name" />
  17284. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17285. </MappingFragment>
  17286. </EntityTypeMapping>
  17287. </EntitySetMapping>
  17288. <EntitySetMapping Name="CmDepartment">
  17289. <EntityTypeMapping TypeName="iBemsModel.CmDepartment">
  17290. <MappingFragment StoreEntitySet="CmDepartment">
  17291. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17292. <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
  17293. <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
  17294. <ScalarProperty Name="Name" ColumnName="Name" />
  17295. <ScalarProperty Name="ShortName" ColumnName="ShortName" />
  17296. <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
  17297. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  17298. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17299. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17300. </MappingFragment>
  17301. </EntityTypeMapping>
  17302. </EntitySetMapping>
  17303. <EntitySetMapping Name="CmFacilityFile">
  17304. <EntityTypeMapping TypeName="iBemsModel.CmFacilityFile">
  17305. <MappingFragment StoreEntitySet="CmFacilityFile">
  17306. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17307. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17308. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17309. <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
  17310. <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
  17311. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  17312. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  17313. </MappingFragment>
  17314. </EntityTypeMapping>
  17315. </EntitySetMapping>
  17316. <EntitySetMapping Name="CmFacilityTempSet">
  17317. <EntityTypeMapping TypeName="iBemsModel.CmFacilityTempSet">
  17318. <MappingFragment StoreEntitySet="CmFacilityTempSet">
  17319. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17320. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17321. <ScalarProperty Name="T1" ColumnName="T1" />
  17322. <ScalarProperty Name="T2" ColumnName="T2" />
  17323. <ScalarProperty Name="T3" ColumnName="T3" />
  17324. <ScalarProperty Name="T4" ColumnName="T4" />
  17325. <ScalarProperty Name="T5" ColumnName="T5" />
  17326. <ScalarProperty Name="T6" ColumnName="T6" />
  17327. <ScalarProperty Name="T7" ColumnName="T7" />
  17328. <ScalarProperty Name="T8" ColumnName="T8" />
  17329. <ScalarProperty Name="T9" ColumnName="T9" />
  17330. <ScalarProperty Name="T10" ColumnName="T10" />
  17331. <ScalarProperty Name="T11" ColumnName="T11" />
  17332. <ScalarProperty Name="T12" ColumnName="T12" />
  17333. </MappingFragment>
  17334. </EntityTypeMapping>
  17335. </EntitySetMapping>
  17336. <EntitySetMapping Name="CmFile">
  17337. <EntityTypeMapping TypeName="iBemsModel.CmFile">
  17338. <MappingFragment StoreEntitySet="CmFile">
  17339. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17340. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17341. <ScalarProperty Name="FileCategoryId" ColumnName="FileCategoryId" />
  17342. <ScalarProperty Name="Name" ColumnName="Name" />
  17343. <ScalarProperty Name="FileSize" ColumnName="FileSize" />
  17344. <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
  17345. <ScalarProperty Name="ContentType" ColumnName="ContentType" />
  17346. </MappingFragment>
  17347. </EntityTypeMapping>
  17348. </EntitySetMapping>
  17349. <EntitySetMapping Name="CmFileCategory">
  17350. <EntityTypeMapping TypeName="iBemsModel.CmFileCategory">
  17351. <MappingFragment StoreEntitySet="CmFileCategory">
  17352. <ScalarProperty Name="FileCategoryId" ColumnName="FileCategoryId" />
  17353. <ScalarProperty Name="Name" ColumnName="Name" />
  17354. </MappingFragment>
  17355. </EntityTypeMapping>
  17356. </EntitySetMapping>
  17357. <EntitySetMapping Name="CmFloor">
  17358. <EntityTypeMapping TypeName="iBemsModel.CmFloor">
  17359. <MappingFragment StoreEntitySet="CmFloor">
  17360. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17361. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17362. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  17363. <ScalarProperty Name="Name" ColumnName="Name" />
  17364. </MappingFragment>
  17365. </EntityTypeMapping>
  17366. </EntitySetMapping>
  17367. <EntitySetMapping Name="CmHoliday">
  17368. <EntityTypeMapping TypeName="iBemsModel.CmHoliday">
  17369. <MappingFragment StoreEntitySet="CmHoliday">
  17370. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17371. <ScalarProperty Name="HolidayMonth" ColumnName="HolidayMonth" />
  17372. <ScalarProperty Name="HolidayDay" ColumnName="HolidayDay" />
  17373. <ScalarProperty Name="IsLunar" ColumnName="IsLunar" />
  17374. <ScalarProperty Name="Name" ColumnName="Name" />
  17375. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17376. </MappingFragment>
  17377. </EntityTypeMapping>
  17378. </EntitySetMapping>
  17379. <EntitySetMapping Name="CmHolidayCustom">
  17380. <EntityTypeMapping TypeName="iBemsModel.CmHolidayCustom">
  17381. <MappingFragment StoreEntitySet="CmHolidayCustom">
  17382. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17383. <ScalarProperty Name="HolidayDate" ColumnName="HolidayDate" />
  17384. <ScalarProperty Name="Name" ColumnName="Name" />
  17385. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17386. </MappingFragment>
  17387. </EntityTypeMapping>
  17388. </EntitySetMapping>
  17389. <EntitySetMapping Name="CmPosition">
  17390. <EntityTypeMapping TypeName="iBemsModel.CmPosition">
  17391. <MappingFragment StoreEntitySet="CmPosition">
  17392. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17393. <ScalarProperty Name="PositionId" ColumnName="PositionId" />
  17394. <ScalarProperty Name="Name" ColumnName="Name" />
  17395. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17396. </MappingFragment>
  17397. </EntityTypeMapping>
  17398. </EntitySetMapping>
  17399. <EntitySetMapping Name="CmUser">
  17400. <EntityTypeMapping TypeName="iBemsModel.CmUser">
  17401. <MappingFragment StoreEntitySet="CmUser">
  17402. <ScalarProperty Name="Devicetoken" ColumnName="Devicetoken" />
  17403. <ScalarProperty Name="IsSI" ColumnName="IsSI" />
  17404. <ScalarProperty Name="IsMobile" ColumnName="IsMobile" />
  17405. <ScalarProperty Name="IsScheduleUser" ColumnName="IsScheduleUser" />
  17406. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17407. <ScalarProperty Name="UserId" ColumnName="UserId" />
  17408. <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
  17409. <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
  17410. <ScalarProperty Name="PositionId" ColumnName="PositionId" />
  17411. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17412. <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
  17413. <ScalarProperty Name="Name" ColumnName="Name" />
  17414. <ScalarProperty Name="Passwd" ColumnName="Passwd" />
  17415. <ScalarProperty Name="Birthday" ColumnName="Birthday" />
  17416. <ScalarProperty Name="Lunar" ColumnName="Lunar" />
  17417. <ScalarProperty Name="StateId" ColumnName="StateId" />
  17418. <ScalarProperty Name="EmploymentType" ColumnName="EmploymentType" />
  17419. <ScalarProperty Name="EmploymentStatus" ColumnName="EmploymentStatus" />
  17420. <ScalarProperty Name="OfficePhoneNo" ColumnName="OfficePhoneNo" />
  17421. <ScalarProperty Name="HomePhoneNo" ColumnName="HomePhoneNo" />
  17422. <ScalarProperty Name="MobilePhoneNo" ColumnName="MobilePhoneNo" />
  17423. <ScalarProperty Name="HomeZip1" ColumnName="HomeZip1" />
  17424. <ScalarProperty Name="HomeZip2" ColumnName="HomeZip2" />
  17425. <ScalarProperty Name="HomeAddress1" ColumnName="HomeAddress1" />
  17426. <ScalarProperty Name="HomeAdderss2" ColumnName="HomeAdderss2" />
  17427. <ScalarProperty Name="Email" ColumnName="Email" />
  17428. <ScalarProperty Name="EnterDate" ColumnName="EnterDate" />
  17429. <ScalarProperty Name="RetireDate" ColumnName="RetireDate" />
  17430. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17431. <ScalarProperty Name="Rfcsn" ColumnName="Rfcsn" />
  17432. <ScalarProperty Name="PasswordUpdatedDate" ColumnName="PasswordUpdatedDate" />
  17433. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17434. <ScalarProperty Name="IsBems" ColumnName="IsBems" />
  17435. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17436. <ScalarProperty Name="Certificated" ColumnName="Certificated" />
  17437. </MappingFragment>
  17438. </EntityTypeMapping>
  17439. </EntitySetMapping>
  17440. <EntitySetMapping Name="CmUserGroup">
  17441. <EntityTypeMapping TypeName="iBemsModel.CmUserGroup">
  17442. <MappingFragment StoreEntitySet="CmUserGroup">
  17443. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17444. <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
  17445. <ScalarProperty Name="Name" ColumnName="Name" />
  17446. </MappingFragment>
  17447. </EntityTypeMapping>
  17448. </EntitySetMapping>
  17449. <EntitySetMapping Name="CmUserGroupPermission">
  17450. <EntityTypeMapping TypeName="iBemsModel.CmUserGroupPermission">
  17451. <MappingFragment StoreEntitySet="CmUserGroupPermission">
  17452. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17453. <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
  17454. <ScalarProperty Name="MenuId" ColumnName="MenuId" />
  17455. <ScalarProperty Name="MenuPermission" ColumnName="MenuPermission" />
  17456. </MappingFragment>
  17457. </EntityTypeMapping>
  17458. </EntitySetMapping>
  17459. <EntitySetMapping Name="CmUserLoginHistory">
  17460. <EntityTypeMapping TypeName="iBemsModel.CmUserLoginHistory">
  17461. <MappingFragment StoreEntitySet="CmUserLoginHistory">
  17462. <ScalarProperty Name="LoginHistoryId" ColumnName="LoginHistoryId" />
  17463. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17464. <ScalarProperty Name="UserId" ColumnName="UserId" />
  17465. <ScalarProperty Name="Type" ColumnName="Type" />
  17466. <ScalarProperty Name="TraceTime" ColumnName="TraceTime" />
  17467. <ScalarProperty Name="IpAddress" ColumnName="IpAddress" />
  17468. </MappingFragment>
  17469. </EntityTypeMapping>
  17470. </EntitySetMapping>
  17471. <EntitySetMapping Name="CmUserToLicense">
  17472. <EntityTypeMapping TypeName="iBemsModel.CmUserToLicense">
  17473. <MappingFragment StoreEntitySet="CmUserToLicense">
  17474. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17475. <ScalarProperty Name="UserId" ColumnName="UserId" />
  17476. <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />
  17477. </MappingFragment>
  17478. </EntityTypeMapping>
  17479. </EntitySetMapping>
  17480. <EntitySetMapping Name="CmZone">
  17481. <EntityTypeMapping TypeName="iBemsModel.CmZone">
  17482. <MappingFragment StoreEntitySet="CmZone">
  17483. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17484. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17485. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  17486. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  17487. <ScalarProperty Name="Name" ColumnName="Name" />
  17488. <ScalarProperty Name="Target_temperature" ColumnName="Target_temperature" />
  17489. <ScalarProperty Name="Target_humidity" ColumnName="Target_humidity" />
  17490. </MappingFragment>
  17491. </EntityTypeMapping>
  17492. </EntitySetMapping>
  17493. <EntitySetMapping Name="CmZoneTempHumiSet">
  17494. <EntityTypeMapping TypeName="iBemsModel.CmZoneTempHumiSet">
  17495. <MappingFragment StoreEntitySet="CmZoneTempHumiSet">
  17496. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17497. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17498. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  17499. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  17500. <ScalarProperty Name="T1" ColumnName="T1" />
  17501. <ScalarProperty Name="T2" ColumnName="T2" />
  17502. <ScalarProperty Name="T3" ColumnName="T3" />
  17503. <ScalarProperty Name="T4" ColumnName="T4" />
  17504. <ScalarProperty Name="T5" ColumnName="T5" />
  17505. <ScalarProperty Name="T6" ColumnName="T6" />
  17506. <ScalarProperty Name="T7" ColumnName="T7" />
  17507. <ScalarProperty Name="T8" ColumnName="T8" />
  17508. <ScalarProperty Name="T9" ColumnName="T9" />
  17509. <ScalarProperty Name="T10" ColumnName="T10" />
  17510. <ScalarProperty Name="T11" ColumnName="T11" />
  17511. <ScalarProperty Name="T12" ColumnName="T12" />
  17512. <ScalarProperty Name="H1" ColumnName="H1" />
  17513. <ScalarProperty Name="H2" ColumnName="H2" />
  17514. <ScalarProperty Name="H3" ColumnName="H3" />
  17515. <ScalarProperty Name="H4" ColumnName="H4" />
  17516. <ScalarProperty Name="H5" ColumnName="H5" />
  17517. <ScalarProperty Name="H6" ColumnName="H6" />
  17518. <ScalarProperty Name="H7" ColumnName="H7" />
  17519. <ScalarProperty Name="H8" ColumnName="H8" />
  17520. <ScalarProperty Name="H9" ColumnName="H9" />
  17521. <ScalarProperty Name="H10" ColumnName="H10" />
  17522. <ScalarProperty Name="H11" ColumnName="H11" />
  17523. <ScalarProperty Name="H12" ColumnName="H12" />
  17524. </MappingFragment>
  17525. </EntityTypeMapping>
  17526. </EntitySetMapping>
  17527. <EntitySetMapping Name="FmsAccident">
  17528. <EntityTypeMapping TypeName="iBemsModel.FmsAccident">
  17529. <MappingFragment StoreEntitySet="FmsAccident">
  17530. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17531. <ScalarProperty Name="AccidentId" ColumnName="AccidentId" />
  17532. <ScalarProperty Name="Name" ColumnName="Name" />
  17533. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  17534. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  17535. <ScalarProperty Name="AccidentTypeId" ColumnName="AccidentTypeId" />
  17536. <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
  17537. <ScalarProperty Name="AccidentLocation" ColumnName="AccidentLocation" />
  17538. <ScalarProperty Name="Reason" ColumnName="Reason" />
  17539. <ScalarProperty Name="Action" ColumnName="Action" />
  17540. <ScalarProperty Name="Damage" ColumnName="Damage" />
  17541. <ScalarProperty Name="Measurement" ColumnName="Measurement" />
  17542. <ScalarProperty Name="FileId1" ColumnName="FileId1" />
  17543. <ScalarProperty Name="FileId2" ColumnName="FileId2" />
  17544. <ScalarProperty Name="FileId3" ColumnName="FileId3" />
  17545. <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
  17546. </MappingFragment>
  17547. </EntityTypeMapping>
  17548. </EntitySetMapping>
  17549. <EntitySetMapping Name="FmsAccidentCodeType">
  17550. <EntityTypeMapping TypeName="iBemsModel.FmsAccidentCodeType">
  17551. <MappingFragment StoreEntitySet="FmsAccidentCodeType">
  17552. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17553. <ScalarProperty Name="AccidentTypeId" ColumnName="AccidentTypeId" />
  17554. <ScalarProperty Name="Name" ColumnName="Name" />
  17555. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17556. </MappingFragment>
  17557. </EntityTypeMapping>
  17558. </EntitySetMapping>
  17559. <EntitySetMapping Name="FmsBudget">
  17560. <EntityTypeMapping TypeName="iBemsModel.FmsBudget">
  17561. <MappingFragment StoreEntitySet="FmsBudget">
  17562. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17563. <ScalarProperty Name="Year" ColumnName="Year" />
  17564. </MappingFragment>
  17565. </EntityTypeMapping>
  17566. </EntitySetMapping>
  17567. <EntitySetMapping Name="FmsBudgetCodeClass">
  17568. <EntityTypeMapping TypeName="iBemsModel.FmsBudgetCodeClass">
  17569. <MappingFragment StoreEntitySet="FmsBudgetCodeClass">
  17570. <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
  17571. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17572. <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
  17573. <ScalarProperty Name="BudgetSeq" ColumnName="BudgetSeq" />
  17574. <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
  17575. <ScalarProperty Name="Depth" ColumnName="Depth" />
  17576. <ScalarProperty Name="Name" ColumnName="Name" />
  17577. <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
  17578. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17579. <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
  17580. <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
  17581. </MappingFragment>
  17582. </EntityTypeMapping>
  17583. </EntitySetMapping>
  17584. <EntitySetMapping Name="FmsCompanyEstimationCodeClass">
  17585. <EntityTypeMapping TypeName="iBemsModel.FmsCompanyEstimationCodeClass">
  17586. <MappingFragment StoreEntitySet="FmsCompanyEstimationCodeClass">
  17587. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17588. <ScalarProperty Name="CompanyEstimationClassId" ColumnName="CompanyEstimationClassId" />
  17589. <ScalarProperty Name="Name" ColumnName="Name" />
  17590. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17591. </MappingFragment>
  17592. </EntityTypeMapping>
  17593. </EntitySetMapping>
  17594. <EntitySetMapping Name="FmsConstruction">
  17595. <EntityTypeMapping TypeName="iBemsModel.FmsConstruction">
  17596. <MappingFragment StoreEntitySet="FmsConstruction">
  17597. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17598. <ScalarProperty Name="ConstructionId" ColumnName="ConstructionId" />
  17599. <ScalarProperty Name="Name" ColumnName="Name" />
  17600. <ScalarProperty Name="ConstructionTypeId" ColumnName="ConstructionTypeId" />
  17601. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  17602. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  17603. <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
  17604. <ScalarProperty Name="ConstructLocation" ColumnName="ConstructLocation" />
  17605. <ScalarProperty Name="OwnerShipName" ColumnName="OwnerShipName" />
  17606. <ScalarProperty Name="CommitmentMan" ColumnName="CommitmentMan" />
  17607. <ScalarProperty Name="OwnerShipPhoneNo" ColumnName="OwnerShipPhoneNo" />
  17608. <ScalarProperty Name="WeldWorkStartTime" ColumnName="WeldWorkStartTime" />
  17609. <ScalarProperty Name="WeldWorkEndTime" ColumnName="WeldWorkEndTime" />
  17610. <ScalarProperty Name="GasWorkStartTime" ColumnName="GasWorkStartTime" />
  17611. <ScalarProperty Name="GasWorkEndTime" ColumnName="GasWorkEndTime" />
  17612. <ScalarProperty Name="PaintWorkStartTime" ColumnName="PaintWorkStartTime" />
  17613. <ScalarProperty Name="PaintWorkEndTime" ColumnName="PaintWorkEndTime" />
  17614. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17615. <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
  17616. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  17617. <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
  17618. <ScalarProperty Name="ConstructionDetail" ColumnName="ConstructionDetail" />
  17619. <ScalarProperty Name="InOutStockName" ColumnName="InOutStockName" />
  17620. <ScalarProperty Name="FileId1" ColumnName="FileId1" />
  17621. <ScalarProperty Name="FileId2" ColumnName="FileId2" />
  17622. <ScalarProperty Name="FileId3" ColumnName="FileId3" />
  17623. </MappingFragment>
  17624. </EntityTypeMapping>
  17625. </EntitySetMapping>
  17626. <EntitySetMapping Name="FmsConstructionCodeProgress">
  17627. <EntityTypeMapping TypeName="iBemsModel.FmsConstructionCodeProgress">
  17628. <MappingFragment StoreEntitySet="FmsConstructionCodeProgress">
  17629. <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
  17630. <ScalarProperty Name="Name" ColumnName="Name" />
  17631. <ScalarProperty Name="Description" ColumnName="Description" />
  17632. </MappingFragment>
  17633. </EntityTypeMapping>
  17634. </EntitySetMapping>
  17635. <EntitySetMapping Name="FmsConstructionCodeType">
  17636. <EntityTypeMapping TypeName="iBemsModel.FmsConstructionCodeType">
  17637. <MappingFragment StoreEntitySet="FmsConstructionCodeType">
  17638. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17639. <ScalarProperty Name="ConstructionTypeId" ColumnName="ConstructionTypeId" />
  17640. <ScalarProperty Name="Name" ColumnName="Name" />
  17641. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17642. </MappingFragment>
  17643. </EntityTypeMapping>
  17644. </EntitySetMapping>
  17645. <EntitySetMapping Name="FmsConstructionEstimation">
  17646. <EntityTypeMapping TypeName="iBemsModel.FmsConstructionEstimation">
  17647. <MappingFragment StoreEntitySet="FmsConstructionEstimation">
  17648. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17649. <ScalarProperty Name="ConstructionId" ColumnName="ConstructionId" />
  17650. <ScalarProperty Name="EstimateDate" ColumnName="EstimateDate" />
  17651. <ScalarProperty Name="EstimateUserId" ColumnName="EstimateUserId" />
  17652. <ScalarProperty Name="Safety01_CleanUp" ColumnName="Safety01_CleanUp" />
  17653. <ScalarProperty Name="Safety02_PersonalProtection" ColumnName="Safety02_PersonalProtection" />
  17654. <ScalarProperty Name="Safety03_FireExtinguisher" ColumnName="Safety03_FireExtinguisher" />
  17655. <ScalarProperty Name="Safety04_HighPlaceWork" ColumnName="Safety04_HighPlaceWork" />
  17656. <ScalarProperty Name="Safety05_Weld" ColumnName="Safety05_Weld" />
  17657. <ScalarProperty Name="Safety06_SurroundingCleanUp" ColumnName="Safety06_SurroundingCleanUp" />
  17658. <ScalarProperty Name="Safety07_SurroundingHealthy" ColumnName="Safety07_SurroundingHealthy" />
  17659. <ScalarProperty Name="Safety08_Noise" ColumnName="Safety08_Noise" />
  17660. <ScalarProperty Name="Safety09_FacilityProtection" ColumnName="Safety09_FacilityProtection" />
  17661. <ScalarProperty Name="Safety10_Waste" ColumnName="Safety10_Waste" />
  17662. <ScalarProperty Name="Safety11_Execution" ColumnName="Safety11_Execution" />
  17663. <ScalarProperty Name="Safety12_Announcement" ColumnName="Safety12_Announcement" />
  17664. <ScalarProperty Name="Ability01_Compliance" ColumnName="Ability01_Compliance" />
  17665. <ScalarProperty Name="Ability02_Fault" ColumnName="Ability02_Fault" />
  17666. <ScalarProperty Name="Ability03_SkillLevel" ColumnName="Ability03_SkillLevel" />
  17667. <ScalarProperty Name="Ability04_ProcessManagement" ColumnName="Ability04_ProcessManagement" />
  17668. <ScalarProperty Name="Ability05_Collaboration" ColumnName="Ability05_Collaboration" />
  17669. <ScalarProperty Name="Service01_Compliance" ColumnName="Service01_Compliance" />
  17670. <ScalarProperty Name="Service02_SkillLevel" ColumnName="Service02_SkillLevel" />
  17671. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17672. <ScalarProperty Name="TotalEstimateScore" ColumnName="TotalEstimateScore" />
  17673. <ScalarProperty Name="SafetyScore" ColumnName="SafetyScore" />
  17674. <ScalarProperty Name="AbilityScore" ColumnName="AbilityScore" />
  17675. <ScalarProperty Name="ServiceScore" ColumnName="ServiceScore" />
  17676. </MappingFragment>
  17677. </EntityTypeMapping>
  17678. </EntitySetMapping>
  17679. <EntitySetMapping Name="FmsContractClass">
  17680. <EntityTypeMapping TypeName="iBemsModel.FmsContractClass">
  17681. <MappingFragment StoreEntitySet="FmsContractClass">
  17682. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17683. <ScalarProperty Name="ContractClassId" ColumnName="ContractClassId" />
  17684. <ScalarProperty Name="Name" ColumnName="Name" />
  17685. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17686. </MappingFragment>
  17687. </EntityTypeMapping>
  17688. </EntitySetMapping>
  17689. <EntitySetMapping Name="FmsContractMethod">
  17690. <EntityTypeMapping TypeName="iBemsModel.FmsContractMethod">
  17691. <MappingFragment StoreEntitySet="FmsContractMethod">
  17692. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17693. <ScalarProperty Name="ContractMethodId" ColumnName="ContractMethodId" />
  17694. <ScalarProperty Name="Name" ColumnName="Name" />
  17695. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17696. </MappingFragment>
  17697. </EntityTypeMapping>
  17698. </EntitySetMapping>
  17699. <EntitySetMapping Name="FmsContractType">
  17700. <EntityTypeMapping TypeName="iBemsModel.FmsContractType">
  17701. <MappingFragment StoreEntitySet="FmsContractType">
  17702. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17703. <ScalarProperty Name="ContractTypeId" ColumnName="ContractTypeId" />
  17704. <ScalarProperty Name="Name" ColumnName="Name" />
  17705. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17706. </MappingFragment>
  17707. </EntityTypeMapping>
  17708. </EntitySetMapping>
  17709. <EntitySetMapping Name="FmsDrawing">
  17710. <EntityTypeMapping TypeName="iBemsModel.FmsDrawing">
  17711. <MappingFragment StoreEntitySet="FmsDrawing">
  17712. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17713. <ScalarProperty Name="DrawingId" ColumnName="DrawingId" />
  17714. <ScalarProperty Name="DrawingNo" ColumnName="DrawingNo" />
  17715. <ScalarProperty Name="DrawingGroupId" ColumnName="DrawingGroupId" />
  17716. <ScalarProperty Name="DrawingTypeId" ColumnName="DrawingTypeId" />
  17717. <ScalarProperty Name="Name" ColumnName="Name" />
  17718. <ScalarProperty Name="Description" ColumnName="Description" />
  17719. </MappingFragment>
  17720. </EntityTypeMapping>
  17721. </EntitySetMapping>
  17722. <EntitySetMapping Name="FmsDrawingCodeGroup">
  17723. <EntityTypeMapping TypeName="iBemsModel.FmsDrawingCodeGroup">
  17724. <MappingFragment StoreEntitySet="FmsDrawingCodeGroup">
  17725. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17726. <ScalarProperty Name="DrawingGroupId" ColumnName="DrawingGroupId" />
  17727. <ScalarProperty Name="Name" ColumnName="Name" />
  17728. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17729. </MappingFragment>
  17730. </EntityTypeMapping>
  17731. </EntitySetMapping>
  17732. <EntitySetMapping Name="FmsDrawingCodeType">
  17733. <EntityTypeMapping TypeName="iBemsModel.FmsDrawingCodeType">
  17734. <MappingFragment StoreEntitySet="FmsDrawingCodeType">
  17735. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17736. <ScalarProperty Name="DrawingTypeId" ColumnName="DrawingTypeId" />
  17737. <ScalarProperty Name="Name" ColumnName="Name" />
  17738. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17739. </MappingFragment>
  17740. </EntityTypeMapping>
  17741. </EntitySetMapping>
  17742. <EntitySetMapping Name="FmsDrawingHistory">
  17743. <EntityTypeMapping TypeName="iBemsModel.FmsDrawingHistory">
  17744. <MappingFragment StoreEntitySet="FmsDrawingHistory">
  17745. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17746. <ScalarProperty Name="DrawingId" ColumnName="DrawingId" />
  17747. <ScalarProperty Name="HistoryId" ColumnName="HistoryId" />
  17748. <ScalarProperty Name="RevisionNo" ColumnName="RevisionNo" />
  17749. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17750. <ScalarProperty Name="Description" ColumnName="Description" />
  17751. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  17752. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  17753. </MappingFragment>
  17754. </EntityTypeMapping>
  17755. </EntitySetMapping>
  17756. <EntitySetMapping Name="FmsEquipmentCodeStateType">
  17757. <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentCodeStateType">
  17758. <MappingFragment StoreEntitySet="FmsEquipmentCodeStateType">
  17759. <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
  17760. <ScalarProperty Name="Name" ColumnName="Name" />
  17761. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17762. </MappingFragment>
  17763. </EntityTypeMapping>
  17764. </EntitySetMapping>
  17765. <EntitySetMapping Name="FmsEquipmentCodeType">
  17766. <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentCodeType">
  17767. <MappingFragment StoreEntitySet="FmsEquipmentCodeType">
  17768. <ScalarProperty Name="Description" ColumnName="Description" />
  17769. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17770. <ScalarProperty Name="EquipmentTypeId" ColumnName="EquipmentTypeId" />
  17771. <ScalarProperty Name="Name" ColumnName="Name" />
  17772. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17773. </MappingFragment>
  17774. </EntityTypeMapping>
  17775. </EntitySetMapping>
  17776. <EntitySetMapping Name="FmsEquipmentHistory">
  17777. <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentHistory">
  17778. <MappingFragment StoreEntitySet="FmsEquipmentHistory">
  17779. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17780. <ScalarProperty Name="EquipmentHistoryId" ColumnName="EquipmentHistoryId" />
  17781. <ScalarProperty Name="EquipmentId" ColumnName="EquipmentId" />
  17782. <ScalarProperty Name="TotalStockCount" ColumnName="TotalStockCount" />
  17783. <ScalarProperty Name="CurrentStockCount" ColumnName="CurrentStockCount" />
  17784. <ScalarProperty Name="RentCount" ColumnName="RentCount" />
  17785. <ScalarProperty Name="CurrentRentCount" ColumnName="CurrentRentCount" />
  17786. <ScalarProperty Name="ReturnCount" ColumnName="ReturnCount" />
  17787. <ScalarProperty Name="LossCount" ColumnName="LossCount" />
  17788. <ScalarProperty Name="StoredCount" ColumnName="StoredCount" />
  17789. <ScalarProperty Name="EquipmentRentId" ColumnName="EquipmentRentId" />
  17790. <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
  17791. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  17792. <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
  17793. <ScalarProperty Name="IsReturned" ColumnName="IsReturned" />
  17794. </MappingFragment>
  17795. </EntityTypeMapping>
  17796. </EntitySetMapping>
  17797. <EntitySetMapping Name="FmsFacilityCheckItem">
  17798. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityCheckItem">
  17799. <MappingFragment StoreEntitySet="FmsFacilityCheckItem">
  17800. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17801. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17802. <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
  17803. <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
  17804. <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
  17805. <ScalarProperty Name="Name" ColumnName="Name" />
  17806. <ScalarProperty Name="IsYesNoResult" ColumnName="IsYesNoResult" />
  17807. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17808. </MappingFragment>
  17809. </EntityTypeMapping>
  17810. </EntitySetMapping>
  17811. <EntitySetMapping Name="FmsFacilityCodeClass">
  17812. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityCodeClass">
  17813. <MappingFragment StoreEntitySet="FmsFacilityCodeClass">
  17814. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17815. <ScalarProperty Name="FacilityClassId" ColumnName="FacilityClassId" />
  17816. <ScalarProperty Name="ParentFacilityClassId" ColumnName="ParentFacilityClassId" />
  17817. <ScalarProperty Name="Depth" ColumnName="Depth" />
  17818. <ScalarProperty Name="Name" ColumnName="Name" />
  17819. <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
  17820. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17821. </MappingFragment>
  17822. </EntityTypeMapping>
  17823. </EntitySetMapping>
  17824. <EntitySetMapping Name="FmsFacilityManual">
  17825. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityManual">
  17826. <MappingFragment StoreEntitySet="FmsFacilityManual">
  17827. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17828. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17829. <ScalarProperty Name="ManualId" ColumnName="ManualId" />
  17830. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17831. <ScalarProperty Name="Name" ColumnName="Name" />
  17832. <ScalarProperty Name="Description" ColumnName="Description" />
  17833. <ScalarProperty Name="Keyword" ColumnName="Keyword" />
  17834. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17835. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17836. </MappingFragment>
  17837. </EntityTypeMapping>
  17838. </EntitySetMapping>
  17839. <EntitySetMapping Name="FmsFacilityOperationItem">
  17840. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityOperationItem">
  17841. <MappingFragment StoreEntitySet="FmsFacilityOperationItem">
  17842. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17843. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17844. <ScalarProperty Name="ItemId" ColumnName="ItemId" />
  17845. <ScalarProperty Name="Name" ColumnName="Name" />
  17846. <ScalarProperty Name="ResultUnit" ColumnName="ResultUnit" />
  17847. <ScalarProperty Name="PointId" ColumnName="PointId" />
  17848. <ScalarProperty Name="SystemId" ColumnName="SystemId" />
  17849. <ScalarProperty Name="EnergyCode" ColumnName="EnergyCode" />
  17850. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17851. <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
  17852. <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
  17853. <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
  17854. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  17855. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  17856. </MappingFragment>
  17857. </EntityTypeMapping>
  17858. </EntitySetMapping>
  17859. <EntitySetMapping Name="FmsLicense">
  17860. <EntityTypeMapping TypeName="iBemsModel.FmsLicense">
  17861. <MappingFragment StoreEntitySet="FmsLicense">
  17862. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17863. <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />
  17864. <ScalarProperty Name="Name" ColumnName="Name" />
  17865. <ScalarProperty Name="IssuingOffice" ColumnName="IssuingOffice" />
  17866. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17867. <ScalarProperty Name="EducationalInstitute" ColumnName="EducationalInstitute" />
  17868. <ScalarProperty Name="Note" ColumnName="Note" />
  17869. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17870. </MappingFragment>
  17871. </EntityTypeMapping>
  17872. </EntitySetMapping>
  17873. <EntitySetMapping Name="FmsManual">
  17874. <EntityTypeMapping TypeName="iBemsModel.FmsManual">
  17875. <MappingFragment StoreEntitySet="FmsManual">
  17876. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17877. <ScalarProperty Name="ManualId" ColumnName="ManualId" />
  17878. <ScalarProperty Name="ManualNo" ColumnName="ManualNo" />
  17879. <ScalarProperty Name="ManualTypeId" ColumnName="ManualTypeId" />
  17880. <ScalarProperty Name="Name" ColumnName="Name" />
  17881. <ScalarProperty Name="Description" ColumnName="Description" />
  17882. </MappingFragment>
  17883. </EntityTypeMapping>
  17884. </EntitySetMapping>
  17885. <EntitySetMapping Name="FmsManualHistory">
  17886. <EntityTypeMapping TypeName="iBemsModel.FmsManualHistory">
  17887. <MappingFragment StoreEntitySet="FmsManualHistory">
  17888. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17889. <ScalarProperty Name="ManualId" ColumnName="ManualId" />
  17890. <ScalarProperty Name="HistoryId" ColumnName="HistoryId" />
  17891. <ScalarProperty Name="RevisionNo" ColumnName="RevisionNo" />
  17892. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17893. <ScalarProperty Name="Description" ColumnName="Description" />
  17894. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  17895. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  17896. </MappingFragment>
  17897. </EntityTypeMapping>
  17898. </EntitySetMapping>
  17899. <EntitySetMapping Name="FmsManualType">
  17900. <EntityTypeMapping TypeName="iBemsModel.FmsManualType">
  17901. <MappingFragment StoreEntitySet="FmsManualType">
  17902. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17903. <ScalarProperty Name="ManualTypeId" ColumnName="ManualTypeId" />
  17904. <ScalarProperty Name="Name" ColumnName="Name" />
  17905. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17906. </MappingFragment>
  17907. </EntityTypeMapping>
  17908. </EntitySetMapping>
  17909. <EntitySetMapping Name="FmsMaterialCarriedForward">
  17910. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCarriedForward">
  17911. <MappingFragment StoreEntitySet="FmsMaterialCarriedForward">
  17912. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17913. <ScalarProperty Name="ClosedDate" ColumnName="ClosedDate" />
  17914. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17915. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  17916. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  17917. <ScalarProperty Name="StockCount" ColumnName="StockCount" />
  17918. <ScalarProperty Name="StockTotalCost" ColumnName="StockTotalCost" />
  17919. </MappingFragment>
  17920. </EntityTypeMapping>
  17921. </EntitySetMapping>
  17922. <EntitySetMapping Name="FmsMaterialCodeAdjustmentType">
  17923. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeAdjustmentType">
  17924. <MappingFragment StoreEntitySet="FmsMaterialCodeAdjustmentType">
  17925. <ScalarProperty Name="AdjustmentTypeId" ColumnName="AdjustmentTypeId" />
  17926. <ScalarProperty Name="Name" ColumnName="Name" />
  17927. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17928. </MappingFragment>
  17929. </EntityTypeMapping>
  17930. </EntitySetMapping>
  17931. <EntitySetMapping Name="FmsMaterialCodeClass">
  17932. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeClass">
  17933. <MappingFragment StoreEntitySet="FmsMaterialCodeClass">
  17934. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17935. <ScalarProperty Name="MaterialClassId" ColumnName="MaterialClassId" />
  17936. <ScalarProperty Name="ParentMaterialClassId" ColumnName="ParentMaterialClassId" />
  17937. <ScalarProperty Name="Depth" ColumnName="Depth" />
  17938. <ScalarProperty Name="Name" ColumnName="Name" />
  17939. <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
  17940. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17941. </MappingFragment>
  17942. </EntityTypeMapping>
  17943. </EntitySetMapping>
  17944. <EntitySetMapping Name="FmsMaterialCodeLocation">
  17945. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeLocation">
  17946. <MappingFragment StoreEntitySet="FmsMaterialCodeLocation">
  17947. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17948. <ScalarProperty Name="LocationId" ColumnName="LocationId" />
  17949. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17950. <ScalarProperty Name="Name" ColumnName="Name" />
  17951. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17952. </MappingFragment>
  17953. </EntityTypeMapping>
  17954. </EntitySetMapping>
  17955. <EntitySetMapping Name="FmsMaterialCodeProgress">
  17956. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeProgress">
  17957. <MappingFragment StoreEntitySet="FmsMaterialCodeProgress">
  17958. <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
  17959. <ScalarProperty Name="Name" ColumnName="Name" />
  17960. <ScalarProperty Name="Description" ColumnName="Description" />
  17961. </MappingFragment>
  17962. </EntityTypeMapping>
  17963. </EntitySetMapping>
  17964. <EntitySetMapping Name="FmsMaterialCodePurchaseType">
  17965. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodePurchaseType">
  17966. <MappingFragment StoreEntitySet="FmsMaterialCodePurchaseType">
  17967. <ScalarProperty Name="PurchaseTypeId" ColumnName="PurchaseTypeId" />
  17968. <ScalarProperty Name="Name" ColumnName="Name" />
  17969. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17970. </MappingFragment>
  17971. </EntityTypeMapping>
  17972. </EntitySetMapping>
  17973. <EntitySetMapping Name="FmsMaterialCodeReleaseType">
  17974. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeReleaseType">
  17975. <MappingFragment StoreEntitySet="FmsMaterialCodeReleaseType">
  17976. <ScalarProperty Name="ReleaseTypeId" ColumnName="ReleaseTypeId" />
  17977. <ScalarProperty Name="Name" ColumnName="Name" />
  17978. <ScalarProperty Name="Description" ColumnName="Description" />
  17979. </MappingFragment>
  17980. </EntityTypeMapping>
  17981. </EntitySetMapping>
  17982. <EntitySetMapping Name="FmsMaterialCodeType">
  17983. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeType">
  17984. <MappingFragment StoreEntitySet="FmsMaterialCodeType">
  17985. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17986. <ScalarProperty Name="MaterialTypeId" ColumnName="MaterialTypeId" />
  17987. <ScalarProperty Name="Name" ColumnName="Name" />
  17988. <ScalarProperty Name="Nickname" ColumnName="Nickname" />
  17989. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17990. </MappingFragment>
  17991. </EntityTypeMapping>
  17992. </EntitySetMapping>
  17993. <EntitySetMapping Name="FmsMaterialPurchaseOrder">
  17994. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseOrder">
  17995. <MappingFragment StoreEntitySet="FmsMaterialPurchaseOrder">
  17996. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17997. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17998. <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
  17999. <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
  18000. <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
  18001. <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
  18002. <ScalarProperty Name="OrderUserId" ColumnName="OrderUserId" />
  18003. <ScalarProperty Name="Title" ColumnName="Title" />
  18004. <ScalarProperty Name="Reason" ColumnName="Reason" />
  18005. <ScalarProperty Name="StoredDueDate" ColumnName="StoredDueDate" />
  18006. <ScalarProperty Name="FileId" ColumnName="FileId" />
  18007. </MappingFragment>
  18008. </EntityTypeMapping>
  18009. </EntitySetMapping>
  18010. <EntitySetMapping Name="FmsMaterialPurchaseOrderMaterial">
  18011. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseOrderMaterial">
  18012. <MappingFragment StoreEntitySet="FmsMaterialPurchaseOrderMaterial">
  18013. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18014. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18015. <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
  18016. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18017. <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
  18018. <ScalarProperty Name="UnitCost" ColumnName="UnitCost" />
  18019. </MappingFragment>
  18020. </EntityTypeMapping>
  18021. </EntitySetMapping>
  18022. <EntitySetMapping Name="FmsMaterialPurchaseRequest">
  18023. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseRequest">
  18024. <MappingFragment StoreEntitySet="FmsMaterialPurchaseRequest">
  18025. <ScalarProperty Name="bSameOrder" ColumnName="bSameOrder" />
  18026. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18027. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18028. <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
  18029. <ScalarProperty Name="PurchaseTypeId" ColumnName="PurchaseTypeId" />
  18030. <ScalarProperty Name="RequestDate" ColumnName="RequestDate" />
  18031. <ScalarProperty Name="RequestUserId" ColumnName="RequestUserId" />
  18032. <ScalarProperty Name="PurchaseHopeDate" ColumnName="PurchaseHopeDate" />
  18033. <ScalarProperty Name="Title" ColumnName="Title" />
  18034. <ScalarProperty Name="Reason" ColumnName="Reason" />
  18035. <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
  18036. <ScalarProperty Name="ApprovalDate" ColumnName="ApprovalDate" />
  18037. <ScalarProperty Name="ApprovalUserId" ColumnName="ApprovalUserId" />
  18038. </MappingFragment>
  18039. </EntityTypeMapping>
  18040. </EntitySetMapping>
  18041. <EntitySetMapping Name="FmsMaterialPurchaseRequestMaterial">
  18042. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseRequestMaterial">
  18043. <MappingFragment StoreEntitySet="FmsMaterialPurchaseRequestMaterial">
  18044. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18045. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18046. <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
  18047. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18048. <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
  18049. </MappingFragment>
  18050. </EntityTypeMapping>
  18051. </EntitySetMapping>
  18052. <EntitySetMapping Name="FmsMaterialStored">
  18053. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialStored">
  18054. <MappingFragment StoreEntitySet="FmsMaterialStored">
  18055. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18056. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18057. <ScalarProperty Name="StoredDate" ColumnName="StoredDate" />
  18058. <ScalarProperty Name="MaterialStoredId" ColumnName="MaterialStoredId" />
  18059. <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
  18060. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  18061. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18062. <ScalarProperty Name="StoredCount" ColumnName="StoredCount" />
  18063. <ScalarProperty Name="RemainStoredCount" ColumnName="RemainStoredCount" />
  18064. <ScalarProperty Name="UnitCost" ColumnName="UnitCost" />
  18065. <ScalarProperty Name="StockCount" ColumnName="StockCount" />
  18066. <ScalarProperty Name="Note" ColumnName="Note" />
  18067. <ScalarProperty Name="StoredUserId" ColumnName="StoredUserId" />
  18068. <ScalarProperty Name="ApprovalDate" ColumnName="ApprovalDate" />
  18069. <ScalarProperty Name="ApprovalUserId" ColumnName="ApprovalUserId" />
  18070. <ScalarProperty Name="IsApproval" ColumnName="IsApproval" />
  18071. <ScalarProperty Name="LocationInWarehouse" ColumnName="LocationInWarehouse" />
  18072. </MappingFragment>
  18073. </EntityTypeMapping>
  18074. </EntitySetMapping>
  18075. <EntitySetMapping Name="FmsMaterialTradeCompany">
  18076. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialTradeCompany">
  18077. <MappingFragment StoreEntitySet="FmsMaterialTradeCompany">
  18078. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18079. <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
  18080. <ScalarProperty Name="Name" ColumnName="Name" />
  18081. <ScalarProperty Name="RegistrationNo" ColumnName="RegistrationNo" />
  18082. <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
  18083. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  18084. <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
  18085. <ScalarProperty Name="SalesName" ColumnName="SalesName" />
  18086. <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
  18087. <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
  18088. <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
  18089. <ScalarProperty Name="Address1" ColumnName="Address1" />
  18090. <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
  18091. <ScalarProperty Name="HomepageUri" ColumnName="HomepageUri" />
  18092. <ScalarProperty Name="Note" ColumnName="Note" />
  18093. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18094. </MappingFragment>
  18095. </EntityTypeMapping>
  18096. </EntitySetMapping>
  18097. <EntitySetMapping Name="FmsMaterialWarehouse">
  18098. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialWarehouse">
  18099. <MappingFragment StoreEntitySet="FmsMaterialWarehouse">
  18100. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18101. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18102. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  18103. <ScalarProperty Name="Name" ColumnName="Name" />
  18104. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18105. </MappingFragment>
  18106. </EntityTypeMapping>
  18107. </EntitySetMapping>
  18108. <EntitySetMapping Name="FmsPaymentType">
  18109. <EntityTypeMapping TypeName="iBemsModel.FmsPaymentType">
  18110. <MappingFragment StoreEntitySet="FmsPaymentType">
  18111. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18112. <ScalarProperty Name="PaymentTypeId" ColumnName="PaymentTypeId" />
  18113. <ScalarProperty Name="Name" ColumnName="Name" />
  18114. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18115. </MappingFragment>
  18116. </EntityTypeMapping>
  18117. </EntitySetMapping>
  18118. <EntitySetMapping Name="FmsWorkCodeCauseClass">
  18119. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeCauseClass">
  18120. <MappingFragment StoreEntitySet="FmsWorkCodeCauseClass">
  18121. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18122. <ScalarProperty Name="CauseClassId" ColumnName="CauseClassId" />
  18123. <ScalarProperty Name="ParentId" ColumnName="ParentId" />
  18124. <ScalarProperty Name="Name" ColumnName="Name" />
  18125. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18126. </MappingFragment>
  18127. </EntityTypeMapping>
  18128. </EntitySetMapping>
  18129. <EntitySetMapping Name="FmsWorkCodeCycleUnit">
  18130. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeCycleUnit">
  18131. <MappingFragment StoreEntitySet="FmsWorkCodeCycleUnit">
  18132. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18133. <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
  18134. <ScalarProperty Name="Name" ColumnName="Name" />
  18135. <ScalarProperty Name="Description" ColumnName="Description" />
  18136. </MappingFragment>
  18137. </EntityTypeMapping>
  18138. </EntitySetMapping>
  18139. <EntitySetMapping Name="FmsWorkCodeEmergency">
  18140. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeEmergency">
  18141. <MappingFragment StoreEntitySet="FmsWorkCodeEmergency">
  18142. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18143. <ScalarProperty Name="EmergencyId" ColumnName="EmergencyId" />
  18144. <ScalarProperty Name="Name" ColumnName="Name" />
  18145. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18146. </MappingFragment>
  18147. </EntityTypeMapping>
  18148. </EntitySetMapping>
  18149. <EntitySetMapping Name="FmsWorkCodeHolidayWorkType">
  18150. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeHolidayWorkType">
  18151. <MappingFragment StoreEntitySet="FmsWorkCodeHolidayWorkType">
  18152. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18153. <ScalarProperty Name="HolidayWorkTypeId" ColumnName="HolidayWorkTypeId" />
  18154. <ScalarProperty Name="Name" ColumnName="Name" />
  18155. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18156. </MappingFragment>
  18157. </EntityTypeMapping>
  18158. </EntitySetMapping>
  18159. <EntitySetMapping Name="FmsWorkCodeLegalInspectionAgency">
  18160. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeLegalInspectionAgency">
  18161. <MappingFragment StoreEntitySet="FmsWorkCodeLegalInspectionAgency">
  18162. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18163. <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
  18164. <ScalarProperty Name="Name" ColumnName="Name" />
  18165. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18166. </MappingFragment>
  18167. </EntityTypeMapping>
  18168. </EntitySetMapping>
  18169. <EntitySetMapping Name="FmsWorkCodeProgress">
  18170. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeProgress">
  18171. <MappingFragment StoreEntitySet="FmsWorkCodeProgress">
  18172. <ScalarProperty Name="WorkProgressId" ColumnName="WorkProgressId" />
  18173. <ScalarProperty Name="Name" ColumnName="Name" />
  18174. <ScalarProperty Name="Description" ColumnName="Description" />
  18175. </MappingFragment>
  18176. </EntityTypeMapping>
  18177. </EntitySetMapping>
  18178. <EntitySetMapping Name="FmsWorkCodeType">
  18179. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeType">
  18180. <MappingFragment StoreEntitySet="FmsWorkCodeType">
  18181. <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
  18182. <ScalarProperty Name="Name" ColumnName="Name" />
  18183. <ScalarProperty Name="Description" ColumnName="Description" />
  18184. </MappingFragment>
  18185. </EntityTypeMapping>
  18186. </EntitySetMapping>
  18187. <EntitySetMapping Name="FmsWorkOrder">
  18188. <EntityTypeMapping TypeName="iBemsModel.FmsWorkOrder">
  18189. <MappingFragment StoreEntitySet="FmsWorkOrder">
  18190. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18191. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18192. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18193. <ScalarProperty Name="EmergencyId" ColumnName="EmergencyId" />
  18194. <ScalarProperty Name="OrderUserId" ColumnName="OrderUserId" />
  18195. <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
  18196. <ScalarProperty Name="StartWorkDate" ColumnName="StartWorkDate" />
  18197. <ScalarProperty Name="Title" ColumnName="Title" />
  18198. <ScalarProperty Name="Content" ColumnName="Content" />
  18199. </MappingFragment>
  18200. </EntityTypeMapping>
  18201. </EntitySetMapping>
  18202. <EntitySetMapping Name="FmsWorkOrderToFacility">
  18203. <EntityTypeMapping TypeName="iBemsModel.FmsWorkOrderToFacility">
  18204. <MappingFragment StoreEntitySet="FmsWorkOrderToFacility">
  18205. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18206. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18207. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18208. </MappingFragment>
  18209. </EntityTypeMapping>
  18210. </EntitySetMapping>
  18211. <EntitySetMapping Name="FmsWorkRequest">
  18212. <EntityTypeMapping TypeName="iBemsModel.FmsWorkRequest">
  18213. <MappingFragment StoreEntitySet="FmsWorkRequest">
  18214. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18215. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18216. <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
  18217. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18218. <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
  18219. <ScalarProperty Name="WorkProgressId" ColumnName="WorkProgressId" />
  18220. <ScalarProperty Name="Title" ColumnName="Title" />
  18221. <ScalarProperty Name="Content" ColumnName="Content" />
  18222. <ScalarProperty Name="RequestUserId" ColumnName="RequestUserId" />
  18223. <ScalarProperty Name="RequestDate" ColumnName="RequestDate" />
  18224. <ScalarProperty Name="StartWorkDate" ColumnName="StartWorkDate" />
  18225. <ScalarProperty Name="RejectUserId" ColumnName="RejectUserId" />
  18226. <ScalarProperty Name="RejectDate" ColumnName="RejectDate" />
  18227. <ScalarProperty Name="RejectReason" ColumnName="RejectReason" />
  18228. <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
  18229. </MappingFragment>
  18230. </EntityTypeMapping>
  18231. </EntitySetMapping>
  18232. <EntitySetMapping Name="FmsWorkRequestToFacility">
  18233. <EntityTypeMapping TypeName="iBemsModel.FmsWorkRequestToFacility">
  18234. <MappingFragment StoreEntitySet="FmsWorkRequestToFacility">
  18235. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18236. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18237. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18238. </MappingFragment>
  18239. </EntityTypeMapping>
  18240. </EntitySetMapping>
  18241. <EntitySetMapping Name="FmsWorkResult">
  18242. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResult">
  18243. <MappingFragment StoreEntitySet="FmsWorkResult">
  18244. <ScalarProperty Name="ConfirmDesc" ColumnName="ConfirmDesc" />
  18245. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18246. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18247. <ScalarProperty Name="WorkerUserId" ColumnName="WorkerUserId" />
  18248. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  18249. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  18250. <ScalarProperty Name="CauseClassId" ColumnName="CauseClassId" />
  18251. <ScalarProperty Name="Content" ColumnName="Content" />
  18252. <ScalarProperty Name="ConfirmedDate" ColumnName="ConfirmedDate" />
  18253. <ScalarProperty Name="ConfirmedUserId" ColumnName="ConfirmedUserId" />
  18254. <ScalarProperty Name="IsConfirmed" ColumnName="IsConfirmed" />
  18255. </MappingFragment>
  18256. </EntityTypeMapping>
  18257. </EntitySetMapping>
  18258. <EntitySetMapping Name="FmsWorkResultCheckItem">
  18259. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultCheckItem">
  18260. <MappingFragment StoreEntitySet="FmsWorkResultCheckItem">
  18261. <ScalarProperty Name="FileId2" ColumnName="FileId2" />
  18262. <ScalarProperty Name="FileId1" ColumnName="FileId1" />
  18263. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18264. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18265. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18266. <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
  18267. <ScalarProperty Name="BoolResult" ColumnName="BoolResult" />
  18268. <ScalarProperty Name="TextResult" ColumnName="TextResult" />
  18269. <ScalarProperty Name="CheckDate" ColumnName="CheckDate" />
  18270. </MappingFragment>
  18271. </EntityTypeMapping>
  18272. </EntitySetMapping>
  18273. <EntitySetMapping Name="FmsWorkResultCheckItemMaterial">
  18274. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultCheckItemMaterial">
  18275. <MappingFragment StoreEntitySet="FmsWorkResultCheckItemMaterial">
  18276. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18277. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18278. <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
  18279. <ScalarProperty Name="CheckItemMaterialId" ColumnName="CheckItemMaterialId" />
  18280. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18281. <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
  18282. <ScalarProperty Name="MaterialCode" ColumnName="MaterialCode" />
  18283. <ScalarProperty Name="Name" ColumnName="Name" />
  18284. </MappingFragment>
  18285. </EntityTypeMapping>
  18286. </EntitySetMapping>
  18287. <EntitySetMapping Name="FmsWorkResultFile">
  18288. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultFile">
  18289. <MappingFragment StoreEntitySet="FmsWorkResultFile">
  18290. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18291. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18292. <ScalarProperty Name="FileId" ColumnName="FileId" />
  18293. </MappingFragment>
  18294. </EntityTypeMapping>
  18295. </EntitySetMapping>
  18296. <EntitySetMapping Name="FmsWorkResultLaw">
  18297. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultLaw">
  18298. <MappingFragment StoreEntitySet="FmsWorkResultLaw">
  18299. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18300. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18301. <ScalarProperty Name="CertificationNo" ColumnName="CertificationNo" />
  18302. <ScalarProperty Name="CheckCommission" ColumnName="CheckCommission" />
  18303. <ScalarProperty Name="CheckResult" ColumnName="CheckResult" />
  18304. </MappingFragment>
  18305. </EntityTypeMapping>
  18306. </EntitySetMapping>
  18307. <EntitySetMapping Name="FmsWorkResultToFacility">
  18308. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultToFacility">
  18309. <MappingFragment StoreEntitySet="FmsWorkResultToFacility">
  18310. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18311. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18312. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18313. </MappingFragment>
  18314. </EntityTypeMapping>
  18315. </EntitySetMapping>
  18316. <EntitySetMapping Name="FmsWorkScheduleToFacility">
  18317. <EntityTypeMapping TypeName="iBemsModel.FmsWorkScheduleToFacility">
  18318. <MappingFragment StoreEntitySet="FmsWorkScheduleToFacility">
  18319. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18320. <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
  18321. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18322. </MappingFragment>
  18323. </EntityTypeMapping>
  18324. </EntitySetMapping>
  18325. <EntitySetMapping Name="sysdiagrams">
  18326. <EntityTypeMapping TypeName="iBemsModel.sysdiagrams">
  18327. <MappingFragment StoreEntitySet="sysdiagrams">
  18328. <ScalarProperty Name="name" ColumnName="name" />
  18329. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  18330. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  18331. <ScalarProperty Name="version" ColumnName="version" />
  18332. <ScalarProperty Name="definition" ColumnName="definition" />
  18333. </MappingFragment>
  18334. </EntityTypeMapping>
  18335. </EntitySetMapping>
  18336. <EntitySetMapping Name="FmsDailyCheckReport">
  18337. <EntityTypeMapping TypeName="iBemsModel.FmsDailyCheckReport">
  18338. <MappingFragment StoreEntitySet="FmsDailyCheckReport">
  18339. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  18340. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  18341. <ScalarProperty Name="Contents" ColumnName="Contents" />
  18342. <ScalarProperty Name="Name" ColumnName="Name" />
  18343. <ScalarProperty Name="DailyCheckReportId" ColumnName="DailyCheckReportId" />
  18344. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18345. </MappingFragment>
  18346. </EntityTypeMapping>
  18347. </EntitySetMapping>
  18348. <EntitySetMapping Name="FmsFacilityOperationReport">
  18349. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityOperationReport">
  18350. <MappingFragment StoreEntitySet="FmsFacilityOperationReport">
  18351. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  18352. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  18353. <ScalarProperty Name="Contents" ColumnName="Contents" />
  18354. <ScalarProperty Name="Name" ColumnName="Name" />
  18355. <ScalarProperty Name="FacilityOperationReportId" ColumnName="FacilityOperationReportId" />
  18356. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18357. </MappingFragment>
  18358. </EntityTypeMapping>
  18359. </EntitySetMapping>
  18360. <EntitySetMapping Name="FmsBudgetDetail">
  18361. <EntityTypeMapping TypeName="iBemsModel.FmsBudgetDetail">
  18362. <MappingFragment StoreEntitySet="FmsBudgetDetail">
  18363. <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
  18364. <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
  18365. <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
  18366. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18367. <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
  18368. <ScalarProperty Name="Name" ColumnName="Name" />
  18369. <ScalarProperty Name="Depth" ColumnName="Depth" />
  18370. <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
  18371. <ScalarProperty Name="BudgetSeq" ColumnName="BudgetSeq" />
  18372. <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
  18373. <ScalarProperty Name="Year" ColumnName="Year" />
  18374. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18375. </MappingFragment>
  18376. </EntityTypeMapping>
  18377. </EntitySetMapping>
  18378. <EntitySetMapping Name="FmsBudgetDetailExecution">
  18379. <EntityTypeMapping TypeName="iBemsModel.FmsBudgetDetailExecution">
  18380. <MappingFragment StoreEntitySet="FmsBudgetDetailExecution">
  18381. <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
  18382. <ScalarProperty Name="YearlyExecution" ColumnName="YearlyExecution" />
  18383. <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
  18384. <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
  18385. <ScalarProperty Name="Month" ColumnName="Month" />
  18386. <ScalarProperty Name="MonthlyExecution" ColumnName="MonthlyExecution" />
  18387. <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
  18388. <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
  18389. <ScalarProperty Name="Year" ColumnName="Year" />
  18390. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18391. </MappingFragment>
  18392. </EntityTypeMapping>
  18393. </EntitySetMapping>
  18394. <EntitySetMapping Name="FmsMonthlyReport">
  18395. <EntityTypeMapping TypeName="iBemsModel.FmsMonthlyReport">
  18396. <MappingFragment StoreEntitySet="FmsMonthlyReport">
  18397. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  18398. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  18399. <ScalarProperty Name="Contents" ColumnName="Contents" />
  18400. <ScalarProperty Name="Name" ColumnName="Name" />
  18401. <ScalarProperty Name="MonthlyReportId" ColumnName="MonthlyReportId" />
  18402. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18403. </MappingFragment>
  18404. </EntityTypeMapping>
  18405. </EntitySetMapping>
  18406. <EntitySetMapping Name="FmsInvestmentCost">
  18407. <EntityTypeMapping TypeName="iBemsModel.FmsInvestmentCost">
  18408. <MappingFragment StoreEntitySet="FmsInvestmentCost">
  18409. <ScalarProperty Name="InsvestmentCost" ColumnName="InsvestmentCost" />
  18410. <ScalarProperty Name="Comment" ColumnName="Comment" />
  18411. <ScalarProperty Name="Name" ColumnName="Name" />
  18412. <ScalarProperty Name="InsvestmentCostId" ColumnName="InsvestmentCostId" />
  18413. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18414. </MappingFragment>
  18415. </EntityTypeMapping>
  18416. </EntitySetMapping>
  18417. <EntitySetMapping Name="CmHolidayWeekend">
  18418. <EntityTypeMapping TypeName="iBemsModel.CmHolidayWeekend">
  18419. <MappingFragment StoreEntitySet="CmHolidayWeekend">
  18420. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18421. <ScalarProperty Name="Sunday" ColumnName="Sunday" />
  18422. <ScalarProperty Name="Saturday" ColumnName="Saturday" />
  18423. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18424. </MappingFragment>
  18425. </EntityTypeMapping>
  18426. </EntitySetMapping>
  18427. <EntitySetMapping Name="FmsMaterial">
  18428. <EntityTypeMapping TypeName="iBemsModel.FmsMaterial">
  18429. <MappingFragment StoreEntitySet="FmsMaterial">
  18430. <ScalarProperty Name="FinalTotalStockAmount" ColumnName="FinalTotalStockAmount" />
  18431. <ScalarProperty Name="FinalStockCount" ColumnName="FinalStockCount" />
  18432. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18433. <ScalarProperty Name="IsDiscontinued" ColumnName="IsDiscontinued" />
  18434. <ScalarProperty Name="Note" ColumnName="Note" />
  18435. <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
  18436. <ScalarProperty Name="FinalPrice" ColumnName="FinalPrice" />
  18437. <ScalarProperty Name="Standard" ColumnName="Standard" />
  18438. <ScalarProperty Name="Manufacturer" ColumnName="Manufacturer" />
  18439. <ScalarProperty Name="ReasonableStockCount" ColumnName="ReasonableStockCount" />
  18440. <ScalarProperty Name="DurableYears" ColumnName="DurableYears" />
  18441. <ScalarProperty Name="Unit" ColumnName="Unit" />
  18442. <ScalarProperty Name="Rfid" ColumnName="Rfid" />
  18443. <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
  18444. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  18445. <ScalarProperty Name="MaterialTypeId" ColumnName="MaterialTypeId" />
  18446. <ScalarProperty Name="LocationId" ColumnName="LocationId" />
  18447. <ScalarProperty Name="ThirdClassId" ColumnName="ThirdClassId" />
  18448. <ScalarProperty Name="SecondClassId" ColumnName="SecondClassId" />
  18449. <ScalarProperty Name="FirstClassId" ColumnName="FirstClassId" />
  18450. <ScalarProperty Name="Name" ColumnName="Name" />
  18451. <ScalarProperty Name="MaterialCode" ColumnName="MaterialCode" />
  18452. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18453. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18454. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18455. </MappingFragment>
  18456. </EntityTypeMapping>
  18457. </EntitySetMapping>
  18458. <EntitySetMapping Name="FmsMaterialRelease">
  18459. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialRelease">
  18460. <MappingFragment StoreEntitySet="FmsMaterialRelease">
  18461. <ScalarProperty Name="StockCountByPoint" ColumnName="StockCountByPoint" />
  18462. <ScalarProperty Name="Comment" ColumnName="Comment" />
  18463. <ScalarProperty Name="IsConfirmed" ColumnName="IsConfirmed" />
  18464. <ScalarProperty Name="ConfirmedDate" ColumnName="ConfirmedDate" />
  18465. <ScalarProperty Name="ConfirmedUserId" ColumnName="ConfirmedUserId" />
  18466. <ScalarProperty Name="AdjustmentUserId" ColumnName="AdjustmentUserId" />
  18467. <ScalarProperty Name="AdjustmentTypeId" ColumnName="AdjustmentTypeId" />
  18468. <ScalarProperty Name="ReleaseTotalCost" ColumnName="ReleaseTotalCost" />
  18469. <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
  18470. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18471. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  18472. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18473. <ScalarProperty Name="ReleaseTypeId" ColumnName="ReleaseTypeId" />
  18474. <ScalarProperty Name="MaterialReleaseId" ColumnName="MaterialReleaseId" />
  18475. <ScalarProperty Name="ReleaseDate" ColumnName="ReleaseDate" />
  18476. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18477. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18478. </MappingFragment>
  18479. </EntityTypeMapping>
  18480. </EntitySetMapping>
  18481. <EntitySetMapping Name="CmPatrolType">
  18482. <EntityTypeMapping TypeName="iBemsModel.CmPatrolType">
  18483. <MappingFragment StoreEntitySet="CmPatrolType">
  18484. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18485. <ScalarProperty Name="Name" ColumnName="Name" />
  18486. <ScalarProperty Name="PatrolTypeId" ColumnName="PatrolTypeId" />
  18487. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18488. </MappingFragment>
  18489. </EntityTypeMapping>
  18490. </EntitySetMapping>
  18491. <EntitySetMapping Name="CmPatrolGroup">
  18492. <EntityTypeMapping TypeName="iBemsModel.CmPatrolGroup">
  18493. <MappingFragment StoreEntitySet="CmPatrolGroup">
  18494. <ScalarProperty Name="Name" ColumnName="Name" />
  18495. <ScalarProperty Name="PatrolGroupId" ColumnName="PatrolGroupId" />
  18496. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18497. </MappingFragment>
  18498. </EntityTypeMapping>
  18499. </EntitySetMapping>
  18500. <EntitySetMapping Name="CmPatrolGroupUser">
  18501. <EntityTypeMapping TypeName="iBemsModel.CmPatrolGroupUser">
  18502. <MappingFragment StoreEntitySet="CmPatrolGroupUser">
  18503. <ScalarProperty Name="UserId" ColumnName="UserId" />
  18504. <ScalarProperty Name="PatrolGroupId" ColumnName="PatrolGroupId" />
  18505. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18506. </MappingFragment>
  18507. </EntityTypeMapping>
  18508. </EntitySetMapping>
  18509. <EntitySetMapping Name="CmPatrolPos">
  18510. <EntityTypeMapping TypeName="iBemsModel.CmPatrolPos">
  18511. <MappingFragment StoreEntitySet="CmPatrolPos">
  18512. <ScalarProperty Name="PosDesc" ColumnName="PosDesc" />
  18513. <ScalarProperty Name="TagId" ColumnName="TagId" />
  18514. <ScalarProperty Name="Name" ColumnName="Name" />
  18515. <ScalarProperty Name="PosId" ColumnName="PosId" />
  18516. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  18517. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  18518. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18519. </MappingFragment>
  18520. </EntityTypeMapping>
  18521. </EntitySetMapping>
  18522. <EntitySetMapping Name="CmPatrolCourse">
  18523. <EntityTypeMapping TypeName="iBemsModel.CmPatrolCourse">
  18524. <MappingFragment StoreEntitySet="CmPatrolCourse">
  18525. <ScalarProperty Name="Name" ColumnName="Name" />
  18526. <ScalarProperty Name="PatrolCourseId" ColumnName="PatrolCourseId" />
  18527. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18528. </MappingFragment>
  18529. </EntityTypeMapping>
  18530. </EntitySetMapping>
  18531. <EntitySetMapping Name="CmPatrolCoursePos">
  18532. <EntityTypeMapping TypeName="iBemsModel.CmPatrolCoursePos">
  18533. <MappingFragment StoreEntitySet="CmPatrolCoursePos">
  18534. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  18535. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  18536. <ScalarProperty Name="CourseOrder" ColumnName="CourseOrder" />
  18537. <ScalarProperty Name="PosId" ColumnName="PosId" />
  18538. <ScalarProperty Name="PatrolCourseId" ColumnName="PatrolCourseId" />
  18539. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18540. </MappingFragment>
  18541. </EntityTypeMapping>
  18542. </EntitySetMapping>
  18543. <EntitySetMapping Name="CmPatrolPlan">
  18544. <EntityTypeMapping TypeName="iBemsModel.CmPatrolPlan">
  18545. <MappingFragment StoreEntitySet="CmPatrolPlan">
  18546. <ScalarProperty Name="inDate" ColumnName="inDate" />
  18547. <ScalarProperty Name="term" ColumnName="term" />
  18548. <ScalarProperty Name="PlanDesc" ColumnName="PlanDesc" />
  18549. <ScalarProperty Name="Name" ColumnName="Name" />
  18550. <ScalarProperty Name="CourseId" ColumnName="CourseId" />
  18551. <ScalarProperty Name="GroupId" ColumnName="GroupId" />
  18552. <ScalarProperty Name="PatrolPlanId" ColumnName="PatrolPlanId" />
  18553. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18554. </MappingFragment>
  18555. </EntityTypeMapping>
  18556. </EntitySetMapping>
  18557. <EntitySetMapping Name="CmPatrolHistoryPos">
  18558. <EntityTypeMapping TypeName="iBemsModel.CmPatrolHistoryPos">
  18559. <MappingFragment StoreEntitySet="CmPatrolHistoryPos">
  18560. <ScalarProperty Name="mId" ColumnName="mId" />
  18561. <ScalarProperty Name="resultType" ColumnName="resultType" />
  18562. <ScalarProperty Name="term" ColumnName="term" />
  18563. <ScalarProperty Name="PatrolTime" ColumnName="PatrolTime" />
  18564. <ScalarProperty Name="PosId" ColumnName="PosId" />
  18565. <ScalarProperty Name="PatrolHistoryId" ColumnName="PatrolHistoryId" />
  18566. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18567. </MappingFragment>
  18568. </EntityTypeMapping>
  18569. </EntitySetMapping>
  18570. <EntitySetMapping Name="BemsPeakInfo">
  18571. <EntityTypeMapping TypeName="iBemsModel.BemsPeakInfo">
  18572. <MappingFragment StoreEntitySet="BemsPeakInfo">
  18573. <ScalarProperty Name="todayMinPeakValue" ColumnName="todayMinPeakValue" />
  18574. <ScalarProperty Name="todayMaxPeakValue" ColumnName="todayMaxPeakValue" />
  18575. <ScalarProperty Name="MinPeakValue" ColumnName="MinPeakValue" />
  18576. <ScalarProperty Name="MinDateTime" ColumnName="MinDateTime" />
  18577. <ScalarProperty Name="MaxPeakValue" ColumnName="MaxPeakValue" />
  18578. <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
  18579. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18580. </MappingFragment>
  18581. </EntityTypeMapping>
  18582. </EntitySetMapping>
  18583. <EntitySetMapping Name="BemsPeakHistory">
  18584. <EntityTypeMapping TypeName="iBemsModel.BemsPeakHistory">
  18585. <MappingFragment StoreEntitySet="BemsPeakHistory">
  18586. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  18587. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  18588. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18589. </MappingFragment>
  18590. </EntityTypeMapping>
  18591. </EntitySetMapping>
  18592. <EntitySetMapping Name="CmPatrolSchedule">
  18593. <EntityTypeMapping TypeName="iBemsModel.CmPatrolSchedule">
  18594. <MappingFragment StoreEntitySet="CmPatrolSchedule">
  18595. <ScalarProperty Name="patrolDateTime" ColumnName="patrolDateTime" />
  18596. <ScalarProperty Name="inDate" ColumnName="inDate" />
  18597. <ScalarProperty Name="ScheduleDesc" ColumnName="ScheduleDesc" />
  18598. <ScalarProperty Name="Name" ColumnName="Name" />
  18599. <ScalarProperty Name="PlanId" ColumnName="PlanId" />
  18600. <ScalarProperty Name="ScheduleId" ColumnName="ScheduleId" />
  18601. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18602. </MappingFragment>
  18603. </EntityTypeMapping>
  18604. </EntitySetMapping>
  18605. <EntitySetMapping Name="BemsNoticePriceBase">
  18606. <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceBase">
  18607. <MappingFragment StoreEntitySet="BemsNoticePriceBase">
  18608. <ScalarProperty Name="SecondaryPrice" ColumnName="SecondaryPrice" />
  18609. <ScalarProperty Name="PrimaryPrice" ColumnName="PrimaryPrice" />
  18610. <ScalarProperty Name="ContractType" ColumnName="ContractType" />
  18611. <ScalarProperty Name="ApplyDate" ColumnName="ApplyDate" />
  18612. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18613. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18614. </MappingFragment>
  18615. </EntityTypeMapping>
  18616. </EntitySetMapping>
  18617. <EntitySetMapping Name="BemsNoticePriceContractType">
  18618. <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceContractType">
  18619. <MappingFragment StoreEntitySet="BemsNoticePriceContractType">
  18620. <ScalarProperty Name="Name" ColumnName="Name" />
  18621. <ScalarProperty Name="ContractType" ColumnName="ContractType" />
  18622. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18623. </MappingFragment>
  18624. </EntityTypeMapping>
  18625. </EntitySetMapping>
  18626. <EntitySetMapping Name="BemsNoticePriceDetail">
  18627. <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceDetail">
  18628. <MappingFragment StoreEntitySet="BemsNoticePriceDetail">
  18629. <ScalarProperty Name="P12" ColumnName="P12" />
  18630. <ScalarProperty Name="P11" ColumnName="P11" />
  18631. <ScalarProperty Name="P10" ColumnName="P10" />
  18632. <ScalarProperty Name="P09" ColumnName="P09" />
  18633. <ScalarProperty Name="P08" ColumnName="P08" />
  18634. <ScalarProperty Name="P07" ColumnName="P07" />
  18635. <ScalarProperty Name="P06" ColumnName="P06" />
  18636. <ScalarProperty Name="P05" ColumnName="P05" />
  18637. <ScalarProperty Name="P04" ColumnName="P04" />
  18638. <ScalarProperty Name="P03" ColumnName="P03" />
  18639. <ScalarProperty Name="P02" ColumnName="P02" />
  18640. <ScalarProperty Name="P01" ColumnName="P01" />
  18641. <ScalarProperty Name="DataId" ColumnName="DataId" />
  18642. <ScalarProperty Name="ContractType" ColumnName="ContractType" />
  18643. <ScalarProperty Name="ApplyDate" ColumnName="ApplyDate" />
  18644. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18645. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18646. </MappingFragment>
  18647. </EntityTypeMapping>
  18648. </EntitySetMapping>
  18649. <EntitySetMapping Name="BemsPeakFacility">
  18650. <EntityTypeMapping TypeName="iBemsModel.BemsPeakFacility">
  18651. <MappingFragment StoreEntitySet="BemsPeakFacility">
  18652. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18653. <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
  18654. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18655. </MappingFragment>
  18656. </EntityTypeMapping>
  18657. </EntitySetMapping>
  18658. <EntitySetMapping Name="CmSite">
  18659. <EntityTypeMapping TypeName="iBemsModel.CmSite">
  18660. <MappingFragment StoreEntitySet="CmSite">
  18661. <ScalarProperty Name="CDD" ColumnName="CDD" />
  18662. <ScalarProperty Name="HDD" ColumnName="HDD" />
  18663. <ScalarProperty Name="MainUseIndex" ColumnName="MainUseIndex" />
  18664. <ScalarProperty Name="Standard" ColumnName="Standard" />
  18665. <ScalarProperty Name="CompletionDate" ColumnName="CompletionDate" />
  18666. <ScalarProperty Name="MainUse" ColumnName="MainUse" />
  18667. <ScalarProperty Name="BuildingCoverageRatio" ColumnName="BuildingCoverageRatio" />
  18668. <ScalarProperty Name="FloorAreaRatio" ColumnName="FloorAreaRatio" />
  18669. <ScalarProperty Name="BuildingArea" ColumnName="BuildingArea" />
  18670. <ScalarProperty Name="GrossArea" ColumnName="GrossArea" />
  18671. <ScalarProperty Name="BuildingSize" ColumnName="BuildingSize" />
  18672. <ScalarProperty Name="controlSchedule" ColumnName="controlSchedule" />
  18673. <ScalarProperty Name="lng" ColumnName="lng" />
  18674. <ScalarProperty Name="lat" ColumnName="lat" />
  18675. <ScalarProperty Name="MaxPeak" ColumnName="MaxPeak" />
  18676. <ScalarProperty Name="ScheduleCheckHour" ColumnName="ScheduleCheckHour" />
  18677. <ScalarProperty Name="IsControlSchedule" ColumnName="IsControlSchedule" />
  18678. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  18679. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  18680. <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
  18681. <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
  18682. <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
  18683. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18684. <ScalarProperty Name="Comment" ColumnName="Comment" />
  18685. <ScalarProperty Name="URL" ColumnName="URL" />
  18686. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  18687. <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
  18688. <ScalarProperty Name="Address1" ColumnName="Address1" />
  18689. <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
  18690. <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
  18691. <ScalarProperty Name="Name" ColumnName="Name" />
  18692. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18693. </MappingFragment>
  18694. </EntityTypeMapping>
  18695. </EntitySetMapping>
  18696. <EntitySetMapping Name="FmsReport">
  18697. <EntityTypeMapping TypeName="iBemsModel.FmsReport">
  18698. <MappingFragment StoreEntitySet="FmsReport">
  18699. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18700. <ScalarProperty Name="ConfirmUserId2" ColumnName="ConfirmUserId2" />
  18701. <ScalarProperty Name="ConfirmUserId1" ColumnName="ConfirmUserId1" />
  18702. <ScalarProperty Name="MakeDate" ColumnName="MakeDate" />
  18703. <ScalarProperty Name="FileId" ColumnName="FileId" />
  18704. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  18705. <ScalarProperty Name="Contents" ColumnName="Contents" />
  18706. <ScalarProperty Name="Title" ColumnName="Title" />
  18707. <ScalarProperty Name="RId" ColumnName="RId" />
  18708. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18709. </MappingFragment>
  18710. </EntityTypeMapping>
  18711. </EntitySetMapping>
  18712. <EntitySetMapping Name="CmServiceEnergyCalcMonth">
  18713. <EntityTypeMapping TypeName="iBemsModel.CmServiceEnergyCalcMonth">
  18714. <MappingFragment StoreEntitySet="CmServiceEnergyCalcMonth">
  18715. <ScalarProperty Name="Value" ColumnName="Value" />
  18716. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  18717. <ScalarProperty Name="calDate" ColumnName="calDate" />
  18718. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18719. </MappingFragment>
  18720. </EntityTypeMapping>
  18721. </EntitySetMapping>
  18722. <EntitySetMapping Name="CmServiceEnergyCalcDay">
  18723. <EntityTypeMapping TypeName="iBemsModel.CmServiceEnergyCalcDay">
  18724. <MappingFragment StoreEntitySet="CmServiceEnergyCalcDay">
  18725. <ScalarProperty Name="Value" ColumnName="Value" />
  18726. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  18727. <ScalarProperty Name="calDate" ColumnName="calDate" />
  18728. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18729. </MappingFragment>
  18730. </EntityTypeMapping>
  18731. </EntitySetMapping>
  18732. <EntitySetMapping Name="CmPatrolHistory">
  18733. <EntityTypeMapping TypeName="iBemsModel.CmPatrolHistory">
  18734. <MappingFragment StoreEntitySet="CmPatrolHistory">
  18735. <ScalarProperty Name="resultAbnormalCnt" ColumnName="resultAbnormalCnt" />
  18736. <ScalarProperty Name="resultNormalCnt" ColumnName="resultNormalCnt" />
  18737. <ScalarProperty Name="resultPosCnt" ColumnName="resultPosCnt" />
  18738. <ScalarProperty Name="resultDesc" ColumnName="resultDesc" />
  18739. <ScalarProperty Name="resultTypeId" ColumnName="resultTypeId" />
  18740. <ScalarProperty Name="endDate" ColumnName="endDate" />
  18741. <ScalarProperty Name="startDate" ColumnName="startDate" />
  18742. <ScalarProperty Name="ScheduleId" ColumnName="ScheduleId" />
  18743. <ScalarProperty Name="PatrolHistoryId" ColumnName="PatrolHistoryId" />
  18744. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18745. </MappingFragment>
  18746. </EntityTypeMapping>
  18747. </EntitySetMapping>
  18748. <EntitySetMapping Name="BemsReportFormat">
  18749. <EntityTypeMapping TypeName="iBemsModel.BemsReportFormat">
  18750. <MappingFragment StoreEntitySet="BemsReportFormat">
  18751. <ScalarProperty Name="parts" ColumnName="parts" />
  18752. <ScalarProperty Name="Content" ColumnName="Content" />
  18753. <ScalarProperty Name="FormatName" ColumnName="FormatName" />
  18754. <ScalarProperty Name="ReportFormatId" ColumnName="ReportFormatId" />
  18755. </MappingFragment>
  18756. </EntityTypeMapping>
  18757. </EntitySetMapping>
  18758. <EntitySetMapping Name="CmMenu">
  18759. <EntityTypeMapping TypeName="iBemsModel.CmMenu">
  18760. <MappingFragment StoreEntitySet="CmMenu">
  18761. <ScalarProperty Name="Name" ColumnName="Name" />
  18762. <ScalarProperty Name="MenuPath" ColumnName="MenuPath" />
  18763. <ScalarProperty Name="Used" ColumnName="Used" />
  18764. <ScalarProperty Name="MenuId" ColumnName="MenuId" />
  18765. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18766. </MappingFragment>
  18767. </EntityTypeMapping>
  18768. </EntitySetMapping>
  18769. <EntitySetMapping Name="BemsPeopleIncrease">
  18770. <EntityTypeMapping TypeName="iBemsModel.BemsPeopleIncrease">
  18771. <MappingFragment StoreEntitySet="BemsPeopleIncrease">
  18772. <ScalarProperty Name="m12" ColumnName="m12" />
  18773. <ScalarProperty Name="m11" ColumnName="m11" />
  18774. <ScalarProperty Name="m10" ColumnName="m10" />
  18775. <ScalarProperty Name="m9" ColumnName="m9" />
  18776. <ScalarProperty Name="m8" ColumnName="m8" />
  18777. <ScalarProperty Name="m7" ColumnName="m7" />
  18778. <ScalarProperty Name="m6" ColumnName="m6" />
  18779. <ScalarProperty Name="m5" ColumnName="m5" />
  18780. <ScalarProperty Name="m4" ColumnName="m4" />
  18781. <ScalarProperty Name="m3" ColumnName="m3" />
  18782. <ScalarProperty Name="m2" ColumnName="m2" />
  18783. <ScalarProperty Name="m1" ColumnName="m1" />
  18784. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18785. <ScalarProperty Name="Date" ColumnName="Date" />
  18786. </MappingFragment>
  18787. </EntityTypeMapping>
  18788. </EntitySetMapping>
  18789. <EntitySetMapping Name="BemsPriceCode">
  18790. <EntityTypeMapping TypeName="iBemsModel.BemsPriceCode">
  18791. <MappingFragment StoreEntitySet="BemsPriceCode">
  18792. <ScalarProperty Name="Unit" ColumnName="Unit" />
  18793. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18794. <ScalarProperty Name="PriceCodeDesc" ColumnName="PriceCodeDesc" />
  18795. <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
  18796. </MappingFragment>
  18797. </EntityTypeMapping>
  18798. </EntitySetMapping>
  18799. <EntitySetMapping Name="BemsPriceFormula">
  18800. <EntityTypeMapping TypeName="iBemsModel.BemsPriceFormula">
  18801. <MappingFragment StoreEntitySet="BemsPriceFormula">
  18802. <ScalarProperty Name="UseYN" ColumnName="UseYN" />
  18803. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18804. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  18805. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  18806. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  18807. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18808. </MappingFragment>
  18809. </EntityTypeMapping>
  18810. </EntitySetMapping>
  18811. <EntitySetMapping Name="BemsPriceMeta">
  18812. <EntityTypeMapping TypeName="iBemsModel.BemsPriceMeta">
  18813. <MappingFragment StoreEntitySet="BemsPriceMeta">
  18814. <ScalarProperty Name="C12_23" ColumnName="12_23" />
  18815. <ScalarProperty Name="C12_22" ColumnName="12_22" />
  18816. <ScalarProperty Name="C12_21" ColumnName="12_21" />
  18817. <ScalarProperty Name="C12_20" ColumnName="12_20" />
  18818. <ScalarProperty Name="C12_19" ColumnName="12_19" />
  18819. <ScalarProperty Name="C12_18" ColumnName="12_18" />
  18820. <ScalarProperty Name="C12_17" ColumnName="12_17" />
  18821. <ScalarProperty Name="C12_16" ColumnName="12_16" />
  18822. <ScalarProperty Name="C12_15" ColumnName="12_15" />
  18823. <ScalarProperty Name="C12_14" ColumnName="12_14" />
  18824. <ScalarProperty Name="C12_13" ColumnName="12_13" />
  18825. <ScalarProperty Name="C12_12" ColumnName="12_12" />
  18826. <ScalarProperty Name="C12_11" ColumnName="12_11" />
  18827. <ScalarProperty Name="C12_10" ColumnName="12_10" />
  18828. <ScalarProperty Name="C12_09" ColumnName="12_09" />
  18829. <ScalarProperty Name="C12_08" ColumnName="12_08" />
  18830. <ScalarProperty Name="C12_07" ColumnName="12_07" />
  18831. <ScalarProperty Name="C12_06" ColumnName="12_06" />
  18832. <ScalarProperty Name="C12_05" ColumnName="12_05" />
  18833. <ScalarProperty Name="C12_04" ColumnName="12_04" />
  18834. <ScalarProperty Name="C12_03" ColumnName="12_03" />
  18835. <ScalarProperty Name="C12_02" ColumnName="12_02" />
  18836. <ScalarProperty Name="C12_01" ColumnName="12_01" />
  18837. <ScalarProperty Name="C12_00" ColumnName="12_00" />
  18838. <ScalarProperty Name="C11_23" ColumnName="11_23" />
  18839. <ScalarProperty Name="C11_22" ColumnName="11_22" />
  18840. <ScalarProperty Name="C11_21" ColumnName="11_21" />
  18841. <ScalarProperty Name="C11_20" ColumnName="11_20" />
  18842. <ScalarProperty Name="C11_19" ColumnName="11_19" />
  18843. <ScalarProperty Name="C11_18" ColumnName="11_18" />
  18844. <ScalarProperty Name="C11_17" ColumnName="11_17" />
  18845. <ScalarProperty Name="C11_16" ColumnName="11_16" />
  18846. <ScalarProperty Name="C11_15" ColumnName="11_15" />
  18847. <ScalarProperty Name="C11_14" ColumnName="11_14" />
  18848. <ScalarProperty Name="C11_13" ColumnName="11_13" />
  18849. <ScalarProperty Name="C11_12" ColumnName="11_12" />
  18850. <ScalarProperty Name="C11_11" ColumnName="11_11" />
  18851. <ScalarProperty Name="C11_10" ColumnName="11_10" />
  18852. <ScalarProperty Name="C11_09" ColumnName="11_09" />
  18853. <ScalarProperty Name="C11_08" ColumnName="11_08" />
  18854. <ScalarProperty Name="C11_07" ColumnName="11_07" />
  18855. <ScalarProperty Name="C11_06" ColumnName="11_06" />
  18856. <ScalarProperty Name="C11_05" ColumnName="11_05" />
  18857. <ScalarProperty Name="C11_04" ColumnName="11_04" />
  18858. <ScalarProperty Name="C11_03" ColumnName="11_03" />
  18859. <ScalarProperty Name="C11_02" ColumnName="11_02" />
  18860. <ScalarProperty Name="C11_01" ColumnName="11_01" />
  18861. <ScalarProperty Name="C11_00" ColumnName="11_00" />
  18862. <ScalarProperty Name="C10_23" ColumnName="10_23" />
  18863. <ScalarProperty Name="C10_22" ColumnName="10_22" />
  18864. <ScalarProperty Name="C10_21" ColumnName="10_21" />
  18865. <ScalarProperty Name="C10_20" ColumnName="10_20" />
  18866. <ScalarProperty Name="C10_19" ColumnName="10_19" />
  18867. <ScalarProperty Name="C10_18" ColumnName="10_18" />
  18868. <ScalarProperty Name="C10_17" ColumnName="10_17" />
  18869. <ScalarProperty Name="C10_16" ColumnName="10_16" />
  18870. <ScalarProperty Name="C10_15" ColumnName="10_15" />
  18871. <ScalarProperty Name="C10_14" ColumnName="10_14" />
  18872. <ScalarProperty Name="C10_13" ColumnName="10_13" />
  18873. <ScalarProperty Name="C10_12" ColumnName="10_12" />
  18874. <ScalarProperty Name="C10_11" ColumnName="10_11" />
  18875. <ScalarProperty Name="C10_10" ColumnName="10_10" />
  18876. <ScalarProperty Name="C10_09" ColumnName="10_09" />
  18877. <ScalarProperty Name="C10_08" ColumnName="10_08" />
  18878. <ScalarProperty Name="C10_07" ColumnName="10_07" />
  18879. <ScalarProperty Name="C10_06" ColumnName="10_06" />
  18880. <ScalarProperty Name="C10_05" ColumnName="10_05" />
  18881. <ScalarProperty Name="C10_04" ColumnName="10_04" />
  18882. <ScalarProperty Name="C10_03" ColumnName="10_03" />
  18883. <ScalarProperty Name="C10_02" ColumnName="10_02" />
  18884. <ScalarProperty Name="C10_01" ColumnName="10_01" />
  18885. <ScalarProperty Name="C10_00" ColumnName="10_00" />
  18886. <ScalarProperty Name="C09_23" ColumnName="09_23" />
  18887. <ScalarProperty Name="C09_22" ColumnName="09_22" />
  18888. <ScalarProperty Name="C09_21" ColumnName="09_21" />
  18889. <ScalarProperty Name="C09_20" ColumnName="09_20" />
  18890. <ScalarProperty Name="C09_19" ColumnName="09_19" />
  18891. <ScalarProperty Name="C09_18" ColumnName="09_18" />
  18892. <ScalarProperty Name="C09_17" ColumnName="09_17" />
  18893. <ScalarProperty Name="C09_16" ColumnName="09_16" />
  18894. <ScalarProperty Name="C09_15" ColumnName="09_15" />
  18895. <ScalarProperty Name="C09_14" ColumnName="09_14" />
  18896. <ScalarProperty Name="C09_13" ColumnName="09_13" />
  18897. <ScalarProperty Name="C09_12" ColumnName="09_12" />
  18898. <ScalarProperty Name="C09_11" ColumnName="09_11" />
  18899. <ScalarProperty Name="C09_10" ColumnName="09_10" />
  18900. <ScalarProperty Name="C09_09" ColumnName="09_09" />
  18901. <ScalarProperty Name="C09_08" ColumnName="09_08" />
  18902. <ScalarProperty Name="C09_07" ColumnName="09_07" />
  18903. <ScalarProperty Name="C09_06" ColumnName="09_06" />
  18904. <ScalarProperty Name="C09_05" ColumnName="09_05" />
  18905. <ScalarProperty Name="C09_04" ColumnName="09_04" />
  18906. <ScalarProperty Name="C09_03" ColumnName="09_03" />
  18907. <ScalarProperty Name="C09_02" ColumnName="09_02" />
  18908. <ScalarProperty Name="C09_01" ColumnName="09_01" />
  18909. <ScalarProperty Name="C09_00" ColumnName="09_00" />
  18910. <ScalarProperty Name="C08_23" ColumnName="08_23" />
  18911. <ScalarProperty Name="C08_22" ColumnName="08_22" />
  18912. <ScalarProperty Name="C08_21" ColumnName="08_21" />
  18913. <ScalarProperty Name="C08_20" ColumnName="08_20" />
  18914. <ScalarProperty Name="C08_19" ColumnName="08_19" />
  18915. <ScalarProperty Name="C08_18" ColumnName="08_18" />
  18916. <ScalarProperty Name="C08_17" ColumnName="08_17" />
  18917. <ScalarProperty Name="C08_16" ColumnName="08_16" />
  18918. <ScalarProperty Name="C08_15" ColumnName="08_15" />
  18919. <ScalarProperty Name="C08_14" ColumnName="08_14" />
  18920. <ScalarProperty Name="C08_13" ColumnName="08_13" />
  18921. <ScalarProperty Name="C08_12" ColumnName="08_12" />
  18922. <ScalarProperty Name="C08_11" ColumnName="08_11" />
  18923. <ScalarProperty Name="C08_10" ColumnName="08_10" />
  18924. <ScalarProperty Name="C08_09" ColumnName="08_09" />
  18925. <ScalarProperty Name="C08_08" ColumnName="08_08" />
  18926. <ScalarProperty Name="C08_07" ColumnName="08_07" />
  18927. <ScalarProperty Name="C08_06" ColumnName="08_06" />
  18928. <ScalarProperty Name="C08_05" ColumnName="08_05" />
  18929. <ScalarProperty Name="C08_04" ColumnName="08_04" />
  18930. <ScalarProperty Name="C08_03" ColumnName="08_03" />
  18931. <ScalarProperty Name="C08_02" ColumnName="08_02" />
  18932. <ScalarProperty Name="C08_01" ColumnName="08_01" />
  18933. <ScalarProperty Name="C08_00" ColumnName="08_00" />
  18934. <ScalarProperty Name="C07_23" ColumnName="07_23" />
  18935. <ScalarProperty Name="C07_22" ColumnName="07_22" />
  18936. <ScalarProperty Name="C07_21" ColumnName="07_21" />
  18937. <ScalarProperty Name="C07_20" ColumnName="07_20" />
  18938. <ScalarProperty Name="C07_19" ColumnName="07_19" />
  18939. <ScalarProperty Name="C07_18" ColumnName="07_18" />
  18940. <ScalarProperty Name="C07_17" ColumnName="07_17" />
  18941. <ScalarProperty Name="C07_16" ColumnName="07_16" />
  18942. <ScalarProperty Name="C07_15" ColumnName="07_15" />
  18943. <ScalarProperty Name="C07_14" ColumnName="07_14" />
  18944. <ScalarProperty Name="C07_13" ColumnName="07_13" />
  18945. <ScalarProperty Name="C07_12" ColumnName="07_12" />
  18946. <ScalarProperty Name="C07_11" ColumnName="07_11" />
  18947. <ScalarProperty Name="C07_10" ColumnName="07_10" />
  18948. <ScalarProperty Name="C07_09" ColumnName="07_09" />
  18949. <ScalarProperty Name="C07_08" ColumnName="07_08" />
  18950. <ScalarProperty Name="C07_07" ColumnName="07_07" />
  18951. <ScalarProperty Name="C07_06" ColumnName="07_06" />
  18952. <ScalarProperty Name="C07_05" ColumnName="07_05" />
  18953. <ScalarProperty Name="C07_04" ColumnName="07_04" />
  18954. <ScalarProperty Name="C07_03" ColumnName="07_03" />
  18955. <ScalarProperty Name="C07_02" ColumnName="07_02" />
  18956. <ScalarProperty Name="C07_01" ColumnName="07_01" />
  18957. <ScalarProperty Name="C07_00" ColumnName="07_00" />
  18958. <ScalarProperty Name="C06_23" ColumnName="06_23" />
  18959. <ScalarProperty Name="C06_22" ColumnName="06_22" />
  18960. <ScalarProperty Name="C06_21" ColumnName="06_21" />
  18961. <ScalarProperty Name="C06_20" ColumnName="06_20" />
  18962. <ScalarProperty Name="C06_19" ColumnName="06_19" />
  18963. <ScalarProperty Name="C06_18" ColumnName="06_18" />
  18964. <ScalarProperty Name="C06_17" ColumnName="06_17" />
  18965. <ScalarProperty Name="C06_16" ColumnName="06_16" />
  18966. <ScalarProperty Name="C06_15" ColumnName="06_15" />
  18967. <ScalarProperty Name="C06_14" ColumnName="06_14" />
  18968. <ScalarProperty Name="C06_13" ColumnName="06_13" />
  18969. <ScalarProperty Name="C06_12" ColumnName="06_12" />
  18970. <ScalarProperty Name="C06_11" ColumnName="06_11" />
  18971. <ScalarProperty Name="C06_10" ColumnName="06_10" />
  18972. <ScalarProperty Name="C06_09" ColumnName="06_09" />
  18973. <ScalarProperty Name="C06_08" ColumnName="06_08" />
  18974. <ScalarProperty Name="C06_07" ColumnName="06_07" />
  18975. <ScalarProperty Name="C06_06" ColumnName="06_06" />
  18976. <ScalarProperty Name="C06_05" ColumnName="06_05" />
  18977. <ScalarProperty Name="C06_04" ColumnName="06_04" />
  18978. <ScalarProperty Name="C06_03" ColumnName="06_03" />
  18979. <ScalarProperty Name="C06_02" ColumnName="06_02" />
  18980. <ScalarProperty Name="C06_01" ColumnName="06_01" />
  18981. <ScalarProperty Name="C06_00" ColumnName="06_00" />
  18982. <ScalarProperty Name="C05_23" ColumnName="05_23" />
  18983. <ScalarProperty Name="C05_22" ColumnName="05_22" />
  18984. <ScalarProperty Name="C05_21" ColumnName="05_21" />
  18985. <ScalarProperty Name="C05_20" ColumnName="05_20" />
  18986. <ScalarProperty Name="C05_19" ColumnName="05_19" />
  18987. <ScalarProperty Name="C05_18" ColumnName="05_18" />
  18988. <ScalarProperty Name="C05_17" ColumnName="05_17" />
  18989. <ScalarProperty Name="C05_16" ColumnName="05_16" />
  18990. <ScalarProperty Name="C05_15" ColumnName="05_15" />
  18991. <ScalarProperty Name="C05_14" ColumnName="05_14" />
  18992. <ScalarProperty Name="C05_13" ColumnName="05_13" />
  18993. <ScalarProperty Name="C05_12" ColumnName="05_12" />
  18994. <ScalarProperty Name="C05_11" ColumnName="05_11" />
  18995. <ScalarProperty Name="C05_10" ColumnName="05_10" />
  18996. <ScalarProperty Name="C05_09" ColumnName="05_09" />
  18997. <ScalarProperty Name="C05_08" ColumnName="05_08" />
  18998. <ScalarProperty Name="C05_07" ColumnName="05_07" />
  18999. <ScalarProperty Name="C05_06" ColumnName="05_06" />
  19000. <ScalarProperty Name="C05_05" ColumnName="05_05" />
  19001. <ScalarProperty Name="C05_04" ColumnName="05_04" />
  19002. <ScalarProperty Name="C05_03" ColumnName="05_03" />
  19003. <ScalarProperty Name="C05_02" ColumnName="05_02" />
  19004. <ScalarProperty Name="C05_01" ColumnName="05_01" />
  19005. <ScalarProperty Name="C05_00" ColumnName="05_00" />
  19006. <ScalarProperty Name="C04_23" ColumnName="04_23" />
  19007. <ScalarProperty Name="C04_22" ColumnName="04_22" />
  19008. <ScalarProperty Name="C04_21" ColumnName="04_21" />
  19009. <ScalarProperty Name="C04_20" ColumnName="04_20" />
  19010. <ScalarProperty Name="C04_19" ColumnName="04_19" />
  19011. <ScalarProperty Name="C04_18" ColumnName="04_18" />
  19012. <ScalarProperty Name="C04_17" ColumnName="04_17" />
  19013. <ScalarProperty Name="C04_16" ColumnName="04_16" />
  19014. <ScalarProperty Name="C04_15" ColumnName="04_15" />
  19015. <ScalarProperty Name="C04_14" ColumnName="04_14" />
  19016. <ScalarProperty Name="C04_13" ColumnName="04_13" />
  19017. <ScalarProperty Name="C04_12" ColumnName="04_12" />
  19018. <ScalarProperty Name="C04_11" ColumnName="04_11" />
  19019. <ScalarProperty Name="C04_10" ColumnName="04_10" />
  19020. <ScalarProperty Name="C04_09" ColumnName="04_09" />
  19021. <ScalarProperty Name="C04_08" ColumnName="04_08" />
  19022. <ScalarProperty Name="C04_07" ColumnName="04_07" />
  19023. <ScalarProperty Name="C04_06" ColumnName="04_06" />
  19024. <ScalarProperty Name="C04_05" ColumnName="04_05" />
  19025. <ScalarProperty Name="C04_04" ColumnName="04_04" />
  19026. <ScalarProperty Name="C04_03" ColumnName="04_03" />
  19027. <ScalarProperty Name="C04_02" ColumnName="04_02" />
  19028. <ScalarProperty Name="C04_01" ColumnName="04_01" />
  19029. <ScalarProperty Name="C04_00" ColumnName="04_00" />
  19030. <ScalarProperty Name="C03_23" ColumnName="03_23" />
  19031. <ScalarProperty Name="C03_22" ColumnName="03_22" />
  19032. <ScalarProperty Name="C03_21" ColumnName="03_21" />
  19033. <ScalarProperty Name="C03_20" ColumnName="03_20" />
  19034. <ScalarProperty Name="C03_19" ColumnName="03_19" />
  19035. <ScalarProperty Name="C03_18" ColumnName="03_18" />
  19036. <ScalarProperty Name="C03_17" ColumnName="03_17" />
  19037. <ScalarProperty Name="C03_16" ColumnName="03_16" />
  19038. <ScalarProperty Name="C03_15" ColumnName="03_15" />
  19039. <ScalarProperty Name="C03_14" ColumnName="03_14" />
  19040. <ScalarProperty Name="C03_13" ColumnName="03_13" />
  19041. <ScalarProperty Name="C03_12" ColumnName="03_12" />
  19042. <ScalarProperty Name="C03_11" ColumnName="03_11" />
  19043. <ScalarProperty Name="C03_10" ColumnName="03_10" />
  19044. <ScalarProperty Name="C03_09" ColumnName="03_09" />
  19045. <ScalarProperty Name="C03_08" ColumnName="03_08" />
  19046. <ScalarProperty Name="C03_07" ColumnName="03_07" />
  19047. <ScalarProperty Name="C03_06" ColumnName="03_06" />
  19048. <ScalarProperty Name="C03_05" ColumnName="03_05" />
  19049. <ScalarProperty Name="C03_04" ColumnName="03_04" />
  19050. <ScalarProperty Name="C03_03" ColumnName="03_03" />
  19051. <ScalarProperty Name="C03_02" ColumnName="03_02" />
  19052. <ScalarProperty Name="C03_01" ColumnName="03_01" />
  19053. <ScalarProperty Name="C03_00" ColumnName="03_00" />
  19054. <ScalarProperty Name="C02_23" ColumnName="02_23" />
  19055. <ScalarProperty Name="C02_22" ColumnName="02_22" />
  19056. <ScalarProperty Name="C02_21" ColumnName="02_21" />
  19057. <ScalarProperty Name="C02_20" ColumnName="02_20" />
  19058. <ScalarProperty Name="C02_19" ColumnName="02_19" />
  19059. <ScalarProperty Name="C02_18" ColumnName="02_18" />
  19060. <ScalarProperty Name="C02_17" ColumnName="02_17" />
  19061. <ScalarProperty Name="C02_16" ColumnName="02_16" />
  19062. <ScalarProperty Name="C02_15" ColumnName="02_15" />
  19063. <ScalarProperty Name="C02_14" ColumnName="02_14" />
  19064. <ScalarProperty Name="C02_13" ColumnName="02_13" />
  19065. <ScalarProperty Name="C02_12" ColumnName="02_12" />
  19066. <ScalarProperty Name="C02_11" ColumnName="02_11" />
  19067. <ScalarProperty Name="C02_10" ColumnName="02_10" />
  19068. <ScalarProperty Name="C02_09" ColumnName="02_09" />
  19069. <ScalarProperty Name="C02_08" ColumnName="02_08" />
  19070. <ScalarProperty Name="C02_07" ColumnName="02_07" />
  19071. <ScalarProperty Name="C02_06" ColumnName="02_06" />
  19072. <ScalarProperty Name="C02_05" ColumnName="02_05" />
  19073. <ScalarProperty Name="C02_04" ColumnName="02_04" />
  19074. <ScalarProperty Name="C02_03" ColumnName="02_03" />
  19075. <ScalarProperty Name="C02_02" ColumnName="02_02" />
  19076. <ScalarProperty Name="C02_01" ColumnName="02_01" />
  19077. <ScalarProperty Name="C02_00" ColumnName="02_00" />
  19078. <ScalarProperty Name="C01_23" ColumnName="01_23" />
  19079. <ScalarProperty Name="C01_22" ColumnName="01_22" />
  19080. <ScalarProperty Name="C01_21" ColumnName="01_21" />
  19081. <ScalarProperty Name="C01_20" ColumnName="01_20" />
  19082. <ScalarProperty Name="C01_19" ColumnName="01_19" />
  19083. <ScalarProperty Name="C01_18" ColumnName="01_18" />
  19084. <ScalarProperty Name="C01_17" ColumnName="01_17" />
  19085. <ScalarProperty Name="C01_16" ColumnName="01_16" />
  19086. <ScalarProperty Name="C01_15" ColumnName="01_15" />
  19087. <ScalarProperty Name="C01_14" ColumnName="01_14" />
  19088. <ScalarProperty Name="C01_13" ColumnName="01_13" />
  19089. <ScalarProperty Name="C01_12" ColumnName="01_12" />
  19090. <ScalarProperty Name="C01_11" ColumnName="01_11" />
  19091. <ScalarProperty Name="C01_10" ColumnName="01_10" />
  19092. <ScalarProperty Name="C01_09" ColumnName="01_09" />
  19093. <ScalarProperty Name="C01_08" ColumnName="01_08" />
  19094. <ScalarProperty Name="C01_07" ColumnName="01_07" />
  19095. <ScalarProperty Name="C01_06" ColumnName="01_06" />
  19096. <ScalarProperty Name="C01_05" ColumnName="01_05" />
  19097. <ScalarProperty Name="C01_04" ColumnName="01_04" />
  19098. <ScalarProperty Name="C01_03" ColumnName="01_03" />
  19099. <ScalarProperty Name="C01_02" ColumnName="01_02" />
  19100. <ScalarProperty Name="C01_01" ColumnName="01_01" />
  19101. <ScalarProperty Name="C01_00" ColumnName="01_00" />
  19102. <ScalarProperty Name="BasePrice" ColumnName="BasePrice" />
  19103. <ScalarProperty Name="PublishDate" ColumnName="PublishDate" />
  19104. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  19105. </MappingFragment>
  19106. </EntityTypeMapping>
  19107. </EntitySetMapping>
  19108. <EntitySetMapping Name="BemsPriceType">
  19109. <EntityTypeMapping TypeName="iBemsModel.BemsPriceType">
  19110. <MappingFragment StoreEntitySet="BemsPriceType">
  19111. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19112. <ScalarProperty Name="PriceTypeIdDesc" ColumnName="PriceTypeIdDesc" />
  19113. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  19114. </MappingFragment>
  19115. </EntityTypeMapping>
  19116. </EntitySetMapping>
  19117. <EntitySetMapping Name="BemsRentalRate">
  19118. <EntityTypeMapping TypeName="iBemsModel.BemsRentalRate">
  19119. <MappingFragment StoreEntitySet="BemsRentalRate">
  19120. <ScalarProperty Name="m12" ColumnName="m12" />
  19121. <ScalarProperty Name="m11" ColumnName="m11" />
  19122. <ScalarProperty Name="m10" ColumnName="m10" />
  19123. <ScalarProperty Name="m9" ColumnName="m9" />
  19124. <ScalarProperty Name="m8" ColumnName="m8" />
  19125. <ScalarProperty Name="m7" ColumnName="m7" />
  19126. <ScalarProperty Name="m6" ColumnName="m6" />
  19127. <ScalarProperty Name="m5" ColumnName="m5" />
  19128. <ScalarProperty Name="m4" ColumnName="m4" />
  19129. <ScalarProperty Name="m3" ColumnName="m3" />
  19130. <ScalarProperty Name="m2" ColumnName="m2" />
  19131. <ScalarProperty Name="m1" ColumnName="m1" />
  19132. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19133. <ScalarProperty Name="Date" ColumnName="Date" />
  19134. </MappingFragment>
  19135. </EntityTypeMapping>
  19136. </EntitySetMapping>
  19137. <EntitySetMapping Name="BemsSitePrice">
  19138. <EntityTypeMapping TypeName="iBemsModel.BemsSitePrice">
  19139. <MappingFragment StoreEntitySet="BemsSitePrice">
  19140. <ScalarProperty Name="UseYN" ColumnName="UseYN" />
  19141. <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
  19142. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  19143. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19144. <ScalarProperty Name="SiteID" ColumnName="SiteID" />
  19145. </MappingFragment>
  19146. </EntityTypeMapping>
  19147. </EntitySetMapping>
  19148. <EntitySetMapping Name="BemsSitePriceHistory">
  19149. <EntityTypeMapping TypeName="iBemsModel.BemsSitePriceHistory">
  19150. <MappingFragment StoreEntitySet="BemsSitePriceHistory">
  19151. <ScalarProperty Name="PayCharge" ColumnName="PayCharge" />
  19152. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  19153. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  19154. <ScalarProperty Name="PayDate" ColumnName="PayDate" />
  19155. <ScalarProperty Name="PriceValue" ColumnName="PriceValue" />
  19156. <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
  19157. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  19158. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19159. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19160. </MappingFragment>
  19161. </EntityTypeMapping>
  19162. </EntitySetMapping>
  19163. <EntitySetMapping Name="BemsChartInfo">
  19164. <EntityTypeMapping TypeName="iBemsModel.BemsChartInfo">
  19165. <MappingFragment StoreEntitySet="BemsChartInfo">
  19166. <ScalarProperty Name="RCTLineValue" ColumnName="RCTLineValue" />
  19167. <ScalarProperty Name="RCTLineTitle" ColumnName="RCTLineTitle" />
  19168. <ScalarProperty Name="UseRCTLine" ColumnName="UseRCTLine" />
  19169. <ScalarProperty Name="LCTLineValue" ColumnName="LCTLineValue" />
  19170. <ScalarProperty Name="LCTLineTitle" ColumnName="LCTLineTitle" />
  19171. <ScalarProperty Name="UseLCTLine" ColumnName="UseLCTLine" />
  19172. <ScalarProperty Name="UseChart" ColumnName="UseChart" />
  19173. <ScalarProperty Name="Palette" ColumnName="Palette" />
  19174. <ScalarProperty Name="XAxMax" ColumnName="XAxMax" />
  19175. <ScalarProperty Name="XAxMin" ColumnName="XAxMin" />
  19176. <ScalarProperty Name="RAxMax" ColumnName="RAxMax" />
  19177. <ScalarProperty Name="RAxMin" ColumnName="RAxMin" />
  19178. <ScalarProperty Name="LAxMax" ColumnName="LAxMax" />
  19179. <ScalarProperty Name="LAxMin" ColumnName="LAxMin" />
  19180. <ScalarProperty Name="UseXAxMinMax" ColumnName="UseXAxMinMax" />
  19181. <ScalarProperty Name="UseRAxMinMax" ColumnName="UseRAxMinMax" />
  19182. <ScalarProperty Name="UseLAxMinMax" ColumnName="UseLAxMinMax" />
  19183. <ScalarProperty Name="UseX" ColumnName="UseX" />
  19184. <ScalarProperty Name="Title" ColumnName="Title" />
  19185. <ScalarProperty Name="RSType4" ColumnName="RSType4" />
  19186. <ScalarProperty Name="RSName4" ColumnName="RSName4" />
  19187. <ScalarProperty Name="RSFmId4" ColumnName="RSFmId4" />
  19188. <ScalarProperty Name="RSType3" ColumnName="RSType3" />
  19189. <ScalarProperty Name="RSName3" ColumnName="RSName3" />
  19190. <ScalarProperty Name="RSFmId3" ColumnName="RSFmId3" />
  19191. <ScalarProperty Name="RSType2" ColumnName="RSType2" />
  19192. <ScalarProperty Name="RSName2" ColumnName="RSName2" />
  19193. <ScalarProperty Name="RSFmId2" ColumnName="RSFmId2" />
  19194. <ScalarProperty Name="RSType1" ColumnName="RSType1" />
  19195. <ScalarProperty Name="RSName1" ColumnName="RSName1" />
  19196. <ScalarProperty Name="RSFmId1" ColumnName="RSFmId1" />
  19197. <ScalarProperty Name="LSType4" ColumnName="LSType4" />
  19198. <ScalarProperty Name="LSName4" ColumnName="LSName4" />
  19199. <ScalarProperty Name="LSFmId4" ColumnName="LSFmId4" />
  19200. <ScalarProperty Name="LSType3" ColumnName="LSType3" />
  19201. <ScalarProperty Name="LSName3" ColumnName="LSName3" />
  19202. <ScalarProperty Name="LSFmId3" ColumnName="LSFmId3" />
  19203. <ScalarProperty Name="LSType2" ColumnName="LSType2" />
  19204. <ScalarProperty Name="LSName2" ColumnName="LSName2" />
  19205. <ScalarProperty Name="LSFmId2" ColumnName="LSFmId2" />
  19206. <ScalarProperty Name="LSType1" ColumnName="LSType1" />
  19207. <ScalarProperty Name="LSName1" ColumnName="LSName1" />
  19208. <ScalarProperty Name="LSFmId1" ColumnName="LSFmId1" />
  19209. <ScalarProperty Name="XSType" ColumnName="XSType" />
  19210. <ScalarProperty Name="XSFmId" ColumnName="XSFmId" />
  19211. <ScalarProperty Name="XAxTitle" ColumnName="XAxTitle" />
  19212. <ScalarProperty Name="RAxTitle" ColumnName="RAxTitle" />
  19213. <ScalarProperty Name="LAxTitle" ColumnName="LAxTitle" />
  19214. <ScalarProperty Name="ChartId" ColumnName="ChartId" />
  19215. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19216. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19217. </MappingFragment>
  19218. </EntityTypeMapping>
  19219. </EntitySetMapping>
  19220. <EntitySetMapping Name="FmsWorkSchedule">
  19221. <EntityTypeMapping TypeName="iBemsModel.FmsWorkSchedule">
  19222. <MappingFragment StoreEntitySet="FmsWorkSchedule">
  19223. <ScalarProperty Name="Content" ColumnName="Content" />
  19224. <ScalarProperty Name="IsAutoOrder" ColumnName="IsAutoOrder" />
  19225. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19226. <ScalarProperty Name="UpdateUserId" ColumnName="UpdateUserId" />
  19227. <ScalarProperty Name="WorkDueDate" ColumnName="WorkDueDate" />
  19228. <ScalarProperty Name="HolidayWorkTypeId" ColumnName="HolidayWorkTypeId" />
  19229. <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
  19230. <ScalarProperty Name="CycleSize" ColumnName="CycleSize" />
  19231. <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
  19232. <ScalarProperty Name="Name" ColumnName="Name" />
  19233. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  19234. <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
  19235. <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
  19236. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19237. </MappingFragment>
  19238. </EntityTypeMapping>
  19239. </EntitySetMapping>
  19240. <EntitySetMapping Name="BemsMonitoringPointConfig">
  19241. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointConfig">
  19242. <MappingFragment StoreEntitySet="BemsMonitoringPointConfig">
  19243. <ScalarProperty Name="IsConverted" ColumnName="IsConverted" />
  19244. <ScalarProperty Name="ControlPointName" ColumnName="ControlPointName" />
  19245. <ScalarProperty Name="SaveMode" ColumnName="SaveMode" />
  19246. <ScalarProperty Name="IsSampled" ColumnName="IsSampled" />
  19247. <ScalarProperty Name="IsAccumulated" ColumnName="IsAccumulated" />
  19248. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19249. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19250. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19251. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19252. </MappingFragment>
  19253. </EntityTypeMapping>
  19254. </EntitySetMapping>
  19255. <EntitySetMapping Name="BemsAlarmSetting">
  19256. <EntityTypeMapping TypeName="iBemsModel.BemsAlarmSetting">
  19257. <MappingFragment StoreEntitySet="BemsAlarmSetting">
  19258. <ScalarProperty Name="Content" ColumnName="Content" />
  19259. <ScalarProperty Name="AlarmGroupName" ColumnName="AlarmGroupName" />
  19260. <ScalarProperty Name="UseEmail" ColumnName="UseEmail" />
  19261. <ScalarProperty Name="UseSMS" ColumnName="UseSMS" />
  19262. <ScalarProperty Name="UseAlarm" ColumnName="UseAlarm" />
  19263. <ScalarProperty Name="LowerLimit" ColumnName="LowerLimit" />
  19264. <ScalarProperty Name="UseLowerLimit" ColumnName="UseLowerLimit" />
  19265. <ScalarProperty Name="UpperLimit" ColumnName="UpperLimit" />
  19266. <ScalarProperty Name="UseUpperLimit" ColumnName="UseUpperLimit" />
  19267. <ScalarProperty Name="PointName" ColumnName="PointName" />
  19268. <ScalarProperty Name="FacilityName" ColumnName="FacilityName" />
  19269. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  19270. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19271. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19272. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19273. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19274. </MappingFragment>
  19275. </EntityTypeMapping>
  19276. </EntitySetMapping>
  19277. <EntitySetMapping Name="BemsAlarmLog">
  19278. <EntityTypeMapping TypeName="iBemsModel.BemsAlarmLog">
  19279. <MappingFragment StoreEntitySet="BemsAlarmLog">
  19280. <ScalarProperty Name="Conform" ColumnName="Conform" />
  19281. <ScalarProperty Name="EmailResult" ColumnName="EmailResult" />
  19282. <ScalarProperty Name="SMSResult" ColumnName="SMSResult" />
  19283. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  19284. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19285. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  19286. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19287. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19288. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19289. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19290. </MappingFragment>
  19291. </EntityTypeMapping>
  19292. </EntitySetMapping>
  19293. <EntitySetMapping Name="BemsAlarmGroup">
  19294. <EntityTypeMapping TypeName="iBemsModel.BemsAlarmGroup">
  19295. <MappingFragment StoreEntitySet="BemsAlarmGroup">
  19296. <ScalarProperty Name="Name" ColumnName="Name" />
  19297. <ScalarProperty Name="AlarmGroupId" ColumnName="AlarmGroupId" />
  19298. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19299. </MappingFragment>
  19300. </EntityTypeMapping>
  19301. </EntitySetMapping>
  19302. <EntitySetMapping Name="BemsAlarmGroupUser">
  19303. <EntityTypeMapping TypeName="iBemsModel.BemsAlarmGroupUser">
  19304. <MappingFragment StoreEntitySet="BemsAlarmGroupUser">
  19305. <ScalarProperty Name="UserId" ColumnName="UserId" />
  19306. <ScalarProperty Name="AlarmGroupId" ColumnName="AlarmGroupId" />
  19307. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19308. </MappingFragment>
  19309. </EntityTypeMapping>
  19310. </EntitySetMapping>
  19311. <EntitySetMapping Name="BemsEnergyCost">
  19312. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyCost">
  19313. <MappingFragment StoreEntitySet="BemsEnergyCost">
  19314. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19315. <ScalarProperty Name="GasPriceTypeId" ColumnName="GasPriceTypeId" />
  19316. <ScalarProperty Name="PowerPriceTypeId" ColumnName="PowerPriceTypeId" />
  19317. <ScalarProperty Name="GasHeatQuantity" ColumnName="GasHeatQuantity" />
  19318. <ScalarProperty Name="GasConsumption" ColumnName="GasConsumption" />
  19319. <ScalarProperty Name="PowerConsumption2" ColumnName="PowerConsumption2" />
  19320. <ScalarProperty Name="PowerConsumption1" ColumnName="PowerConsumption1" />
  19321. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19322. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19323. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19324. </MappingFragment>
  19325. </EntityTypeMapping>
  19326. </EntitySetMapping>
  19327. <EntitySetMapping Name="BemsEnergyConfigPercentMonth">
  19328. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyConfigPercentMonth">
  19329. <MappingFragment StoreEntitySet="BemsEnergyConfigPercentMonth">
  19330. <ScalarProperty Name="Water" ColumnName="Water" />
  19331. <ScalarProperty Name="Gas" ColumnName="Gas" />
  19332. <ScalarProperty Name="Electricity" ColumnName="Electricity" />
  19333. <ScalarProperty Name="Month" ColumnName="Month" />
  19334. <ScalarProperty Name="Year" ColumnName="Year" />
  19335. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19336. </MappingFragment>
  19337. </EntityTypeMapping>
  19338. </EntitySetMapping>
  19339. <EntitySetMapping Name="BemsEnergyConfigPercentWeek">
  19340. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyConfigPercentWeek">
  19341. <MappingFragment StoreEntitySet="BemsEnergyConfigPercentWeek">
  19342. <ScalarProperty Name="Water" ColumnName="Water" />
  19343. <ScalarProperty Name="Gas" ColumnName="Gas" />
  19344. <ScalarProperty Name="Electricity" ColumnName="Electricity" />
  19345. <ScalarProperty Name="Week" ColumnName="Week" />
  19346. <ScalarProperty Name="Year" ColumnName="Year" />
  19347. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19348. </MappingFragment>
  19349. </EntityTypeMapping>
  19350. </EntitySetMapping>
  19351. <EntitySetMapping Name="BemsEnergyDaily">
  19352. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyDaily">
  19353. <MappingFragment StoreEntitySet="BemsEnergyDaily">
  19354. <ScalarProperty Name="CDD" ColumnName="CDD" />
  19355. <ScalarProperty Name="HDD" ColumnName="HDD" />
  19356. <ScalarProperty Name="MeanT" ColumnName="MeanT" />
  19357. <ScalarProperty Name="Prediction_Regression" ColumnName="Prediction_Regression" />
  19358. <ScalarProperty Name="Goal" ColumnName="Goal" />
  19359. <ScalarProperty Name="Measurement" ColumnName="Measurement" />
  19360. <ScalarProperty Name="Prediction" ColumnName="Prediction" />
  19361. <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
  19362. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19363. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  19364. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  19365. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19366. </MappingFragment>
  19367. </EntityTypeMapping>
  19368. </EntitySetMapping>
  19369. <EntitySetMapping Name="BemsEnergyDailyRegression">
  19370. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyDailyRegression">
  19371. <MappingFragment StoreEntitySet="BemsEnergyDailyRegression">
  19372. <ScalarProperty Name="IsRegression" ColumnName="IsRegression" />
  19373. <ScalarProperty Name="Holiday_Water_Temp" ColumnName="Holiday_Water_Temp" />
  19374. <ScalarProperty Name="Holiday_Water" ColumnName="Holiday_Water" />
  19375. <ScalarProperty Name="Holiday_Gas_Temp" ColumnName="Holiday_Gas_Temp" />
  19376. <ScalarProperty Name="Holiday_Gas" ColumnName="Holiday_Gas" />
  19377. <ScalarProperty Name="Holiday_Power_Temp" ColumnName="Holiday_Power_Temp" />
  19378. <ScalarProperty Name="Holiday_Power" ColumnName="Holiday_Power" />
  19379. <ScalarProperty Name="Weekday_Water_Temp" ColumnName="Weekday_Water_Temp" />
  19380. <ScalarProperty Name="Weekday_Water" ColumnName="Weekday_Water" />
  19381. <ScalarProperty Name="Weekday_Gas_Temp" ColumnName="Weekday_Gas_Temp" />
  19382. <ScalarProperty Name="Weekday_Gas" ColumnName="Weekday_Gas" />
  19383. <ScalarProperty Name="Weekday_Power_Temp" ColumnName="Weekday_Power_Temp" />
  19384. <ScalarProperty Name="Weekday_Power" ColumnName="Weekday_Power" />
  19385. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19386. </MappingFragment>
  19387. </EntityTypeMapping>
  19388. </EntitySetMapping>
  19389. <EntitySetMapping Name="WeatherDongNaeForecast">
  19390. <EntityTypeMapping TypeName="iBemsModel.WeatherDongNaeForecast">
  19391. <MappingFragment StoreEntitySet="WeatherDongNaeForecast">
  19392. <ScalarProperty Name="Version" ColumnName="Version" />
  19393. <ScalarProperty Name="DBTime" ColumnName="DBTime" />
  19394. <ScalarProperty Name="Type" ColumnName="Type" />
  19395. <ScalarProperty Name="WSD" ColumnName="WSD" />
  19396. <ScalarProperty Name="VEC" ColumnName="VEC" />
  19397. <ScalarProperty Name="VVV" ColumnName="VVV" />
  19398. <ScalarProperty Name="UUU" ColumnName="UUU" />
  19399. <ScalarProperty Name="TMX" ColumnName="TMX" />
  19400. <ScalarProperty Name="TMN" ColumnName="TMN" />
  19401. <ScalarProperty Name="T3H" ColumnName="T3H" />
  19402. <ScalarProperty Name="SKY" ColumnName="SKY" />
  19403. <ScalarProperty Name="S06" ColumnName="S06" />
  19404. <ScalarProperty Name="REH" ColumnName="REH" />
  19405. <ScalarProperty Name="R06" ColumnName="R06" />
  19406. <ScalarProperty Name="PTY" ColumnName="PTY" />
  19407. <ScalarProperty Name="POP" ColumnName="POP" />
  19408. <ScalarProperty Name="ForecastTime" ColumnName="ForecastTime" />
  19409. <ScalarProperty Name="ny" ColumnName="ny" />
  19410. <ScalarProperty Name="nx" ColumnName="nx" />
  19411. <ScalarProperty Name="BaseTime" ColumnName="BaseTime" />
  19412. </MappingFragment>
  19413. </EntityTypeMapping>
  19414. </EntitySetMapping>
  19415. <EntitySetMapping Name="FmsEquipmentRentInfo">
  19416. <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentRentInfo">
  19417. <MappingFragment StoreEntitySet="FmsEquipmentRentInfo">
  19418. <ScalarProperty Name="RentUser" ColumnName="RentUser" />
  19419. <ScalarProperty Name="Title" ColumnName="Title" />
  19420. <ScalarProperty Name="Comment" ColumnName="Comment" />
  19421. <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
  19422. <ScalarProperty Name="ReturnFixDate" ColumnName="ReturnFixDate" />
  19423. <ScalarProperty Name="ReturnDueDate" ColumnName="ReturnDueDate" />
  19424. <ScalarProperty Name="RentDate" ColumnName="RentDate" />
  19425. <ScalarProperty Name="RegisterDate" ColumnName="RegisterDate" />
  19426. <ScalarProperty Name="RentUserId" ColumnName="RentUserId" />
  19427. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  19428. <ScalarProperty Name="EquipmentRentId" ColumnName="EquipmentRentId" />
  19429. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19430. </MappingFragment>
  19431. </EntityTypeMapping>
  19432. </EntitySetMapping>
  19433. <EntitySetMapping Name="BemsControlAHUTempConfig">
  19434. <EntityTypeMapping TypeName="iBemsModel.BemsControlAHUTempConfig">
  19435. <MappingFragment StoreEntitySet="BemsControlAHUTempConfig">
  19436. <ScalarProperty Name="MinTemperature" ColumnName="MinTemperature" />
  19437. <ScalarProperty Name="MaxTemperature" ColumnName="MaxTemperature" />
  19438. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19439. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19440. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19441. </MappingFragment>
  19442. </EntityTypeMapping>
  19443. </EntitySetMapping>
  19444. <EntitySetMapping Name="BemsFuelType">
  19445. <EntityTypeMapping TypeName="iBemsModel.BemsFuelType">
  19446. <MappingFragment StoreEntitySet="BemsFuelType">
  19447. <ScalarProperty Name="Name" ColumnName="Name" />
  19448. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19449. </MappingFragment>
  19450. </EntityTypeMapping>
  19451. </EntitySetMapping>
  19452. <EntitySetMapping Name="CmFacility">
  19453. <EntityTypeMapping TypeName="iBemsModel.CmFacility">
  19454. <MappingFragment StoreEntitySet="CmFacility">
  19455. <ScalarProperty Name="ContractType" ColumnName="ContractType" />
  19456. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19457. <ScalarProperty Name="IsVirtualFacility" ColumnName="IsVirtualFacility" />
  19458. <ScalarProperty Name="FileId" ColumnName="FileId" />
  19459. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19460. <ScalarProperty Name="Reserved2" ColumnName="Reserved2" />
  19461. <ScalarProperty Name="Reserved1" ColumnName="Reserved1" />
  19462. <ScalarProperty Name="Note" ColumnName="Note" />
  19463. <ScalarProperty Name="SubContactorUserId" ColumnName="SubContactorUserId" />
  19464. <ScalarProperty Name="MainContactorUserId" ColumnName="MainContactorUserId" />
  19465. <ScalarProperty Name="RatedCOP" ColumnName="RatedCOP" />
  19466. <ScalarProperty Name="RatedPowerConsumption" ColumnName="RatedPowerConsumption" />
  19467. <ScalarProperty Name="FacilityUsage" ColumnName="FacilityUsage" />
  19468. <ScalarProperty Name="FacilitySeviceLifeYear" ColumnName="FacilitySeviceLifeYear" />
  19469. <ScalarProperty Name="FacilityCount" ColumnName="FacilityCount" />
  19470. <ScalarProperty Name="FacilityCost" ColumnName="FacilityCost" />
  19471. <ScalarProperty Name="FacilityCapacity" ColumnName="FacilityCapacity" />
  19472. <ScalarProperty Name="OperationStartDate" ColumnName="OperationStartDate" />
  19473. <ScalarProperty Name="InstallDate" ColumnName="InstallDate" />
  19474. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  19475. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  19476. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  19477. <ScalarProperty Name="SupplierPhoneNo" ColumnName="SupplierPhoneNo" />
  19478. <ScalarProperty Name="Supplier" ColumnName="Supplier" />
  19479. <ScalarProperty Name="ManufactureModel" ColumnName="ManufactureModel" />
  19480. <ScalarProperty Name="ManufactureSerial" ColumnName="ManufactureSerial" />
  19481. <ScalarProperty Name="ManufactureDate" ColumnName="ManufactureDate" />
  19482. <ScalarProperty Name="Manufacturer" ColumnName="Manufacturer" />
  19483. <ScalarProperty Name="Rfid" ColumnName="Rfid" />
  19484. <ScalarProperty Name="Nickname" ColumnName="Nickname" />
  19485. <ScalarProperty Name="Name" ColumnName="Name" />
  19486. <ScalarProperty Name="ParentFacilityCode" ColumnName="ParentFacilityCode" />
  19487. <ScalarProperty Name="DeviceType" ColumnName="DeviceType" />
  19488. <ScalarProperty Name="ThirdClassId" ColumnName="ThirdClassId" />
  19489. <ScalarProperty Name="SecondClassId" ColumnName="SecondClassId" />
  19490. <ScalarProperty Name="FirstClassId" ColumnName="FirstClassId" />
  19491. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19492. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19493. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19494. </MappingFragment>
  19495. </EntityTypeMapping>
  19496. </EntitySetMapping>
  19497. <EntitySetMapping Name="BemsMonitoringPointHistory15minRawData">
  19498. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistory15minRawData">
  19499. <MappingFragment StoreEntitySet="BemsMonitoringPointHistory15minRawData">
  19500. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  19501. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19502. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19503. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19504. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19505. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19506. </MappingFragment>
  19507. </EntityTypeMapping>
  19508. </EntitySetMapping>
  19509. <EntitySetMapping Name="FmsDailyReport">
  19510. <EntityTypeMapping TypeName="iBemsModel.FmsDailyReport">
  19511. <MappingFragment StoreEntitySet="FmsDailyReport">
  19512. <ScalarProperty Name="ApproveDate5" ColumnName="ApproveDate5" />
  19513. <ScalarProperty Name="ApproverUserId5" ColumnName="ApproverUserId5" />
  19514. <ScalarProperty Name="ApproveDate4" ColumnName="ApproveDate4" />
  19515. <ScalarProperty Name="ApproverUserId4" ColumnName="ApproverUserId4" />
  19516. <ScalarProperty Name="ApproveDate3" ColumnName="ApproveDate3" />
  19517. <ScalarProperty Name="ApproverUserId3" ColumnName="ApproverUserId3" />
  19518. <ScalarProperty Name="ApproveDate2" ColumnName="ApproveDate2" />
  19519. <ScalarProperty Name="ApproverUserId2" ColumnName="ApproverUserId2" />
  19520. <ScalarProperty Name="RegisterDate" ColumnName="RegisterDate" />
  19521. <ScalarProperty Name="ApproveDate" ColumnName="ApproveDate" />
  19522. <ScalarProperty Name="ApproverUserId" ColumnName="ApproverUserId" />
  19523. <ScalarProperty Name="Datas" ColumnName="Datas" />
  19524. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  19525. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  19526. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  19527. <ScalarProperty Name="Contents" ColumnName="Contents" />
  19528. <ScalarProperty Name="Name" ColumnName="Name" />
  19529. <ScalarProperty Name="DailyReportId" ColumnName="DailyReportId" />
  19530. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19531. </MappingFragment>
  19532. </EntityTypeMapping>
  19533. </EntitySetMapping>
  19534. <EntitySetMapping Name="BemsPeakHistoryDaily">
  19535. <EntityTypeMapping TypeName="iBemsModel.BemsPeakHistoryDaily">
  19536. <MappingFragment StoreEntitySet="BemsPeakHistoryDaily">
  19537. <ScalarProperty Name="MinDateTime" ColumnName="MinDateTime" />
  19538. <ScalarProperty Name="MinPeakValue" ColumnName="MinPeakValue" />
  19539. <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
  19540. <ScalarProperty Name="MaxPeakValue" ColumnName="MaxPeakValue" />
  19541. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19542. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19543. </MappingFragment>
  19544. </EntityTypeMapping>
  19545. </EntitySetMapping>
  19546. <EntitySetMapping Name="FmsEquipment">
  19547. <EntityTypeMapping TypeName="iBemsModel.FmsEquipment">
  19548. <MappingFragment StoreEntitySet="FmsEquipment">
  19549. <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
  19550. <ScalarProperty Name="SupplierPhoneNo" ColumnName="SupplierPhoneNo" />
  19551. <ScalarProperty Name="SupplierName" ColumnName="SupplierName" />
  19552. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  19553. <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
  19554. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  19555. <ScalarProperty Name="Standard" ColumnName="Standard" />
  19556. <ScalarProperty Name="Unit" ColumnName="Unit" />
  19557. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  19558. <ScalarProperty Name="EquipmentTypeId" ColumnName="EquipmentTypeId" />
  19559. <ScalarProperty Name="Name" ColumnName="Name" />
  19560. <ScalarProperty Name="EquipmentId" ColumnName="EquipmentId" />
  19561. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19562. </MappingFragment>
  19563. </EntityTypeMapping>
  19564. </EntitySetMapping>
  19565. <EntitySetMapping Name="CmAlarmAdmin">
  19566. <EntityTypeMapping TypeName="iBemsModel.CmAlarmAdmin">
  19567. <MappingFragment StoreEntitySet="CmAlarmAdmin">
  19568. <ScalarProperty Name="EmailPassword" ColumnName="EmailPassword" />
  19569. <ScalarProperty Name="EmailAddress" ColumnName="EmailAddress" />
  19570. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  19571. <ScalarProperty Name="DeptCode" ColumnName="DeptCode" />
  19572. <ScalarProperty Name="UserCode" ColumnName="UserCode" />
  19573. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19574. </MappingFragment>
  19575. </EntityTypeMapping>
  19576. </EntitySetMapping>
  19577. <EntitySetMapping Name="BemsFloorStatus">
  19578. <EntityTypeMapping TypeName="iBemsModel.BemsFloorStatus">
  19579. <MappingFragment StoreEntitySet="BemsFloorStatus">
  19580. <ScalarProperty Name="FacilityName" ColumnName="FacilityName" />
  19581. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19582. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19583. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19584. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  19585. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  19586. <ScalarProperty Name="Yvalue" ColumnName="Yvalue" />
  19587. <ScalarProperty Name="Xvalue" ColumnName="Xvalue" />
  19588. <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
  19589. <ScalarProperty Name="FloorName" ColumnName="FloorName" />
  19590. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  19591. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19592. </MappingFragment>
  19593. </EntityTypeMapping>
  19594. </EntitySetMapping>
  19595. <EntitySetMapping Name="BemsReportHistory">
  19596. <EntityTypeMapping TypeName="iBemsModel.BemsReportHistory">
  19597. <MappingFragment StoreEntitySet="BemsReportHistory">
  19598. <ScalarProperty Name="FileName" ColumnName="FileName" />
  19599. <ScalarProperty Name="parts" ColumnName="parts" />
  19600. <ScalarProperty Name="Confirm2" ColumnName="Confirm2" />
  19601. <ScalarProperty Name="Confirm1" ColumnName="Confirm1" />
  19602. <ScalarProperty Name="Writer" ColumnName="Writer" />
  19603. <ScalarProperty Name="Content" ColumnName="Content" />
  19604. <ScalarProperty Name="FormatName" ColumnName="FormatName" />
  19605. <ScalarProperty Name="ReportFormatId" ColumnName="ReportFormatId" />
  19606. <ScalarProperty Name="ReportName" ColumnName="ReportName" />
  19607. <ScalarProperty Name="DateTime" ColumnName="DateTime" />
  19608. <ScalarProperty Name="Seq" ColumnName="Seq" />
  19609. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19610. </MappingFragment>
  19611. </EntityTypeMapping>
  19612. </EntitySetMapping>
  19613. <EntitySetMapping Name="CmPartner">
  19614. <EntityTypeMapping TypeName="iBemsModel.CmPartner">
  19615. <MappingFragment StoreEntitySet="CmPartner">
  19616. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19617. <ScalarProperty Name="Note" ColumnName="Note" />
  19618. <ScalarProperty Name="HomepageUri" ColumnName="HomepageUri" />
  19619. <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
  19620. <ScalarProperty Name="Address1" ColumnName="Address1" />
  19621. <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
  19622. <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
  19623. <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
  19624. <ScalarProperty Name="SalesName" ColumnName="SalesName" />
  19625. <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
  19626. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  19627. <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
  19628. <ScalarProperty Name="RegistrationNo" ColumnName="RegistrationNo" />
  19629. <ScalarProperty Name="Name" ColumnName="Name" />
  19630. <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
  19631. <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
  19632. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19633. </MappingFragment>
  19634. </EntityTypeMapping>
  19635. </EntitySetMapping>
  19636. <EntitySetMapping Name="CmPartnerType">
  19637. <EntityTypeMapping TypeName="iBemsModel.CmPartnerType">
  19638. <MappingFragment StoreEntitySet="CmPartnerType">
  19639. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19640. <ScalarProperty Name="Name" ColumnName="Name" />
  19641. <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
  19642. </MappingFragment>
  19643. </EntityTypeMapping>
  19644. </EntitySetMapping>
  19645. <EntitySetMapping Name="FmsContract">
  19646. <EntityTypeMapping TypeName="iBemsModel.FmsContract">
  19647. <MappingFragment StoreEntitySet="FmsContract">
  19648. <ScalarProperty Name="PaymentTypeId" ColumnName="PaymentTypeId" />
  19649. <ScalarProperty Name="ContractMethodId" ColumnName="ContractMethodId" />
  19650. <ScalarProperty Name="ContractTypeId" ColumnName="ContractTypeId" />
  19651. <ScalarProperty Name="ContractClassId" ColumnName="ContractClassId" />
  19652. <ScalarProperty Name="Comment" ColumnName="Comment" />
  19653. <ScalarProperty Name="CommitmentMan" ColumnName="CommitmentMan" />
  19654. <ScalarProperty Name="OwnerShipPhoneNo" ColumnName="OwnerShipPhoneNo" />
  19655. <ScalarProperty Name="OwnerShipName" ColumnName="OwnerShipName" />
  19656. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  19657. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  19658. <ScalarProperty Name="ContractDate" ColumnName="ContractDate" />
  19659. <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
  19660. <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
  19661. <ScalarProperty Name="Name" ColumnName="Name" />
  19662. <ScalarProperty Name="ContractId" ColumnName="ContractId" />
  19663. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19664. </MappingFragment>
  19665. </EntityTypeMapping>
  19666. </EntitySetMapping>
  19667. <EntitySetMapping Name="BemsMonitoringPointForecastingDayAhead">
  19668. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointForecastingDayAhead">
  19669. <MappingFragment StoreEntitySet="BemsMonitoringPointForecastingDayAhead">
  19670. <ScalarProperty Name="ForecastedValue" ColumnName="ForecastedValue" />
  19671. <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
  19672. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19673. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19674. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19675. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19676. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19677. </MappingFragment>
  19678. </EntityTypeMapping>
  19679. </EntitySetMapping>
  19680. <EntitySetMapping Name="BemsMonitoringPointForecastingHourAhead">
  19681. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointForecastingHourAhead">
  19682. <MappingFragment StoreEntitySet="BemsMonitoringPointForecastingHourAhead">
  19683. <ScalarProperty Name="ForecastedValue" ColumnName="ForecastedValue" />
  19684. <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
  19685. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19686. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19687. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19688. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19689. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19690. </MappingFragment>
  19691. </EntityTypeMapping>
  19692. </EntitySetMapping>
  19693. <EntitySetMapping Name="BemsFloorPlan">
  19694. <EntityTypeMapping TypeName="iBemsModel.BemsFloorPlan">
  19695. <MappingFragment StoreEntitySet="BemsFloorPlan">
  19696. <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
  19697. <ScalarProperty Name="Name" ColumnName="Name" />
  19698. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  19699. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19700. </MappingFragment>
  19701. </EntityTypeMapping>
  19702. </EntitySetMapping>
  19703. <EntitySetMapping Name="BemsMonitoringPointWeatherForecasted">
  19704. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointWeatherForecasted">
  19705. <MappingFragment StoreEntitySet="BemsMonitoringPointWeatherForecasted">
  19706. <ScalarProperty Name="ny" ColumnName="ny" />
  19707. <ScalarProperty Name="nx" ColumnName="nx" />
  19708. <ScalarProperty Name="ForecastedValue" ColumnName="ForecastedValue" />
  19709. <ScalarProperty Name="ForecastedDateTime" ColumnName="ForecastedDateTime" />
  19710. <ScalarProperty Name="BaseDateTime" ColumnName="BaseDateTime" />
  19711. <ScalarProperty Name="Category" ColumnName="Category" />
  19712. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19713. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19714. </MappingFragment>
  19715. </EntityTypeMapping>
  19716. </EntitySetMapping>
  19717. <EntitySetMapping Name="BemsConfigData">
  19718. <EntityTypeMapping TypeName="iBemsModel.BemsConfigData">
  19719. <MappingFragment StoreEntitySet="BemsConfigData">
  19720. <ScalarProperty Name="NonlinearTestSize" ColumnName="NonlinearTestSize" />
  19721. <ScalarProperty Name="LinearFilterLength" ColumnName="LinearFilterLength" />
  19722. <ScalarProperty Name="InitialDate" ColumnName="InitialDate" />
  19723. <ScalarProperty Name="TargetDBName" ColumnName="TargetDBName" />
  19724. <ScalarProperty Name="TargetDBUserPW" ColumnName="TargetDBUserPW" />
  19725. <ScalarProperty Name="TargetDBUserID" ColumnName="TargetDBUserID" />
  19726. <ScalarProperty Name="TargetDBIP" ColumnName="TargetDBIP" />
  19727. <ScalarProperty Name="LoadDBName" ColumnName="LoadDBName" />
  19728. <ScalarProperty Name="LoadDBUserPW" ColumnName="LoadDBUserPW" />
  19729. <ScalarProperty Name="LoadDBUserID" ColumnName="LoadDBUserID" />
  19730. <ScalarProperty Name="LoadDBIP" ColumnName="LoadDBIP" />
  19731. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19732. </MappingFragment>
  19733. </EntityTypeMapping>
  19734. </EntitySetMapping>
  19735. <EntitySetMapping Name="BemsIceThermalStorageSimulation">
  19736. <EntityTypeMapping TypeName="iBemsModel.BemsIceThermalStorageSimulation">
  19737. <MappingFragment StoreEntitySet="BemsIceThermalStorageSimulation">
  19738. <ScalarProperty Name="SimulationCase" ColumnName="SimulationCase" />
  19739. <ScalarProperty Name="SimulationValue" ColumnName="SimulationValue" />
  19740. <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
  19741. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19742. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19743. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19744. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19745. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19746. </MappingFragment>
  19747. </EntityTypeMapping>
  19748. </EntitySetMapping>
  19749. </EntityContainerMapping>
  19750. </Mapping>
  19751. </edmx:Mappings>
  19752. </edmx:Runtime>
  19753. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  19754. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  19755. <Connection>
  19756. <DesignerInfoPropertySet>
  19757. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  19758. </DesignerInfoPropertySet>
  19759. </Connection>
  19760. <Options>
  19761. <DesignerInfoPropertySet>
  19762. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  19763. <DesignerProperty Name="EnablePluralization" Value="false" />
  19764. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  19765. <DesignerProperty Name="UseLegacyProvider" Value="true" />
  19766. <DesignerProperty Name="CodeGenerationStrategy" Value="없음" />
  19767. </DesignerInfoPropertySet>
  19768. </Options>
  19769. <!-- Diagram content (shape and connector positions) -->
  19770. <Diagrams></Diagrams>
  19771. </Designer>
  19772. </edmx:Edmx>