f266bce421f3d4c8344a1baba22960d6a42dd325.svn-base 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770
  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. </EntityType>
  153. <EntityType Name="BemsControlAHUTempConfig">
  154. <Key>
  155. <PropertyRef Name="SiteId" />
  156. <PropertyRef Name="FacilityTypeId" />
  157. <PropertyRef Name="FacilityCode" />
  158. </Key>
  159. <Property Name="SiteId" Type="int" Nullable="false" />
  160. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  161. <Property Name="FacilityCode" Type="int" Nullable="false" />
  162. <Property Name="MaxTemperature" Type="float" Nullable="false" />
  163. <Property Name="MinTemperature" Type="float" Nullable="false" />
  164. </EntityType>
  165. <EntityType Name="BemsControlPointHistory">
  166. <Key>
  167. <PropertyRef Name="SiteId" />
  168. <PropertyRef Name="FacilityCode" />
  169. <PropertyRef Name="PropertyId" />
  170. <PropertyRef Name="CreateDateTime" />
  171. </Key>
  172. <Property Name="SiteId" Type="int" Nullable="false" />
  173. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  174. <Property Name="FacilityCode" Type="int" Nullable="false" />
  175. <Property Name="PropertyId" Type="int" Nullable="false" />
  176. <Property Name="CreateDateTime" Type="datetime" Nullable="false" />
  177. <Property Name="ControlValue" Type="float" Nullable="false" />
  178. <Property Name="WriteServiceName" Type="nvarchar" MaxLength="64" />
  179. <Property Name="ActionDateTime" Type="datetime" />
  180. </EntityType>
  181. <EntityType Name="BemsEnergyConfigPercentMonth">
  182. <Key>
  183. <PropertyRef Name="SiteId" />
  184. <PropertyRef Name="Year" />
  185. <PropertyRef Name="Month" />
  186. </Key>
  187. <Property Name="SiteId" Type="int" Nullable="false" />
  188. <Property Name="Year" Type="int" Nullable="false" />
  189. <Property Name="Month" Type="int" Nullable="false" />
  190. <Property Name="Electricity" Type="float" />
  191. <Property Name="Gas" Type="float" />
  192. <Property Name="Water" Type="float" />
  193. </EntityType>
  194. <EntityType Name="BemsEnergyConfigPercentWeek">
  195. <Key>
  196. <PropertyRef Name="SiteId" />
  197. <PropertyRef Name="Year" />
  198. <PropertyRef Name="Week" />
  199. </Key>
  200. <Property Name="SiteId" Type="int" Nullable="false" />
  201. <Property Name="Year" Type="int" Nullable="false" />
  202. <Property Name="Week" Type="int" Nullable="false" />
  203. <Property Name="Electricity" Type="float" />
  204. <Property Name="Gas" Type="float" />
  205. <Property Name="Water" Type="float" />
  206. </EntityType>
  207. <EntityType Name="BemsEnergyCost">
  208. <Key>
  209. <PropertyRef Name="SiteId" />
  210. <PropertyRef Name="FacilityCode" />
  211. </Key>
  212. <Property Name="SiteId" Type="int" Nullable="false" />
  213. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  214. <Property Name="FacilityCode" Type="int" Nullable="false" />
  215. <Property Name="PowerConsumption1" Type="float" />
  216. <Property Name="PowerConsumption2" Type="float" />
  217. <Property Name="GasConsumption" Type="float" />
  218. <Property Name="GasHeatQuantity" Type="float" />
  219. <Property Name="PowerPriceTypeId" Type="int" />
  220. <Property Name="GasPriceTypeId" Type="int" />
  221. <Property Name="IsUse" Type="bit" />
  222. </EntityType>
  223. <EntityType Name="BemsEnergyDaily">
  224. <Key>
  225. <PropertyRef Name="SiteId" />
  226. <PropertyRef Name="BuildingId" />
  227. <PropertyRef Name="ServiceTypeId" />
  228. <PropertyRef Name="FuelTypeId" />
  229. <PropertyRef Name="CreatedDate" />
  230. </Key>
  231. <Property Name="SiteId" Type="int" Nullable="false" />
  232. <Property Name="BuildingId" Type="int" Nullable="false" />
  233. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  234. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  235. <Property Name="CreatedDate" Type="date" Nullable="false" />
  236. <Property Name="Prediction" Type="float" />
  237. <Property Name="Measurement" Type="float" />
  238. <Property Name="Goal" Type="float" />
  239. <Property Name="Prediction_Regression" Type="float" />
  240. <Property Name="MeanT" Type="float" />
  241. <Property Name="HDD" Type="float" />
  242. <Property Name="CDD" Type="float" />
  243. </EntityType>
  244. <EntityType Name="BemsEnergyDailyRegression">
  245. <Key>
  246. <PropertyRef Name="SiteId" />
  247. </Key>
  248. <Property Name="SiteId" Type="int" Nullable="false" />
  249. <Property Name="Weekday_Power" Type="nvarchar" MaxLength="50" />
  250. <Property Name="Weekday_Power_Temp" Type="nvarchar" MaxLength="50" />
  251. <Property Name="Weekday_Gas" Type="nvarchar" MaxLength="50" />
  252. <Property Name="Weekday_Gas_Temp" Type="nvarchar" MaxLength="50" />
  253. <Property Name="Weekday_Water" Type="nvarchar" MaxLength="50" />
  254. <Property Name="Weekday_Water_Temp" Type="nvarchar" MaxLength="50" />
  255. <Property Name="Holiday_Power" Type="nvarchar" MaxLength="50" />
  256. <Property Name="Holiday_Power_Temp" Type="nvarchar" MaxLength="50" />
  257. <Property Name="Holiday_Gas" Type="nvarchar" MaxLength="50" />
  258. <Property Name="Holiday_Gas_Temp" Type="nvarchar" MaxLength="50" />
  259. <Property Name="Holiday_Water" Type="nvarchar" MaxLength="50" />
  260. <Property Name="Holiday_Water_Temp" Type="nvarchar" MaxLength="50" />
  261. <Property Name="IsRegression" Type="bit" />
  262. </EntityType>
  263. <EntityType Name="BemsFacilityType">
  264. <Key>
  265. <PropertyRef Name="FacilityTypeId" />
  266. </Key>
  267. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  268. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  269. </EntityType>
  270. <EntityType Name="BemsFactorCo2">
  271. <Key>
  272. <PropertyRef Name="FuelTypeId" />
  273. </Key>
  274. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  275. <Property Name="Factor" Type="float" Nullable="false" />
  276. </EntityType>
  277. <EntityType Name="BemsFactorToe">
  278. <Key>
  279. <PropertyRef Name="FuelTypeId" />
  280. </Key>
  281. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  282. <Property Name="TotalFactor" Type="float" Nullable="false" />
  283. <Property Name="PureFactor" Type="float" Nullable="false" />
  284. <Property Name="kcal" Type="float" />
  285. </EntityType>
  286. <EntityType Name="BemsFloorPlan">
  287. <Key>
  288. <PropertyRef Name="SiteId" />
  289. <PropertyRef Name="Name" />
  290. </Key>
  291. <Property Name="SiteId" Type="int" Nullable="false" />
  292. <Property Name="FloorId" Type="int" Nullable="false" />
  293. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  294. <Property Name="ImageFileId" Type="int" />
  295. </EntityType>
  296. <EntityType Name="BemsFloorStatus">
  297. <Key>
  298. <PropertyRef Name="SiteId" />
  299. <PropertyRef Name="FloorId" />
  300. <PropertyRef Name="FloorName" />
  301. <PropertyRef Name="ImageFileId" />
  302. <PropertyRef Name="Xvalue" />
  303. <PropertyRef Name="Yvalue" />
  304. <PropertyRef Name="PropertyId" />
  305. </Key>
  306. <Property Name="SiteId" Type="int" Nullable="false" />
  307. <Property Name="FloorId" Type="int" Nullable="false" />
  308. <Property Name="FloorName" Type="nvarchar" MaxLength="50" Nullable="false" />
  309. <Property Name="ImageFileId" Type="int" Nullable="false" />
  310. <Property Name="Xvalue" Type="int" Nullable="false" />
  311. <Property Name="Yvalue" Type="int" Nullable="false" />
  312. <Property Name="ZoneId" Type="int" />
  313. <Property Name="ServiceTypeId" Type="int" />
  314. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  315. <Property Name="FacilityCode" Type="int" Nullable="false" />
  316. <Property Name="PropertyId" Type="int" Nullable="false" />
  317. <Property Name="FacilityName" Type="nvarchar" MaxLength="64" />
  318. </EntityType>
  319. <EntityType Name="BemsFormula">
  320. <Key>
  321. <PropertyRef Name="SiteId" />
  322. <PropertyRef Name="FacilityTypeId" />
  323. <PropertyRef Name="FacilityCode" />
  324. <PropertyRef Name="FormulaId" />
  325. </Key>
  326. <Property Name="SiteId" Type="int" Nullable="false" />
  327. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  328. <Property Name="FacilityCode" Type="int" Nullable="false" />
  329. <Property Name="FormulaId" Type="int" Nullable="false" />
  330. <Property Name="Formula" Type="nvarchar" MaxLength="120" Nullable="false" />
  331. </EntityType>
  332. <EntityType Name="BemsFormulaBase">
  333. <Key>
  334. <PropertyRef Name="FacilityTypeId" />
  335. <PropertyRef Name="FormulaId" />
  336. </Key>
  337. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  338. <Property Name="FormulaId" Type="int" Nullable="false" />
  339. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  340. </EntityType>
  341. <EntityType Name="BemsFormulaParameter">
  342. <Key>
  343. <PropertyRef Name="SiteId" />
  344. <PropertyRef Name="FacilityCode" />
  345. <PropertyRef Name="FormulaId" />
  346. <PropertyRef Name="ParameterId" />
  347. </Key>
  348. <Property Name="SiteId" Type="int" Nullable="false" />
  349. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  350. <Property Name="FacilityCode" Type="int" Nullable="false" />
  351. <Property Name="FormulaId" Type="int" Nullable="false" />
  352. <Property Name="ParameterId" Type="nchar" MaxLength="1" Nullable="false" />
  353. <Property Name="ParameterFacilityCode" Type="int" Nullable="false" />
  354. <Property Name="ParameterPropertyId" Type="int" Nullable="false" />
  355. </EntityType>
  356. <EntityType Name="BemsFormulaTable">
  357. <Key>
  358. <PropertyRef Name="TableId" />
  359. </Key>
  360. <Property Name="TableId" Type="int" Nullable="false" />
  361. <Property Name="FunctionName" Type="nvarchar" MaxLength="20" Nullable="false" />
  362. <Property Name="Description" Type="nvarchar" MaxLength="80" Nullable="false" />
  363. </EntityType>
  364. <EntityType Name="BemsFormulaTableValue">
  365. <Key>
  366. <PropertyRef Name="TableId" />
  367. <PropertyRef Name="XValue" />
  368. </Key>
  369. <Property Name="TableId" Type="int" Nullable="false" />
  370. <Property Name="XValue" Type="float" Nullable="false" />
  371. <Property Name="YValue" Type="float" Nullable="false" />
  372. </EntityType>
  373. <EntityType Name="BemsFuelType">
  374. <Key>
  375. <PropertyRef Name="FuelTypeId" />
  376. </Key>
  377. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  378. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  379. </EntityType>
  380. <EntityType Name="BemsIceThermalStorageSimulation">
  381. <Key>
  382. <PropertyRef Name="SiteId" />
  383. <PropertyRef Name="FacilityCode" />
  384. <PropertyRef Name="PropertyId" />
  385. <PropertyRef Name="CreatedDateTime" />
  386. <PropertyRef Name="TargetDateTime" />
  387. <PropertyRef Name="SimulationCase" />
  388. </Key>
  389. <Property Name="SiteId" Type="int" Nullable="false" />
  390. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  391. <Property Name="FacilityCode" Type="int" Nullable="false" />
  392. <Property Name="PropertyId" Type="int" Nullable="false" />
  393. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  394. <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
  395. <Property Name="SimulationValue" Type="float" />
  396. <Property Name="SimulationCase" Type="int" Nullable="false" />
  397. </EntityType>
  398. <EntityType Name="BemsMonitoringPoint">
  399. <Key>
  400. <PropertyRef Name="SiteId" />
  401. <PropertyRef Name="FacilityCode" />
  402. <PropertyRef Name="PropertyId" />
  403. </Key>
  404. <Property Name="SiteId" Type="int" Nullable="false" />
  405. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  406. <Property Name="FacilityCode" Type="int" Nullable="false" />
  407. <Property Name="PropertyId" Type="int" Nullable="false" />
  408. <Property Name="ValueType" Type="int" Nullable="false" />
  409. <Property Name="ServiceTypeId" Type="smallint" />
  410. <Property Name="FuelTypeId" Type="smallint" />
  411. <Property Name="Name" Type="nvarchar" MaxLength="64" />
  412. <Property Name="Description" Type="nvarchar" MaxLength="256" />
  413. <Property Name="BuildingId" Type="int" />
  414. <Property Name="FloorId" Type="int" />
  415. <Property Name="ZoneId" Type="int" />
  416. </EntityType>
  417. <EntityType Name="BemsMonitoringPointBaseData">
  418. <Key>
  419. <PropertyRef Name="FacilityTypeId" />
  420. <PropertyRef Name="PropertyId" />
  421. </Key>
  422. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  423. <Property Name="PropertyId" Type="int" Nullable="false" />
  424. <Property Name="ValueType" Type="int" Nullable="false" />
  425. <Property Name="IsAccumulated" Type="bit" Nullable="false" />
  426. <Property Name="ServiceTypeId" Type="smallint" />
  427. <Property Name="FuelTypeId" Type="smallint" />
  428. <Property Name="Name" Type="nvarchar" MaxLength="64" />
  429. <Property Name="Description" Type="nvarchar" MaxLength="256" />
  430. <Property Name="IsSampled" Type="bit" />
  431. <Property Name="IsConverted" Type="bit" />
  432. </EntityType>
  433. <EntityType Name="BemsMonitoringPointConfig">
  434. <Key>
  435. <PropertyRef Name="SiteId" />
  436. <PropertyRef Name="FacilityCode" />
  437. <PropertyRef Name="PropertyId" />
  438. </Key>
  439. <Property Name="SiteId" Type="int" Nullable="false" />
  440. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  441. <Property Name="FacilityCode" Type="int" Nullable="false" />
  442. <Property Name="PropertyId" Type="int" Nullable="false" />
  443. <Property Name="IsAccumulated" Type="bit" Nullable="false" />
  444. <Property Name="IsSampled" Type="bit" Nullable="false" />
  445. <Property Name="SaveMode" Type="int" Nullable="false" />
  446. <Property Name="ControlPointName" Type="nvarchar" MaxLength="200" />
  447. <Property Name="IsConverted" Type="bit" />
  448. </EntityType>
  449. <EntityType Name="BemsMonitoringPointForecastingDayAhead">
  450. <Key>
  451. <PropertyRef Name="SiteId" />
  452. <PropertyRef Name="FacilityCode" />
  453. <PropertyRef Name="PropertyId" />
  454. <PropertyRef Name="CreatedDateTime" />
  455. <PropertyRef Name="TargetDateTime" />
  456. </Key>
  457. <Property Name="SiteId" Type="int" Nullable="false" />
  458. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  459. <Property Name="FacilityCode" Type="int" Nullable="false" />
  460. <Property Name="PropertyId" Type="int" Nullable="false" />
  461. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  462. <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
  463. <Property Name="ForecastedValue" Type="float" Nullable="false" />
  464. </EntityType>
  465. <EntityType Name="BemsMonitoringPointForecastingHourAhead">
  466. <Key>
  467. <PropertyRef Name="SiteId" />
  468. <PropertyRef Name="FacilityCode" />
  469. <PropertyRef Name="PropertyId" />
  470. <PropertyRef Name="CreatedDateTime" />
  471. <PropertyRef Name="TargetDateTime" />
  472. </Key>
  473. <Property Name="SiteId" Type="int" Nullable="false" />
  474. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  475. <Property Name="FacilityCode" Type="int" Nullable="false" />
  476. <Property Name="PropertyId" Type="int" Nullable="false" />
  477. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  478. <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
  479. <Property Name="ForecastedValue" Type="float" Nullable="false" />
  480. </EntityType>
  481. <EntityType Name="BemsMonitoringPointHistory15min">
  482. <Key>
  483. <PropertyRef Name="SiteId" />
  484. <PropertyRef Name="FacilityCode" />
  485. <PropertyRef Name="PropertyId" />
  486. <PropertyRef Name="CreatedDateTime" />
  487. </Key>
  488. <Property Name="SiteId" Type="int" Nullable="false" />
  489. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  490. <Property Name="FacilityCode" Type="int" Nullable="false" />
  491. <Property Name="PropertyId" Type="int" Nullable="false" />
  492. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  493. <Property Name="CurrentValue" Type="float" Nullable="false" />
  494. </EntityType>
  495. <EntityType Name="BemsMonitoringPointHistory15minRawData">
  496. <Key>
  497. <PropertyRef Name="SiteId" />
  498. <PropertyRef Name="FacilityCode" />
  499. <PropertyRef Name="PropertyId" />
  500. <PropertyRef Name="CreatedDateTime" />
  501. </Key>
  502. <Property Name="SiteId" Type="int" Nullable="false" />
  503. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  504. <Property Name="FacilityCode" Type="int" Nullable="false" />
  505. <Property Name="PropertyId" Type="int" Nullable="false" />
  506. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  507. <Property Name="CurrentValue" Type="float" Nullable="false" />
  508. </EntityType>
  509. <EntityType Name="BemsMonitoringPointHistoryDaily">
  510. <Key>
  511. <PropertyRef Name="SiteId" />
  512. <PropertyRef Name="FacilityCode" />
  513. <PropertyRef Name="PropertyId" />
  514. <PropertyRef Name="CreatedDateTime" />
  515. </Key>
  516. <Property Name="SiteId" Type="int" Nullable="false" />
  517. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  518. <Property Name="FacilityCode" Type="int" Nullable="false" />
  519. <Property Name="PropertyId" Type="int" Nullable="false" />
  520. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  521. <Property Name="DailyValue" Type="float" Nullable="false" />
  522. <Property Name="MaxValue" Type="float" />
  523. <Property Name="MinValue" Type="float" />
  524. </EntityType>
  525. <EntityType Name="BemsMonitoringPointHistoryHourly">
  526. <Key>
  527. <PropertyRef Name="SiteId" />
  528. <PropertyRef Name="FacilityCode" />
  529. <PropertyRef Name="PropertyId" />
  530. <PropertyRef Name="CreatedDateTime" />
  531. </Key>
  532. <Property Name="SiteId" Type="int" Nullable="false" />
  533. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  534. <Property Name="FacilityCode" Type="int" Nullable="false" />
  535. <Property Name="PropertyId" Type="int" Nullable="false" />
  536. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  537. <Property Name="CurrentValue" Type="float" Nullable="false" />
  538. </EntityType>
  539. <EntityType Name="BemsMonitoringPointToAnlaysisType">
  540. <Key>
  541. <PropertyRef Name="SiteId" />
  542. <PropertyRef Name="FacilityTypeId" />
  543. <PropertyRef Name="FacilityCode" />
  544. <PropertyRef Name="PropertyId" />
  545. <PropertyRef Name="AnalysisType" />
  546. </Key>
  547. <Property Name="SiteId" Type="int" Nullable="false" />
  548. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  549. <Property Name="FacilityCode" Type="int" Nullable="false" />
  550. <Property Name="PropertyId" Type="int" Nullable="false" />
  551. <Property Name="AnalysisType" Type="int" Nullable="false" />
  552. </EntityType>
  553. <EntityType Name="BemsMonitoringPointWeatherForecasted">
  554. <Key>
  555. <PropertyRef Name="SiteId" />
  556. <PropertyRef Name="CreatedDateTime" />
  557. <PropertyRef Name="Category" />
  558. <PropertyRef Name="BaseDateTime" />
  559. <PropertyRef Name="ForecastedDateTime" />
  560. </Key>
  561. <Property Name="SiteId" Type="int" Nullable="false" />
  562. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  563. <Property Name="Category" Type="nvarchar" MaxLength="50" Nullable="false" />
  564. <Property Name="BaseDateTime" Type="datetime" Nullable="false" />
  565. <Property Name="ForecastedDateTime" Type="datetime" Nullable="false" />
  566. <Property Name="ForecastedValue" Type="float" Nullable="false" />
  567. <Property Name="nx" Type="int" Nullable="false" />
  568. <Property Name="ny" Type="int" Nullable="false" />
  569. </EntityType>
  570. <EntityType Name="BemsNoticePriceBase">
  571. <Key>
  572. <PropertyRef Name="SiteId" />
  573. <PropertyRef Name="FuelTypeId" />
  574. <PropertyRef Name="ApplyDate" />
  575. <PropertyRef Name="ContractType" />
  576. </Key>
  577. <Property Name="SiteId" Type="int" Nullable="false" />
  578. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  579. <Property Name="ApplyDate" Type="date" Nullable="false" />
  580. <Property Name="ContractType" Type="smallint" Nullable="false" />
  581. <Property Name="PrimaryPrice" Type="int" />
  582. <Property Name="SecondaryPrice" Type="int" />
  583. </EntityType>
  584. <EntityType Name="BemsNoticePriceContractType">
  585. <Key>
  586. <PropertyRef Name="FuelTypeId" />
  587. <PropertyRef Name="ContractType" />
  588. </Key>
  589. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  590. <Property Name="ContractType" Type="smallint" Nullable="false" />
  591. <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
  592. </EntityType>
  593. <EntityType Name="BemsNoticePriceDetail">
  594. <Key>
  595. <PropertyRef Name="SiteId" />
  596. <PropertyRef Name="FuelTypeId" />
  597. <PropertyRef Name="ApplyDate" />
  598. <PropertyRef Name="ContractType" />
  599. <PropertyRef Name="DataId" />
  600. </Key>
  601. <Property Name="SiteId" Type="int" Nullable="false" />
  602. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  603. <Property Name="ApplyDate" Type="date" Nullable="false" />
  604. <Property Name="ContractType" Type="smallint" Nullable="false" />
  605. <Property Name="DataId" Type="smallint" Nullable="false" />
  606. <Property Name="P01" Type="float" />
  607. <Property Name="P02" Type="float" />
  608. <Property Name="P03" Type="float" />
  609. <Property Name="P04" Type="float" />
  610. <Property Name="P05" Type="float" />
  611. <Property Name="P06" Type="float" />
  612. <Property Name="P07" Type="float" />
  613. <Property Name="P08" Type="float" />
  614. <Property Name="P09" Type="float" />
  615. <Property Name="P10" Type="float" />
  616. <Property Name="P11" Type="float" />
  617. <Property Name="P12" Type="float" />
  618. </EntityType>
  619. <EntityType Name="BemsPeakFacility">
  620. <Key>
  621. <PropertyRef Name="SiteId" />
  622. <PropertyRef Name="MaxDateTime" />
  623. <PropertyRef Name="FacilityCode" />
  624. </Key>
  625. <Property Name="SiteId" Type="int" Nullable="false" />
  626. <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
  627. <Property Name="FacilityCode" Type="int" Nullable="false" />
  628. </EntityType>
  629. <EntityType Name="BemsPeakHistory">
  630. <Key>
  631. <PropertyRef Name="SiteId" />
  632. <PropertyRef Name="CreatedDateTime" />
  633. </Key>
  634. <Property Name="SiteId" Type="int" Nullable="false" />
  635. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  636. <Property Name="CurrentValue" Type="float" Nullable="false" />
  637. </EntityType>
  638. <EntityType Name="BemsPeakHistoryDaily">
  639. <Key>
  640. <PropertyRef Name="SiteId" />
  641. <PropertyRef Name="CreatedDateTime" />
  642. </Key>
  643. <Property Name="SiteId" Type="int" Nullable="false" />
  644. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  645. <Property Name="MaxPeakValue" Type="float" />
  646. <Property Name="MaxDateTime" Type="datetime" />
  647. <Property Name="MinPeakValue" Type="float" />
  648. <Property Name="MinDateTime" Type="datetime" />
  649. </EntityType>
  650. <EntityType Name="BemsPeakInfo">
  651. <Key>
  652. <PropertyRef Name="SiteId" />
  653. </Key>
  654. <Property Name="SiteId" Type="int" Nullable="false" />
  655. <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
  656. <Property Name="MaxPeakValue" Type="float" Nullable="false" />
  657. <Property Name="MinDateTime" Type="datetime" Nullable="false" />
  658. <Property Name="MinPeakValue" Type="float" Nullable="false" />
  659. <Property Name="todayMaxPeakValue" Type="float" Nullable="false" />
  660. <Property Name="todayMinPeakValue" Type="float" Nullable="false" />
  661. </EntityType>
  662. <EntityType Name="BemsPeopleIncrease">
  663. <Key>
  664. <PropertyRef Name="Date" />
  665. <PropertyRef Name="SiteId" />
  666. </Key>
  667. <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
  668. <Property Name="SiteId" Type="int" Nullable="false" />
  669. <Property Name="m1" Type="nvarchar" MaxLength="50" />
  670. <Property Name="m2" Type="nvarchar" MaxLength="50" />
  671. <Property Name="m3" Type="nvarchar" MaxLength="50" />
  672. <Property Name="m4" Type="nvarchar" MaxLength="50" />
  673. <Property Name="m5" Type="nvarchar" MaxLength="50" />
  674. <Property Name="m6" Type="nvarchar" MaxLength="50" />
  675. <Property Name="m7" Type="nvarchar" MaxLength="50" />
  676. <Property Name="m8" Type="nvarchar" MaxLength="50" />
  677. <Property Name="m9" Type="nvarchar" MaxLength="50" />
  678. <Property Name="m10" Type="nvarchar" MaxLength="50" />
  679. <Property Name="m11" Type="nvarchar" MaxLength="50" />
  680. <Property Name="m12" Type="nvarchar" MaxLength="50" />
  681. </EntityType>
  682. <EntityType Name="BemsPriceCode">
  683. <Key>
  684. <PropertyRef Name="PriceCode" />
  685. </Key>
  686. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  687. <Property Name="PriceCodeDesc" Type="varchar" MaxLength="200" />
  688. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  689. <Property Name="Unit" Type="varchar" MaxLength="20" />
  690. </EntityType>
  691. <EntityType Name="BemsPriceFormula">
  692. <Key>
  693. <PropertyRef Name="SiteId" />
  694. <PropertyRef Name="PriceTypeId" />
  695. <PropertyRef Name="FacilityTypeId" />
  696. <PropertyRef Name="FormulaId" />
  697. <PropertyRef Name="FacilityCode" />
  698. </Key>
  699. <Property Name="SiteId" Type="int" Nullable="false" />
  700. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  701. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  702. <Property Name="FormulaId" Type="int" Nullable="false" />
  703. <Property Name="FacilityCode" Type="int" Nullable="false" />
  704. <Property Name="UseYN" Type="nvarchar" MaxLength="1" Nullable="false" />
  705. </EntityType>
  706. <EntityType Name="BemsPriceMeta">
  707. <Key>
  708. <PropertyRef Name="PriceTypeId" />
  709. <PropertyRef Name="PublishDate" />
  710. </Key>
  711. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  712. <Property Name="PublishDate" Type="datetime" Nullable="false" />
  713. <Property Name="BasePrice" Type="int" />
  714. <Property Name="01_00" Type="float" />
  715. <Property Name="01_01" Type="float" />
  716. <Property Name="01_02" Type="float" />
  717. <Property Name="01_03" Type="float" />
  718. <Property Name="01_04" Type="float" />
  719. <Property Name="01_05" Type="float" />
  720. <Property Name="01_06" Type="float" />
  721. <Property Name="01_07" Type="float" />
  722. <Property Name="01_08" Type="float" />
  723. <Property Name="01_09" Type="float" />
  724. <Property Name="01_10" Type="float" />
  725. <Property Name="01_11" Type="float" />
  726. <Property Name="01_12" Type="float" />
  727. <Property Name="01_13" Type="float" />
  728. <Property Name="01_14" Type="float" />
  729. <Property Name="01_15" Type="float" />
  730. <Property Name="01_16" Type="float" />
  731. <Property Name="01_17" Type="float" />
  732. <Property Name="01_18" Type="float" />
  733. <Property Name="01_19" Type="float" />
  734. <Property Name="01_20" Type="float" />
  735. <Property Name="01_21" Type="float" />
  736. <Property Name="01_22" Type="float" />
  737. <Property Name="01_23" Type="float" />
  738. <Property Name="02_00" Type="float" />
  739. <Property Name="02_01" Type="float" />
  740. <Property Name="02_02" Type="float" />
  741. <Property Name="02_03" Type="float" />
  742. <Property Name="02_04" Type="float" />
  743. <Property Name="02_05" Type="float" />
  744. <Property Name="02_06" Type="float" />
  745. <Property Name="02_07" Type="float" />
  746. <Property Name="02_08" Type="float" />
  747. <Property Name="02_09" Type="float" />
  748. <Property Name="02_10" Type="float" />
  749. <Property Name="02_11" Type="float" />
  750. <Property Name="02_12" Type="float" />
  751. <Property Name="02_13" Type="float" />
  752. <Property Name="02_14" Type="float" />
  753. <Property Name="02_15" Type="float" />
  754. <Property Name="02_16" Type="float" />
  755. <Property Name="02_17" Type="float" />
  756. <Property Name="02_18" Type="float" />
  757. <Property Name="02_19" Type="float" />
  758. <Property Name="02_20" Type="float" />
  759. <Property Name="02_21" Type="float" />
  760. <Property Name="02_22" Type="float" />
  761. <Property Name="02_23" Type="float" />
  762. <Property Name="03_00" Type="float" />
  763. <Property Name="03_01" Type="float" />
  764. <Property Name="03_02" Type="float" />
  765. <Property Name="03_03" Type="float" />
  766. <Property Name="03_04" Type="float" />
  767. <Property Name="03_05" Type="float" />
  768. <Property Name="03_06" Type="float" />
  769. <Property Name="03_07" Type="float" />
  770. <Property Name="03_08" Type="float" />
  771. <Property Name="03_09" Type="float" />
  772. <Property Name="03_10" Type="float" />
  773. <Property Name="03_11" Type="float" />
  774. <Property Name="03_12" Type="float" />
  775. <Property Name="03_13" Type="float" />
  776. <Property Name="03_14" Type="float" />
  777. <Property Name="03_15" Type="float" />
  778. <Property Name="03_16" Type="float" />
  779. <Property Name="03_17" Type="float" />
  780. <Property Name="03_18" Type="float" />
  781. <Property Name="03_19" Type="float" />
  782. <Property Name="03_20" Type="float" />
  783. <Property Name="03_21" Type="float" />
  784. <Property Name="03_22" Type="float" />
  785. <Property Name="03_23" Type="float" />
  786. <Property Name="04_00" Type="float" />
  787. <Property Name="04_01" Type="float" />
  788. <Property Name="04_02" Type="float" />
  789. <Property Name="04_03" Type="float" />
  790. <Property Name="04_04" Type="float" />
  791. <Property Name="04_05" Type="float" />
  792. <Property Name="04_06" Type="float" />
  793. <Property Name="04_07" Type="float" />
  794. <Property Name="04_08" Type="float" />
  795. <Property Name="04_09" Type="float" />
  796. <Property Name="04_10" Type="float" />
  797. <Property Name="04_11" Type="float" />
  798. <Property Name="04_12" Type="float" />
  799. <Property Name="04_13" Type="float" />
  800. <Property Name="04_14" Type="float" />
  801. <Property Name="04_15" Type="float" />
  802. <Property Name="04_16" Type="float" />
  803. <Property Name="04_17" Type="float" />
  804. <Property Name="04_18" Type="float" />
  805. <Property Name="04_19" Type="float" />
  806. <Property Name="04_20" Type="float" />
  807. <Property Name="04_21" Type="float" />
  808. <Property Name="04_22" Type="float" />
  809. <Property Name="04_23" Type="float" />
  810. <Property Name="05_00" Type="float" />
  811. <Property Name="05_01" Type="float" />
  812. <Property Name="05_02" Type="float" />
  813. <Property Name="05_03" Type="float" />
  814. <Property Name="05_04" Type="float" />
  815. <Property Name="05_05" Type="float" />
  816. <Property Name="05_06" Type="float" />
  817. <Property Name="05_07" Type="float" />
  818. <Property Name="05_08" Type="float" />
  819. <Property Name="05_09" Type="float" />
  820. <Property Name="05_10" Type="float" />
  821. <Property Name="05_11" Type="float" />
  822. <Property Name="05_12" Type="float" />
  823. <Property Name="05_13" Type="float" />
  824. <Property Name="05_14" Type="float" />
  825. <Property Name="05_15" Type="float" />
  826. <Property Name="05_16" Type="float" />
  827. <Property Name="05_17" Type="float" />
  828. <Property Name="05_18" Type="float" />
  829. <Property Name="05_19" Type="float" />
  830. <Property Name="05_20" Type="float" />
  831. <Property Name="05_21" Type="float" />
  832. <Property Name="05_22" Type="float" />
  833. <Property Name="05_23" Type="float" />
  834. <Property Name="06_00" Type="float" />
  835. <Property Name="06_01" Type="float" />
  836. <Property Name="06_02" Type="float" />
  837. <Property Name="06_03" Type="float" />
  838. <Property Name="06_04" Type="float" />
  839. <Property Name="06_05" Type="float" />
  840. <Property Name="06_06" Type="float" />
  841. <Property Name="06_07" Type="float" />
  842. <Property Name="06_08" Type="float" />
  843. <Property Name="06_09" Type="float" />
  844. <Property Name="06_10" Type="float" />
  845. <Property Name="06_11" Type="float" />
  846. <Property Name="06_12" Type="float" />
  847. <Property Name="06_13" Type="float" />
  848. <Property Name="06_14" Type="float" />
  849. <Property Name="06_15" Type="float" />
  850. <Property Name="06_16" Type="float" />
  851. <Property Name="06_17" Type="float" />
  852. <Property Name="06_18" Type="float" />
  853. <Property Name="06_19" Type="float" />
  854. <Property Name="06_20" Type="float" />
  855. <Property Name="06_21" Type="float" />
  856. <Property Name="06_22" Type="float" />
  857. <Property Name="06_23" Type="float" />
  858. <Property Name="07_00" Type="float" />
  859. <Property Name="07_01" Type="float" />
  860. <Property Name="07_02" Type="float" />
  861. <Property Name="07_03" Type="float" />
  862. <Property Name="07_04" Type="float" />
  863. <Property Name="07_05" Type="float" />
  864. <Property Name="07_06" Type="float" />
  865. <Property Name="07_07" Type="float" />
  866. <Property Name="07_08" Type="float" />
  867. <Property Name="07_09" Type="float" />
  868. <Property Name="07_10" Type="float" />
  869. <Property Name="07_11" Type="float" />
  870. <Property Name="07_12" Type="float" />
  871. <Property Name="07_13" Type="float" />
  872. <Property Name="07_14" Type="float" />
  873. <Property Name="07_15" Type="float" />
  874. <Property Name="07_16" Type="float" />
  875. <Property Name="07_17" Type="float" />
  876. <Property Name="07_18" Type="float" />
  877. <Property Name="07_19" Type="float" />
  878. <Property Name="07_20" Type="float" />
  879. <Property Name="07_21" Type="float" />
  880. <Property Name="07_22" Type="float" />
  881. <Property Name="07_23" Type="float" />
  882. <Property Name="08_00" Type="float" />
  883. <Property Name="08_01" Type="float" />
  884. <Property Name="08_02" Type="float" />
  885. <Property Name="08_03" Type="float" />
  886. <Property Name="08_04" Type="float" />
  887. <Property Name="08_05" Type="float" />
  888. <Property Name="08_06" Type="float" />
  889. <Property Name="08_07" Type="float" />
  890. <Property Name="08_08" Type="float" />
  891. <Property Name="08_09" Type="float" />
  892. <Property Name="08_10" Type="float" />
  893. <Property Name="08_11" Type="float" />
  894. <Property Name="08_12" Type="float" />
  895. <Property Name="08_13" Type="float" />
  896. <Property Name="08_14" Type="float" />
  897. <Property Name="08_15" Type="float" />
  898. <Property Name="08_16" Type="float" />
  899. <Property Name="08_17" Type="float" />
  900. <Property Name="08_18" Type="float" />
  901. <Property Name="08_19" Type="float" />
  902. <Property Name="08_20" Type="float" />
  903. <Property Name="08_21" Type="float" />
  904. <Property Name="08_22" Type="float" />
  905. <Property Name="08_23" Type="float" />
  906. <Property Name="09_00" Type="float" />
  907. <Property Name="09_01" Type="float" />
  908. <Property Name="09_02" Type="float" />
  909. <Property Name="09_03" Type="float" />
  910. <Property Name="09_04" Type="float" />
  911. <Property Name="09_05" Type="float" />
  912. <Property Name="09_06" Type="float" />
  913. <Property Name="09_07" Type="float" />
  914. <Property Name="09_08" Type="float" />
  915. <Property Name="09_09" Type="float" />
  916. <Property Name="09_10" Type="float" />
  917. <Property Name="09_11" Type="float" />
  918. <Property Name="09_12" Type="float" />
  919. <Property Name="09_13" Type="float" />
  920. <Property Name="09_14" Type="float" />
  921. <Property Name="09_15" Type="float" />
  922. <Property Name="09_16" Type="float" />
  923. <Property Name="09_17" Type="float" />
  924. <Property Name="09_18" Type="float" />
  925. <Property Name="09_19" Type="float" />
  926. <Property Name="09_20" Type="float" />
  927. <Property Name="09_21" Type="float" />
  928. <Property Name="09_22" Type="float" />
  929. <Property Name="09_23" Type="float" />
  930. <Property Name="10_00" Type="float" />
  931. <Property Name="10_01" Type="float" />
  932. <Property Name="10_02" Type="float" />
  933. <Property Name="10_03" Type="float" />
  934. <Property Name="10_04" Type="float" />
  935. <Property Name="10_05" Type="float" />
  936. <Property Name="10_06" Type="float" />
  937. <Property Name="10_07" Type="float" />
  938. <Property Name="10_08" Type="float" />
  939. <Property Name="10_09" Type="float" />
  940. <Property Name="10_10" Type="float" />
  941. <Property Name="10_11" Type="float" />
  942. <Property Name="10_12" Type="float" />
  943. <Property Name="10_13" Type="float" />
  944. <Property Name="10_14" Type="float" />
  945. <Property Name="10_15" Type="float" />
  946. <Property Name="10_16" Type="float" />
  947. <Property Name="10_17" Type="float" />
  948. <Property Name="10_18" Type="float" />
  949. <Property Name="10_19" Type="float" />
  950. <Property Name="10_20" Type="float" />
  951. <Property Name="10_21" Type="float" />
  952. <Property Name="10_22" Type="float" />
  953. <Property Name="10_23" Type="float" />
  954. <Property Name="11_00" Type="float" />
  955. <Property Name="11_01" Type="float" />
  956. <Property Name="11_02" Type="float" />
  957. <Property Name="11_03" Type="float" />
  958. <Property Name="11_04" Type="float" />
  959. <Property Name="11_05" Type="float" />
  960. <Property Name="11_06" Type="float" />
  961. <Property Name="11_07" Type="float" />
  962. <Property Name="11_08" Type="float" />
  963. <Property Name="11_09" Type="float" />
  964. <Property Name="11_10" Type="float" />
  965. <Property Name="11_11" Type="float" />
  966. <Property Name="11_12" Type="float" />
  967. <Property Name="11_13" Type="float" />
  968. <Property Name="11_14" Type="float" />
  969. <Property Name="11_15" Type="float" />
  970. <Property Name="11_16" Type="float" />
  971. <Property Name="11_17" Type="float" />
  972. <Property Name="11_18" Type="float" />
  973. <Property Name="11_19" Type="float" />
  974. <Property Name="11_20" Type="float" />
  975. <Property Name="11_21" Type="float" />
  976. <Property Name="11_22" Type="float" />
  977. <Property Name="11_23" Type="float" />
  978. <Property Name="12_00" Type="float" />
  979. <Property Name="12_01" Type="float" />
  980. <Property Name="12_02" Type="float" />
  981. <Property Name="12_03" Type="float" />
  982. <Property Name="12_04" Type="float" />
  983. <Property Name="12_05" Type="float" />
  984. <Property Name="12_06" Type="float" />
  985. <Property Name="12_07" Type="float" />
  986. <Property Name="12_08" Type="float" />
  987. <Property Name="12_09" Type="float" />
  988. <Property Name="12_10" Type="float" />
  989. <Property Name="12_11" Type="float" />
  990. <Property Name="12_12" Type="float" />
  991. <Property Name="12_13" Type="float" />
  992. <Property Name="12_14" Type="float" />
  993. <Property Name="12_15" Type="float" />
  994. <Property Name="12_16" Type="float" />
  995. <Property Name="12_17" Type="float" />
  996. <Property Name="12_18" Type="float" />
  997. <Property Name="12_19" Type="float" />
  998. <Property Name="12_20" Type="float" />
  999. <Property Name="12_21" Type="float" />
  1000. <Property Name="12_22" Type="float" />
  1001. <Property Name="12_23" Type="float" />
  1002. </EntityType>
  1003. <EntityType Name="BemsPriceType">
  1004. <Key>
  1005. <PropertyRef Name="PriceTypeId" />
  1006. </Key>
  1007. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1008. <Property Name="PriceTypeIdDesc" Type="varchar" MaxLength="200" />
  1009. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1010. </EntityType>
  1011. <EntityType Name="BemsRentalRate">
  1012. <Key>
  1013. <PropertyRef Name="Date" />
  1014. <PropertyRef Name="SiteId" />
  1015. </Key>
  1016. <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
  1017. <Property Name="SiteId" Type="int" Nullable="false" />
  1018. <Property Name="m1" Type="nvarchar" MaxLength="50" />
  1019. <Property Name="m2" Type="nvarchar" MaxLength="50" />
  1020. <Property Name="m3" Type="nvarchar" MaxLength="50" />
  1021. <Property Name="m4" Type="nvarchar" MaxLength="50" />
  1022. <Property Name="m5" Type="nvarchar" MaxLength="50" />
  1023. <Property Name="m6" Type="nvarchar" MaxLength="50" />
  1024. <Property Name="m7" Type="nvarchar" MaxLength="50" />
  1025. <Property Name="m8" Type="nvarchar" MaxLength="50" />
  1026. <Property Name="m9" Type="nvarchar" MaxLength="50" />
  1027. <Property Name="m10" Type="nvarchar" MaxLength="50" />
  1028. <Property Name="m11" Type="nvarchar" MaxLength="50" />
  1029. <Property Name="m12" Type="nvarchar" MaxLength="50" />
  1030. </EntityType>
  1031. <EntityType Name="BemsReportFormat">
  1032. <Key>
  1033. <PropertyRef Name="ReportFormatId" />
  1034. <PropertyRef Name="parts" />
  1035. </Key>
  1036. <Property Name="ReportFormatId" Type="int" Nullable="false" />
  1037. <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
  1038. <Property Name="Content" Type="varchar(max)" />
  1039. <Property Name="parts" Type="int" Nullable="false" />
  1040. </EntityType>
  1041. <EntityType Name="BemsReportHistory">
  1042. <Key>
  1043. <PropertyRef Name="Seq" />
  1044. <PropertyRef Name="DateTime" />
  1045. <PropertyRef Name="ReportFormatId" />
  1046. <PropertyRef Name="parts" />
  1047. </Key>
  1048. <Property Name="SiteId" Type="int" Nullable="false" />
  1049. <Property Name="Seq" Type="int" Nullable="false" />
  1050. <Property Name="DateTime" Type="datetime" Nullable="false" />
  1051. <Property Name="ReportName" Type="varchar" MaxLength="200" Nullable="false" />
  1052. <Property Name="ReportFormatId" Type="int" Nullable="false" />
  1053. <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
  1054. <Property Name="Content" Type="varchar(max)" />
  1055. <Property Name="Writer" Type="varchar" MaxLength="50" />
  1056. <Property Name="Confirm1" Type="varchar" MaxLength="50" />
  1057. <Property Name="Confirm2" Type="varchar" MaxLength="50" />
  1058. <Property Name="parts" Type="int" Nullable="false" />
  1059. <Property Name="FileName" Type="nvarchar" MaxLength="100" />
  1060. </EntityType>
  1061. <EntityType Name="BemsServiceType">
  1062. <Key>
  1063. <PropertyRef Name="ServiceTypeId" />
  1064. </Key>
  1065. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1066. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  1067. </EntityType>
  1068. <EntityType Name="BemsSitePrice">
  1069. <Key>
  1070. <PropertyRef Name="SiteID" />
  1071. <PropertyRef Name="FuelTypeId" />
  1072. <PropertyRef Name="PriceTypeId" />
  1073. <PropertyRef Name="PriceCode" />
  1074. </Key>
  1075. <Property Name="SiteID" Type="int" Nullable="false" />
  1076. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1077. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1078. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  1079. <Property Name="UseYN" Type="varchar" MaxLength="1" Nullable="false" />
  1080. </EntityType>
  1081. <EntityType Name="BemsSitePriceHistory">
  1082. <Key>
  1083. <PropertyRef Name="SiteId" />
  1084. <PropertyRef Name="FuelTypeId" />
  1085. <PropertyRef Name="PriceTypeId" />
  1086. <PropertyRef Name="PriceCode" />
  1087. <PropertyRef Name="PayDate" />
  1088. </Key>
  1089. <Property Name="SiteId" Type="int" Nullable="false" />
  1090. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1091. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1092. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  1093. <Property Name="PriceValue" Type="varchar" MaxLength="200" />
  1094. <Property Name="PayDate" Type="varchar" MaxLength="6" Nullable="false" />
  1095. <Property Name="StartDate" Type="datetime" />
  1096. <Property Name="EndDate" Type="datetime" />
  1097. <Property Name="PayCharge" Type="varchar" MaxLength="200" />
  1098. </EntityType>
  1099. <EntityType Name="CmAlarmAdmin">
  1100. <Key>
  1101. <PropertyRef Name="SiteId" />
  1102. </Key>
  1103. <Property Name="SiteId" Type="int" Nullable="false" />
  1104. <Property Name="UserCode" Type="nvarchar" MaxLength="50" />
  1105. <Property Name="DeptCode" Type="nvarchar" MaxLength="50" />
  1106. <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
  1107. <Property Name="EmailAddress" Type="nvarchar" MaxLength="50" />
  1108. <Property Name="EmailPassword" Type="nvarchar" MaxLength="50" />
  1109. </EntityType>
  1110. <EntityType Name="CmAnnouncement">
  1111. <Key>
  1112. <PropertyRef Name="SiteId" />
  1113. <PropertyRef Name="AnnouncementId" />
  1114. </Key>
  1115. <Property Name="SiteId" Type="int" Nullable="false" />
  1116. <Property Name="AnnouncementId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1117. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  1118. <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
  1119. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  1120. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1121. <Property Name="FileId" Type="int" />
  1122. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1123. <Property Name="UpdateDate" Type="datetime" Nullable="false" />
  1124. <Property Name="IsUse" Type="bit" />
  1125. <Property Name="ReadCount" Type="int" Nullable="false" />
  1126. </EntityType>
  1127. <EntityType Name="CmBuilding">
  1128. <Key>
  1129. <PropertyRef Name="SiteId" />
  1130. <PropertyRef Name="BuildingId" />
  1131. </Key>
  1132. <Property Name="SiteId" Type="int" Nullable="false" />
  1133. <Property Name="BuildingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1134. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1135. <Property Name="FileId" Type="int" />
  1136. <Property Name="IsUse" Type="bit" />
  1137. <Property Name="SortOrderNo" Type="int" />
  1138. </EntityType>
  1139. <EntityType Name="CmBusinessField">
  1140. <Key>
  1141. <PropertyRef Name="SiteId" />
  1142. <PropertyRef Name="BusinessFieldId" />
  1143. </Key>
  1144. <Property Name="SiteId" Type="int" Nullable="false" />
  1145. <Property Name="BusinessFieldId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1146. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1147. <Property Name="IsUse" Type="bit" />
  1148. </EntityType>
  1149. <EntityType Name="CmCompany">
  1150. <Key>
  1151. <PropertyRef Name="SiteId" />
  1152. <PropertyRef Name="CompanyId" />
  1153. </Key>
  1154. <Property Name="SiteId" Type="int" Nullable="false" />
  1155. <Property Name="CompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1156. <Property Name="CompanyTypeId" Type="int" Nullable="false" />
  1157. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1158. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1159. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  1160. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" Nullable="false" />
  1161. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  1162. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  1163. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  1164. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1165. <Property Name="Address1" Type="nvarchar" MaxLength="50" />
  1166. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1167. <Property Name="Homepage" Type="nvarchar" MaxLength="100" />
  1168. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1169. <Property Name="IsUse" Type="bit" />
  1170. </EntityType>
  1171. <EntityType Name="CmCompanyType">
  1172. <Key>
  1173. <PropertyRef Name="SiteId" />
  1174. <PropertyRef Name="CompanyTypeId" />
  1175. </Key>
  1176. <Property Name="SiteId" Type="int" Nullable="false" />
  1177. <Property Name="CompanyTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1178. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1179. <Property Name="IsUse" Type="bit" />
  1180. </EntityType>
  1181. <EntityType Name="CmDepartment">
  1182. <Key>
  1183. <PropertyRef Name="SiteId" />
  1184. <PropertyRef Name="CompanyId" />
  1185. <PropertyRef Name="DepartmentId" />
  1186. </Key>
  1187. <Property Name="SiteId" Type="int" Nullable="false" />
  1188. <Property Name="CompanyId" Type="int" Nullable="false" />
  1189. <Property Name="DepartmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1190. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1191. <Property Name="ShortName" Type="nvarchar" MaxLength="50" />
  1192. <Property Name="FaxNo" Type="nvarchar" MaxLength="50" />
  1193. <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
  1194. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1195. <Property Name="IsUse" Type="bit" />
  1196. </EntityType>
  1197. <EntityType Name="CmFacility">
  1198. <Key>
  1199. <PropertyRef Name="SiteId" />
  1200. <PropertyRef Name="FacilityCode" />
  1201. </Key>
  1202. <Property Name="SiteId" Type="int" Nullable="false" />
  1203. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  1204. <Property Name="FacilityCode" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1205. <Property Name="FirstClassId" Type="int" />
  1206. <Property Name="SecondClassId" Type="int" />
  1207. <Property Name="ThirdClassId" Type="int" />
  1208. <Property Name="DeviceType" Type="nvarchar" MaxLength="48" />
  1209. <Property Name="ParentFacilityCode" Type="int" />
  1210. <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
  1211. <Property Name="Nickname" Type="nvarchar" MaxLength="40" />
  1212. <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
  1213. <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
  1214. <Property Name="ManufactureDate" Type="date" />
  1215. <Property Name="ManufactureSerial" Type="nvarchar" MaxLength="20" />
  1216. <Property Name="ManufactureModel" Type="nvarchar" MaxLength="40" />
  1217. <Property Name="Supplier" Type="nvarchar" MaxLength="40" />
  1218. <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
  1219. <Property Name="BuildingId" Type="int" />
  1220. <Property Name="FloorId" Type="int" />
  1221. <Property Name="ZoneId" Type="int" />
  1222. <Property Name="InstallDate" Type="date" />
  1223. <Property Name="OperationStartDate" Type="date" />
  1224. <Property Name="FacilityCapacity" Type="nvarchar" MaxLength="40" />
  1225. <Property Name="FacilityCost" Type="int" />
  1226. <Property Name="FacilityCount" Type="int" />
  1227. <Property Name="FacilitySeviceLifeYear" Type="int" />
  1228. <Property Name="FacilityUsage" Type="nvarchar" MaxLength="80" />
  1229. <Property Name="RatedPowerConsumption" Type="nvarchar" MaxLength="40" />
  1230. <Property Name="RatedCOP" Type="float" />
  1231. <Property Name="MainContactorUserId" Type="nvarchar" MaxLength="24" />
  1232. <Property Name="SubContactorUserId" Type="nvarchar" MaxLength="24" />
  1233. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  1234. <Property Name="Reserved1" Type="nvarchar" MaxLength="64" />
  1235. <Property Name="Reserved2" Type="nvarchar" MaxLength="64" />
  1236. <Property Name="IsUse" Type="bit" />
  1237. <Property Name="FileId" Type="int" />
  1238. <Property Name="IsVirtualFacility" Type="bit" Nullable="false" />
  1239. <Property Name="FuelTypeId" Type="smallint" />
  1240. <Property Name="ContractType" Type="smallint" />
  1241. </EntityType>
  1242. <EntityType Name="CmFacilityFile">
  1243. <Key>
  1244. <PropertyRef Name="SiteId" />
  1245. <PropertyRef Name="FileId" />
  1246. </Key>
  1247. <Property Name="SiteId" Type="int" Nullable="false" />
  1248. <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1249. <Property Name="FacilityCode" Type="int" Nullable="false" />
  1250. <Property Name="InsertedDate" Type="datetime" />
  1251. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  1252. <Property Name="UpdatedDate" Type="datetime" />
  1253. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1254. </EntityType>
  1255. <EntityType Name="CmFacilityTempSet">
  1256. <Key>
  1257. <PropertyRef Name="SiteId" />
  1258. <PropertyRef Name="FacilityCode" />
  1259. </Key>
  1260. <Property Name="SiteId" Type="int" Nullable="false" />
  1261. <Property Name="FacilityCode" Type="int" Nullable="false" />
  1262. <Property Name="T1" Type="float" Nullable="false" />
  1263. <Property Name="T2" Type="float" Nullable="false" />
  1264. <Property Name="T3" Type="float" Nullable="false" />
  1265. <Property Name="T4" Type="float" Nullable="false" />
  1266. <Property Name="T5" Type="float" Nullable="false" />
  1267. <Property Name="T6" Type="float" Nullable="false" />
  1268. <Property Name="T7" Type="float" Nullable="false" />
  1269. <Property Name="T8" Type="float" Nullable="false" />
  1270. <Property Name="T9" Type="float" Nullable="false" />
  1271. <Property Name="T10" Type="float" Nullable="false" />
  1272. <Property Name="T11" Type="float" Nullable="false" />
  1273. <Property Name="T12" Type="float" Nullable="false" />
  1274. </EntityType>
  1275. <EntityType Name="CmFile">
  1276. <Key>
  1277. <PropertyRef Name="SiteId" />
  1278. <PropertyRef Name="FileId" />
  1279. </Key>
  1280. <Property Name="SiteId" Type="int" Nullable="false" />
  1281. <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1282. <Property Name="FileCategoryId" Type="int" Nullable="false" />
  1283. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1284. <Property Name="FileSize" Type="int" />
  1285. <Property Name="CreatedDate" Type="datetime" />
  1286. <Property Name="ContentType" Type="nvarchar" MaxLength="128" />
  1287. </EntityType>
  1288. <EntityType Name="CmFileCategory">
  1289. <Key>
  1290. <PropertyRef Name="FileCategoryId" />
  1291. </Key>
  1292. <Property Name="FileCategoryId" Type="int" Nullable="false" />
  1293. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1294. </EntityType>
  1295. <EntityType Name="CmFloor">
  1296. <Key>
  1297. <PropertyRef Name="SiteId" />
  1298. <PropertyRef Name="BuildingId" />
  1299. <PropertyRef Name="FloorId" />
  1300. </Key>
  1301. <Property Name="SiteId" Type="int" Nullable="false" />
  1302. <Property Name="BuildingId" Type="int" Nullable="false" />
  1303. <Property Name="FloorId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1304. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1305. </EntityType>
  1306. <EntityType Name="CmHoliday">
  1307. <Key>
  1308. <PropertyRef Name="SiteId" />
  1309. <PropertyRef Name="HolidayMonth" />
  1310. <PropertyRef Name="HolidayDay" />
  1311. <PropertyRef Name="IsLunar" />
  1312. </Key>
  1313. <Property Name="SiteId" Type="int" Nullable="false" />
  1314. <Property Name="HolidayMonth" Type="smallint" Nullable="false" />
  1315. <Property Name="HolidayDay" Type="smallint" Nullable="false" />
  1316. <Property Name="IsLunar" Type="bit" Nullable="false" />
  1317. <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
  1318. <Property Name="IsUse" Type="bit" />
  1319. </EntityType>
  1320. <EntityType Name="CmHolidayCustom">
  1321. <Key>
  1322. <PropertyRef Name="SiteId" />
  1323. <PropertyRef Name="HolidayDate" />
  1324. </Key>
  1325. <Property Name="SiteId" Type="int" Nullable="false" />
  1326. <Property Name="HolidayDate" Type="datetime" Nullable="false" />
  1327. <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
  1328. <Property Name="IsUse" Type="bit" />
  1329. </EntityType>
  1330. <EntityType Name="CmHolidayWeekend">
  1331. <Key>
  1332. <PropertyRef Name="SiteId" />
  1333. </Key>
  1334. <Property Name="SiteId" Type="int" Nullable="false" />
  1335. <Property Name="Saturday" Type="bit" Nullable="false" />
  1336. <Property Name="Sunday" Type="bit" Nullable="false" />
  1337. <Property Name="IsUse" Type="bit" />
  1338. </EntityType>
  1339. <EntityType Name="CmMenu">
  1340. <Key>
  1341. <PropertyRef Name="SiteId" />
  1342. <PropertyRef Name="MenuId" />
  1343. </Key>
  1344. <Property Name="SiteId" Type="int" Nullable="false" />
  1345. <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
  1346. <Property Name="Used" Type="bit" />
  1347. <Property Name="MenuPath" Type="nvarchar" MaxLength="255" />
  1348. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  1349. </EntityType>
  1350. <EntityType Name="CmPartner">
  1351. <Key>
  1352. <PropertyRef Name="SiteId" />
  1353. <PropertyRef Name="PartnerId" />
  1354. </Key>
  1355. <Property Name="SiteId" Type="int" Nullable="false" />
  1356. <Property Name="PartnerId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1357. <Property Name="PartnerTypeId" Type="int" Nullable="false" />
  1358. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1359. <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" />
  1360. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" />
  1361. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
  1362. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  1363. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  1364. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  1365. <Property Name="AddressZip1" Type="nchar" MaxLength="3" />
  1366. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1367. <Property Name="Address1" Type="nvarchar" MaxLength="50" />
  1368. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1369. <Property Name="HomepageUri" Type="nvarchar" MaxLength="100" />
  1370. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  1371. <Property Name="IsUse" Type="bit" />
  1372. </EntityType>
  1373. <EntityType Name="CmPartnerType">
  1374. <Key>
  1375. <PropertyRef Name="PartnerTypeId" />
  1376. </Key>
  1377. <Property Name="PartnerTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1378. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1379. <Property Name="IsUse" Type="bit" />
  1380. </EntityType>
  1381. <EntityType Name="CmPatrolCourse">
  1382. <Key>
  1383. <PropertyRef Name="SiteId" />
  1384. <PropertyRef Name="PatrolCourseId" />
  1385. </Key>
  1386. <Property Name="SiteId" Type="int" Nullable="false" />
  1387. <Property Name="PatrolCourseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1388. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1389. </EntityType>
  1390. <EntityType Name="CmPatrolCoursePos">
  1391. <Key>
  1392. <PropertyRef Name="SiteId" />
  1393. <PropertyRef Name="PatrolCourseId" />
  1394. <PropertyRef Name="BuildingId" />
  1395. <PropertyRef Name="FloorId" />
  1396. <PropertyRef Name="PosId" />
  1397. </Key>
  1398. <Property Name="SiteId" Type="int" Nullable="false" />
  1399. <Property Name="PatrolCourseId" Type="int" Nullable="false" />
  1400. <Property Name="BuildingId" Type="int" Nullable="false" />
  1401. <Property Name="FloorId" Type="int" Nullable="false" />
  1402. <Property Name="PosId" Type="int" Nullable="false" />
  1403. <Property Name="CourseOrder" Type="int" Nullable="false" />
  1404. </EntityType>
  1405. <EntityType Name="CmPatrolGroup">
  1406. <Key>
  1407. <PropertyRef Name="SiteId" />
  1408. <PropertyRef Name="PatrolGroupId" />
  1409. </Key>
  1410. <Property Name="SiteId" Type="int" Nullable="false" />
  1411. <Property Name="PatrolGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1412. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1413. </EntityType>
  1414. <EntityType Name="CmPatrolGroupUser">
  1415. <Key>
  1416. <PropertyRef Name="SiteId" />
  1417. <PropertyRef Name="PatrolGroupId" />
  1418. <PropertyRef Name="UserId" />
  1419. </Key>
  1420. <Property Name="SiteId" Type="int" Nullable="false" />
  1421. <Property Name="PatrolGroupId" Type="int" Nullable="false" />
  1422. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1423. </EntityType>
  1424. <EntityType Name="CmPatrolHistory">
  1425. <Key>
  1426. <PropertyRef Name="PatrolHistoryId" />
  1427. </Key>
  1428. <Property Name="SiteId" Type="int" Nullable="false" />
  1429. <Property Name="PatrolHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1430. <Property Name="ScheduleId" Type="int" Nullable="false" />
  1431. <Property Name="startDate" Type="datetime" Nullable="false" />
  1432. <Property Name="endDate" Type="datetime" />
  1433. <Property Name="resultTypeId" Type="int" Nullable="false" />
  1434. <Property Name="resultDesc" Type="varchar" MaxLength="1024" />
  1435. <Property Name="resultPosCnt" Type="int" />
  1436. <Property Name="resultNormalCnt" Type="int" />
  1437. <Property Name="resultAbnormalCnt" Type="int" />
  1438. </EntityType>
  1439. <EntityType Name="CmPatrolHistoryPos">
  1440. <Key>
  1441. <PropertyRef Name="mId" />
  1442. </Key>
  1443. <Property Name="SiteId" Type="int" Nullable="false" />
  1444. <Property Name="PatrolHistoryId" Type="int" Nullable="false" />
  1445. <Property Name="PosId" Type="int" Nullable="false" />
  1446. <Property Name="PatrolTime" Type="datetime" Nullable="false" />
  1447. <Property Name="term" Type="int" />
  1448. <Property Name="resultType" Type="int" Nullable="false" />
  1449. <Property Name="mId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1450. </EntityType>
  1451. <EntityType Name="CmPatrolPlan">
  1452. <Key>
  1453. <PropertyRef Name="SiteId" />
  1454. <PropertyRef Name="PatrolPlanId" />
  1455. </Key>
  1456. <Property Name="SiteId" Type="int" Nullable="false" />
  1457. <Property Name="PatrolPlanId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1458. <Property Name="GroupId" Type="int" Nullable="false" />
  1459. <Property Name="CourseId" Type="int" Nullable="false" />
  1460. <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
  1461. <Property Name="PlanDesc" Type="varchar" MaxLength="1024" />
  1462. <Property Name="term" Type="int" Nullable="false" />
  1463. <Property Name="inDate" Type="datetime" />
  1464. </EntityType>
  1465. <EntityType Name="CmPatrolPos">
  1466. <Key>
  1467. <PropertyRef Name="SiteId" />
  1468. <PropertyRef Name="PosId" />
  1469. </Key>
  1470. <Property Name="SiteId" Type="int" Nullable="false" />
  1471. <Property Name="BuildingId" Type="int" Nullable="false" />
  1472. <Property Name="FloorId" Type="int" Nullable="false" />
  1473. <Property Name="PosId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1474. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1475. <Property Name="TagId" Type="nvarchar" MaxLength="32" />
  1476. <Property Name="PosDesc" Type="nvarchar" MaxLength="1024" />
  1477. </EntityType>
  1478. <EntityType Name="CmPatrolSchedule">
  1479. <Key>
  1480. <PropertyRef Name="SiteId" />
  1481. <PropertyRef Name="ScheduleId" />
  1482. </Key>
  1483. <Property Name="SiteId" Type="int" Nullable="false" />
  1484. <Property Name="ScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1485. <Property Name="PlanId" Type="int" Nullable="false" />
  1486. <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
  1487. <Property Name="ScheduleDesc" Type="varchar" MaxLength="128" />
  1488. <Property Name="inDate" Type="datetime" />
  1489. <Property Name="patrolDateTime" Type="datetime" Nullable="false" />
  1490. </EntityType>
  1491. <EntityType Name="CmPatrolType">
  1492. <Key>
  1493. <PropertyRef Name="SiteId" />
  1494. <PropertyRef Name="PatrolTypeId" />
  1495. </Key>
  1496. <Property Name="SiteId" Type="int" Nullable="false" />
  1497. <Property Name="PatrolTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1498. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1499. <Property Name="IsUse" Type="bit" />
  1500. </EntityType>
  1501. <EntityType Name="CmPosition">
  1502. <Key>
  1503. <PropertyRef Name="SiteId" />
  1504. <PropertyRef Name="PositionId" />
  1505. </Key>
  1506. <Property Name="SiteId" Type="int" Nullable="false" />
  1507. <Property Name="PositionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1508. <Property Name="Name" Type="nvarchar" MaxLength="40" Nullable="false" />
  1509. <Property Name="IsUse" Type="bit" />
  1510. <Property Name="Position" Type="int" />
  1511. </EntityType>
  1512. <EntityType Name="CmServiceEnergyCalcDay">
  1513. <Key>
  1514. <PropertyRef Name="SiteId" />
  1515. <PropertyRef Name="calDate" />
  1516. <PropertyRef Name="ServiceTypeId" />
  1517. </Key>
  1518. <Property Name="SiteId" Type="int" Nullable="false" />
  1519. <Property Name="calDate" Type="datetime" Nullable="false" />
  1520. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1521. <Property Name="Value" Type="float" />
  1522. </EntityType>
  1523. <EntityType Name="CmServiceEnergyCalcMonth">
  1524. <Key>
  1525. <PropertyRef Name="SiteId" />
  1526. <PropertyRef Name="calDate" />
  1527. <PropertyRef Name="ServiceTypeId" />
  1528. </Key>
  1529. <Property Name="SiteId" Type="int" Nullable="false" />
  1530. <Property Name="calDate" Type="datetime" Nullable="false" />
  1531. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1532. <Property Name="Value" Type="float" />
  1533. </EntityType>
  1534. <EntityType Name="CmSite">
  1535. <Key>
  1536. <PropertyRef Name="SiteId" />
  1537. </Key>
  1538. <Property Name="SiteId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1539. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1540. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  1541. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1542. <Property Name="Address1" Type="nvarchar" MaxLength="100" />
  1543. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1544. <Property Name="PhoneNo" Type="nvarchar" MaxLength="24" />
  1545. <Property Name="URL" Type="nvarchar" MaxLength="100" />
  1546. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1547. <Property Name="IsUse" Type="bit" />
  1548. <Property Name="SortOrderNo" Type="int" />
  1549. <Property Name="InsertedDate" Type="datetime" />
  1550. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  1551. <Property Name="UpdatedDate" Type="datetime" />
  1552. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1553. <Property Name="IsControlSchedule" Type="bit" />
  1554. <Property Name="ScheduleCheckHour" Type="int" />
  1555. <Property Name="MaxPeak" Type="float" />
  1556. <Property Name="lat" Type="float" />
  1557. <Property Name="lng" Type="float" />
  1558. <Property Name="controlSchedule" Type="bit" />
  1559. <Property Name="HDD" Type="nvarchar" MaxLength="24" />
  1560. <Property Name="CDD" Type="nvarchar" MaxLength="24" />
  1561. <Property Name="BuildingSize" Type="nvarchar" MaxLength="50" />
  1562. <Property Name="GrossArea" Type="nvarchar" MaxLength="24" />
  1563. <Property Name="BuildingArea" Type="nvarchar" MaxLength="24" />
  1564. <Property Name="FloorAreaRatio" Type="nvarchar" MaxLength="24" />
  1565. <Property Name="BuildingCoverageRatio" Type="nvarchar" MaxLength="24" />
  1566. <Property Name="MainUse" Type="nvarchar" MaxLength="10" />
  1567. <Property Name="CompletionDate" Type="nvarchar" MaxLength="24" />
  1568. <Property Name="Standard" Type="nvarchar" MaxLength="24" />
  1569. <Property Name="MainUseIndex" Type="int" />
  1570. </EntityType>
  1571. <EntityType Name="CmUser">
  1572. <Key>
  1573. <PropertyRef Name="SiteId" />
  1574. <PropertyRef Name="UserId" />
  1575. </Key>
  1576. <Property Name="SiteId" Type="int" Nullable="false" />
  1577. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1578. <Property Name="CompanyId" Type="int" />
  1579. <Property Name="DepartmentId" Type="int" />
  1580. <Property Name="PositionId" Type="int" />
  1581. <Property Name="BusinessFieldId" Type="int" />
  1582. <Property Name="UserGroupId" Type="int" />
  1583. <Property Name="Name" Type="nvarchar" MaxLength="30" Nullable="false" />
  1584. <Property Name="Passwd" Type="nvarchar" MaxLength="30" Nullable="false" />
  1585. <Property Name="Birthday" Type="datetime" />
  1586. <Property Name="Lunar" Type="bit" />
  1587. <Property Name="StateId" Type="int" />
  1588. <Property Name="EmploymentType" Type="int" />
  1589. <Property Name="EmploymentStatus" Type="int" />
  1590. <Property Name="OfficePhoneNo" Type="nvarchar" MaxLength="50" />
  1591. <Property Name="HomePhoneNo" Type="nvarchar" MaxLength="50" />
  1592. <Property Name="MobilePhoneNo" Type="nvarchar" MaxLength="50" />
  1593. <Property Name="HomeZip1" Type="char" MaxLength="3" />
  1594. <Property Name="HomeZip2" Type="char" MaxLength="3" />
  1595. <Property Name="HomeAddress1" Type="nvarchar" MaxLength="50" />
  1596. <Property Name="HomeAdderss2" Type="nvarchar" MaxLength="100" />
  1597. <Property Name="Email" Type="nvarchar" MaxLength="50" />
  1598. <Property Name="EnterDate" Type="datetime" />
  1599. <Property Name="RetireDate" Type="datetime" />
  1600. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1601. <Property Name="Rfcsn" Type="nvarchar" MaxLength="30" />
  1602. <Property Name="PasswordUpdatedDate" Type="datetime" />
  1603. <Property Name="FileId" Type="int" />
  1604. <Property Name="IsBems" Type="bit" />
  1605. <Property Name="IsUse" Type="bit" />
  1606. <Property Name="IsScheduleUser" Type="bit" />
  1607. <Property Name="Certificated" Type="nvarchar" MaxLength="512" />
  1608. <Property Name="IsSI" Type="bit" />
  1609. <Property Name="IsMobile" Type="bit" />
  1610. <Property Name="Devicetoken" Type="nvarchar" MaxLength="500" />
  1611. </EntityType>
  1612. <EntityType Name="CmUserGroup">
  1613. <Key>
  1614. <PropertyRef Name="SiteId" />
  1615. <PropertyRef Name="UserGroupId" />
  1616. </Key>
  1617. <Property Name="SiteId" Type="int" Nullable="false" />
  1618. <Property Name="UserGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1619. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1620. </EntityType>
  1621. <EntityType Name="CmUserGroupPermission">
  1622. <Key>
  1623. <PropertyRef Name="SiteId" />
  1624. <PropertyRef Name="UserGroupId" />
  1625. <PropertyRef Name="MenuId" />
  1626. </Key>
  1627. <Property Name="SiteId" Type="int" Nullable="false" />
  1628. <Property Name="UserGroupId" Type="int" Nullable="false" />
  1629. <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
  1630. <Property Name="MenuPermission" Type="smallint" />
  1631. </EntityType>
  1632. <EntityType Name="CmUserLoginHistory">
  1633. <Key>
  1634. <PropertyRef Name="LoginHistoryId" />
  1635. </Key>
  1636. <Property Name="LoginHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1637. <Property Name="SiteId" Type="int" Nullable="false" />
  1638. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1639. <Property Name="Type" Type="nvarchar" MaxLength="10" Nullable="false" />
  1640. <Property Name="TraceTime" Type="datetime" Nullable="false" />
  1641. <Property Name="IpAddress" Type="nvarchar" MaxLength="16" />
  1642. </EntityType>
  1643. <EntityType Name="CmUserToLicense">
  1644. <Key>
  1645. <PropertyRef Name="SiteId" />
  1646. <PropertyRef Name="UserId" />
  1647. <PropertyRef Name="LicenseId" />
  1648. </Key>
  1649. <Property Name="SiteId" Type="int" Nullable="false" />
  1650. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1651. <Property Name="LicenseId" Type="int" Nullable="false" />
  1652. </EntityType>
  1653. <EntityType Name="CmZone">
  1654. <Key>
  1655. <PropertyRef Name="SiteId" />
  1656. <PropertyRef Name="BuildingId" />
  1657. <PropertyRef Name="FloorId" />
  1658. <PropertyRef Name="ZoneId" />
  1659. </Key>
  1660. <Property Name="SiteId" Type="int" Nullable="false" />
  1661. <Property Name="BuildingId" Type="int" Nullable="false" />
  1662. <Property Name="FloorId" Type="int" Nullable="false" />
  1663. <Property Name="ZoneId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1664. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1665. <Property Name="Target_temperature" Type="float" />
  1666. <Property Name="Target_humidity" Type="smallint" />
  1667. </EntityType>
  1668. <EntityType Name="CmZoneTempHumiSet">
  1669. <Key>
  1670. <PropertyRef Name="SiteId" />
  1671. <PropertyRef Name="BuildingId" />
  1672. <PropertyRef Name="FloorId" />
  1673. <PropertyRef Name="ZoneId" />
  1674. </Key>
  1675. <Property Name="SiteId" Type="int" Nullable="false" />
  1676. <Property Name="BuildingId" Type="int" Nullable="false" />
  1677. <Property Name="FloorId" Type="int" Nullable="false" />
  1678. <Property Name="ZoneId" Type="int" Nullable="false" />
  1679. <Property Name="T1" Type="float" Nullable="false" />
  1680. <Property Name="T2" Type="float" Nullable="false" />
  1681. <Property Name="T3" Type="float" Nullable="false" />
  1682. <Property Name="T4" Type="float" Nullable="false" />
  1683. <Property Name="T5" Type="float" Nullable="false" />
  1684. <Property Name="T6" Type="float" Nullable="false" />
  1685. <Property Name="T7" Type="float" Nullable="false" />
  1686. <Property Name="T8" Type="float" Nullable="false" />
  1687. <Property Name="T9" Type="float" Nullable="false" />
  1688. <Property Name="T10" Type="float" Nullable="false" />
  1689. <Property Name="T11" Type="float" Nullable="false" />
  1690. <Property Name="T12" Type="float" Nullable="false" />
  1691. <Property Name="H1" Type="smallint" Nullable="false" />
  1692. <Property Name="H2" Type="smallint" Nullable="false" />
  1693. <Property Name="H3" Type="smallint" Nullable="false" />
  1694. <Property Name="H4" Type="smallint" Nullable="false" />
  1695. <Property Name="H5" Type="smallint" Nullable="false" />
  1696. <Property Name="H6" Type="smallint" Nullable="false" />
  1697. <Property Name="H7" Type="smallint" Nullable="false" />
  1698. <Property Name="H8" Type="smallint" Nullable="false" />
  1699. <Property Name="H9" Type="smallint" Nullable="false" />
  1700. <Property Name="H10" Type="smallint" Nullable="false" />
  1701. <Property Name="H11" Type="smallint" Nullable="false" />
  1702. <Property Name="H12" Type="smallint" Nullable="false" />
  1703. </EntityType>
  1704. <EntityType Name="FmsAccident">
  1705. <Key>
  1706. <PropertyRef Name="SiteId" />
  1707. <PropertyRef Name="AccidentId" />
  1708. </Key>
  1709. <Property Name="SiteId" Type="int" Nullable="false" />
  1710. <Property Name="AccidentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1711. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1712. <Property Name="StartDate" Type="datetime" />
  1713. <Property Name="EndDate" Type="datetime" />
  1714. <Property Name="AccidentTypeId" Type="int" Nullable="false" />
  1715. <Property Name="DepartmentId" Type="int" />
  1716. <Property Name="AccidentLocation" Type="nvarchar" MaxLength="256" />
  1717. <Property Name="Reason" Type="nvarchar" MaxLength="1024" />
  1718. <Property Name="Action" Type="nvarchar" MaxLength="1024" />
  1719. <Property Name="Damage" Type="nvarchar" MaxLength="1024" />
  1720. <Property Name="Measurement" Type="nvarchar" MaxLength="1024" />
  1721. <Property Name="FileId1" Type="int" />
  1722. <Property Name="FileId2" Type="int" />
  1723. <Property Name="FileId3" Type="int" />
  1724. <Property Name="CompanyId" Type="int" />
  1725. </EntityType>
  1726. <EntityType Name="FmsAccidentCodeType">
  1727. <Key>
  1728. <PropertyRef Name="SiteId" />
  1729. <PropertyRef Name="AccidentTypeId" />
  1730. </Key>
  1731. <Property Name="SiteId" Type="int" Nullable="false" />
  1732. <Property Name="AccidentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1733. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1734. <Property Name="IsUse" Type="bit" Nullable="false" />
  1735. </EntityType>
  1736. <EntityType Name="FmsBudget">
  1737. <Key>
  1738. <PropertyRef Name="SiteId" />
  1739. <PropertyRef Name="Year" />
  1740. </Key>
  1741. <Property Name="SiteId" Type="int" Nullable="false" />
  1742. <Property Name="Year" Type="int" Nullable="false" />
  1743. </EntityType>
  1744. <EntityType Name="FmsBudgetCodeClass">
  1745. <Key>
  1746. <PropertyRef Name="SiteId" />
  1747. <PropertyRef Name="BudgetClassId" />
  1748. </Key>
  1749. <Property Name="SiteId" Type="int" Nullable="false" />
  1750. <Property Name="BudgetClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1751. <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
  1752. <Property Name="RootBudgetClassId" Type="int" />
  1753. <Property Name="ParentBudgetClassId" Type="int" />
  1754. <Property Name="Depth" Type="int" Nullable="false" />
  1755. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1756. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  1757. <Property Name="IsUse" Type="bit" />
  1758. <Property Name="YearlyBudget" Type="float" />
  1759. <Property Name="MonthlyBudget" Type="float" />
  1760. </EntityType>
  1761. <EntityType Name="FmsBudgetDetail">
  1762. <Key>
  1763. <PropertyRef Name="SiteId" />
  1764. <PropertyRef Name="Year" />
  1765. <PropertyRef Name="BudgetClassId" />
  1766. <PropertyRef Name="ParentBudgetClassId" />
  1767. </Key>
  1768. <Property Name="SiteId" Type="int" Nullable="false" />
  1769. <Property Name="Year" Type="int" Nullable="false" />
  1770. <Property Name="BudgetClassId" Type="int" Nullable="false" />
  1771. <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
  1772. <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
  1773. <Property Name="RootBudgetClassId" Type="int" />
  1774. <Property Name="Depth" Type="int" Nullable="false" />
  1775. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1776. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  1777. <Property Name="IsUse" Type="bit" />
  1778. <Property Name="YearlyBudget" Type="float" Nullable="false" />
  1779. <Property Name="MonthlyBudget" Type="float" Nullable="false" />
  1780. </EntityType>
  1781. <EntityType Name="FmsBudgetDetailExecution">
  1782. <Key>
  1783. <PropertyRef Name="SiteId" />
  1784. <PropertyRef Name="Year" />
  1785. <PropertyRef Name="BudgetClassId" />
  1786. <PropertyRef Name="ParentBudgetClassId" />
  1787. <PropertyRef Name="Month" />
  1788. </Key>
  1789. <Property Name="SiteId" Type="int" Nullable="false" />
  1790. <Property Name="Year" Type="int" Nullable="false" />
  1791. <Property Name="BudgetClassId" Type="int" Nullable="false" />
  1792. <Property Name="RootBudgetClassId" Type="int" />
  1793. <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
  1794. <Property Name="Month" Type="int" Nullable="false" />
  1795. <Property Name="YearlyBudget" Type="float" Nullable="false" />
  1796. <Property Name="MonthlyBudget" Type="float" Nullable="false" />
  1797. <Property Name="YearlyExecution" Type="float" Nullable="false" />
  1798. <Property Name="MonthlyExecution" Type="float" Nullable="false" />
  1799. </EntityType>
  1800. <EntityType Name="FmsCompanyEstimationCodeClass">
  1801. <Key>
  1802. <PropertyRef Name="SiteId" />
  1803. <PropertyRef Name="CompanyEstimationClassId" />
  1804. </Key>
  1805. <Property Name="SiteId" Type="int" Nullable="false" />
  1806. <Property Name="CompanyEstimationClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1807. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1808. <Property Name="IsUse" Type="bit" />
  1809. </EntityType>
  1810. <EntityType Name="FmsConstruction">
  1811. <Key>
  1812. <PropertyRef Name="SiteId" />
  1813. <PropertyRef Name="ConstructionId" />
  1814. </Key>
  1815. <Property Name="SiteId" Type="int" Nullable="false" />
  1816. <Property Name="ConstructionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1817. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1818. <Property Name="ConstructionTypeId" Type="int" Nullable="false" />
  1819. <Property Name="StartDate" Type="datetime" Nullable="false" />
  1820. <Property Name="EndDate" Type="datetime" Nullable="false" />
  1821. <Property Name="PartnerId" Type="int" Nullable="false" />
  1822. <Property Name="ConstructLocation" Type="nvarchar" MaxLength="256" Nullable="false" />
  1823. <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" Nullable="false" />
  1824. <Property Name="CommitmentMan" Type="smallint" />
  1825. <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1826. <Property Name="WeldWorkStartTime" Type="datetime" />
  1827. <Property Name="WeldWorkEndTime" Type="datetime" />
  1828. <Property Name="GasWorkStartTime" Type="datetime" />
  1829. <Property Name="GasWorkEndTime" Type="datetime" />
  1830. <Property Name="PaintWorkStartTime" Type="datetime" />
  1831. <Property Name="PaintWorkEndTime" Type="datetime" />
  1832. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1833. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  1834. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1835. <Property Name="UpdateDate" Type="datetime" Nullable="false" />
  1836. <Property Name="ConstructionDetail" Type="nvarchar" MaxLength="1024" />
  1837. <Property Name="InOutStockName" Type="nvarchar" MaxLength="1024" />
  1838. <Property Name="FileId1" Type="int" />
  1839. <Property Name="FileId2" Type="int" />
  1840. <Property Name="FileId3" Type="int" />
  1841. </EntityType>
  1842. <EntityType Name="FmsConstructionCodeProgress">
  1843. <Key>
  1844. <PropertyRef Name="ProgressId" />
  1845. </Key>
  1846. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  1847. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1848. <Property Name="Description" Type="nvarchar" MaxLength="100" />
  1849. </EntityType>
  1850. <EntityType Name="FmsConstructionCodeType">
  1851. <Key>
  1852. <PropertyRef Name="SiteId" />
  1853. <PropertyRef Name="ConstructionTypeId" />
  1854. </Key>
  1855. <Property Name="SiteId" Type="int" Nullable="false" />
  1856. <Property Name="ConstructionTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1857. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1858. <Property Name="IsUse" Type="bit" Nullable="false" />
  1859. </EntityType>
  1860. <EntityType Name="FmsConstructionEstimation">
  1861. <Key>
  1862. <PropertyRef Name="SiteId" />
  1863. <PropertyRef Name="ConstructionId" />
  1864. </Key>
  1865. <Property Name="SiteId" Type="int" Nullable="false" />
  1866. <Property Name="ConstructionId" Type="int" Nullable="false" />
  1867. <Property Name="EstimateDate" Type="datetime" Nullable="false" />
  1868. <Property Name="EstimateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1869. <Property Name="Safety01_CleanUp" Type="bit" />
  1870. <Property Name="Safety02_PersonalProtection" Type="bit" />
  1871. <Property Name="Safety03_FireExtinguisher" Type="bit" />
  1872. <Property Name="Safety04_HighPlaceWork" Type="bit" />
  1873. <Property Name="Safety05_Weld" Type="bit" />
  1874. <Property Name="Safety06_SurroundingCleanUp" Type="bit" />
  1875. <Property Name="Safety07_SurroundingHealthy" Type="bit" />
  1876. <Property Name="Safety08_Noise" Type="bit" />
  1877. <Property Name="Safety09_FacilityProtection" Type="bit" />
  1878. <Property Name="Safety10_Waste" Type="bit" />
  1879. <Property Name="Safety11_Execution" Type="bit" />
  1880. <Property Name="Safety12_Announcement" Type="bit" />
  1881. <Property Name="Ability01_Compliance" Type="bit" />
  1882. <Property Name="Ability02_Fault" Type="bit" />
  1883. <Property Name="Ability03_SkillLevel" Type="bit" />
  1884. <Property Name="Ability04_ProcessManagement" Type="bit" />
  1885. <Property Name="Ability05_Collaboration" Type="bit" />
  1886. <Property Name="Service01_Compliance" Type="bit" />
  1887. <Property Name="Service02_SkillLevel" Type="bit" />
  1888. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1889. <Property Name="TotalEstimateScore" Type="float" />
  1890. <Property Name="SafetyScore" Type="float" />
  1891. <Property Name="AbilityScore" Type="float" />
  1892. <Property Name="ServiceScore" Type="float" />
  1893. </EntityType>
  1894. <EntityType Name="FmsContract">
  1895. <Key>
  1896. <PropertyRef Name="SiteId" />
  1897. <PropertyRef Name="ContractId" />
  1898. </Key>
  1899. <Property Name="SiteId" Type="int" Nullable="false" />
  1900. <Property Name="ContractId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1901. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1902. <Property Name="PartnerTypeId" Type="int" />
  1903. <Property Name="PartnerId" Type="int" />
  1904. <Property Name="ContractDate" Type="datetime" />
  1905. <Property Name="StartDate" Type="datetime" />
  1906. <Property Name="EndDate" Type="datetime" />
  1907. <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" />
  1908. <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" />
  1909. <Property Name="CommitmentMan" Type="smallint" />
  1910. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1911. <Property Name="ContractClassId" Type="int" />
  1912. <Property Name="ContractTypeId" Type="int" />
  1913. <Property Name="ContractMethodId" Type="int" />
  1914. <Property Name="PaymentTypeId" Type="int" />
  1915. </EntityType>
  1916. <EntityType Name="FmsContractClass">
  1917. <Key>
  1918. <PropertyRef Name="SiteId" />
  1919. <PropertyRef Name="ContractClassId" />
  1920. </Key>
  1921. <Property Name="SiteId" Type="int" Nullable="false" />
  1922. <Property Name="ContractClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1923. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1924. <Property Name="IsUse" Type="bit" />
  1925. </EntityType>
  1926. <EntityType Name="FmsContractMethod">
  1927. <Key>
  1928. <PropertyRef Name="SiteId" />
  1929. <PropertyRef Name="ContractMethodId" />
  1930. </Key>
  1931. <Property Name="SiteId" Type="int" Nullable="false" />
  1932. <Property Name="ContractMethodId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1933. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1934. <Property Name="IsUse" Type="bit" />
  1935. </EntityType>
  1936. <EntityType Name="FmsContractType">
  1937. <Key>
  1938. <PropertyRef Name="SiteId" />
  1939. <PropertyRef Name="ContractTypeId" />
  1940. </Key>
  1941. <Property Name="SiteId" Type="int" Nullable="false" />
  1942. <Property Name="ContractTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1943. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1944. <Property Name="IsUse" Type="bit" />
  1945. </EntityType>
  1946. <EntityType Name="FmsDailyCheckReport">
  1947. <Key>
  1948. <PropertyRef Name="SiteId" />
  1949. <PropertyRef Name="DailyCheckReportId" />
  1950. </Key>
  1951. <Property Name="SiteId" Type="int" Nullable="false" />
  1952. <Property Name="DailyCheckReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1953. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  1954. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  1955. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1956. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1957. </EntityType>
  1958. <EntityType Name="FmsDailyReport">
  1959. <Key>
  1960. <PropertyRef Name="SiteId" />
  1961. <PropertyRef Name="AddDate" />
  1962. <PropertyRef Name="BusinessFieldId" />
  1963. </Key>
  1964. <Property Name="SiteId" Type="int" Nullable="false" />
  1965. <Property Name="DailyReportId" Type="int" />
  1966. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  1967. <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
  1968. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1969. <Property Name="AddDate" Type="date" Nullable="false" />
  1970. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  1971. <Property Name="Datas" Type="varchar(max)" />
  1972. <Property Name="ApproverUserId" Type="nvarchar" MaxLength="24" />
  1973. <Property Name="ApproveDate" Type="date" />
  1974. <Property Name="RegisterDate" Type="date" />
  1975. <Property Name="ApproverUserId2" Type="nvarchar" MaxLength="24" />
  1976. <Property Name="ApproveDate2" Type="date" />
  1977. <Property Name="ApproverUserId3" Type="nvarchar" MaxLength="24" />
  1978. <Property Name="ApproveDate3" Type="date" />
  1979. <Property Name="ApproverUserId4" Type="nvarchar" MaxLength="24" />
  1980. <Property Name="ApproveDate4" Type="date" />
  1981. <Property Name="ApproverUserId5" Type="nvarchar" MaxLength="24" />
  1982. <Property Name="ApproveDate5" Type="date" />
  1983. </EntityType>
  1984. <EntityType Name="FmsDrawing">
  1985. <Key>
  1986. <PropertyRef Name="SiteId" />
  1987. <PropertyRef Name="DrawingId" />
  1988. </Key>
  1989. <Property Name="SiteId" Type="int" Nullable="false" />
  1990. <Property Name="DrawingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1991. <Property Name="DrawingNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1992. <Property Name="DrawingGroupId" Type="int" Nullable="false" />
  1993. <Property Name="DrawingTypeId" Type="int" Nullable="false" />
  1994. <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
  1995. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  1996. </EntityType>
  1997. <EntityType Name="FmsDrawingCodeGroup">
  1998. <Key>
  1999. <PropertyRef Name="SiteId" />
  2000. <PropertyRef Name="DrawingGroupId" />
  2001. </Key>
  2002. <Property Name="SiteId" Type="int" Nullable="false" />
  2003. <Property Name="DrawingGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2004. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2005. <Property Name="IsUse" Type="bit" />
  2006. </EntityType>
  2007. <EntityType Name="FmsDrawingCodeType">
  2008. <Key>
  2009. <PropertyRef Name="SiteId" />
  2010. <PropertyRef Name="DrawingTypeId" />
  2011. </Key>
  2012. <Property Name="SiteId" Type="int" Nullable="false" />
  2013. <Property Name="DrawingTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2014. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2015. <Property Name="IsUse" Type="bit" />
  2016. </EntityType>
  2017. <EntityType Name="FmsDrawingHistory">
  2018. <Key>
  2019. <PropertyRef Name="SiteId" />
  2020. <PropertyRef Name="DrawingId" />
  2021. <PropertyRef Name="HistoryId" />
  2022. </Key>
  2023. <Property Name="SiteId" Type="int" Nullable="false" />
  2024. <Property Name="DrawingId" Type="int" Nullable="false" />
  2025. <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2026. <Property Name="RevisionNo" Type="int" />
  2027. <Property Name="FileId" Type="int" />
  2028. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2029. <Property Name="UpdatedDate" Type="datetime" />
  2030. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2031. </EntityType>
  2032. <EntityType Name="FmsEquipment">
  2033. <Key>
  2034. <PropertyRef Name="SiteId" />
  2035. <PropertyRef Name="EquipmentId" />
  2036. </Key>
  2037. <Property Name="SiteId" Type="int" Nullable="false" />
  2038. <Property Name="EquipmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2039. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2040. <Property Name="EquipmentTypeId" Type="int" Nullable="false" />
  2041. <Property Name="WarehouseId" Type="int" />
  2042. <Property Name="Unit" Type="nvarchar" MaxLength="12" />
  2043. <Property Name="Standard" Type="nvarchar" MaxLength="20" />
  2044. <Property Name="AddDate" Type="datetime" />
  2045. <Property Name="UpdateDate" Type="datetime" />
  2046. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2047. <Property Name="SupplierName" Type="nvarchar" MaxLength="256" />
  2048. <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
  2049. <Property Name="ImageFileId" Type="int" />
  2050. </EntityType>
  2051. <EntityType Name="FmsEquipmentCodeStateType">
  2052. <Key>
  2053. <PropertyRef Name="EquipmentStateTypeId" />
  2054. </Key>
  2055. <Property Name="EquipmentStateTypeId" Type="smallint" Nullable="false" />
  2056. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2057. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2058. </EntityType>
  2059. <EntityType Name="FmsEquipmentCodeType">
  2060. <Key>
  2061. <PropertyRef Name="SiteId" />
  2062. <PropertyRef Name="EquipmentTypeId" />
  2063. </Key>
  2064. <Property Name="SiteId" Type="int" Nullable="false" />
  2065. <Property Name="EquipmentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2066. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2067. <Property Name="IsUse" Type="bit" Nullable="false" />
  2068. <Property Name="Description" Type="nvarchar" MaxLength="255" />
  2069. </EntityType>
  2070. <EntityType Name="FmsEquipmentHistory">
  2071. <Key>
  2072. <PropertyRef Name="SiteId" />
  2073. <PropertyRef Name="EquipmentHistoryId" />
  2074. <PropertyRef Name="EquipmentId" />
  2075. </Key>
  2076. <Property Name="SiteId" Type="int" Nullable="false" />
  2077. <Property Name="EquipmentHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2078. <Property Name="EquipmentId" Type="int" Nullable="false" />
  2079. <Property Name="TotalStockCount" Type="int" />
  2080. <Property Name="CurrentStockCount" Type="int" />
  2081. <Property Name="RentCount" Type="int" />
  2082. <Property Name="CurrentRentCount" Type="int" />
  2083. <Property Name="ReturnCount" Type="int" />
  2084. <Property Name="LossCount" Type="int" />
  2085. <Property Name="StoredCount" Type="int" />
  2086. <Property Name="EquipmentRentId" Type="int" />
  2087. <Property Name="EquipmentStateTypeId" Type="smallint" />
  2088. <Property Name="AddDate" Type="datetime" />
  2089. <Property Name="UpdateDate" Type="datetime" />
  2090. <Property Name="IsReturned" Type="bit" />
  2091. </EntityType>
  2092. <EntityType Name="FmsEquipmentRentInfo">
  2093. <Key>
  2094. <PropertyRef Name="SiteId" />
  2095. <PropertyRef Name="EquipmentRentId" />
  2096. </Key>
  2097. <Property Name="SiteId" Type="int" Nullable="false" />
  2098. <Property Name="EquipmentRentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2099. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2100. <Property Name="RentUserId" Type="nvarchar" MaxLength="24" />
  2101. <Property Name="RegisterDate" Type="nchar" MaxLength="10" />
  2102. <Property Name="RentDate" Type="datetime" />
  2103. <Property Name="ReturnDueDate" Type="datetime" />
  2104. <Property Name="ReturnFixDate" Type="datetime" />
  2105. <Property Name="EquipmentStateTypeId" Type="smallint" />
  2106. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2107. <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
  2108. <Property Name="RentUser" Type="nvarchar" MaxLength="128" />
  2109. </EntityType>
  2110. <EntityType Name="FmsFacilityCheckItem">
  2111. <Key>
  2112. <PropertyRef Name="SiteId" />
  2113. <PropertyRef Name="FacilityCode" />
  2114. <PropertyRef Name="CheckItemId" />
  2115. </Key>
  2116. <Property Name="SiteId" Type="int" Nullable="false" />
  2117. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2118. <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2119. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2120. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2121. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  2122. <Property Name="IsYesNoResult" Type="bit" Nullable="false" />
  2123. <Property Name="IsUse" Type="bit" />
  2124. </EntityType>
  2125. <EntityType Name="FmsFacilityCodeClass">
  2126. <Key>
  2127. <PropertyRef Name="SiteId" />
  2128. <PropertyRef Name="FacilityClassId" />
  2129. </Key>
  2130. <Property Name="SiteId" Type="int" Nullable="false" />
  2131. <Property Name="FacilityClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2132. <Property Name="ParentFacilityClassId" Type="int" />
  2133. <Property Name="Depth" Type="int" Nullable="false" />
  2134. <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
  2135. <Property Name="Abbreviation" Type="nvarchar" MaxLength="40" />
  2136. <Property Name="IsUse" Type="bit" />
  2137. </EntityType>
  2138. <EntityType Name="FmsFacilityManual">
  2139. <Key>
  2140. <PropertyRef Name="SiteId" />
  2141. <PropertyRef Name="FacilityCode" />
  2142. <PropertyRef Name="ManualId" />
  2143. </Key>
  2144. <Property Name="SiteId" Type="int" Nullable="false" />
  2145. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2146. <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2147. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2148. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  2149. <Property Name="Description" Type="nvarchar" MaxLength="1024" />
  2150. <Property Name="Keyword" Type="nvarchar" MaxLength="100" />
  2151. <Property Name="FileId" Type="int" />
  2152. <Property Name="IsUse" Type="bit" />
  2153. </EntityType>
  2154. <EntityType Name="FmsFacilityOperationItem">
  2155. <Key>
  2156. <PropertyRef Name="SiteId" />
  2157. <PropertyRef Name="ItemId" />
  2158. </Key>
  2159. <Property Name="SiteId" Type="int" Nullable="false" />
  2160. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2161. <Property Name="ItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2162. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  2163. <Property Name="ResultUnit" Type="nvarchar" MaxLength="10" Nullable="false" />
  2164. <Property Name="PointId" Type="nvarchar" MaxLength="50" />
  2165. <Property Name="SystemId" Type="int" />
  2166. <Property Name="EnergyCode" Type="bit" />
  2167. <Property Name="IsUse" Type="bit" />
  2168. <Property Name="SortOrderNo" Type="int" />
  2169. <Property Name="InsertedDate" Type="datetime" />
  2170. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  2171. <Property Name="UpdatedDate" Type="datetime" />
  2172. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2173. </EntityType>
  2174. <EntityType Name="FmsFacilityOperationReport">
  2175. <Key>
  2176. <PropertyRef Name="SiteId" />
  2177. <PropertyRef Name="FacilityOperationReportId" />
  2178. </Key>
  2179. <Property Name="SiteId" Type="int" Nullable="false" />
  2180. <Property Name="FacilityOperationReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2181. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2182. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  2183. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2184. <Property Name="AddDate" Type="datetime" Nullable="false" />
  2185. </EntityType>
  2186. <EntityType Name="FmsInvestmentCost">
  2187. <Key>
  2188. <PropertyRef Name="SiteId" />
  2189. <PropertyRef Name="InsvestmentCostId" />
  2190. </Key>
  2191. <Property Name="SiteId" Type="int" Nullable="false" />
  2192. <Property Name="InsvestmentCostId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2193. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  2194. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2195. <Property Name="InsvestmentCost" Type="float" Nullable="false" />
  2196. </EntityType>
  2197. <EntityType Name="FmsLicense">
  2198. <Key>
  2199. <PropertyRef Name="SiteId" />
  2200. <PropertyRef Name="LicenseId" />
  2201. </Key>
  2202. <Property Name="SiteId" Type="int" Nullable="false" />
  2203. <Property Name="LicenseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2204. <Property Name="Name" Type="nvarchar" MaxLength="52" Nullable="false" />
  2205. <Property Name="IssuingOffice" Type="nvarchar" MaxLength="52" Nullable="false" />
  2206. <Property Name="BusinessFieldId" Type="int" />
  2207. <Property Name="EducationalInstitute" Type="nvarchar" MaxLength="52" />
  2208. <Property Name="Note" Type="nvarchar" MaxLength="256" />
  2209. <Property Name="IsUse" Type="bit" />
  2210. </EntityType>
  2211. <EntityType Name="FmsManual">
  2212. <Key>
  2213. <PropertyRef Name="SiteId" />
  2214. <PropertyRef Name="ManualId" />
  2215. </Key>
  2216. <Property Name="SiteId" Type="int" Nullable="false" />
  2217. <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2218. <Property Name="ManualNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  2219. <Property Name="ManualTypeId" Type="int" Nullable="false" />
  2220. <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
  2221. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2222. </EntityType>
  2223. <EntityType Name="FmsManualHistory">
  2224. <Key>
  2225. <PropertyRef Name="SiteId" />
  2226. <PropertyRef Name="ManualId" />
  2227. <PropertyRef Name="HistoryId" />
  2228. </Key>
  2229. <Property Name="SiteId" Type="int" Nullable="false" />
  2230. <Property Name="ManualId" Type="int" Nullable="false" />
  2231. <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2232. <Property Name="RevisionNo" Type="int" />
  2233. <Property Name="FileId" Type="int" />
  2234. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2235. <Property Name="UpdatedDate" Type="datetime" />
  2236. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2237. </EntityType>
  2238. <EntityType Name="FmsManualType">
  2239. <Key>
  2240. <PropertyRef Name="SiteId" />
  2241. <PropertyRef Name="ManualTypeId" />
  2242. </Key>
  2243. <Property Name="SiteId" Type="int" Nullable="false" />
  2244. <Property Name="ManualTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2245. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2246. <Property Name="IsUse" Type="bit" />
  2247. </EntityType>
  2248. <EntityType Name="FmsMaterial">
  2249. <Key>
  2250. <PropertyRef Name="SiteId" />
  2251. <PropertyRef Name="MaterialId" />
  2252. </Key>
  2253. <Property Name="SiteId" Type="int" Nullable="false" />
  2254. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2255. <Property Name="MaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2256. <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" Nullable="false" />
  2257. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2258. <Property Name="FirstClassId" Type="int" />
  2259. <Property Name="SecondClassId" Type="int" />
  2260. <Property Name="ThirdClassId" Type="int" />
  2261. <Property Name="LocationId" Type="int" />
  2262. <Property Name="MaterialTypeId" Type="int" />
  2263. <Property Name="WarehouseId" Type="int" />
  2264. <Property Name="TradeCompanyId" Type="int" />
  2265. <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
  2266. <Property Name="Unit" Type="nvarchar" MaxLength="12" />
  2267. <Property Name="DurableYears" Type="smallint" />
  2268. <Property Name="ReasonableStockCount" Type="smallint" />
  2269. <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
  2270. <Property Name="Standard" Type="nvarchar" MaxLength="20" />
  2271. <Property Name="FinalPrice" Type="int" />
  2272. <Property Name="ImageFileId" Type="int" />
  2273. <Property Name="Note" Type="nvarchar" MaxLength="512" />
  2274. <Property Name="IsDiscontinued" Type="bit" />
  2275. <Property Name="IsUse" Type="bit" Nullable="false" />
  2276. <Property Name="FinalStockCount" Type="int" Nullable="false" />
  2277. <Property Name="FinalTotalStockAmount" Type="int" Nullable="false" />
  2278. </EntityType>
  2279. <EntityType Name="FmsMaterialCarriedForward">
  2280. <Key>
  2281. <PropertyRef Name="SiteId" />
  2282. <PropertyRef Name="ClosedDate" />
  2283. <PropertyRef Name="BusinessFieldId" />
  2284. <PropertyRef Name="WarehouseId" />
  2285. <PropertyRef Name="MaterialId" />
  2286. </Key>
  2287. <Property Name="SiteId" Type="int" Nullable="false" />
  2288. <Property Name="ClosedDate" Type="datetime" Nullable="false" />
  2289. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2290. <Property Name="WarehouseId" Type="int" Nullable="false" />
  2291. <Property Name="MaterialId" Type="int" Nullable="false" />
  2292. <Property Name="StockCount" Type="int" Nullable="false" />
  2293. <Property Name="StockTotalCost" Type="int" Nullable="false" />
  2294. </EntityType>
  2295. <EntityType Name="FmsMaterialCodeAdjustmentType">
  2296. <Key>
  2297. <PropertyRef Name="AdjustmentTypeId" />
  2298. </Key>
  2299. <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
  2300. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2301. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2302. </EntityType>
  2303. <EntityType Name="FmsMaterialCodeClass">
  2304. <Key>
  2305. <PropertyRef Name="SiteId" />
  2306. <PropertyRef Name="MaterialClassId" />
  2307. </Key>
  2308. <Property Name="SiteId" Type="int" Nullable="false" />
  2309. <Property Name="MaterialClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2310. <Property Name="ParentMaterialClassId" Type="int" />
  2311. <Property Name="Depth" Type="int" Nullable="false" />
  2312. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  2313. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  2314. <Property Name="IsUse" Type="bit" />
  2315. </EntityType>
  2316. <EntityType Name="FmsMaterialCodeLocation">
  2317. <Key>
  2318. <PropertyRef Name="SiteId" />
  2319. <PropertyRef Name="LocationId" />
  2320. </Key>
  2321. <Property Name="SiteId" Type="int" Nullable="false" />
  2322. <Property Name="LocationId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2323. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2324. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2325. <Property Name="IsUse" Type="bit" Nullable="false" />
  2326. </EntityType>
  2327. <EntityType Name="FmsMaterialCodeProgress">
  2328. <Key>
  2329. <PropertyRef Name="ProgressId" />
  2330. </Key>
  2331. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  2332. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2333. <Property Name="Description" Type="nvarchar" MaxLength="100" />
  2334. </EntityType>
  2335. <EntityType Name="FmsMaterialCodePurchaseType">
  2336. <Key>
  2337. <PropertyRef Name="PurchaseTypeId" />
  2338. </Key>
  2339. <Property Name="PurchaseTypeId" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
  2340. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2341. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2342. </EntityType>
  2343. <EntityType Name="FmsMaterialCodeReleaseType">
  2344. <Key>
  2345. <PropertyRef Name="ReleaseTypeId" />
  2346. </Key>
  2347. <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
  2348. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2349. <Property Name="Description" Type="nvarchar" MaxLength="255" />
  2350. </EntityType>
  2351. <EntityType Name="FmsMaterialCodeType">
  2352. <Key>
  2353. <PropertyRef Name="SiteId" />
  2354. <PropertyRef Name="MaterialTypeId" />
  2355. </Key>
  2356. <Property Name="SiteId" Type="int" Nullable="false" />
  2357. <Property Name="MaterialTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2358. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2359. <Property Name="Nickname" Type="nvarchar" MaxLength="24" Nullable="false" />
  2360. <Property Name="IsUse" Type="bit" Nullable="false" />
  2361. </EntityType>
  2362. <EntityType Name="FmsMaterialPurchaseOrder">
  2363. <Key>
  2364. <PropertyRef Name="SiteId" />
  2365. <PropertyRef Name="PurchaseOrderId" />
  2366. </Key>
  2367. <Property Name="SiteId" Type="int" Nullable="false" />
  2368. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2369. <Property Name="PurchaseOrderId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2370. <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
  2371. <Property Name="TradeCompanyId" Type="int" />
  2372. <Property Name="OrderDate" Type="datetime" Nullable="false" />
  2373. <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2374. <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
  2375. <Property Name="Reason" Type="nvarchar" MaxLength="2000" />
  2376. <Property Name="StoredDueDate" Type="datetime" />
  2377. <Property Name="FileId" Type="int" />
  2378. </EntityType>
  2379. <EntityType Name="FmsMaterialPurchaseOrderMaterial">
  2380. <Key>
  2381. <PropertyRef Name="SiteId" />
  2382. <PropertyRef Name="PurchaseOrderId" />
  2383. <PropertyRef Name="MaterialId" />
  2384. </Key>
  2385. <Property Name="SiteId" Type="int" Nullable="false" />
  2386. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2387. <Property Name="PurchaseOrderId" Type="int" Nullable="false" />
  2388. <Property Name="MaterialId" Type="int" Nullable="false" />
  2389. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2390. <Property Name="UnitCost" Type="int" Nullable="false" />
  2391. </EntityType>
  2392. <EntityType Name="FmsMaterialPurchaseRequest">
  2393. <Key>
  2394. <PropertyRef Name="SiteId" />
  2395. <PropertyRef Name="PurchaseRequestId" />
  2396. </Key>
  2397. <Property Name="SiteId" Type="int" Nullable="false" />
  2398. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2399. <Property Name="PurchaseRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2400. <Property Name="PurchaseTypeId" Type="smallint" Nullable="false" />
  2401. <Property Name="RequestDate" Type="datetime" Nullable="false" />
  2402. <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2403. <Property Name="PurchaseHopeDate" Type="datetime" />
  2404. <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
  2405. <Property Name="Reason" Type="nvarchar" MaxLength="2000" Nullable="false" />
  2406. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  2407. <Property Name="ApprovalDate" Type="datetime" />
  2408. <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
  2409. <Property Name="bSameOrder" Type="bit" />
  2410. </EntityType>
  2411. <EntityType Name="FmsMaterialPurchaseRequestMaterial">
  2412. <Key>
  2413. <PropertyRef Name="SiteId" />
  2414. <PropertyRef Name="PurchaseRequestId" />
  2415. <PropertyRef Name="MaterialId" />
  2416. </Key>
  2417. <Property Name="SiteId" Type="int" Nullable="false" />
  2418. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2419. <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
  2420. <Property Name="MaterialId" Type="int" Nullable="false" />
  2421. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2422. </EntityType>
  2423. <EntityType Name="FmsMaterialRelease">
  2424. <Key>
  2425. <PropertyRef Name="SiteId" />
  2426. <PropertyRef Name="MaterialReleaseId" />
  2427. </Key>
  2428. <Property Name="SiteId" Type="int" Nullable="false" />
  2429. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2430. <Property Name="ReleaseDate" Type="datetime" Nullable="false" />
  2431. <Property Name="MaterialReleaseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2432. <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
  2433. <Property Name="WorkRequestId" Type="int" />
  2434. <Property Name="WarehouseId" Type="int" />
  2435. <Property Name="MaterialId" Type="int" />
  2436. <Property Name="MaterialCount" Type="int" />
  2437. <Property Name="StockCountByPoint" Type="int" />
  2438. <Property Name="ReleaseTotalCost" Type="int" />
  2439. <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
  2440. <Property Name="AdjustmentUserId" Type="nvarchar" MaxLength="24" />
  2441. <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
  2442. <Property Name="ConfirmedDate" Type="datetime" />
  2443. <Property Name="IsConfirmed" Type="bit" Nullable="false" />
  2444. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2445. </EntityType>
  2446. <EntityType Name="FmsMaterialStored">
  2447. <Key>
  2448. <PropertyRef Name="SiteId" />
  2449. <PropertyRef Name="MaterialStoredId" />
  2450. </Key>
  2451. <Property Name="SiteId" Type="int" Nullable="false" />
  2452. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2453. <Property Name="StoredDate" Type="datetime" Nullable="false" />
  2454. <Property Name="MaterialStoredId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2455. <Property Name="PurchaseOrderId" Type="int" />
  2456. <Property Name="WarehouseId" Type="int" Nullable="false" />
  2457. <Property Name="MaterialId" Type="int" Nullable="false" />
  2458. <Property Name="StoredCount" Type="int" Nullable="false" />
  2459. <Property Name="RemainStoredCount" Type="int" Nullable="false" />
  2460. <Property Name="UnitCost" Type="int" Nullable="false" />
  2461. <Property Name="StockCount" Type="int" Nullable="false" />
  2462. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  2463. <Property Name="StoredUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2464. <Property Name="ApprovalDate" Type="datetime" />
  2465. <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
  2466. <Property Name="IsApproval" Type="bit" Nullable="false" />
  2467. <Property Name="LocationInWarehouse" Type="nvarchar" MaxLength="100" />
  2468. </EntityType>
  2469. <EntityType Name="FmsMaterialTradeCompany">
  2470. <Key>
  2471. <PropertyRef Name="SiteId" />
  2472. <PropertyRef Name="TradeCompanyId" />
  2473. </Key>
  2474. <Property Name="SiteId" Type="int" Nullable="false" />
  2475. <Property Name="TradeCompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2476. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2477. <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" Nullable="false" />
  2478. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="24" />
  2479. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
  2480. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  2481. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  2482. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  2483. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  2484. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  2485. <Property Name="Address1" Type="nvarchar" MaxLength="100" />
  2486. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  2487. <Property Name="HomepageUri" Type="nvarchar" MaxLength="200" />
  2488. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  2489. <Property Name="IsUse" Type="bit" Nullable="false" />
  2490. </EntityType>
  2491. <EntityType Name="FmsMaterialWarehouse">
  2492. <Key>
  2493. <PropertyRef Name="SiteId" />
  2494. <PropertyRef Name="WarehouseId" />
  2495. </Key>
  2496. <Property Name="SiteId" Type="int" Nullable="false" />
  2497. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2498. <Property Name="WarehouseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2499. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2500. <Property Name="IsUse" Type="bit" Nullable="false" />
  2501. </EntityType>
  2502. <EntityType Name="FmsMonthlyReport">
  2503. <Key>
  2504. <PropertyRef Name="SiteId" />
  2505. <PropertyRef Name="MonthlyReportId" />
  2506. </Key>
  2507. <Property Name="SiteId" Type="int" Nullable="false" />
  2508. <Property Name="MonthlyReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2509. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2510. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  2511. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2512. <Property Name="AddDate" Type="datetime" Nullable="false" />
  2513. </EntityType>
  2514. <EntityType Name="FmsPaymentType">
  2515. <Key>
  2516. <PropertyRef Name="SiteId" />
  2517. <PropertyRef Name="PaymentTypeId" />
  2518. </Key>
  2519. <Property Name="SiteId" Type="int" Nullable="false" />
  2520. <Property Name="PaymentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2521. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2522. <Property Name="IsUse" Type="bit" />
  2523. </EntityType>
  2524. <EntityType Name="FmsReport">
  2525. <Key>
  2526. <PropertyRef Name="SiteId" />
  2527. <PropertyRef Name="RId" />
  2528. </Key>
  2529. <Property Name="SiteId" Type="int" Nullable="false" />
  2530. <Property Name="RId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2531. <Property Name="Title" Type="nvarchar" MaxLength="128" />
  2532. <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
  2533. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" />
  2534. <Property Name="FileId" Type="int" />
  2535. <Property Name="MakeDate" Type="datetime" Nullable="false" />
  2536. <Property Name="ConfirmUserId1" Type="nvarchar" MaxLength="24" />
  2537. <Property Name="ConfirmUserId2" Type="nvarchar" MaxLength="24" />
  2538. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2539. </EntityType>
  2540. <EntityType Name="FmsWorkCodeCauseClass">
  2541. <Key>
  2542. <PropertyRef Name="SiteId" />
  2543. <PropertyRef Name="CauseClassId" />
  2544. </Key>
  2545. <Property Name="SiteId" Type="int" Nullable="false" />
  2546. <Property Name="CauseClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2547. <Property Name="ParentId" Type="int" Nullable="false" />
  2548. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2549. <Property Name="IsUse" Type="bit" />
  2550. </EntityType>
  2551. <EntityType Name="FmsWorkCodeCycleUnit">
  2552. <Key>
  2553. <PropertyRef Name="SiteId" />
  2554. <PropertyRef Name="CycleUnitId" />
  2555. </Key>
  2556. <Property Name="SiteId" Type="int" Nullable="false" />
  2557. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2558. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2559. <Property Name="Description" Type="nvarchar" MaxLength="200" />
  2560. </EntityType>
  2561. <EntityType Name="FmsWorkCodeEmergency">
  2562. <Key>
  2563. <PropertyRef Name="SiteId" />
  2564. <PropertyRef Name="EmergencyId" />
  2565. </Key>
  2566. <Property Name="SiteId" Type="int" Nullable="false" />
  2567. <Property Name="EmergencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2568. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  2569. <Property Name="IsUse" Type="bit" />
  2570. </EntityType>
  2571. <EntityType Name="FmsWorkCodeHolidayWorkType">
  2572. <Key>
  2573. <PropertyRef Name="SiteId" />
  2574. <PropertyRef Name="HolidayWorkTypeId" />
  2575. </Key>
  2576. <Property Name="SiteId" Type="int" Nullable="false" />
  2577. <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
  2578. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  2579. <Property Name="IsUse" Type="bit" />
  2580. </EntityType>
  2581. <EntityType Name="FmsWorkCodeLegalInspectionAgency">
  2582. <Key>
  2583. <PropertyRef Name="SiteId" />
  2584. <PropertyRef Name="InspectionAgencyId" />
  2585. </Key>
  2586. <Property Name="SiteId" Type="int" Nullable="false" />
  2587. <Property Name="InspectionAgencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2588. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2589. <Property Name="IsUse" Type="bit" />
  2590. </EntityType>
  2591. <EntityType Name="FmsWorkCodeProgress">
  2592. <Key>
  2593. <PropertyRef Name="WorkProgressId" />
  2594. </Key>
  2595. <Property Name="WorkProgressId" Type="int" Nullable="false" />
  2596. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2597. <Property Name="Description" Type="nvarchar" MaxLength="512" />
  2598. </EntityType>
  2599. <EntityType Name="FmsWorkCodeType">
  2600. <Key>
  2601. <PropertyRef Name="WorkTypeId" />
  2602. </Key>
  2603. <Property Name="WorkTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2604. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2605. <Property Name="Description" Type="nvarchar" MaxLength="512" />
  2606. </EntityType>
  2607. <EntityType Name="FmsWorkOrder">
  2608. <Key>
  2609. <PropertyRef Name="SiteId" />
  2610. <PropertyRef Name="WorkRequestId" />
  2611. </Key>
  2612. <Property Name="SiteId" Type="int" Nullable="false" />
  2613. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2614. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2615. <Property Name="EmergencyId" Type="int" />
  2616. <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2617. <Property Name="OrderDate" Type="datetime" Nullable="false" />
  2618. <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
  2619. <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
  2620. <Property Name="Content" Type="nvarchar" MaxLength="2000" />
  2621. </EntityType>
  2622. <EntityType Name="FmsWorkOrderToFacility">
  2623. <Key>
  2624. <PropertyRef Name="SiteId" />
  2625. <PropertyRef Name="WorkRequestId" />
  2626. <PropertyRef Name="FacilityCode" />
  2627. </Key>
  2628. <Property Name="SiteId" Type="int" Nullable="false" />
  2629. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2630. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2631. </EntityType>
  2632. <EntityType Name="FmsWorkRequest">
  2633. <Key>
  2634. <PropertyRef Name="SiteId" />
  2635. <PropertyRef Name="WorkRequestId" />
  2636. </Key>
  2637. <Property Name="SiteId" Type="int" Nullable="false" />
  2638. <Property Name="WorkRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2639. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2640. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2641. <Property Name="WorkScheduleId" Type="int" />
  2642. <Property Name="WorkProgressId" Type="int" Nullable="false" />
  2643. <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
  2644. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2645. <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" />
  2646. <Property Name="RequestDate" Type="datetime" Nullable="false" />
  2647. <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
  2648. <Property Name="RejectUserId" Type="nvarchar" MaxLength="24" />
  2649. <Property Name="RejectDate" Type="datetime" />
  2650. <Property Name="RejectReason" Type="nvarchar" MaxLength="512" />
  2651. <Property Name="InspectionAgencyId" Type="int" />
  2652. </EntityType>
  2653. <EntityType Name="FmsWorkRequestToFacility">
  2654. <Key>
  2655. <PropertyRef Name="SiteId" />
  2656. <PropertyRef Name="WorkRequestId" />
  2657. <PropertyRef Name="FacilityCode" />
  2658. </Key>
  2659. <Property Name="SiteId" Type="int" Nullable="false" />
  2660. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2661. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2662. </EntityType>
  2663. <EntityType Name="FmsWorkResult">
  2664. <Key>
  2665. <PropertyRef Name="SiteId" />
  2666. <PropertyRef Name="WorkRequestId" />
  2667. </Key>
  2668. <Property Name="SiteId" Type="int" Nullable="false" />
  2669. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2670. <Property Name="WorkerUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2671. <Property Name="StartDate" Type="datetime" Nullable="false" />
  2672. <Property Name="EndDate" Type="datetime" Nullable="false" />
  2673. <Property Name="CauseClassId" Type="int" />
  2674. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2675. <Property Name="ConfirmedDate" Type="datetime" />
  2676. <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
  2677. <Property Name="IsConfirmed" Type="bit" Nullable="false" />
  2678. <Property Name="ConfirmDesc" Type="nvarchar" MaxLength="1024" />
  2679. </EntityType>
  2680. <EntityType Name="FmsWorkResultCheckItem">
  2681. <Key>
  2682. <PropertyRef Name="CheckItemId" />
  2683. </Key>
  2684. <Property Name="SiteId" Type="int" Nullable="false" />
  2685. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2686. <Property Name="FacilityCode" Type="int" />
  2687. <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2688. <Property Name="BoolResult" Type="bit" />
  2689. <Property Name="TextResult" Type="nvarchar" MaxLength="1024" />
  2690. <Property Name="CheckDate" Type="datetime" Nullable="false" />
  2691. <Property Name="FileId1" Type="int" />
  2692. <Property Name="FileId2" Type="int" />
  2693. </EntityType>
  2694. <EntityType Name="FmsWorkResultCheckItemMaterial">
  2695. <Key>
  2696. <PropertyRef Name="CheckItemMaterialId" />
  2697. </Key>
  2698. <Property Name="SiteId" Type="int" Nullable="false" />
  2699. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2700. <Property Name="CheckItemId" Type="int" Nullable="false" />
  2701. <Property Name="CheckItemMaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2702. <Property Name="MaterialId" Type="int" Nullable="false" />
  2703. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2704. <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" />
  2705. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  2706. </EntityType>
  2707. <EntityType Name="FmsWorkResultFile">
  2708. <Key>
  2709. <PropertyRef Name="SiteId" />
  2710. <PropertyRef Name="WorkRequestId" />
  2711. </Key>
  2712. <Property Name="SiteId" Type="int" Nullable="false" />
  2713. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2714. <Property Name="FileId" Type="int" Nullable="false" />
  2715. </EntityType>
  2716. <EntityType Name="FmsWorkResultLaw">
  2717. <Key>
  2718. <PropertyRef Name="SiteId" />
  2719. <PropertyRef Name="WorkRequestId" />
  2720. </Key>
  2721. <Property Name="SiteId" Type="int" Nullable="false" />
  2722. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2723. <Property Name="CertificationNo" Type="nvarchar" MaxLength="50" />
  2724. <Property Name="CheckCommission" Type="numeric" Precision="10" Scale="0" />
  2725. <Property Name="CheckResult" Type="bit" />
  2726. </EntityType>
  2727. <EntityType Name="FmsWorkResultToFacility">
  2728. <Key>
  2729. <PropertyRef Name="SiteId" />
  2730. <PropertyRef Name="WorkRequestId" />
  2731. <PropertyRef Name="FacilityCode" />
  2732. </Key>
  2733. <Property Name="SiteId" Type="int" Nullable="false" />
  2734. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2735. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2736. </EntityType>
  2737. <EntityType Name="FmsWorkSchedule">
  2738. <Key>
  2739. <PropertyRef Name="SiteId" />
  2740. <PropertyRef Name="WorkScheduleId" />
  2741. </Key>
  2742. <Property Name="SiteId" Type="int" Nullable="false" />
  2743. <Property Name="WorkScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2744. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2745. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2746. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  2747. <Property Name="InspectionAgencyId" Type="int" />
  2748. <Property Name="CycleSize" Type="int" Nullable="false" />
  2749. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2750. <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
  2751. <Property Name="WorkDueDate" Type="datetime" Nullable="false" />
  2752. <Property Name="UpdateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2753. <Property Name="IsUse" Type="bit" Nullable="false" />
  2754. <Property Name="IsAutoOrder" Type="bit" Nullable="false" />
  2755. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2756. </EntityType>
  2757. <EntityType Name="FmsWorkScheduleToFacility">
  2758. <Key>
  2759. <PropertyRef Name="SiteId" />
  2760. <PropertyRef Name="WorkScheduleId" />
  2761. <PropertyRef Name="FacilityCode" />
  2762. </Key>
  2763. <Property Name="SiteId" Type="int" Nullable="false" />
  2764. <Property Name="WorkScheduleId" Type="int" Nullable="false" />
  2765. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2766. </EntityType>
  2767. <EntityType Name="sysdiagrams">
  2768. <Key>
  2769. <PropertyRef Name="diagram_id" />
  2770. </Key>
  2771. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2772. <Property Name="principal_id" Type="int" Nullable="false" />
  2773. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2774. <Property Name="version" Type="int" />
  2775. <Property Name="definition" Type="varbinary(max)" />
  2776. </EntityType>
  2777. <EntityType Name="WeatherDongNaeForecast">
  2778. <Key>
  2779. <PropertyRef Name="BaseTime" />
  2780. <PropertyRef Name="ForecastTime" />
  2781. </Key>
  2782. <Property Name="BaseTime" Type="datetime" Nullable="false" />
  2783. <Property Name="nx" Type="int" />
  2784. <Property Name="ny" Type="int" />
  2785. <Property Name="ForecastTime" Type="datetime" Nullable="false" />
  2786. <Property Name="POP" Type="float" />
  2787. <Property Name="PTY" Type="float" />
  2788. <Property Name="R06" Type="float" />
  2789. <Property Name="REH" Type="float" />
  2790. <Property Name="S06" Type="float" />
  2791. <Property Name="SKY" Type="float" />
  2792. <Property Name="T3H" Type="float" />
  2793. <Property Name="TMN" Type="float" />
  2794. <Property Name="TMX" Type="float" />
  2795. <Property Name="UUU" Type="float" />
  2796. <Property Name="VVV" Type="float" />
  2797. <Property Name="VEC" Type="float" />
  2798. <Property Name="WSD" Type="float" />
  2799. <Property Name="Type" Type="int" />
  2800. <Property Name="DBTime" Type="datetime" />
  2801. <Property Name="Version" Type="int" />
  2802. </EntityType>
  2803. <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
  2804. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  2805. <End Role="BemsEnergyConfigPercentMonth" Type="Self.BemsEnergyConfigPercentMonth" Multiplicity="*" />
  2806. <ReferentialConstraint>
  2807. <Principal Role="CmSite">
  2808. <PropertyRef Name="SiteId" />
  2809. </Principal>
  2810. <Dependent Role="BemsEnergyConfigPercentMonth">
  2811. <PropertyRef Name="SiteId" />
  2812. </Dependent>
  2813. </ReferentialConstraint>
  2814. </Association>
  2815. <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
  2816. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  2817. <End Role="BemsEnergyConfigPercentWeek" Type="Self.BemsEnergyConfigPercentWeek" Multiplicity="*" />
  2818. <ReferentialConstraint>
  2819. <Principal Role="CmSite">
  2820. <PropertyRef Name="SiteId" />
  2821. </Principal>
  2822. <Dependent Role="BemsEnergyConfigPercentWeek">
  2823. <PropertyRef Name="SiteId" />
  2824. </Dependent>
  2825. </ReferentialConstraint>
  2826. </Association>
  2827. <Association Name="FK__BemsEnergyDaily__BemsFuelType">
  2828. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2829. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2830. <ReferentialConstraint>
  2831. <Principal Role="BemsFuelType">
  2832. <PropertyRef Name="FuelTypeId" />
  2833. </Principal>
  2834. <Dependent Role="BemsEnergyDaily">
  2835. <PropertyRef Name="FuelTypeId" />
  2836. </Dependent>
  2837. </ReferentialConstraint>
  2838. </Association>
  2839. <Association Name="FK__BemsEnergyDaily__BemsServiceType">
  2840. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="1" />
  2841. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2842. <ReferentialConstraint>
  2843. <Principal Role="BemsServiceType">
  2844. <PropertyRef Name="ServiceTypeId" />
  2845. </Principal>
  2846. <Dependent Role="BemsEnergyDaily">
  2847. <PropertyRef Name="ServiceTypeId" />
  2848. </Dependent>
  2849. </ReferentialConstraint>
  2850. </Association>
  2851. <Association Name="FK__BemsEnergyDaily__CmBuilding">
  2852. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  2853. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2854. <ReferentialConstraint>
  2855. <Principal Role="CmBuilding">
  2856. <PropertyRef Name="SiteId" />
  2857. <PropertyRef Name="BuildingId" />
  2858. </Principal>
  2859. <Dependent Role="BemsEnergyDaily">
  2860. <PropertyRef Name="SiteId" />
  2861. <PropertyRef Name="BuildingId" />
  2862. </Dependent>
  2863. </ReferentialConstraint>
  2864. </Association>
  2865. <Association Name="FK__BemsFactorCo2__BemsFuelType">
  2866. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2867. <End Role="BemsFactorCo2" Type="Self.BemsFactorCo2" Multiplicity="0..1" />
  2868. <ReferentialConstraint>
  2869. <Principal Role="BemsFuelType">
  2870. <PropertyRef Name="FuelTypeId" />
  2871. </Principal>
  2872. <Dependent Role="BemsFactorCo2">
  2873. <PropertyRef Name="FuelTypeId" />
  2874. </Dependent>
  2875. </ReferentialConstraint>
  2876. </Association>
  2877. <Association Name="FK__BemsFactorToe__BemsFuelType">
  2878. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2879. <End Role="BemsFactorToe" Type="Self.BemsFactorToe" Multiplicity="0..1" />
  2880. <ReferentialConstraint>
  2881. <Principal Role="BemsFuelType">
  2882. <PropertyRef Name="FuelTypeId" />
  2883. </Principal>
  2884. <Dependent Role="BemsFactorToe">
  2885. <PropertyRef Name="FuelTypeId" />
  2886. </Dependent>
  2887. </ReferentialConstraint>
  2888. </Association>
  2889. <Association Name="FK__BemsFormula__BemsFormulaBase">
  2890. <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
  2891. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
  2892. <ReferentialConstraint>
  2893. <Principal Role="BemsFormulaBase">
  2894. <PropertyRef Name="FacilityTypeId" />
  2895. <PropertyRef Name="FormulaId" />
  2896. </Principal>
  2897. <Dependent Role="BemsFormula">
  2898. <PropertyRef Name="FacilityTypeId" />
  2899. <PropertyRef Name="FormulaId" />
  2900. </Dependent>
  2901. </ReferentialConstraint>
  2902. </Association>
  2903. <Association Name="FK__BemsFormulaParameter__BemsFormula">
  2904. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  2905. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  2906. <ReferentialConstraint>
  2907. <Principal Role="BemsFormula">
  2908. <PropertyRef Name="SiteId" />
  2909. <PropertyRef Name="FacilityTypeId" />
  2910. <PropertyRef Name="FacilityCode" />
  2911. <PropertyRef Name="FormulaId" />
  2912. </Principal>
  2913. <Dependent Role="BemsFormulaParameter">
  2914. <PropertyRef Name="SiteId" />
  2915. <PropertyRef Name="FacilityTypeId" />
  2916. <PropertyRef Name="FacilityCode" />
  2917. <PropertyRef Name="FormulaId" />
  2918. </Dependent>
  2919. </ReferentialConstraint>
  2920. </Association>
  2921. <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
  2922. <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
  2923. <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
  2924. <ReferentialConstraint>
  2925. <Principal Role="BemsFormulaTable">
  2926. <PropertyRef Name="TableId" />
  2927. </Principal>
  2928. <Dependent Role="BemsFormulaTableValue">
  2929. <PropertyRef Name="TableId" />
  2930. </Dependent>
  2931. </ReferentialConstraint>
  2932. </Association>
  2933. <Association Name="FK__BemsMonitoringPo__1372D2FE">
  2934. <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
  2935. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  2936. <ReferentialConstraint>
  2937. <Principal Role="BemsAnalysisType">
  2938. <PropertyRef Name="SiteId" />
  2939. <PropertyRef Name="AnalysisType" />
  2940. </Principal>
  2941. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  2942. <PropertyRef Name="SiteId" />
  2943. <PropertyRef Name="AnalysisType" />
  2944. </Dependent>
  2945. </ReferentialConstraint>
  2946. </Association>
  2947. <Association Name="FK__BemsMonitoringPo__155B1B70">
  2948. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  2949. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  2950. <ReferentialConstraint>
  2951. <Principal Role="BemsMonitoringPoint">
  2952. <PropertyRef Name="SiteId" />
  2953. <PropertyRef Name="FacilityCode" />
  2954. <PropertyRef Name="PropertyId" />
  2955. </Principal>
  2956. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  2957. <PropertyRef Name="SiteId" />
  2958. <PropertyRef Name="FacilityCode" />
  2959. <PropertyRef Name="PropertyId" />
  2960. </Dependent>
  2961. </ReferentialConstraint>
  2962. </Association>
  2963. <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
  2964. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
  2965. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2966. <ReferentialConstraint>
  2967. <Principal Role="BemsFuelType">
  2968. <PropertyRef Name="FuelTypeId" />
  2969. </Principal>
  2970. <Dependent Role="BemsMonitoringPoint">
  2971. <PropertyRef Name="FuelTypeId" />
  2972. </Dependent>
  2973. </ReferentialConstraint>
  2974. </Association>
  2975. <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
  2976. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  2977. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2978. <ReferentialConstraint>
  2979. <Principal Role="BemsServiceType">
  2980. <PropertyRef Name="ServiceTypeId" />
  2981. </Principal>
  2982. <Dependent Role="BemsMonitoringPoint">
  2983. <PropertyRef Name="ServiceTypeId" />
  2984. </Dependent>
  2985. </ReferentialConstraint>
  2986. </Association>
  2987. <Association Name="FK__BemsMonitoringPoint__CmBuilding">
  2988. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
  2989. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2990. <ReferentialConstraint>
  2991. <Principal Role="CmBuilding">
  2992. <PropertyRef Name="SiteId" />
  2993. <PropertyRef Name="BuildingId" />
  2994. </Principal>
  2995. <Dependent Role="BemsMonitoringPoint">
  2996. <PropertyRef Name="SiteId" />
  2997. <PropertyRef Name="BuildingId" />
  2998. </Dependent>
  2999. </ReferentialConstraint>
  3000. </Association>
  3001. <Association Name="FK__BemsMonitoringPoint__CmFloor">
  3002. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
  3003. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  3004. <ReferentialConstraint>
  3005. <Principal Role="CmFloor">
  3006. <PropertyRef Name="SiteId" />
  3007. <PropertyRef Name="BuildingId" />
  3008. <PropertyRef Name="FloorId" />
  3009. </Principal>
  3010. <Dependent Role="BemsMonitoringPoint">
  3011. <PropertyRef Name="SiteId" />
  3012. <PropertyRef Name="BuildingId" />
  3013. <PropertyRef Name="FloorId" />
  3014. </Dependent>
  3015. </ReferentialConstraint>
  3016. </Association>
  3017. <Association Name="FK__BemsMonitoringPoint__CmZone">
  3018. <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
  3019. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  3020. <ReferentialConstraint>
  3021. <Principal Role="CmZone">
  3022. <PropertyRef Name="SiteId" />
  3023. <PropertyRef Name="BuildingId" />
  3024. <PropertyRef Name="FloorId" />
  3025. <PropertyRef Name="ZoneId" />
  3026. </Principal>
  3027. <Dependent Role="BemsMonitoringPoint">
  3028. <PropertyRef Name="SiteId" />
  3029. <PropertyRef Name="BuildingId" />
  3030. <PropertyRef Name="FloorId" />
  3031. <PropertyRef Name="ZoneId" />
  3032. </Dependent>
  3033. </ReferentialConstraint>
  3034. </Association>
  3035. <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
  3036. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3037. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  3038. <ReferentialConstraint>
  3039. <Principal Role="BemsFacilityType">
  3040. <PropertyRef Name="FacilityTypeId" />
  3041. </Principal>
  3042. <Dependent Role="BemsMonitoringPointBaseData">
  3043. <PropertyRef Name="FacilityTypeId" />
  3044. </Dependent>
  3045. </ReferentialConstraint>
  3046. </Association>
  3047. <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
  3048. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
  3049. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  3050. <ReferentialConstraint>
  3051. <Principal Role="BemsFuelType">
  3052. <PropertyRef Name="FuelTypeId" />
  3053. </Principal>
  3054. <Dependent Role="BemsMonitoringPointBaseData">
  3055. <PropertyRef Name="FuelTypeId" />
  3056. </Dependent>
  3057. </ReferentialConstraint>
  3058. </Association>
  3059. <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
  3060. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  3061. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  3062. <ReferentialConstraint>
  3063. <Principal Role="BemsServiceType">
  3064. <PropertyRef Name="ServiceTypeId" />
  3065. </Principal>
  3066. <Dependent Role="BemsMonitoringPointBaseData">
  3067. <PropertyRef Name="ServiceTypeId" />
  3068. </Dependent>
  3069. </ReferentialConstraint>
  3070. </Association>
  3071. <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  3072. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3073. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  3074. <ReferentialConstraint>
  3075. <Principal Role="BemsFacilityType">
  3076. <PropertyRef Name="FacilityTypeId" />
  3077. </Principal>
  3078. <Dependent Role="BemsMonitoringPointHistory15min">
  3079. <PropertyRef Name="FacilityTypeId" />
  3080. </Dependent>
  3081. </ReferentialConstraint>
  3082. </Association>
  3083. <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  3084. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3085. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  3086. <ReferentialConstraint>
  3087. <Principal Role="BemsMonitoringPoint">
  3088. <PropertyRef Name="SiteId" />
  3089. <PropertyRef Name="FacilityCode" />
  3090. <PropertyRef Name="PropertyId" />
  3091. </Principal>
  3092. <Dependent Role="BemsMonitoringPointHistory15min">
  3093. <PropertyRef Name="SiteId" />
  3094. <PropertyRef Name="FacilityCode" />
  3095. <PropertyRef Name="PropertyId" />
  3096. </Dependent>
  3097. </ReferentialConstraint>
  3098. </Association>
  3099. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  3100. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3101. <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  3102. <ReferentialConstraint>
  3103. <Principal Role="BemsFacilityType">
  3104. <PropertyRef Name="FacilityTypeId" />
  3105. </Principal>
  3106. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  3107. <PropertyRef Name="FacilityTypeId" />
  3108. </Dependent>
  3109. </ReferentialConstraint>
  3110. </Association>
  3111. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  3112. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3113. <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  3114. <ReferentialConstraint>
  3115. <Principal Role="BemsMonitoringPoint">
  3116. <PropertyRef Name="SiteId" />
  3117. <PropertyRef Name="FacilityCode" />
  3118. <PropertyRef Name="PropertyId" />
  3119. </Principal>
  3120. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  3121. <PropertyRef Name="SiteId" />
  3122. <PropertyRef Name="FacilityCode" />
  3123. <PropertyRef Name="PropertyId" />
  3124. </Dependent>
  3125. </ReferentialConstraint>
  3126. </Association>
  3127. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  3128. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3129. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  3130. <ReferentialConstraint>
  3131. <Principal Role="BemsFacilityType">
  3132. <PropertyRef Name="FacilityTypeId" />
  3133. </Principal>
  3134. <Dependent Role="BemsMonitoringPointHistoryDaily">
  3135. <PropertyRef Name="FacilityTypeId" />
  3136. </Dependent>
  3137. </ReferentialConstraint>
  3138. </Association>
  3139. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  3140. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3141. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  3142. <ReferentialConstraint>
  3143. <Principal Role="BemsMonitoringPoint">
  3144. <PropertyRef Name="SiteId" />
  3145. <PropertyRef Name="FacilityCode" />
  3146. <PropertyRef Name="PropertyId" />
  3147. </Principal>
  3148. <Dependent Role="BemsMonitoringPointHistoryDaily">
  3149. <PropertyRef Name="SiteId" />
  3150. <PropertyRef Name="FacilityCode" />
  3151. <PropertyRef Name="PropertyId" />
  3152. </Dependent>
  3153. </ReferentialConstraint>
  3154. </Association>
  3155. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  3156. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3157. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  3158. <ReferentialConstraint>
  3159. <Principal Role="BemsFacilityType">
  3160. <PropertyRef Name="FacilityTypeId" />
  3161. </Principal>
  3162. <Dependent Role="BemsMonitoringPointHistoryHourly">
  3163. <PropertyRef Name="FacilityTypeId" />
  3164. </Dependent>
  3165. </ReferentialConstraint>
  3166. </Association>
  3167. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  3168. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3169. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  3170. <ReferentialConstraint>
  3171. <Principal Role="BemsMonitoringPoint">
  3172. <PropertyRef Name="SiteId" />
  3173. <PropertyRef Name="FacilityCode" />
  3174. <PropertyRef Name="PropertyId" />
  3175. </Principal>
  3176. <Dependent Role="BemsMonitoringPointHistoryHourly">
  3177. <PropertyRef Name="SiteId" />
  3178. <PropertyRef Name="FacilityCode" />
  3179. <PropertyRef Name="PropertyId" />
  3180. </Dependent>
  3181. </ReferentialConstraint>
  3182. </Association>
  3183. <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  3184. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3185. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  3186. <ReferentialConstraint>
  3187. <Principal Role="BemsFacilityType">
  3188. <PropertyRef Name="FacilityTypeId" />
  3189. </Principal>
  3190. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  3191. <PropertyRef Name="FacilityTypeId" />
  3192. </Dependent>
  3193. </ReferentialConstraint>
  3194. </Association>
  3195. <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  3196. <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="1" />
  3197. <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="*" />
  3198. <ReferentialConstraint>
  3199. <Principal Role="BemsNoticePriceContractType">
  3200. <PropertyRef Name="FuelTypeId" />
  3201. <PropertyRef Name="ContractType" />
  3202. </Principal>
  3203. <Dependent Role="BemsNoticePriceBase">
  3204. <PropertyRef Name="FuelTypeId" />
  3205. <PropertyRef Name="ContractType" />
  3206. </Dependent>
  3207. </ReferentialConstraint>
  3208. </Association>
  3209. <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
  3210. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  3211. <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="*" />
  3212. <ReferentialConstraint>
  3213. <Principal Role="BemsFuelType">
  3214. <PropertyRef Name="FuelTypeId" />
  3215. </Principal>
  3216. <Dependent Role="BemsNoticePriceContractType">
  3217. <PropertyRef Name="FuelTypeId" />
  3218. </Dependent>
  3219. </ReferentialConstraint>
  3220. </Association>
  3221. <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  3222. <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="1" />
  3223. <End Role="BemsNoticePriceDetail" Type="Self.BemsNoticePriceDetail" Multiplicity="*" />
  3224. <ReferentialConstraint>
  3225. <Principal Role="BemsNoticePriceBase">
  3226. <PropertyRef Name="SiteId" />
  3227. <PropertyRef Name="FuelTypeId" />
  3228. <PropertyRef Name="ApplyDate" />
  3229. <PropertyRef Name="ContractType" />
  3230. </Principal>
  3231. <Dependent Role="BemsNoticePriceDetail">
  3232. <PropertyRef Name="SiteId" />
  3233. <PropertyRef Name="FuelTypeId" />
  3234. <PropertyRef Name="ApplyDate" />
  3235. <PropertyRef Name="ContractType" />
  3236. </Dependent>
  3237. </ReferentialConstraint>
  3238. </Association>
  3239. <Association Name="FK__CmCompany__345EC57D">
  3240. <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
  3241. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  3242. <ReferentialConstraint>
  3243. <Principal Role="CmCompanyType">
  3244. <PropertyRef Name="SiteId" />
  3245. <PropertyRef Name="CompanyTypeId" />
  3246. </Principal>
  3247. <Dependent Role="CmCompany">
  3248. <PropertyRef Name="SiteId" />
  3249. <PropertyRef Name="CompanyTypeId" />
  3250. </Dependent>
  3251. </ReferentialConstraint>
  3252. </Association>
  3253. <Association Name="FK__CmCompany__SiteI__336AA144">
  3254. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3255. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  3256. <ReferentialConstraint>
  3257. <Principal Role="CmSite">
  3258. <PropertyRef Name="SiteId" />
  3259. </Principal>
  3260. <Dependent Role="CmCompany">
  3261. <PropertyRef Name="SiteId" />
  3262. </Dependent>
  3263. </ReferentialConstraint>
  3264. </Association>
  3265. <Association Name="FK__CmDepartment__3552E9B6">
  3266. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
  3267. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
  3268. <ReferentialConstraint>
  3269. <Principal Role="CmCompany">
  3270. <PropertyRef Name="SiteId" />
  3271. <PropertyRef Name="CompanyId" />
  3272. </Principal>
  3273. <Dependent Role="CmDepartment">
  3274. <PropertyRef Name="SiteId" />
  3275. <PropertyRef Name="CompanyId" />
  3276. </Dependent>
  3277. </ReferentialConstraint>
  3278. </Association>
  3279. <Association Name="FK__CmFacility__CmFacility">
  3280. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
  3281. <End Role="CmFacility1" Type="Self.CmFacility" Multiplicity="*" />
  3282. <ReferentialConstraint>
  3283. <Principal Role="CmFacility">
  3284. <PropertyRef Name="SiteId" />
  3285. <PropertyRef Name="FacilityCode" />
  3286. </Principal>
  3287. <Dependent Role="CmFacility1">
  3288. <PropertyRef Name="SiteId" />
  3289. <PropertyRef Name="ParentFacilityCode" />
  3290. </Dependent>
  3291. </ReferentialConstraint>
  3292. </Association>
  3293. <Association Name="FK__CmFacilityFile__7720AD13">
  3294. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3295. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="*" />
  3296. <ReferentialConstraint>
  3297. <Principal Role="CmFacility">
  3298. <PropertyRef Name="SiteId" />
  3299. <PropertyRef Name="FacilityCode" />
  3300. </Principal>
  3301. <Dependent Role="CmFacilityFile">
  3302. <PropertyRef Name="SiteId" />
  3303. <PropertyRef Name="FacilityCode" />
  3304. </Dependent>
  3305. </ReferentialConstraint>
  3306. </Association>
  3307. <Association Name="FK__CmFacilityFile__CmFile">
  3308. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  3309. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
  3310. <ReferentialConstraint>
  3311. <Principal Role="CmFile">
  3312. <PropertyRef Name="SiteId" />
  3313. <PropertyRef Name="FileId" />
  3314. </Principal>
  3315. <Dependent Role="CmFacilityFile">
  3316. <PropertyRef Name="SiteId" />
  3317. <PropertyRef Name="FileId" />
  3318. </Dependent>
  3319. </ReferentialConstraint>
  3320. </Association>
  3321. <Association Name="FK__CmFacilityManual__79FD19BE">
  3322. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3323. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  3324. <ReferentialConstraint>
  3325. <Principal Role="CmFacility">
  3326. <PropertyRef Name="SiteId" />
  3327. <PropertyRef Name="FacilityCode" />
  3328. </Principal>
  3329. <Dependent Role="FmsFacilityManual">
  3330. <PropertyRef Name="SiteId" />
  3331. <PropertyRef Name="FacilityCode" />
  3332. </Dependent>
  3333. </ReferentialConstraint>
  3334. </Association>
  3335. <Association Name="FK__CmFacilityManual__7BE56230">
  3336. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3337. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  3338. <ReferentialConstraint>
  3339. <Principal Role="CmBusinessField">
  3340. <PropertyRef Name="SiteId" />
  3341. <PropertyRef Name="BusinessFieldId" />
  3342. </Principal>
  3343. <Dependent Role="FmsFacilityManual">
  3344. <PropertyRef Name="SiteId" />
  3345. <PropertyRef Name="BusinessFieldId" />
  3346. </Dependent>
  3347. </ReferentialConstraint>
  3348. </Association>
  3349. <Association Name="FK__CmFile__CmFileCategory">
  3350. <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
  3351. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  3352. <ReferentialConstraint>
  3353. <Principal Role="CmFileCategory">
  3354. <PropertyRef Name="FileCategoryId" />
  3355. </Principal>
  3356. <Dependent Role="CmFile">
  3357. <PropertyRef Name="FileCategoryId" />
  3358. </Dependent>
  3359. </ReferentialConstraint>
  3360. </Association>
  3361. <Association Name="FK__CmFile__SiteId__2759D01A">
  3362. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3363. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  3364. <ReferentialConstraint>
  3365. <Principal Role="CmSite">
  3366. <PropertyRef Name="SiteId" />
  3367. </Principal>
  3368. <Dependent Role="CmFile">
  3369. <PropertyRef Name="SiteId" />
  3370. </Dependent>
  3371. </ReferentialConstraint>
  3372. </Association>
  3373. <Association Name="FK__CmFloor__3CF40B7E">
  3374. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  3375. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
  3376. <ReferentialConstraint>
  3377. <Principal Role="CmBuilding">
  3378. <PropertyRef Name="SiteId" />
  3379. <PropertyRef Name="BuildingId" />
  3380. </Principal>
  3381. <Dependent Role="CmFloor">
  3382. <PropertyRef Name="SiteId" />
  3383. <PropertyRef Name="BuildingId" />
  3384. </Dependent>
  3385. </ReferentialConstraint>
  3386. </Association>
  3387. <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
  3388. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3389. <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
  3390. <ReferentialConstraint>
  3391. <Principal Role="CmSite">
  3392. <PropertyRef Name="SiteId" />
  3393. </Principal>
  3394. <Dependent Role="CmHoliday">
  3395. <PropertyRef Name="SiteId" />
  3396. </Dependent>
  3397. </ReferentialConstraint>
  3398. </Association>
  3399. <Association Name="FK__CmHoliday__SiteI__0D99FE17">
  3400. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3401. <End Role="CmHolidayWeekend" Type="Self.CmHolidayWeekend" Multiplicity="0..1" />
  3402. <ReferentialConstraint>
  3403. <Principal Role="CmSite">
  3404. <PropertyRef Name="SiteId" />
  3405. </Principal>
  3406. <Dependent Role="CmHolidayWeekend">
  3407. <PropertyRef Name="SiteId" />
  3408. </Dependent>
  3409. </ReferentialConstraint>
  3410. </Association>
  3411. <Association Name="FK__CmHoliday__SiteI__10766AC2">
  3412. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3413. <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
  3414. <ReferentialConstraint>
  3415. <Principal Role="CmSite">
  3416. <PropertyRef Name="SiteId" />
  3417. </Principal>
  3418. <Dependent Role="CmHolidayCustom">
  3419. <PropertyRef Name="SiteId" />
  3420. </Dependent>
  3421. </ReferentialConstraint>
  3422. </Association>
  3423. <Association Name="FK__CmHoliday__SiteI__65AC084E">
  3424. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3425. <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
  3426. <ReferentialConstraint>
  3427. <Principal Role="CmSite">
  3428. <PropertyRef Name="SiteId" />
  3429. </Principal>
  3430. <Dependent Role="CmHoliday">
  3431. <PropertyRef Name="SiteId" />
  3432. </Dependent>
  3433. </ReferentialConstraint>
  3434. </Association>
  3435. <Association Name="FK__CmHoliday__SiteI__66A02C87">
  3436. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3437. <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
  3438. <ReferentialConstraint>
  3439. <Principal Role="CmSite">
  3440. <PropertyRef Name="SiteId" />
  3441. </Principal>
  3442. <Dependent Role="CmHolidayCustom">
  3443. <PropertyRef Name="SiteId" />
  3444. </Dependent>
  3445. </ReferentialConstraint>
  3446. </Association>
  3447. <Association Name="FK__CmLocation__3DE82FB7">
  3448. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  3449. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  3450. <ReferentialConstraint>
  3451. <Principal Role="CmFloor">
  3452. <PropertyRef Name="SiteId" />
  3453. <PropertyRef Name="BuildingId" />
  3454. <PropertyRef Name="FloorId" />
  3455. </Principal>
  3456. <Dependent Role="CmZone">
  3457. <PropertyRef Name="SiteId" />
  3458. <PropertyRef Name="BuildingId" />
  3459. <PropertyRef Name="FloorId" />
  3460. </Dependent>
  3461. </ReferentialConstraint>
  3462. </Association>
  3463. <Association Name="FK__CmPositio__SiteI__6A70BD6B">
  3464. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3465. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
  3466. <ReferentialConstraint>
  3467. <Principal Role="CmSite">
  3468. <PropertyRef Name="SiteId" />
  3469. </Principal>
  3470. <Dependent Role="CmPosition">
  3471. <PropertyRef Name="SiteId" />
  3472. </Dependent>
  3473. </ReferentialConstraint>
  3474. </Association>
  3475. <Association Name="FK__CmUserGro__SiteI__53D770D6">
  3476. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3477. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="*" />
  3478. <ReferentialConstraint>
  3479. <Principal Role="CmSite">
  3480. <PropertyRef Name="SiteId" />
  3481. </Principal>
  3482. <Dependent Role="CmUserGroup">
  3483. <PropertyRef Name="SiteId" />
  3484. </Dependent>
  3485. </ReferentialConstraint>
  3486. </Association>
  3487. <Association Name="FK__CmUserGroupPermission__CmUserGroup">
  3488. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
  3489. <OnDelete Action="Cascade" />
  3490. </End>
  3491. <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
  3492. <ReferentialConstraint>
  3493. <Principal Role="CmUserGroup">
  3494. <PropertyRef Name="SiteId" />
  3495. <PropertyRef Name="UserGroupId" />
  3496. </Principal>
  3497. <Dependent Role="CmUserGroupPermission">
  3498. <PropertyRef Name="SiteId" />
  3499. <PropertyRef Name="UserGroupId" />
  3500. </Dependent>
  3501. </ReferentialConstraint>
  3502. </Association>
  3503. <Association Name="FK__CmUserPos__SiteI__44952D46">
  3504. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3505. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
  3506. <ReferentialConstraint>
  3507. <Principal Role="CmSite">
  3508. <PropertyRef Name="SiteId" />
  3509. </Principal>
  3510. <Dependent Role="CmPosition">
  3511. <PropertyRef Name="SiteId" />
  3512. </Dependent>
  3513. </ReferentialConstraint>
  3514. </Association>
  3515. <Association Name="FK__CmUserToLicense__CmUser">
  3516. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3517. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  3518. <ReferentialConstraint>
  3519. <Principal Role="CmUser">
  3520. <PropertyRef Name="SiteId" />
  3521. <PropertyRef Name="UserId" />
  3522. </Principal>
  3523. <Dependent Role="CmUserToLicense">
  3524. <PropertyRef Name="SiteId" />
  3525. <PropertyRef Name="UserId" />
  3526. </Dependent>
  3527. </ReferentialConstraint>
  3528. </Association>
  3529. <Association Name="FK__CmUserToLicense__FmsLicense">
  3530. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
  3531. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  3532. <ReferentialConstraint>
  3533. <Principal Role="FmsLicense">
  3534. <PropertyRef Name="SiteId" />
  3535. <PropertyRef Name="LicenseId" />
  3536. </Principal>
  3537. <Dependent Role="CmUserToLicense">
  3538. <PropertyRef Name="SiteId" />
  3539. <PropertyRef Name="LicenseId" />
  3540. </Dependent>
  3541. </ReferentialConstraint>
  3542. </Association>
  3543. <Association Name="FK__CmZone__CmBuilding">
  3544. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  3545. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  3546. <ReferentialConstraint>
  3547. <Principal Role="CmBuilding">
  3548. <PropertyRef Name="SiteId" />
  3549. <PropertyRef Name="BuildingId" />
  3550. </Principal>
  3551. <Dependent Role="CmZone">
  3552. <PropertyRef Name="SiteId" />
  3553. <PropertyRef Name="BuildingId" />
  3554. </Dependent>
  3555. </ReferentialConstraint>
  3556. </Association>
  3557. <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
  3558. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3559. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
  3560. <ReferentialConstraint>
  3561. <Principal Role="CmSite">
  3562. <PropertyRef Name="SiteId" />
  3563. </Principal>
  3564. <Dependent Role="FmsDrawingCodeGroup">
  3565. <PropertyRef Name="SiteId" />
  3566. </Dependent>
  3567. </ReferentialConstraint>
  3568. </Association>
  3569. <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
  3570. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3571. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
  3572. <ReferentialConstraint>
  3573. <Principal Role="CmSite">
  3574. <PropertyRef Name="SiteId" />
  3575. </Principal>
  3576. <Dependent Role="FmsDrawingCodeType">
  3577. <PropertyRef Name="SiteId" />
  3578. </Dependent>
  3579. </ReferentialConstraint>
  3580. </Association>
  3581. <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
  3582. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3583. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3584. <ReferentialConstraint>
  3585. <Principal Role="CmSite">
  3586. <PropertyRef Name="SiteId" />
  3587. </Principal>
  3588. <Dependent Role="FmsDrawing">
  3589. <PropertyRef Name="SiteId" />
  3590. </Dependent>
  3591. </ReferentialConstraint>
  3592. </Association>
  3593. <Association Name="FK__FmsDrawin__SiteI__6F357288">
  3594. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3595. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
  3596. <ReferentialConstraint>
  3597. <Principal Role="CmSite">
  3598. <PropertyRef Name="SiteId" />
  3599. </Principal>
  3600. <Dependent Role="FmsDrawingCodeGroup">
  3601. <PropertyRef Name="SiteId" />
  3602. </Dependent>
  3603. </ReferentialConstraint>
  3604. </Association>
  3605. <Association Name="FK__FmsDrawin__SiteI__702996C1">
  3606. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3607. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
  3608. <ReferentialConstraint>
  3609. <Principal Role="CmSite">
  3610. <PropertyRef Name="SiteId" />
  3611. </Principal>
  3612. <Dependent Role="FmsDrawingCodeType">
  3613. <PropertyRef Name="SiteId" />
  3614. </Dependent>
  3615. </ReferentialConstraint>
  3616. </Association>
  3617. <Association Name="FK__FmsDrawing__6E565CE8">
  3618. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
  3619. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3620. <ReferentialConstraint>
  3621. <Principal Role="FmsDrawingCodeGroup">
  3622. <PropertyRef Name="SiteId" />
  3623. <PropertyRef Name="DrawingGroupId" />
  3624. </Principal>
  3625. <Dependent Role="FmsDrawing">
  3626. <PropertyRef Name="SiteId" />
  3627. <PropertyRef Name="DrawingGroupId" />
  3628. </Dependent>
  3629. </ReferentialConstraint>
  3630. </Association>
  3631. <Association Name="FK__FmsDrawing__6F4A8121">
  3632. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
  3633. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3634. <ReferentialConstraint>
  3635. <Principal Role="FmsDrawingCodeType">
  3636. <PropertyRef Name="SiteId" />
  3637. <PropertyRef Name="DrawingTypeId" />
  3638. </Principal>
  3639. <Dependent Role="FmsDrawing">
  3640. <PropertyRef Name="SiteId" />
  3641. <PropertyRef Name="DrawingTypeId" />
  3642. </Dependent>
  3643. </ReferentialConstraint>
  3644. </Association>
  3645. <Association Name="FK__FmsDrawingHistor__04DA9AE4">
  3646. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  3647. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3648. <ReferentialConstraint>
  3649. <Principal Role="CmFile">
  3650. <PropertyRef Name="SiteId" />
  3651. <PropertyRef Name="FileId" />
  3652. </Principal>
  3653. <Dependent Role="FmsDrawingHistory">
  3654. <PropertyRef Name="SiteId" />
  3655. <PropertyRef Name="FileId" />
  3656. </Dependent>
  3657. </ReferentialConstraint>
  3658. </Association>
  3659. <Association Name="FK__FmsDrawingHistor__7132C993">
  3660. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1">
  3661. <OnDelete Action="Cascade" />
  3662. </End>
  3663. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3664. <ReferentialConstraint>
  3665. <Principal Role="FmsDrawing">
  3666. <PropertyRef Name="SiteId" />
  3667. <PropertyRef Name="DrawingId" />
  3668. </Principal>
  3669. <Dependent Role="FmsDrawingHistory">
  3670. <PropertyRef Name="SiteId" />
  3671. <PropertyRef Name="DrawingId" />
  3672. </Dependent>
  3673. </ReferentialConstraint>
  3674. </Association>
  3675. <Association Name="FK__FmsDrawingHistory__CmUser">
  3676. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  3677. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3678. <ReferentialConstraint>
  3679. <Principal Role="CmUser">
  3680. <PropertyRef Name="SiteId" />
  3681. <PropertyRef Name="UserId" />
  3682. </Principal>
  3683. <Dependent Role="FmsDrawingHistory">
  3684. <PropertyRef Name="SiteId" />
  3685. <PropertyRef Name="UpdatedUserId" />
  3686. </Dependent>
  3687. </ReferentialConstraint>
  3688. </Association>
  3689. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  3690. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  3691. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  3692. <ReferentialConstraint>
  3693. <Principal Role="FmsWorkCodeCycleUnit">
  3694. <PropertyRef Name="SiteId" />
  3695. <PropertyRef Name="CycleUnitId" />
  3696. </Principal>
  3697. <Dependent Role="FmsFacilityCheckItem">
  3698. <PropertyRef Name="SiteId" />
  3699. <PropertyRef Name="CycleUnitId" />
  3700. </Dependent>
  3701. </ReferentialConstraint>
  3702. </Association>
  3703. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  3704. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  3705. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  3706. <ReferentialConstraint>
  3707. <Principal Role="FmsWorkCodeType">
  3708. <PropertyRef Name="WorkTypeId" />
  3709. </Principal>
  3710. <Dependent Role="FmsFacilityCheckItem">
  3711. <PropertyRef Name="WorkTypeId" />
  3712. </Dependent>
  3713. </ReferentialConstraint>
  3714. </Association>
  3715. <Association Name="FK__FmsFacilityCodeClass__CmSite">
  3716. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1">
  3717. <OnDelete Action="Cascade" />
  3718. </End>
  3719. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  3720. <ReferentialConstraint>
  3721. <Principal Role="CmSite">
  3722. <PropertyRef Name="SiteId" />
  3723. </Principal>
  3724. <Dependent Role="FmsFacilityCodeClass">
  3725. <PropertyRef Name="SiteId" />
  3726. </Dependent>
  3727. </ReferentialConstraint>
  3728. </Association>
  3729. <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  3730. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
  3731. <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  3732. <ReferentialConstraint>
  3733. <Principal Role="FmsFacilityCodeClass">
  3734. <PropertyRef Name="SiteId" />
  3735. <PropertyRef Name="FacilityClassId" />
  3736. </Principal>
  3737. <Dependent Role="FmsFacilityCodeClass1">
  3738. <PropertyRef Name="SiteId" />
  3739. <PropertyRef Name="ParentFacilityClassId" />
  3740. </Dependent>
  3741. </ReferentialConstraint>
  3742. </Association>
  3743. <Association Name="FK__FmsFacilityOpera__725BF7F6">
  3744. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3745. <End Role="FmsFacilityOperationItem" Type="Self.FmsFacilityOperationItem" Multiplicity="0..1" />
  3746. <ReferentialConstraint>
  3747. <Principal Role="CmFacility">
  3748. <PropertyRef Name="SiteId" />
  3749. <PropertyRef Name="FacilityCode" />
  3750. </Principal>
  3751. <Dependent Role="FmsFacilityOperationItem">
  3752. <PropertyRef Name="SiteId" />
  3753. <PropertyRef Name="ItemId" />
  3754. </Dependent>
  3755. </ReferentialConstraint>
  3756. </Association>
  3757. <Association Name="FK__FmsLicense__CmBusinessField">
  3758. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  3759. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  3760. <ReferentialConstraint>
  3761. <Principal Role="CmBusinessField">
  3762. <PropertyRef Name="SiteId" />
  3763. <PropertyRef Name="BusinessFieldId" />
  3764. </Principal>
  3765. <Dependent Role="FmsLicense">
  3766. <PropertyRef Name="SiteId" />
  3767. <PropertyRef Name="BusinessFieldId" />
  3768. </Dependent>
  3769. </ReferentialConstraint>
  3770. </Association>
  3771. <Association Name="FK__FmsLicense__CmSite">
  3772. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3773. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  3774. <ReferentialConstraint>
  3775. <Principal Role="CmSite">
  3776. <PropertyRef Name="SiteId" />
  3777. </Principal>
  3778. <Dependent Role="FmsLicense">
  3779. <PropertyRef Name="SiteId" />
  3780. </Dependent>
  3781. </ReferentialConstraint>
  3782. </Association>
  3783. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  3784. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3785. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3786. <ReferentialConstraint>
  3787. <Principal Role="FmsMaterialCodeClass">
  3788. <PropertyRef Name="SiteId" />
  3789. <PropertyRef Name="MaterialClassId" />
  3790. </Principal>
  3791. <Dependent Role="FmsMaterial">
  3792. <PropertyRef Name="SiteId" />
  3793. <PropertyRef Name="FirstClassId" />
  3794. </Dependent>
  3795. </ReferentialConstraint>
  3796. </Association>
  3797. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  3798. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3799. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3800. <ReferentialConstraint>
  3801. <Principal Role="FmsMaterialCodeClass">
  3802. <PropertyRef Name="SiteId" />
  3803. <PropertyRef Name="MaterialClassId" />
  3804. </Principal>
  3805. <Dependent Role="FmsMaterial">
  3806. <PropertyRef Name="SiteId" />
  3807. <PropertyRef Name="SecondClassId" />
  3808. </Dependent>
  3809. </ReferentialConstraint>
  3810. </Association>
  3811. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  3812. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3813. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3814. <ReferentialConstraint>
  3815. <Principal Role="FmsMaterialCodeClass">
  3816. <PropertyRef Name="SiteId" />
  3817. <PropertyRef Name="MaterialClassId" />
  3818. </Principal>
  3819. <Dependent Role="FmsMaterial">
  3820. <PropertyRef Name="SiteId" />
  3821. <PropertyRef Name="ThirdClassId" />
  3822. </Dependent>
  3823. </ReferentialConstraint>
  3824. </Association>
  3825. <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
  3826. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3827. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  3828. <ReferentialConstraint>
  3829. <Principal Role="CmBusinessField">
  3830. <PropertyRef Name="SiteId" />
  3831. <PropertyRef Name="BusinessFieldId" />
  3832. </Principal>
  3833. <Dependent Role="FmsMaterialCarriedForward">
  3834. <PropertyRef Name="SiteId" />
  3835. <PropertyRef Name="BusinessFieldId" />
  3836. </Dependent>
  3837. </ReferentialConstraint>
  3838. </Association>
  3839. <Association Name="FK__FmsMaterialCarriedForward__CmSite">
  3840. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3841. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  3842. <ReferentialConstraint>
  3843. <Principal Role="CmSite">
  3844. <PropertyRef Name="SiteId" />
  3845. </Principal>
  3846. <Dependent Role="FmsMaterialCarriedForward">
  3847. <PropertyRef Name="SiteId" />
  3848. </Dependent>
  3849. </ReferentialConstraint>
  3850. </Association>
  3851. <Association Name="FK__FmsMaterialCodeClass__CmSite">
  3852. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3853. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3854. <ReferentialConstraint>
  3855. <Principal Role="CmSite">
  3856. <PropertyRef Name="SiteId" />
  3857. </Principal>
  3858. <Dependent Role="FmsMaterialCodeClass">
  3859. <PropertyRef Name="SiteId" />
  3860. </Dependent>
  3861. </ReferentialConstraint>
  3862. </Association>
  3863. <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  3864. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3865. <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3866. <ReferentialConstraint>
  3867. <Principal Role="FmsMaterialCodeClass">
  3868. <PropertyRef Name="SiteId" />
  3869. <PropertyRef Name="MaterialClassId" />
  3870. </Principal>
  3871. <Dependent Role="FmsMaterialCodeClass1">
  3872. <PropertyRef Name="SiteId" />
  3873. <PropertyRef Name="ParentMaterialClassId" />
  3874. </Dependent>
  3875. </ReferentialConstraint>
  3876. </Association>
  3877. <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
  3878. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3879. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  3880. <ReferentialConstraint>
  3881. <Principal Role="CmBusinessField">
  3882. <PropertyRef Name="SiteId" />
  3883. <PropertyRef Name="BusinessFieldId" />
  3884. </Principal>
  3885. <Dependent Role="FmsMaterialCodeLocation">
  3886. <PropertyRef Name="SiteId" />
  3887. <PropertyRef Name="BusinessFieldId" />
  3888. </Dependent>
  3889. </ReferentialConstraint>
  3890. </Association>
  3891. <Association Name="FK__FmsMaterialCodeLocation__CmSite">
  3892. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3893. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  3894. <ReferentialConstraint>
  3895. <Principal Role="CmSite">
  3896. <PropertyRef Name="SiteId" />
  3897. </Principal>
  3898. <Dependent Role="FmsMaterialCodeLocation">
  3899. <PropertyRef Name="SiteId" />
  3900. </Dependent>
  3901. </ReferentialConstraint>
  3902. </Association>
  3903. <Association Name="FK__FmsMaterialCodeType__CmSite">
  3904. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3905. <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="*" />
  3906. <ReferentialConstraint>
  3907. <Principal Role="CmSite">
  3908. <PropertyRef Name="SiteId" />
  3909. </Principal>
  3910. <Dependent Role="FmsMaterialCodeType">
  3911. <PropertyRef Name="SiteId" />
  3912. </Dependent>
  3913. </ReferentialConstraint>
  3914. </Association>
  3915. <Association Name="FK__FmsMaterialOrder__CmBusinessField">
  3916. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3917. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3918. <ReferentialConstraint>
  3919. <Principal Role="CmBusinessField">
  3920. <PropertyRef Name="SiteId" />
  3921. <PropertyRef Name="BusinessFieldId" />
  3922. </Principal>
  3923. <Dependent Role="FmsMaterialPurchaseOrder">
  3924. <PropertyRef Name="SiteId" />
  3925. <PropertyRef Name="BusinessFieldId" />
  3926. </Dependent>
  3927. </ReferentialConstraint>
  3928. </Association>
  3929. <Association Name="FK__FmsMaterialOrder__CmSite">
  3930. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3931. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3932. <ReferentialConstraint>
  3933. <Principal Role="CmSite">
  3934. <PropertyRef Name="SiteId" />
  3935. </Principal>
  3936. <Dependent Role="FmsMaterialPurchaseOrder">
  3937. <PropertyRef Name="SiteId" />
  3938. </Dependent>
  3939. </ReferentialConstraint>
  3940. </Association>
  3941. <Association Name="FK__FmsMaterialOrder__CmUser">
  3942. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3943. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3944. <ReferentialConstraint>
  3945. <Principal Role="CmUser">
  3946. <PropertyRef Name="SiteId" />
  3947. <PropertyRef Name="UserId" />
  3948. </Principal>
  3949. <Dependent Role="FmsMaterialPurchaseOrder">
  3950. <PropertyRef Name="SiteId" />
  3951. <PropertyRef Name="OrderUserId" />
  3952. </Dependent>
  3953. </ReferentialConstraint>
  3954. </Association>
  3955. <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
  3956. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  3957. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3958. <ReferentialConstraint>
  3959. <Principal Role="CmFile">
  3960. <PropertyRef Name="SiteId" />
  3961. <PropertyRef Name="FileId" />
  3962. </Principal>
  3963. <Dependent Role="FmsMaterialPurchaseOrder">
  3964. <PropertyRef Name="SiteId" />
  3965. <PropertyRef Name="FileId" />
  3966. </Dependent>
  3967. </ReferentialConstraint>
  3968. </Association>
  3969. <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  3970. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  3971. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3972. <ReferentialConstraint>
  3973. <Principal Role="FmsMaterialTradeCompany">
  3974. <PropertyRef Name="SiteId" />
  3975. <PropertyRef Name="TradeCompanyId" />
  3976. </Principal>
  3977. <Dependent Role="FmsMaterialPurchaseOrder">
  3978. <PropertyRef Name="SiteId" />
  3979. <PropertyRef Name="TradeCompanyId" />
  3980. </Dependent>
  3981. </ReferentialConstraint>
  3982. </Association>
  3983. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  3984. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3985. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3986. <ReferentialConstraint>
  3987. <Principal Role="CmUser">
  3988. <PropertyRef Name="SiteId" />
  3989. <PropertyRef Name="UserId" />
  3990. </Principal>
  3991. <Dependent Role="FmsMaterialPurchaseRequest">
  3992. <PropertyRef Name="SiteId" />
  3993. <PropertyRef Name="RequestUserId" />
  3994. </Dependent>
  3995. </ReferentialConstraint>
  3996. </Association>
  3997. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  3998. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  3999. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4000. <ReferentialConstraint>
  4001. <Principal Role="CmUser">
  4002. <PropertyRef Name="SiteId" />
  4003. <PropertyRef Name="UserId" />
  4004. </Principal>
  4005. <Dependent Role="FmsMaterialPurchaseRequest">
  4006. <PropertyRef Name="SiteId" />
  4007. <PropertyRef Name="ApprovalUserId" />
  4008. </Dependent>
  4009. </ReferentialConstraint>
  4010. </Association>
  4011. <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
  4012. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4013. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4014. <ReferentialConstraint>
  4015. <Principal Role="CmBusinessField">
  4016. <PropertyRef Name="SiteId" />
  4017. <PropertyRef Name="BusinessFieldId" />
  4018. </Principal>
  4019. <Dependent Role="FmsMaterialPurchaseRequest">
  4020. <PropertyRef Name="SiteId" />
  4021. <PropertyRef Name="BusinessFieldId" />
  4022. </Dependent>
  4023. </ReferentialConstraint>
  4024. </Association>
  4025. <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
  4026. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4027. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4028. <ReferentialConstraint>
  4029. <Principal Role="CmSite">
  4030. <PropertyRef Name="SiteId" />
  4031. </Principal>
  4032. <Dependent Role="FmsMaterialPurchaseRequest">
  4033. <PropertyRef Name="SiteId" />
  4034. </Dependent>
  4035. </ReferentialConstraint>
  4036. </Association>
  4037. <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  4038. <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
  4039. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4040. <ReferentialConstraint>
  4041. <Principal Role="FmsMaterialCodeProgress">
  4042. <PropertyRef Name="ProgressId" />
  4043. </Principal>
  4044. <Dependent Role="FmsMaterialPurchaseRequest">
  4045. <PropertyRef Name="ProgressId" />
  4046. </Dependent>
  4047. </ReferentialConstraint>
  4048. </Association>
  4049. <Association Name="FK__FmsMaterialStored__CmBusinessField">
  4050. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4051. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4052. <ReferentialConstraint>
  4053. <Principal Role="CmBusinessField">
  4054. <PropertyRef Name="SiteId" />
  4055. <PropertyRef Name="BusinessFieldId" />
  4056. </Principal>
  4057. <Dependent Role="FmsMaterialStored">
  4058. <PropertyRef Name="SiteId" />
  4059. <PropertyRef Name="BusinessFieldId" />
  4060. </Dependent>
  4061. </ReferentialConstraint>
  4062. </Association>
  4063. <Association Name="FK__FmsMaterialStored__CmSite">
  4064. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4065. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4066. <ReferentialConstraint>
  4067. <Principal Role="CmSite">
  4068. <PropertyRef Name="SiteId" />
  4069. </Principal>
  4070. <Dependent Role="FmsMaterialStored">
  4071. <PropertyRef Name="SiteId" />
  4072. </Dependent>
  4073. </ReferentialConstraint>
  4074. </Association>
  4075. <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
  4076. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4077. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4078. <ReferentialConstraint>
  4079. <Principal Role="CmUser">
  4080. <PropertyRef Name="SiteId" />
  4081. <PropertyRef Name="UserId" />
  4082. </Principal>
  4083. <Dependent Role="FmsMaterialStored">
  4084. <PropertyRef Name="SiteId" />
  4085. <PropertyRef Name="StoredUserId" />
  4086. </Dependent>
  4087. </ReferentialConstraint>
  4088. </Association>
  4089. <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  4090. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4091. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4092. <ReferentialConstraint>
  4093. <Principal Role="CmUser">
  4094. <PropertyRef Name="SiteId" />
  4095. <PropertyRef Name="UserId" />
  4096. </Principal>
  4097. <Dependent Role="FmsMaterialStored">
  4098. <PropertyRef Name="SiteId" />
  4099. <PropertyRef Name="ApprovalUserId" />
  4100. </Dependent>
  4101. </ReferentialConstraint>
  4102. </Association>
  4103. <Association Name="FK__FmsMaterialTradeCompany__CmSite">
  4104. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4105. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="*" />
  4106. <ReferentialConstraint>
  4107. <Principal Role="CmSite">
  4108. <PropertyRef Name="SiteId" />
  4109. </Principal>
  4110. <Dependent Role="FmsMaterialTradeCompany">
  4111. <PropertyRef Name="SiteId" />
  4112. </Dependent>
  4113. </ReferentialConstraint>
  4114. </Association>
  4115. <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
  4116. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4117. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  4118. <ReferentialConstraint>
  4119. <Principal Role="CmBusinessField">
  4120. <PropertyRef Name="SiteId" />
  4121. <PropertyRef Name="BusinessFieldId" />
  4122. </Principal>
  4123. <Dependent Role="FmsMaterialWarehouse">
  4124. <PropertyRef Name="SiteId" />
  4125. <PropertyRef Name="BusinessFieldId" />
  4126. </Dependent>
  4127. </ReferentialConstraint>
  4128. </Association>
  4129. <Association Name="FK__FmsMaterialWarehouse__CmSite">
  4130. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4131. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  4132. <ReferentialConstraint>
  4133. <Principal Role="CmSite">
  4134. <PropertyRef Name="SiteId" />
  4135. </Principal>
  4136. <Dependent Role="FmsMaterialWarehouse">
  4137. <PropertyRef Name="SiteId" />
  4138. </Dependent>
  4139. </ReferentialConstraint>
  4140. </Association>
  4141. <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
  4142. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4143. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="*" />
  4144. <ReferentialConstraint>
  4145. <Principal Role="CmSite">
  4146. <PropertyRef Name="SiteId" />
  4147. </Principal>
  4148. <Dependent Role="FmsWorkCodeCauseClass">
  4149. <PropertyRef Name="SiteId" />
  4150. </Dependent>
  4151. </ReferentialConstraint>
  4152. </Association>
  4153. <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
  4154. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4155. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="*" />
  4156. <ReferentialConstraint>
  4157. <Principal Role="CmSite">
  4158. <PropertyRef Name="SiteId" />
  4159. </Principal>
  4160. <Dependent Role="FmsWorkCodeCycleUnit">
  4161. <PropertyRef Name="SiteId" />
  4162. </Dependent>
  4163. </ReferentialConstraint>
  4164. </Association>
  4165. <Association Name="FK__FmsWorkCodeEmergency__CmSite">
  4166. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4167. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="*" />
  4168. <ReferentialConstraint>
  4169. <Principal Role="CmSite">
  4170. <PropertyRef Name="SiteId" />
  4171. </Principal>
  4172. <Dependent Role="FmsWorkCodeEmergency">
  4173. <PropertyRef Name="SiteId" />
  4174. </Dependent>
  4175. </ReferentialConstraint>
  4176. </Association>
  4177. <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
  4178. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4179. <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="*" />
  4180. <ReferentialConstraint>
  4181. <Principal Role="CmSite">
  4182. <PropertyRef Name="SiteId" />
  4183. </Principal>
  4184. <Dependent Role="FmsWorkCodeHolidayWorkType">
  4185. <PropertyRef Name="SiteId" />
  4186. </Dependent>
  4187. </ReferentialConstraint>
  4188. </Association>
  4189. <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  4190. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4191. <End Role="FmsWorkCodeLegalInspectionAgency" Type="Self.FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
  4192. <ReferentialConstraint>
  4193. <Principal Role="CmSite">
  4194. <PropertyRef Name="SiteId" />
  4195. </Principal>
  4196. <Dependent Role="FmsWorkCodeLegalInspectionAgency">
  4197. <PropertyRef Name="SiteId" />
  4198. </Dependent>
  4199. </ReferentialConstraint>
  4200. </Association>
  4201. <Association Name="FK__FmsWorkOrder__CmBusinessField">
  4202. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4203. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4204. <ReferentialConstraint>
  4205. <Principal Role="CmBusinessField">
  4206. <PropertyRef Name="SiteId" />
  4207. <PropertyRef Name="BusinessFieldId" />
  4208. </Principal>
  4209. <Dependent Role="FmsWorkOrder">
  4210. <PropertyRef Name="SiteId" />
  4211. <PropertyRef Name="BusinessFieldId" />
  4212. </Dependent>
  4213. </ReferentialConstraint>
  4214. </Association>
  4215. <Association Name="FK__FmsWorkOrder__CmSite">
  4216. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4217. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4218. <ReferentialConstraint>
  4219. <Principal Role="CmSite">
  4220. <PropertyRef Name="SiteId" />
  4221. </Principal>
  4222. <Dependent Role="FmsWorkOrder">
  4223. <PropertyRef Name="SiteId" />
  4224. </Dependent>
  4225. </ReferentialConstraint>
  4226. </Association>
  4227. <Association Name="FK__FmsWorkOrder__CmUser">
  4228. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4229. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4230. <ReferentialConstraint>
  4231. <Principal Role="CmUser">
  4232. <PropertyRef Name="SiteId" />
  4233. <PropertyRef Name="UserId" />
  4234. </Principal>
  4235. <Dependent Role="FmsWorkOrder">
  4236. <PropertyRef Name="SiteId" />
  4237. <PropertyRef Name="OrderUserId" />
  4238. </Dependent>
  4239. </ReferentialConstraint>
  4240. </Association>
  4241. <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
  4242. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
  4243. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4244. <ReferentialConstraint>
  4245. <Principal Role="FmsWorkCodeEmergency">
  4246. <PropertyRef Name="SiteId" />
  4247. <PropertyRef Name="EmergencyId" />
  4248. </Principal>
  4249. <Dependent Role="FmsWorkOrder">
  4250. <PropertyRef Name="SiteId" />
  4251. <PropertyRef Name="EmergencyId" />
  4252. </Dependent>
  4253. </ReferentialConstraint>
  4254. </Association>
  4255. <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
  4256. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  4257. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
  4258. <ReferentialConstraint>
  4259. <Principal Role="FmsWorkRequest">
  4260. <PropertyRef Name="SiteId" />
  4261. <PropertyRef Name="WorkRequestId" />
  4262. </Principal>
  4263. <Dependent Role="FmsWorkOrder">
  4264. <PropertyRef Name="SiteId" />
  4265. <PropertyRef Name="WorkRequestId" />
  4266. </Dependent>
  4267. </ReferentialConstraint>
  4268. </Association>
  4269. <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
  4270. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
  4271. <OnDelete Action="Cascade" />
  4272. </End>
  4273. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  4274. <ReferentialConstraint>
  4275. <Principal Role="FmsWorkOrder">
  4276. <PropertyRef Name="SiteId" />
  4277. <PropertyRef Name="WorkRequestId" />
  4278. </Principal>
  4279. <Dependent Role="FmsWorkOrderToFacility">
  4280. <PropertyRef Name="SiteId" />
  4281. <PropertyRef Name="WorkRequestId" />
  4282. </Dependent>
  4283. </ReferentialConstraint>
  4284. </Association>
  4285. <Association Name="FK__FmsWorkRequest__CmBusinessField">
  4286. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4287. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4288. <ReferentialConstraint>
  4289. <Principal Role="CmBusinessField">
  4290. <PropertyRef Name="SiteId" />
  4291. <PropertyRef Name="BusinessFieldId" />
  4292. </Principal>
  4293. <Dependent Role="FmsWorkRequest">
  4294. <PropertyRef Name="SiteId" />
  4295. <PropertyRef Name="BusinessFieldId" />
  4296. </Dependent>
  4297. </ReferentialConstraint>
  4298. </Association>
  4299. <Association Name="FK__FmsWorkRequest__CmSite">
  4300. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4301. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4302. <ReferentialConstraint>
  4303. <Principal Role="CmSite">
  4304. <PropertyRef Name="SiteId" />
  4305. </Principal>
  4306. <Dependent Role="FmsWorkRequest">
  4307. <PropertyRef Name="SiteId" />
  4308. </Dependent>
  4309. </ReferentialConstraint>
  4310. </Association>
  4311. <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
  4312. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4313. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4314. <ReferentialConstraint>
  4315. <Principal Role="CmUser">
  4316. <PropertyRef Name="SiteId" />
  4317. <PropertyRef Name="UserId" />
  4318. </Principal>
  4319. <Dependent Role="FmsWorkRequest">
  4320. <PropertyRef Name="SiteId" />
  4321. <PropertyRef Name="RequestUserId" />
  4322. </Dependent>
  4323. </ReferentialConstraint>
  4324. </Association>
  4325. <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  4326. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4327. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4328. <ReferentialConstraint>
  4329. <Principal Role="CmUser">
  4330. <PropertyRef Name="SiteId" />
  4331. <PropertyRef Name="UserId" />
  4332. </Principal>
  4333. <Dependent Role="FmsWorkRequest">
  4334. <PropertyRef Name="SiteId" />
  4335. <PropertyRef Name="RejectUserId" />
  4336. </Dependent>
  4337. </ReferentialConstraint>
  4338. </Association>
  4339. <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
  4340. <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
  4341. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4342. <ReferentialConstraint>
  4343. <Principal Role="FmsWorkCodeProgress">
  4344. <PropertyRef Name="WorkProgressId" />
  4345. </Principal>
  4346. <Dependent Role="FmsWorkRequest">
  4347. <PropertyRef Name="WorkProgressId" />
  4348. </Dependent>
  4349. </ReferentialConstraint>
  4350. </Association>
  4351. <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
  4352. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  4353. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4354. <ReferentialConstraint>
  4355. <Principal Role="FmsWorkCodeType">
  4356. <PropertyRef Name="WorkTypeId" />
  4357. </Principal>
  4358. <Dependent Role="FmsWorkRequest">
  4359. <PropertyRef Name="WorkTypeId" />
  4360. </Dependent>
  4361. </ReferentialConstraint>
  4362. </Association>
  4363. <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
  4364. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="0..1" />
  4365. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4366. <ReferentialConstraint>
  4367. <Principal Role="FmsWorkSchedule">
  4368. <PropertyRef Name="SiteId" />
  4369. <PropertyRef Name="WorkScheduleId" />
  4370. </Principal>
  4371. <Dependent Role="FmsWorkRequest">
  4372. <PropertyRef Name="SiteId" />
  4373. <PropertyRef Name="WorkScheduleId" />
  4374. </Dependent>
  4375. </ReferentialConstraint>
  4376. </Association>
  4377. <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
  4378. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
  4379. <OnDelete Action="Cascade" />
  4380. </End>
  4381. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  4382. <ReferentialConstraint>
  4383. <Principal Role="FmsWorkRequest">
  4384. <PropertyRef Name="SiteId" />
  4385. <PropertyRef Name="WorkRequestId" />
  4386. </Principal>
  4387. <Dependent Role="FmsWorkRequestToFacility">
  4388. <PropertyRef Name="SiteId" />
  4389. <PropertyRef Name="WorkRequestId" />
  4390. </Dependent>
  4391. </ReferentialConstraint>
  4392. </Association>
  4393. <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
  4394. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4395. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4396. <ReferentialConstraint>
  4397. <Principal Role="CmUser">
  4398. <PropertyRef Name="SiteId" />
  4399. <PropertyRef Name="UserId" />
  4400. </Principal>
  4401. <Dependent Role="FmsWorkResult">
  4402. <PropertyRef Name="SiteId" />
  4403. <PropertyRef Name="WorkerUserId" />
  4404. </Dependent>
  4405. </ReferentialConstraint>
  4406. </Association>
  4407. <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  4408. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4409. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4410. <ReferentialConstraint>
  4411. <Principal Role="CmUser">
  4412. <PropertyRef Name="SiteId" />
  4413. <PropertyRef Name="UserId" />
  4414. </Principal>
  4415. <Dependent Role="FmsWorkResult">
  4416. <PropertyRef Name="SiteId" />
  4417. <PropertyRef Name="ConfirmedUserId" />
  4418. </Dependent>
  4419. </ReferentialConstraint>
  4420. </Association>
  4421. <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
  4422. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
  4423. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4424. <ReferentialConstraint>
  4425. <Principal Role="FmsWorkCodeCauseClass">
  4426. <PropertyRef Name="SiteId" />
  4427. <PropertyRef Name="CauseClassId" />
  4428. </Principal>
  4429. <Dependent Role="FmsWorkResult">
  4430. <PropertyRef Name="SiteId" />
  4431. <PropertyRef Name="CauseClassId" />
  4432. </Dependent>
  4433. </ReferentialConstraint>
  4434. </Association>
  4435. <Association Name="FK__FmsWorkResult__FmsWorkOrder">
  4436. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
  4437. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  4438. <ReferentialConstraint>
  4439. <Principal Role="FmsWorkOrder">
  4440. <PropertyRef Name="SiteId" />
  4441. <PropertyRef Name="WorkRequestId" />
  4442. </Principal>
  4443. <Dependent Role="FmsWorkResult">
  4444. <PropertyRef Name="SiteId" />
  4445. <PropertyRef Name="WorkRequestId" />
  4446. </Dependent>
  4447. </ReferentialConstraint>
  4448. </Association>
  4449. <Association Name="FK__FmsWorkResult__FmsWorkRequest">
  4450. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  4451. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  4452. <ReferentialConstraint>
  4453. <Principal Role="FmsWorkRequest">
  4454. <PropertyRef Name="SiteId" />
  4455. <PropertyRef Name="WorkRequestId" />
  4456. </Principal>
  4457. <Dependent Role="FmsWorkResult">
  4458. <PropertyRef Name="SiteId" />
  4459. <PropertyRef Name="WorkRequestId" />
  4460. </Dependent>
  4461. </ReferentialConstraint>
  4462. </Association>
  4463. <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
  4464. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
  4465. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4466. <ReferentialConstraint>
  4467. <Principal Role="CmFacility">
  4468. <PropertyRef Name="SiteId" />
  4469. <PropertyRef Name="FacilityCode" />
  4470. </Principal>
  4471. <Dependent Role="FmsWorkResultCheckItem">
  4472. <PropertyRef Name="SiteId" />
  4473. <PropertyRef Name="FacilityCode" />
  4474. </Dependent>
  4475. </ReferentialConstraint>
  4476. </Association>
  4477. <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  4478. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
  4479. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4480. <ReferentialConstraint>
  4481. <Principal Role="FmsFacilityCheckItem">
  4482. <PropertyRef Name="SiteId" />
  4483. <PropertyRef Name="FacilityCode" />
  4484. <PropertyRef Name="CheckItemId" />
  4485. </Principal>
  4486. <Dependent Role="FmsWorkResultCheckItem">
  4487. <PropertyRef Name="SiteId" />
  4488. <PropertyRef Name="FacilityCode" />
  4489. <PropertyRef Name="CheckItemId" />
  4490. </Dependent>
  4491. </ReferentialConstraint>
  4492. </Association>
  4493. <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
  4494. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  4495. <OnDelete Action="Cascade" />
  4496. </End>
  4497. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4498. <ReferentialConstraint>
  4499. <Principal Role="FmsWorkResult">
  4500. <PropertyRef Name="SiteId" />
  4501. <PropertyRef Name="WorkRequestId" />
  4502. </Principal>
  4503. <Dependent Role="FmsWorkResultCheckItem">
  4504. <PropertyRef Name="SiteId" />
  4505. <PropertyRef Name="WorkRequestId" />
  4506. </Dependent>
  4507. </ReferentialConstraint>
  4508. </Association>
  4509. <Association Name="FK__FmsWorkResultFile__CmFile">
  4510. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  4511. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
  4512. <ReferentialConstraint>
  4513. <Principal Role="CmFile">
  4514. <PropertyRef Name="SiteId" />
  4515. <PropertyRef Name="FileId" />
  4516. </Principal>
  4517. <Dependent Role="FmsWorkResultFile">
  4518. <PropertyRef Name="SiteId" />
  4519. <PropertyRef Name="FileId" />
  4520. </Dependent>
  4521. </ReferentialConstraint>
  4522. </Association>
  4523. <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
  4524. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  4525. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
  4526. <ReferentialConstraint>
  4527. <Principal Role="FmsWorkResult">
  4528. <PropertyRef Name="SiteId" />
  4529. <PropertyRef Name="WorkRequestId" />
  4530. </Principal>
  4531. <Dependent Role="FmsWorkResultFile">
  4532. <PropertyRef Name="SiteId" />
  4533. <PropertyRef Name="WorkRequestId" />
  4534. </Dependent>
  4535. </ReferentialConstraint>
  4536. </Association>
  4537. <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
  4538. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  4539. <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
  4540. <ReferentialConstraint>
  4541. <Principal Role="FmsWorkResult">
  4542. <PropertyRef Name="SiteId" />
  4543. <PropertyRef Name="WorkRequestId" />
  4544. </Principal>
  4545. <Dependent Role="FmsWorkResultLaw">
  4546. <PropertyRef Name="SiteId" />
  4547. <PropertyRef Name="WorkRequestId" />
  4548. </Dependent>
  4549. </ReferentialConstraint>
  4550. </Association>
  4551. <Association Name="FK__FmsWorkResultToFacility__CmFacility">
  4552. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4553. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  4554. <ReferentialConstraint>
  4555. <Principal Role="CmFacility">
  4556. <PropertyRef Name="SiteId" />
  4557. <PropertyRef Name="FacilityCode" />
  4558. </Principal>
  4559. <Dependent Role="FmsWorkResultToFacility">
  4560. <PropertyRef Name="SiteId" />
  4561. <PropertyRef Name="FacilityCode" />
  4562. </Dependent>
  4563. </ReferentialConstraint>
  4564. </Association>
  4565. <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
  4566. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  4567. <OnDelete Action="Cascade" />
  4568. </End>
  4569. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  4570. <ReferentialConstraint>
  4571. <Principal Role="FmsWorkResult">
  4572. <PropertyRef Name="SiteId" />
  4573. <PropertyRef Name="WorkRequestId" />
  4574. </Principal>
  4575. <Dependent Role="FmsWorkResultToFacility">
  4576. <PropertyRef Name="SiteId" />
  4577. <PropertyRef Name="WorkRequestId" />
  4578. </Dependent>
  4579. </ReferentialConstraint>
  4580. </Association>
  4581. <Association Name="FK__FmsWorkSchedule__CmBusinessField">
  4582. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4583. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4584. <ReferentialConstraint>
  4585. <Principal Role="CmBusinessField">
  4586. <PropertyRef Name="SiteId" />
  4587. <PropertyRef Name="BusinessFieldId" />
  4588. </Principal>
  4589. <Dependent Role="FmsWorkSchedule">
  4590. <PropertyRef Name="SiteId" />
  4591. <PropertyRef Name="BusinessFieldId" />
  4592. </Dependent>
  4593. </ReferentialConstraint>
  4594. </Association>
  4595. <Association Name="FK__FmsWorkSchedule__CmUser">
  4596. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4597. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4598. <ReferentialConstraint>
  4599. <Principal Role="CmUser">
  4600. <PropertyRef Name="SiteId" />
  4601. <PropertyRef Name="UserId" />
  4602. </Principal>
  4603. <Dependent Role="FmsWorkSchedule">
  4604. <PropertyRef Name="SiteId" />
  4605. <PropertyRef Name="UpdateUserId" />
  4606. </Dependent>
  4607. </ReferentialConstraint>
  4608. </Association>
  4609. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  4610. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  4611. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4612. <ReferentialConstraint>
  4613. <Principal Role="FmsWorkCodeCycleUnit">
  4614. <PropertyRef Name="SiteId" />
  4615. <PropertyRef Name="CycleUnitId" />
  4616. </Principal>
  4617. <Dependent Role="FmsWorkSchedule">
  4618. <PropertyRef Name="SiteId" />
  4619. <PropertyRef Name="CycleUnitId" />
  4620. </Dependent>
  4621. </ReferentialConstraint>
  4622. </Association>
  4623. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  4624. <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="1" />
  4625. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4626. <ReferentialConstraint>
  4627. <Principal Role="FmsWorkCodeHolidayWorkType">
  4628. <PropertyRef Name="SiteId" />
  4629. <PropertyRef Name="HolidayWorkTypeId" />
  4630. </Principal>
  4631. <Dependent Role="FmsWorkSchedule">
  4632. <PropertyRef Name="SiteId" />
  4633. <PropertyRef Name="HolidayWorkTypeId" />
  4634. </Dependent>
  4635. </ReferentialConstraint>
  4636. </Association>
  4637. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  4638. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  4639. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4640. <ReferentialConstraint>
  4641. <Principal Role="FmsWorkCodeType">
  4642. <PropertyRef Name="WorkTypeId" />
  4643. </Principal>
  4644. <Dependent Role="FmsWorkSchedule">
  4645. <PropertyRef Name="WorkTypeId" />
  4646. </Dependent>
  4647. </ReferentialConstraint>
  4648. </Association>
  4649. <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  4650. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="1" />
  4651. <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
  4652. <ReferentialConstraint>
  4653. <Principal Role="FmsWorkSchedule">
  4654. <PropertyRef Name="SiteId" />
  4655. <PropertyRef Name="WorkScheduleId" />
  4656. </Principal>
  4657. <Dependent Role="FmsWorkScheduleToFacility">
  4658. <PropertyRef Name="SiteId" />
  4659. <PropertyRef Name="WorkScheduleId" />
  4660. </Dependent>
  4661. </ReferentialConstraint>
  4662. </Association>
  4663. <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
  4664. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="1" />
  4665. <End Role="BemsAlarmLog" Type="Self.BemsAlarmLog" Multiplicity="*" />
  4666. <ReferentialConstraint>
  4667. <Principal Role="BemsAlarmSetting">
  4668. <PropertyRef Name="SiteId" />
  4669. <PropertyRef Name="FacilityTypeId" />
  4670. <PropertyRef Name="FacilityCode" />
  4671. <PropertyRef Name="PropertyId" />
  4672. <PropertyRef Name="FormulaId" />
  4673. </Principal>
  4674. <Dependent Role="BemsAlarmLog">
  4675. <PropertyRef Name="SiteId" />
  4676. <PropertyRef Name="FacilityTypeId" />
  4677. <PropertyRef Name="FacilityCode" />
  4678. <PropertyRef Name="PropertyId" />
  4679. <PropertyRef Name="FormulaId" />
  4680. </Dependent>
  4681. </ReferentialConstraint>
  4682. </Association>
  4683. <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
  4684. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4685. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4686. <ReferentialConstraint>
  4687. <Principal Role="BemsFacilityType">
  4688. <PropertyRef Name="FacilityTypeId" />
  4689. </Principal>
  4690. <Dependent Role="BemsAlarmSetting">
  4691. <PropertyRef Name="FacilityTypeId" />
  4692. </Dependent>
  4693. </ReferentialConstraint>
  4694. </Association>
  4695. <Association Name="FK_BemsAlarmSetting_CmFacility">
  4696. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4697. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4698. <ReferentialConstraint>
  4699. <Principal Role="CmFacility">
  4700. <PropertyRef Name="SiteId" />
  4701. <PropertyRef Name="FacilityCode" />
  4702. </Principal>
  4703. <Dependent Role="BemsAlarmSetting">
  4704. <PropertyRef Name="SiteId" />
  4705. <PropertyRef Name="FacilityCode" />
  4706. </Dependent>
  4707. </ReferentialConstraint>
  4708. </Association>
  4709. <Association Name="FK_BemsAlarmSetting_CmSite1">
  4710. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4711. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4712. <ReferentialConstraint>
  4713. <Principal Role="CmSite">
  4714. <PropertyRef Name="SiteId" />
  4715. </Principal>
  4716. <Dependent Role="BemsAlarmSetting">
  4717. <PropertyRef Name="SiteId" />
  4718. </Dependent>
  4719. </ReferentialConstraint>
  4720. </Association>
  4721. <Association Name="FK_BemsChartInfo_BemsFacilityType">
  4722. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4723. <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
  4724. <ReferentialConstraint>
  4725. <Principal Role="BemsFacilityType">
  4726. <PropertyRef Name="FacilityTypeId" />
  4727. </Principal>
  4728. <Dependent Role="BemsChartInfo">
  4729. <PropertyRef Name="FacilityTypeId" />
  4730. </Dependent>
  4731. </ReferentialConstraint>
  4732. </Association>
  4733. <Association Name="FK_BemsChartInfo_CmSite">
  4734. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4735. <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
  4736. <ReferentialConstraint>
  4737. <Principal Role="CmSite">
  4738. <PropertyRef Name="SiteId" />
  4739. </Principal>
  4740. <Dependent Role="BemsChartInfo">
  4741. <PropertyRef Name="SiteId" />
  4742. </Dependent>
  4743. </ReferentialConstraint>
  4744. </Association>
  4745. <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
  4746. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4747. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  4748. <ReferentialConstraint>
  4749. <Principal Role="BemsFacilityType">
  4750. <PropertyRef Name="FacilityTypeId" />
  4751. </Principal>
  4752. <Dependent Role="BemsControlPointHistory">
  4753. <PropertyRef Name="FacilityTypeId" />
  4754. </Dependent>
  4755. </ReferentialConstraint>
  4756. </Association>
  4757. <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
  4758. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  4759. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  4760. <ReferentialConstraint>
  4761. <Principal Role="BemsMonitoringPoint">
  4762. <PropertyRef Name="SiteId" />
  4763. <PropertyRef Name="FacilityCode" />
  4764. <PropertyRef Name="PropertyId" />
  4765. </Principal>
  4766. <Dependent Role="BemsControlPointHistory">
  4767. <PropertyRef Name="SiteId" />
  4768. <PropertyRef Name="FacilityCode" />
  4769. <PropertyRef Name="PropertyId" />
  4770. </Dependent>
  4771. </ReferentialConstraint>
  4772. </Association>
  4773. <Association Name="FK_BemsEnergyCost_CmFacility">
  4774. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4775. <End Role="BemsEnergyCost" Type="Self.BemsEnergyCost" Multiplicity="0..1" />
  4776. <ReferentialConstraint>
  4777. <Principal Role="CmFacility">
  4778. <PropertyRef Name="SiteId" />
  4779. <PropertyRef Name="FacilityCode" />
  4780. </Principal>
  4781. <Dependent Role="BemsEnergyCost">
  4782. <PropertyRef Name="SiteId" />
  4783. <PropertyRef Name="FacilityCode" />
  4784. </Dependent>
  4785. </ReferentialConstraint>
  4786. </Association>
  4787. <Association Name="FK_BemsEnergyDailyRegression_CmSite">
  4788. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4789. <End Role="BemsEnergyDailyRegression" Type="Self.BemsEnergyDailyRegression" Multiplicity="0..1" />
  4790. <ReferentialConstraint>
  4791. <Principal Role="CmSite">
  4792. <PropertyRef Name="SiteId" />
  4793. </Principal>
  4794. <Dependent Role="BemsEnergyDailyRegression">
  4795. <PropertyRef Name="SiteId" />
  4796. </Dependent>
  4797. </ReferentialConstraint>
  4798. </Association>
  4799. <Association Name="FK_BemsFormulaParameter_CmFacility">
  4800. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4801. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  4802. <ReferentialConstraint>
  4803. <Principal Role="CmFacility">
  4804. <PropertyRef Name="SiteId" />
  4805. <PropertyRef Name="FacilityCode" />
  4806. </Principal>
  4807. <Dependent Role="BemsFormulaParameter">
  4808. <PropertyRef Name="SiteId" />
  4809. <PropertyRef Name="FacilityCode" />
  4810. </Dependent>
  4811. </ReferentialConstraint>
  4812. </Association>
  4813. <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
  4814. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4815. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  4816. <ReferentialConstraint>
  4817. <Principal Role="BemsFacilityType">
  4818. <PropertyRef Name="FacilityTypeId" />
  4819. </Principal>
  4820. <Dependent Role="BemsMonitoringPoint">
  4821. <PropertyRef Name="FacilityTypeId" />
  4822. </Dependent>
  4823. </ReferentialConstraint>
  4824. </Association>
  4825. <Association Name="FK_BemsMonitoringPoint_CmFacility">
  4826. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4827. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  4828. <ReferentialConstraint>
  4829. <Principal Role="CmFacility">
  4830. <PropertyRef Name="SiteId" />
  4831. <PropertyRef Name="FacilityCode" />
  4832. </Principal>
  4833. <Dependent Role="BemsMonitoringPoint">
  4834. <PropertyRef Name="SiteId" />
  4835. <PropertyRef Name="FacilityCode" />
  4836. </Dependent>
  4837. </ReferentialConstraint>
  4838. </Association>
  4839. <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
  4840. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4841. <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="*" />
  4842. <ReferentialConstraint>
  4843. <Principal Role="BemsFacilityType">
  4844. <PropertyRef Name="FacilityTypeId" />
  4845. </Principal>
  4846. <Dependent Role="BemsMonitoringPointConfig">
  4847. <PropertyRef Name="FacilityTypeId" />
  4848. </Dependent>
  4849. </ReferentialConstraint>
  4850. </Association>
  4851. <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  4852. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  4853. <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="0..1" />
  4854. <ReferentialConstraint>
  4855. <Principal Role="BemsMonitoringPoint">
  4856. <PropertyRef Name="SiteId" />
  4857. <PropertyRef Name="FacilityCode" />
  4858. <PropertyRef Name="PropertyId" />
  4859. </Principal>
  4860. <Dependent Role="BemsMonitoringPointConfig">
  4861. <PropertyRef Name="SiteId" />
  4862. <PropertyRef Name="FacilityCode" />
  4863. <PropertyRef Name="PropertyId" />
  4864. </Dependent>
  4865. </ReferentialConstraint>
  4866. </Association>
  4867. <Association Name="FK_BemsPeakFacility_CmFacility">
  4868. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4869. <End Role="BemsPeakFacility" Type="Self.BemsPeakFacility" Multiplicity="*" />
  4870. <ReferentialConstraint>
  4871. <Principal Role="CmFacility">
  4872. <PropertyRef Name="SiteId" />
  4873. <PropertyRef Name="FacilityCode" />
  4874. </Principal>
  4875. <Dependent Role="BemsPeakFacility">
  4876. <PropertyRef Name="SiteId" />
  4877. <PropertyRef Name="FacilityCode" />
  4878. </Dependent>
  4879. </ReferentialConstraint>
  4880. </Association>
  4881. <Association Name="FK_BemsPeakHIstory_CmSite">
  4882. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4883. <End Role="BemsPeakHistory" Type="Self.BemsPeakHistory" Multiplicity="*" />
  4884. <ReferentialConstraint>
  4885. <Principal Role="CmSite">
  4886. <PropertyRef Name="SiteId" />
  4887. </Principal>
  4888. <Dependent Role="BemsPeakHistory">
  4889. <PropertyRef Name="SiteId" />
  4890. </Dependent>
  4891. </ReferentialConstraint>
  4892. </Association>
  4893. <Association Name="FK_BemsPeakInfo_CmSite">
  4894. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4895. <End Role="BemsPeakInfo" Type="Self.BemsPeakInfo" Multiplicity="0..1" />
  4896. <ReferentialConstraint>
  4897. <Principal Role="CmSite">
  4898. <PropertyRef Name="SiteId" />
  4899. </Principal>
  4900. <Dependent Role="BemsPeakInfo">
  4901. <PropertyRef Name="SiteId" />
  4902. </Dependent>
  4903. </ReferentialConstraint>
  4904. </Association>
  4905. <Association Name="FK_BemsPeopleIncrease_CmSite">
  4906. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4907. <End Role="BemsPeopleIncrease" Type="Self.BemsPeopleIncrease" Multiplicity="*" />
  4908. <ReferentialConstraint>
  4909. <Principal Role="CmSite">
  4910. <PropertyRef Name="SiteId" />
  4911. </Principal>
  4912. <Dependent Role="BemsPeopleIncrease">
  4913. <PropertyRef Name="SiteId" />
  4914. </Dependent>
  4915. </ReferentialConstraint>
  4916. </Association>
  4917. <Association Name="FK_BemsPriceCode_BemsFuelType">
  4918. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4919. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="*" />
  4920. <ReferentialConstraint>
  4921. <Principal Role="BemsFuelType">
  4922. <PropertyRef Name="FuelTypeId" />
  4923. </Principal>
  4924. <Dependent Role="BemsPriceCode">
  4925. <PropertyRef Name="FuelTypeId" />
  4926. </Dependent>
  4927. </ReferentialConstraint>
  4928. </Association>
  4929. <Association Name="FK_BemsPriceFormula_BemsFormula">
  4930. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  4931. <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
  4932. <ReferentialConstraint>
  4933. <Principal Role="BemsFormula">
  4934. <PropertyRef Name="SiteId" />
  4935. <PropertyRef Name="FacilityTypeId" />
  4936. <PropertyRef Name="FacilityCode" />
  4937. <PropertyRef Name="FormulaId" />
  4938. </Principal>
  4939. <Dependent Role="BemsPriceFormula">
  4940. <PropertyRef Name="SiteId" />
  4941. <PropertyRef Name="FacilityTypeId" />
  4942. <PropertyRef Name="FacilityCode" />
  4943. <PropertyRef Name="FormulaId" />
  4944. </Dependent>
  4945. </ReferentialConstraint>
  4946. </Association>
  4947. <Association Name="FK_BemsPriceFormula_BemsPriceType">
  4948. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4949. <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
  4950. <ReferentialConstraint>
  4951. <Principal Role="BemsPriceType">
  4952. <PropertyRef Name="PriceTypeId" />
  4953. </Principal>
  4954. <Dependent Role="BemsPriceFormula">
  4955. <PropertyRef Name="PriceTypeId" />
  4956. </Dependent>
  4957. </ReferentialConstraint>
  4958. </Association>
  4959. <Association Name="FK_BemsPriceMeta_BemsPriceType">
  4960. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4961. <End Role="BemsPriceMeta" Type="Self.BemsPriceMeta" Multiplicity="*" />
  4962. <ReferentialConstraint>
  4963. <Principal Role="BemsPriceType">
  4964. <PropertyRef Name="PriceTypeId" />
  4965. </Principal>
  4966. <Dependent Role="BemsPriceMeta">
  4967. <PropertyRef Name="PriceTypeId" />
  4968. </Dependent>
  4969. </ReferentialConstraint>
  4970. </Association>
  4971. <Association Name="FK_BemsPriceType_BemsFuelType1">
  4972. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4973. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="*" />
  4974. <ReferentialConstraint>
  4975. <Principal Role="BemsFuelType">
  4976. <PropertyRef Name="FuelTypeId" />
  4977. </Principal>
  4978. <Dependent Role="BemsPriceType">
  4979. <PropertyRef Name="FuelTypeId" />
  4980. </Dependent>
  4981. </ReferentialConstraint>
  4982. </Association>
  4983. <Association Name="FK_BemsRentalRate_CmSite">
  4984. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4985. <End Role="BemsRentalRate" Type="Self.BemsRentalRate" Multiplicity="*" />
  4986. <ReferentialConstraint>
  4987. <Principal Role="CmSite">
  4988. <PropertyRef Name="SiteId" />
  4989. </Principal>
  4990. <Dependent Role="BemsRentalRate">
  4991. <PropertyRef Name="SiteId" />
  4992. </Dependent>
  4993. </ReferentialConstraint>
  4994. </Association>
  4995. <Association Name="FK_BemsSitePrice_BemsFuelType">
  4996. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4997. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  4998. <ReferentialConstraint>
  4999. <Principal Role="BemsFuelType">
  5000. <PropertyRef Name="FuelTypeId" />
  5001. </Principal>
  5002. <Dependent Role="BemsSitePrice">
  5003. <PropertyRef Name="FuelTypeId" />
  5004. </Dependent>
  5005. </ReferentialConstraint>
  5006. </Association>
  5007. <Association Name="FK_BemsSitePrice_BemsPriceCode">
  5008. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
  5009. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  5010. <ReferentialConstraint>
  5011. <Principal Role="BemsPriceCode">
  5012. <PropertyRef Name="PriceCode" />
  5013. </Principal>
  5014. <Dependent Role="BemsSitePrice">
  5015. <PropertyRef Name="PriceCode" />
  5016. </Dependent>
  5017. </ReferentialConstraint>
  5018. </Association>
  5019. <Association Name="FK_BemsSitePrice_BemsPriceType">
  5020. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  5021. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  5022. <ReferentialConstraint>
  5023. <Principal Role="BemsPriceType">
  5024. <PropertyRef Name="PriceTypeId" />
  5025. </Principal>
  5026. <Dependent Role="BemsSitePrice">
  5027. <PropertyRef Name="PriceTypeId" />
  5028. </Dependent>
  5029. </ReferentialConstraint>
  5030. </Association>
  5031. <Association Name="FK_BemsSitePrice_CmSite1">
  5032. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5033. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  5034. <ReferentialConstraint>
  5035. <Principal Role="CmSite">
  5036. <PropertyRef Name="SiteId" />
  5037. </Principal>
  5038. <Dependent Role="BemsSitePrice">
  5039. <PropertyRef Name="SiteID" />
  5040. </Dependent>
  5041. </ReferentialConstraint>
  5042. </Association>
  5043. <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
  5044. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  5045. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5046. <ReferentialConstraint>
  5047. <Principal Role="BemsFuelType">
  5048. <PropertyRef Name="FuelTypeId" />
  5049. </Principal>
  5050. <Dependent Role="BemsSitePriceHistory">
  5051. <PropertyRef Name="FuelTypeId" />
  5052. </Dependent>
  5053. </ReferentialConstraint>
  5054. </Association>
  5055. <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
  5056. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
  5057. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5058. <ReferentialConstraint>
  5059. <Principal Role="BemsPriceCode">
  5060. <PropertyRef Name="PriceCode" />
  5061. </Principal>
  5062. <Dependent Role="BemsSitePriceHistory">
  5063. <PropertyRef Name="PriceCode" />
  5064. </Dependent>
  5065. </ReferentialConstraint>
  5066. </Association>
  5067. <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
  5068. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  5069. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5070. <ReferentialConstraint>
  5071. <Principal Role="BemsPriceType">
  5072. <PropertyRef Name="PriceTypeId" />
  5073. </Principal>
  5074. <Dependent Role="BemsSitePriceHistory">
  5075. <PropertyRef Name="PriceTypeId" />
  5076. </Dependent>
  5077. </ReferentialConstraint>
  5078. </Association>
  5079. <Association Name="FK_BemsSitePriceHistory_CmSite">
  5080. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5081. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5082. <ReferentialConstraint>
  5083. <Principal Role="CmSite">
  5084. <PropertyRef Name="SiteId" />
  5085. </Principal>
  5086. <Dependent Role="BemsSitePriceHistory">
  5087. <PropertyRef Name="SiteId" />
  5088. </Dependent>
  5089. </ReferentialConstraint>
  5090. </Association>
  5091. <Association Name="FK_CmAnnouncement_CmBusinessField">
  5092. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  5093. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5094. <ReferentialConstraint>
  5095. <Principal Role="CmBusinessField">
  5096. <PropertyRef Name="SiteId" />
  5097. <PropertyRef Name="BusinessFieldId" />
  5098. </Principal>
  5099. <Dependent Role="CmAnnouncement">
  5100. <PropertyRef Name="SiteId" />
  5101. <PropertyRef Name="BusinessFieldId" />
  5102. </Dependent>
  5103. </ReferentialConstraint>
  5104. </Association>
  5105. <Association Name="FK_CmAnnouncement_CmFile">
  5106. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5107. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5108. <ReferentialConstraint>
  5109. <Principal Role="CmFile">
  5110. <PropertyRef Name="SiteId" />
  5111. <PropertyRef Name="FileId" />
  5112. </Principal>
  5113. <Dependent Role="CmAnnouncement">
  5114. <PropertyRef Name="SiteId" />
  5115. <PropertyRef Name="FileId" />
  5116. </Dependent>
  5117. </ReferentialConstraint>
  5118. </Association>
  5119. <Association Name="FK_CmAnnouncement_CmUser">
  5120. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5121. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5122. <ReferentialConstraint>
  5123. <Principal Role="CmUser">
  5124. <PropertyRef Name="SiteId" />
  5125. <PropertyRef Name="UserId" />
  5126. </Principal>
  5127. <Dependent Role="CmAnnouncement">
  5128. <PropertyRef Name="SiteId" />
  5129. <PropertyRef Name="RegisterUserId" />
  5130. </Dependent>
  5131. </ReferentialConstraint>
  5132. </Association>
  5133. <Association Name="FK_CmFacilityTempSet_CmFacility">
  5134. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  5135. <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="0..1" />
  5136. <ReferentialConstraint>
  5137. <Principal Role="CmFacility">
  5138. <PropertyRef Name="SiteId" />
  5139. <PropertyRef Name="FacilityCode" />
  5140. </Principal>
  5141. <Dependent Role="CmFacilityTempSet">
  5142. <PropertyRef Name="SiteId" />
  5143. <PropertyRef Name="FacilityCode" />
  5144. </Dependent>
  5145. </ReferentialConstraint>
  5146. </Association>
  5147. <Association Name="FK_CmFacilityTempSet_CmSite">
  5148. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5149. <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="*" />
  5150. <ReferentialConstraint>
  5151. <Principal Role="CmSite">
  5152. <PropertyRef Name="SiteId" />
  5153. </Principal>
  5154. <Dependent Role="CmFacilityTempSet">
  5155. <PropertyRef Name="SiteId" />
  5156. </Dependent>
  5157. </ReferentialConstraint>
  5158. </Association>
  5159. <Association Name="FK_CmMenu_CmSite">
  5160. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5161. <End Role="CmMenu" Type="Self.CmMenu" Multiplicity="*" />
  5162. <ReferentialConstraint>
  5163. <Principal Role="CmSite">
  5164. <PropertyRef Name="SiteId" />
  5165. </Principal>
  5166. <Dependent Role="CmMenu">
  5167. <PropertyRef Name="SiteId" />
  5168. </Dependent>
  5169. </ReferentialConstraint>
  5170. </Association>
  5171. <Association Name="FK_CmPartnerType_CmPartner">
  5172. <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="1" />
  5173. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="*" />
  5174. <ReferentialConstraint>
  5175. <Principal Role="CmPartnerType">
  5176. <PropertyRef Name="PartnerTypeId" />
  5177. </Principal>
  5178. <Dependent Role="CmPartner">
  5179. <PropertyRef Name="PartnerTypeId" />
  5180. </Dependent>
  5181. </ReferentialConstraint>
  5182. </Association>
  5183. <Association Name="FK_CmPatrolCourse_CmSite">
  5184. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5185. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="*" />
  5186. <ReferentialConstraint>
  5187. <Principal Role="CmSite">
  5188. <PropertyRef Name="SiteId" />
  5189. </Principal>
  5190. <Dependent Role="CmPatrolCourse">
  5191. <PropertyRef Name="SiteId" />
  5192. </Dependent>
  5193. </ReferentialConstraint>
  5194. </Association>
  5195. <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
  5196. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
  5197. <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
  5198. <ReferentialConstraint>
  5199. <Principal Role="CmPatrolCourse">
  5200. <PropertyRef Name="SiteId" />
  5201. <PropertyRef Name="PatrolCourseId" />
  5202. </Principal>
  5203. <Dependent Role="CmPatrolCoursePos">
  5204. <PropertyRef Name="SiteId" />
  5205. <PropertyRef Name="PatrolCourseId" />
  5206. </Dependent>
  5207. </ReferentialConstraint>
  5208. </Association>
  5209. <Association Name="FK_CmPatrolCoursePos_CmSite">
  5210. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5211. <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
  5212. <ReferentialConstraint>
  5213. <Principal Role="CmSite">
  5214. <PropertyRef Name="SiteId" />
  5215. </Principal>
  5216. <Dependent Role="CmPatrolCoursePos">
  5217. <PropertyRef Name="SiteId" />
  5218. </Dependent>
  5219. </ReferentialConstraint>
  5220. </Association>
  5221. <Association Name="FK_CmPatrolGroup_CmSite">
  5222. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5223. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="*" />
  5224. <ReferentialConstraint>
  5225. <Principal Role="CmSite">
  5226. <PropertyRef Name="SiteId" />
  5227. </Principal>
  5228. <Dependent Role="CmPatrolGroup">
  5229. <PropertyRef Name="SiteId" />
  5230. </Dependent>
  5231. </ReferentialConstraint>
  5232. </Association>
  5233. <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
  5234. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
  5235. <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
  5236. <ReferentialConstraint>
  5237. <Principal Role="CmPatrolGroup">
  5238. <PropertyRef Name="SiteId" />
  5239. <PropertyRef Name="PatrolGroupId" />
  5240. </Principal>
  5241. <Dependent Role="CmPatrolGroupUser">
  5242. <PropertyRef Name="SiteId" />
  5243. <PropertyRef Name="PatrolGroupId" />
  5244. </Dependent>
  5245. </ReferentialConstraint>
  5246. </Association>
  5247. <Association Name="FK_CmPatrolGroupUser_CmUser">
  5248. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5249. <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
  5250. <ReferentialConstraint>
  5251. <Principal Role="CmUser">
  5252. <PropertyRef Name="SiteId" />
  5253. <PropertyRef Name="UserId" />
  5254. </Principal>
  5255. <Dependent Role="CmPatrolGroupUser">
  5256. <PropertyRef Name="SiteId" />
  5257. <PropertyRef Name="UserId" />
  5258. </Dependent>
  5259. </ReferentialConstraint>
  5260. </Association>
  5261. <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
  5262. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="1" />
  5263. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5264. <ReferentialConstraint>
  5265. <Principal Role="CmPatrolSchedule">
  5266. <PropertyRef Name="SiteId" />
  5267. <PropertyRef Name="ScheduleId" />
  5268. </Principal>
  5269. <Dependent Role="CmPatrolHistory">
  5270. <PropertyRef Name="SiteId" />
  5271. <PropertyRef Name="ScheduleId" />
  5272. </Dependent>
  5273. </ReferentialConstraint>
  5274. </Association>
  5275. <Association Name="FK_CmPatrolHistory_CmPatrolType">
  5276. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
  5277. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5278. <ReferentialConstraint>
  5279. <Principal Role="CmPatrolType">
  5280. <PropertyRef Name="SiteId" />
  5281. <PropertyRef Name="PatrolTypeId" />
  5282. </Principal>
  5283. <Dependent Role="CmPatrolHistory">
  5284. <PropertyRef Name="SiteId" />
  5285. <PropertyRef Name="resultTypeId" />
  5286. </Dependent>
  5287. </ReferentialConstraint>
  5288. </Association>
  5289. <Association Name="FK_CmPatrolHistory_CmSite">
  5290. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5291. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5292. <ReferentialConstraint>
  5293. <Principal Role="CmSite">
  5294. <PropertyRef Name="SiteId" />
  5295. </Principal>
  5296. <Dependent Role="CmPatrolHistory">
  5297. <PropertyRef Name="SiteId" />
  5298. </Dependent>
  5299. </ReferentialConstraint>
  5300. </Association>
  5301. <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
  5302. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="1" />
  5303. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5304. <ReferentialConstraint>
  5305. <Principal Role="CmPatrolPos">
  5306. <PropertyRef Name="SiteId" />
  5307. <PropertyRef Name="PosId" />
  5308. </Principal>
  5309. <Dependent Role="CmPatrolHistoryPos">
  5310. <PropertyRef Name="SiteId" />
  5311. <PropertyRef Name="PosId" />
  5312. </Dependent>
  5313. </ReferentialConstraint>
  5314. </Association>
  5315. <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
  5316. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
  5317. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5318. <ReferentialConstraint>
  5319. <Principal Role="CmPatrolType">
  5320. <PropertyRef Name="SiteId" />
  5321. <PropertyRef Name="PatrolTypeId" />
  5322. </Principal>
  5323. <Dependent Role="CmPatrolHistoryPos">
  5324. <PropertyRef Name="SiteId" />
  5325. <PropertyRef Name="resultType" />
  5326. </Dependent>
  5327. </ReferentialConstraint>
  5328. </Association>
  5329. <Association Name="FK_CmPatrolHistoryPos_CmSite">
  5330. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5331. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5332. <ReferentialConstraint>
  5333. <Principal Role="CmSite">
  5334. <PropertyRef Name="SiteId" />
  5335. </Principal>
  5336. <Dependent Role="CmPatrolHistoryPos">
  5337. <PropertyRef Name="SiteId" />
  5338. </Dependent>
  5339. </ReferentialConstraint>
  5340. </Association>
  5341. <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
  5342. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
  5343. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5344. <ReferentialConstraint>
  5345. <Principal Role="CmPatrolCourse">
  5346. <PropertyRef Name="SiteId" />
  5347. <PropertyRef Name="PatrolCourseId" />
  5348. </Principal>
  5349. <Dependent Role="CmPatrolPlan">
  5350. <PropertyRef Name="SiteId" />
  5351. <PropertyRef Name="CourseId" />
  5352. </Dependent>
  5353. </ReferentialConstraint>
  5354. </Association>
  5355. <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
  5356. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
  5357. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5358. <ReferentialConstraint>
  5359. <Principal Role="CmPatrolGroup">
  5360. <PropertyRef Name="SiteId" />
  5361. <PropertyRef Name="PatrolGroupId" />
  5362. </Principal>
  5363. <Dependent Role="CmPatrolPlan">
  5364. <PropertyRef Name="SiteId" />
  5365. <PropertyRef Name="GroupId" />
  5366. </Dependent>
  5367. </ReferentialConstraint>
  5368. </Association>
  5369. <Association Name="FK_CmPatrolPlan_CmSite">
  5370. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5371. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5372. <ReferentialConstraint>
  5373. <Principal Role="CmSite">
  5374. <PropertyRef Name="SiteId" />
  5375. </Principal>
  5376. <Dependent Role="CmPatrolPlan">
  5377. <PropertyRef Name="SiteId" />
  5378. </Dependent>
  5379. </ReferentialConstraint>
  5380. </Association>
  5381. <Association Name="FK_CmPatrolPos_CmBuilding">
  5382. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  5383. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5384. <ReferentialConstraint>
  5385. <Principal Role="CmBuilding">
  5386. <PropertyRef Name="SiteId" />
  5387. <PropertyRef Name="BuildingId" />
  5388. </Principal>
  5389. <Dependent Role="CmPatrolPos">
  5390. <PropertyRef Name="SiteId" />
  5391. <PropertyRef Name="BuildingId" />
  5392. </Dependent>
  5393. </ReferentialConstraint>
  5394. </Association>
  5395. <Association Name="FK_CmPatrolPos_CmFloor">
  5396. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  5397. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5398. <ReferentialConstraint>
  5399. <Principal Role="CmFloor">
  5400. <PropertyRef Name="SiteId" />
  5401. <PropertyRef Name="BuildingId" />
  5402. <PropertyRef Name="FloorId" />
  5403. </Principal>
  5404. <Dependent Role="CmPatrolPos">
  5405. <PropertyRef Name="SiteId" />
  5406. <PropertyRef Name="BuildingId" />
  5407. <PropertyRef Name="FloorId" />
  5408. </Dependent>
  5409. </ReferentialConstraint>
  5410. </Association>
  5411. <Association Name="FK_CmPatrolPos_CmSite">
  5412. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5413. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5414. <ReferentialConstraint>
  5415. <Principal Role="CmSite">
  5416. <PropertyRef Name="SiteId" />
  5417. </Principal>
  5418. <Dependent Role="CmPatrolPos">
  5419. <PropertyRef Name="SiteId" />
  5420. </Dependent>
  5421. </ReferentialConstraint>
  5422. </Association>
  5423. <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
  5424. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="1" />
  5425. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
  5426. <ReferentialConstraint>
  5427. <Principal Role="CmPatrolPlan">
  5428. <PropertyRef Name="SiteId" />
  5429. <PropertyRef Name="PatrolPlanId" />
  5430. </Principal>
  5431. <Dependent Role="CmPatrolSchedule">
  5432. <PropertyRef Name="SiteId" />
  5433. <PropertyRef Name="PlanId" />
  5434. </Dependent>
  5435. </ReferentialConstraint>
  5436. </Association>
  5437. <Association Name="FK_CmPatrolSchedule_CmSite">
  5438. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5439. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
  5440. <ReferentialConstraint>
  5441. <Principal Role="CmSite">
  5442. <PropertyRef Name="SiteId" />
  5443. </Principal>
  5444. <Dependent Role="CmPatrolSchedule">
  5445. <PropertyRef Name="SiteId" />
  5446. </Dependent>
  5447. </ReferentialConstraint>
  5448. </Association>
  5449. <Association Name="FK_CmPatrolType_CmSite">
  5450. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5451. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="*" />
  5452. <ReferentialConstraint>
  5453. <Principal Role="CmSite">
  5454. <PropertyRef Name="SiteId" />
  5455. </Principal>
  5456. <Dependent Role="CmPatrolType">
  5457. <PropertyRef Name="SiteId" />
  5458. </Dependent>
  5459. </ReferentialConstraint>
  5460. </Association>
  5461. <Association Name="FK_CmUser_CmBusinessField">
  5462. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  5463. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5464. <ReferentialConstraint>
  5465. <Principal Role="CmBusinessField">
  5466. <PropertyRef Name="SiteId" />
  5467. <PropertyRef Name="BusinessFieldId" />
  5468. </Principal>
  5469. <Dependent Role="CmUser">
  5470. <PropertyRef Name="SiteId" />
  5471. <PropertyRef Name="BusinessFieldId" />
  5472. </Dependent>
  5473. </ReferentialConstraint>
  5474. </Association>
  5475. <Association Name="FK_CmUser_CmCompany">
  5476. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  5477. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5478. <ReferentialConstraint>
  5479. <Principal Role="CmCompany">
  5480. <PropertyRef Name="SiteId" />
  5481. <PropertyRef Name="CompanyId" />
  5482. </Principal>
  5483. <Dependent Role="CmUser">
  5484. <PropertyRef Name="SiteId" />
  5485. <PropertyRef Name="CompanyId" />
  5486. </Dependent>
  5487. </ReferentialConstraint>
  5488. </Association>
  5489. <Association Name="FK_CmUser_CmDepartment">
  5490. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  5491. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5492. <ReferentialConstraint>
  5493. <Principal Role="CmDepartment">
  5494. <PropertyRef Name="SiteId" />
  5495. <PropertyRef Name="CompanyId" />
  5496. <PropertyRef Name="DepartmentId" />
  5497. </Principal>
  5498. <Dependent Role="CmUser">
  5499. <PropertyRef Name="SiteId" />
  5500. <PropertyRef Name="CompanyId" />
  5501. <PropertyRef Name="DepartmentId" />
  5502. </Dependent>
  5503. </ReferentialConstraint>
  5504. </Association>
  5505. <Association Name="FK_CmUser_CmPosition">
  5506. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
  5507. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5508. <ReferentialConstraint>
  5509. <Principal Role="CmPosition">
  5510. <PropertyRef Name="SiteId" />
  5511. <PropertyRef Name="PositionId" />
  5512. </Principal>
  5513. <Dependent Role="CmUser">
  5514. <PropertyRef Name="SiteId" />
  5515. <PropertyRef Name="PositionId" />
  5516. </Dependent>
  5517. </ReferentialConstraint>
  5518. </Association>
  5519. <Association Name="FK_CmUser_CmUserGroup">
  5520. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
  5521. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5522. <ReferentialConstraint>
  5523. <Principal Role="CmUserGroup">
  5524. <PropertyRef Name="SiteId" />
  5525. <PropertyRef Name="UserGroupId" />
  5526. </Principal>
  5527. <Dependent Role="CmUser">
  5528. <PropertyRef Name="SiteId" />
  5529. <PropertyRef Name="UserGroupId" />
  5530. </Dependent>
  5531. </ReferentialConstraint>
  5532. </Association>
  5533. <Association Name="FK_CmUserLoginHistory_CmUser">
  5534. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5535. <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
  5536. <ReferentialConstraint>
  5537. <Principal Role="CmUser">
  5538. <PropertyRef Name="SiteId" />
  5539. <PropertyRef Name="UserId" />
  5540. </Principal>
  5541. <Dependent Role="CmUserLoginHistory">
  5542. <PropertyRef Name="SiteId" />
  5543. <PropertyRef Name="UserId" />
  5544. </Dependent>
  5545. </ReferentialConstraint>
  5546. </Association>
  5547. <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
  5548. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  5549. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5550. <ReferentialConstraint>
  5551. <Principal Role="CmBuilding">
  5552. <PropertyRef Name="SiteId" />
  5553. <PropertyRef Name="BuildingId" />
  5554. </Principal>
  5555. <Dependent Role="CmZoneTempHumiSet">
  5556. <PropertyRef Name="SiteId" />
  5557. <PropertyRef Name="BuildingId" />
  5558. </Dependent>
  5559. </ReferentialConstraint>
  5560. </Association>
  5561. <Association Name="FK_CmZoneTempHumiSet_CmFloor">
  5562. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  5563. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5564. <ReferentialConstraint>
  5565. <Principal Role="CmFloor">
  5566. <PropertyRef Name="SiteId" />
  5567. <PropertyRef Name="BuildingId" />
  5568. <PropertyRef Name="FloorId" />
  5569. </Principal>
  5570. <Dependent Role="CmZoneTempHumiSet">
  5571. <PropertyRef Name="SiteId" />
  5572. <PropertyRef Name="BuildingId" />
  5573. <PropertyRef Name="FloorId" />
  5574. </Dependent>
  5575. </ReferentialConstraint>
  5576. </Association>
  5577. <Association Name="FK_CmZoneTempHumiSet_CmSite">
  5578. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5579. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5580. <ReferentialConstraint>
  5581. <Principal Role="CmSite">
  5582. <PropertyRef Name="SiteId" />
  5583. </Principal>
  5584. <Dependent Role="CmZoneTempHumiSet">
  5585. <PropertyRef Name="SiteId" />
  5586. </Dependent>
  5587. </ReferentialConstraint>
  5588. </Association>
  5589. <Association Name="FK_CmZoneTempHumiSet_CmZone">
  5590. <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
  5591. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
  5592. <ReferentialConstraint>
  5593. <Principal Role="CmZone">
  5594. <PropertyRef Name="SiteId" />
  5595. <PropertyRef Name="BuildingId" />
  5596. <PropertyRef Name="FloorId" />
  5597. <PropertyRef Name="ZoneId" />
  5598. </Principal>
  5599. <Dependent Role="CmZoneTempHumiSet">
  5600. <PropertyRef Name="SiteId" />
  5601. <PropertyRef Name="BuildingId" />
  5602. <PropertyRef Name="FloorId" />
  5603. <PropertyRef Name="ZoneId" />
  5604. </Dependent>
  5605. </ReferentialConstraint>
  5606. </Association>
  5607. <Association Name="FK_FmsAccident_CmCompany">
  5608. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  5609. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5610. <ReferentialConstraint>
  5611. <Principal Role="CmCompany">
  5612. <PropertyRef Name="SiteId" />
  5613. <PropertyRef Name="CompanyId" />
  5614. </Principal>
  5615. <Dependent Role="FmsAccident">
  5616. <PropertyRef Name="SiteId" />
  5617. <PropertyRef Name="CompanyId" />
  5618. </Dependent>
  5619. </ReferentialConstraint>
  5620. </Association>
  5621. <Association Name="FK_FmsAccident_CmDepartment">
  5622. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  5623. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5624. <ReferentialConstraint>
  5625. <Principal Role="CmDepartment">
  5626. <PropertyRef Name="SiteId" />
  5627. <PropertyRef Name="CompanyId" />
  5628. <PropertyRef Name="DepartmentId" />
  5629. </Principal>
  5630. <Dependent Role="FmsAccident">
  5631. <PropertyRef Name="SiteId" />
  5632. <PropertyRef Name="CompanyId" />
  5633. <PropertyRef Name="DepartmentId" />
  5634. </Dependent>
  5635. </ReferentialConstraint>
  5636. </Association>
  5637. <Association Name="FK_FmsAccident_CmFile1">
  5638. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5639. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5640. <ReferentialConstraint>
  5641. <Principal Role="CmFile">
  5642. <PropertyRef Name="SiteId" />
  5643. <PropertyRef Name="FileId" />
  5644. </Principal>
  5645. <Dependent Role="FmsAccident">
  5646. <PropertyRef Name="SiteId" />
  5647. <PropertyRef Name="FileId1" />
  5648. </Dependent>
  5649. </ReferentialConstraint>
  5650. </Association>
  5651. <Association Name="FK_FmsAccident_CmFile2">
  5652. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5653. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5654. <ReferentialConstraint>
  5655. <Principal Role="CmFile">
  5656. <PropertyRef Name="SiteId" />
  5657. <PropertyRef Name="FileId" />
  5658. </Principal>
  5659. <Dependent Role="FmsAccident">
  5660. <PropertyRef Name="SiteId" />
  5661. <PropertyRef Name="FileId2" />
  5662. </Dependent>
  5663. </ReferentialConstraint>
  5664. </Association>
  5665. <Association Name="FK_FmsAccident_CmFile3">
  5666. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5667. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5668. <ReferentialConstraint>
  5669. <Principal Role="CmFile">
  5670. <PropertyRef Name="SiteId" />
  5671. <PropertyRef Name="FileId" />
  5672. </Principal>
  5673. <Dependent Role="FmsAccident">
  5674. <PropertyRef Name="SiteId" />
  5675. <PropertyRef Name="FileId3" />
  5676. </Dependent>
  5677. </ReferentialConstraint>
  5678. </Association>
  5679. <Association Name="FK_FmsAccident_FmsAccidentCodeType">
  5680. <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
  5681. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5682. <ReferentialConstraint>
  5683. <Principal Role="FmsAccidentCodeType">
  5684. <PropertyRef Name="SiteId" />
  5685. <PropertyRef Name="AccidentTypeId" />
  5686. </Principal>
  5687. <Dependent Role="FmsAccident">
  5688. <PropertyRef Name="SiteId" />
  5689. <PropertyRef Name="AccidentTypeId" />
  5690. </Dependent>
  5691. </ReferentialConstraint>
  5692. </Association>
  5693. <Association Name="FK_FmsBudgetDetail_FmsBudget">
  5694. <End Role="FmsBudget" Type="Self.FmsBudget" Multiplicity="1">
  5695. <OnDelete Action="Cascade" />
  5696. </End>
  5697. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
  5698. <ReferentialConstraint>
  5699. <Principal Role="FmsBudget">
  5700. <PropertyRef Name="SiteId" />
  5701. <PropertyRef Name="Year" />
  5702. </Principal>
  5703. <Dependent Role="FmsBudgetDetail">
  5704. <PropertyRef Name="SiteId" />
  5705. <PropertyRef Name="Year" />
  5706. </Dependent>
  5707. </ReferentialConstraint>
  5708. </Association>
  5709. <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
  5710. <End Role="FmsBudgetCodeClass" Type="Self.FmsBudgetCodeClass" Multiplicity="1" />
  5711. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
  5712. <ReferentialConstraint>
  5713. <Principal Role="FmsBudgetCodeClass">
  5714. <PropertyRef Name="SiteId" />
  5715. <PropertyRef Name="BudgetClassId" />
  5716. </Principal>
  5717. <Dependent Role="FmsBudgetDetail">
  5718. <PropertyRef Name="SiteId" />
  5719. <PropertyRef Name="BudgetClassId" />
  5720. </Dependent>
  5721. </ReferentialConstraint>
  5722. </Association>
  5723. <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  5724. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="1" />
  5725. <End Role="FmsBudgetDetailExecution" Type="Self.FmsBudgetDetailExecution" Multiplicity="*" />
  5726. <ReferentialConstraint>
  5727. <Principal Role="FmsBudgetDetail">
  5728. <PropertyRef Name="SiteId" />
  5729. <PropertyRef Name="Year" />
  5730. <PropertyRef Name="BudgetClassId" />
  5731. <PropertyRef Name="ParentBudgetClassId" />
  5732. </Principal>
  5733. <Dependent Role="FmsBudgetDetailExecution">
  5734. <PropertyRef Name="SiteId" />
  5735. <PropertyRef Name="Year" />
  5736. <PropertyRef Name="BudgetClassId" />
  5737. <PropertyRef Name="ParentBudgetClassId" />
  5738. </Dependent>
  5739. </ReferentialConstraint>
  5740. </Association>
  5741. <Association Name="FK_FmsConstruction_CmFile1">
  5742. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5743. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5744. <ReferentialConstraint>
  5745. <Principal Role="CmFile">
  5746. <PropertyRef Name="SiteId" />
  5747. <PropertyRef Name="FileId" />
  5748. </Principal>
  5749. <Dependent Role="FmsConstruction">
  5750. <PropertyRef Name="SiteId" />
  5751. <PropertyRef Name="FileId1" />
  5752. </Dependent>
  5753. </ReferentialConstraint>
  5754. </Association>
  5755. <Association Name="FK_FmsConstruction_CmFile2">
  5756. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5757. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5758. <ReferentialConstraint>
  5759. <Principal Role="CmFile">
  5760. <PropertyRef Name="SiteId" />
  5761. <PropertyRef Name="FileId" />
  5762. </Principal>
  5763. <Dependent Role="FmsConstruction">
  5764. <PropertyRef Name="SiteId" />
  5765. <PropertyRef Name="FileId2" />
  5766. </Dependent>
  5767. </ReferentialConstraint>
  5768. </Association>
  5769. <Association Name="FK_FmsConstruction_CmFile3">
  5770. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5771. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5772. <ReferentialConstraint>
  5773. <Principal Role="CmFile">
  5774. <PropertyRef Name="SiteId" />
  5775. <PropertyRef Name="FileId" />
  5776. </Principal>
  5777. <Dependent Role="FmsConstruction">
  5778. <PropertyRef Name="SiteId" />
  5779. <PropertyRef Name="FileId3" />
  5780. </Dependent>
  5781. </ReferentialConstraint>
  5782. </Association>
  5783. <Association Name="FK_FmsConstruction_CmPartner">
  5784. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="1" />
  5785. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5786. <ReferentialConstraint>
  5787. <Principal Role="CmPartner">
  5788. <PropertyRef Name="SiteId" />
  5789. <PropertyRef Name="PartnerId" />
  5790. </Principal>
  5791. <Dependent Role="FmsConstruction">
  5792. <PropertyRef Name="SiteId" />
  5793. <PropertyRef Name="PartnerId" />
  5794. </Dependent>
  5795. </ReferentialConstraint>
  5796. </Association>
  5797. <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
  5798. <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
  5799. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5800. <ReferentialConstraint>
  5801. <Principal Role="FmsConstructionCodeProgress">
  5802. <PropertyRef Name="ProgressId" />
  5803. </Principal>
  5804. <Dependent Role="FmsConstruction">
  5805. <PropertyRef Name="ProgressId" />
  5806. </Dependent>
  5807. </ReferentialConstraint>
  5808. </Association>
  5809. <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
  5810. <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
  5811. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5812. <ReferentialConstraint>
  5813. <Principal Role="FmsConstructionCodeType">
  5814. <PropertyRef Name="SiteId" />
  5815. <PropertyRef Name="ConstructionTypeId" />
  5816. </Principal>
  5817. <Dependent Role="FmsConstruction">
  5818. <PropertyRef Name="SiteId" />
  5819. <PropertyRef Name="ConstructionTypeId" />
  5820. </Dependent>
  5821. </ReferentialConstraint>
  5822. </Association>
  5823. <Association Name="FK_FmsConstructionEstimation_CmUser">
  5824. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5825. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
  5826. <ReferentialConstraint>
  5827. <Principal Role="CmUser">
  5828. <PropertyRef Name="SiteId" />
  5829. <PropertyRef Name="UserId" />
  5830. </Principal>
  5831. <Dependent Role="FmsConstructionEstimation">
  5832. <PropertyRef Name="SiteId" />
  5833. <PropertyRef Name="EstimateUserId" />
  5834. </Dependent>
  5835. </ReferentialConstraint>
  5836. </Association>
  5837. <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
  5838. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
  5839. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
  5840. <ReferentialConstraint>
  5841. <Principal Role="FmsConstruction">
  5842. <PropertyRef Name="SiteId" />
  5843. <PropertyRef Name="ConstructionId" />
  5844. </Principal>
  5845. <Dependent Role="FmsConstructionEstimation">
  5846. <PropertyRef Name="SiteId" />
  5847. <PropertyRef Name="ConstructionId" />
  5848. </Dependent>
  5849. </ReferentialConstraint>
  5850. </Association>
  5851. <Association Name="FK_FmsContract_CmPartner">
  5852. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  5853. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5854. <ReferentialConstraint>
  5855. <Principal Role="CmPartner">
  5856. <PropertyRef Name="SiteId" />
  5857. <PropertyRef Name="PartnerId" />
  5858. </Principal>
  5859. <Dependent Role="FmsContract">
  5860. <PropertyRef Name="SiteId" />
  5861. <PropertyRef Name="PartnerId" />
  5862. </Dependent>
  5863. </ReferentialConstraint>
  5864. </Association>
  5865. <Association Name="FK_FmsContract_CmPartnerType">
  5866. <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="0..1" />
  5867. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5868. <ReferentialConstraint>
  5869. <Principal Role="CmPartnerType">
  5870. <PropertyRef Name="PartnerTypeId" />
  5871. </Principal>
  5872. <Dependent Role="FmsContract">
  5873. <PropertyRef Name="PartnerTypeId" />
  5874. </Dependent>
  5875. </ReferentialConstraint>
  5876. </Association>
  5877. <Association Name="FK_FmsContract_FmsContractClass">
  5878. <End Role="FmsContractClass" Type="Self.FmsContractClass" Multiplicity="0..1" />
  5879. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5880. <ReferentialConstraint>
  5881. <Principal Role="FmsContractClass">
  5882. <PropertyRef Name="SiteId" />
  5883. <PropertyRef Name="ContractClassId" />
  5884. </Principal>
  5885. <Dependent Role="FmsContract">
  5886. <PropertyRef Name="SiteId" />
  5887. <PropertyRef Name="ContractClassId" />
  5888. </Dependent>
  5889. </ReferentialConstraint>
  5890. </Association>
  5891. <Association Name="FK_FmsContract_FmsContractMethod">
  5892. <End Role="FmsContractMethod" Type="Self.FmsContractMethod" Multiplicity="0..1" />
  5893. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5894. <ReferentialConstraint>
  5895. <Principal Role="FmsContractMethod">
  5896. <PropertyRef Name="SiteId" />
  5897. <PropertyRef Name="ContractMethodId" />
  5898. </Principal>
  5899. <Dependent Role="FmsContract">
  5900. <PropertyRef Name="SiteId" />
  5901. <PropertyRef Name="ContractMethodId" />
  5902. </Dependent>
  5903. </ReferentialConstraint>
  5904. </Association>
  5905. <Association Name="FK_FmsContract_FmsContractType">
  5906. <End Role="FmsContractType" Type="Self.FmsContractType" Multiplicity="0..1" />
  5907. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5908. <ReferentialConstraint>
  5909. <Principal Role="FmsContractType">
  5910. <PropertyRef Name="SiteId" />
  5911. <PropertyRef Name="ContractTypeId" />
  5912. </Principal>
  5913. <Dependent Role="FmsContract">
  5914. <PropertyRef Name="SiteId" />
  5915. <PropertyRef Name="ContractTypeId" />
  5916. </Dependent>
  5917. </ReferentialConstraint>
  5918. </Association>
  5919. <Association Name="FK_FmsContract_FmsPaymentType">
  5920. <End Role="FmsPaymentType" Type="Self.FmsPaymentType" Multiplicity="0..1" />
  5921. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5922. <ReferentialConstraint>
  5923. <Principal Role="FmsPaymentType">
  5924. <PropertyRef Name="SiteId" />
  5925. <PropertyRef Name="PaymentTypeId" />
  5926. </Principal>
  5927. <Dependent Role="FmsContract">
  5928. <PropertyRef Name="SiteId" />
  5929. <PropertyRef Name="PartnerTypeId" />
  5930. </Dependent>
  5931. </ReferentialConstraint>
  5932. </Association>
  5933. <Association Name="FK_FmsDailyCheckReport_CmUser">
  5934. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5935. <End Role="FmsDailyCheckReport" Type="Self.FmsDailyCheckReport" Multiplicity="*" />
  5936. <ReferentialConstraint>
  5937. <Principal Role="CmUser">
  5938. <PropertyRef Name="SiteId" />
  5939. <PropertyRef Name="UserId" />
  5940. </Principal>
  5941. <Dependent Role="FmsDailyCheckReport">
  5942. <PropertyRef Name="SiteId" />
  5943. <PropertyRef Name="RegisterUserId" />
  5944. </Dependent>
  5945. </ReferentialConstraint>
  5946. </Association>
  5947. <Association Name="FK_FmsDailyReport_CmBusinessField">
  5948. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  5949. <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
  5950. <ReferentialConstraint>
  5951. <Principal Role="CmBusinessField">
  5952. <PropertyRef Name="SiteId" />
  5953. <PropertyRef Name="BusinessFieldId" />
  5954. </Principal>
  5955. <Dependent Role="FmsDailyReport">
  5956. <PropertyRef Name="SiteId" />
  5957. <PropertyRef Name="BusinessFieldId" />
  5958. </Dependent>
  5959. </ReferentialConstraint>
  5960. </Association>
  5961. <Association Name="FK_FmsDailyReport_CmUser">
  5962. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5963. <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
  5964. <ReferentialConstraint>
  5965. <Principal Role="CmUser">
  5966. <PropertyRef Name="SiteId" />
  5967. <PropertyRef Name="UserId" />
  5968. </Principal>
  5969. <Dependent Role="FmsDailyReport">
  5970. <PropertyRef Name="SiteId" />
  5971. <PropertyRef Name="RegisterUserId" />
  5972. </Dependent>
  5973. </ReferentialConstraint>
  5974. </Association>
  5975. <Association Name="FK_FmsEquipment_CmUser">
  5976. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5977. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5978. <ReferentialConstraint>
  5979. <Principal Role="CmUser">
  5980. <PropertyRef Name="SiteId" />
  5981. <PropertyRef Name="UserId" />
  5982. </Principal>
  5983. <Dependent Role="FmsEquipment">
  5984. <PropertyRef Name="SiteId" />
  5985. <PropertyRef Name="RegisterUserId" />
  5986. </Dependent>
  5987. </ReferentialConstraint>
  5988. </Association>
  5989. <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
  5990. <End Role="FmsEquipmentCodeType" Type="Self.FmsEquipmentCodeType" Multiplicity="1" />
  5991. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5992. <ReferentialConstraint>
  5993. <Principal Role="FmsEquipmentCodeType">
  5994. <PropertyRef Name="SiteId" />
  5995. <PropertyRef Name="EquipmentTypeId" />
  5996. </Principal>
  5997. <Dependent Role="FmsEquipment">
  5998. <PropertyRef Name="SiteId" />
  5999. <PropertyRef Name="EquipmentTypeId" />
  6000. </Dependent>
  6001. </ReferentialConstraint>
  6002. </Association>
  6003. <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
  6004. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
  6005. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  6006. <ReferentialConstraint>
  6007. <Principal Role="FmsMaterialWarehouse">
  6008. <PropertyRef Name="SiteId" />
  6009. <PropertyRef Name="WarehouseId" />
  6010. </Principal>
  6011. <Dependent Role="FmsEquipment">
  6012. <PropertyRef Name="SiteId" />
  6013. <PropertyRef Name="WarehouseId" />
  6014. </Dependent>
  6015. </ReferentialConstraint>
  6016. </Association>
  6017. <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
  6018. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="1" />
  6019. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  6020. <ReferentialConstraint>
  6021. <Principal Role="FmsEquipment">
  6022. <PropertyRef Name="SiteId" />
  6023. <PropertyRef Name="EquipmentId" />
  6024. </Principal>
  6025. <Dependent Role="FmsEquipmentHistory">
  6026. <PropertyRef Name="SiteId" />
  6027. <PropertyRef Name="EquipmentId" />
  6028. </Dependent>
  6029. </ReferentialConstraint>
  6030. </Association>
  6031. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  6032. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  6033. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  6034. <ReferentialConstraint>
  6035. <Principal Role="FmsEquipmentCodeStateType">
  6036. <PropertyRef Name="EquipmentStateTypeId" />
  6037. </Principal>
  6038. <Dependent Role="FmsEquipmentHistory">
  6039. <PropertyRef Name="EquipmentStateTypeId" />
  6040. </Dependent>
  6041. </ReferentialConstraint>
  6042. </Association>
  6043. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  6044. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="0..1">
  6045. <OnDelete Action="Cascade" />
  6046. </End>
  6047. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  6048. <ReferentialConstraint>
  6049. <Principal Role="FmsEquipmentRentInfo">
  6050. <PropertyRef Name="SiteId" />
  6051. <PropertyRef Name="EquipmentRentId" />
  6052. </Principal>
  6053. <Dependent Role="FmsEquipmentHistory">
  6054. <PropertyRef Name="SiteId" />
  6055. <PropertyRef Name="EquipmentRentId" />
  6056. </Dependent>
  6057. </ReferentialConstraint>
  6058. </Association>
  6059. <Association Name="FK_FmsEquipmentRentInfo_CmUser">
  6060. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6061. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6062. <ReferentialConstraint>
  6063. <Principal Role="CmUser">
  6064. <PropertyRef Name="SiteId" />
  6065. <PropertyRef Name="UserId" />
  6066. </Principal>
  6067. <Dependent Role="FmsEquipmentRentInfo">
  6068. <PropertyRef Name="SiteId" />
  6069. <PropertyRef Name="RegisterUserId" />
  6070. </Dependent>
  6071. </ReferentialConstraint>
  6072. </Association>
  6073. <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
  6074. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6075. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6076. <ReferentialConstraint>
  6077. <Principal Role="CmUser">
  6078. <PropertyRef Name="SiteId" />
  6079. <PropertyRef Name="UserId" />
  6080. </Principal>
  6081. <Dependent Role="FmsEquipmentRentInfo">
  6082. <PropertyRef Name="SiteId" />
  6083. <PropertyRef Name="RentUserId" />
  6084. </Dependent>
  6085. </ReferentialConstraint>
  6086. </Association>
  6087. <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  6088. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  6089. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6090. <ReferentialConstraint>
  6091. <Principal Role="FmsEquipmentCodeStateType">
  6092. <PropertyRef Name="EquipmentStateTypeId" />
  6093. </Principal>
  6094. <Dependent Role="FmsEquipmentRentInfo">
  6095. <PropertyRef Name="EquipmentStateTypeId" />
  6096. </Dependent>
  6097. </ReferentialConstraint>
  6098. </Association>
  6099. <Association Name="FK_FmsFacilityOperationReport_CmUser">
  6100. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6101. <End Role="FmsFacilityOperationReport" Type="Self.FmsFacilityOperationReport" Multiplicity="*" />
  6102. <ReferentialConstraint>
  6103. <Principal Role="CmUser">
  6104. <PropertyRef Name="SiteId" />
  6105. <PropertyRef Name="UserId" />
  6106. </Principal>
  6107. <Dependent Role="FmsFacilityOperationReport">
  6108. <PropertyRef Name="SiteId" />
  6109. <PropertyRef Name="RegisterUserId" />
  6110. </Dependent>
  6111. </ReferentialConstraint>
  6112. </Association>
  6113. <Association Name="FK_FmsManual_FmsManualType">
  6114. <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
  6115. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
  6116. <ReferentialConstraint>
  6117. <Principal Role="FmsManualType">
  6118. <PropertyRef Name="SiteId" />
  6119. <PropertyRef Name="ManualTypeId" />
  6120. </Principal>
  6121. <Dependent Role="FmsManual">
  6122. <PropertyRef Name="SiteId" />
  6123. <PropertyRef Name="ManualTypeId" />
  6124. </Dependent>
  6125. </ReferentialConstraint>
  6126. </Association>
  6127. <Association Name="FK_FmsManualHistory_CmFile">
  6128. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6129. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6130. <ReferentialConstraint>
  6131. <Principal Role="CmFile">
  6132. <PropertyRef Name="SiteId" />
  6133. <PropertyRef Name="FileId" />
  6134. </Principal>
  6135. <Dependent Role="FmsManualHistory">
  6136. <PropertyRef Name="SiteId" />
  6137. <PropertyRef Name="FileId" />
  6138. </Dependent>
  6139. </ReferentialConstraint>
  6140. </Association>
  6141. <Association Name="FK_FmsManualHistory_CmUser">
  6142. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6143. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6144. <ReferentialConstraint>
  6145. <Principal Role="CmUser">
  6146. <PropertyRef Name="SiteId" />
  6147. <PropertyRef Name="UserId" />
  6148. </Principal>
  6149. <Dependent Role="FmsManualHistory">
  6150. <PropertyRef Name="SiteId" />
  6151. <PropertyRef Name="UpdatedUserId" />
  6152. </Dependent>
  6153. </ReferentialConstraint>
  6154. </Association>
  6155. <Association Name="FK_FmsManualHistory_FmsManual">
  6156. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
  6157. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6158. <ReferentialConstraint>
  6159. <Principal Role="FmsManual">
  6160. <PropertyRef Name="SiteId" />
  6161. <PropertyRef Name="ManualId" />
  6162. </Principal>
  6163. <Dependent Role="FmsManualHistory">
  6164. <PropertyRef Name="SiteId" />
  6165. <PropertyRef Name="ManualId" />
  6166. </Dependent>
  6167. </ReferentialConstraint>
  6168. </Association>
  6169. <Association Name="FK_FmsMaterial_CmBusinessField">
  6170. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6171. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6172. <ReferentialConstraint>
  6173. <Principal Role="CmBusinessField">
  6174. <PropertyRef Name="SiteId" />
  6175. <PropertyRef Name="BusinessFieldId" />
  6176. </Principal>
  6177. <Dependent Role="FmsMaterial">
  6178. <PropertyRef Name="SiteId" />
  6179. <PropertyRef Name="BusinessFieldId" />
  6180. </Dependent>
  6181. </ReferentialConstraint>
  6182. </Association>
  6183. <Association Name="FK_FmsMaterial_CmFile">
  6184. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6185. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6186. <ReferentialConstraint>
  6187. <Principal Role="CmFile">
  6188. <PropertyRef Name="SiteId" />
  6189. <PropertyRef Name="FileId" />
  6190. </Principal>
  6191. <Dependent Role="FmsMaterial">
  6192. <PropertyRef Name="SiteId" />
  6193. <PropertyRef Name="ImageFileId" />
  6194. </Dependent>
  6195. </ReferentialConstraint>
  6196. </Association>
  6197. <Association Name="FK_FmsMaterial_CmSite">
  6198. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6199. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6200. <ReferentialConstraint>
  6201. <Principal Role="CmSite">
  6202. <PropertyRef Name="SiteId" />
  6203. </Principal>
  6204. <Dependent Role="FmsMaterial">
  6205. <PropertyRef Name="SiteId" />
  6206. </Dependent>
  6207. </ReferentialConstraint>
  6208. </Association>
  6209. <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
  6210. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="0..1" />
  6211. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6212. <ReferentialConstraint>
  6213. <Principal Role="FmsMaterialCodeLocation">
  6214. <PropertyRef Name="SiteId" />
  6215. <PropertyRef Name="LocationId" />
  6216. </Principal>
  6217. <Dependent Role="FmsMaterial">
  6218. <PropertyRef Name="SiteId" />
  6219. <PropertyRef Name="LocationId" />
  6220. </Dependent>
  6221. </ReferentialConstraint>
  6222. </Association>
  6223. <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
  6224. <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="0..1" />
  6225. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6226. <ReferentialConstraint>
  6227. <Principal Role="FmsMaterialCodeType">
  6228. <PropertyRef Name="SiteId" />
  6229. <PropertyRef Name="MaterialTypeId" />
  6230. </Principal>
  6231. <Dependent Role="FmsMaterial">
  6232. <PropertyRef Name="SiteId" />
  6233. <PropertyRef Name="MaterialTypeId" />
  6234. </Dependent>
  6235. </ReferentialConstraint>
  6236. </Association>
  6237. <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
  6238. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  6239. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6240. <ReferentialConstraint>
  6241. <Principal Role="FmsMaterialTradeCompany">
  6242. <PropertyRef Name="SiteId" />
  6243. <PropertyRef Name="TradeCompanyId" />
  6244. </Principal>
  6245. <Dependent Role="FmsMaterial">
  6246. <PropertyRef Name="SiteId" />
  6247. <PropertyRef Name="TradeCompanyId" />
  6248. </Dependent>
  6249. </ReferentialConstraint>
  6250. </Association>
  6251. <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
  6252. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
  6253. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6254. <ReferentialConstraint>
  6255. <Principal Role="FmsMaterialWarehouse">
  6256. <PropertyRef Name="SiteId" />
  6257. <PropertyRef Name="WarehouseId" />
  6258. </Principal>
  6259. <Dependent Role="FmsMaterial">
  6260. <PropertyRef Name="SiteId" />
  6261. <PropertyRef Name="WarehouseId" />
  6262. </Dependent>
  6263. </ReferentialConstraint>
  6264. </Association>
  6265. <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  6266. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
  6267. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  6268. <ReferentialConstraint>
  6269. <Principal Role="FmsMaterialPurchaseRequest">
  6270. <PropertyRef Name="SiteId" />
  6271. <PropertyRef Name="PurchaseRequestId" />
  6272. </Principal>
  6273. <Dependent Role="FmsMaterialPurchaseOrder">
  6274. <PropertyRef Name="SiteId" />
  6275. <PropertyRef Name="PurchaseRequestId" />
  6276. </Dependent>
  6277. </ReferentialConstraint>
  6278. </Association>
  6279. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  6280. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6281. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  6282. <ReferentialConstraint>
  6283. <Principal Role="FmsMaterial">
  6284. <PropertyRef Name="SiteId" />
  6285. <PropertyRef Name="MaterialId" />
  6286. </Principal>
  6287. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  6288. <PropertyRef Name="SiteId" />
  6289. <PropertyRef Name="MaterialId" />
  6290. </Dependent>
  6291. </ReferentialConstraint>
  6292. </Association>
  6293. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  6294. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
  6295. <OnDelete Action="Cascade" />
  6296. </End>
  6297. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  6298. <ReferentialConstraint>
  6299. <Principal Role="FmsMaterialPurchaseOrder">
  6300. <PropertyRef Name="SiteId" />
  6301. <PropertyRef Name="PurchaseOrderId" />
  6302. </Principal>
  6303. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  6304. <PropertyRef Name="SiteId" />
  6305. <PropertyRef Name="PurchaseOrderId" />
  6306. </Dependent>
  6307. </ReferentialConstraint>
  6308. </Association>
  6309. <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  6310. <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
  6311. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  6312. <ReferentialConstraint>
  6313. <Principal Role="FmsMaterialCodePurchaseType">
  6314. <PropertyRef Name="PurchaseTypeId" />
  6315. </Principal>
  6316. <Dependent Role="FmsMaterialPurchaseRequest">
  6317. <PropertyRef Name="PurchaseTypeId" />
  6318. </Dependent>
  6319. </ReferentialConstraint>
  6320. </Association>
  6321. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  6322. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6323. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  6324. <ReferentialConstraint>
  6325. <Principal Role="FmsMaterial">
  6326. <PropertyRef Name="SiteId" />
  6327. <PropertyRef Name="MaterialId" />
  6328. </Principal>
  6329. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  6330. <PropertyRef Name="SiteId" />
  6331. <PropertyRef Name="MaterialId" />
  6332. </Dependent>
  6333. </ReferentialConstraint>
  6334. </Association>
  6335. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  6336. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
  6337. <OnDelete Action="Cascade" />
  6338. </End>
  6339. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  6340. <ReferentialConstraint>
  6341. <Principal Role="FmsMaterialPurchaseRequest">
  6342. <PropertyRef Name="SiteId" />
  6343. <PropertyRef Name="PurchaseRequestId" />
  6344. </Principal>
  6345. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  6346. <PropertyRef Name="SiteId" />
  6347. <PropertyRef Name="PurchaseRequestId" />
  6348. </Dependent>
  6349. </ReferentialConstraint>
  6350. </Association>
  6351. <Association Name="FK_FmsMaterialRelease_CmBusinessField">
  6352. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6353. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6354. <ReferentialConstraint>
  6355. <Principal Role="CmBusinessField">
  6356. <PropertyRef Name="SiteId" />
  6357. <PropertyRef Name="BusinessFieldId" />
  6358. </Principal>
  6359. <Dependent Role="FmsMaterialRelease">
  6360. <PropertyRef Name="SiteId" />
  6361. <PropertyRef Name="BusinessFieldId" />
  6362. </Dependent>
  6363. </ReferentialConstraint>
  6364. </Association>
  6365. <Association Name="FK_FmsMaterialRelease_CmSite">
  6366. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6367. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6368. <ReferentialConstraint>
  6369. <Principal Role="CmSite">
  6370. <PropertyRef Name="SiteId" />
  6371. </Principal>
  6372. <Dependent Role="FmsMaterialRelease">
  6373. <PropertyRef Name="SiteId" />
  6374. </Dependent>
  6375. </ReferentialConstraint>
  6376. </Association>
  6377. <Association Name="FK_FmsMaterialRelease_CmUser">
  6378. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6379. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6380. <ReferentialConstraint>
  6381. <Principal Role="CmUser">
  6382. <PropertyRef Name="SiteId" />
  6383. <PropertyRef Name="UserId" />
  6384. </Principal>
  6385. <Dependent Role="FmsMaterialRelease">
  6386. <PropertyRef Name="SiteId" />
  6387. <PropertyRef Name="ConfirmedUserId" />
  6388. </Dependent>
  6389. </ReferentialConstraint>
  6390. </Association>
  6391. <Association Name="FK_FmsMaterialRelease_CmUser1">
  6392. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6393. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6394. <ReferentialConstraint>
  6395. <Principal Role="CmUser">
  6396. <PropertyRef Name="SiteId" />
  6397. <PropertyRef Name="UserId" />
  6398. </Principal>
  6399. <Dependent Role="FmsMaterialRelease">
  6400. <PropertyRef Name="SiteId" />
  6401. <PropertyRef Name="AdjustmentUserId" />
  6402. </Dependent>
  6403. </ReferentialConstraint>
  6404. </Association>
  6405. <Association Name="FK_FmsMaterialRelease_FmsMaterial">
  6406. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="0..1" />
  6407. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6408. <ReferentialConstraint>
  6409. <Principal Role="FmsMaterial">
  6410. <PropertyRef Name="SiteId" />
  6411. <PropertyRef Name="MaterialId" />
  6412. </Principal>
  6413. <Dependent Role="FmsMaterialRelease">
  6414. <PropertyRef Name="SiteId" />
  6415. <PropertyRef Name="MaterialId" />
  6416. </Dependent>
  6417. </ReferentialConstraint>
  6418. </Association>
  6419. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  6420. <End Role="FmsMaterialCodeAdjustmentType" Type="Self.FmsMaterialCodeAdjustmentType" Multiplicity="1" />
  6421. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6422. <ReferentialConstraint>
  6423. <Principal Role="FmsMaterialCodeAdjustmentType">
  6424. <PropertyRef Name="AdjustmentTypeId" />
  6425. </Principal>
  6426. <Dependent Role="FmsMaterialRelease">
  6427. <PropertyRef Name="AdjustmentTypeId" />
  6428. </Dependent>
  6429. </ReferentialConstraint>
  6430. </Association>
  6431. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  6432. <End Role="FmsMaterialCodeReleaseType" Type="Self.FmsMaterialCodeReleaseType" Multiplicity="1" />
  6433. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6434. <ReferentialConstraint>
  6435. <Principal Role="FmsMaterialCodeReleaseType">
  6436. <PropertyRef Name="ReleaseTypeId" />
  6437. </Principal>
  6438. <Dependent Role="FmsMaterialRelease">
  6439. <PropertyRef Name="ReleaseTypeId" />
  6440. </Dependent>
  6441. </ReferentialConstraint>
  6442. </Association>
  6443. <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
  6444. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  6445. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6446. <ReferentialConstraint>
  6447. <Principal Role="FmsWorkResult">
  6448. <PropertyRef Name="SiteId" />
  6449. <PropertyRef Name="WorkRequestId" />
  6450. </Principal>
  6451. <Dependent Role="FmsMaterialRelease">
  6452. <PropertyRef Name="SiteId" />
  6453. <PropertyRef Name="WorkRequestId" />
  6454. </Dependent>
  6455. </ReferentialConstraint>
  6456. </Association>
  6457. <Association Name="FK_FmsMaterialStored_FmsMaterial">
  6458. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6459. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6460. <ReferentialConstraint>
  6461. <Principal Role="FmsMaterial">
  6462. <PropertyRef Name="SiteId" />
  6463. <PropertyRef Name="MaterialId" />
  6464. </Principal>
  6465. <Dependent Role="FmsMaterialStored">
  6466. <PropertyRef Name="SiteId" />
  6467. <PropertyRef Name="MaterialId" />
  6468. </Dependent>
  6469. </ReferentialConstraint>
  6470. </Association>
  6471. <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  6472. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
  6473. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6474. <ReferentialConstraint>
  6475. <Principal Role="FmsMaterialPurchaseOrder">
  6476. <PropertyRef Name="SiteId" />
  6477. <PropertyRef Name="PurchaseOrderId" />
  6478. </Principal>
  6479. <Dependent Role="FmsMaterialStored">
  6480. <PropertyRef Name="SiteId" />
  6481. <PropertyRef Name="PurchaseOrderId" />
  6482. </Dependent>
  6483. </ReferentialConstraint>
  6484. </Association>
  6485. <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
  6486. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
  6487. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6488. <ReferentialConstraint>
  6489. <Principal Role="FmsMaterialWarehouse">
  6490. <PropertyRef Name="SiteId" />
  6491. <PropertyRef Name="WarehouseId" />
  6492. </Principal>
  6493. <Dependent Role="FmsMaterialStored">
  6494. <PropertyRef Name="SiteId" />
  6495. <PropertyRef Name="WarehouseId" />
  6496. </Dependent>
  6497. </ReferentialConstraint>
  6498. </Association>
  6499. <Association Name="FK_FmsMonthlyReport_CmUser">
  6500. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6501. <End Role="FmsMonthlyReport" Type="Self.FmsMonthlyReport" Multiplicity="*" />
  6502. <ReferentialConstraint>
  6503. <Principal Role="CmUser">
  6504. <PropertyRef Name="SiteId" />
  6505. <PropertyRef Name="UserId" />
  6506. </Principal>
  6507. <Dependent Role="FmsMonthlyReport">
  6508. <PropertyRef Name="SiteId" />
  6509. <PropertyRef Name="RegisterUserId" />
  6510. </Dependent>
  6511. </ReferentialConstraint>
  6512. </Association>
  6513. <Association Name="FK_FmsReport_CmBusinessField">
  6514. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6515. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6516. <ReferentialConstraint>
  6517. <Principal Role="CmBusinessField">
  6518. <PropertyRef Name="SiteId" />
  6519. <PropertyRef Name="BusinessFieldId" />
  6520. </Principal>
  6521. <Dependent Role="FmsReport">
  6522. <PropertyRef Name="SiteId" />
  6523. <PropertyRef Name="BusinessFieldId" />
  6524. </Dependent>
  6525. </ReferentialConstraint>
  6526. </Association>
  6527. <Association Name="FK_FmsReport_CmFile">
  6528. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6529. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6530. <ReferentialConstraint>
  6531. <Principal Role="CmFile">
  6532. <PropertyRef Name="SiteId" />
  6533. <PropertyRef Name="FileId" />
  6534. </Principal>
  6535. <Dependent Role="FmsReport">
  6536. <PropertyRef Name="SiteId" />
  6537. <PropertyRef Name="FileId" />
  6538. </Dependent>
  6539. </ReferentialConstraint>
  6540. </Association>
  6541. <Association Name="FK_FmsReport_CmSite">
  6542. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6543. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6544. <ReferentialConstraint>
  6545. <Principal Role="CmSite">
  6546. <PropertyRef Name="SiteId" />
  6547. </Principal>
  6548. <Dependent Role="FmsReport">
  6549. <PropertyRef Name="SiteId" />
  6550. </Dependent>
  6551. </ReferentialConstraint>
  6552. </Association>
  6553. <Association Name="FK_FmsReport_CmUser">
  6554. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6555. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6556. <ReferentialConstraint>
  6557. <Principal Role="CmUser">
  6558. <PropertyRef Name="SiteId" />
  6559. <PropertyRef Name="UserId" />
  6560. </Principal>
  6561. <Dependent Role="FmsReport">
  6562. <PropertyRef Name="SiteId" />
  6563. <PropertyRef Name="RegisterUserId" />
  6564. </Dependent>
  6565. </ReferentialConstraint>
  6566. </Association>
  6567. <Association Name="FK_FmsReport_CmUser1">
  6568. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6569. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6570. <ReferentialConstraint>
  6571. <Principal Role="CmUser">
  6572. <PropertyRef Name="SiteId" />
  6573. <PropertyRef Name="UserId" />
  6574. </Principal>
  6575. <Dependent Role="FmsReport">
  6576. <PropertyRef Name="SiteId" />
  6577. <PropertyRef Name="ConfirmUserId1" />
  6578. </Dependent>
  6579. </ReferentialConstraint>
  6580. </Association>
  6581. <Association Name="FK_FmsReport_CmUser2">
  6582. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6583. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6584. <ReferentialConstraint>
  6585. <Principal Role="CmUser">
  6586. <PropertyRef Name="SiteId" />
  6587. <PropertyRef Name="UserId" />
  6588. </Principal>
  6589. <Dependent Role="FmsReport">
  6590. <PropertyRef Name="SiteId" />
  6591. <PropertyRef Name="ConfirmUserId2" />
  6592. </Dependent>
  6593. </ReferentialConstraint>
  6594. </Association>
  6595. <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
  6596. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6597. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  6598. <ReferentialConstraint>
  6599. <Principal Role="CmFacility">
  6600. <PropertyRef Name="SiteId" />
  6601. <PropertyRef Name="FacilityCode" />
  6602. </Principal>
  6603. <Dependent Role="FmsWorkOrderToFacility">
  6604. <PropertyRef Name="SiteId" />
  6605. <PropertyRef Name="FacilityCode" />
  6606. </Dependent>
  6607. </ReferentialConstraint>
  6608. </Association>
  6609. <Association Name="FK_FmsWorkRequest_CmPartner">
  6610. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  6611. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  6612. <ReferentialConstraint>
  6613. <Principal Role="CmPartner">
  6614. <PropertyRef Name="SiteId" />
  6615. <PropertyRef Name="PartnerId" />
  6616. </Principal>
  6617. <Dependent Role="FmsWorkRequest">
  6618. <PropertyRef Name="SiteId" />
  6619. <PropertyRef Name="InspectionAgencyId" />
  6620. </Dependent>
  6621. </ReferentialConstraint>
  6622. </Association>
  6623. <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
  6624. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6625. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  6626. <ReferentialConstraint>
  6627. <Principal Role="CmFacility">
  6628. <PropertyRef Name="SiteId" />
  6629. <PropertyRef Name="FacilityCode" />
  6630. </Principal>
  6631. <Dependent Role="FmsWorkRequestToFacility">
  6632. <PropertyRef Name="SiteId" />
  6633. <PropertyRef Name="FacilityCode" />
  6634. </Dependent>
  6635. </ReferentialConstraint>
  6636. </Association>
  6637. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  6638. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6639. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6640. <ReferentialConstraint>
  6641. <Principal Role="FmsMaterial">
  6642. <PropertyRef Name="SiteId" />
  6643. <PropertyRef Name="MaterialId" />
  6644. </Principal>
  6645. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6646. <PropertyRef Name="SiteId" />
  6647. <PropertyRef Name="MaterialId" />
  6648. </Dependent>
  6649. </ReferentialConstraint>
  6650. </Association>
  6651. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  6652. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  6653. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6654. <ReferentialConstraint>
  6655. <Principal Role="FmsWorkResult">
  6656. <PropertyRef Name="SiteId" />
  6657. <PropertyRef Name="WorkRequestId" />
  6658. </Principal>
  6659. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6660. <PropertyRef Name="SiteId" />
  6661. <PropertyRef Name="WorkRequestId" />
  6662. </Dependent>
  6663. </ReferentialConstraint>
  6664. </Association>
  6665. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  6666. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1" />
  6667. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6668. <ReferentialConstraint>
  6669. <Principal Role="FmsWorkResultCheckItem">
  6670. <PropertyRef Name="CheckItemId" />
  6671. </Principal>
  6672. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6673. <PropertyRef Name="CheckItemId" />
  6674. </Dependent>
  6675. </ReferentialConstraint>
  6676. </Association>
  6677. <Association Name="FK_FmsWorkSchedule_CmPartner">
  6678. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  6679. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  6680. <ReferentialConstraint>
  6681. <Principal Role="CmPartner">
  6682. <PropertyRef Name="SiteId" />
  6683. <PropertyRef Name="PartnerId" />
  6684. </Principal>
  6685. <Dependent Role="FmsWorkSchedule">
  6686. <PropertyRef Name="SiteId" />
  6687. <PropertyRef Name="InspectionAgencyId" />
  6688. </Dependent>
  6689. </ReferentialConstraint>
  6690. </Association>
  6691. <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
  6692. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6693. <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
  6694. <ReferentialConstraint>
  6695. <Principal Role="CmFacility">
  6696. <PropertyRef Name="SiteId" />
  6697. <PropertyRef Name="FacilityCode" />
  6698. </Principal>
  6699. <Dependent Role="FmsWorkScheduleToFacility">
  6700. <PropertyRef Name="SiteId" />
  6701. <PropertyRef Name="FacilityCode" />
  6702. </Dependent>
  6703. </ReferentialConstraint>
  6704. </Association>
  6705. <EntityContainer Name="iBemsModelStoreContainer">
  6706. <EntitySet Name="BemsAlarmGroup" EntityType="Self.BemsAlarmGroup" Schema="dbo" store:Type="Tables" />
  6707. <EntitySet Name="BemsAlarmGroupUser" EntityType="Self.BemsAlarmGroupUser" Schema="dbo" store:Type="Tables" />
  6708. <EntitySet Name="BemsAlarmLog" EntityType="Self.BemsAlarmLog" Schema="dbo" store:Type="Tables" />
  6709. <EntitySet Name="BemsAlarmSetting" EntityType="Self.BemsAlarmSetting" Schema="dbo" store:Type="Tables" />
  6710. <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" Schema="dbo" store:Type="Tables" />
  6711. <EntitySet Name="BemsChartInfo" EntityType="Self.BemsChartInfo" Schema="dbo" store:Type="Tables" />
  6712. <EntitySet Name="BemsConfigData" EntityType="Self.BemsConfigData" Schema="dbo" store:Type="Tables" />
  6713. <EntitySet Name="BemsControlAHUTempConfig" EntityType="Self.BemsControlAHUTempConfig" Schema="dbo" store:Type="Tables" />
  6714. <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" Schema="dbo" store:Type="Tables" />
  6715. <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="Self.BemsEnergyConfigPercentMonth" Schema="dbo" store:Type="Tables" />
  6716. <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="Self.BemsEnergyConfigPercentWeek" Schema="dbo" store:Type="Tables" />
  6717. <EntitySet Name="BemsEnergyCost" EntityType="Self.BemsEnergyCost" Schema="dbo" store:Type="Tables" />
  6718. <EntitySet Name="BemsEnergyDaily" EntityType="Self.BemsEnergyDaily" Schema="dbo" store:Type="Tables" />
  6719. <EntitySet Name="BemsEnergyDailyRegression" EntityType="Self.BemsEnergyDailyRegression" Schema="dbo" store:Type="Tables" />
  6720. <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" Schema="dbo" store:Type="Tables" />
  6721. <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" Schema="dbo" store:Type="Tables" />
  6722. <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" Schema="dbo" store:Type="Tables" />
  6723. <EntitySet Name="BemsFloorPlan" EntityType="Self.BemsFloorPlan" Schema="dbo" store:Type="Tables" />
  6724. <EntitySet Name="BemsFloorStatus" EntityType="Self.BemsFloorStatus" Schema="dbo" store:Type="Tables" />
  6725. <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" Schema="dbo" store:Type="Tables" />
  6726. <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" Schema="dbo" store:Type="Tables" />
  6727. <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" Schema="dbo" store:Type="Tables" />
  6728. <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" Schema="dbo" store:Type="Tables" />
  6729. <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" Schema="dbo" store:Type="Tables" />
  6730. <EntitySet Name="BemsFuelType" EntityType="Self.BemsFuelType" Schema="dbo" store:Type="Tables" />
  6731. <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="Self.BemsIceThermalStorageSimulation" Schema="dbo" store:Type="Tables" />
  6732. <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" Schema="dbo" store:Type="Tables" />
  6733. <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" Schema="dbo" store:Type="Tables" />
  6734. <EntitySet Name="BemsMonitoringPointConfig" EntityType="Self.BemsMonitoringPointConfig" Schema="dbo" store:Type="Tables" />
  6735. <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="Self.BemsMonitoringPointForecastingDayAhead" Schema="dbo" store:Type="Tables" />
  6736. <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="Self.BemsMonitoringPointForecastingHourAhead" Schema="dbo" store:Type="Tables" />
  6737. <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" Schema="dbo" store:Type="Tables" />
  6738. <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="Self.BemsMonitoringPointHistory15minRawData" Schema="dbo" store:Type="Tables" />
  6739. <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" Schema="dbo" store:Type="Tables" />
  6740. <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" Schema="dbo" store:Type="Tables" />
  6741. <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" Schema="dbo" store:Type="Tables" />
  6742. <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="Self.BemsMonitoringPointWeatherForecasted" Schema="dbo" store:Type="Tables" />
  6743. <EntitySet Name="BemsNoticePriceBase" EntityType="Self.BemsNoticePriceBase" Schema="dbo" store:Type="Tables" />
  6744. <EntitySet Name="BemsNoticePriceContractType" EntityType="Self.BemsNoticePriceContractType" Schema="dbo" store:Type="Tables" />
  6745. <EntitySet Name="BemsNoticePriceDetail" EntityType="Self.BemsNoticePriceDetail" Schema="dbo" store:Type="Tables" />
  6746. <EntitySet Name="BemsPeakFacility" EntityType="Self.BemsPeakFacility" Schema="dbo" store:Type="Tables" />
  6747. <EntitySet Name="BemsPeakHistory" EntityType="Self.BemsPeakHistory" Schema="dbo" store:Type="Tables" />
  6748. <EntitySet Name="BemsPeakHistoryDaily" EntityType="Self.BemsPeakHistoryDaily" Schema="dbo" store:Type="Tables" />
  6749. <EntitySet Name="BemsPeakInfo" EntityType="Self.BemsPeakInfo" Schema="dbo" store:Type="Tables" />
  6750. <EntitySet Name="BemsPeopleIncrease" EntityType="Self.BemsPeopleIncrease" Schema="dbo" store:Type="Tables" />
  6751. <EntitySet Name="BemsPriceCode" EntityType="Self.BemsPriceCode" Schema="dbo" store:Type="Tables" />
  6752. <EntitySet Name="BemsPriceFormula" EntityType="Self.BemsPriceFormula" Schema="dbo" store:Type="Tables" />
  6753. <EntitySet Name="BemsPriceMeta" EntityType="Self.BemsPriceMeta" Schema="dbo" store:Type="Tables" />
  6754. <EntitySet Name="BemsPriceType" EntityType="Self.BemsPriceType" Schema="dbo" store:Type="Tables" />
  6755. <EntitySet Name="BemsRentalRate" EntityType="Self.BemsRentalRate" Schema="dbo" store:Type="Tables" />
  6756. <EntitySet Name="BemsReportFormat" EntityType="Self.BemsReportFormat" Schema="dbo" store:Type="Tables" />
  6757. <EntitySet Name="BemsReportHistory" EntityType="Self.BemsReportHistory" Schema="dbo" store:Type="Tables" />
  6758. <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" Schema="dbo" store:Type="Tables" />
  6759. <EntitySet Name="BemsSitePrice" EntityType="Self.BemsSitePrice" Schema="dbo" store:Type="Tables" />
  6760. <EntitySet Name="BemsSitePriceHistory" EntityType="Self.BemsSitePriceHistory" Schema="dbo" store:Type="Tables" />
  6761. <EntitySet Name="CmAlarmAdmin" EntityType="Self.CmAlarmAdmin" Schema="dbo" store:Type="Tables" />
  6762. <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" Schema="dbo" store:Type="Tables" />
  6763. <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" Schema="dbo" store:Type="Tables" />
  6764. <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" Schema="dbo" store:Type="Tables" />
  6765. <EntitySet Name="CmCompany" EntityType="Self.CmCompany" Schema="dbo" store:Type="Tables" />
  6766. <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" Schema="dbo" store:Type="Tables" />
  6767. <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" Schema="dbo" store:Type="Tables" />
  6768. <EntitySet Name="CmFacility" EntityType="Self.CmFacility" Schema="dbo" store:Type="Tables" />
  6769. <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" Schema="dbo" store:Type="Tables" />
  6770. <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" Schema="dbo" store:Type="Tables" />
  6771. <EntitySet Name="CmFile" EntityType="Self.CmFile" Schema="dbo" store:Type="Tables" />
  6772. <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" Schema="dbo" store:Type="Tables" />
  6773. <EntitySet Name="CmFloor" EntityType="Self.CmFloor" Schema="dbo" store:Type="Tables" />
  6774. <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" Schema="dbo" store:Type="Tables" />
  6775. <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" Schema="dbo" store:Type="Tables" />
  6776. <EntitySet Name="CmHolidayWeekend" EntityType="Self.CmHolidayWeekend" Schema="dbo" store:Type="Tables" />
  6777. <EntitySet Name="CmMenu" EntityType="Self.CmMenu" Schema="dbo" store:Type="Tables" />
  6778. <EntitySet Name="CmPartner" EntityType="Self.CmPartner" Schema="dbo" store:Type="Tables" />
  6779. <EntitySet Name="CmPartnerType" EntityType="Self.CmPartnerType" Schema="dbo" store:Type="Tables" />
  6780. <EntitySet Name="CmPatrolCourse" EntityType="Self.CmPatrolCourse" Schema="dbo" store:Type="Tables" />
  6781. <EntitySet Name="CmPatrolCoursePos" EntityType="Self.CmPatrolCoursePos" Schema="dbo" store:Type="Tables" />
  6782. <EntitySet Name="CmPatrolGroup" EntityType="Self.CmPatrolGroup" Schema="dbo" store:Type="Tables" />
  6783. <EntitySet Name="CmPatrolGroupUser" EntityType="Self.CmPatrolGroupUser" Schema="dbo" store:Type="Tables" />
  6784. <EntitySet Name="CmPatrolHistory" EntityType="Self.CmPatrolHistory" Schema="dbo" store:Type="Tables" />
  6785. <EntitySet Name="CmPatrolHistoryPos" EntityType="Self.CmPatrolHistoryPos" Schema="dbo" store:Type="Tables" />
  6786. <EntitySet Name="CmPatrolPlan" EntityType="Self.CmPatrolPlan" Schema="dbo" store:Type="Tables" />
  6787. <EntitySet Name="CmPatrolPos" EntityType="Self.CmPatrolPos" Schema="dbo" store:Type="Tables" />
  6788. <EntitySet Name="CmPatrolSchedule" EntityType="Self.CmPatrolSchedule" Schema="dbo" store:Type="Tables" />
  6789. <EntitySet Name="CmPatrolType" EntityType="Self.CmPatrolType" Schema="dbo" store:Type="Tables" />
  6790. <EntitySet Name="CmPosition" EntityType="Self.CmPosition" Schema="dbo" store:Type="Tables" />
  6791. <EntitySet Name="CmServiceEnergyCalcDay" EntityType="Self.CmServiceEnergyCalcDay" Schema="dbo" store:Type="Tables" />
  6792. <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="Self.CmServiceEnergyCalcMonth" Schema="dbo" store:Type="Tables" />
  6793. <EntitySet Name="CmSite" EntityType="Self.CmSite" Schema="dbo" store:Type="Tables" />
  6794. <EntitySet Name="CmUser" EntityType="Self.CmUser" Schema="dbo" store:Type="Tables" />
  6795. <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" Schema="dbo" store:Type="Tables" />
  6796. <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" Schema="dbo" store:Type="Tables" />
  6797. <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" Schema="dbo" store:Type="Tables" />
  6798. <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" Schema="dbo" store:Type="Tables" />
  6799. <EntitySet Name="CmZone" EntityType="Self.CmZone" Schema="dbo" store:Type="Tables" />
  6800. <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" Schema="dbo" store:Type="Tables" />
  6801. <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" Schema="dbo" store:Type="Tables" />
  6802. <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" Schema="dbo" store:Type="Tables" />
  6803. <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" Schema="dbo" store:Type="Tables" />
  6804. <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" Schema="dbo" store:Type="Tables" />
  6805. <EntitySet Name="FmsBudgetDetail" EntityType="Self.FmsBudgetDetail" Schema="dbo" store:Type="Tables" />
  6806. <EntitySet Name="FmsBudgetDetailExecution" EntityType="Self.FmsBudgetDetailExecution" Schema="dbo" store:Type="Tables" />
  6807. <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" Schema="dbo" store:Type="Tables" />
  6808. <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" Schema="dbo" store:Type="Tables" />
  6809. <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" Schema="dbo" store:Type="Tables" />
  6810. <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" Schema="dbo" store:Type="Tables" />
  6811. <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" Schema="dbo" store:Type="Tables" />
  6812. <EntitySet Name="FmsContract" EntityType="Self.FmsContract" Schema="dbo" store:Type="Tables" />
  6813. <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" Schema="dbo" store:Type="Tables" />
  6814. <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" Schema="dbo" store:Type="Tables" />
  6815. <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" Schema="dbo" store:Type="Tables" />
  6816. <EntitySet Name="FmsDailyCheckReport" EntityType="Self.FmsDailyCheckReport" Schema="dbo" store:Type="Tables" />
  6817. <EntitySet Name="FmsDailyReport" EntityType="Self.FmsDailyReport" Schema="dbo" store:Type="Tables" />
  6818. <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" Schema="dbo" store:Type="Tables" />
  6819. <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" Schema="dbo" store:Type="Tables" />
  6820. <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" Schema="dbo" store:Type="Tables" />
  6821. <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" Schema="dbo" store:Type="Tables" />
  6822. <EntitySet Name="FmsEquipment" EntityType="Self.FmsEquipment" Schema="dbo" store:Type="Tables" />
  6823. <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" Schema="dbo" store:Type="Tables" />
  6824. <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" Schema="dbo" store:Type="Tables" />
  6825. <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" Schema="dbo" store:Type="Tables" />
  6826. <EntitySet Name="FmsEquipmentRentInfo" EntityType="Self.FmsEquipmentRentInfo" Schema="dbo" store:Type="Tables" />
  6827. <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" Schema="dbo" store:Type="Tables" />
  6828. <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" Schema="dbo" store:Type="Tables" />
  6829. <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" Schema="dbo" store:Type="Tables" />
  6830. <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" Schema="dbo" store:Type="Tables" />
  6831. <EntitySet Name="FmsFacilityOperationReport" EntityType="Self.FmsFacilityOperationReport" Schema="dbo" store:Type="Tables" />
  6832. <EntitySet Name="FmsInvestmentCost" EntityType="Self.FmsInvestmentCost" Schema="dbo" store:Type="Tables" />
  6833. <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" Schema="dbo" store:Type="Tables" />
  6834. <EntitySet Name="FmsManual" EntityType="Self.FmsManual" Schema="dbo" store:Type="Tables" />
  6835. <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" Schema="dbo" store:Type="Tables" />
  6836. <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" Schema="dbo" store:Type="Tables" />
  6837. <EntitySet Name="FmsMaterial" EntityType="Self.FmsMaterial" Schema="dbo" store:Type="Tables" />
  6838. <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" Schema="dbo" store:Type="Tables" />
  6839. <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" Schema="dbo" store:Type="Tables" />
  6840. <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" Schema="dbo" store:Type="Tables" />
  6841. <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" Schema="dbo" store:Type="Tables" />
  6842. <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" Schema="dbo" store:Type="Tables" />
  6843. <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" Schema="dbo" store:Type="Tables" />
  6844. <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" Schema="dbo" store:Type="Tables" />
  6845. <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" Schema="dbo" store:Type="Tables" />
  6846. <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" Schema="dbo" store:Type="Tables" />
  6847. <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" Schema="dbo" store:Type="Tables" />
  6848. <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" Schema="dbo" store:Type="Tables" />
  6849. <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" Schema="dbo" store:Type="Tables" />
  6850. <EntitySet Name="FmsMaterialRelease" EntityType="Self.FmsMaterialRelease" Schema="dbo" store:Type="Tables" />
  6851. <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" Schema="dbo" store:Type="Tables" />
  6852. <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" Schema="dbo" store:Type="Tables" />
  6853. <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" Schema="dbo" store:Type="Tables" />
  6854. <EntitySet Name="FmsMonthlyReport" EntityType="Self.FmsMonthlyReport" Schema="dbo" store:Type="Tables" />
  6855. <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" Schema="dbo" store:Type="Tables" />
  6856. <EntitySet Name="FmsReport" EntityType="Self.FmsReport" Schema="dbo" store:Type="Tables" />
  6857. <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" Schema="dbo" store:Type="Tables" />
  6858. <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" Schema="dbo" store:Type="Tables" />
  6859. <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" Schema="dbo" store:Type="Tables" />
  6860. <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" Schema="dbo" store:Type="Tables" />
  6861. <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" Schema="dbo" store:Type="Tables" />
  6862. <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" Schema="dbo" store:Type="Tables" />
  6863. <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" Schema="dbo" store:Type="Tables" />
  6864. <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" Schema="dbo" store:Type="Tables" />
  6865. <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" Schema="dbo" store:Type="Tables" />
  6866. <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" Schema="dbo" store:Type="Tables" />
  6867. <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" Schema="dbo" store:Type="Tables" />
  6868. <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" Schema="dbo" store:Type="Tables" />
  6869. <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" Schema="dbo" store:Type="Tables" />
  6870. <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" Schema="dbo" store:Type="Tables" />
  6871. <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" Schema="dbo" store:Type="Tables" />
  6872. <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" Schema="dbo" store:Type="Tables" />
  6873. <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" Schema="dbo" store:Type="Tables" />
  6874. <EntitySet Name="FmsWorkSchedule" EntityType="Self.FmsWorkSchedule" Schema="dbo" store:Type="Tables" />
  6875. <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" Schema="dbo" store:Type="Tables" />
  6876. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  6877. <EntitySet Name="WeatherDongNaeForecast" EntityType="Self.WeatherDongNaeForecast" Schema="dbo" store:Type="Tables" />
  6878. <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="Self.FK__BemsEnerg__SiteI__7954A4F6">
  6879. <End Role="CmSite" EntitySet="CmSite" />
  6880. <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
  6881. </AssociationSet>
  6882. <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="Self.FK__BemsEnerg__SiteI__7C3111A1">
  6883. <End Role="CmSite" EntitySet="CmSite" />
  6884. <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
  6885. </AssociationSet>
  6886. <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="Self.FK__BemsEnergyDaily__BemsFuelType">
  6887. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6888. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6889. </AssociationSet>
  6890. <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="Self.FK__BemsEnergyDaily__BemsServiceType">
  6891. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6892. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6893. </AssociationSet>
  6894. <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="Self.FK__BemsEnergyDaily__CmBuilding">
  6895. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6896. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6897. </AssociationSet>
  6898. <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="Self.FK__BemsFactorCo2__BemsFuelType">
  6899. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6900. <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
  6901. </AssociationSet>
  6902. <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="Self.FK__BemsFactorToe__BemsFuelType">
  6903. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6904. <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
  6905. </AssociationSet>
  6906. <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
  6907. <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
  6908. <End Role="BemsFormula" EntitySet="BemsFormula" />
  6909. </AssociationSet>
  6910. <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
  6911. <End Role="BemsFormula" EntitySet="BemsFormula" />
  6912. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  6913. </AssociationSet>
  6914. <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
  6915. <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
  6916. <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
  6917. </AssociationSet>
  6918. <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
  6919. <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
  6920. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6921. </AssociationSet>
  6922. <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
  6923. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6924. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6925. </AssociationSet>
  6926. <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="Self.FK__BemsMonitoringPoint__BemsFuelType">
  6927. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6928. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6929. </AssociationSet>
  6930. <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
  6931. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6932. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6933. </AssociationSet>
  6934. <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
  6935. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6936. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6937. </AssociationSet>
  6938. <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
  6939. <End Role="CmFloor" EntitySet="CmFloor" />
  6940. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6941. </AssociationSet>
  6942. <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
  6943. <End Role="CmZone" EntitySet="CmZone" />
  6944. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6945. </AssociationSet>
  6946. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
  6947. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6948. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6949. </AssociationSet>
  6950. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFuelType">
  6951. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6952. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6953. </AssociationSet>
  6954. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
  6955. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6956. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6957. </AssociationSet>
  6958. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  6959. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6960. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  6961. </AssociationSet>
  6962. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  6963. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6964. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  6965. </AssociationSet>
  6966. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  6967. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6968. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  6969. </AssociationSet>
  6970. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  6971. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6972. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  6973. </AssociationSet>
  6974. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  6975. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6976. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  6977. </AssociationSet>
  6978. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  6979. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6980. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  6981. </AssociationSet>
  6982. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  6983. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6984. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  6985. </AssociationSet>
  6986. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  6987. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6988. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  6989. </AssociationSet>
  6990. <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  6991. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6992. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6993. </AssociationSet>
  6994. <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="Self.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  6995. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  6996. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  6997. </AssociationSet>
  6998. <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="Self.FK__BemsNoticePriceContractType__BemsFuelType">
  6999. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7000. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  7001. </AssociationSet>
  7002. <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="Self.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  7003. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  7004. <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
  7005. </AssociationSet>
  7006. <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
  7007. <End Role="CmCompanyType" EntitySet="CmCompanyType" />
  7008. <End Role="CmCompany" EntitySet="CmCompany" />
  7009. </AssociationSet>
  7010. <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="Self.FK__CmCompany__SiteI__336AA144">
  7011. <End Role="CmSite" EntitySet="CmSite" />
  7012. <End Role="CmCompany" EntitySet="CmCompany" />
  7013. </AssociationSet>
  7014. <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
  7015. <End Role="CmCompany" EntitySet="CmCompany" />
  7016. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7017. </AssociationSet>
  7018. <AssociationSet Name="FK__CmFacility__CmFacility" Association="Self.FK__CmFacility__CmFacility">
  7019. <End Role="CmFacility" EntitySet="CmFacility" />
  7020. <End Role="CmFacility1" EntitySet="CmFacility" />
  7021. </AssociationSet>
  7022. <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="Self.FK__CmFacilityFile__7720AD13">
  7023. <End Role="CmFacility" EntitySet="CmFacility" />
  7024. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  7025. </AssociationSet>
  7026. <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
  7027. <End Role="CmFile" EntitySet="CmFile" />
  7028. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  7029. </AssociationSet>
  7030. <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="Self.FK__CmFacilityManual__79FD19BE">
  7031. <End Role="CmFacility" EntitySet="CmFacility" />
  7032. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  7033. </AssociationSet>
  7034. <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
  7035. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7036. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  7037. </AssociationSet>
  7038. <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
  7039. <End Role="CmFileCategory" EntitySet="CmFileCategory" />
  7040. <End Role="CmFile" EntitySet="CmFile" />
  7041. </AssociationSet>
  7042. <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="Self.FK__CmFile__SiteId__2759D01A">
  7043. <End Role="CmSite" EntitySet="CmSite" />
  7044. <End Role="CmFile" EntitySet="CmFile" />
  7045. </AssociationSet>
  7046. <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
  7047. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7048. <End Role="CmFloor" EntitySet="CmFloor" />
  7049. </AssociationSet>
  7050. <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="Self.FK__CmHoliday__SiteI__0BB1B5A5">
  7051. <End Role="CmSite" EntitySet="CmSite" />
  7052. <End Role="CmHoliday" EntitySet="CmHoliday" />
  7053. </AssociationSet>
  7054. <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="Self.FK__CmHoliday__SiteI__0D99FE17">
  7055. <End Role="CmSite" EntitySet="CmSite" />
  7056. <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
  7057. </AssociationSet>
  7058. <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="Self.FK__CmHoliday__SiteI__10766AC2">
  7059. <End Role="CmSite" EntitySet="CmSite" />
  7060. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  7061. </AssociationSet>
  7062. <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="Self.FK__CmHoliday__SiteI__65AC084E">
  7063. <End Role="CmSite" EntitySet="CmSite" />
  7064. <End Role="CmHoliday" EntitySet="CmHoliday" />
  7065. </AssociationSet>
  7066. <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="Self.FK__CmHoliday__SiteI__66A02C87">
  7067. <End Role="CmSite" EntitySet="CmSite" />
  7068. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  7069. </AssociationSet>
  7070. <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
  7071. <End Role="CmFloor" EntitySet="CmFloor" />
  7072. <End Role="CmZone" EntitySet="CmZone" />
  7073. </AssociationSet>
  7074. <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="Self.FK__CmPositio__SiteI__6A70BD6B">
  7075. <End Role="CmSite" EntitySet="CmSite" />
  7076. <End Role="CmPosition" EntitySet="CmPosition" />
  7077. </AssociationSet>
  7078. <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="Self.FK__CmUserGro__SiteI__53D770D6">
  7079. <End Role="CmSite" EntitySet="CmSite" />
  7080. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7081. </AssociationSet>
  7082. <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
  7083. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7084. <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
  7085. </AssociationSet>
  7086. <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="Self.FK__CmUserPos__SiteI__44952D46">
  7087. <End Role="CmSite" EntitySet="CmSite" />
  7088. <End Role="CmPosition" EntitySet="CmPosition" />
  7089. </AssociationSet>
  7090. <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
  7091. <End Role="CmUser" EntitySet="CmUser" />
  7092. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  7093. </AssociationSet>
  7094. <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
  7095. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7096. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  7097. </AssociationSet>
  7098. <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
  7099. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7100. <End Role="CmZone" EntitySet="CmZone" />
  7101. </AssociationSet>
  7102. <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="Self.FK__FmsDrawin__SiteI__6B79F03D">
  7103. <End Role="CmSite" EntitySet="CmSite" />
  7104. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7105. </AssociationSet>
  7106. <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="Self.FK__FmsDrawin__SiteI__6C6E1476">
  7107. <End Role="CmSite" EntitySet="CmSite" />
  7108. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7109. </AssociationSet>
  7110. <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="Self.FK__FmsDrawin__SiteI__6D6238AF">
  7111. <End Role="CmSite" EntitySet="CmSite" />
  7112. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7113. </AssociationSet>
  7114. <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="Self.FK__FmsDrawin__SiteI__6F357288">
  7115. <End Role="CmSite" EntitySet="CmSite" />
  7116. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7117. </AssociationSet>
  7118. <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="Self.FK__FmsDrawin__SiteI__702996C1">
  7119. <End Role="CmSite" EntitySet="CmSite" />
  7120. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7121. </AssociationSet>
  7122. <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
  7123. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7124. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7125. </AssociationSet>
  7126. <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
  7127. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7128. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7129. </AssociationSet>
  7130. <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
  7131. <End Role="CmFile" EntitySet="CmFile" />
  7132. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7133. </AssociationSet>
  7134. <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
  7135. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7136. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7137. </AssociationSet>
  7138. <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
  7139. <End Role="CmUser" EntitySet="CmUser" />
  7140. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7141. </AssociationSet>
  7142. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  7143. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7144. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7145. </AssociationSet>
  7146. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  7147. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7148. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7149. </AssociationSet>
  7150. <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="Self.FK__FmsFacilityCodeClass__CmSite">
  7151. <End Role="CmSite" EntitySet="CmSite" />
  7152. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  7153. </AssociationSet>
  7154. <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  7155. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  7156. <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
  7157. </AssociationSet>
  7158. <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="Self.FK__FmsFacilityOpera__725BF7F6">
  7159. <End Role="CmFacility" EntitySet="CmFacility" />
  7160. <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
  7161. </AssociationSet>
  7162. <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
  7163. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7164. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7165. </AssociationSet>
  7166. <AssociationSet Name="FK__FmsLicense__CmSite" Association="Self.FK__FmsLicense__CmSite">
  7167. <End Role="CmSite" EntitySet="CmSite" />
  7168. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7169. </AssociationSet>
  7170. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  7171. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7172. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7173. </AssociationSet>
  7174. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  7175. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7176. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7177. </AssociationSet>
  7178. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  7179. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7180. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7181. </AssociationSet>
  7182. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
  7183. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7184. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  7185. </AssociationSet>
  7186. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="Self.FK__FmsMaterialCarriedForward__CmSite">
  7187. <End Role="CmSite" EntitySet="CmSite" />
  7188. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  7189. </AssociationSet>
  7190. <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="Self.FK__FmsMaterialCodeClass__CmSite">
  7191. <End Role="CmSite" EntitySet="CmSite" />
  7192. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7193. </AssociationSet>
  7194. <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  7195. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7196. <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
  7197. </AssociationSet>
  7198. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
  7199. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7200. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7201. </AssociationSet>
  7202. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="Self.FK__FmsMaterialCodeLocation__CmSite">
  7203. <End Role="CmSite" EntitySet="CmSite" />
  7204. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7205. </AssociationSet>
  7206. <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="Self.FK__FmsMaterialCodeType__CmSite">
  7207. <End Role="CmSite" EntitySet="CmSite" />
  7208. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  7209. </AssociationSet>
  7210. <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
  7211. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7212. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7213. </AssociationSet>
  7214. <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="Self.FK__FmsMaterialOrder__CmSite">
  7215. <End Role="CmSite" EntitySet="CmSite" />
  7216. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7217. </AssociationSet>
  7218. <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
  7219. <End Role="CmUser" EntitySet="CmUser" />
  7220. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7221. </AssociationSet>
  7222. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
  7223. <End Role="CmFile" EntitySet="CmFile" />
  7224. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7225. </AssociationSet>
  7226. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  7227. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7228. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7229. </AssociationSet>
  7230. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  7231. <End Role="CmUser" EntitySet="CmUser" />
  7232. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7233. </AssociationSet>
  7234. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  7235. <End Role="CmUser" EntitySet="CmUser" />
  7236. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7237. </AssociationSet>
  7238. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
  7239. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7240. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7241. </AssociationSet>
  7242. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="Self.FK__FmsMaterialPurchasingRequest__CmSite">
  7243. <End Role="CmSite" EntitySet="CmSite" />
  7244. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7245. </AssociationSet>
  7246. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  7247. <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
  7248. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7249. </AssociationSet>
  7250. <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
  7251. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7252. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7253. </AssociationSet>
  7254. <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="Self.FK__FmsMaterialStored__CmSite">
  7255. <End Role="CmSite" EntitySet="CmSite" />
  7256. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7257. </AssociationSet>
  7258. <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
  7259. <End Role="CmUser" EntitySet="CmUser" />
  7260. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7261. </AssociationSet>
  7262. <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  7263. <End Role="CmUser" EntitySet="CmUser" />
  7264. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7265. </AssociationSet>
  7266. <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="Self.FK__FmsMaterialTradeCompany__CmSite">
  7267. <End Role="CmSite" EntitySet="CmSite" />
  7268. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7269. </AssociationSet>
  7270. <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
  7271. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7272. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7273. </AssociationSet>
  7274. <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="Self.FK__FmsMaterialWarehouse__CmSite">
  7275. <End Role="CmSite" EntitySet="CmSite" />
  7276. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7277. </AssociationSet>
  7278. <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="Self.FK__FmsWorkCodeCauseClass__CmSite">
  7279. <End Role="CmSite" EntitySet="CmSite" />
  7280. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  7281. </AssociationSet>
  7282. <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="Self.FK__FmsWorkCodeCycleUnit__CmSite">
  7283. <End Role="CmSite" EntitySet="CmSite" />
  7284. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7285. </AssociationSet>
  7286. <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="Self.FK__FmsWorkCodeEmergency__CmSite">
  7287. <End Role="CmSite" EntitySet="CmSite" />
  7288. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  7289. </AssociationSet>
  7290. <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="Self.FK__FmsWorkCodeHolidayWorkType__CmSite">
  7291. <End Role="CmSite" EntitySet="CmSite" />
  7292. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  7293. </AssociationSet>
  7294. <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="Self.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  7295. <End Role="CmSite" EntitySet="CmSite" />
  7296. <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
  7297. </AssociationSet>
  7298. <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
  7299. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7300. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7301. </AssociationSet>
  7302. <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="Self.FK__FmsWorkOrder__CmSite">
  7303. <End Role="CmSite" EntitySet="CmSite" />
  7304. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7305. </AssociationSet>
  7306. <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
  7307. <End Role="CmUser" EntitySet="CmUser" />
  7308. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7309. </AssociationSet>
  7310. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
  7311. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  7312. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7313. </AssociationSet>
  7314. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
  7315. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7316. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7317. </AssociationSet>
  7318. <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
  7319. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7320. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  7321. </AssociationSet>
  7322. <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
  7323. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7324. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7325. </AssociationSet>
  7326. <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="Self.FK__FmsWorkRequest__CmSite">
  7327. <End Role="CmSite" EntitySet="CmSite" />
  7328. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7329. </AssociationSet>
  7330. <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
  7331. <End Role="CmUser" EntitySet="CmUser" />
  7332. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7333. </AssociationSet>
  7334. <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  7335. <End Role="CmUser" EntitySet="CmUser" />
  7336. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7337. </AssociationSet>
  7338. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
  7339. <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
  7340. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7341. </AssociationSet>
  7342. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
  7343. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7344. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7345. </AssociationSet>
  7346. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="Self.FK__FmsWorkRequest__FmsWorkSchedule">
  7347. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7348. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7349. </AssociationSet>
  7350. <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
  7351. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7352. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  7353. </AssociationSet>
  7354. <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
  7355. <End Role="CmUser" EntitySet="CmUser" />
  7356. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7357. </AssociationSet>
  7358. <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  7359. <End Role="CmUser" EntitySet="CmUser" />
  7360. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7361. </AssociationSet>
  7362. <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
  7363. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  7364. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7365. </AssociationSet>
  7366. <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
  7367. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7368. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7369. </AssociationSet>
  7370. <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
  7371. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7372. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7373. </AssociationSet>
  7374. <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="Self.FK__FmsWorkResultCheckItem__CmFacility">
  7375. <End Role="CmFacility" EntitySet="CmFacility" />
  7376. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7377. </AssociationSet>
  7378. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  7379. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7380. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7381. </AssociationSet>
  7382. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
  7383. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7384. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7385. </AssociationSet>
  7386. <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
  7387. <End Role="CmFile" EntitySet="CmFile" />
  7388. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  7389. </AssociationSet>
  7390. <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
  7391. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7392. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  7393. </AssociationSet>
  7394. <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
  7395. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7396. <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
  7397. </AssociationSet>
  7398. <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="Self.FK__FmsWorkResultToFacility__CmFacility">
  7399. <End Role="CmFacility" EntitySet="CmFacility" />
  7400. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  7401. </AssociationSet>
  7402. <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
  7403. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7404. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  7405. </AssociationSet>
  7406. <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="Self.FK__FmsWorkSchedule__CmBusinessField">
  7407. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7408. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7409. </AssociationSet>
  7410. <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="Self.FK__FmsWorkSchedule__CmUser">
  7411. <End Role="CmUser" EntitySet="CmUser" />
  7412. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7413. </AssociationSet>
  7414. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  7415. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7416. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7417. </AssociationSet>
  7418. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  7419. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  7420. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7421. </AssociationSet>
  7422. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  7423. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7424. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7425. </AssociationSet>
  7426. <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  7427. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7428. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  7429. </AssociationSet>
  7430. <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="Self.FK_BemsAlarmLog_BemsAlarmSetting">
  7431. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7432. <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
  7433. </AssociationSet>
  7434. <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="Self.FK_BemsAlarmSetting_BemsFacilityType">
  7435. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7436. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7437. </AssociationSet>
  7438. <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="Self.FK_BemsAlarmSetting_CmFacility">
  7439. <End Role="CmFacility" EntitySet="CmFacility" />
  7440. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7441. </AssociationSet>
  7442. <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="Self.FK_BemsAlarmSetting_CmSite1">
  7443. <End Role="CmSite" EntitySet="CmSite" />
  7444. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7445. </AssociationSet>
  7446. <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="Self.FK_BemsChartInfo_BemsFacilityType">
  7447. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7448. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  7449. </AssociationSet>
  7450. <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="Self.FK_BemsChartInfo_CmSite">
  7451. <End Role="CmSite" EntitySet="CmSite" />
  7452. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  7453. </AssociationSet>
  7454. <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
  7455. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7456. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  7457. </AssociationSet>
  7458. <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
  7459. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7460. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  7461. </AssociationSet>
  7462. <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="Self.FK_BemsEnergyCost_CmFacility">
  7463. <End Role="CmFacility" EntitySet="CmFacility" />
  7464. <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
  7465. </AssociationSet>
  7466. <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="Self.FK_BemsEnergyDailyRegression_CmSite">
  7467. <End Role="CmSite" EntitySet="CmSite" />
  7468. <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
  7469. </AssociationSet>
  7470. <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="Self.FK_BemsFormulaParameter_CmFacility">
  7471. <End Role="CmFacility" EntitySet="CmFacility" />
  7472. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  7473. </AssociationSet>
  7474. <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
  7475. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7476. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7477. </AssociationSet>
  7478. <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="Self.FK_BemsMonitoringPoint_CmFacility">
  7479. <End Role="CmFacility" EntitySet="CmFacility" />
  7480. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7481. </AssociationSet>
  7482. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="Self.FK_BemsMonitoringPointConfig_BemsFacilityType1">
  7483. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7484. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  7485. </AssociationSet>
  7486. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="Self.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  7487. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7488. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  7489. </AssociationSet>
  7490. <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="Self.FK_BemsPeakFacility_CmFacility">
  7491. <End Role="CmFacility" EntitySet="CmFacility" />
  7492. <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
  7493. </AssociationSet>
  7494. <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="Self.FK_BemsPeakHIstory_CmSite">
  7495. <End Role="CmSite" EntitySet="CmSite" />
  7496. <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
  7497. </AssociationSet>
  7498. <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="Self.FK_BemsPeakInfo_CmSite">
  7499. <End Role="CmSite" EntitySet="CmSite" />
  7500. <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
  7501. </AssociationSet>
  7502. <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="Self.FK_BemsPeopleIncrease_CmSite">
  7503. <End Role="CmSite" EntitySet="CmSite" />
  7504. <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
  7505. </AssociationSet>
  7506. <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="Self.FK_BemsPriceCode_BemsFuelType">
  7507. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7508. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7509. </AssociationSet>
  7510. <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="Self.FK_BemsPriceFormula_BemsFormula">
  7511. <End Role="BemsFormula" EntitySet="BemsFormula" />
  7512. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  7513. </AssociationSet>
  7514. <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="Self.FK_BemsPriceFormula_BemsPriceType">
  7515. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7516. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  7517. </AssociationSet>
  7518. <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="Self.FK_BemsPriceMeta_BemsPriceType">
  7519. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7520. <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
  7521. </AssociationSet>
  7522. <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="Self.FK_BemsPriceType_BemsFuelType1">
  7523. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7524. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7525. </AssociationSet>
  7526. <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="Self.FK_BemsRentalRate_CmSite">
  7527. <End Role="CmSite" EntitySet="CmSite" />
  7528. <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
  7529. </AssociationSet>
  7530. <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="Self.FK_BemsSitePrice_BemsFuelType">
  7531. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7532. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7533. </AssociationSet>
  7534. <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="Self.FK_BemsSitePrice_BemsPriceCode">
  7535. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7536. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7537. </AssociationSet>
  7538. <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="Self.FK_BemsSitePrice_BemsPriceType">
  7539. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7540. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7541. </AssociationSet>
  7542. <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="Self.FK_BemsSitePrice_CmSite1">
  7543. <End Role="CmSite" EntitySet="CmSite" />
  7544. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7545. </AssociationSet>
  7546. <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="Self.FK_BemsSitePriceHistory_BemsFuelType">
  7547. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7548. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7549. </AssociationSet>
  7550. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="Self.FK_BemsSitePriceHistory_BemsPriceCode">
  7551. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7552. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7553. </AssociationSet>
  7554. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="Self.FK_BemsSitePriceHistory_BemsPriceType">
  7555. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7556. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7557. </AssociationSet>
  7558. <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="Self.FK_BemsSitePriceHistory_CmSite">
  7559. <End Role="CmSite" EntitySet="CmSite" />
  7560. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7561. </AssociationSet>
  7562. <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
  7563. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7564. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7565. </AssociationSet>
  7566. <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
  7567. <End Role="CmFile" EntitySet="CmFile" />
  7568. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7569. </AssociationSet>
  7570. <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
  7571. <End Role="CmUser" EntitySet="CmUser" />
  7572. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7573. </AssociationSet>
  7574. <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="Self.FK_CmFacilityTempSet_CmFacility">
  7575. <End Role="CmFacility" EntitySet="CmFacility" />
  7576. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  7577. </AssociationSet>
  7578. <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="Self.FK_CmFacilityTempSet_CmSite">
  7579. <End Role="CmSite" EntitySet="CmSite" />
  7580. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  7581. </AssociationSet>
  7582. <AssociationSet Name="FK_CmMenu_CmSite" Association="Self.FK_CmMenu_CmSite">
  7583. <End Role="CmSite" EntitySet="CmSite" />
  7584. <End Role="CmMenu" EntitySet="CmMenu" />
  7585. </AssociationSet>
  7586. <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="Self.FK_CmPartnerType_CmPartner">
  7587. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  7588. <End Role="CmPartner" EntitySet="CmPartner" />
  7589. </AssociationSet>
  7590. <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="Self.FK_CmPatrolCourse_CmSite">
  7591. <End Role="CmSite" EntitySet="CmSite" />
  7592. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7593. </AssociationSet>
  7594. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="Self.FK_CmPatrolCoursePos_CmPatrolCourse">
  7595. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7596. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  7597. </AssociationSet>
  7598. <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="Self.FK_CmPatrolCoursePos_CmSite">
  7599. <End Role="CmSite" EntitySet="CmSite" />
  7600. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  7601. </AssociationSet>
  7602. <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="Self.FK_CmPatrolGroup_CmSite">
  7603. <End Role="CmSite" EntitySet="CmSite" />
  7604. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7605. </AssociationSet>
  7606. <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="Self.FK_CmPatrolGroupUser_CmPatrolGroup">
  7607. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7608. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  7609. </AssociationSet>
  7610. <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="Self.FK_CmPatrolGroupUser_CmUser">
  7611. <End Role="CmUser" EntitySet="CmUser" />
  7612. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  7613. </AssociationSet>
  7614. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="Self.FK_CmPatrolHistory_CmPatrolSchedule">
  7615. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7616. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7617. </AssociationSet>
  7618. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="Self.FK_CmPatrolHistory_CmPatrolType">
  7619. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7620. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7621. </AssociationSet>
  7622. <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="Self.FK_CmPatrolHistory_CmSite">
  7623. <End Role="CmSite" EntitySet="CmSite" />
  7624. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7625. </AssociationSet>
  7626. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="Self.FK_CmPatrolHistoryPos_CmPatrolPos">
  7627. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7628. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7629. </AssociationSet>
  7630. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="Self.FK_CmPatrolHistoryPos_CmPatrolType">
  7631. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7632. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7633. </AssociationSet>
  7634. <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="Self.FK_CmPatrolHistoryPos_CmSite">
  7635. <End Role="CmSite" EntitySet="CmSite" />
  7636. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7637. </AssociationSet>
  7638. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="Self.FK_CmPatrolPlan_CmPatrolCourse">
  7639. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7640. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7641. </AssociationSet>
  7642. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="Self.FK_CmPatrolPlan_CmPatrolGroup">
  7643. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7644. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7645. </AssociationSet>
  7646. <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="Self.FK_CmPatrolPlan_CmSite">
  7647. <End Role="CmSite" EntitySet="CmSite" />
  7648. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7649. </AssociationSet>
  7650. <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="Self.FK_CmPatrolPos_CmBuilding">
  7651. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7652. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7653. </AssociationSet>
  7654. <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="Self.FK_CmPatrolPos_CmFloor">
  7655. <End Role="CmFloor" EntitySet="CmFloor" />
  7656. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7657. </AssociationSet>
  7658. <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="Self.FK_CmPatrolPos_CmSite">
  7659. <End Role="CmSite" EntitySet="CmSite" />
  7660. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7661. </AssociationSet>
  7662. <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="Self.FK_CmPatrolSchedule_CmPatrolPlan">
  7663. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7664. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7665. </AssociationSet>
  7666. <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="Self.FK_CmPatrolSchedule_CmSite">
  7667. <End Role="CmSite" EntitySet="CmSite" />
  7668. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7669. </AssociationSet>
  7670. <AssociationSet Name="FK_CmPatrolType_CmSite" Association="Self.FK_CmPatrolType_CmSite">
  7671. <End Role="CmSite" EntitySet="CmSite" />
  7672. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7673. </AssociationSet>
  7674. <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
  7675. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7676. <End Role="CmUser" EntitySet="CmUser" />
  7677. </AssociationSet>
  7678. <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
  7679. <End Role="CmCompany" EntitySet="CmCompany" />
  7680. <End Role="CmUser" EntitySet="CmUser" />
  7681. </AssociationSet>
  7682. <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
  7683. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7684. <End Role="CmUser" EntitySet="CmUser" />
  7685. </AssociationSet>
  7686. <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
  7687. <End Role="CmPosition" EntitySet="CmPosition" />
  7688. <End Role="CmUser" EntitySet="CmUser" />
  7689. </AssociationSet>
  7690. <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
  7691. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7692. <End Role="CmUser" EntitySet="CmUser" />
  7693. </AssociationSet>
  7694. <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
  7695. <End Role="CmUser" EntitySet="CmUser" />
  7696. <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
  7697. </AssociationSet>
  7698. <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
  7699. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7700. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7701. </AssociationSet>
  7702. <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
  7703. <End Role="CmFloor" EntitySet="CmFloor" />
  7704. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7705. </AssociationSet>
  7706. <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="Self.FK_CmZoneTempHumiSet_CmSite">
  7707. <End Role="CmSite" EntitySet="CmSite" />
  7708. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7709. </AssociationSet>
  7710. <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
  7711. <End Role="CmZone" EntitySet="CmZone" />
  7712. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7713. </AssociationSet>
  7714. <AssociationSet Name="FK_FmsAccident_CmCompany" Association="Self.FK_FmsAccident_CmCompany">
  7715. <End Role="CmCompany" EntitySet="CmCompany" />
  7716. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7717. </AssociationSet>
  7718. <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
  7719. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7720. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7721. </AssociationSet>
  7722. <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
  7723. <End Role="CmFile" EntitySet="CmFile" />
  7724. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7725. </AssociationSet>
  7726. <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
  7727. <End Role="CmFile" EntitySet="CmFile" />
  7728. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7729. </AssociationSet>
  7730. <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
  7731. <End Role="CmFile" EntitySet="CmFile" />
  7732. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7733. </AssociationSet>
  7734. <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
  7735. <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
  7736. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7737. </AssociationSet>
  7738. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="Self.FK_FmsBudgetDetail_FmsBudget">
  7739. <End Role="FmsBudget" EntitySet="FmsBudget" />
  7740. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7741. </AssociationSet>
  7742. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="Self.FK_FmsBudgetDetail_FmsBudgetCodeClass">
  7743. <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
  7744. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7745. </AssociationSet>
  7746. <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="Self.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  7747. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7748. <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
  7749. </AssociationSet>
  7750. <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
  7751. <End Role="CmFile" EntitySet="CmFile" />
  7752. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7753. </AssociationSet>
  7754. <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
  7755. <End Role="CmFile" EntitySet="CmFile" />
  7756. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7757. </AssociationSet>
  7758. <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
  7759. <End Role="CmFile" EntitySet="CmFile" />
  7760. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7761. </AssociationSet>
  7762. <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="Self.FK_FmsConstruction_CmPartner">
  7763. <End Role="CmPartner" EntitySet="CmPartner" />
  7764. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7765. </AssociationSet>
  7766. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
  7767. <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
  7768. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7769. </AssociationSet>
  7770. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
  7771. <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
  7772. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7773. </AssociationSet>
  7774. <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
  7775. <End Role="CmUser" EntitySet="CmUser" />
  7776. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  7777. </AssociationSet>
  7778. <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
  7779. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7780. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  7781. </AssociationSet>
  7782. <AssociationSet Name="FK_FmsContract_CmPartner" Association="Self.FK_FmsContract_CmPartner">
  7783. <End Role="CmPartner" EntitySet="CmPartner" />
  7784. <End Role="FmsContract" EntitySet="FmsContract" />
  7785. </AssociationSet>
  7786. <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="Self.FK_FmsContract_CmPartnerType">
  7787. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  7788. <End Role="FmsContract" EntitySet="FmsContract" />
  7789. </AssociationSet>
  7790. <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="Self.FK_FmsContract_FmsContractClass">
  7791. <End Role="FmsContractClass" EntitySet="FmsContractClass" />
  7792. <End Role="FmsContract" EntitySet="FmsContract" />
  7793. </AssociationSet>
  7794. <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="Self.FK_FmsContract_FmsContractMethod">
  7795. <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
  7796. <End Role="FmsContract" EntitySet="FmsContract" />
  7797. </AssociationSet>
  7798. <AssociationSet Name="FK_FmsContract_FmsContractType" Association="Self.FK_FmsContract_FmsContractType">
  7799. <End Role="FmsContractType" EntitySet="FmsContractType" />
  7800. <End Role="FmsContract" EntitySet="FmsContract" />
  7801. </AssociationSet>
  7802. <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="Self.FK_FmsContract_FmsPaymentType">
  7803. <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
  7804. <End Role="FmsContract" EntitySet="FmsContract" />
  7805. </AssociationSet>
  7806. <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="Self.FK_FmsDailyCheckReport_CmUser">
  7807. <End Role="CmUser" EntitySet="CmUser" />
  7808. <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
  7809. </AssociationSet>
  7810. <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="Self.FK_FmsDailyReport_CmBusinessField">
  7811. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7812. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  7813. </AssociationSet>
  7814. <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="Self.FK_FmsDailyReport_CmUser">
  7815. <End Role="CmUser" EntitySet="CmUser" />
  7816. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  7817. </AssociationSet>
  7818. <AssociationSet Name="FK_FmsEquipment_CmUser" Association="Self.FK_FmsEquipment_CmUser">
  7819. <End Role="CmUser" EntitySet="CmUser" />
  7820. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7821. </AssociationSet>
  7822. <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="Self.FK_FmsEquipment_FmsEquipmentCodeType">
  7823. <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
  7824. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7825. </AssociationSet>
  7826. <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="Self.FK_FmsEquipment_FmsMaterialWarehouse">
  7827. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7828. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7829. </AssociationSet>
  7830. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="Self.FK_FmsEquipmentHistory_FmsEquipment">
  7831. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7832. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7833. </AssociationSet>
  7834. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  7835. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  7836. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7837. </AssociationSet>
  7838. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  7839. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7840. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7841. </AssociationSet>
  7842. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="Self.FK_FmsEquipmentRentInfo_CmUser">
  7843. <End Role="CmUser" EntitySet="CmUser" />
  7844. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7845. </AssociationSet>
  7846. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="Self.FK_FmsEquipmentRentInfo_CmUser1">
  7847. <End Role="CmUser" EntitySet="CmUser" />
  7848. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7849. </AssociationSet>
  7850. <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  7851. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  7852. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7853. </AssociationSet>
  7854. <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="Self.FK_FmsFacilityOperationReport_CmUser">
  7855. <End Role="CmUser" EntitySet="CmUser" />
  7856. <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
  7857. </AssociationSet>
  7858. <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
  7859. <End Role="FmsManualType" EntitySet="FmsManualType" />
  7860. <End Role="FmsManual" EntitySet="FmsManual" />
  7861. </AssociationSet>
  7862. <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
  7863. <End Role="CmFile" EntitySet="CmFile" />
  7864. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7865. </AssociationSet>
  7866. <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
  7867. <End Role="CmUser" EntitySet="CmUser" />
  7868. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7869. </AssociationSet>
  7870. <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
  7871. <End Role="FmsManual" EntitySet="FmsManual" />
  7872. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7873. </AssociationSet>
  7874. <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="Self.FK_FmsMaterial_CmBusinessField">
  7875. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7876. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7877. </AssociationSet>
  7878. <AssociationSet Name="FK_FmsMaterial_CmFile" Association="Self.FK_FmsMaterial_CmFile">
  7879. <End Role="CmFile" EntitySet="CmFile" />
  7880. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7881. </AssociationSet>
  7882. <AssociationSet Name="FK_FmsMaterial_CmSite" Association="Self.FK_FmsMaterial_CmSite">
  7883. <End Role="CmSite" EntitySet="CmSite" />
  7884. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7885. </AssociationSet>
  7886. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="Self.FK_FmsMaterial_FmsMaterialCodeLocation">
  7887. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7888. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7889. </AssociationSet>
  7890. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="Self.FK_FmsMaterial_FmsMaterialCodeType">
  7891. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  7892. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7893. </AssociationSet>
  7894. <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="Self.FK_FmsMaterial_FmsMaterialTradeCompany">
  7895. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7896. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7897. </AssociationSet>
  7898. <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="Self.FK_FmsMaterial_FmsMaterialWarehouse">
  7899. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7900. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7901. </AssociationSet>
  7902. <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  7903. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7904. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7905. </AssociationSet>
  7906. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  7907. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7908. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  7909. </AssociationSet>
  7910. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  7911. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7912. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  7913. </AssociationSet>
  7914. <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  7915. <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
  7916. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7917. </AssociationSet>
  7918. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  7919. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7920. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  7921. </AssociationSet>
  7922. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  7923. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7924. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  7925. </AssociationSet>
  7926. <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="Self.FK_FmsMaterialRelease_CmBusinessField">
  7927. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7928. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7929. </AssociationSet>
  7930. <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="Self.FK_FmsMaterialRelease_CmSite">
  7931. <End Role="CmSite" EntitySet="CmSite" />
  7932. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7933. </AssociationSet>
  7934. <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="Self.FK_FmsMaterialRelease_CmUser">
  7935. <End Role="CmUser" EntitySet="CmUser" />
  7936. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7937. </AssociationSet>
  7938. <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="Self.FK_FmsMaterialRelease_CmUser1">
  7939. <End Role="CmUser" EntitySet="CmUser" />
  7940. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7941. </AssociationSet>
  7942. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="Self.FK_FmsMaterialRelease_FmsMaterial">
  7943. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7944. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7945. </AssociationSet>
  7946. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  7947. <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
  7948. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7949. </AssociationSet>
  7950. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  7951. <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
  7952. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7953. </AssociationSet>
  7954. <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="Self.FK_FmsMaterialRelease_FmsWorkResult">
  7955. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7956. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7957. </AssociationSet>
  7958. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="Self.FK_FmsMaterialStored_FmsMaterial">
  7959. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7960. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7961. </AssociationSet>
  7962. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  7963. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7964. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7965. </AssociationSet>
  7966. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
  7967. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7968. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7969. </AssociationSet>
  7970. <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="Self.FK_FmsMonthlyReport_CmUser">
  7971. <End Role="CmUser" EntitySet="CmUser" />
  7972. <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
  7973. </AssociationSet>
  7974. <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="Self.FK_FmsReport_CmBusinessField">
  7975. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7976. <End Role="FmsReport" EntitySet="FmsReport" />
  7977. </AssociationSet>
  7978. <AssociationSet Name="FK_FmsReport_CmFile" Association="Self.FK_FmsReport_CmFile">
  7979. <End Role="CmFile" EntitySet="CmFile" />
  7980. <End Role="FmsReport" EntitySet="FmsReport" />
  7981. </AssociationSet>
  7982. <AssociationSet Name="FK_FmsReport_CmSite" Association="Self.FK_FmsReport_CmSite">
  7983. <End Role="CmSite" EntitySet="CmSite" />
  7984. <End Role="FmsReport" EntitySet="FmsReport" />
  7985. </AssociationSet>
  7986. <AssociationSet Name="FK_FmsReport_CmUser" Association="Self.FK_FmsReport_CmUser">
  7987. <End Role="CmUser" EntitySet="CmUser" />
  7988. <End Role="FmsReport" EntitySet="FmsReport" />
  7989. </AssociationSet>
  7990. <AssociationSet Name="FK_FmsReport_CmUser1" Association="Self.FK_FmsReport_CmUser1">
  7991. <End Role="CmUser" EntitySet="CmUser" />
  7992. <End Role="FmsReport" EntitySet="FmsReport" />
  7993. </AssociationSet>
  7994. <AssociationSet Name="FK_FmsReport_CmUser2" Association="Self.FK_FmsReport_CmUser2">
  7995. <End Role="CmUser" EntitySet="CmUser" />
  7996. <End Role="FmsReport" EntitySet="FmsReport" />
  7997. </AssociationSet>
  7998. <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="Self.FK_FmsWorkOrderToFacility_CmFacility">
  7999. <End Role="CmFacility" EntitySet="CmFacility" />
  8000. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  8001. </AssociationSet>
  8002. <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="Self.FK_FmsWorkRequest_CmPartner">
  8003. <End Role="CmPartner" EntitySet="CmPartner" />
  8004. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  8005. </AssociationSet>
  8006. <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="Self.FK_FmsWorkRequestToFacility_CmFacility">
  8007. <End Role="CmFacility" EntitySet="CmFacility" />
  8008. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  8009. </AssociationSet>
  8010. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  8011. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  8012. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  8013. </AssociationSet>
  8014. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  8015. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  8016. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  8017. </AssociationSet>
  8018. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  8019. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  8020. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  8021. </AssociationSet>
  8022. <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="Self.FK_FmsWorkSchedule_CmPartner">
  8023. <End Role="CmPartner" EntitySet="CmPartner" />
  8024. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  8025. </AssociationSet>
  8026. <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="Self.FK_FmsWorkScheduleToFacility_CmFacility">
  8027. <End Role="CmFacility" EntitySet="CmFacility" />
  8028. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  8029. </AssociationSet>
  8030. </EntityContainer>
  8031. </Schema></edmx:StorageModels>
  8032. <!-- CSDL content -->
  8033. <edmx:ConceptualModels>
  8034. <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">
  8035. <EntityType Name="BemsAnalysisType">
  8036. <Key>
  8037. <PropertyRef Name="SiteId" />
  8038. <PropertyRef Name="AnalysisType" />
  8039. </Key>
  8040. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8041. <Property Name="AnalysisType" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8042. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  8043. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsAnalysisType" ToRole="BemsMonitoringPointToAnlaysisType" />
  8044. </EntityType>
  8045. <EntityType Name="BemsControlPointHistory">
  8046. <Key>
  8047. <PropertyRef Name="SiteId" />
  8048. <PropertyRef Name="FacilityCode" />
  8049. <PropertyRef Name="PropertyId" />
  8050. <PropertyRef Name="CreateDateTime" />
  8051. </Key>
  8052. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8053. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8054. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8055. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8056. <Property Name="CreateDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8057. <Property Name="ControlValue" Type="Double" Nullable="false" />
  8058. <Property Name="WriteServiceName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8059. <Property Name="ActionDateTime" Type="DateTime" Precision="3" />
  8060. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsControlPointHistory" ToRole="BemsFacilityType" />
  8061. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsControlPointHistory" ToRole="BemsMonitoringPoint" />
  8062. </EntityType>
  8063. <EntityType Name="BemsFacilityType">
  8064. <Key>
  8065. <PropertyRef Name="FacilityTypeId" />
  8066. </Key>
  8067. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8068. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  8069. <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsControlPointHistory" />
  8070. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointBaseData" />
  8071. <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15min" />
  8072. <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryDaily" />
  8073. <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryHourly" />
  8074. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointToAnlaysisType" />
  8075. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPoint" />
  8076. <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsChartInfo" />
  8077. <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointConfig" />
  8078. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsAlarmSetting" />
  8079. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="BemsFacilityType" ToRole="CmFacility" />
  8080. <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15minRawData" />
  8081. </EntityType>
  8082. <EntityType Name="BemsFactorCo2">
  8083. <Key>
  8084. <PropertyRef Name="FuelTypeId" />
  8085. </Key>
  8086. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  8087. <Property Name="Factor" Type="Double" Nullable="false" />
  8088. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFactorCo2" ToRole="BemsFuelType" />
  8089. </EntityType>
  8090. <EntityType Name="BemsFactorToe">
  8091. <Key>
  8092. <PropertyRef Name="FuelTypeId" />
  8093. </Key>
  8094. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  8095. <Property Name="TotalFactor" Type="Double" Nullable="false" />
  8096. <Property Name="PureFactor" Type="Double" Nullable="false" />
  8097. <Property Name="kcal" Type="Double" />
  8098. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFactorToe" ToRole="BemsFuelType" />
  8099. </EntityType>
  8100. <EntityType Name="BemsFormula">
  8101. <Key>
  8102. <PropertyRef Name="SiteId" />
  8103. <PropertyRef Name="FacilityTypeId" />
  8104. <PropertyRef Name="FacilityCode" />
  8105. <PropertyRef Name="FormulaId" />
  8106. </Key>
  8107. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8108. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8109. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8110. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  8111. <Property Name="Formula" Type="String" MaxLength="120" FixedLength="false" Unicode="true" Nullable="false" />
  8112. <NavigationProperty Name="BemsFormulaBase" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormula" ToRole="BemsFormulaBase" />
  8113. <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormula" ToRole="BemsFormulaParameter" />
  8114. <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsFormula" ToRole="BemsPriceFormula" />
  8115. </EntityType>
  8116. <EntityType Name="BemsFormulaBase">
  8117. <Key>
  8118. <PropertyRef Name="FacilityTypeId" />
  8119. <PropertyRef Name="FormulaId" />
  8120. </Key>
  8121. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8122. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  8123. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8124. <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormulaBase" ToRole="BemsFormula" />
  8125. </EntityType>
  8126. <EntityType Name="BemsFormulaParameter">
  8127. <Key>
  8128. <PropertyRef Name="SiteId" />
  8129. <PropertyRef Name="FacilityCode" />
  8130. <PropertyRef Name="FormulaId" />
  8131. <PropertyRef Name="ParameterId" />
  8132. </Key>
  8133. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8134. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8135. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8136. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  8137. <Property Name="ParameterId" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
  8138. <Property Name="ParameterFacilityCode" Type="Int32" Nullable="false" />
  8139. <Property Name="ParameterPropertyId" Type="Int32" Nullable="false" />
  8140. <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormulaParameter" ToRole="BemsFormula" />
  8141. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsFormulaParameter" ToRole="BemsMonitoringPoint" />
  8142. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="BemsFormulaParameter" ToRole="CmFacility" />
  8143. </EntityType>
  8144. <EntityType Name="BemsFormulaTable">
  8145. <Key>
  8146. <PropertyRef Name="TableId" />
  8147. </Key>
  8148. <Property Name="TableId" Type="Int32" Nullable="false" />
  8149. <Property Name="FunctionName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8150. <Property Name="Description" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
  8151. <NavigationProperty Name="BemsFormulaTableValue" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTable" ToRole="BemsFormulaTableValue" />
  8152. </EntityType>
  8153. <EntityType Name="BemsFormulaTableValue">
  8154. <Key>
  8155. <PropertyRef Name="TableId" />
  8156. <PropertyRef Name="XValue" />
  8157. </Key>
  8158. <Property Name="TableId" Type="Int32" Nullable="false" />
  8159. <Property Name="XValue" Type="Double" Nullable="false" />
  8160. <Property Name="YValue" Type="Double" Nullable="false" />
  8161. <NavigationProperty Name="BemsFormulaTable" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTableValue" ToRole="BemsFormulaTable" />
  8162. </EntityType>
  8163. <EntityType Name="BemsMonitoringPoint">
  8164. <Key>
  8165. <PropertyRef Name="SiteId" />
  8166. <PropertyRef Name="FacilityCode" />
  8167. <PropertyRef Name="PropertyId" />
  8168. </Key>
  8169. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8170. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8171. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8172. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8173. <Property Name="ValueType" Type="Int32" Nullable="false" />
  8174. <Property Name="ServiceTypeId" Type="Int16" />
  8175. <Property Name="FuelTypeId" Type="Int16" />
  8176. <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8177. <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  8178. <Property Name="BuildingId" Type="Int32" />
  8179. <Property Name="FloorId" Type="Int32" />
  8180. <Property Name="ZoneId" Type="Int32" />
  8181. <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsControlPointHistory" />
  8182. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsMonitoringPoint" ToRole="BemsFacilityType" />
  8183. <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsFormulaParameter" />
  8184. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointToAnlaysisType" />
  8185. <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsMonitoringPoint" ToRole="BemsServiceType" />
  8186. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="BemsMonitoringPoint" ToRole="CmBuilding" />
  8187. <NavigationProperty Name="CmFloor" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="BemsMonitoringPoint" ToRole="CmFloor" />
  8188. <NavigationProperty Name="CmZone" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="BemsMonitoringPoint" ToRole="CmZone" />
  8189. <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15min" />
  8190. <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryDaily" />
  8191. <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryHourly" />
  8192. <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointConfig" />
  8193. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsMonitoringPoint" ToRole="BemsFuelType" />
  8194. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="BemsMonitoringPoint" ToRole="CmFacility" />
  8195. <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15minRawData" />
  8196. </EntityType>
  8197. <EntityType Name="BemsMonitoringPointBaseData">
  8198. <Key>
  8199. <PropertyRef Name="FacilityTypeId" />
  8200. <PropertyRef Name="PropertyId" />
  8201. </Key>
  8202. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8203. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8204. <Property Name="ValueType" Type="Int32" Nullable="false" />
  8205. <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
  8206. <Property Name="ServiceTypeId" Type="Int16" />
  8207. <Property Name="FuelTypeId" Type="Int16" />
  8208. <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8209. <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  8210. <Property Name="IsSampled" Type="Boolean" />
  8211. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFacilityType" />
  8212. <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsServiceType" />
  8213. <Property Name="IsConverted" Type="Boolean" />
  8214. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFuelType" />
  8215. </EntityType>
  8216. <EntityType Name="BemsMonitoringPointHistory15min">
  8217. <Key>
  8218. <PropertyRef Name="SiteId" />
  8219. <PropertyRef Name="FacilityCode" />
  8220. <PropertyRef Name="PropertyId" />
  8221. <PropertyRef Name="CreatedDateTime" />
  8222. </Key>
  8223. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8224. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8225. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8226. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8227. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8228. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  8229. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsFacilityType" />
  8230. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsMonitoringPoint" />
  8231. </EntityType>
  8232. <EntityType Name="BemsMonitoringPointHistoryDaily">
  8233. <Key>
  8234. <PropertyRef Name="SiteId" />
  8235. <PropertyRef Name="FacilityCode" />
  8236. <PropertyRef Name="PropertyId" />
  8237. <PropertyRef Name="CreatedDateTime" />
  8238. </Key>
  8239. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8240. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8241. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8242. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8243. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8244. <Property Name="DailyValue" Type="Double" Nullable="false" />
  8245. <Property Name="MaxValue" Type="Double" />
  8246. <Property Name="MinValue" Type="Double" />
  8247. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsFacilityType" />
  8248. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsMonitoringPoint" />
  8249. </EntityType>
  8250. <EntityType Name="BemsMonitoringPointHistoryHourly">
  8251. <Key>
  8252. <PropertyRef Name="SiteId" />
  8253. <PropertyRef Name="FacilityCode" />
  8254. <PropertyRef Name="PropertyId" />
  8255. <PropertyRef Name="CreatedDateTime" />
  8256. </Key>
  8257. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8258. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8259. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8260. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8261. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8262. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  8263. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsFacilityType" />
  8264. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsMonitoringPoint" />
  8265. </EntityType>
  8266. <EntityType Name="BemsMonitoringPointToAnlaysisType">
  8267. <Key>
  8268. <PropertyRef Name="SiteId" />
  8269. <PropertyRef Name="FacilityTypeId" />
  8270. <PropertyRef Name="FacilityCode" />
  8271. <PropertyRef Name="PropertyId" />
  8272. <PropertyRef Name="AnalysisType" />
  8273. </Key>
  8274. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8275. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8276. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8277. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8278. <Property Name="AnalysisType" Type="Int32" Nullable="false" />
  8279. <NavigationProperty Name="BemsAnalysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsAnalysisType" />
  8280. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsFacilityType" />
  8281. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsMonitoringPoint" />
  8282. </EntityType>
  8283. <EntityType Name="BemsServiceType">
  8284. <Key>
  8285. <PropertyRef Name="ServiceTypeId" />
  8286. </Key>
  8287. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  8288. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  8289. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPoint" />
  8290. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPointBaseData" />
  8291. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsEnergyDaily" />
  8292. </EntityType>
  8293. <EntityType Name="CmAnnouncement">
  8294. <Key>
  8295. <PropertyRef Name="SiteId" />
  8296. <PropertyRef Name="AnnouncementId" />
  8297. </Key>
  8298. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8299. <Property Name="AnnouncementId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8300. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  8301. <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  8302. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" Nullable="false" />
  8303. <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8304. <Property Name="FileId" Type="Int32" />
  8305. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  8306. <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
  8307. <Property Name="IsUse" Type="Boolean" />
  8308. <Property Name="ReadCount" Type="Int32" Nullable="false" />
  8309. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmAnnouncement" ToRole="CmBusinessField" />
  8310. <NavigationProperty Name="CmFile" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmAnnouncement" ToRole="CmFile" />
  8311. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmAnnouncement" ToRole="CmUser" />
  8312. </EntityType>
  8313. <EntityType Name="CmBuilding">
  8314. <Key>
  8315. <PropertyRef Name="SiteId" />
  8316. <PropertyRef Name="BuildingId" />
  8317. </Key>
  8318. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8319. <Property Name="BuildingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8320. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8321. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="CmBuilding" ToRole="BemsMonitoringPoint" />
  8322. <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmBuilding" ToRole="CmFloor" />
  8323. <NavigationProperty Name="CmZone" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmBuilding" ToRole="CmZone" />
  8324. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmBuilding" ToRole="CmZoneTempHumiSet" />
  8325. <Property Name="FileId" Type="Int32" />
  8326. <Property Name="IsUse" Type="Boolean" />
  8327. <Property Name="SortOrderNo" Type="Int32" />
  8328. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmBuilding" ToRole="CmPatrolPos" />
  8329. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmBuilding" ToRole="CmSite" />
  8330. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="CmBuilding" ToRole="BemsEnergyDaily" />
  8331. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmBuilding" ToRole="CmFacility" />
  8332. </EntityType>
  8333. <EntityType Name="CmBusinessField">
  8334. <Key>
  8335. <PropertyRef Name="SiteId" />
  8336. <PropertyRef Name="BusinessFieldId" />
  8337. </Key>
  8338. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8339. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8340. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8341. <Property Name="IsUse" Type="Boolean" />
  8342. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmBusinessField" ToRole="CmAnnouncement" />
  8343. <NavigationProperty Name="FmsFacilityManual" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="CmBusinessField" ToRole="FmsFacilityManual" />
  8344. <NavigationProperty Name="FmsLicense" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsLicense" />
  8345. <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCarriedForward" />
  8346. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCodeLocation" />
  8347. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseOrder" />
  8348. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseRequest" />
  8349. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialStored" />
  8350. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialWarehouse" />
  8351. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkOrder" />
  8352. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkRequest" />
  8353. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkSchedule" />
  8354. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmBusinessField" ToRole="CmUser" />
  8355. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterial" />
  8356. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialRelease" />
  8357. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsReport" />
  8358. <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsDailyReport" />
  8359. </EntityType>
  8360. <EntityType Name="CmCompany">
  8361. <Key>
  8362. <PropertyRef Name="SiteId" />
  8363. <PropertyRef Name="CompanyId" />
  8364. </Key>
  8365. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8366. <Property Name="CompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8367. <Property Name="CompanyTypeId" Type="Int32" Nullable="false" />
  8368. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8369. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8370. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8371. <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8372. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8373. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8374. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  8375. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  8376. <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8377. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8378. <Property Name="Homepage" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8379. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8380. <Property Name="IsUse" Type="Boolean" />
  8381. <NavigationProperty Name="CmCompanyType" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompany" ToRole="CmCompanyType" />
  8382. <NavigationProperty Name="CmDepartment" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmCompany" ToRole="CmDepartment" />
  8383. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmCompany" ToRole="CmUser" />
  8384. <NavigationProperty Name="FmsAccident" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="CmCompany" ToRole="FmsAccident" />
  8385. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmCompany" ToRole="CmSite" />
  8386. </EntityType>
  8387. <EntityType Name="CmCompanyType">
  8388. <Key>
  8389. <PropertyRef Name="SiteId" />
  8390. <PropertyRef Name="CompanyTypeId" />
  8391. </Key>
  8392. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8393. <Property Name="CompanyTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8394. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8395. <Property Name="IsUse" Type="Boolean" />
  8396. <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompanyType" ToRole="CmCompany" />
  8397. </EntityType>
  8398. <EntityType Name="CmDepartment">
  8399. <Key>
  8400. <PropertyRef Name="SiteId" />
  8401. <PropertyRef Name="CompanyId" />
  8402. <PropertyRef Name="DepartmentId" />
  8403. </Key>
  8404. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8405. <Property Name="CompanyId" Type="Int32" Nullable="false" />
  8406. <Property Name="DepartmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8407. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8408. <Property Name="ShortName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8409. <Property Name="FaxNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8410. <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8411. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8412. <Property Name="IsUse" Type="Boolean" />
  8413. <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmDepartment" ToRole="CmCompany" />
  8414. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmDepartment" ToRole="CmUser" />
  8415. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="CmDepartment" ToRole="FmsAccident" />
  8416. </EntityType>
  8417. <EntityType Name="CmFacilityFile">
  8418. <Key>
  8419. <PropertyRef Name="SiteId" />
  8420. <PropertyRef Name="FileId" />
  8421. </Key>
  8422. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8423. <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8424. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8425. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  8426. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8427. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  8428. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8429. <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFacilityFile" ToRole="CmFile" />
  8430. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacilityFile" ToRole="CmFacility" />
  8431. </EntityType>
  8432. <EntityType Name="CmFacilityTempSet">
  8433. <Key>
  8434. <PropertyRef Name="SiteId" />
  8435. <PropertyRef Name="FacilityCode" />
  8436. </Key>
  8437. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8438. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8439. <Property Name="T1" Type="Double" Nullable="false" />
  8440. <Property Name="T2" Type="Double" Nullable="false" />
  8441. <Property Name="T3" Type="Double" Nullable="false" />
  8442. <Property Name="T4" Type="Double" Nullable="false" />
  8443. <Property Name="T5" Type="Double" Nullable="false" />
  8444. <Property Name="T6" Type="Double" Nullable="false" />
  8445. <Property Name="T7" Type="Double" Nullable="false" />
  8446. <Property Name="T8" Type="Double" Nullable="false" />
  8447. <Property Name="T9" Type="Double" Nullable="false" />
  8448. <Property Name="T10" Type="Double" Nullable="false" />
  8449. <Property Name="T11" Type="Double" Nullable="false" />
  8450. <Property Name="T12" Type="Double" Nullable="false" />
  8451. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmFacilityTempSet" ToRole="CmSite" />
  8452. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacilityTempSet" ToRole="CmFacility" />
  8453. </EntityType>
  8454. <EntityType Name="CmFile" m:HasStream="true" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
  8455. <Key>
  8456. <PropertyRef Name="SiteId" />
  8457. <PropertyRef Name="FileId" />
  8458. </Key>
  8459. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8460. <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8461. <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
  8462. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  8463. <Property Name="FileSize" Type="Int32" />
  8464. <Property Name="CreatedDate" Type="DateTime" Precision="3" />
  8465. <Property Name="ContentType" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  8466. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmFile" ToRole="CmAnnouncement" />
  8467. <NavigationProperty Name="CmFacilityFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFile" ToRole="CmFacilityFile" />
  8468. <NavigationProperty Name="CmFileCategory" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFile" ToRole="CmFileCategory" />
  8469. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="CmFile" ToRole="FmsDrawingHistory" />
  8470. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="CmFile" ToRole="FmsMaterialPurchaseOrder" />
  8471. <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="CmFile" ToRole="FmsWorkResultFile" />
  8472. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="CmFile" ToRole="FmsAccident" />
  8473. <NavigationProperty Name="FmsAccident1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="CmFile" ToRole="FmsAccident" />
  8474. <NavigationProperty Name="FmsAccident2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="CmFile" ToRole="FmsAccident" />
  8475. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="CmFile" ToRole="FmsConstruction" />
  8476. <NavigationProperty Name="FmsConstruction1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="CmFile" ToRole="FmsConstruction" />
  8477. <NavigationProperty Name="FmsConstruction2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="CmFile" ToRole="FmsConstruction" />
  8478. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="CmFile" ToRole="FmsManualHistory" />
  8479. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="CmFile" ToRole="FmsMaterial" />
  8480. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmFile" ToRole="CmSite" />
  8481. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="CmFile" ToRole="FmsReport" />
  8482. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
  8483. <NavigationProperty Name="FmsWorkResultCheckItem1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
  8484. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFile" ToRole="CmFacility" />
  8485. </EntityType>
  8486. <EntityType Name="CmFileCategory">
  8487. <Key>
  8488. <PropertyRef Name="FileCategoryId" />
  8489. </Key>
  8490. <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
  8491. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8492. <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFileCategory" ToRole="CmFile" />
  8493. </EntityType>
  8494. <EntityType Name="CmFloor">
  8495. <Key>
  8496. <PropertyRef Name="SiteId" />
  8497. <PropertyRef Name="BuildingId" />
  8498. <PropertyRef Name="FloorId" />
  8499. </Key>
  8500. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8501. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  8502. <Property Name="FloorId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8503. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8504. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="CmFloor" ToRole="BemsMonitoringPoint" />
  8505. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmFloor" ToRole="CmBuilding" />
  8506. <NavigationProperty Name="CmZone" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmFloor" ToRole="CmZone" />
  8507. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmFloor" ToRole="CmZoneTempHumiSet" />
  8508. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmFloor" ToRole="CmPatrolPos" />
  8509. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFloor" ToRole="CmFacility" />
  8510. </EntityType>
  8511. <EntityType Name="CmHoliday">
  8512. <Key>
  8513. <PropertyRef Name="SiteId" />
  8514. <PropertyRef Name="HolidayMonth" />
  8515. <PropertyRef Name="HolidayDay" />
  8516. <PropertyRef Name="IsLunar" />
  8517. </Key>
  8518. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8519. <Property Name="HolidayMonth" Type="Int16" Nullable="false" />
  8520. <Property Name="HolidayDay" Type="Int16" Nullable="false" />
  8521. <Property Name="IsLunar" Type="Boolean" Nullable="false" />
  8522. <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
  8523. <Property Name="IsUse" Type="Boolean" />
  8524. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmHoliday" ToRole="CmSite" />
  8525. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmHoliday" ToRole="CmSite" />
  8526. </EntityType>
  8527. <EntityType Name="CmHolidayCustom">
  8528. <Key>
  8529. <PropertyRef Name="SiteId" />
  8530. <PropertyRef Name="HolidayDate" />
  8531. </Key>
  8532. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8533. <Property Name="HolidayDate" Type="DateTime" Nullable="false" Precision="3" />
  8534. <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
  8535. <Property Name="IsUse" Type="Boolean" />
  8536. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmHolidayCustom" ToRole="CmSite" />
  8537. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmHolidayCustom" ToRole="CmSite" />
  8538. </EntityType>
  8539. <EntityType Name="CmPosition">
  8540. <Key>
  8541. <PropertyRef Name="SiteId" />
  8542. <PropertyRef Name="PositionId" />
  8543. </Key>
  8544. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8545. <Property Name="PositionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8546. <Property Name="Name" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
  8547. <Property Name="IsUse" Type="Boolean" />
  8548. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmPosition" ToRole="CmUser" />
  8549. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmPosition" ToRole="CmSite" />
  8550. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmPosition" ToRole="CmSite" />
  8551. <Property Name="Position" Type="Int32" />
  8552. </EntityType>
  8553. <EntityType Name="CmUser">
  8554. <Key>
  8555. <PropertyRef Name="SiteId" />
  8556. <PropertyRef Name="UserId" />
  8557. </Key>
  8558. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8559. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8560. <Property Name="CompanyId" Type="Int32" />
  8561. <Property Name="DepartmentId" Type="Int32" />
  8562. <Property Name="PositionId" Type="Int32" />
  8563. <Property Name="BusinessFieldId" Type="Int32" />
  8564. <Property Name="UserGroupId" Type="Int32" />
  8565. <Property Name="Name" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  8566. <Property Name="Passwd" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  8567. <Property Name="Birthday" Type="DateTime" Precision="3" />
  8568. <Property Name="Lunar" Type="Boolean" />
  8569. <Property Name="StateId" Type="Int32" />
  8570. <Property Name="EmploymentType" Type="Int32" />
  8571. <Property Name="EmploymentStatus" Type="Int32" />
  8572. <Property Name="OfficePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8573. <Property Name="HomePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8574. <Property Name="MobilePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8575. <Property Name="HomeZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
  8576. <Property Name="HomeZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
  8577. <Property Name="HomeAddress1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8578. <Property Name="HomeAdderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8579. <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8580. <Property Name="EnterDate" Type="DateTime" Precision="3" />
  8581. <Property Name="RetireDate" Type="DateTime" Precision="3" />
  8582. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8583. <Property Name="Rfcsn" Type="String" MaxLength="30" FixedLength="false" Unicode="true" />
  8584. <Property Name="PasswordUpdatedDate" Type="DateTime" Precision="3" />
  8585. <Property Name="FileId" Type="Int32" />
  8586. <Property Name="IsBems" Type="Boolean" />
  8587. <Property Name="IsUse" Type="Boolean" />
  8588. <Property Name="Certificated" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  8589. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmUser" ToRole="CmAnnouncement" />
  8590. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmUser" ToRole="CmBusinessField" />
  8591. <NavigationProperty Name="CmCompany" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmUser" ToRole="CmCompany" />
  8592. <NavigationProperty Name="CmDepartment" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmUser" ToRole="CmDepartment" />
  8593. <NavigationProperty Name="CmPosition" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmUser" ToRole="CmPosition" />
  8594. <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUser" ToRole="CmUserToLicense" />
  8595. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="CmUser" ToRole="FmsDrawingHistory" />
  8596. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="CmUser" ToRole="FmsMaterialPurchaseOrder" />
  8597. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
  8598. <NavigationProperty Name="FmsMaterialPurchaseRequest1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
  8599. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
  8600. <NavigationProperty Name="FmsMaterialStored1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
  8601. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="CmUser" ToRole="FmsWorkOrder" />
  8602. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
  8603. <NavigationProperty Name="FmsWorkRequest1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
  8604. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
  8605. <NavigationProperty Name="FmsWorkResult1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
  8606. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmUser" FromRole="CmUser" ToRole="FmsWorkSchedule" />
  8607. <NavigationProperty Name="CmUserGroup" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUser" ToRole="CmUserGroup" />
  8608. <NavigationProperty Name="CmUserLoginHistory" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUser" ToRole="CmUserLoginHistory" />
  8609. <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="CmUser" ToRole="FmsConstructionEstimation" />
  8610. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="CmUser" ToRole="FmsManualHistory" />
  8611. <NavigationProperty Name="FmsDailyCheckReport" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="CmUser" ToRole="FmsDailyCheckReport" />
  8612. <NavigationProperty Name="FmsFacilityOperationReport" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="CmUser" ToRole="FmsFacilityOperationReport" />
  8613. <Property Name="IsScheduleUser" Type="Boolean" />
  8614. <NavigationProperty Name="FmsMonthlyReport" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="CmUser" ToRole="FmsMonthlyReport" />
  8615. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="CmUser" ToRole="FmsMaterialRelease" />
  8616. <NavigationProperty Name="FmsMaterialRelease1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="CmUser" ToRole="FmsMaterialRelease" />
  8617. <Property Name="IsSI" Type="Boolean" Nullable="true" />
  8618. <Property Name="IsMobile" Type="Boolean" Nullable="true" />
  8619. <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmUser" ToRole="CmPatrolGroupUser" />
  8620. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="CmUser" ToRole="FmsReport" />
  8621. <NavigationProperty Name="FmsReport1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="CmUser" ToRole="FmsReport" />
  8622. <NavigationProperty Name="FmsReport2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="CmUser" ToRole="FmsReport" />
  8623. <Property Name="Devicetoken" Type="String" MaxLength="500" FixedLength="false" Unicode="true" />
  8624. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
  8625. <NavigationProperty Name="FmsEquipmentRentInfo1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
  8626. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmUser" ToRole="CmFacility" />
  8627. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmUser" ToRole="CmFacility" />
  8628. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmUser" ToRole="CmFacility" />
  8629. <NavigationProperty Name="CmFacility3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmUser" ToRole="CmFacility" />
  8630. <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="CmUser" ToRole="FmsDailyReport" />
  8631. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="CmUser" ToRole="FmsEquipment" />
  8632. </EntityType>
  8633. <EntityType Name="CmUserGroup">
  8634. <Key>
  8635. <PropertyRef Name="SiteId" />
  8636. <PropertyRef Name="UserGroupId" />
  8637. </Key>
  8638. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8639. <Property Name="UserGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8640. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8641. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUserGroup" ToRole="CmUser" />
  8642. <NavigationProperty Name="CmUserGroupPermission" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroup" ToRole="CmUserGroupPermission" />
  8643. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmUserGroup" ToRole="CmSite" />
  8644. </EntityType>
  8645. <EntityType Name="CmUserGroupPermission">
  8646. <Key>
  8647. <PropertyRef Name="SiteId" />
  8648. <PropertyRef Name="UserGroupId" />
  8649. <PropertyRef Name="MenuId" />
  8650. </Key>
  8651. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8652. <Property Name="UserGroupId" Type="Int32" Nullable="false" />
  8653. <Property Name="MenuId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8654. <Property Name="MenuPermission" Type="Int16" />
  8655. <NavigationProperty Name="CmUserGroup" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroupPermission" ToRole="CmUserGroup" />
  8656. </EntityType>
  8657. <EntityType Name="CmUserLoginHistory">
  8658. <Key>
  8659. <PropertyRef Name="LoginHistoryId" />
  8660. </Key>
  8661. <Property Name="LoginHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8662. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8663. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8664. <Property Name="Type" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
  8665. <Property Name="TraceTime" Type="DateTime" Nullable="false" Precision="3" />
  8666. <Property Name="IpAddress" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  8667. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUserLoginHistory" ToRole="CmUser" />
  8668. </EntityType>
  8669. <EntityType Name="CmUserToLicense">
  8670. <Key>
  8671. <PropertyRef Name="SiteId" />
  8672. <PropertyRef Name="UserId" />
  8673. <PropertyRef Name="LicenseId" />
  8674. </Key>
  8675. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8676. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8677. <Property Name="LicenseId" Type="Int32" Nullable="false" />
  8678. <NavigationProperty Name="CmUser" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUserToLicense" ToRole="CmUser" />
  8679. <NavigationProperty Name="FmsLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="CmUserToLicense" ToRole="FmsLicense" />
  8680. </EntityType>
  8681. <EntityType Name="CmZone">
  8682. <Key>
  8683. <PropertyRef Name="SiteId" />
  8684. <PropertyRef Name="BuildingId" />
  8685. <PropertyRef Name="FloorId" />
  8686. <PropertyRef Name="ZoneId" />
  8687. </Key>
  8688. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8689. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  8690. <Property Name="FloorId" Type="Int32" Nullable="false" />
  8691. <Property Name="ZoneId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8692. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8693. <Property Name="Target_temperature" Type="Double" />
  8694. <Property Name="Target_humidity" Type="Int16" />
  8695. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="CmZone" ToRole="BemsMonitoringPoint" />
  8696. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmZone" ToRole="CmBuilding" />
  8697. <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmZone" ToRole="CmFloor" />
  8698. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZone" ToRole="CmZoneTempHumiSet" />
  8699. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmZone" ToRole="CmFacility" />
  8700. </EntityType>
  8701. <EntityType Name="CmZoneTempHumiSet">
  8702. <Key>
  8703. <PropertyRef Name="SiteId" />
  8704. <PropertyRef Name="BuildingId" />
  8705. <PropertyRef Name="FloorId" />
  8706. <PropertyRef Name="ZoneId" />
  8707. </Key>
  8708. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8709. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  8710. <Property Name="FloorId" Type="Int32" Nullable="false" />
  8711. <Property Name="ZoneId" Type="Int32" Nullable="false" />
  8712. <Property Name="T1" Type="Double" Nullable="false" />
  8713. <Property Name="T2" Type="Double" Nullable="false" />
  8714. <Property Name="T3" Type="Double" Nullable="false" />
  8715. <Property Name="T4" Type="Double" Nullable="false" />
  8716. <Property Name="T5" Type="Double" Nullable="false" />
  8717. <Property Name="T6" Type="Double" Nullable="false" />
  8718. <Property Name="T7" Type="Double" Nullable="false" />
  8719. <Property Name="T8" Type="Double" Nullable="false" />
  8720. <Property Name="T9" Type="Double" Nullable="false" />
  8721. <Property Name="T10" Type="Double" Nullable="false" />
  8722. <Property Name="T11" Type="Double" Nullable="false" />
  8723. <Property Name="T12" Type="Double" Nullable="false" />
  8724. <Property Name="H1" Type="Int16" Nullable="false" />
  8725. <Property Name="H2" Type="Int16" Nullable="false" />
  8726. <Property Name="H3" Type="Int16" Nullable="false" />
  8727. <Property Name="H4" Type="Int16" Nullable="false" />
  8728. <Property Name="H5" Type="Int16" Nullable="false" />
  8729. <Property Name="H6" Type="Int16" Nullable="false" />
  8730. <Property Name="H7" Type="Int16" Nullable="false" />
  8731. <Property Name="H8" Type="Int16" Nullable="false" />
  8732. <Property Name="H9" Type="Int16" Nullable="false" />
  8733. <Property Name="H10" Type="Int16" Nullable="false" />
  8734. <Property Name="H11" Type="Int16" Nullable="false" />
  8735. <Property Name="H12" Type="Int16" Nullable="false" />
  8736. <NavigationProperty Name="CmBuilding" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmZoneTempHumiSet" ToRole="CmBuilding" />
  8737. <NavigationProperty Name="CmFloor" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmZoneTempHumiSet" ToRole="CmFloor" />
  8738. <NavigationProperty Name="CmZone" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZoneTempHumiSet" ToRole="CmZone" />
  8739. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmZoneTempHumiSet" ToRole="CmSite" />
  8740. </EntityType>
  8741. <EntityType Name="FmsAccident">
  8742. <Key>
  8743. <PropertyRef Name="SiteId" />
  8744. <PropertyRef Name="AccidentId" />
  8745. </Key>
  8746. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8747. <Property Name="AccidentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8748. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  8749. <Property Name="StartDate" Type="DateTime" Precision="3" />
  8750. <Property Name="EndDate" Type="DateTime" Precision="3" />
  8751. <Property Name="AccidentTypeId" Type="Int32" Nullable="false" />
  8752. <Property Name="DepartmentId" Type="Int32" />
  8753. <Property Name="AccidentLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  8754. <Property Name="Reason" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8755. <Property Name="Action" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8756. <Property Name="Damage" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8757. <Property Name="Measurement" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8758. <Property Name="FileId1" Type="Int32" />
  8759. <Property Name="FileId2" Type="Int32" />
  8760. <Property Name="FileId3" Type="Int32" />
  8761. <Property Name="CompanyId" Type="Int32" />
  8762. <NavigationProperty Name="CmDepartment" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="FmsAccident" ToRole="CmDepartment" />
  8763. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="FmsAccident" ToRole="CmFile" />
  8764. <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="FmsAccident" ToRole="CmFile" />
  8765. <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="FmsAccident" ToRole="CmFile" />
  8766. <NavigationProperty Name="FmsAccidentCodeType" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccident" ToRole="FmsAccidentCodeType" />
  8767. <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="FmsAccident" ToRole="CmCompany" />
  8768. </EntityType>
  8769. <EntityType Name="FmsAccidentCodeType">
  8770. <Key>
  8771. <PropertyRef Name="SiteId" />
  8772. <PropertyRef Name="AccidentTypeId" />
  8773. </Key>
  8774. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8775. <Property Name="AccidentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8776. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8777. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  8778. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccidentCodeType" ToRole="FmsAccident" />
  8779. </EntityType>
  8780. <EntityType Name="FmsBudget">
  8781. <Key>
  8782. <PropertyRef Name="SiteId" />
  8783. <PropertyRef Name="Year" />
  8784. </Key>
  8785. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8786. <Property Name="Year" Type="Int32" Nullable="false" />
  8787. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudget" ToRole="FmsBudgetDetail" />
  8788. </EntityType>
  8789. <EntityType Name="FmsBudgetCodeClass">
  8790. <Key>
  8791. <PropertyRef Name="SiteId" />
  8792. <PropertyRef Name="BudgetClassId" />
  8793. </Key>
  8794. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8795. <Property Name="BudgetClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8796. <Property Name="BudgetSeq" Type="String" MaxLength="6" FixedLength="false" Unicode="true" Nullable="false" />
  8797. <Property Name="ParentBudgetClassId" Type="Int32" />
  8798. <Property Name="Depth" Type="Int32" Nullable="false" />
  8799. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8800. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  8801. <Property Name="IsUse" Type="Boolean" />
  8802. <Property Name="YearlyBudget" Type="Double" />
  8803. <Property Name="MonthlyBudget" Type="Double" />
  8804. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetCodeClass" ToRole="FmsBudgetDetail" />
  8805. <Property Name="RootBudgetClassId" Type="Int32" />
  8806. </EntityType>
  8807. <EntityType Name="FmsCompanyEstimationCodeClass">
  8808. <Key>
  8809. <PropertyRef Name="SiteId" />
  8810. <PropertyRef Name="CompanyEstimationClassId" />
  8811. </Key>
  8812. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8813. <Property Name="CompanyEstimationClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8814. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8815. <Property Name="IsUse" Type="Boolean" />
  8816. </EntityType>
  8817. <EntityType Name="FmsConstruction">
  8818. <Key>
  8819. <PropertyRef Name="SiteId" />
  8820. <PropertyRef Name="ConstructionId" />
  8821. </Key>
  8822. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8823. <Property Name="ConstructionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8824. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  8825. <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
  8826. <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
  8827. <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
  8828. <Property Name="PartnerId" Type="Int32" Nullable="false" />
  8829. <Property Name="ConstructLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  8830. <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8831. <Property Name="CommitmentMan" Type="Int16" />
  8832. <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8833. <Property Name="WeldWorkStartTime" Type="DateTime" Precision="3" />
  8834. <Property Name="WeldWorkEndTime" Type="DateTime" Precision="3" />
  8835. <Property Name="GasWorkStartTime" Type="DateTime" Precision="3" />
  8836. <Property Name="GasWorkEndTime" Type="DateTime" Precision="3" />
  8837. <Property Name="PaintWorkStartTime" Type="DateTime" Precision="3" />
  8838. <Property Name="PaintWorkEndTime" Type="DateTime" Precision="3" />
  8839. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8840. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  8841. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  8842. <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
  8843. <Property Name="ConstructionDetail" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8844. <Property Name="InOutStockName" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8845. <Property Name="FileId1" Type="Int32" />
  8846. <Property Name="FileId2" Type="Int32" />
  8847. <Property Name="FileId3" Type="Int32" />
  8848. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="FmsConstruction" ToRole="CmFile" />
  8849. <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="FmsConstruction" ToRole="CmFile" />
  8850. <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="FmsConstruction" ToRole="CmFile" />
  8851. <NavigationProperty Name="FmsConstructionCodeProgress" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstruction" ToRole="FmsConstructionCodeProgress" />
  8852. <NavigationProperty Name="FmsConstructionCodeType" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstruction" ToRole="FmsConstructionCodeType" />
  8853. <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstruction" ToRole="FmsConstructionEstimation" />
  8854. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="FmsConstruction" ToRole="CmPartner" />
  8855. </EntityType>
  8856. <EntityType Name="FmsConstructionCodeProgress">
  8857. <Key>
  8858. <PropertyRef Name="ProgressId" />
  8859. </Key>
  8860. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  8861. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8862. <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8863. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstructionCodeProgress" ToRole="FmsConstruction" />
  8864. </EntityType>
  8865. <EntityType Name="FmsConstructionCodeType">
  8866. <Key>
  8867. <PropertyRef Name="SiteId" />
  8868. <PropertyRef Name="ConstructionTypeId" />
  8869. </Key>
  8870. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8871. <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
  8872. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8873. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  8874. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstructionCodeType" ToRole="FmsConstruction" />
  8875. </EntityType>
  8876. <EntityType Name="FmsConstructionEstimation">
  8877. <Key>
  8878. <PropertyRef Name="SiteId" />
  8879. <PropertyRef Name="ConstructionId" />
  8880. </Key>
  8881. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8882. <Property Name="ConstructionId" Type="Int32" Nullable="false" />
  8883. <Property Name="EstimateDate" Type="DateTime" Nullable="false" Precision="3" />
  8884. <Property Name="EstimateUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8885. <Property Name="Safety01_CleanUp" Type="Boolean" />
  8886. <Property Name="Safety02_PersonalProtection" Type="Boolean" />
  8887. <Property Name="Safety03_FireExtinguisher" Type="Boolean" />
  8888. <Property Name="Safety04_HighPlaceWork" Type="Boolean" />
  8889. <Property Name="Safety05_Weld" Type="Boolean" />
  8890. <Property Name="Safety06_SurroundingCleanUp" Type="Boolean" />
  8891. <Property Name="Safety07_SurroundingHealthy" Type="Boolean" />
  8892. <Property Name="Safety08_Noise" Type="Boolean" />
  8893. <Property Name="Safety09_FacilityProtection" Type="Boolean" />
  8894. <Property Name="Safety10_Waste" Type="Boolean" />
  8895. <Property Name="Safety11_Execution" Type="Boolean" />
  8896. <Property Name="Safety12_Announcement" Type="Boolean" />
  8897. <Property Name="Ability01_Compliance" Type="Boolean" />
  8898. <Property Name="Ability02_Fault" Type="Boolean" />
  8899. <Property Name="Ability03_SkillLevel" Type="Boolean" />
  8900. <Property Name="Ability04_ProcessManagement" Type="Boolean" />
  8901. <Property Name="Ability05_Collaboration" Type="Boolean" />
  8902. <Property Name="Service01_Compliance" Type="Boolean" />
  8903. <Property Name="Service02_SkillLevel" Type="Boolean" />
  8904. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8905. <Property Name="TotalEstimateScore" Type="Double" />
  8906. <Property Name="SafetyScore" Type="Double" />
  8907. <Property Name="AbilityScore" Type="Double" />
  8908. <Property Name="ServiceScore" Type="Double" />
  8909. <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="FmsConstructionEstimation" ToRole="CmUser" />
  8910. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstructionEstimation" ToRole="FmsConstruction" />
  8911. </EntityType>
  8912. <EntityType Name="FmsContractClass">
  8913. <Key>
  8914. <PropertyRef Name="SiteId" />
  8915. <PropertyRef Name="ContractClassId" />
  8916. </Key>
  8917. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8918. <Property Name="ContractClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8919. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8920. <Property Name="IsUse" Type="Boolean" />
  8921. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContractClass" ToRole="FmsContract" />
  8922. </EntityType>
  8923. <EntityType Name="FmsContractMethod">
  8924. <Key>
  8925. <PropertyRef Name="SiteId" />
  8926. <PropertyRef Name="ContractMethodId" />
  8927. </Key>
  8928. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8929. <Property Name="ContractMethodId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8930. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8931. <Property Name="IsUse" Type="Boolean" />
  8932. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContractMethod" ToRole="FmsContract" />
  8933. </EntityType>
  8934. <EntityType Name="FmsContractType">
  8935. <Key>
  8936. <PropertyRef Name="SiteId" />
  8937. <PropertyRef Name="ContractTypeId" />
  8938. </Key>
  8939. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8940. <Property Name="ContractTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8941. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8942. <Property Name="IsUse" Type="Boolean" />
  8943. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContractType" ToRole="FmsContract" />
  8944. </EntityType>
  8945. <EntityType Name="FmsDrawing">
  8946. <Key>
  8947. <PropertyRef Name="SiteId" />
  8948. <PropertyRef Name="DrawingId" />
  8949. </Key>
  8950. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8951. <Property Name="DrawingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8952. <Property Name="DrawingNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8953. <Property Name="DrawingGroupId" Type="Int32" Nullable="false" />
  8954. <Property Name="DrawingTypeId" Type="Int32" Nullable="false" />
  8955. <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  8956. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  8957. <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawing" ToRole="FmsDrawingCodeGroup" />
  8958. <NavigationProperty Name="FmsDrawingCodeType" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawing" ToRole="FmsDrawingCodeType" />
  8959. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawing" ToRole="FmsDrawingHistory" />
  8960. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="FmsDrawing" ToRole="CmSite" />
  8961. </EntityType>
  8962. <EntityType Name="FmsDrawingCodeGroup">
  8963. <Key>
  8964. <PropertyRef Name="SiteId" />
  8965. <PropertyRef Name="DrawingGroupId" />
  8966. </Key>
  8967. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8968. <Property Name="DrawingGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8969. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8970. <Property Name="IsUse" Type="Boolean" />
  8971. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawingCodeGroup" ToRole="FmsDrawing" />
  8972. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
  8973. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
  8974. </EntityType>
  8975. <EntityType Name="FmsDrawingCodeType">
  8976. <Key>
  8977. <PropertyRef Name="SiteId" />
  8978. <PropertyRef Name="DrawingTypeId" />
  8979. </Key>
  8980. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8981. <Property Name="DrawingTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8982. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8983. <Property Name="IsUse" Type="Boolean" />
  8984. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawingCodeType" ToRole="FmsDrawing" />
  8985. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
  8986. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
  8987. </EntityType>
  8988. <EntityType Name="FmsDrawingHistory">
  8989. <Key>
  8990. <PropertyRef Name="SiteId" />
  8991. <PropertyRef Name="DrawingId" />
  8992. <PropertyRef Name="HistoryId" />
  8993. </Key>
  8994. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8995. <Property Name="DrawingId" Type="Int32" Nullable="false" />
  8996. <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8997. <Property Name="RevisionNo" Type="Int32" />
  8998. <Property Name="FileId" Type="Int32" />
  8999. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9000. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  9001. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9002. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="FmsDrawingHistory" ToRole="CmFile" />
  9003. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="FmsDrawingHistory" ToRole="CmUser" />
  9004. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawingHistory" ToRole="FmsDrawing" />
  9005. </EntityType>
  9006. <EntityType Name="FmsEquipmentCodeStateType">
  9007. <Key>
  9008. <PropertyRef Name="EquipmentStateTypeId" />
  9009. </Key>
  9010. <Property Name="EquipmentStateTypeId" Type="Int16" Nullable="false" />
  9011. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9012. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9013. <NavigationProperty Name="FmsEquipmentHistory" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentHistory" />
  9014. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentRentInfo" />
  9015. </EntityType>
  9016. <EntityType Name="FmsEquipmentCodeType">
  9017. <Key>
  9018. <PropertyRef Name="SiteId" />
  9019. <PropertyRef Name="EquipmentTypeId" />
  9020. </Key>
  9021. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9022. <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9023. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9024. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9025. <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  9026. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipmentCodeType" ToRole="FmsEquipment" />
  9027. </EntityType>
  9028. <EntityType Name="FmsEquipmentHistory">
  9029. <Key>
  9030. <PropertyRef Name="SiteId" />
  9031. <PropertyRef Name="EquipmentHistoryId" />
  9032. <PropertyRef Name="EquipmentId" />
  9033. </Key>
  9034. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9035. <Property Name="EquipmentHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9036. <Property Name="EquipmentId" Type="Int32" Nullable="false" />
  9037. <Property Name="TotalStockCount" Type="Int32" />
  9038. <Property Name="CurrentStockCount" Type="Int32" />
  9039. <Property Name="RentCount" Type="Int32" />
  9040. <Property Name="CurrentRentCount" Type="Int32" />
  9041. <Property Name="ReturnCount" Type="Int32" />
  9042. <Property Name="LossCount" Type="Int32" />
  9043. <Property Name="StoredCount" Type="Int32" />
  9044. <Property Name="EquipmentRentId" Type="Int32" />
  9045. <Property Name="EquipmentStateTypeId" Type="Int16" />
  9046. <Property Name="AddDate" Type="DateTime" Precision="3" />
  9047. <Property Name="UpdateDate" Type="DateTime" Precision="3" />
  9048. <Property Name="IsReturned" Type="Boolean" />
  9049. <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentCodeStateType" />
  9050. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentRentInfo" />
  9051. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipmentHistory" ToRole="FmsEquipment" />
  9052. </EntityType>
  9053. <EntityType Name="FmsFacilityCheckItem">
  9054. <Key>
  9055. <PropertyRef Name="SiteId" />
  9056. <PropertyRef Name="FacilityCode" />
  9057. <PropertyRef Name="CheckItemId" />
  9058. </Key>
  9059. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9060. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9061. <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9062. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  9063. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  9064. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  9065. <Property Name="IsYesNoResult" Type="Boolean" Nullable="false" />
  9066. <Property Name="IsUse" Type="Boolean" />
  9067. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeCycleUnit" />
  9068. <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeType" />
  9069. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkResultCheckItem" />
  9070. </EntityType>
  9071. <EntityType Name="FmsFacilityCodeClass">
  9072. <Key>
  9073. <PropertyRef Name="SiteId" />
  9074. <PropertyRef Name="FacilityClassId" />
  9075. </Key>
  9076. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9077. <Property Name="FacilityClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9078. <Property Name="ParentFacilityClassId" Type="Int32" />
  9079. <Property Name="Depth" Type="Int32" Nullable="false" />
  9080. <Property Name="Name" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
  9081. <Property Name="Abbreviation" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  9082. <Property Name="IsUse" Type="Boolean" />
  9083. <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass" ToRole="FmsFacilityCodeClass1" />
  9084. <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass1" ToRole="FmsFacilityCodeClass" />
  9085. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="FmsFacilityCodeClass" ToRole="CmSite" />
  9086. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  9087. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  9088. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  9089. </EntityType>
  9090. <EntityType Name="FmsFacilityManual">
  9091. <Key>
  9092. <PropertyRef Name="SiteId" />
  9093. <PropertyRef Name="FacilityCode" />
  9094. <PropertyRef Name="ManualId" />
  9095. </Key>
  9096. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9097. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9098. <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9099. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9100. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9101. <Property Name="Description" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9102. <Property Name="Keyword" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9103. <Property Name="FileId" Type="Int32" />
  9104. <Property Name="IsUse" Type="Boolean" />
  9105. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="FmsFacilityManual" ToRole="CmBusinessField" />
  9106. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="FmsFacilityManual" ToRole="CmFacility" />
  9107. </EntityType>
  9108. <EntityType Name="FmsFacilityOperationItem">
  9109. <Key>
  9110. <PropertyRef Name="SiteId" />
  9111. <PropertyRef Name="ItemId" />
  9112. </Key>
  9113. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9114. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9115. <Property Name="ItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9116. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9117. <Property Name="ResultUnit" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
  9118. <Property Name="PointId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  9119. <Property Name="SystemId" Type="Int32" />
  9120. <Property Name="EnergyCode" Type="Boolean" />
  9121. <Property Name="IsUse" Type="Boolean" />
  9122. <Property Name="SortOrderNo" Type="Int32" />
  9123. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  9124. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9125. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  9126. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9127. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="FmsFacilityOperationItem" ToRole="CmFacility" />
  9128. </EntityType>
  9129. <EntityType Name="FmsLicense">
  9130. <Key>
  9131. <PropertyRef Name="SiteId" />
  9132. <PropertyRef Name="LicenseId" />
  9133. </Key>
  9134. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9135. <Property Name="LicenseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9136. <Property Name="Name" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
  9137. <Property Name="IssuingOffice" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
  9138. <Property Name="BusinessFieldId" Type="Int32" />
  9139. <Property Name="EducationalInstitute" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  9140. <Property Name="Note" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  9141. <Property Name="IsUse" Type="Boolean" />
  9142. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="FmsLicense" ToRole="CmBusinessField" />
  9143. <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="FmsLicense" ToRole="CmUserToLicense" />
  9144. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="FmsLicense" ToRole="CmSite" />
  9145. </EntityType>
  9146. <EntityType Name="FmsManual">
  9147. <Key>
  9148. <PropertyRef Name="SiteId" />
  9149. <PropertyRef Name="ManualId" />
  9150. </Key>
  9151. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9152. <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9153. <Property Name="ManualNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  9154. <Property Name="ManualTypeId" Type="Int32" Nullable="false" />
  9155. <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  9156. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9157. <NavigationProperty Name="FmsManualType" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManual" ToRole="FmsManualType" />
  9158. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManual" ToRole="FmsManualHistory" />
  9159. </EntityType>
  9160. <EntityType Name="FmsManualHistory">
  9161. <Key>
  9162. <PropertyRef Name="SiteId" />
  9163. <PropertyRef Name="ManualId" />
  9164. <PropertyRef Name="HistoryId" />
  9165. </Key>
  9166. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9167. <Property Name="ManualId" Type="Int32" Nullable="false" />
  9168. <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9169. <Property Name="RevisionNo" Type="Int32" />
  9170. <Property Name="FileId" Type="Int32" />
  9171. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9172. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  9173. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9174. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="FmsManualHistory" ToRole="CmFile" />
  9175. <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="FmsManualHistory" ToRole="CmUser" />
  9176. <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManualHistory" ToRole="FmsManual" />
  9177. </EntityType>
  9178. <EntityType Name="FmsManualType">
  9179. <Key>
  9180. <PropertyRef Name="SiteId" />
  9181. <PropertyRef Name="ManualTypeId" />
  9182. </Key>
  9183. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9184. <Property Name="ManualTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9185. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  9186. <Property Name="IsUse" Type="Boolean" />
  9187. <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManualType" ToRole="FmsManual" />
  9188. </EntityType>
  9189. <EntityType Name="FmsMaterialCarriedForward">
  9190. <Key>
  9191. <PropertyRef Name="SiteId" />
  9192. <PropertyRef Name="ClosedDate" />
  9193. <PropertyRef Name="BusinessFieldId" />
  9194. <PropertyRef Name="WarehouseId" />
  9195. <PropertyRef Name="MaterialId" />
  9196. </Key>
  9197. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9198. <Property Name="ClosedDate" Type="DateTime" Nullable="false" Precision="3" />
  9199. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9200. <Property Name="WarehouseId" Type="Int32" Nullable="false" />
  9201. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9202. <Property Name="StockCount" Type="Int32" Nullable="false" />
  9203. <Property Name="StockTotalCost" Type="Int32" Nullable="false" />
  9204. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="FmsMaterialCarriedForward" ToRole="CmBusinessField" />
  9205. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="FmsMaterialCarriedForward" ToRole="CmSite" />
  9206. </EntityType>
  9207. <EntityType Name="FmsMaterialCodeAdjustmentType">
  9208. <Key>
  9209. <PropertyRef Name="AdjustmentTypeId" />
  9210. </Key>
  9211. <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
  9212. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9213. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9214. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialCodeAdjustmentType" ToRole="FmsMaterialRelease" />
  9215. </EntityType>
  9216. <EntityType Name="FmsMaterialCodeClass">
  9217. <Key>
  9218. <PropertyRef Name="SiteId" />
  9219. <PropertyRef Name="MaterialClassId" />
  9220. </Key>
  9221. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9222. <Property Name="MaterialClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9223. <Property Name="ParentMaterialClassId" Type="Int32" />
  9224. <Property Name="Depth" Type="Int32" Nullable="false" />
  9225. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  9226. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  9227. <Property Name="IsUse" Type="Boolean" />
  9228. <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterialCodeClass1" />
  9229. <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass1" ToRole="FmsMaterialCodeClass" />
  9230. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  9231. <NavigationProperty Name="FmsMaterial1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  9232. <NavigationProperty Name="FmsMaterial2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  9233. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="FmsMaterialCodeClass" ToRole="CmSite" />
  9234. </EntityType>
  9235. <EntityType Name="FmsMaterialCodeLocation">
  9236. <Key>
  9237. <PropertyRef Name="SiteId" />
  9238. <PropertyRef Name="LocationId" />
  9239. </Key>
  9240. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9241. <Property Name="LocationId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9242. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9243. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  9244. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9245. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="FmsMaterialCodeLocation" ToRole="CmBusinessField" />
  9246. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterialCodeLocation" ToRole="FmsMaterial" />
  9247. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="FmsMaterialCodeLocation" ToRole="CmSite" />
  9248. </EntityType>
  9249. <EntityType Name="FmsMaterialCodeProgress">
  9250. <Key>
  9251. <PropertyRef Name="ProgressId" />
  9252. </Key>
  9253. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  9254. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9255. <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9256. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialCodeProgress" ToRole="FmsMaterialPurchaseRequest" />
  9257. </EntityType>
  9258. <EntityType Name="FmsMaterialCodePurchaseType">
  9259. <Key>
  9260. <PropertyRef Name="PurchaseTypeId" />
  9261. </Key>
  9262. <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9263. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9264. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9265. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialCodePurchaseType" ToRole="FmsMaterialPurchaseRequest" />
  9266. </EntityType>
  9267. <EntityType Name="FmsMaterialCodeReleaseType">
  9268. <Key>
  9269. <PropertyRef Name="ReleaseTypeId" />
  9270. </Key>
  9271. <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
  9272. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9273. <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  9274. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialCodeReleaseType" ToRole="FmsMaterialRelease" />
  9275. </EntityType>
  9276. <EntityType Name="FmsMaterialCodeType">
  9277. <Key>
  9278. <PropertyRef Name="SiteId" />
  9279. <PropertyRef Name="MaterialTypeId" />
  9280. </Key>
  9281. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9282. <Property Name="MaterialTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9283. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9284. <Property Name="Nickname" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9285. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9286. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterialCodeType" ToRole="FmsMaterial" />
  9287. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="FmsMaterialCodeType" ToRole="CmSite" />
  9288. </EntityType>
  9289. <EntityType Name="FmsMaterialPurchaseOrder">
  9290. <Key>
  9291. <PropertyRef Name="SiteId" />
  9292. <PropertyRef Name="PurchaseOrderId" />
  9293. </Key>
  9294. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9295. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9296. <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9297. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
  9298. <Property Name="TradeCompanyId" Type="Int32" />
  9299. <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
  9300. <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9301. <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  9302. <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9303. <Property Name="StoredDueDate" Type="DateTime" Precision="3" />
  9304. <Property Name="FileId" Type="Int32" />
  9305. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="FmsMaterialPurchaseOrder" ToRole="CmBusinessField" />
  9306. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="FmsMaterialPurchaseOrder" ToRole="CmFile" />
  9307. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="FmsMaterialPurchaseOrder" ToRole="CmUser" />
  9308. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialTradeCompany" />
  9309. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseRequest" />
  9310. <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseOrderMaterial" />
  9311. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialStored" />
  9312. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="FmsMaterialPurchaseOrder" ToRole="CmSite" />
  9313. </EntityType>
  9314. <EntityType Name="FmsMaterialPurchaseOrderMaterial">
  9315. <Key>
  9316. <PropertyRef Name="SiteId" />
  9317. <PropertyRef Name="PurchaseOrderId" />
  9318. <PropertyRef Name="MaterialId" />
  9319. </Key>
  9320. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9321. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9322. <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" />
  9323. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9324. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  9325. <Property Name="UnitCost" Type="Int32" Nullable="false" />
  9326. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterialPurchaseOrder" />
  9327. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterial" />
  9328. </EntityType>
  9329. <EntityType Name="FmsMaterialPurchaseRequest">
  9330. <Key>
  9331. <PropertyRef Name="SiteId" />
  9332. <PropertyRef Name="PurchaseRequestId" />
  9333. </Key>
  9334. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9335. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9336. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9337. <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" />
  9338. <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
  9339. <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9340. <Property Name="PurchaseHopeDate" Type="DateTime" Precision="3" />
  9341. <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  9342. <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" Nullable="false" />
  9343. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  9344. <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
  9345. <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9346. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="FmsMaterialPurchaseRequest" ToRole="CmBusinessField" />
  9347. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
  9348. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
  9349. <NavigationProperty Name="FmsMaterialCodeProgress" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodeProgress" />
  9350. <NavigationProperty Name="FmsMaterialCodePurchaseType" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodePurchaseType" />
  9351. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseOrder" />
  9352. <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseRequestMaterial" />
  9353. <Property Name="bSameOrder" Type="Boolean" />
  9354. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="FmsMaterialPurchaseRequest" ToRole="CmSite" />
  9355. </EntityType>
  9356. <EntityType Name="FmsMaterialPurchaseRequestMaterial">
  9357. <Key>
  9358. <PropertyRef Name="SiteId" />
  9359. <PropertyRef Name="PurchaseRequestId" />
  9360. <PropertyRef Name="MaterialId" />
  9361. </Key>
  9362. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9363. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9364. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
  9365. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9366. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  9367. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterialPurchaseRequest" />
  9368. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterial" />
  9369. </EntityType>
  9370. <EntityType Name="FmsMaterialStored">
  9371. <Key>
  9372. <PropertyRef Name="SiteId" />
  9373. <PropertyRef Name="MaterialStoredId" />
  9374. </Key>
  9375. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9376. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9377. <Property Name="StoredDate" Type="DateTime" Nullable="false" Precision="3" />
  9378. <Property Name="MaterialStoredId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9379. <Property Name="PurchaseOrderId" Type="Int32" />
  9380. <Property Name="WarehouseId" Type="Int32" Nullable="false" />
  9381. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9382. <Property Name="StoredCount" Type="Int32" Nullable="false" />
  9383. <Property Name="RemainStoredCount" Type="Int32" Nullable="false" />
  9384. <Property Name="UnitCost" Type="Int32" Nullable="false" />
  9385. <Property Name="StockCount" Type="Int32" Nullable="false" />
  9386. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9387. <Property Name="StoredUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9388. <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
  9389. <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9390. <Property Name="IsApproval" Type="Boolean" Nullable="false" />
  9391. <Property Name="LocationInWarehouse" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9392. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="FmsMaterialStored" ToRole="CmBusinessField" />
  9393. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
  9394. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
  9395. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialStored" ToRole="FmsMaterialPurchaseOrder" />
  9396. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialStored" ToRole="FmsMaterialWarehouse" />
  9397. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterialStored" ToRole="FmsMaterial" />
  9398. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="FmsMaterialStored" ToRole="CmSite" />
  9399. </EntityType>
  9400. <EntityType Name="FmsMaterialTradeCompany">
  9401. <Key>
  9402. <PropertyRef Name="SiteId" />
  9403. <PropertyRef Name="TradeCompanyId" />
  9404. </Key>
  9405. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9406. <Property Name="TradeCompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9407. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  9408. <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9409. <Property Name="RepresentativeName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9410. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  9411. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  9412. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  9413. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  9414. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  9415. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  9416. <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9417. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9418. <Property Name="HomepageUri" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  9419. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9420. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9421. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterialPurchaseOrder" />
  9422. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterial" />
  9423. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="FmsMaterialTradeCompany" ToRole="CmSite" />
  9424. </EntityType>
  9425. <EntityType Name="FmsMaterialWarehouse">
  9426. <Key>
  9427. <PropertyRef Name="SiteId" />
  9428. <PropertyRef Name="WarehouseId" />
  9429. </Key>
  9430. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9431. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9432. <Property Name="WarehouseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9433. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  9434. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9435. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="FmsMaterialWarehouse" ToRole="CmBusinessField" />
  9436. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterialStored" />
  9437. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterial" />
  9438. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="FmsMaterialWarehouse" ToRole="CmSite" />
  9439. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsEquipment" />
  9440. </EntityType>
  9441. <EntityType Name="FmsPaymentType">
  9442. <Key>
  9443. <PropertyRef Name="SiteId" />
  9444. <PropertyRef Name="PaymentTypeId" />
  9445. </Key>
  9446. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9447. <Property Name="PaymentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9448. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  9449. <Property Name="IsUse" Type="Boolean" />
  9450. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsPaymentType" ToRole="FmsContract" />
  9451. </EntityType>
  9452. <EntityType Name="FmsWorkCodeCauseClass">
  9453. <Key>
  9454. <PropertyRef Name="SiteId" />
  9455. <PropertyRef Name="CauseClassId" />
  9456. </Key>
  9457. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9458. <Property Name="CauseClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9459. <Property Name="ParentId" Type="Int32" Nullable="false" />
  9460. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  9461. <Property Name="IsUse" Type="Boolean" />
  9462. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkCodeCauseClass" ToRole="FmsWorkResult" />
  9463. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="FmsWorkCodeCauseClass" ToRole="CmSite" />
  9464. </EntityType>
  9465. <EntityType Name="FmsWorkCodeCycleUnit">
  9466. <Key>
  9467. <PropertyRef Name="SiteId" />
  9468. <PropertyRef Name="CycleUnitId" />
  9469. </Key>
  9470. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9471. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  9472. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9473. <Property Name="Description" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  9474. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsFacilityCheckItem" />
  9475. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsWorkSchedule" />
  9476. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="FmsWorkCodeCycleUnit" ToRole="CmSite" />
  9477. </EntityType>
  9478. <EntityType Name="FmsWorkCodeEmergency">
  9479. <Key>
  9480. <PropertyRef Name="SiteId" />
  9481. <PropertyRef Name="EmergencyId" />
  9482. </Key>
  9483. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9484. <Property Name="EmergencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9485. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  9486. <Property Name="IsUse" Type="Boolean" />
  9487. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkCodeEmergency" ToRole="FmsWorkOrder" />
  9488. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="FmsWorkCodeEmergency" ToRole="CmSite" />
  9489. </EntityType>
  9490. <EntityType Name="FmsWorkCodeHolidayWorkType">
  9491. <Key>
  9492. <PropertyRef Name="SiteId" />
  9493. <PropertyRef Name="HolidayWorkTypeId" />
  9494. </Key>
  9495. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9496. <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
  9497. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  9498. <Property Name="IsUse" Type="Boolean" />
  9499. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkCodeHolidayWorkType" ToRole="FmsWorkSchedule" />
  9500. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="FmsWorkCodeHolidayWorkType" ToRole="CmSite" />
  9501. </EntityType>
  9502. <EntityType Name="FmsWorkCodeLegalInspectionAgency">
  9503. <Key>
  9504. <PropertyRef Name="SiteId" />
  9505. <PropertyRef Name="InspectionAgencyId" />
  9506. </Key>
  9507. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9508. <Property Name="InspectionAgencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9509. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9510. <Property Name="IsUse" Type="Boolean" />
  9511. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="FmsWorkCodeLegalInspectionAgency" ToRole="CmSite" />
  9512. </EntityType>
  9513. <EntityType Name="FmsWorkCodeProgress">
  9514. <Key>
  9515. <PropertyRef Name="WorkProgressId" />
  9516. </Key>
  9517. <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
  9518. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9519. <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  9520. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkCodeProgress" ToRole="FmsWorkRequest" />
  9521. </EntityType>
  9522. <EntityType Name="FmsWorkCodeType">
  9523. <Key>
  9524. <PropertyRef Name="WorkTypeId" />
  9525. </Key>
  9526. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  9527. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  9528. <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  9529. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsFacilityCheckItem" />
  9530. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkRequest" />
  9531. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkSchedule" />
  9532. </EntityType>
  9533. <EntityType Name="FmsWorkOrder">
  9534. <Key>
  9535. <PropertyRef Name="SiteId" />
  9536. <PropertyRef Name="WorkRequestId" />
  9537. </Key>
  9538. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9539. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9540. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9541. <Property Name="EmergencyId" Type="Int32" />
  9542. <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9543. <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
  9544. <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
  9545. <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  9546. <Property Name="Content" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9547. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="FmsWorkOrder" ToRole="CmBusinessField" />
  9548. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="FmsWorkOrder" ToRole="CmUser" />
  9549. <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkOrder" ToRole="FmsWorkCodeEmergency" />
  9550. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkOrder" ToRole="FmsWorkRequest" />
  9551. <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkOrderToFacility" />
  9552. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkResult" />
  9553. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="FmsWorkOrder" ToRole="CmSite" />
  9554. </EntityType>
  9555. <EntityType Name="FmsWorkOrderToFacility">
  9556. <Key>
  9557. <PropertyRef Name="SiteId" />
  9558. <PropertyRef Name="WorkRequestId" />
  9559. <PropertyRef Name="FacilityCode" />
  9560. </Key>
  9561. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9562. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9563. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9564. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrderToFacility" ToRole="FmsWorkOrder" />
  9565. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="FmsWorkOrderToFacility" ToRole="CmFacility" />
  9566. </EntityType>
  9567. <EntityType Name="FmsWorkRequest">
  9568. <Key>
  9569. <PropertyRef Name="SiteId" />
  9570. <PropertyRef Name="WorkRequestId" />
  9571. </Key>
  9572. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9573. <Property Name="WorkRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9574. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  9575. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9576. <Property Name="WorkScheduleId" Type="Int32" />
  9577. <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
  9578. <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  9579. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9580. <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9581. <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
  9582. <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
  9583. <Property Name="RejectUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9584. <Property Name="RejectDate" Type="DateTime" Precision="3" />
  9585. <Property Name="RejectReason" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  9586. <Property Name="InspectionAgencyId" Type="Int32" />
  9587. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="FmsWorkRequest" ToRole="CmBusinessField" />
  9588. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
  9589. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
  9590. <NavigationProperty Name="FmsWorkCodeProgress" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeProgress" />
  9591. <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeType" />
  9592. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkOrder" />
  9593. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkRequest" ToRole="FmsWorkSchedule" />
  9594. <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkRequestToFacility" />
  9595. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkResult" />
  9596. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="FmsWorkRequest" ToRole="CmSite" />
  9597. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="FmsWorkRequest" ToRole="CmPartner" />
  9598. </EntityType>
  9599. <EntityType Name="FmsWorkRequestToFacility">
  9600. <Key>
  9601. <PropertyRef Name="SiteId" />
  9602. <PropertyRef Name="WorkRequestId" />
  9603. <PropertyRef Name="FacilityCode" />
  9604. </Key>
  9605. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9606. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9607. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9608. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequestToFacility" ToRole="FmsWorkRequest" />
  9609. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="FmsWorkRequestToFacility" ToRole="CmFacility" />
  9610. </EntityType>
  9611. <EntityType Name="FmsWorkResult">
  9612. <Key>
  9613. <PropertyRef Name="SiteId" />
  9614. <PropertyRef Name="WorkRequestId" />
  9615. </Key>
  9616. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9617. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9618. <Property Name="WorkerUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9619. <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
  9620. <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
  9621. <Property Name="CauseClassId" Type="Int32" />
  9622. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9623. <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
  9624. <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9625. <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
  9626. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
  9627. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
  9628. <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkResult" ToRole="FmsWorkCodeCauseClass" />
  9629. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkOrder" />
  9630. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkResult" ToRole="FmsWorkRequest" />
  9631. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItem" />
  9632. <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultFile" />
  9633. <NavigationProperty Name="FmsWorkResultLaw" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultLaw" />
  9634. <NavigationProperty Name="FmsWorkResultToFacility" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkResultToFacility" />
  9635. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsMaterialRelease" />
  9636. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItemMaterial" />
  9637. <Property Name="ConfirmDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9638. </EntityType>
  9639. <EntityType Name="FmsWorkResultCheckItem">
  9640. <Key>
  9641. <PropertyRef Name="CheckItemId" />
  9642. </Key>
  9643. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9644. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9645. <Property Name="FacilityCode" Type="Int32" />
  9646. <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9647. <Property Name="BoolResult" Type="Boolean" />
  9648. <Property Name="TextResult" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9649. <Property Name="CheckDate" Type="DateTime" Nullable="false" Precision="3" />
  9650. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsFacilityCheckItem" />
  9651. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResult" />
  9652. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResultCheckItemMaterial" />
  9653. <Property Name="FileId1" Type="Int32" />
  9654. <Property Name="FileId2" Type="Int32" />
  9655. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
  9656. <NavigationProperty Name="CmFile1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
  9657. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="FmsWorkResultCheckItem" ToRole="CmFacility" />
  9658. </EntityType>
  9659. <EntityType Name="FmsWorkResultCheckItemMaterial">
  9660. <Key>
  9661. <PropertyRef Name="CheckItemMaterialId" />
  9662. </Key>
  9663. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9664. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9665. <Property Name="CheckItemId" Type="Int32" Nullable="false" />
  9666. <Property Name="CheckItemMaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9667. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9668. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  9669. <Property Name="MaterialCode" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  9670. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  9671. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResultCheckItem" />
  9672. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsMaterial" />
  9673. <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResult" />
  9674. </EntityType>
  9675. <EntityType Name="FmsWorkResultFile">
  9676. <Key>
  9677. <PropertyRef Name="SiteId" />
  9678. <PropertyRef Name="WorkRequestId" />
  9679. </Key>
  9680. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9681. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9682. <Property Name="FileId" Type="Int32" Nullable="false" />
  9683. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="FmsWorkResultFile" ToRole="CmFile" />
  9684. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResultFile" ToRole="FmsWorkResult" />
  9685. </EntityType>
  9686. <EntityType Name="FmsWorkResultLaw">
  9687. <Key>
  9688. <PropertyRef Name="SiteId" />
  9689. <PropertyRef Name="WorkRequestId" />
  9690. </Key>
  9691. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9692. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9693. <Property Name="CertificationNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  9694. <Property Name="CheckCommission" Type="Decimal" Precision="10" Scale="0" />
  9695. <Property Name="CheckResult" Type="Boolean" />
  9696. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResultLaw" ToRole="FmsWorkResult" />
  9697. </EntityType>
  9698. <EntityType Name="FmsWorkResultToFacility">
  9699. <Key>
  9700. <PropertyRef Name="SiteId" />
  9701. <PropertyRef Name="WorkRequestId" />
  9702. <PropertyRef Name="FacilityCode" />
  9703. </Key>
  9704. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9705. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9706. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9707. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResultToFacility" ToRole="FmsWorkResult" />
  9708. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="FmsWorkResultToFacility" ToRole="CmFacility" />
  9709. </EntityType>
  9710. <EntityType Name="FmsWorkScheduleToFacility">
  9711. <Key>
  9712. <PropertyRef Name="SiteId" />
  9713. <PropertyRef Name="WorkScheduleId" />
  9714. <PropertyRef Name="FacilityCode" />
  9715. </Key>
  9716. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9717. <Property Name="WorkScheduleId" Type="Int32" Nullable="false" />
  9718. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9719. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkScheduleToFacility" ToRole="FmsWorkSchedule" />
  9720. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="FmsWorkScheduleToFacility" ToRole="CmFacility" />
  9721. </EntityType>
  9722. <EntityType Name="sysdiagrams">
  9723. <Key>
  9724. <PropertyRef Name="diagram_id" />
  9725. </Key>
  9726. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  9727. <Property Name="principal_id" Type="Int32" Nullable="false" />
  9728. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9729. <Property Name="version" Type="Int32" />
  9730. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  9731. </EntityType>
  9732. <Association Name="FK__BemsMonitoringPo__1372D2FE">
  9733. <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
  9734. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  9735. <ReferentialConstraint>
  9736. <Principal Role="BemsAnalysisType">
  9737. <PropertyRef Name="SiteId" />
  9738. <PropertyRef Name="AnalysisType" />
  9739. </Principal>
  9740. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  9741. <PropertyRef Name="SiteId" />
  9742. <PropertyRef Name="AnalysisType" />
  9743. </Dependent>
  9744. </ReferentialConstraint>
  9745. </Association>
  9746. <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
  9747. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9748. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  9749. <ReferentialConstraint>
  9750. <Principal Role="BemsFacilityType">
  9751. <PropertyRef Name="FacilityTypeId" />
  9752. </Principal>
  9753. <Dependent Role="BemsControlPointHistory">
  9754. <PropertyRef Name="FacilityTypeId" />
  9755. </Dependent>
  9756. </ReferentialConstraint>
  9757. </Association>
  9758. <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
  9759. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9760. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  9761. <ReferentialConstraint>
  9762. <Principal Role="BemsMonitoringPoint">
  9763. <PropertyRef Name="SiteId" />
  9764. <PropertyRef Name="FacilityCode" />
  9765. <PropertyRef Name="PropertyId" />
  9766. </Principal>
  9767. <Dependent Role="BemsControlPointHistory">
  9768. <PropertyRef Name="SiteId" />
  9769. <PropertyRef Name="FacilityCode" />
  9770. <PropertyRef Name="PropertyId" />
  9771. </Dependent>
  9772. </ReferentialConstraint>
  9773. </Association>
  9774. <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
  9775. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9776. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  9777. <ReferentialConstraint>
  9778. <Principal Role="BemsFacilityType">
  9779. <PropertyRef Name="FacilityTypeId" />
  9780. </Principal>
  9781. <Dependent Role="BemsMonitoringPointBaseData">
  9782. <PropertyRef Name="FacilityTypeId" />
  9783. </Dependent>
  9784. </ReferentialConstraint>
  9785. </Association>
  9786. <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  9787. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9788. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  9789. <ReferentialConstraint>
  9790. <Principal Role="BemsFacilityType">
  9791. <PropertyRef Name="FacilityTypeId" />
  9792. </Principal>
  9793. <Dependent Role="BemsMonitoringPointHistory15min">
  9794. <PropertyRef Name="FacilityTypeId" />
  9795. </Dependent>
  9796. </ReferentialConstraint>
  9797. </Association>
  9798. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  9799. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9800. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  9801. <ReferentialConstraint>
  9802. <Principal Role="BemsFacilityType">
  9803. <PropertyRef Name="FacilityTypeId" />
  9804. </Principal>
  9805. <Dependent Role="BemsMonitoringPointHistoryDaily">
  9806. <PropertyRef Name="FacilityTypeId" />
  9807. </Dependent>
  9808. </ReferentialConstraint>
  9809. </Association>
  9810. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  9811. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9812. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  9813. <ReferentialConstraint>
  9814. <Principal Role="BemsFacilityType">
  9815. <PropertyRef Name="FacilityTypeId" />
  9816. </Principal>
  9817. <Dependent Role="BemsMonitoringPointHistoryHourly">
  9818. <PropertyRef Name="FacilityTypeId" />
  9819. </Dependent>
  9820. </ReferentialConstraint>
  9821. </Association>
  9822. <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  9823. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9824. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  9825. <ReferentialConstraint>
  9826. <Principal Role="BemsFacilityType">
  9827. <PropertyRef Name="FacilityTypeId" />
  9828. </Principal>
  9829. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  9830. <PropertyRef Name="FacilityTypeId" />
  9831. </Dependent>
  9832. </ReferentialConstraint>
  9833. </Association>
  9834. <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
  9835. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9836. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9837. <ReferentialConstraint>
  9838. <Principal Role="BemsFacilityType">
  9839. <PropertyRef Name="FacilityTypeId" />
  9840. </Principal>
  9841. <Dependent Role="BemsMonitoringPoint">
  9842. <PropertyRef Name="FacilityTypeId" />
  9843. </Dependent>
  9844. </ReferentialConstraint>
  9845. </Association>
  9846. <Association Name="FK__BemsFormula__BemsFormulaBase">
  9847. <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
  9848. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
  9849. <ReferentialConstraint>
  9850. <Principal Role="BemsFormulaBase">
  9851. <PropertyRef Name="FacilityTypeId" />
  9852. <PropertyRef Name="FormulaId" />
  9853. </Principal>
  9854. <Dependent Role="BemsFormula">
  9855. <PropertyRef Name="FacilityTypeId" />
  9856. <PropertyRef Name="FormulaId" />
  9857. </Dependent>
  9858. </ReferentialConstraint>
  9859. </Association>
  9860. <Association Name="FK__BemsFormulaParameter__BemsFormula">
  9861. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  9862. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  9863. <ReferentialConstraint>
  9864. <Principal Role="BemsFormula">
  9865. <PropertyRef Name="SiteId" />
  9866. <PropertyRef Name="FacilityTypeId" />
  9867. <PropertyRef Name="FacilityCode" />
  9868. <PropertyRef Name="FormulaId" />
  9869. </Principal>
  9870. <Dependent Role="BemsFormulaParameter">
  9871. <PropertyRef Name="SiteId" />
  9872. <PropertyRef Name="FacilityTypeId" />
  9873. <PropertyRef Name="FacilityCode" />
  9874. <PropertyRef Name="FormulaId" />
  9875. </Dependent>
  9876. </ReferentialConstraint>
  9877. </Association>
  9878. <Association Name="FK__BemsFormulaParameter__BemsMonitoringPoint">
  9879. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9880. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  9881. <ReferentialConstraint>
  9882. <Principal Role="BemsMonitoringPoint">
  9883. <PropertyRef Name="SiteId" />
  9884. <PropertyRef Name="FacilityCode" />
  9885. <PropertyRef Name="PropertyId" />
  9886. </Principal>
  9887. <Dependent Role="BemsFormulaParameter">
  9888. <PropertyRef Name="SiteId" />
  9889. <PropertyRef Name="ParameterFacilityCode" />
  9890. <PropertyRef Name="ParameterPropertyId" />
  9891. </Dependent>
  9892. </ReferentialConstraint>
  9893. </Association>
  9894. <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
  9895. <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
  9896. <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
  9897. <ReferentialConstraint>
  9898. <Principal Role="BemsFormulaTable">
  9899. <PropertyRef Name="TableId" />
  9900. </Principal>
  9901. <Dependent Role="BemsFormulaTableValue">
  9902. <PropertyRef Name="TableId" />
  9903. </Dependent>
  9904. </ReferentialConstraint>
  9905. </Association>
  9906. <Association Name="FK__BemsMonitoringPo__155B1B70">
  9907. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9908. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  9909. <ReferentialConstraint>
  9910. <Principal Role="BemsMonitoringPoint">
  9911. <PropertyRef Name="SiteId" />
  9912. <PropertyRef Name="FacilityCode" />
  9913. <PropertyRef Name="PropertyId" />
  9914. </Principal>
  9915. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  9916. <PropertyRef Name="SiteId" />
  9917. <PropertyRef Name="FacilityCode" />
  9918. <PropertyRef Name="PropertyId" />
  9919. </Dependent>
  9920. </ReferentialConstraint>
  9921. </Association>
  9922. <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
  9923. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  9924. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9925. <ReferentialConstraint>
  9926. <Principal Role="BemsServiceType">
  9927. <PropertyRef Name="ServiceTypeId" />
  9928. </Principal>
  9929. <Dependent Role="BemsMonitoringPoint">
  9930. <PropertyRef Name="ServiceTypeId" />
  9931. </Dependent>
  9932. </ReferentialConstraint>
  9933. </Association>
  9934. <Association Name="FK__BemsMonitoringPoint__CmBuilding">
  9935. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
  9936. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9937. <ReferentialConstraint>
  9938. <Principal Role="CmBuilding">
  9939. <PropertyRef Name="SiteId" />
  9940. <PropertyRef Name="BuildingId" />
  9941. </Principal>
  9942. <Dependent Role="BemsMonitoringPoint">
  9943. <PropertyRef Name="SiteId" />
  9944. <PropertyRef Name="BuildingId" />
  9945. </Dependent>
  9946. </ReferentialConstraint>
  9947. </Association>
  9948. <Association Name="FK__BemsMonitoringPoint__CmFloor">
  9949. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
  9950. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9951. <ReferentialConstraint>
  9952. <Principal Role="CmFloor">
  9953. <PropertyRef Name="SiteId" />
  9954. <PropertyRef Name="BuildingId" />
  9955. <PropertyRef Name="FloorId" />
  9956. </Principal>
  9957. <Dependent Role="BemsMonitoringPoint">
  9958. <PropertyRef Name="SiteId" />
  9959. <PropertyRef Name="BuildingId" />
  9960. <PropertyRef Name="FloorId" />
  9961. </Dependent>
  9962. </ReferentialConstraint>
  9963. </Association>
  9964. <Association Name="FK__BemsMonitoringPoint__CmZone">
  9965. <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
  9966. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9967. <ReferentialConstraint>
  9968. <Principal Role="CmZone">
  9969. <PropertyRef Name="SiteId" />
  9970. <PropertyRef Name="BuildingId" />
  9971. <PropertyRef Name="FloorId" />
  9972. <PropertyRef Name="ZoneId" />
  9973. </Principal>
  9974. <Dependent Role="BemsMonitoringPoint">
  9975. <PropertyRef Name="SiteId" />
  9976. <PropertyRef Name="BuildingId" />
  9977. <PropertyRef Name="FloorId" />
  9978. <PropertyRef Name="ZoneId" />
  9979. </Dependent>
  9980. </ReferentialConstraint>
  9981. </Association>
  9982. <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  9983. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9984. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  9985. <ReferentialConstraint>
  9986. <Principal Role="BemsMonitoringPoint">
  9987. <PropertyRef Name="SiteId" />
  9988. <PropertyRef Name="FacilityCode" />
  9989. <PropertyRef Name="PropertyId" />
  9990. </Principal>
  9991. <Dependent Role="BemsMonitoringPointHistory15min">
  9992. <PropertyRef Name="SiteId" />
  9993. <PropertyRef Name="FacilityCode" />
  9994. <PropertyRef Name="PropertyId" />
  9995. </Dependent>
  9996. </ReferentialConstraint>
  9997. </Association>
  9998. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  9999. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  10000. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  10001. <ReferentialConstraint>
  10002. <Principal Role="BemsMonitoringPoint">
  10003. <PropertyRef Name="SiteId" />
  10004. <PropertyRef Name="FacilityCode" />
  10005. <PropertyRef Name="PropertyId" />
  10006. </Principal>
  10007. <Dependent Role="BemsMonitoringPointHistoryDaily">
  10008. <PropertyRef Name="SiteId" />
  10009. <PropertyRef Name="FacilityCode" />
  10010. <PropertyRef Name="PropertyId" />
  10011. </Dependent>
  10012. </ReferentialConstraint>
  10013. </Association>
  10014. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  10015. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  10016. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  10017. <ReferentialConstraint>
  10018. <Principal Role="BemsMonitoringPoint">
  10019. <PropertyRef Name="SiteId" />
  10020. <PropertyRef Name="FacilityCode" />
  10021. <PropertyRef Name="PropertyId" />
  10022. </Principal>
  10023. <Dependent Role="BemsMonitoringPointHistoryHourly">
  10024. <PropertyRef Name="SiteId" />
  10025. <PropertyRef Name="FacilityCode" />
  10026. <PropertyRef Name="PropertyId" />
  10027. </Dependent>
  10028. </ReferentialConstraint>
  10029. </Association>
  10030. <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
  10031. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  10032. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  10033. <ReferentialConstraint>
  10034. <Principal Role="BemsServiceType">
  10035. <PropertyRef Name="ServiceTypeId" />
  10036. </Principal>
  10037. <Dependent Role="BemsMonitoringPointBaseData">
  10038. <PropertyRef Name="ServiceTypeId" />
  10039. </Dependent>
  10040. </ReferentialConstraint>
  10041. </Association>
  10042. <Association Name="FK_CmAnnouncement_CmBusinessField">
  10043. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10044. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  10045. <ReferentialConstraint>
  10046. <Principal Role="CmBusinessField">
  10047. <PropertyRef Name="SiteId" />
  10048. <PropertyRef Name="BusinessFieldId" />
  10049. </Principal>
  10050. <Dependent Role="CmAnnouncement">
  10051. <PropertyRef Name="SiteId" />
  10052. <PropertyRef Name="BusinessFieldId" />
  10053. </Dependent>
  10054. </ReferentialConstraint>
  10055. </Association>
  10056. <Association Name="FK_CmAnnouncement_CmFile">
  10057. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10058. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  10059. <ReferentialConstraint>
  10060. <Principal Role="CmFile">
  10061. <PropertyRef Name="SiteId" />
  10062. <PropertyRef Name="FileId" />
  10063. </Principal>
  10064. <Dependent Role="CmAnnouncement">
  10065. <PropertyRef Name="SiteId" />
  10066. <PropertyRef Name="FileId" />
  10067. </Dependent>
  10068. </ReferentialConstraint>
  10069. </Association>
  10070. <Association Name="FK_CmAnnouncement_CmUser">
  10071. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10072. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  10073. <ReferentialConstraint>
  10074. <Principal Role="CmUser">
  10075. <PropertyRef Name="SiteId" />
  10076. <PropertyRef Name="UserId" />
  10077. </Principal>
  10078. <Dependent Role="CmAnnouncement">
  10079. <PropertyRef Name="SiteId" />
  10080. <PropertyRef Name="RegisterUserId" />
  10081. </Dependent>
  10082. </ReferentialConstraint>
  10083. </Association>
  10084. <Association Name="FK__CmFloor__3CF40B7E">
  10085. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  10086. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
  10087. <ReferentialConstraint>
  10088. <Principal Role="CmBuilding">
  10089. <PropertyRef Name="SiteId" />
  10090. <PropertyRef Name="BuildingId" />
  10091. </Principal>
  10092. <Dependent Role="CmFloor">
  10093. <PropertyRef Name="SiteId" />
  10094. <PropertyRef Name="BuildingId" />
  10095. </Dependent>
  10096. </ReferentialConstraint>
  10097. </Association>
  10098. <Association Name="FK__CmZone__CmBuilding">
  10099. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  10100. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  10101. <ReferentialConstraint>
  10102. <Principal Role="CmBuilding">
  10103. <PropertyRef Name="SiteId" />
  10104. <PropertyRef Name="BuildingId" />
  10105. </Principal>
  10106. <Dependent Role="CmZone">
  10107. <PropertyRef Name="SiteId" />
  10108. <PropertyRef Name="BuildingId" />
  10109. </Dependent>
  10110. </ReferentialConstraint>
  10111. </Association>
  10112. <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
  10113. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  10114. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  10115. <ReferentialConstraint>
  10116. <Principal Role="CmBuilding">
  10117. <PropertyRef Name="SiteId" />
  10118. <PropertyRef Name="BuildingId" />
  10119. </Principal>
  10120. <Dependent Role="CmZoneTempHumiSet">
  10121. <PropertyRef Name="SiteId" />
  10122. <PropertyRef Name="BuildingId" />
  10123. </Dependent>
  10124. </ReferentialConstraint>
  10125. </Association>
  10126. <Association Name="FK__CmFacilityManual__7BE56230">
  10127. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10128. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  10129. <ReferentialConstraint>
  10130. <Principal Role="CmBusinessField">
  10131. <PropertyRef Name="SiteId" />
  10132. <PropertyRef Name="BusinessFieldId" />
  10133. </Principal>
  10134. <Dependent Role="FmsFacilityManual">
  10135. <PropertyRef Name="SiteId" />
  10136. <PropertyRef Name="BusinessFieldId" />
  10137. </Dependent>
  10138. </ReferentialConstraint>
  10139. </Association>
  10140. <Association Name="FK__FmsLicense__CmBusinessField">
  10141. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  10142. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  10143. <ReferentialConstraint>
  10144. <Principal Role="CmBusinessField">
  10145. <PropertyRef Name="SiteId" />
  10146. <PropertyRef Name="BusinessFieldId" />
  10147. </Principal>
  10148. <Dependent Role="FmsLicense">
  10149. <PropertyRef Name="SiteId" />
  10150. <PropertyRef Name="BusinessFieldId" />
  10151. </Dependent>
  10152. </ReferentialConstraint>
  10153. </Association>
  10154. <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
  10155. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10156. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  10157. <ReferentialConstraint>
  10158. <Principal Role="CmBusinessField">
  10159. <PropertyRef Name="SiteId" />
  10160. <PropertyRef Name="BusinessFieldId" />
  10161. </Principal>
  10162. <Dependent Role="FmsMaterialCarriedForward">
  10163. <PropertyRef Name="SiteId" />
  10164. <PropertyRef Name="BusinessFieldId" />
  10165. </Dependent>
  10166. </ReferentialConstraint>
  10167. </Association>
  10168. <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
  10169. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10170. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  10171. <ReferentialConstraint>
  10172. <Principal Role="CmBusinessField">
  10173. <PropertyRef Name="SiteId" />
  10174. <PropertyRef Name="BusinessFieldId" />
  10175. </Principal>
  10176. <Dependent Role="FmsMaterialCodeLocation">
  10177. <PropertyRef Name="SiteId" />
  10178. <PropertyRef Name="BusinessFieldId" />
  10179. </Dependent>
  10180. </ReferentialConstraint>
  10181. </Association>
  10182. <Association Name="FK__FmsMaterialOrder__CmBusinessField">
  10183. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10184. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  10185. <ReferentialConstraint>
  10186. <Principal Role="CmBusinessField">
  10187. <PropertyRef Name="SiteId" />
  10188. <PropertyRef Name="BusinessFieldId" />
  10189. </Principal>
  10190. <Dependent Role="FmsMaterialPurchaseOrder">
  10191. <PropertyRef Name="SiteId" />
  10192. <PropertyRef Name="BusinessFieldId" />
  10193. </Dependent>
  10194. </ReferentialConstraint>
  10195. </Association>
  10196. <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
  10197. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10198. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  10199. <ReferentialConstraint>
  10200. <Principal Role="CmBusinessField">
  10201. <PropertyRef Name="SiteId" />
  10202. <PropertyRef Name="BusinessFieldId" />
  10203. </Principal>
  10204. <Dependent Role="FmsMaterialPurchaseRequest">
  10205. <PropertyRef Name="SiteId" />
  10206. <PropertyRef Name="BusinessFieldId" />
  10207. </Dependent>
  10208. </ReferentialConstraint>
  10209. </Association>
  10210. <Association Name="FK__FmsMaterialStored__CmBusinessField">
  10211. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10212. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  10213. <ReferentialConstraint>
  10214. <Principal Role="CmBusinessField">
  10215. <PropertyRef Name="SiteId" />
  10216. <PropertyRef Name="BusinessFieldId" />
  10217. </Principal>
  10218. <Dependent Role="FmsMaterialStored">
  10219. <PropertyRef Name="SiteId" />
  10220. <PropertyRef Name="BusinessFieldId" />
  10221. </Dependent>
  10222. </ReferentialConstraint>
  10223. </Association>
  10224. <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
  10225. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10226. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  10227. <ReferentialConstraint>
  10228. <Principal Role="CmBusinessField">
  10229. <PropertyRef Name="SiteId" />
  10230. <PropertyRef Name="BusinessFieldId" />
  10231. </Principal>
  10232. <Dependent Role="FmsMaterialWarehouse">
  10233. <PropertyRef Name="SiteId" />
  10234. <PropertyRef Name="BusinessFieldId" />
  10235. </Dependent>
  10236. </ReferentialConstraint>
  10237. </Association>
  10238. <Association Name="FK__FmsWorkOrder__CmBusinessField">
  10239. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10240. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  10241. <ReferentialConstraint>
  10242. <Principal Role="CmBusinessField">
  10243. <PropertyRef Name="SiteId" />
  10244. <PropertyRef Name="BusinessFieldId" />
  10245. </Principal>
  10246. <Dependent Role="FmsWorkOrder">
  10247. <PropertyRef Name="SiteId" />
  10248. <PropertyRef Name="BusinessFieldId" />
  10249. </Dependent>
  10250. </ReferentialConstraint>
  10251. </Association>
  10252. <Association Name="FK__FmsWorkRequest__CmBusinessField">
  10253. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10254. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  10255. <ReferentialConstraint>
  10256. <Principal Role="CmBusinessField">
  10257. <PropertyRef Name="SiteId" />
  10258. <PropertyRef Name="BusinessFieldId" />
  10259. </Principal>
  10260. <Dependent Role="FmsWorkRequest">
  10261. <PropertyRef Name="SiteId" />
  10262. <PropertyRef Name="BusinessFieldId" />
  10263. </Dependent>
  10264. </ReferentialConstraint>
  10265. </Association>
  10266. <Association Name="FK_CmUser_CmBusinessField">
  10267. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  10268. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10269. <ReferentialConstraint>
  10270. <Principal Role="CmBusinessField">
  10271. <PropertyRef Name="SiteId" />
  10272. <PropertyRef Name="BusinessFieldId" />
  10273. </Principal>
  10274. <Dependent Role="CmUser">
  10275. <PropertyRef Name="SiteId" />
  10276. <PropertyRef Name="BusinessFieldId" />
  10277. </Dependent>
  10278. </ReferentialConstraint>
  10279. </Association>
  10280. <Association Name="FK__CmCompany__345EC57D">
  10281. <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
  10282. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  10283. <ReferentialConstraint>
  10284. <Principal Role="CmCompanyType">
  10285. <PropertyRef Name="SiteId" />
  10286. <PropertyRef Name="CompanyTypeId" />
  10287. </Principal>
  10288. <Dependent Role="CmCompany">
  10289. <PropertyRef Name="SiteId" />
  10290. <PropertyRef Name="CompanyTypeId" />
  10291. </Dependent>
  10292. </ReferentialConstraint>
  10293. </Association>
  10294. <Association Name="FK__CmDepartment__3552E9B6">
  10295. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
  10296. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
  10297. <ReferentialConstraint>
  10298. <Principal Role="CmCompany">
  10299. <PropertyRef Name="SiteId" />
  10300. <PropertyRef Name="CompanyId" />
  10301. </Principal>
  10302. <Dependent Role="CmDepartment">
  10303. <PropertyRef Name="SiteId" />
  10304. <PropertyRef Name="CompanyId" />
  10305. </Dependent>
  10306. </ReferentialConstraint>
  10307. </Association>
  10308. <Association Name="FK_CmUser_CmCompany">
  10309. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  10310. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10311. <ReferentialConstraint>
  10312. <Principal Role="CmCompany">
  10313. <PropertyRef Name="SiteId" />
  10314. <PropertyRef Name="CompanyId" />
  10315. </Principal>
  10316. <Dependent Role="CmUser">
  10317. <PropertyRef Name="SiteId" />
  10318. <PropertyRef Name="CompanyId" />
  10319. </Dependent>
  10320. </ReferentialConstraint>
  10321. </Association>
  10322. <Association Name="FK_CmUser_CmDepartment">
  10323. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  10324. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10325. <ReferentialConstraint>
  10326. <Principal Role="CmDepartment">
  10327. <PropertyRef Name="SiteId" />
  10328. <PropertyRef Name="CompanyId" />
  10329. <PropertyRef Name="DepartmentId" />
  10330. </Principal>
  10331. <Dependent Role="CmUser">
  10332. <PropertyRef Name="SiteId" />
  10333. <PropertyRef Name="CompanyId" />
  10334. <PropertyRef Name="DepartmentId" />
  10335. </Dependent>
  10336. </ReferentialConstraint>
  10337. </Association>
  10338. <Association Name="FK_FmsAccident_CmDepartment">
  10339. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  10340. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10341. <ReferentialConstraint>
  10342. <Principal Role="CmDepartment">
  10343. <PropertyRef Name="SiteId" />
  10344. <PropertyRef Name="CompanyId" />
  10345. <PropertyRef Name="DepartmentId" />
  10346. </Principal>
  10347. <Dependent Role="FmsAccident">
  10348. <PropertyRef Name="SiteId" />
  10349. <PropertyRef Name="CompanyId" />
  10350. <PropertyRef Name="DepartmentId" />
  10351. </Dependent>
  10352. </ReferentialConstraint>
  10353. </Association>
  10354. <Association Name="FK__CmFacilityFile__CmFile">
  10355. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  10356. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
  10357. <ReferentialConstraint>
  10358. <Principal Role="CmFile">
  10359. <PropertyRef Name="SiteId" />
  10360. <PropertyRef Name="FileId" />
  10361. </Principal>
  10362. <Dependent Role="CmFacilityFile">
  10363. <PropertyRef Name="SiteId" />
  10364. <PropertyRef Name="FileId" />
  10365. </Dependent>
  10366. </ReferentialConstraint>
  10367. </Association>
  10368. <Association Name="FK__CmFile__CmFileCategory">
  10369. <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
  10370. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  10371. <ReferentialConstraint>
  10372. <Principal Role="CmFileCategory">
  10373. <PropertyRef Name="FileCategoryId" />
  10374. </Principal>
  10375. <Dependent Role="CmFile">
  10376. <PropertyRef Name="FileCategoryId" />
  10377. </Dependent>
  10378. </ReferentialConstraint>
  10379. </Association>
  10380. <Association Name="FK__FmsDrawingHistor__04DA9AE4">
  10381. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10382. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  10383. <ReferentialConstraint>
  10384. <Principal Role="CmFile">
  10385. <PropertyRef Name="SiteId" />
  10386. <PropertyRef Name="FileId" />
  10387. </Principal>
  10388. <Dependent Role="FmsDrawingHistory">
  10389. <PropertyRef Name="SiteId" />
  10390. <PropertyRef Name="FileId" />
  10391. </Dependent>
  10392. </ReferentialConstraint>
  10393. </Association>
  10394. <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
  10395. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10396. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  10397. <ReferentialConstraint>
  10398. <Principal Role="CmFile">
  10399. <PropertyRef Name="SiteId" />
  10400. <PropertyRef Name="FileId" />
  10401. </Principal>
  10402. <Dependent Role="FmsMaterialPurchaseOrder">
  10403. <PropertyRef Name="SiteId" />
  10404. <PropertyRef Name="FileId" />
  10405. </Dependent>
  10406. </ReferentialConstraint>
  10407. </Association>
  10408. <Association Name="FK__FmsWorkResultFile__CmFile">
  10409. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  10410. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
  10411. <ReferentialConstraint>
  10412. <Principal Role="CmFile">
  10413. <PropertyRef Name="SiteId" />
  10414. <PropertyRef Name="FileId" />
  10415. </Principal>
  10416. <Dependent Role="FmsWorkResultFile">
  10417. <PropertyRef Name="SiteId" />
  10418. <PropertyRef Name="FileId" />
  10419. </Dependent>
  10420. </ReferentialConstraint>
  10421. </Association>
  10422. <Association Name="FK_FmsAccident_CmFile1">
  10423. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10424. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10425. <ReferentialConstraint>
  10426. <Principal Role="CmFile">
  10427. <PropertyRef Name="SiteId" />
  10428. <PropertyRef Name="FileId" />
  10429. </Principal>
  10430. <Dependent Role="FmsAccident">
  10431. <PropertyRef Name="SiteId" />
  10432. <PropertyRef Name="FileId1" />
  10433. </Dependent>
  10434. </ReferentialConstraint>
  10435. </Association>
  10436. <Association Name="FK_FmsAccident_CmFile2">
  10437. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10438. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10439. <ReferentialConstraint>
  10440. <Principal Role="CmFile">
  10441. <PropertyRef Name="SiteId" />
  10442. <PropertyRef Name="FileId" />
  10443. </Principal>
  10444. <Dependent Role="FmsAccident">
  10445. <PropertyRef Name="SiteId" />
  10446. <PropertyRef Name="FileId2" />
  10447. </Dependent>
  10448. </ReferentialConstraint>
  10449. </Association>
  10450. <Association Name="FK_FmsAccident_CmFile3">
  10451. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10452. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10453. <ReferentialConstraint>
  10454. <Principal Role="CmFile">
  10455. <PropertyRef Name="SiteId" />
  10456. <PropertyRef Name="FileId" />
  10457. </Principal>
  10458. <Dependent Role="FmsAccident">
  10459. <PropertyRef Name="SiteId" />
  10460. <PropertyRef Name="FileId3" />
  10461. </Dependent>
  10462. </ReferentialConstraint>
  10463. </Association>
  10464. <Association Name="FK_FmsConstruction_CmFile1">
  10465. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10466. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10467. <ReferentialConstraint>
  10468. <Principal Role="CmFile">
  10469. <PropertyRef Name="SiteId" />
  10470. <PropertyRef Name="FileId" />
  10471. </Principal>
  10472. <Dependent Role="FmsConstruction">
  10473. <PropertyRef Name="SiteId" />
  10474. <PropertyRef Name="FileId1" />
  10475. </Dependent>
  10476. </ReferentialConstraint>
  10477. </Association>
  10478. <Association Name="FK_FmsConstruction_CmFile2">
  10479. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10480. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10481. <ReferentialConstraint>
  10482. <Principal Role="CmFile">
  10483. <PropertyRef Name="SiteId" />
  10484. <PropertyRef Name="FileId" />
  10485. </Principal>
  10486. <Dependent Role="FmsConstruction">
  10487. <PropertyRef Name="SiteId" />
  10488. <PropertyRef Name="FileId2" />
  10489. </Dependent>
  10490. </ReferentialConstraint>
  10491. </Association>
  10492. <Association Name="FK_FmsConstruction_CmFile3">
  10493. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10494. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10495. <ReferentialConstraint>
  10496. <Principal Role="CmFile">
  10497. <PropertyRef Name="SiteId" />
  10498. <PropertyRef Name="FileId" />
  10499. </Principal>
  10500. <Dependent Role="FmsConstruction">
  10501. <PropertyRef Name="SiteId" />
  10502. <PropertyRef Name="FileId3" />
  10503. </Dependent>
  10504. </ReferentialConstraint>
  10505. </Association>
  10506. <Association Name="FK_FmsManualHistory_CmFile">
  10507. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10508. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  10509. <ReferentialConstraint>
  10510. <Principal Role="CmFile">
  10511. <PropertyRef Name="SiteId" />
  10512. <PropertyRef Name="FileId" />
  10513. </Principal>
  10514. <Dependent Role="FmsManualHistory">
  10515. <PropertyRef Name="SiteId" />
  10516. <PropertyRef Name="FileId" />
  10517. </Dependent>
  10518. </ReferentialConstraint>
  10519. </Association>
  10520. <Association Name="FK__CmLocation__3DE82FB7">
  10521. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  10522. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  10523. <ReferentialConstraint>
  10524. <Principal Role="CmFloor">
  10525. <PropertyRef Name="SiteId" />
  10526. <PropertyRef Name="BuildingId" />
  10527. <PropertyRef Name="FloorId" />
  10528. </Principal>
  10529. <Dependent Role="CmZone">
  10530. <PropertyRef Name="SiteId" />
  10531. <PropertyRef Name="BuildingId" />
  10532. <PropertyRef Name="FloorId" />
  10533. </Dependent>
  10534. </ReferentialConstraint>
  10535. </Association>
  10536. <Association Name="FK_CmZoneTempHumiSet_CmFloor">
  10537. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  10538. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  10539. <ReferentialConstraint>
  10540. <Principal Role="CmFloor">
  10541. <PropertyRef Name="SiteId" />
  10542. <PropertyRef Name="BuildingId" />
  10543. <PropertyRef Name="FloorId" />
  10544. </Principal>
  10545. <Dependent Role="CmZoneTempHumiSet">
  10546. <PropertyRef Name="SiteId" />
  10547. <PropertyRef Name="BuildingId" />
  10548. <PropertyRef Name="FloorId" />
  10549. </Dependent>
  10550. </ReferentialConstraint>
  10551. </Association>
  10552. <Association Name="FK_CmUser_CmPosition">
  10553. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
  10554. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10555. <ReferentialConstraint>
  10556. <Principal Role="CmPosition">
  10557. <PropertyRef Name="SiteId" />
  10558. <PropertyRef Name="PositionId" />
  10559. </Principal>
  10560. <Dependent Role="CmUser">
  10561. <PropertyRef Name="SiteId" />
  10562. <PropertyRef Name="PositionId" />
  10563. </Dependent>
  10564. </ReferentialConstraint>
  10565. </Association>
  10566. <Association Name="FK__CmUserToLicense__CmUser">
  10567. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10568. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  10569. <ReferentialConstraint>
  10570. <Principal Role="CmUser">
  10571. <PropertyRef Name="SiteId" />
  10572. <PropertyRef Name="UserId" />
  10573. </Principal>
  10574. <Dependent Role="CmUserToLicense">
  10575. <PropertyRef Name="SiteId" />
  10576. <PropertyRef Name="UserId" />
  10577. </Dependent>
  10578. </ReferentialConstraint>
  10579. </Association>
  10580. <Association Name="FK__FmsDrawingHistory__CmUser">
  10581. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10582. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  10583. <ReferentialConstraint>
  10584. <Principal Role="CmUser">
  10585. <PropertyRef Name="SiteId" />
  10586. <PropertyRef Name="UserId" />
  10587. </Principal>
  10588. <Dependent Role="FmsDrawingHistory">
  10589. <PropertyRef Name="SiteId" />
  10590. <PropertyRef Name="UpdatedUserId" />
  10591. </Dependent>
  10592. </ReferentialConstraint>
  10593. </Association>
  10594. <Association Name="FK__FmsMaterialOrder__CmUser">
  10595. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10596. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  10597. <ReferentialConstraint>
  10598. <Principal Role="CmUser">
  10599. <PropertyRef Name="SiteId" />
  10600. <PropertyRef Name="UserId" />
  10601. </Principal>
  10602. <Dependent Role="FmsMaterialPurchaseOrder">
  10603. <PropertyRef Name="SiteId" />
  10604. <PropertyRef Name="OrderUserId" />
  10605. </Dependent>
  10606. </ReferentialConstraint>
  10607. </Association>
  10608. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  10609. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10610. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  10611. <ReferentialConstraint>
  10612. <Principal Role="CmUser">
  10613. <PropertyRef Name="SiteId" />
  10614. <PropertyRef Name="UserId" />
  10615. </Principal>
  10616. <Dependent Role="FmsMaterialPurchaseRequest">
  10617. <PropertyRef Name="SiteId" />
  10618. <PropertyRef Name="RequestUserId" />
  10619. </Dependent>
  10620. </ReferentialConstraint>
  10621. </Association>
  10622. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  10623. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10624. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  10625. <ReferentialConstraint>
  10626. <Principal Role="CmUser">
  10627. <PropertyRef Name="SiteId" />
  10628. <PropertyRef Name="UserId" />
  10629. </Principal>
  10630. <Dependent Role="FmsMaterialPurchaseRequest">
  10631. <PropertyRef Name="SiteId" />
  10632. <PropertyRef Name="ApprovalUserId" />
  10633. </Dependent>
  10634. </ReferentialConstraint>
  10635. </Association>
  10636. <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
  10637. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10638. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  10639. <ReferentialConstraint>
  10640. <Principal Role="CmUser">
  10641. <PropertyRef Name="SiteId" />
  10642. <PropertyRef Name="UserId" />
  10643. </Principal>
  10644. <Dependent Role="FmsMaterialStored">
  10645. <PropertyRef Name="SiteId" />
  10646. <PropertyRef Name="StoredUserId" />
  10647. </Dependent>
  10648. </ReferentialConstraint>
  10649. </Association>
  10650. <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  10651. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10652. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  10653. <ReferentialConstraint>
  10654. <Principal Role="CmUser">
  10655. <PropertyRef Name="SiteId" />
  10656. <PropertyRef Name="UserId" />
  10657. </Principal>
  10658. <Dependent Role="FmsMaterialStored">
  10659. <PropertyRef Name="SiteId" />
  10660. <PropertyRef Name="ApprovalUserId" />
  10661. </Dependent>
  10662. </ReferentialConstraint>
  10663. </Association>
  10664. <Association Name="FK__FmsWorkOrder__CmUser">
  10665. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10666. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  10667. <ReferentialConstraint>
  10668. <Principal Role="CmUser">
  10669. <PropertyRef Name="SiteId" />
  10670. <PropertyRef Name="UserId" />
  10671. </Principal>
  10672. <Dependent Role="FmsWorkOrder">
  10673. <PropertyRef Name="SiteId" />
  10674. <PropertyRef Name="OrderUserId" />
  10675. </Dependent>
  10676. </ReferentialConstraint>
  10677. </Association>
  10678. <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
  10679. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10680. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  10681. <ReferentialConstraint>
  10682. <Principal Role="CmUser">
  10683. <PropertyRef Name="SiteId" />
  10684. <PropertyRef Name="UserId" />
  10685. </Principal>
  10686. <Dependent Role="FmsWorkRequest">
  10687. <PropertyRef Name="SiteId" />
  10688. <PropertyRef Name="RequestUserId" />
  10689. </Dependent>
  10690. </ReferentialConstraint>
  10691. </Association>
  10692. <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  10693. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10694. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  10695. <ReferentialConstraint>
  10696. <Principal Role="CmUser">
  10697. <PropertyRef Name="SiteId" />
  10698. <PropertyRef Name="UserId" />
  10699. </Principal>
  10700. <Dependent Role="FmsWorkRequest">
  10701. <PropertyRef Name="SiteId" />
  10702. <PropertyRef Name="RejectUserId" />
  10703. </Dependent>
  10704. </ReferentialConstraint>
  10705. </Association>
  10706. <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
  10707. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10708. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  10709. <ReferentialConstraint>
  10710. <Principal Role="CmUser">
  10711. <PropertyRef Name="SiteId" />
  10712. <PropertyRef Name="UserId" />
  10713. </Principal>
  10714. <Dependent Role="FmsWorkResult">
  10715. <PropertyRef Name="SiteId" />
  10716. <PropertyRef Name="WorkerUserId" />
  10717. </Dependent>
  10718. </ReferentialConstraint>
  10719. </Association>
  10720. <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  10721. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10722. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  10723. <ReferentialConstraint>
  10724. <Principal Role="CmUser">
  10725. <PropertyRef Name="SiteId" />
  10726. <PropertyRef Name="UserId" />
  10727. </Principal>
  10728. <Dependent Role="FmsWorkResult">
  10729. <PropertyRef Name="SiteId" />
  10730. <PropertyRef Name="ConfirmedUserId" />
  10731. </Dependent>
  10732. </ReferentialConstraint>
  10733. </Association>
  10734. <Association Name="FK_CmUser_CmUserGroup">
  10735. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
  10736. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10737. <ReferentialConstraint>
  10738. <Principal Role="CmUserGroup">
  10739. <PropertyRef Name="SiteId" />
  10740. <PropertyRef Name="UserGroupId" />
  10741. </Principal>
  10742. <Dependent Role="CmUser">
  10743. <PropertyRef Name="SiteId" />
  10744. <PropertyRef Name="UserGroupId" />
  10745. </Dependent>
  10746. </ReferentialConstraint>
  10747. </Association>
  10748. <Association Name="FK_CmUserLoginHistory_CmUser">
  10749. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10750. <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
  10751. <ReferentialConstraint>
  10752. <Principal Role="CmUser">
  10753. <PropertyRef Name="SiteId" />
  10754. <PropertyRef Name="UserId" />
  10755. </Principal>
  10756. <Dependent Role="CmUserLoginHistory">
  10757. <PropertyRef Name="SiteId" />
  10758. <PropertyRef Name="UserId" />
  10759. </Dependent>
  10760. </ReferentialConstraint>
  10761. </Association>
  10762. <Association Name="FK_FmsConstructionEstimation_CmUser">
  10763. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10764. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
  10765. <ReferentialConstraint>
  10766. <Principal Role="CmUser">
  10767. <PropertyRef Name="SiteId" />
  10768. <PropertyRef Name="UserId" />
  10769. </Principal>
  10770. <Dependent Role="FmsConstructionEstimation">
  10771. <PropertyRef Name="SiteId" />
  10772. <PropertyRef Name="EstimateUserId" />
  10773. </Dependent>
  10774. </ReferentialConstraint>
  10775. </Association>
  10776. <Association Name="FK_FmsManualHistory_CmUser">
  10777. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10778. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  10779. <ReferentialConstraint>
  10780. <Principal Role="CmUser">
  10781. <PropertyRef Name="SiteId" />
  10782. <PropertyRef Name="UserId" />
  10783. </Principal>
  10784. <Dependent Role="FmsManualHistory">
  10785. <PropertyRef Name="SiteId" />
  10786. <PropertyRef Name="UpdatedUserId" />
  10787. </Dependent>
  10788. </ReferentialConstraint>
  10789. </Association>
  10790. <Association Name="FK__CmUserGroupPermission__CmUserGroup">
  10791. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
  10792. <OnDelete Action="Cascade" />
  10793. </End>
  10794. <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
  10795. <ReferentialConstraint>
  10796. <Principal Role="CmUserGroup">
  10797. <PropertyRef Name="SiteId" />
  10798. <PropertyRef Name="UserGroupId" />
  10799. </Principal>
  10800. <Dependent Role="CmUserGroupPermission">
  10801. <PropertyRef Name="SiteId" />
  10802. <PropertyRef Name="UserGroupId" />
  10803. </Dependent>
  10804. </ReferentialConstraint>
  10805. </Association>
  10806. <Association Name="FK__CmUserToLicense__FmsLicense">
  10807. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
  10808. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  10809. <ReferentialConstraint>
  10810. <Principal Role="FmsLicense">
  10811. <PropertyRef Name="SiteId" />
  10812. <PropertyRef Name="LicenseId" />
  10813. </Principal>
  10814. <Dependent Role="CmUserToLicense">
  10815. <PropertyRef Name="SiteId" />
  10816. <PropertyRef Name="LicenseId" />
  10817. </Dependent>
  10818. </ReferentialConstraint>
  10819. </Association>
  10820. <Association Name="FK_CmZoneTempHumiSet_CmZone">
  10821. <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
  10822. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
  10823. <ReferentialConstraint>
  10824. <Principal Role="CmZone">
  10825. <PropertyRef Name="SiteId" />
  10826. <PropertyRef Name="BuildingId" />
  10827. <PropertyRef Name="FloorId" />
  10828. <PropertyRef Name="ZoneId" />
  10829. </Principal>
  10830. <Dependent Role="CmZoneTempHumiSet">
  10831. <PropertyRef Name="SiteId" />
  10832. <PropertyRef Name="BuildingId" />
  10833. <PropertyRef Name="FloorId" />
  10834. <PropertyRef Name="ZoneId" />
  10835. </Dependent>
  10836. </ReferentialConstraint>
  10837. </Association>
  10838. <Association Name="FK_FmsAccident_FmsAccidentCodeType">
  10839. <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
  10840. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10841. <ReferentialConstraint>
  10842. <Principal Role="FmsAccidentCodeType">
  10843. <PropertyRef Name="SiteId" />
  10844. <PropertyRef Name="AccidentTypeId" />
  10845. </Principal>
  10846. <Dependent Role="FmsAccident">
  10847. <PropertyRef Name="SiteId" />
  10848. <PropertyRef Name="AccidentTypeId" />
  10849. </Dependent>
  10850. </ReferentialConstraint>
  10851. </Association>
  10852. <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
  10853. <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
  10854. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10855. <ReferentialConstraint>
  10856. <Principal Role="FmsConstructionCodeProgress">
  10857. <PropertyRef Name="ProgressId" />
  10858. </Principal>
  10859. <Dependent Role="FmsConstruction">
  10860. <PropertyRef Name="ProgressId" />
  10861. </Dependent>
  10862. </ReferentialConstraint>
  10863. </Association>
  10864. <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
  10865. <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
  10866. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10867. <ReferentialConstraint>
  10868. <Principal Role="FmsConstructionCodeType">
  10869. <PropertyRef Name="SiteId" />
  10870. <PropertyRef Name="ConstructionTypeId" />
  10871. </Principal>
  10872. <Dependent Role="FmsConstruction">
  10873. <PropertyRef Name="SiteId" />
  10874. <PropertyRef Name="ConstructionTypeId" />
  10875. </Dependent>
  10876. </ReferentialConstraint>
  10877. </Association>
  10878. <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
  10879. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
  10880. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
  10881. <ReferentialConstraint>
  10882. <Principal Role="FmsConstruction">
  10883. <PropertyRef Name="SiteId" />
  10884. <PropertyRef Name="ConstructionId" />
  10885. </Principal>
  10886. <Dependent Role="FmsConstructionEstimation">
  10887. <PropertyRef Name="SiteId" />
  10888. <PropertyRef Name="ConstructionId" />
  10889. </Dependent>
  10890. </ReferentialConstraint>
  10891. </Association>
  10892. <Association Name="FK__FmsDrawing__6E565CE8">
  10893. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
  10894. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  10895. <ReferentialConstraint>
  10896. <Principal Role="FmsDrawingCodeGroup">
  10897. <PropertyRef Name="SiteId" />
  10898. <PropertyRef Name="DrawingGroupId" />
  10899. </Principal>
  10900. <Dependent Role="FmsDrawing">
  10901. <PropertyRef Name="SiteId" />
  10902. <PropertyRef Name="DrawingGroupId" />
  10903. </Dependent>
  10904. </ReferentialConstraint>
  10905. </Association>
  10906. <Association Name="FK__FmsDrawing__6F4A8121">
  10907. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
  10908. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  10909. <ReferentialConstraint>
  10910. <Principal Role="FmsDrawingCodeType">
  10911. <PropertyRef Name="SiteId" />
  10912. <PropertyRef Name="DrawingTypeId" />
  10913. </Principal>
  10914. <Dependent Role="FmsDrawing">
  10915. <PropertyRef Name="SiteId" />
  10916. <PropertyRef Name="DrawingTypeId" />
  10917. </Dependent>
  10918. </ReferentialConstraint>
  10919. </Association>
  10920. <Association Name="FK__FmsDrawingHistor__7132C993">
  10921. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1" />
  10922. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  10923. <ReferentialConstraint>
  10924. <Principal Role="FmsDrawing">
  10925. <PropertyRef Name="SiteId" />
  10926. <PropertyRef Name="DrawingId" />
  10927. </Principal>
  10928. <Dependent Role="FmsDrawingHistory">
  10929. <PropertyRef Name="SiteId" />
  10930. <PropertyRef Name="DrawingId" />
  10931. </Dependent>
  10932. </ReferentialConstraint>
  10933. </Association>
  10934. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  10935. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  10936. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  10937. <ReferentialConstraint>
  10938. <Principal Role="FmsEquipmentCodeStateType">
  10939. <PropertyRef Name="EquipmentStateTypeId" />
  10940. </Principal>
  10941. <Dependent Role="FmsEquipmentHistory">
  10942. <PropertyRef Name="EquipmentStateTypeId" />
  10943. </Dependent>
  10944. </ReferentialConstraint>
  10945. </Association>
  10946. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  10947. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  10948. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  10949. <ReferentialConstraint>
  10950. <Principal Role="FmsWorkCodeCycleUnit">
  10951. <PropertyRef Name="SiteId" />
  10952. <PropertyRef Name="CycleUnitId" />
  10953. </Principal>
  10954. <Dependent Role="FmsFacilityCheckItem">
  10955. <PropertyRef Name="SiteId" />
  10956. <PropertyRef Name="CycleUnitId" />
  10957. </Dependent>
  10958. </ReferentialConstraint>
  10959. </Association>
  10960. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  10961. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  10962. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  10963. <ReferentialConstraint>
  10964. <Principal Role="FmsWorkCodeType">
  10965. <PropertyRef Name="WorkTypeId" />
  10966. </Principal>
  10967. <Dependent Role="FmsFacilityCheckItem">
  10968. <PropertyRef Name="WorkTypeId" />
  10969. </Dependent>
  10970. </ReferentialConstraint>
  10971. </Association>
  10972. <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  10973. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
  10974. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  10975. <ReferentialConstraint>
  10976. <Principal Role="FmsFacilityCheckItem">
  10977. <PropertyRef Name="SiteId" />
  10978. <PropertyRef Name="FacilityCode" />
  10979. <PropertyRef Name="CheckItemId" />
  10980. </Principal>
  10981. <Dependent Role="FmsWorkResultCheckItem">
  10982. <PropertyRef Name="SiteId" />
  10983. <PropertyRef Name="FacilityCode" />
  10984. <PropertyRef Name="CheckItemId" />
  10985. </Dependent>
  10986. </ReferentialConstraint>
  10987. </Association>
  10988. <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  10989. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
  10990. <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  10991. <ReferentialConstraint>
  10992. <Principal Role="FmsFacilityCodeClass">
  10993. <PropertyRef Name="SiteId" />
  10994. <PropertyRef Name="FacilityClassId" />
  10995. </Principal>
  10996. <Dependent Role="FmsFacilityCodeClass1">
  10997. <PropertyRef Name="SiteId" />
  10998. <PropertyRef Name="ParentFacilityClassId" />
  10999. </Dependent>
  11000. </ReferentialConstraint>
  11001. </Association>
  11002. <Association Name="FK_FmsManual_FmsManualType">
  11003. <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
  11004. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
  11005. <ReferentialConstraint>
  11006. <Principal Role="FmsManualType">
  11007. <PropertyRef Name="SiteId" />
  11008. <PropertyRef Name="ManualTypeId" />
  11009. </Principal>
  11010. <Dependent Role="FmsManual">
  11011. <PropertyRef Name="SiteId" />
  11012. <PropertyRef Name="ManualTypeId" />
  11013. </Dependent>
  11014. </ReferentialConstraint>
  11015. </Association>
  11016. <Association Name="FK_FmsManualHistory_FmsManual">
  11017. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
  11018. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  11019. <ReferentialConstraint>
  11020. <Principal Role="FmsManual">
  11021. <PropertyRef Name="SiteId" />
  11022. <PropertyRef Name="ManualId" />
  11023. </Principal>
  11024. <Dependent Role="FmsManualHistory">
  11025. <PropertyRef Name="SiteId" />
  11026. <PropertyRef Name="ManualId" />
  11027. </Dependent>
  11028. </ReferentialConstraint>
  11029. </Association>
  11030. <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  11031. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  11032. <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  11033. <ReferentialConstraint>
  11034. <Principal Role="FmsMaterialCodeClass">
  11035. <PropertyRef Name="SiteId" />
  11036. <PropertyRef Name="MaterialClassId" />
  11037. </Principal>
  11038. <Dependent Role="FmsMaterialCodeClass1">
  11039. <PropertyRef Name="SiteId" />
  11040. <PropertyRef Name="ParentMaterialClassId" />
  11041. </Dependent>
  11042. </ReferentialConstraint>
  11043. </Association>
  11044. <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  11045. <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
  11046. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  11047. <ReferentialConstraint>
  11048. <Principal Role="FmsMaterialCodeProgress">
  11049. <PropertyRef Name="ProgressId" />
  11050. </Principal>
  11051. <Dependent Role="FmsMaterialPurchaseRequest">
  11052. <PropertyRef Name="ProgressId" />
  11053. </Dependent>
  11054. </ReferentialConstraint>
  11055. </Association>
  11056. <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  11057. <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
  11058. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  11059. <ReferentialConstraint>
  11060. <Principal Role="FmsMaterialCodePurchaseType">
  11061. <PropertyRef Name="PurchaseTypeId" />
  11062. </Principal>
  11063. <Dependent Role="FmsMaterialPurchaseRequest">
  11064. <PropertyRef Name="PurchaseTypeId" />
  11065. </Dependent>
  11066. </ReferentialConstraint>
  11067. </Association>
  11068. <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  11069. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  11070. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  11071. <ReferentialConstraint>
  11072. <Principal Role="FmsMaterialTradeCompany">
  11073. <PropertyRef Name="SiteId" />
  11074. <PropertyRef Name="TradeCompanyId" />
  11075. </Principal>
  11076. <Dependent Role="FmsMaterialPurchaseOrder">
  11077. <PropertyRef Name="SiteId" />
  11078. <PropertyRef Name="TradeCompanyId" />
  11079. </Dependent>
  11080. </ReferentialConstraint>
  11081. </Association>
  11082. <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  11083. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
  11084. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  11085. <ReferentialConstraint>
  11086. <Principal Role="FmsMaterialPurchaseRequest">
  11087. <PropertyRef Name="SiteId" />
  11088. <PropertyRef Name="PurchaseRequestId" />
  11089. </Principal>
  11090. <Dependent Role="FmsMaterialPurchaseOrder">
  11091. <PropertyRef Name="SiteId" />
  11092. <PropertyRef Name="PurchaseRequestId" />
  11093. </Dependent>
  11094. </ReferentialConstraint>
  11095. </Association>
  11096. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  11097. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
  11098. <OnDelete Action="Cascade" />
  11099. </End>
  11100. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  11101. <ReferentialConstraint>
  11102. <Principal Role="FmsMaterialPurchaseOrder">
  11103. <PropertyRef Name="SiteId" />
  11104. <PropertyRef Name="PurchaseOrderId" />
  11105. </Principal>
  11106. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  11107. <PropertyRef Name="SiteId" />
  11108. <PropertyRef Name="PurchaseOrderId" />
  11109. </Dependent>
  11110. </ReferentialConstraint>
  11111. </Association>
  11112. <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  11113. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
  11114. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  11115. <ReferentialConstraint>
  11116. <Principal Role="FmsMaterialPurchaseOrder">
  11117. <PropertyRef Name="SiteId" />
  11118. <PropertyRef Name="PurchaseOrderId" />
  11119. </Principal>
  11120. <Dependent Role="FmsMaterialStored">
  11121. <PropertyRef Name="SiteId" />
  11122. <PropertyRef Name="PurchaseOrderId" />
  11123. </Dependent>
  11124. </ReferentialConstraint>
  11125. </Association>
  11126. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  11127. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
  11128. <OnDelete Action="Cascade" />
  11129. </End>
  11130. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  11131. <ReferentialConstraint>
  11132. <Principal Role="FmsMaterialPurchaseRequest">
  11133. <PropertyRef Name="SiteId" />
  11134. <PropertyRef Name="PurchaseRequestId" />
  11135. </Principal>
  11136. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  11137. <PropertyRef Name="SiteId" />
  11138. <PropertyRef Name="PurchaseRequestId" />
  11139. </Dependent>
  11140. </ReferentialConstraint>
  11141. </Association>
  11142. <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
  11143. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
  11144. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  11145. <ReferentialConstraint>
  11146. <Principal Role="FmsMaterialWarehouse">
  11147. <PropertyRef Name="SiteId" />
  11148. <PropertyRef Name="WarehouseId" />
  11149. </Principal>
  11150. <Dependent Role="FmsMaterialStored">
  11151. <PropertyRef Name="SiteId" />
  11152. <PropertyRef Name="WarehouseId" />
  11153. </Dependent>
  11154. </ReferentialConstraint>
  11155. </Association>
  11156. <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
  11157. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
  11158. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  11159. <ReferentialConstraint>
  11160. <Principal Role="FmsWorkCodeCauseClass">
  11161. <PropertyRef Name="SiteId" />
  11162. <PropertyRef Name="CauseClassId" />
  11163. </Principal>
  11164. <Dependent Role="FmsWorkResult">
  11165. <PropertyRef Name="SiteId" />
  11166. <PropertyRef Name="CauseClassId" />
  11167. </Dependent>
  11168. </ReferentialConstraint>
  11169. </Association>
  11170. <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
  11171. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
  11172. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  11173. <ReferentialConstraint>
  11174. <Principal Role="FmsWorkCodeEmergency">
  11175. <PropertyRef Name="SiteId" />
  11176. <PropertyRef Name="EmergencyId" />
  11177. </Principal>
  11178. <Dependent Role="FmsWorkOrder">
  11179. <PropertyRef Name="SiteId" />
  11180. <PropertyRef Name="EmergencyId" />
  11181. </Dependent>
  11182. </ReferentialConstraint>
  11183. </Association>
  11184. <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
  11185. <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
  11186. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  11187. <ReferentialConstraint>
  11188. <Principal Role="FmsWorkCodeProgress">
  11189. <PropertyRef Name="WorkProgressId" />
  11190. </Principal>
  11191. <Dependent Role="FmsWorkRequest">
  11192. <PropertyRef Name="WorkProgressId" />
  11193. </Dependent>
  11194. </ReferentialConstraint>
  11195. </Association>
  11196. <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
  11197. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  11198. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  11199. <ReferentialConstraint>
  11200. <Principal Role="FmsWorkCodeType">
  11201. <PropertyRef Name="WorkTypeId" />
  11202. </Principal>
  11203. <Dependent Role="FmsWorkRequest">
  11204. <PropertyRef Name="WorkTypeId" />
  11205. </Dependent>
  11206. </ReferentialConstraint>
  11207. </Association>
  11208. <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
  11209. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  11210. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
  11211. <ReferentialConstraint>
  11212. <Principal Role="FmsWorkRequest">
  11213. <PropertyRef Name="SiteId" />
  11214. <PropertyRef Name="WorkRequestId" />
  11215. </Principal>
  11216. <Dependent Role="FmsWorkOrder">
  11217. <PropertyRef Name="SiteId" />
  11218. <PropertyRef Name="WorkRequestId" />
  11219. </Dependent>
  11220. </ReferentialConstraint>
  11221. </Association>
  11222. <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
  11223. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
  11224. <OnDelete Action="Cascade" />
  11225. </End>
  11226. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  11227. <ReferentialConstraint>
  11228. <Principal Role="FmsWorkOrder">
  11229. <PropertyRef Name="SiteId" />
  11230. <PropertyRef Name="WorkRequestId" />
  11231. </Principal>
  11232. <Dependent Role="FmsWorkOrderToFacility">
  11233. <PropertyRef Name="SiteId" />
  11234. <PropertyRef Name="WorkRequestId" />
  11235. </Dependent>
  11236. </ReferentialConstraint>
  11237. </Association>
  11238. <Association Name="FK__FmsWorkResult__FmsWorkOrder">
  11239. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
  11240. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  11241. <ReferentialConstraint>
  11242. <Principal Role="FmsWorkOrder">
  11243. <PropertyRef Name="SiteId" />
  11244. <PropertyRef Name="WorkRequestId" />
  11245. </Principal>
  11246. <Dependent Role="FmsWorkResult">
  11247. <PropertyRef Name="SiteId" />
  11248. <PropertyRef Name="WorkRequestId" />
  11249. </Dependent>
  11250. </ReferentialConstraint>
  11251. </Association>
  11252. <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
  11253. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
  11254. <OnDelete Action="Cascade" />
  11255. </End>
  11256. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  11257. <ReferentialConstraint>
  11258. <Principal Role="FmsWorkRequest">
  11259. <PropertyRef Name="SiteId" />
  11260. <PropertyRef Name="WorkRequestId" />
  11261. </Principal>
  11262. <Dependent Role="FmsWorkRequestToFacility">
  11263. <PropertyRef Name="SiteId" />
  11264. <PropertyRef Name="WorkRequestId" />
  11265. </Dependent>
  11266. </ReferentialConstraint>
  11267. </Association>
  11268. <Association Name="FK__FmsWorkResult__FmsWorkRequest">
  11269. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  11270. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  11271. <ReferentialConstraint>
  11272. <Principal Role="FmsWorkRequest">
  11273. <PropertyRef Name="SiteId" />
  11274. <PropertyRef Name="WorkRequestId" />
  11275. </Principal>
  11276. <Dependent Role="FmsWorkResult">
  11277. <PropertyRef Name="SiteId" />
  11278. <PropertyRef Name="WorkRequestId" />
  11279. </Dependent>
  11280. </ReferentialConstraint>
  11281. </Association>
  11282. <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
  11283. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  11284. <OnDelete Action="Cascade" />
  11285. </End>
  11286. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  11287. <ReferentialConstraint>
  11288. <Principal Role="FmsWorkResult">
  11289. <PropertyRef Name="SiteId" />
  11290. <PropertyRef Name="WorkRequestId" />
  11291. </Principal>
  11292. <Dependent Role="FmsWorkResultCheckItem">
  11293. <PropertyRef Name="SiteId" />
  11294. <PropertyRef Name="WorkRequestId" />
  11295. </Dependent>
  11296. </ReferentialConstraint>
  11297. </Association>
  11298. <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
  11299. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  11300. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
  11301. <ReferentialConstraint>
  11302. <Principal Role="FmsWorkResult">
  11303. <PropertyRef Name="SiteId" />
  11304. <PropertyRef Name="WorkRequestId" />
  11305. </Principal>
  11306. <Dependent Role="FmsWorkResultFile">
  11307. <PropertyRef Name="SiteId" />
  11308. <PropertyRef Name="WorkRequestId" />
  11309. </Dependent>
  11310. </ReferentialConstraint>
  11311. </Association>
  11312. <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
  11313. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  11314. <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
  11315. <ReferentialConstraint>
  11316. <Principal Role="FmsWorkResult">
  11317. <PropertyRef Name="SiteId" />
  11318. <PropertyRef Name="WorkRequestId" />
  11319. </Principal>
  11320. <Dependent Role="FmsWorkResultLaw">
  11321. <PropertyRef Name="SiteId" />
  11322. <PropertyRef Name="WorkRequestId" />
  11323. </Dependent>
  11324. </ReferentialConstraint>
  11325. </Association>
  11326. <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
  11327. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  11328. <OnDelete Action="Cascade" />
  11329. </End>
  11330. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  11331. <ReferentialConstraint>
  11332. <Principal Role="FmsWorkResult">
  11333. <PropertyRef Name="SiteId" />
  11334. <PropertyRef Name="WorkRequestId" />
  11335. </Principal>
  11336. <Dependent Role="FmsWorkResultToFacility">
  11337. <PropertyRef Name="SiteId" />
  11338. <PropertyRef Name="WorkRequestId" />
  11339. </Dependent>
  11340. </ReferentialConstraint>
  11341. </Association>
  11342. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  11343. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1">
  11344. <OnDelete Action="Cascade" />
  11345. </End>
  11346. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  11347. <ReferentialConstraint>
  11348. <Principal Role="FmsWorkResultCheckItem">
  11349. <PropertyRef Name="CheckItemId" />
  11350. </Principal>
  11351. <Dependent Role="FmsWorkResultCheckItemMaterial">
  11352. <PropertyRef Name="CheckItemId" />
  11353. </Dependent>
  11354. </ReferentialConstraint>
  11355. </Association>
  11356. <EntityContainer Name="iBemsEntities" annotation:LazyLoadingEnabled="true">
  11357. <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" />
  11358. <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" />
  11359. <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" />
  11360. <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" />
  11361. <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" />
  11362. <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" />
  11363. <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" />
  11364. <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" />
  11365. <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" />
  11366. <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" />
  11367. <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" />
  11368. <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" />
  11369. <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" />
  11370. <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" />
  11371. <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" />
  11372. <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" />
  11373. <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" />
  11374. <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" />
  11375. <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" />
  11376. <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" />
  11377. <EntitySet Name="CmCompany" EntityType="Self.CmCompany" />
  11378. <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" />
  11379. <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" />
  11380. <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" />
  11381. <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" />
  11382. <EntitySet Name="CmFile" EntityType="Self.CmFile" />
  11383. <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" />
  11384. <EntitySet Name="CmFloor" EntityType="Self.CmFloor" />
  11385. <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" />
  11386. <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" />
  11387. <EntitySet Name="CmPosition" EntityType="Self.CmPosition" />
  11388. <EntitySet Name="CmUser" EntityType="Self.CmUser" />
  11389. <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" />
  11390. <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" />
  11391. <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" />
  11392. <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" />
  11393. <EntitySet Name="CmZone" EntityType="Self.CmZone" />
  11394. <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" />
  11395. <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" />
  11396. <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" />
  11397. <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" />
  11398. <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" />
  11399. <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" />
  11400. <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" />
  11401. <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" />
  11402. <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" />
  11403. <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" />
  11404. <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" />
  11405. <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" />
  11406. <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" />
  11407. <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" />
  11408. <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" />
  11409. <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" />
  11410. <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" />
  11411. <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" />
  11412. <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" />
  11413. <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" />
  11414. <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" />
  11415. <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" />
  11416. <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" />
  11417. <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" />
  11418. <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" />
  11419. <EntitySet Name="FmsManual" EntityType="Self.FmsManual" />
  11420. <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" />
  11421. <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" />
  11422. <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" />
  11423. <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" />
  11424. <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" />
  11425. <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" />
  11426. <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" />
  11427. <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" />
  11428. <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" />
  11429. <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" />
  11430. <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" />
  11431. <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" />
  11432. <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" />
  11433. <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" />
  11434. <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" />
  11435. <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" />
  11436. <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" />
  11437. <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" />
  11438. <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" />
  11439. <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" />
  11440. <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" />
  11441. <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" />
  11442. <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" />
  11443. <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" />
  11444. <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" />
  11445. <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" />
  11446. <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" />
  11447. <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" />
  11448. <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" />
  11449. <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" />
  11450. <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" />
  11451. <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" />
  11452. <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" />
  11453. <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" />
  11454. <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" />
  11455. <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" />
  11456. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  11457. <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
  11458. <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
  11459. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  11460. </AssociationSet>
  11461. <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
  11462. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11463. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  11464. </AssociationSet>
  11465. <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
  11466. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11467. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  11468. </AssociationSet>
  11469. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
  11470. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11471. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  11472. </AssociationSet>
  11473. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  11474. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11475. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  11476. </AssociationSet>
  11477. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  11478. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11479. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  11480. </AssociationSet>
  11481. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  11482. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11483. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  11484. </AssociationSet>
  11485. <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  11486. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11487. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  11488. </AssociationSet>
  11489. <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
  11490. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11491. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11492. </AssociationSet>
  11493. <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
  11494. <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
  11495. <End Role="BemsFormula" EntitySet="BemsFormula" />
  11496. </AssociationSet>
  11497. <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
  11498. <End Role="BemsFormula" EntitySet="BemsFormula" />
  11499. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  11500. </AssociationSet>
  11501. <AssociationSet Name="FK__BemsFormulaParameter__BemsMonitoringPoint" Association="Self.FK__BemsFormulaParameter__BemsMonitoringPoint">
  11502. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11503. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  11504. </AssociationSet>
  11505. <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
  11506. <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
  11507. <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
  11508. </AssociationSet>
  11509. <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
  11510. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11511. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  11512. </AssociationSet>
  11513. <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
  11514. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  11515. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11516. </AssociationSet>
  11517. <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
  11518. <End Role="CmBuilding" EntitySet="CmBuilding" />
  11519. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11520. </AssociationSet>
  11521. <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
  11522. <End Role="CmFloor" EntitySet="CmFloor" />
  11523. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11524. </AssociationSet>
  11525. <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
  11526. <End Role="CmZone" EntitySet="CmZone" />
  11527. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11528. </AssociationSet>
  11529. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  11530. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11531. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  11532. </AssociationSet>
  11533. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  11534. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11535. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  11536. </AssociationSet>
  11537. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  11538. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11539. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  11540. </AssociationSet>
  11541. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
  11542. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  11543. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  11544. </AssociationSet>
  11545. <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
  11546. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11547. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  11548. </AssociationSet>
  11549. <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
  11550. <End Role="CmFile" EntitySet="CmFile" />
  11551. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  11552. </AssociationSet>
  11553. <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
  11554. <End Role="CmUser" EntitySet="CmUser" />
  11555. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  11556. </AssociationSet>
  11557. <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
  11558. <End Role="CmBuilding" EntitySet="CmBuilding" />
  11559. <End Role="CmFloor" EntitySet="CmFloor" />
  11560. </AssociationSet>
  11561. <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
  11562. <End Role="CmBuilding" EntitySet="CmBuilding" />
  11563. <End Role="CmZone" EntitySet="CmZone" />
  11564. </AssociationSet>
  11565. <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
  11566. <End Role="CmBuilding" EntitySet="CmBuilding" />
  11567. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  11568. </AssociationSet>
  11569. <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
  11570. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11571. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  11572. </AssociationSet>
  11573. <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
  11574. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11575. <End Role="FmsLicense" EntitySet="FmsLicense" />
  11576. </AssociationSet>
  11577. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
  11578. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11579. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  11580. </AssociationSet>
  11581. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
  11582. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11583. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  11584. </AssociationSet>
  11585. <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
  11586. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11587. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11588. </AssociationSet>
  11589. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
  11590. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11591. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11592. </AssociationSet>
  11593. <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
  11594. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11595. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11596. </AssociationSet>
  11597. <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
  11598. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11599. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  11600. </AssociationSet>
  11601. <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
  11602. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11603. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11604. </AssociationSet>
  11605. <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
  11606. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11607. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11608. </AssociationSet>
  11609. <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
  11610. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11611. <End Role="CmUser" EntitySet="CmUser" />
  11612. </AssociationSet>
  11613. <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
  11614. <End Role="CmCompanyType" EntitySet="CmCompanyType" />
  11615. <End Role="CmCompany" EntitySet="CmCompany" />
  11616. </AssociationSet>
  11617. <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
  11618. <End Role="CmCompany" EntitySet="CmCompany" />
  11619. <End Role="CmDepartment" EntitySet="CmDepartment" />
  11620. </AssociationSet>
  11621. <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
  11622. <End Role="CmCompany" EntitySet="CmCompany" />
  11623. <End Role="CmUser" EntitySet="CmUser" />
  11624. </AssociationSet>
  11625. <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
  11626. <End Role="CmDepartment" EntitySet="CmDepartment" />
  11627. <End Role="CmUser" EntitySet="CmUser" />
  11628. </AssociationSet>
  11629. <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
  11630. <End Role="CmDepartment" EntitySet="CmDepartment" />
  11631. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11632. </AssociationSet>
  11633. <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
  11634. <End Role="CmFile" EntitySet="CmFile" />
  11635. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  11636. </AssociationSet>
  11637. <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
  11638. <End Role="CmFileCategory" EntitySet="CmFileCategory" />
  11639. <End Role="CmFile" EntitySet="CmFile" />
  11640. </AssociationSet>
  11641. <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
  11642. <End Role="CmFile" EntitySet="CmFile" />
  11643. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  11644. </AssociationSet>
  11645. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
  11646. <End Role="CmFile" EntitySet="CmFile" />
  11647. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11648. </AssociationSet>
  11649. <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
  11650. <End Role="CmFile" EntitySet="CmFile" />
  11651. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  11652. </AssociationSet>
  11653. <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
  11654. <End Role="CmFile" EntitySet="CmFile" />
  11655. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11656. </AssociationSet>
  11657. <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
  11658. <End Role="CmFile" EntitySet="CmFile" />
  11659. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11660. </AssociationSet>
  11661. <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
  11662. <End Role="CmFile" EntitySet="CmFile" />
  11663. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11664. </AssociationSet>
  11665. <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
  11666. <End Role="CmFile" EntitySet="CmFile" />
  11667. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11668. </AssociationSet>
  11669. <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
  11670. <End Role="CmFile" EntitySet="CmFile" />
  11671. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11672. </AssociationSet>
  11673. <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
  11674. <End Role="CmFile" EntitySet="CmFile" />
  11675. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11676. </AssociationSet>
  11677. <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
  11678. <End Role="CmFile" EntitySet="CmFile" />
  11679. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  11680. </AssociationSet>
  11681. <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
  11682. <End Role="CmFloor" EntitySet="CmFloor" />
  11683. <End Role="CmZone" EntitySet="CmZone" />
  11684. </AssociationSet>
  11685. <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
  11686. <End Role="CmFloor" EntitySet="CmFloor" />
  11687. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  11688. </AssociationSet>
  11689. <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
  11690. <End Role="CmPosition" EntitySet="CmPosition" />
  11691. <End Role="CmUser" EntitySet="CmUser" />
  11692. </AssociationSet>
  11693. <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
  11694. <End Role="CmUser" EntitySet="CmUser" />
  11695. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  11696. </AssociationSet>
  11697. <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
  11698. <End Role="CmUser" EntitySet="CmUser" />
  11699. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  11700. </AssociationSet>
  11701. <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
  11702. <End Role="CmUser" EntitySet="CmUser" />
  11703. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11704. </AssociationSet>
  11705. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  11706. <End Role="CmUser" EntitySet="CmUser" />
  11707. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11708. </AssociationSet>
  11709. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  11710. <End Role="CmUser" EntitySet="CmUser" />
  11711. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11712. </AssociationSet>
  11713. <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
  11714. <End Role="CmUser" EntitySet="CmUser" />
  11715. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11716. </AssociationSet>
  11717. <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  11718. <End Role="CmUser" EntitySet="CmUser" />
  11719. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11720. </AssociationSet>
  11721. <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
  11722. <End Role="CmUser" EntitySet="CmUser" />
  11723. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11724. </AssociationSet>
  11725. <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
  11726. <End Role="CmUser" EntitySet="CmUser" />
  11727. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11728. </AssociationSet>
  11729. <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  11730. <End Role="CmUser" EntitySet="CmUser" />
  11731. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11732. </AssociationSet>
  11733. <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
  11734. <End Role="CmUser" EntitySet="CmUser" />
  11735. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11736. </AssociationSet>
  11737. <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  11738. <End Role="CmUser" EntitySet="CmUser" />
  11739. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11740. </AssociationSet>
  11741. <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
  11742. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  11743. <End Role="CmUser" EntitySet="CmUser" />
  11744. </AssociationSet>
  11745. <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
  11746. <End Role="CmUser" EntitySet="CmUser" />
  11747. <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
  11748. </AssociationSet>
  11749. <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
  11750. <End Role="CmUser" EntitySet="CmUser" />
  11751. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  11752. </AssociationSet>
  11753. <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
  11754. <End Role="CmUser" EntitySet="CmUser" />
  11755. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  11756. </AssociationSet>
  11757. <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
  11758. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  11759. <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
  11760. </AssociationSet>
  11761. <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
  11762. <End Role="FmsLicense" EntitySet="FmsLicense" />
  11763. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  11764. </AssociationSet>
  11765. <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
  11766. <End Role="CmZone" EntitySet="CmZone" />
  11767. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  11768. </AssociationSet>
  11769. <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
  11770. <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
  11771. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11772. </AssociationSet>
  11773. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
  11774. <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
  11775. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11776. </AssociationSet>
  11777. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
  11778. <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
  11779. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11780. </AssociationSet>
  11781. <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
  11782. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11783. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  11784. </AssociationSet>
  11785. <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
  11786. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  11787. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  11788. </AssociationSet>
  11789. <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
  11790. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  11791. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  11792. </AssociationSet>
  11793. <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
  11794. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  11795. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  11796. </AssociationSet>
  11797. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  11798. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  11799. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  11800. </AssociationSet>
  11801. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  11802. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  11803. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  11804. </AssociationSet>
  11805. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  11806. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  11807. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  11808. </AssociationSet>
  11809. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  11810. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  11811. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  11812. </AssociationSet>
  11813. <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  11814. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  11815. <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
  11816. </AssociationSet>
  11817. <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
  11818. <End Role="FmsManualType" EntitySet="FmsManualType" />
  11819. <End Role="FmsManual" EntitySet="FmsManual" />
  11820. </AssociationSet>
  11821. <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
  11822. <End Role="FmsManual" EntitySet="FmsManual" />
  11823. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  11824. </AssociationSet>
  11825. <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  11826. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  11827. <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
  11828. </AssociationSet>
  11829. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  11830. <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
  11831. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11832. </AssociationSet>
  11833. <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  11834. <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
  11835. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11836. </AssociationSet>
  11837. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  11838. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  11839. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11840. </AssociationSet>
  11841. <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  11842. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11843. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11844. </AssociationSet>
  11845. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  11846. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11847. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  11848. </AssociationSet>
  11849. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  11850. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11851. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11852. </AssociationSet>
  11853. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  11854. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11855. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  11856. </AssociationSet>
  11857. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
  11858. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  11859. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11860. </AssociationSet>
  11861. <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
  11862. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  11863. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11864. </AssociationSet>
  11865. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
  11866. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  11867. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11868. </AssociationSet>
  11869. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
  11870. <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
  11871. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11872. </AssociationSet>
  11873. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
  11874. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  11875. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11876. </AssociationSet>
  11877. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
  11878. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11879. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11880. </AssociationSet>
  11881. <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
  11882. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11883. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  11884. </AssociationSet>
  11885. <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
  11886. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11887. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11888. </AssociationSet>
  11889. <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
  11890. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11891. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  11892. </AssociationSet>
  11893. <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
  11894. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11895. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11896. </AssociationSet>
  11897. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
  11898. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11899. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  11900. </AssociationSet>
  11901. <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
  11902. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11903. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  11904. </AssociationSet>
  11905. <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
  11906. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11907. <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
  11908. </AssociationSet>
  11909. <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
  11910. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11911. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  11912. </AssociationSet>
  11913. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  11914. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  11915. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  11916. </AssociationSet>
  11917. <EntitySet Name="FmsDailyCheckReport" EntityType="iBemsModel.FmsDailyCheckReport" />
  11918. <EntitySet Name="FmsFacilityOperationReport" EntityType="iBemsModel.FmsFacilityOperationReport" />
  11919. <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="iBemsModel.FK_FmsDailyCheckReport_CmUser">
  11920. <End Role="CmUser" EntitySet="CmUser" />
  11921. <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
  11922. </AssociationSet>
  11923. <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="iBemsModel.FK_FmsFacilityOperationReport_CmUser">
  11924. <End Role="CmUser" EntitySet="CmUser" />
  11925. <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
  11926. </AssociationSet>
  11927. <EntitySet Name="FmsBudgetDetail" EntityType="iBemsModel.FmsBudgetDetail" />
  11928. <EntitySet Name="FmsBudgetDetailExecution" EntityType="iBemsModel.FmsBudgetDetailExecution" />
  11929. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudget">
  11930. <End Role="FmsBudget" EntitySet="FmsBudget" />
  11931. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  11932. </AssociationSet>
  11933. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass">
  11934. <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
  11935. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  11936. </AssociationSet>
  11937. <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  11938. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  11939. <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
  11940. </AssociationSet>
  11941. <EntitySet Name="FmsMonthlyReport" EntityType="iBemsModel.FmsMonthlyReport" />
  11942. <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="iBemsModel.FK_FmsMonthlyReport_CmUser">
  11943. <End Role="CmUser" EntitySet="CmUser" />
  11944. <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
  11945. </AssociationSet>
  11946. <EntitySet Name="FmsInvestmentCost" EntityType="iBemsModel.FmsInvestmentCost" />
  11947. <EntitySet Name="CmHolidayWeekend" EntityType="iBemsModel.CmHolidayWeekend" />
  11948. <AssociationSet Name="FK_FmsAccident_CmCompany" Association="iBemsModel.FK_FmsAccident_CmCompany">
  11949. <End Role="CmCompany" EntitySet="CmCompany" />
  11950. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11951. </AssociationSet>
  11952. <EntitySet Name="FmsMaterial" EntityType="iBemsModel.FmsMaterial" />
  11953. <EntitySet Name="FmsMaterialRelease" EntityType="iBemsModel.FmsMaterialRelease" />
  11954. <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="iBemsModel.FK_FmsMaterial_CmBusinessField">
  11955. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11956. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11957. </AssociationSet>
  11958. <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="iBemsModel.FK_FmsMaterialRelease_CmBusinessField">
  11959. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11960. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  11961. </AssociationSet>
  11962. <AssociationSet Name="FK_FmsMaterial_CmFile" Association="iBemsModel.FK_FmsMaterial_CmFile">
  11963. <End Role="CmFile" EntitySet="CmFile" />
  11964. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11965. </AssociationSet>
  11966. <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="iBemsModel.FK_FmsMaterialRelease_CmUser">
  11967. <End Role="CmUser" EntitySet="CmUser" />
  11968. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  11969. </AssociationSet>
  11970. <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="iBemsModel.FK_FmsMaterialRelease_CmUser1">
  11971. <End Role="CmUser" EntitySet="CmUser" />
  11972. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  11973. </AssociationSet>
  11974. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  11975. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  11976. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11977. </AssociationSet>
  11978. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  11979. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  11980. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11981. </AssociationSet>
  11982. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  11983. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  11984. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11985. </AssociationSet>
  11986. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation">
  11987. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  11988. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11989. </AssociationSet>
  11990. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType">
  11991. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  11992. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11993. </AssociationSet>
  11994. <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany">
  11995. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  11996. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11997. </AssociationSet>
  11998. <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse">
  11999. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  12000. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12001. </AssociationSet>
  12002. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  12003. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12004. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  12005. </AssociationSet>
  12006. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  12007. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12008. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  12009. </AssociationSet>
  12010. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterial">
  12011. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12012. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  12013. </AssociationSet>
  12014. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="iBemsModel.FK_FmsMaterialStored_FmsMaterial">
  12015. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12016. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  12017. </AssociationSet>
  12018. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  12019. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12020. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  12021. </AssociationSet>
  12022. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  12023. <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
  12024. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  12025. </AssociationSet>
  12026. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  12027. <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
  12028. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  12029. </AssociationSet>
  12030. <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult">
  12031. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  12032. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  12033. </AssociationSet>
  12034. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  12035. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  12036. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  12037. </AssociationSet>
  12038. <EntitySet Name="CmPatrolType" EntityType="iBemsModel.CmPatrolType" />
  12039. <EntitySet Name="CmPatrolGroup" EntityType="iBemsModel.CmPatrolGroup" />
  12040. <EntitySet Name="CmPatrolGroupUser" EntityType="iBemsModel.CmPatrolGroupUser" />
  12041. <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup">
  12042. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  12043. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  12044. </AssociationSet>
  12045. <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="iBemsModel.FK_CmPatrolGroupUser_CmUser">
  12046. <End Role="CmUser" EntitySet="CmUser" />
  12047. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  12048. </AssociationSet>
  12049. <EntitySet Name="CmPatrolPos" EntityType="iBemsModel.CmPatrolPos" />
  12050. <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="iBemsModel.FK_CmPatrolPos_CmBuilding">
  12051. <End Role="CmBuilding" EntitySet="CmBuilding" />
  12052. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  12053. </AssociationSet>
  12054. <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="iBemsModel.FK_CmPatrolPos_CmFloor">
  12055. <End Role="CmFloor" EntitySet="CmFloor" />
  12056. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  12057. </AssociationSet>
  12058. <EntitySet Name="CmPatrolCourse" EntityType="iBemsModel.CmPatrolCourse" />
  12059. <EntitySet Name="CmPatrolCoursePos" EntityType="iBemsModel.CmPatrolCoursePos" />
  12060. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse">
  12061. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  12062. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  12063. </AssociationSet>
  12064. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos">
  12065. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  12066. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  12067. </AssociationSet>
  12068. <EntitySet Name="CmPatrolPlan" EntityType="iBemsModel.CmPatrolPlan" />
  12069. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse">
  12070. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  12071. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  12072. </AssociationSet>
  12073. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup">
  12074. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  12075. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  12076. </AssociationSet>
  12077. <EntitySet Name="CmPatrolHistoryPos" EntityType="iBemsModel.CmPatrolHistoryPos" />
  12078. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos">
  12079. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  12080. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  12081. </AssociationSet>
  12082. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType">
  12083. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  12084. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  12085. </AssociationSet>
  12086. <EntitySet Name="BemsPeakInfo" EntityType="iBemsModel.BemsPeakInfo" />
  12087. <EntitySet Name="BemsPeakHistory" EntityType="iBemsModel.BemsPeakHistory" />
  12088. <EntitySet Name="CmPatrolSchedule" EntityType="iBemsModel.CmPatrolSchedule" />
  12089. <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan">
  12090. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  12091. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  12092. </AssociationSet>
  12093. <EntitySet Name="BemsNoticePriceBase" EntityType="iBemsModel.BemsNoticePriceBase" />
  12094. <EntitySet Name="BemsNoticePriceContractType" EntityType="iBemsModel.BemsNoticePriceContractType" />
  12095. <EntitySet Name="BemsNoticePriceDetail" EntityType="iBemsModel.BemsNoticePriceDetail" />
  12096. <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  12097. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  12098. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  12099. </AssociationSet>
  12100. <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  12101. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  12102. <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
  12103. </AssociationSet>
  12104. <EntitySet Name="BemsPeakFacility" EntityType="iBemsModel.BemsPeakFacility" />
  12105. <EntitySet Name="CmSite" EntityType="iBemsModel.CmSite" />
  12106. <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="iBemsModel.FK_BemsPeakHIstory_CmSite">
  12107. <End Role="CmSite" EntitySet="CmSite" />
  12108. <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
  12109. </AssociationSet>
  12110. <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="iBemsModel.FK_BemsPeakInfo_CmSite">
  12111. <End Role="CmSite" EntitySet="CmSite" />
  12112. <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
  12113. </AssociationSet>
  12114. <AssociationSet Name="FK__CmBuildin__SiteI__3BFFE745" Association="iBemsModel.FK__CmBuildin__SiteI__3BFFE745">
  12115. <End Role="CmSite" EntitySet="CmSite" />
  12116. <End Role="CmBuilding" EntitySet="CmBuilding" />
  12117. </AssociationSet>
  12118. <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="iBemsModel.FK__CmCompany__SiteI__336AA144">
  12119. <End Role="CmSite" EntitySet="CmSite" />
  12120. <End Role="CmCompany" EntitySet="CmCompany" />
  12121. </AssociationSet>
  12122. <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="iBemsModel.FK_CmFacilityTempSet_CmSite">
  12123. <End Role="CmSite" EntitySet="CmSite" />
  12124. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  12125. </AssociationSet>
  12126. <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="iBemsModel.FK__CmFile__SiteId__2759D01A">
  12127. <End Role="CmSite" EntitySet="CmSite" />
  12128. <End Role="CmFile" EntitySet="CmFile" />
  12129. </AssociationSet>
  12130. <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5">
  12131. <End Role="CmSite" EntitySet="CmSite" />
  12132. <End Role="CmHoliday" EntitySet="CmHoliday" />
  12133. </AssociationSet>
  12134. <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="iBemsModel.FK__CmHoliday__SiteI__65AC084E">
  12135. <End Role="CmSite" EntitySet="CmSite" />
  12136. <End Role="CmHoliday" EntitySet="CmHoliday" />
  12137. </AssociationSet>
  12138. <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="iBemsModel.FK__CmHoliday__SiteI__10766AC2">
  12139. <End Role="CmSite" EntitySet="CmSite" />
  12140. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  12141. </AssociationSet>
  12142. <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="iBemsModel.FK__CmHoliday__SiteI__66A02C87">
  12143. <End Role="CmSite" EntitySet="CmSite" />
  12144. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  12145. </AssociationSet>
  12146. <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="iBemsModel.FK__CmHoliday__SiteI__0D99FE17">
  12147. <End Role="CmSite" EntitySet="CmSite" />
  12148. <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
  12149. </AssociationSet>
  12150. <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="iBemsModel.FK_CmPatrolCourse_CmSite">
  12151. <End Role="CmSite" EntitySet="CmSite" />
  12152. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  12153. </AssociationSet>
  12154. <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="iBemsModel.FK_CmPatrolCoursePos_CmSite">
  12155. <End Role="CmSite" EntitySet="CmSite" />
  12156. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  12157. </AssociationSet>
  12158. <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="iBemsModel.FK_CmPatrolGroup_CmSite">
  12159. <End Role="CmSite" EntitySet="CmSite" />
  12160. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  12161. </AssociationSet>
  12162. <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="iBemsModel.FK_CmPatrolHistoryPos_CmSite">
  12163. <End Role="CmSite" EntitySet="CmSite" />
  12164. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  12165. </AssociationSet>
  12166. <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="iBemsModel.FK_CmPatrolPlan_CmSite">
  12167. <End Role="CmSite" EntitySet="CmSite" />
  12168. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  12169. </AssociationSet>
  12170. <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="iBemsModel.FK_CmPatrolPos_CmSite">
  12171. <End Role="CmSite" EntitySet="CmSite" />
  12172. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  12173. </AssociationSet>
  12174. <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="iBemsModel.FK_CmPatrolSchedule_CmSite">
  12175. <End Role="CmSite" EntitySet="CmSite" />
  12176. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  12177. </AssociationSet>
  12178. <AssociationSet Name="FK_CmPatrolType_CmSite" Association="iBemsModel.FK_CmPatrolType_CmSite">
  12179. <End Role="CmSite" EntitySet="CmSite" />
  12180. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  12181. </AssociationSet>
  12182. <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="iBemsModel.FK__CmPositio__SiteI__6A70BD6B">
  12183. <End Role="CmSite" EntitySet="CmSite" />
  12184. <End Role="CmPosition" EntitySet="CmPosition" />
  12185. </AssociationSet>
  12186. <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="iBemsModel.FK__CmUserPos__SiteI__44952D46">
  12187. <End Role="CmSite" EntitySet="CmSite" />
  12188. <End Role="CmPosition" EntitySet="CmPosition" />
  12189. </AssociationSet>
  12190. <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="iBemsModel.FK__CmUserGro__SiteI__53D770D6">
  12191. <End Role="CmSite" EntitySet="CmSite" />
  12192. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  12193. </AssociationSet>
  12194. <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D">
  12195. <End Role="CmSite" EntitySet="CmSite" />
  12196. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  12197. </AssociationSet>
  12198. <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476">
  12199. <End Role="CmSite" EntitySet="CmSite" />
  12200. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  12201. </AssociationSet>
  12202. <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF">
  12203. <End Role="CmSite" EntitySet="CmSite" />
  12204. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  12205. </AssociationSet>
  12206. <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="iBemsModel.FK__FmsDrawin__SiteI__6F357288">
  12207. <End Role="CmSite" EntitySet="CmSite" />
  12208. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  12209. </AssociationSet>
  12210. <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="iBemsModel.FK__FmsDrawin__SiteI__702996C1">
  12211. <End Role="CmSite" EntitySet="CmSite" />
  12212. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  12213. </AssociationSet>
  12214. <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="iBemsModel.FK__FmsFacilityCodeClass__CmSite">
  12215. <End Role="CmSite" EntitySet="CmSite" />
  12216. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  12217. </AssociationSet>
  12218. <AssociationSet Name="FK__FmsLicense__CmSite" Association="iBemsModel.FK__FmsLicense__CmSite">
  12219. <End Role="CmSite" EntitySet="CmSite" />
  12220. <End Role="FmsLicense" EntitySet="FmsLicense" />
  12221. </AssociationSet>
  12222. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="iBemsModel.FK__FmsMaterialCarriedForward__CmSite">
  12223. <End Role="CmSite" EntitySet="CmSite" />
  12224. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  12225. </AssociationSet>
  12226. <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="iBemsModel.FK__FmsMaterialCodeClass__CmSite">
  12227. <End Role="CmSite" EntitySet="CmSite" />
  12228. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  12229. </AssociationSet>
  12230. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="iBemsModel.FK__FmsMaterialCodeLocation__CmSite">
  12231. <End Role="CmSite" EntitySet="CmSite" />
  12232. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  12233. </AssociationSet>
  12234. <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="iBemsModel.FK__FmsMaterialCodeType__CmSite">
  12235. <End Role="CmSite" EntitySet="CmSite" />
  12236. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  12237. </AssociationSet>
  12238. <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="iBemsModel.FK__FmsMaterialOrder__CmSite">
  12239. <End Role="CmSite" EntitySet="CmSite" />
  12240. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  12241. </AssociationSet>
  12242. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite">
  12243. <End Role="CmSite" EntitySet="CmSite" />
  12244. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  12245. </AssociationSet>
  12246. <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="iBemsModel.FK__FmsMaterialStored__CmSite">
  12247. <End Role="CmSite" EntitySet="CmSite" />
  12248. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  12249. </AssociationSet>
  12250. <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="iBemsModel.FK__FmsMaterialTradeCompany__CmSite">
  12251. <End Role="CmSite" EntitySet="CmSite" />
  12252. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  12253. </AssociationSet>
  12254. <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="iBemsModel.FK__FmsMaterialWarehouse__CmSite">
  12255. <End Role="CmSite" EntitySet="CmSite" />
  12256. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  12257. </AssociationSet>
  12258. <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite">
  12259. <End Role="CmSite" EntitySet="CmSite" />
  12260. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  12261. </AssociationSet>
  12262. <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite">
  12263. <End Role="CmSite" EntitySet="CmSite" />
  12264. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  12265. </AssociationSet>
  12266. <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="iBemsModel.FK__FmsWorkCodeEmergency__CmSite">
  12267. <End Role="CmSite" EntitySet="CmSite" />
  12268. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  12269. </AssociationSet>
  12270. <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite">
  12271. <End Role="CmSite" EntitySet="CmSite" />
  12272. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  12273. </AssociationSet>
  12274. <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  12275. <End Role="CmSite" EntitySet="CmSite" />
  12276. <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
  12277. </AssociationSet>
  12278. <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="iBemsModel.FK__FmsWorkOrder__CmSite">
  12279. <End Role="CmSite" EntitySet="CmSite" />
  12280. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  12281. </AssociationSet>
  12282. <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="iBemsModel.FK__FmsWorkRequest__CmSite">
  12283. <End Role="CmSite" EntitySet="CmSite" />
  12284. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  12285. </AssociationSet>
  12286. <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="iBemsModel.FK_CmZoneTempHumiSet_CmSite">
  12287. <End Role="CmSite" EntitySet="CmSite" />
  12288. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  12289. </AssociationSet>
  12290. <AssociationSet Name="FK_FmsMaterial_CmSite" Association="iBemsModel.FK_FmsMaterial_CmSite">
  12291. <End Role="CmSite" EntitySet="CmSite" />
  12292. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12293. </AssociationSet>
  12294. <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="iBemsModel.FK_FmsMaterialRelease_CmSite">
  12295. <End Role="CmSite" EntitySet="CmSite" />
  12296. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  12297. </AssociationSet>
  12298. <EntitySet Name="FmsReport" EntityType="iBemsModel.FmsReport" />
  12299. <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="iBemsModel.FK_FmsReport_CmBusinessField">
  12300. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  12301. <End Role="FmsReport" EntitySet="FmsReport" />
  12302. </AssociationSet>
  12303. <AssociationSet Name="FK_FmsReport_CmFile" Association="iBemsModel.FK_FmsReport_CmFile">
  12304. <End Role="CmFile" EntitySet="CmFile" />
  12305. <End Role="FmsReport" EntitySet="FmsReport" />
  12306. </AssociationSet>
  12307. <AssociationSet Name="FK_FmsReport_CmSite" Association="iBemsModel.FK_FmsReport_CmSite">
  12308. <End Role="CmSite" EntitySet="CmSite" />
  12309. <End Role="FmsReport" EntitySet="FmsReport" />
  12310. </AssociationSet>
  12311. <AssociationSet Name="FK_FmsReport_CmUser" Association="iBemsModel.FK_FmsReport_CmUser">
  12312. <End Role="CmUser" EntitySet="CmUser" />
  12313. <End Role="FmsReport" EntitySet="FmsReport" />
  12314. </AssociationSet>
  12315. <AssociationSet Name="FK_FmsReport_CmUser1" Association="iBemsModel.FK_FmsReport_CmUser1">
  12316. <End Role="CmUser" EntitySet="CmUser" />
  12317. <End Role="FmsReport" EntitySet="FmsReport" />
  12318. </AssociationSet>
  12319. <AssociationSet Name="FK_FmsReport_CmUser2" Association="iBemsModel.FK_FmsReport_CmUser2">
  12320. <End Role="CmUser" EntitySet="CmUser" />
  12321. <End Role="FmsReport" EntitySet="FmsReport" />
  12322. </AssociationSet>
  12323. <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="iBemsModel.CmServiceEnergyCalcMonth" />
  12324. <EntitySet Name="CmServiceEnergyCalcDay" EntityType="iBemsModel.CmServiceEnergyCalcDay" />
  12325. <EntitySet Name="CmPatrolHistory" EntityType="iBemsModel.CmPatrolHistory" />
  12326. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule">
  12327. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  12328. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  12329. </AssociationSet>
  12330. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolType">
  12331. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  12332. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  12333. </AssociationSet>
  12334. <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="iBemsModel.FK_CmPatrolHistory_CmSite">
  12335. <End Role="CmSite" EntitySet="CmSite" />
  12336. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  12337. </AssociationSet>
  12338. <EntitySet Name="CmMenu" EntityType="iBemsModel.CmMenu" />
  12339. <EntitySet Name="BemsChartInfo" EntityType="iBemsModel.BemsChartInfo" />
  12340. <EntitySet Name="BemsReportFormat" EntityType="iBemsModel.BemsReportFormat" />
  12341. <EntitySet Name="FmsWorkSchedule" EntityType="iBemsModel.FmsWorkSchedule" />
  12342. <AssociationSet Name="FK_CmMenu_CmSite" Association="iBemsModel.FK_CmMenu_CmSite">
  12343. <End Role="CmSite" EntitySet="CmSite" />
  12344. <End Role="CmMenu" EntitySet="CmMenu" />
  12345. </AssociationSet>
  12346. <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="iBemsModel.FK_BemsChartInfo_BemsFacilityType">
  12347. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12348. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  12349. </AssociationSet>
  12350. <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="iBemsModel.FK__FmsWorkSchedule__CmBusinessField">
  12351. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  12352. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12353. </AssociationSet>
  12354. <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="iBemsModel.FK__FmsWorkSchedule__CmUser">
  12355. <End Role="CmUser" EntitySet="CmUser" />
  12356. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12357. </AssociationSet>
  12358. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  12359. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  12360. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12361. </AssociationSet>
  12362. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  12363. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  12364. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12365. </AssociationSet>
  12366. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  12367. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  12368. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12369. </AssociationSet>
  12370. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule">
  12371. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12372. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  12373. </AssociationSet>
  12374. <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  12375. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12376. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  12377. </AssociationSet>
  12378. <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile">
  12379. <End Role="CmFile" EntitySet="CmFile" />
  12380. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  12381. </AssociationSet>
  12382. <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile1" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1">
  12383. <End Role="CmFile" EntitySet="CmFile" />
  12384. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  12385. </AssociationSet>
  12386. <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="iBemsModel.FK_BemsChartInfo_CmSite">
  12387. <End Role="CmSite" EntitySet="CmSite" />
  12388. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  12389. </AssociationSet>
  12390. <EntitySet Name="BemsPeopleIncrease" EntityType="iBemsModel.BemsPeopleIncrease" />
  12391. <EntitySet Name="BemsPriceCode" EntityType="iBemsModel.BemsPriceCode" />
  12392. <EntitySet Name="BemsPriceFormula" EntityType="iBemsModel.BemsPriceFormula" />
  12393. <EntitySet Name="BemsPriceMeta" EntityType="iBemsModel.BemsPriceMeta" />
  12394. <EntitySet Name="BemsPriceType" EntityType="iBemsModel.BemsPriceType" />
  12395. <EntitySet Name="BemsRentalRate" EntityType="iBemsModel.BemsRentalRate" />
  12396. <EntitySet Name="BemsSitePrice" EntityType="iBemsModel.BemsSitePrice" />
  12397. <EntitySet Name="BemsSitePriceHistory" EntityType="iBemsModel.BemsSitePriceHistory" />
  12398. <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="iBemsModel.FK_BemsPriceFormula_BemsFormula">
  12399. <End Role="BemsFormula" EntitySet="BemsFormula" />
  12400. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  12401. </AssociationSet>
  12402. <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="iBemsModel.FK_BemsPeopleIncrease_CmSite">
  12403. <End Role="CmSite" EntitySet="CmSite" />
  12404. <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
  12405. </AssociationSet>
  12406. <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="iBemsModel.FK_BemsSitePrice_BemsPriceCode">
  12407. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  12408. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  12409. </AssociationSet>
  12410. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode">
  12411. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  12412. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  12413. </AssociationSet>
  12414. <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="iBemsModel.FK_BemsPriceFormula_BemsPriceType">
  12415. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12416. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  12417. </AssociationSet>
  12418. <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="iBemsModel.FK_BemsPriceMeta_BemsPriceType">
  12419. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12420. <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
  12421. </AssociationSet>
  12422. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType">
  12423. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12424. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  12425. </AssociationSet>
  12426. <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="iBemsModel.FK_BemsRentalRate_CmSite">
  12427. <End Role="CmSite" EntitySet="CmSite" />
  12428. <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
  12429. </AssociationSet>
  12430. <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="iBemsModel.FK_BemsSitePrice_CmSite1">
  12431. <End Role="CmSite" EntitySet="CmSite" />
  12432. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  12433. </AssociationSet>
  12434. <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="iBemsModel.FK_BemsSitePriceHistory_CmSite">
  12435. <End Role="CmSite" EntitySet="CmSite" />
  12436. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  12437. </AssociationSet>
  12438. <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="iBemsModel.FK_BemsSitePrice_BemsPriceType">
  12439. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12440. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  12441. </AssociationSet>
  12442. <EntitySet Name="BemsMonitoringPointConfig" EntityType="iBemsModel.BemsMonitoringPointConfig" />
  12443. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1">
  12444. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12445. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  12446. </AssociationSet>
  12447. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  12448. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  12449. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  12450. </AssociationSet>
  12451. <EntitySet Name="BemsAlarmSetting" EntityType="iBemsModel.BemsAlarmSetting" />
  12452. <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType">
  12453. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12454. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  12455. </AssociationSet>
  12456. <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="iBemsModel.FK_BemsAlarmSetting_CmSite1">
  12457. <End Role="CmSite" EntitySet="CmSite" />
  12458. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  12459. </AssociationSet>
  12460. <EntitySet Name="BemsAlarmLog" EntityType="iBemsModel.BemsAlarmLog" />
  12461. <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting">
  12462. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  12463. <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
  12464. </AssociationSet>
  12465. <EntitySet Name="BemsAlarmGroup" EntityType="iBemsModel.BemsAlarmGroup" />
  12466. <EntitySet Name="BemsAlarmGroupUser" EntityType="iBemsModel.BemsAlarmGroupUser" />
  12467. <EntitySet Name="BemsEnergyCost" EntityType="iBemsModel.BemsEnergyCost" />
  12468. <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="iBemsModel.BemsEnergyConfigPercentMonth" />
  12469. <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="iBemsModel.BemsEnergyConfigPercentWeek" />
  12470. <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6">
  12471. <End Role="CmSite" EntitySet="CmSite" />
  12472. <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
  12473. </AssociationSet>
  12474. <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1">
  12475. <End Role="CmSite" EntitySet="CmSite" />
  12476. <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
  12477. </AssociationSet>
  12478. <EntitySet Name="BemsEnergyDaily" EntityType="iBemsModel.BemsEnergyDaily" />
  12479. <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="iBemsModel.FK__BemsEnergyDaily__BemsServiceType">
  12480. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  12481. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  12482. </AssociationSet>
  12483. <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="iBemsModel.FK__BemsEnergyDaily__CmBuilding">
  12484. <End Role="CmBuilding" EntitySet="CmBuilding" />
  12485. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  12486. </AssociationSet>
  12487. <EntitySet Name="BemsEnergyDailyRegression" EntityType="iBemsModel.BemsEnergyDailyRegression" />
  12488. <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="iBemsModel.FK_BemsEnergyDailyRegression_CmSite">
  12489. <End Role="CmSite" EntitySet="CmSite" />
  12490. <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
  12491. </AssociationSet>
  12492. <EntitySet Name="WeatherDongNaeForecast" EntityType="iBemsModel.WeatherDongNaeForecast" />
  12493. <EntitySet Name="FmsEquipmentRentInfo" EntityType="iBemsModel.FmsEquipmentRentInfo" />
  12494. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser">
  12495. <End Role="CmUser" EntitySet="CmUser" />
  12496. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  12497. </AssociationSet>
  12498. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1">
  12499. <End Role="CmUser" EntitySet="CmUser" />
  12500. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  12501. </AssociationSet>
  12502. <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  12503. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  12504. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  12505. </AssociationSet>
  12506. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  12507. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  12508. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  12509. </AssociationSet>
  12510. <EntitySet Name="BemsControlAHUTempConfig" EntityType="iBemsModel.BemsControlAHUTempConfig" />
  12511. <EntitySet Name="BemsFuelType" EntityType="iBemsModel.BemsFuelType" />
  12512. <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="iBemsModel.FK__BemsEnergyDaily__BemsFuelType">
  12513. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12514. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  12515. </AssociationSet>
  12516. <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="iBemsModel.FK__BemsFactorCo2__BemsFuelType">
  12517. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12518. <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
  12519. </AssociationSet>
  12520. <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="iBemsModel.FK__BemsFactorToe__BemsFuelType">
  12521. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12522. <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
  12523. </AssociationSet>
  12524. <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType">
  12525. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12526. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  12527. </AssociationSet>
  12528. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType">
  12529. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12530. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  12531. </AssociationSet>
  12532. <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType">
  12533. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12534. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  12535. </AssociationSet>
  12536. <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="iBemsModel.FK_BemsPriceCode_BemsFuelType">
  12537. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12538. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  12539. </AssociationSet>
  12540. <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="iBemsModel.FK_BemsPriceType_BemsFuelType1">
  12541. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12542. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12543. </AssociationSet>
  12544. <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="iBemsModel.FK_BemsSitePrice_BemsFuelType">
  12545. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12546. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  12547. </AssociationSet>
  12548. <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType">
  12549. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12550. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  12551. </AssociationSet>
  12552. <EntitySet Name="CmFacility" EntityType="iBemsModel.CmFacility" />
  12553. <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="iBemsModel.FK_BemsAlarmSetting_CmFacility">
  12554. <End Role="CmFacility" EntitySet="CmFacility" />
  12555. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  12556. </AssociationSet>
  12557. <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="iBemsModel.FK_BemsEnergyCost_CmFacility">
  12558. <End Role="CmFacility" EntitySet="CmFacility" />
  12559. <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
  12560. </AssociationSet>
  12561. <AssociationSet Name="FK__CmFacility__BemsFacilityType" Association="iBemsModel.FK__CmFacility__BemsFacilityType">
  12562. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12563. <End Role="CmFacility" EntitySet="CmFacility" />
  12564. </AssociationSet>
  12565. <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="iBemsModel.FK_BemsFormulaParameter_CmFacility">
  12566. <End Role="CmFacility" EntitySet="CmFacility" />
  12567. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  12568. </AssociationSet>
  12569. <AssociationSet Name="FK_CmFacility_BemsFuelType" Association="iBemsModel.FK_CmFacility_BemsFuelType">
  12570. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12571. <End Role="CmFacility" EntitySet="CmFacility" />
  12572. </AssociationSet>
  12573. <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="iBemsModel.FK_BemsMonitoringPoint_CmFacility">
  12574. <End Role="CmFacility" EntitySet="CmFacility" />
  12575. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  12576. </AssociationSet>
  12577. <AssociationSet Name="FK_CmFacility_BemsNoticePriceContractType" Association="iBemsModel.FK_CmFacility_BemsNoticePriceContractType">
  12578. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  12579. <End Role="CmFacility" EntitySet="CmFacility" />
  12580. </AssociationSet>
  12581. <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="iBemsModel.FK_BemsPeakFacility_CmFacility">
  12582. <End Role="CmFacility" EntitySet="CmFacility" />
  12583. <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
  12584. </AssociationSet>
  12585. <AssociationSet Name="FK__CmFacility__CmBuilding" Association="iBemsModel.FK__CmFacility__CmBuilding">
  12586. <End Role="CmBuilding" EntitySet="CmBuilding" />
  12587. <End Role="CmFacility" EntitySet="CmFacility" />
  12588. </AssociationSet>
  12589. <AssociationSet Name="FK__CmFacility__74444068" Association="iBemsModel.FK__CmFacility__74444068">
  12590. <End Role="CmFloor" EntitySet="CmFloor" />
  12591. <End Role="CmFacility" EntitySet="CmFacility" />
  12592. </AssociationSet>
  12593. <AssociationSet Name="FK__CmFacility__753864A1" Association="iBemsModel.FK__CmFacility__753864A1">
  12594. <End Role="CmUser" EntitySet="CmUser" />
  12595. <End Role="CmFacility" EntitySet="CmFacility" />
  12596. </AssociationSet>
  12597. <AssociationSet Name="FK__CmFacility__762C88DA" Association="iBemsModel.FK__CmFacility__762C88DA">
  12598. <End Role="CmUser" EntitySet="CmUser" />
  12599. <End Role="CmFacility" EntitySet="CmFacility" />
  12600. </AssociationSet>
  12601. <AssociationSet Name="FK__CmFacility__CmFacility" Association="iBemsModel.FK__CmFacility__CmFacility">
  12602. <End Role="CmFacility" EntitySet="CmFacility" />
  12603. <End Role="CmFacility1" EntitySet="CmFacility" />
  12604. </AssociationSet>
  12605. <AssociationSet Name="FK__CmFacility__CmFile" Association="iBemsModel.FK__CmFacility__CmFile">
  12606. <End Role="CmFile" EntitySet="CmFile" />
  12607. <End Role="CmFacility" EntitySet="CmFacility" />
  12608. </AssociationSet>
  12609. <AssociationSet Name="FK__CmFacility__CmZone" Association="iBemsModel.FK__CmFacility__CmZone">
  12610. <End Role="CmZone" EntitySet="CmZone" />
  12611. <End Role="CmFacility" EntitySet="CmFacility" />
  12612. </AssociationSet>
  12613. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsFirst" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst">
  12614. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  12615. <End Role="CmFacility" EntitySet="CmFacility" />
  12616. </AssociationSet>
  12617. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsSecond" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond">
  12618. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  12619. <End Role="CmFacility" EntitySet="CmFacility" />
  12620. </AssociationSet>
  12621. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsThird" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird">
  12622. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  12623. <End Role="CmFacility" EntitySet="CmFacility" />
  12624. </AssociationSet>
  12625. <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="iBemsModel.FK__CmFacilityFile__7720AD13">
  12626. <End Role="CmFacility" EntitySet="CmFacility" />
  12627. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  12628. </AssociationSet>
  12629. <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="iBemsModel.FK__CmFacilityManual__79FD19BE">
  12630. <End Role="CmFacility" EntitySet="CmFacility" />
  12631. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  12632. </AssociationSet>
  12633. <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="iBemsModel.FK__FmsFacilityOpera__725BF7F6">
  12634. <End Role="CmFacility" EntitySet="CmFacility" />
  12635. <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
  12636. </AssociationSet>
  12637. <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility">
  12638. <End Role="CmFacility" EntitySet="CmFacility" />
  12639. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  12640. </AssociationSet>
  12641. <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="iBemsModel.FK__FmsWorkResultToFacility__CmFacility">
  12642. <End Role="CmFacility" EntitySet="CmFacility" />
  12643. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  12644. </AssociationSet>
  12645. <AssociationSet Name="FK_CmFacility_CmUser" Association="iBemsModel.FK_CmFacility_CmUser">
  12646. <End Role="CmUser" EntitySet="CmUser" />
  12647. <End Role="CmFacility" EntitySet="CmFacility" />
  12648. </AssociationSet>
  12649. <AssociationSet Name="FK_CmFacility_CmUser1" Association="iBemsModel.FK_CmFacility_CmUser1">
  12650. <End Role="CmUser" EntitySet="CmUser" />
  12651. <End Role="CmFacility" EntitySet="CmFacility" />
  12652. </AssociationSet>
  12653. <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="iBemsModel.FK_CmFacilityTempSet_CmFacility">
  12654. <End Role="CmFacility" EntitySet="CmFacility" />
  12655. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  12656. </AssociationSet>
  12657. <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility">
  12658. <End Role="CmFacility" EntitySet="CmFacility" />
  12659. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  12660. </AssociationSet>
  12661. <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility">
  12662. <End Role="CmFacility" EntitySet="CmFacility" />
  12663. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  12664. </AssociationSet>
  12665. <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility">
  12666. <End Role="CmFacility" EntitySet="CmFacility" />
  12667. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  12668. </AssociationSet>
  12669. <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="iBemsModel.BemsMonitoringPointHistory15minRawData" />
  12670. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  12671. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12672. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  12673. </AssociationSet>
  12674. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  12675. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  12676. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  12677. </AssociationSet>
  12678. <EntitySet Name="FmsDailyReport" EntityType="iBemsModel.FmsDailyReport" />
  12679. <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="iBemsModel.FK_FmsDailyReport_CmBusinessField">
  12680. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  12681. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  12682. </AssociationSet>
  12683. <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="iBemsModel.FK_FmsDailyReport_CmUser">
  12684. <End Role="CmUser" EntitySet="CmUser" />
  12685. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  12686. </AssociationSet>
  12687. <EntitySet Name="BemsPeakHistoryDaily" EntityType="iBemsModel.BemsPeakHistoryDaily" />
  12688. <EntitySet Name="FmsEquipment" EntityType="iBemsModel.FmsEquipment" />
  12689. <AssociationSet Name="FK_FmsEquipment_CmUser" Association="iBemsModel.FK_FmsEquipment_CmUser">
  12690. <End Role="CmUser" EntitySet="CmUser" />
  12691. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  12692. </AssociationSet>
  12693. <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType">
  12694. <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
  12695. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  12696. </AssociationSet>
  12697. <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse">
  12698. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  12699. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  12700. </AssociationSet>
  12701. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment">
  12702. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  12703. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  12704. </AssociationSet>
  12705. <EntitySet Name="CmAlarmAdmin" EntityType="iBemsModel.CmAlarmAdmin" />
  12706. <EntitySet Name="BemsFloorStatus" EntityType="iBemsModel.BemsFloorStatus" />
  12707. <EntitySet Name="BemsReportHistory" EntityType="iBemsModel.BemsReportHistory" />
  12708. <EntitySet Name="CmPartner" EntityType="iBemsModel.CmPartner" />
  12709. <EntitySet Name="CmPartnerType" EntityType="iBemsModel.CmPartnerType" />
  12710. <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="iBemsModel.FK_CmPartnerType_CmPartner">
  12711. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  12712. <End Role="CmPartner" EntitySet="CmPartner" />
  12713. </AssociationSet>
  12714. <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="iBemsModel.FK_FmsConstruction_CmPartner">
  12715. <End Role="CmPartner" EntitySet="CmPartner" />
  12716. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  12717. </AssociationSet>
  12718. <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="iBemsModel.FK_FmsWorkRequest_CmPartner">
  12719. <End Role="CmPartner" EntitySet="CmPartner" />
  12720. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  12721. </AssociationSet>
  12722. <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="iBemsModel.FK_FmsWorkSchedule_CmPartner">
  12723. <End Role="CmPartner" EntitySet="CmPartner" />
  12724. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12725. </AssociationSet>
  12726. <EntitySet Name="FmsContract" EntityType="iBemsModel.FmsContract" />
  12727. <AssociationSet Name="FK_FmsContract_CmPartner" Association="iBemsModel.FK_FmsContract_CmPartner">
  12728. <End Role="CmPartner" EntitySet="CmPartner" />
  12729. <End Role="FmsContract" EntitySet="FmsContract" />
  12730. </AssociationSet>
  12731. <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="iBemsModel.FK_FmsContract_CmPartnerType">
  12732. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  12733. <End Role="FmsContract" EntitySet="FmsContract" />
  12734. </AssociationSet>
  12735. <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="iBemsModel.FK_FmsContract_FmsContractClass">
  12736. <End Role="FmsContractClass" EntitySet="FmsContractClass" />
  12737. <End Role="FmsContract" EntitySet="FmsContract" />
  12738. </AssociationSet>
  12739. <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="iBemsModel.FK_FmsContract_FmsContractMethod">
  12740. <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
  12741. <End Role="FmsContract" EntitySet="FmsContract" />
  12742. </AssociationSet>
  12743. <AssociationSet Name="FK_FmsContract_FmsContractType" Association="iBemsModel.FK_FmsContract_FmsContractType">
  12744. <End Role="FmsContractType" EntitySet="FmsContractType" />
  12745. <End Role="FmsContract" EntitySet="FmsContract" />
  12746. </AssociationSet>
  12747. <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="iBemsModel.FK_FmsContract_FmsPaymentType">
  12748. <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
  12749. <End Role="FmsContract" EntitySet="FmsContract" />
  12750. </AssociationSet>
  12751. <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingDayAhead" />
  12752. <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingHourAhead" />
  12753. <EntitySet Name="BemsFloorPlan" EntityType="iBemsModel.BemsFloorPlan" />
  12754. <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="iBemsModel.BemsMonitoringPointWeatherForecasted" />
  12755. <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="iBemsModel.BemsIceThermalStorageSimulation" />
  12756. <EntitySet Name="BemsConfigData" EntityType="iBemsModel.BemsConfigData" />
  12757. </EntityContainer>
  12758. <EntityType Name="FmsDailyCheckReport">
  12759. <Key>
  12760. <PropertyRef Name="SiteId" />
  12761. <PropertyRef Name="DailyCheckReportId" />
  12762. </Key>
  12763. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12764. <Property Name="DailyCheckReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12765. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  12766. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  12767. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  12768. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  12769. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="FmsDailyCheckReport" ToRole="CmUser" />
  12770. </EntityType>
  12771. <EntityType Name="FmsFacilityOperationReport">
  12772. <Key>
  12773. <PropertyRef Name="SiteId" />
  12774. <PropertyRef Name="FacilityOperationReportId" />
  12775. </Key>
  12776. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12777. <Property Name="FacilityOperationReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12778. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  12779. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  12780. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  12781. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  12782. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="FmsFacilityOperationReport" ToRole="CmUser" />
  12783. </EntityType>
  12784. <Association Name="FK_FmsDailyCheckReport_CmUser">
  12785. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  12786. <End Type="iBemsModel.FmsDailyCheckReport" Role="FmsDailyCheckReport" Multiplicity="*" />
  12787. <ReferentialConstraint>
  12788. <Principal Role="CmUser">
  12789. <PropertyRef Name="SiteId" />
  12790. <PropertyRef Name="UserId" />
  12791. </Principal>
  12792. <Dependent Role="FmsDailyCheckReport">
  12793. <PropertyRef Name="SiteId" />
  12794. <PropertyRef Name="RegisterUserId" />
  12795. </Dependent>
  12796. </ReferentialConstraint>
  12797. </Association>
  12798. <Association Name="FK_FmsFacilityOperationReport_CmUser">
  12799. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  12800. <End Type="iBemsModel.FmsFacilityOperationReport" Role="FmsFacilityOperationReport" Multiplicity="*" />
  12801. <ReferentialConstraint>
  12802. <Principal Role="CmUser">
  12803. <PropertyRef Name="SiteId" />
  12804. <PropertyRef Name="UserId" />
  12805. </Principal>
  12806. <Dependent Role="FmsFacilityOperationReport">
  12807. <PropertyRef Name="SiteId" />
  12808. <PropertyRef Name="RegisterUserId" />
  12809. </Dependent>
  12810. </ReferentialConstraint>
  12811. </Association>
  12812. <EntityType Name="FmsBudgetDetail">
  12813. <Key>
  12814. <PropertyRef Name="SiteId" />
  12815. <PropertyRef Name="Year" />
  12816. <PropertyRef Name="BudgetClassId" />
  12817. <PropertyRef Name="ParentBudgetClassId" />
  12818. </Key>
  12819. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12820. <Property Name="Year" Type="Int32" Nullable="false" />
  12821. <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
  12822. <Property Name="BudgetSeq" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="true" />
  12823. <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
  12824. <Property Name="Depth" Type="Int32" Nullable="false" />
  12825. <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  12826. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  12827. <Property Name="IsUse" Type="Boolean" />
  12828. <Property Name="YearlyBudget" Type="Double" Nullable="false" />
  12829. <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
  12830. <NavigationProperty Name="FmsBudget" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudgetDetail" ToRole="FmsBudget" />
  12831. <NavigationProperty Name="FmsBudgetCodeClass" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetDetail" ToRole="FmsBudgetCodeClass" />
  12832. <NavigationProperty Name="FmsBudgetDetailExecution" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetail" ToRole="FmsBudgetDetailExecution" />
  12833. <Property Name="RootBudgetClassId" Type="Int32" />
  12834. </EntityType>
  12835. <EntityType Name="FmsBudgetDetailExecution">
  12836. <Key>
  12837. <PropertyRef Name="SiteId" />
  12838. <PropertyRef Name="Year" />
  12839. <PropertyRef Name="BudgetClassId" />
  12840. <PropertyRef Name="ParentBudgetClassId" />
  12841. <PropertyRef Name="Month" />
  12842. </Key>
  12843. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12844. <Property Name="Year" Type="Int32" Nullable="false" />
  12845. <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
  12846. <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
  12847. <Property Name="MonthlyExecution" Type="Double" Nullable="false" />
  12848. <Property Name="Month" Type="Int32" Nullable="false" />
  12849. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetailExecution" ToRole="FmsBudgetDetail" />
  12850. <Property Name="YearlyBudget" Type="Double" Nullable="false" />
  12851. <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
  12852. <Property Name="YearlyExecution" Type="Double" Nullable="false" />
  12853. <Property Name="RootBudgetClassId" Type="Int32" />
  12854. </EntityType>
  12855. <Association Name="FK_FmsBudgetDetail_FmsBudget">
  12856. <End Type="iBemsModel.FmsBudget" Role="FmsBudget" Multiplicity="1">
  12857. <OnDelete Action="Cascade" />
  12858. </End>
  12859. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
  12860. <ReferentialConstraint>
  12861. <Principal Role="FmsBudget">
  12862. <PropertyRef Name="SiteId" />
  12863. <PropertyRef Name="Year" />
  12864. </Principal>
  12865. <Dependent Role="FmsBudgetDetail">
  12866. <PropertyRef Name="SiteId" />
  12867. <PropertyRef Name="Year" />
  12868. </Dependent>
  12869. </ReferentialConstraint>
  12870. </Association>
  12871. <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
  12872. <End Type="iBemsModel.FmsBudgetCodeClass" Role="FmsBudgetCodeClass" Multiplicity="1" />
  12873. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
  12874. <ReferentialConstraint>
  12875. <Principal Role="FmsBudgetCodeClass">
  12876. <PropertyRef Name="SiteId" />
  12877. <PropertyRef Name="BudgetClassId" />
  12878. </Principal>
  12879. <Dependent Role="FmsBudgetDetail">
  12880. <PropertyRef Name="SiteId" />
  12881. <PropertyRef Name="BudgetClassId" />
  12882. </Dependent>
  12883. </ReferentialConstraint>
  12884. </Association>
  12885. <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  12886. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="1" />
  12887. <End Type="iBemsModel.FmsBudgetDetailExecution" Role="FmsBudgetDetailExecution" Multiplicity="*" />
  12888. <ReferentialConstraint>
  12889. <Principal Role="FmsBudgetDetail">
  12890. <PropertyRef Name="SiteId" />
  12891. <PropertyRef Name="Year" />
  12892. <PropertyRef Name="BudgetClassId" />
  12893. <PropertyRef Name="ParentBudgetClassId" />
  12894. </Principal>
  12895. <Dependent Role="FmsBudgetDetailExecution">
  12896. <PropertyRef Name="SiteId" />
  12897. <PropertyRef Name="Year" />
  12898. <PropertyRef Name="BudgetClassId" />
  12899. <PropertyRef Name="ParentBudgetClassId" />
  12900. </Dependent>
  12901. </ReferentialConstraint>
  12902. </Association>
  12903. <EntityType Name="FmsMonthlyReport">
  12904. <Key>
  12905. <PropertyRef Name="SiteId" />
  12906. <PropertyRef Name="MonthlyReportId" />
  12907. </Key>
  12908. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12909. <Property Name="MonthlyReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12910. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  12911. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  12912. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  12913. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  12914. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="FmsMonthlyReport" ToRole="CmUser" />
  12915. </EntityType>
  12916. <Association Name="FK_FmsMonthlyReport_CmUser">
  12917. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  12918. <End Type="iBemsModel.FmsMonthlyReport" Role="FmsMonthlyReport" Multiplicity="*" />
  12919. <ReferentialConstraint>
  12920. <Principal Role="CmUser">
  12921. <PropertyRef Name="SiteId" />
  12922. <PropertyRef Name="UserId" />
  12923. </Principal>
  12924. <Dependent Role="FmsMonthlyReport">
  12925. <PropertyRef Name="SiteId" />
  12926. <PropertyRef Name="RegisterUserId" />
  12927. </Dependent>
  12928. </ReferentialConstraint>
  12929. </Association>
  12930. <EntityType Name="FmsInvestmentCost">
  12931. <Key>
  12932. <PropertyRef Name="SiteId" />
  12933. <PropertyRef Name="InsvestmentCostId" />
  12934. </Key>
  12935. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12936. <Property Name="InsvestmentCostId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12937. <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  12938. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  12939. <Property Name="InsvestmentCost" Type="Double" Nullable="false" />
  12940. </EntityType>
  12941. <EntityType Name="CmHolidayWeekend">
  12942. <Key>
  12943. <PropertyRef Name="SiteId" />
  12944. </Key>
  12945. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12946. <Property Name="Saturday" Type="Boolean" Nullable="false" />
  12947. <Property Name="Sunday" Type="Boolean" Nullable="false" />
  12948. <Property Name="IsUse" Type="Boolean" />
  12949. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmHolidayWeekend" ToRole="CmSite" />
  12950. </EntityType>
  12951. <Association Name="FK_FmsAccident_CmCompany">
  12952. <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="0..1" />
  12953. <End Type="iBemsModel.FmsAccident" Role="FmsAccident" Multiplicity="*" />
  12954. <ReferentialConstraint>
  12955. <Principal Role="CmCompany">
  12956. <PropertyRef Name="SiteId" />
  12957. <PropertyRef Name="CompanyId" />
  12958. </Principal>
  12959. <Dependent Role="FmsAccident">
  12960. <PropertyRef Name="SiteId" />
  12961. <PropertyRef Name="CompanyId" />
  12962. </Dependent>
  12963. </ReferentialConstraint>
  12964. </Association>
  12965. <EntityType Name="FmsMaterial">
  12966. <Key>
  12967. <PropertyRef Name="SiteId" />
  12968. <PropertyRef Name="MaterialId" />
  12969. </Key>
  12970. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12971. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  12972. <Property Name="MaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12973. <Property Name="MaterialCode" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  12974. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  12975. <Property Name="FirstClassId" Type="Int32" />
  12976. <Property Name="SecondClassId" Type="Int32" />
  12977. <Property Name="ThirdClassId" Type="Int32" />
  12978. <Property Name="LocationId" Type="Int32" />
  12979. <Property Name="MaterialTypeId" Type="Int32" />
  12980. <Property Name="WarehouseId" Type="Int32" />
  12981. <Property Name="TradeCompanyId" Type="Int32" />
  12982. <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  12983. <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
  12984. <Property Name="DurableYears" Type="Int16" />
  12985. <Property Name="ReasonableStockCount" Type="Int16" />
  12986. <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  12987. <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  12988. <Property Name="FinalPrice" Type="Int32" />
  12989. <Property Name="ImageFileId" Type="Int32" />
  12990. <Property Name="Note" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  12991. <Property Name="IsDiscontinued" Type="Boolean" />
  12992. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  12993. <Property Name="FinalStockCount" Type="Int32" Nullable="false" />
  12994. <Property Name="FinalTotalStockAmount" Type="Int32" Nullable="false" />
  12995. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="FmsMaterial" ToRole="CmBusinessField" />
  12996. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="FmsMaterial" ToRole="CmFile" />
  12997. <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  12998. <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  12999. <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  13000. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterial" ToRole="FmsMaterialCodeLocation" />
  13001. <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterial" ToRole="FmsMaterialCodeType" />
  13002. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterial" ToRole="FmsMaterialTradeCompany" />
  13003. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterial" ToRole="FmsMaterialWarehouse" />
  13004. <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseOrderMaterial" />
  13005. <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseRequestMaterial" />
  13006. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialRelease" />
  13007. <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialStored" />
  13008. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsWorkResultCheckItemMaterial" />
  13009. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="FmsMaterial" ToRole="CmSite" />
  13010. </EntityType>
  13011. <EntityType Name="FmsMaterialRelease">
  13012. <Key>
  13013. <PropertyRef Name="SiteId" />
  13014. <PropertyRef Name="MaterialReleaseId" />
  13015. </Key>
  13016. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13017. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  13018. <Property Name="ReleaseDate" Type="DateTime" Nullable="false" Precision="3" />
  13019. <Property Name="MaterialReleaseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13020. <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
  13021. <Property Name="WorkRequestId" Type="Int32" />
  13022. <Property Name="WarehouseId" Type="Int32" />
  13023. <Property Name="MaterialId" Type="Int32" />
  13024. <Property Name="MaterialCount" Type="Int32" />
  13025. <Property Name="ReleaseTotalCost" Type="Int32" />
  13026. <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
  13027. <Property Name="AdjustmentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13028. <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13029. <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
  13030. <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
  13031. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  13032. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="FmsMaterialRelease" ToRole="CmBusinessField" />
  13033. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="FmsMaterialRelease" ToRole="CmUser" />
  13034. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="FmsMaterialRelease" ToRole="CmUser" />
  13035. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterialRelease" ToRole="FmsMaterial" />
  13036. <NavigationProperty Name="FmsMaterialCodeAdjustmentType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeAdjustmentType" />
  13037. <NavigationProperty Name="FmsMaterialCodeReleaseType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeReleaseType" />
  13038. <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsMaterialRelease" ToRole="FmsWorkResult" />
  13039. <Property Name="StockCountByPoint" Type="Int32" />
  13040. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="FmsMaterialRelease" ToRole="CmSite" />
  13041. </EntityType>
  13042. <Association Name="FK_FmsMaterial_CmBusinessField">
  13043. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  13044. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13045. <ReferentialConstraint>
  13046. <Principal Role="CmBusinessField">
  13047. <PropertyRef Name="SiteId" />
  13048. <PropertyRef Name="BusinessFieldId" />
  13049. </Principal>
  13050. <Dependent Role="FmsMaterial">
  13051. <PropertyRef Name="SiteId" />
  13052. <PropertyRef Name="BusinessFieldId" />
  13053. </Dependent>
  13054. </ReferentialConstraint>
  13055. </Association>
  13056. <Association Name="FK_FmsMaterialRelease_CmBusinessField">
  13057. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  13058. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13059. <ReferentialConstraint>
  13060. <Principal Role="CmBusinessField">
  13061. <PropertyRef Name="SiteId" />
  13062. <PropertyRef Name="BusinessFieldId" />
  13063. </Principal>
  13064. <Dependent Role="FmsMaterialRelease">
  13065. <PropertyRef Name="SiteId" />
  13066. <PropertyRef Name="BusinessFieldId" />
  13067. </Dependent>
  13068. </ReferentialConstraint>
  13069. </Association>
  13070. <Association Name="FK_FmsMaterial_CmFile">
  13071. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  13072. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13073. <ReferentialConstraint>
  13074. <Principal Role="CmFile">
  13075. <PropertyRef Name="SiteId" />
  13076. <PropertyRef Name="FileId" />
  13077. </Principal>
  13078. <Dependent Role="FmsMaterial">
  13079. <PropertyRef Name="SiteId" />
  13080. <PropertyRef Name="ImageFileId" />
  13081. </Dependent>
  13082. </ReferentialConstraint>
  13083. </Association>
  13084. <Association Name="FK_FmsMaterialRelease_CmUser">
  13085. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  13086. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13087. <ReferentialConstraint>
  13088. <Principal Role="CmUser">
  13089. <PropertyRef Name="SiteId" />
  13090. <PropertyRef Name="UserId" />
  13091. </Principal>
  13092. <Dependent Role="FmsMaterialRelease">
  13093. <PropertyRef Name="SiteId" />
  13094. <PropertyRef Name="ConfirmedUserId" />
  13095. </Dependent>
  13096. </ReferentialConstraint>
  13097. </Association>
  13098. <Association Name="FK_FmsMaterialRelease_CmUser1">
  13099. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  13100. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13101. <ReferentialConstraint>
  13102. <Principal Role="CmUser">
  13103. <PropertyRef Name="SiteId" />
  13104. <PropertyRef Name="UserId" />
  13105. </Principal>
  13106. <Dependent Role="FmsMaterialRelease">
  13107. <PropertyRef Name="SiteId" />
  13108. <PropertyRef Name="AdjustmentUserId" />
  13109. </Dependent>
  13110. </ReferentialConstraint>
  13111. </Association>
  13112. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  13113. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  13114. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13115. <ReferentialConstraint>
  13116. <Principal Role="FmsMaterialCodeClass">
  13117. <PropertyRef Name="SiteId" />
  13118. <PropertyRef Name="MaterialClassId" />
  13119. </Principal>
  13120. <Dependent Role="FmsMaterial">
  13121. <PropertyRef Name="SiteId" />
  13122. <PropertyRef Name="FirstClassId" />
  13123. </Dependent>
  13124. </ReferentialConstraint>
  13125. </Association>
  13126. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  13127. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  13128. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13129. <ReferentialConstraint>
  13130. <Principal Role="FmsMaterialCodeClass">
  13131. <PropertyRef Name="SiteId" />
  13132. <PropertyRef Name="MaterialClassId" />
  13133. </Principal>
  13134. <Dependent Role="FmsMaterial">
  13135. <PropertyRef Name="SiteId" />
  13136. <PropertyRef Name="SecondClassId" />
  13137. </Dependent>
  13138. </ReferentialConstraint>
  13139. </Association>
  13140. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  13141. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  13142. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13143. <ReferentialConstraint>
  13144. <Principal Role="FmsMaterialCodeClass">
  13145. <PropertyRef Name="SiteId" />
  13146. <PropertyRef Name="MaterialClassId" />
  13147. </Principal>
  13148. <Dependent Role="FmsMaterial">
  13149. <PropertyRef Name="SiteId" />
  13150. <PropertyRef Name="ThirdClassId" />
  13151. </Dependent>
  13152. </ReferentialConstraint>
  13153. </Association>
  13154. <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
  13155. <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="0..1" />
  13156. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13157. <ReferentialConstraint>
  13158. <Principal Role="FmsMaterialCodeLocation">
  13159. <PropertyRef Name="SiteId" />
  13160. <PropertyRef Name="LocationId" />
  13161. </Principal>
  13162. <Dependent Role="FmsMaterial">
  13163. <PropertyRef Name="SiteId" />
  13164. <PropertyRef Name="LocationId" />
  13165. </Dependent>
  13166. </ReferentialConstraint>
  13167. </Association>
  13168. <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
  13169. <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="0..1" />
  13170. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13171. <ReferentialConstraint>
  13172. <Principal Role="FmsMaterialCodeType">
  13173. <PropertyRef Name="SiteId" />
  13174. <PropertyRef Name="MaterialTypeId" />
  13175. </Principal>
  13176. <Dependent Role="FmsMaterial">
  13177. <PropertyRef Name="SiteId" />
  13178. <PropertyRef Name="MaterialTypeId" />
  13179. </Dependent>
  13180. </ReferentialConstraint>
  13181. </Association>
  13182. <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
  13183. <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="0..1" />
  13184. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13185. <ReferentialConstraint>
  13186. <Principal Role="FmsMaterialTradeCompany">
  13187. <PropertyRef Name="SiteId" />
  13188. <PropertyRef Name="TradeCompanyId" />
  13189. </Principal>
  13190. <Dependent Role="FmsMaterial">
  13191. <PropertyRef Name="SiteId" />
  13192. <PropertyRef Name="TradeCompanyId" />
  13193. </Dependent>
  13194. </ReferentialConstraint>
  13195. </Association>
  13196. <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
  13197. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
  13198. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13199. <ReferentialConstraint>
  13200. <Principal Role="FmsMaterialWarehouse">
  13201. <PropertyRef Name="SiteId" />
  13202. <PropertyRef Name="WarehouseId" />
  13203. </Principal>
  13204. <Dependent Role="FmsMaterial">
  13205. <PropertyRef Name="SiteId" />
  13206. <PropertyRef Name="WarehouseId" />
  13207. </Dependent>
  13208. </ReferentialConstraint>
  13209. </Association>
  13210. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  13211. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13212. <End Type="iBemsModel.FmsMaterialPurchaseOrderMaterial" Role="FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  13213. <ReferentialConstraint>
  13214. <Principal Role="FmsMaterial">
  13215. <PropertyRef Name="SiteId" />
  13216. <PropertyRef Name="MaterialId" />
  13217. </Principal>
  13218. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  13219. <PropertyRef Name="SiteId" />
  13220. <PropertyRef Name="MaterialId" />
  13221. </Dependent>
  13222. </ReferentialConstraint>
  13223. </Association>
  13224. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  13225. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13226. <End Type="iBemsModel.FmsMaterialPurchaseRequestMaterial" Role="FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  13227. <ReferentialConstraint>
  13228. <Principal Role="FmsMaterial">
  13229. <PropertyRef Name="SiteId" />
  13230. <PropertyRef Name="MaterialId" />
  13231. </Principal>
  13232. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  13233. <PropertyRef Name="SiteId" />
  13234. <PropertyRef Name="MaterialId" />
  13235. </Dependent>
  13236. </ReferentialConstraint>
  13237. </Association>
  13238. <Association Name="FK_FmsMaterialRelease_FmsMaterial">
  13239. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13240. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13241. <ReferentialConstraint>
  13242. <Principal Role="FmsMaterial">
  13243. <PropertyRef Name="SiteId" />
  13244. <PropertyRef Name="MaterialId" />
  13245. </Principal>
  13246. <Dependent Role="FmsMaterialRelease">
  13247. <PropertyRef Name="SiteId" />
  13248. <PropertyRef Name="MaterialId" />
  13249. </Dependent>
  13250. </ReferentialConstraint>
  13251. </Association>
  13252. <Association Name="FK_FmsMaterialStored_FmsMaterial">
  13253. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13254. <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
  13255. <ReferentialConstraint>
  13256. <Principal Role="FmsMaterial">
  13257. <PropertyRef Name="SiteId" />
  13258. <PropertyRef Name="MaterialId" />
  13259. </Principal>
  13260. <Dependent Role="FmsMaterialStored">
  13261. <PropertyRef Name="SiteId" />
  13262. <PropertyRef Name="MaterialId" />
  13263. </Dependent>
  13264. </ReferentialConstraint>
  13265. </Association>
  13266. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  13267. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13268. <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  13269. <ReferentialConstraint>
  13270. <Principal Role="FmsMaterial">
  13271. <PropertyRef Name="SiteId" />
  13272. <PropertyRef Name="MaterialId" />
  13273. </Principal>
  13274. <Dependent Role="FmsWorkResultCheckItemMaterial">
  13275. <PropertyRef Name="SiteId" />
  13276. <PropertyRef Name="MaterialId" />
  13277. </Dependent>
  13278. </ReferentialConstraint>
  13279. </Association>
  13280. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  13281. <End Type="iBemsModel.FmsMaterialCodeAdjustmentType" Role="FmsMaterialCodeAdjustmentType" Multiplicity="1" />
  13282. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13283. <ReferentialConstraint>
  13284. <Principal Role="FmsMaterialCodeAdjustmentType">
  13285. <PropertyRef Name="AdjustmentTypeId" />
  13286. </Principal>
  13287. <Dependent Role="FmsMaterialRelease">
  13288. <PropertyRef Name="AdjustmentTypeId" />
  13289. </Dependent>
  13290. </ReferentialConstraint>
  13291. </Association>
  13292. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  13293. <End Type="iBemsModel.FmsMaterialCodeReleaseType" Role="FmsMaterialCodeReleaseType" Multiplicity="1" />
  13294. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13295. <ReferentialConstraint>
  13296. <Principal Role="FmsMaterialCodeReleaseType">
  13297. <PropertyRef Name="ReleaseTypeId" />
  13298. </Principal>
  13299. <Dependent Role="FmsMaterialRelease">
  13300. <PropertyRef Name="ReleaseTypeId" />
  13301. </Dependent>
  13302. </ReferentialConstraint>
  13303. </Association>
  13304. <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
  13305. <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="0..1" />
  13306. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13307. <ReferentialConstraint>
  13308. <Principal Role="FmsWorkResult">
  13309. <PropertyRef Name="SiteId" />
  13310. <PropertyRef Name="WorkRequestId" />
  13311. </Principal>
  13312. <Dependent Role="FmsMaterialRelease">
  13313. <PropertyRef Name="SiteId" />
  13314. <PropertyRef Name="WorkRequestId" />
  13315. </Dependent>
  13316. </ReferentialConstraint>
  13317. </Association>
  13318. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  13319. <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="1" />
  13320. <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  13321. <ReferentialConstraint>
  13322. <Principal Role="FmsWorkResult">
  13323. <PropertyRef Name="SiteId" />
  13324. <PropertyRef Name="WorkRequestId" />
  13325. </Principal>
  13326. <Dependent Role="FmsWorkResultCheckItemMaterial">
  13327. <PropertyRef Name="SiteId" />
  13328. <PropertyRef Name="WorkRequestId" />
  13329. </Dependent>
  13330. </ReferentialConstraint>
  13331. </Association>
  13332. <EntityType Name="CmPatrolType">
  13333. <Key>
  13334. <PropertyRef Name="SiteId" />
  13335. <PropertyRef Name="PatrolTypeId" />
  13336. </Key>
  13337. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13338. <Property Name="PatrolTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13339. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  13340. <Property Name="IsUse" Type="Boolean" />
  13341. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistoryPos" />
  13342. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmPatrolType" ToRole="CmSite" />
  13343. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistory" />
  13344. </EntityType>
  13345. <EntityType Name="CmPatrolGroup">
  13346. <Key>
  13347. <PropertyRef Name="SiteId" />
  13348. <PropertyRef Name="PatrolGroupId" />
  13349. </Key>
  13350. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13351. <Property Name="PatrolGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13352. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  13353. <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolGroupUser" />
  13354. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolPlan" />
  13355. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmPatrolGroup" ToRole="CmSite" />
  13356. </EntityType>
  13357. <EntityType Name="CmPatrolGroupUser">
  13358. <Key>
  13359. <PropertyRef Name="SiteId" />
  13360. <PropertyRef Name="PatrolGroupId" />
  13361. <PropertyRef Name="UserId" />
  13362. </Key>
  13363. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13364. <Property Name="PatrolGroupId" Type="Int32" Nullable="false" />
  13365. <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  13366. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroupUser" ToRole="CmPatrolGroup" />
  13367. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmPatrolGroupUser" ToRole="CmUser" />
  13368. </EntityType>
  13369. <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
  13370. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
  13371. <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
  13372. <ReferentialConstraint>
  13373. <Principal Role="CmPatrolGroup">
  13374. <PropertyRef Name="SiteId" />
  13375. <PropertyRef Name="PatrolGroupId" />
  13376. </Principal>
  13377. <Dependent Role="CmPatrolGroupUser">
  13378. <PropertyRef Name="SiteId" />
  13379. <PropertyRef Name="PatrolGroupId" />
  13380. </Dependent>
  13381. </ReferentialConstraint>
  13382. </Association>
  13383. <Association Name="FK_CmPatrolGroupUser_CmUser">
  13384. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  13385. <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
  13386. <ReferentialConstraint>
  13387. <Principal Role="CmUser">
  13388. <PropertyRef Name="SiteId" />
  13389. <PropertyRef Name="UserId" />
  13390. </Principal>
  13391. <Dependent Role="CmPatrolGroupUser">
  13392. <PropertyRef Name="SiteId" />
  13393. <PropertyRef Name="UserId" />
  13394. </Dependent>
  13395. </ReferentialConstraint>
  13396. </Association>
  13397. <EntityType Name="CmPatrolPos">
  13398. <Key>
  13399. <PropertyRef Name="SiteId" />
  13400. <PropertyRef Name="PosId" />
  13401. </Key>
  13402. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13403. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  13404. <Property Name="FloorId" Type="Int32" Nullable="false" />
  13405. <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13406. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  13407. <Property Name="TagId" Type="String" MaxLength="32" FixedLength="false" Unicode="true" />
  13408. <Property Name="PosDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  13409. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmPatrolPos" ToRole="CmBuilding" />
  13410. <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmPatrolPos" ToRole="CmFloor" />
  13411. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolCoursePos" />
  13412. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolHistoryPos" />
  13413. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmPatrolPos" ToRole="CmSite" />
  13414. </EntityType>
  13415. <Association Name="FK_CmPatrolPos_CmBuilding">
  13416. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
  13417. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  13418. <ReferentialConstraint>
  13419. <Principal Role="CmBuilding">
  13420. <PropertyRef Name="SiteId" />
  13421. <PropertyRef Name="BuildingId" />
  13422. </Principal>
  13423. <Dependent Role="CmPatrolPos">
  13424. <PropertyRef Name="SiteId" />
  13425. <PropertyRef Name="BuildingId" />
  13426. </Dependent>
  13427. </ReferentialConstraint>
  13428. </Association>
  13429. <Association Name="FK_CmPatrolPos_CmFloor">
  13430. <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="1" />
  13431. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  13432. <ReferentialConstraint>
  13433. <Principal Role="CmFloor">
  13434. <PropertyRef Name="SiteId" />
  13435. <PropertyRef Name="BuildingId" />
  13436. <PropertyRef Name="FloorId" />
  13437. </Principal>
  13438. <Dependent Role="CmPatrolPos">
  13439. <PropertyRef Name="SiteId" />
  13440. <PropertyRef Name="BuildingId" />
  13441. <PropertyRef Name="FloorId" />
  13442. </Dependent>
  13443. </ReferentialConstraint>
  13444. </Association>
  13445. <EntityType Name="CmPatrolCourse">
  13446. <Key>
  13447. <PropertyRef Name="SiteId" />
  13448. <PropertyRef Name="PatrolCourseId" />
  13449. </Key>
  13450. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13451. <Property Name="PatrolCourseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13452. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  13453. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolCoursePos" />
  13454. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolPlan" />
  13455. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmPatrolCourse" ToRole="CmSite" />
  13456. </EntityType>
  13457. <EntityType Name="CmPatrolCoursePos">
  13458. <Key>
  13459. <PropertyRef Name="SiteId" />
  13460. <PropertyRef Name="PatrolCourseId" />
  13461. <PropertyRef Name="PosId" />
  13462. <PropertyRef Name="BuildingId" />
  13463. <PropertyRef Name="FloorId" />
  13464. </Key>
  13465. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13466. <Property Name="PatrolCourseId" Type="Int32" Nullable="false" />
  13467. <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="None" />
  13468. <Property Name="CourseOrder" Type="Int32" Nullable="false" />
  13469. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCoursePos" ToRole="CmPatrolCourse" />
  13470. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  13471. <Property Name="FloorId" Type="Int32" Nullable="false" />
  13472. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolCoursePos" ToRole="CmPatrolPos" />
  13473. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmPatrolCoursePos" ToRole="CmSite" />
  13474. </EntityType>
  13475. <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
  13476. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
  13477. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  13478. <ReferentialConstraint>
  13479. <Principal Role="CmPatrolCourse">
  13480. <PropertyRef Name="SiteId" />
  13481. <PropertyRef Name="PatrolCourseId" />
  13482. </Principal>
  13483. <Dependent Role="CmPatrolCoursePos">
  13484. <PropertyRef Name="SiteId" />
  13485. <PropertyRef Name="PatrolCourseId" />
  13486. </Dependent>
  13487. </ReferentialConstraint>
  13488. </Association>
  13489. <Association Name="FK_CmPatrolCoursePos_CmPatrolPos">
  13490. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
  13491. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  13492. <ReferentialConstraint>
  13493. <Principal Role="CmPatrolPos">
  13494. <PropertyRef Name="SiteId" />
  13495. <PropertyRef Name="PosId" />
  13496. </Principal>
  13497. <Dependent Role="CmPatrolCoursePos">
  13498. <PropertyRef Name="SiteId" />
  13499. <PropertyRef Name="PosId" />
  13500. </Dependent>
  13501. </ReferentialConstraint>
  13502. </Association>
  13503. <EntityType Name="CmPatrolPlan">
  13504. <Key>
  13505. <PropertyRef Name="SiteId" />
  13506. <PropertyRef Name="PatrolPlanId" />
  13507. </Key>
  13508. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13509. <Property Name="PatrolPlanId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13510. <Property Name="GroupId" Type="Int32" Nullable="false" />
  13511. <Property Name="CourseId" Type="Int32" Nullable="false" />
  13512. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
  13513. <Property Name="PlanDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
  13514. <Property Name="term" Type="Int32" Nullable="false" />
  13515. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolPlan" ToRole="CmPatrolCourse" />
  13516. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolPlan" ToRole="CmPatrolGroup" />
  13517. <Property Name="inDate" Type="DateTime" Precision="3" />
  13518. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolPlan" ToRole="CmPatrolSchedule" />
  13519. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmPatrolPlan" ToRole="CmSite" />
  13520. </EntityType>
  13521. <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
  13522. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
  13523. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  13524. <ReferentialConstraint>
  13525. <Principal Role="CmPatrolCourse">
  13526. <PropertyRef Name="SiteId" />
  13527. <PropertyRef Name="PatrolCourseId" />
  13528. </Principal>
  13529. <Dependent Role="CmPatrolPlan">
  13530. <PropertyRef Name="SiteId" />
  13531. <PropertyRef Name="CourseId" />
  13532. </Dependent>
  13533. </ReferentialConstraint>
  13534. </Association>
  13535. <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
  13536. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
  13537. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  13538. <ReferentialConstraint>
  13539. <Principal Role="CmPatrolGroup">
  13540. <PropertyRef Name="SiteId" />
  13541. <PropertyRef Name="PatrolGroupId" />
  13542. </Principal>
  13543. <Dependent Role="CmPatrolPlan">
  13544. <PropertyRef Name="SiteId" />
  13545. <PropertyRef Name="GroupId" />
  13546. </Dependent>
  13547. </ReferentialConstraint>
  13548. </Association>
  13549. <EntityType Name="CmPatrolHistoryPos">
  13550. <Key>
  13551. <PropertyRef Name="mId" />
  13552. </Key>
  13553. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13554. <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" />
  13555. <Property Name="PosId" Type="Int32" Nullable="false" />
  13556. <Property Name="PatrolTime" Type="DateTime" Nullable="false" Precision="3" />
  13557. <Property Name="term" Type="Int32" />
  13558. <Property Name="resultType" Type="Int32" Nullable="false" />
  13559. <Property Name="mId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13560. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolPos" />
  13561. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolType" />
  13562. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmPatrolHistoryPos" ToRole="CmSite" />
  13563. </EntityType>
  13564. <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
  13565. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
  13566. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  13567. <ReferentialConstraint>
  13568. <Principal Role="CmPatrolPos">
  13569. <PropertyRef Name="SiteId" />
  13570. <PropertyRef Name="PosId" />
  13571. </Principal>
  13572. <Dependent Role="CmPatrolHistoryPos">
  13573. <PropertyRef Name="SiteId" />
  13574. <PropertyRef Name="PosId" />
  13575. </Dependent>
  13576. </ReferentialConstraint>
  13577. </Association>
  13578. <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
  13579. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
  13580. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  13581. <ReferentialConstraint>
  13582. <Principal Role="CmPatrolType">
  13583. <PropertyRef Name="SiteId" />
  13584. <PropertyRef Name="PatrolTypeId" />
  13585. </Principal>
  13586. <Dependent Role="CmPatrolHistoryPos">
  13587. <PropertyRef Name="SiteId" />
  13588. <PropertyRef Name="resultType" />
  13589. </Dependent>
  13590. </ReferentialConstraint>
  13591. </Association>
  13592. <EntityType Name="BemsPeakInfo">
  13593. <Key>
  13594. <PropertyRef Name="SiteId" />
  13595. </Key>
  13596. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13597. <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13598. <Property Name="MaxPeakValue" Type="Double" Nullable="false" />
  13599. <Property Name="MinDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13600. <Property Name="MinPeakValue" Type="Double" Nullable="false" />
  13601. <Property Name="todayMaxPeakValue" Type="Double" Nullable="false" />
  13602. <Property Name="todayMinPeakValue" Type="Double" Nullable="false" />
  13603. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="BemsPeakInfo" ToRole="CmSite" />
  13604. </EntityType>
  13605. <EntityType Name="BemsPeakHistory">
  13606. <Key>
  13607. <PropertyRef Name="SiteId" />
  13608. <PropertyRef Name="CreatedDateTime" />
  13609. </Key>
  13610. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13611. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13612. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  13613. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="BemsPeakHistory" ToRole="CmSite" />
  13614. </EntityType>
  13615. <EntityType Name="CmPatrolSchedule">
  13616. <Key>
  13617. <PropertyRef Name="SiteId" />
  13618. <PropertyRef Name="ScheduleId" />
  13619. </Key>
  13620. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13621. <Property Name="ScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13622. <Property Name="PlanId" Type="Int32" Nullable="false" />
  13623. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
  13624. <Property Name="ScheduleDesc" Type="String" MaxLength="128" FixedLength="false" Unicode="false" />
  13625. <Property Name="inDate" Type="DateTime" Precision="3" />
  13626. <Property Name="patrolDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13627. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolSchedule" ToRole="CmPatrolPlan" />
  13628. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmPatrolSchedule" ToRole="CmSite" />
  13629. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolSchedule" ToRole="CmPatrolHistory" />
  13630. </EntityType>
  13631. <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
  13632. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="1" />
  13633. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
  13634. <ReferentialConstraint>
  13635. <Principal Role="CmPatrolPlan">
  13636. <PropertyRef Name="SiteId" />
  13637. <PropertyRef Name="PatrolPlanId" />
  13638. </Principal>
  13639. <Dependent Role="CmPatrolSchedule">
  13640. <PropertyRef Name="SiteId" />
  13641. <PropertyRef Name="PlanId" />
  13642. </Dependent>
  13643. </ReferentialConstraint>
  13644. </Association>
  13645. <EntityType Name="BemsNoticePriceBase">
  13646. <Key>
  13647. <PropertyRef Name="SiteId" />
  13648. <PropertyRef Name="FuelTypeId" />
  13649. <PropertyRef Name="ApplyDate" />
  13650. <PropertyRef Name="ContractType" />
  13651. </Key>
  13652. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13653. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  13654. <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
  13655. <Property Name="ContractType" Type="Int16" Nullable="false" />
  13656. <Property Name="PrimaryPrice" Type="Int32" />
  13657. <Property Name="SecondaryPrice" Type="Int32" />
  13658. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceContractType" />
  13659. <NavigationProperty Name="BemsNoticePriceDetail" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceDetail" />
  13660. </EntityType>
  13661. <EntityType Name="BemsNoticePriceContractType">
  13662. <Key>
  13663. <PropertyRef Name="FuelTypeId" />
  13664. <PropertyRef Name="ContractType" />
  13665. </Key>
  13666. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  13667. <Property Name="ContractType" Type="Int16" Nullable="false" />
  13668. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  13669. <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="BemsNoticePriceBase" />
  13670. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsNoticePriceContractType" ToRole="BemsFuelType" />
  13671. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="CmFacility" />
  13672. </EntityType>
  13673. <EntityType Name="BemsNoticePriceDetail">
  13674. <Key>
  13675. <PropertyRef Name="SiteId" />
  13676. <PropertyRef Name="FuelTypeId" />
  13677. <PropertyRef Name="ApplyDate" />
  13678. <PropertyRef Name="ContractType" />
  13679. <PropertyRef Name="DataId" />
  13680. </Key>
  13681. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13682. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  13683. <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
  13684. <Property Name="ContractType" Type="Int16" Nullable="false" />
  13685. <Property Name="DataId" Type="Int16" Nullable="false" />
  13686. <Property Name="P01" Type="Double" />
  13687. <Property Name="P02" Type="Double" />
  13688. <Property Name="P03" Type="Double" />
  13689. <Property Name="P04" Type="Double" />
  13690. <Property Name="P05" Type="Double" />
  13691. <Property Name="P06" Type="Double" />
  13692. <Property Name="P07" Type="Double" />
  13693. <Property Name="P08" Type="Double" />
  13694. <Property Name="P09" Type="Double" />
  13695. <Property Name="P10" Type="Double" />
  13696. <Property Name="P11" Type="Double" />
  13697. <Property Name="P12" Type="Double" />
  13698. <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceDetail" ToRole="BemsNoticePriceBase" />
  13699. </EntityType>
  13700. <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  13701. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="1" />
  13702. <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="*" />
  13703. <ReferentialConstraint>
  13704. <Principal Role="BemsNoticePriceContractType">
  13705. <PropertyRef Name="FuelTypeId" />
  13706. <PropertyRef Name="ContractType" />
  13707. </Principal>
  13708. <Dependent Role="BemsNoticePriceBase">
  13709. <PropertyRef Name="FuelTypeId" />
  13710. <PropertyRef Name="ContractType" />
  13711. </Dependent>
  13712. </ReferentialConstraint>
  13713. </Association>
  13714. <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  13715. <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="1" />
  13716. <End Type="iBemsModel.BemsNoticePriceDetail" Role="BemsNoticePriceDetail" Multiplicity="*" />
  13717. <ReferentialConstraint>
  13718. <Principal Role="BemsNoticePriceBase">
  13719. <PropertyRef Name="SiteId" />
  13720. <PropertyRef Name="FuelTypeId" />
  13721. <PropertyRef Name="ApplyDate" />
  13722. <PropertyRef Name="ContractType" />
  13723. </Principal>
  13724. <Dependent Role="BemsNoticePriceDetail">
  13725. <PropertyRef Name="SiteId" />
  13726. <PropertyRef Name="FuelTypeId" />
  13727. <PropertyRef Name="ApplyDate" />
  13728. <PropertyRef Name="ContractType" />
  13729. </Dependent>
  13730. </ReferentialConstraint>
  13731. </Association>
  13732. <EntityType Name="BemsPeakFacility">
  13733. <Key>
  13734. <PropertyRef Name="SiteId" />
  13735. <PropertyRef Name="MaxDateTime" />
  13736. <PropertyRef Name="FacilityCode" />
  13737. </Key>
  13738. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13739. <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13740. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  13741. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="BemsPeakFacility" ToRole="CmFacility" />
  13742. </EntityType>
  13743. <EntityType Name="CmSite">
  13744. <Key>
  13745. <PropertyRef Name="SiteId" />
  13746. </Key>
  13747. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13748. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  13749. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  13750. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  13751. <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  13752. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  13753. <Property Name="PhoneNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13754. <Property Name="URL" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  13755. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  13756. <Property Name="IsUse" Type="Boolean" />
  13757. <Property Name="SortOrderNo" Type="Int32" />
  13758. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  13759. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13760. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  13761. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13762. <Property Name="IsControlSchedule" Type="Boolean" />
  13763. <Property Name="ScheduleCheckHour" Type="Int32" />
  13764. <Property Name="MaxPeak" Type="Double" />
  13765. <Property Name="lat" Type="Double" />
  13766. <Property Name="lng" Type="Double" />
  13767. <NavigationProperty Name="BemsPeakHistory" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="CmSite" ToRole="BemsPeakHistory" />
  13768. <NavigationProperty Name="BemsPeakInfo" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="CmSite" ToRole="BemsPeakInfo" />
  13769. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmSite" ToRole="CmBuilding" />
  13770. <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmSite" ToRole="CmCompany" />
  13771. <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmSite" ToRole="CmFacilityTempSet" />
  13772. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmSite" ToRole="CmFile" />
  13773. <NavigationProperty Name="CmHoliday" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmSite" ToRole="CmHoliday" />
  13774. <NavigationProperty Name="CmHoliday1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmSite" ToRole="CmHoliday" />
  13775. <NavigationProperty Name="CmHolidayCustom" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmSite" ToRole="CmHolidayCustom" />
  13776. <NavigationProperty Name="CmHolidayCustom1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmSite" ToRole="CmHolidayCustom" />
  13777. <NavigationProperty Name="CmHolidayWeekend" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmSite" ToRole="CmHolidayWeekend" />
  13778. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmSite" ToRole="CmPatrolCourse" />
  13779. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmSite" ToRole="CmPatrolCoursePos" />
  13780. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmSite" ToRole="CmPatrolGroup" />
  13781. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmSite" ToRole="CmPatrolHistoryPos" />
  13782. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmSite" ToRole="CmPatrolPlan" />
  13783. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmSite" ToRole="CmPatrolPos" />
  13784. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmSite" ToRole="CmPatrolSchedule" />
  13785. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmSite" ToRole="CmPatrolType" />
  13786. <NavigationProperty Name="CmPosition" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmSite" ToRole="CmPosition" />
  13787. <NavigationProperty Name="CmPosition1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmSite" ToRole="CmPosition" />
  13788. <NavigationProperty Name="CmUserGroup" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmSite" ToRole="CmUserGroup" />
  13789. <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
  13790. <NavigationProperty Name="FmsDrawingCodeType" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
  13791. <NavigationProperty Name="FmsDrawing" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="CmSite" ToRole="FmsDrawing" />
  13792. <NavigationProperty Name="FmsDrawingCodeGroup1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
  13793. <NavigationProperty Name="FmsDrawingCodeType1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
  13794. <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="CmSite" ToRole="FmsFacilityCodeClass" />
  13795. <NavigationProperty Name="FmsLicense" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="CmSite" ToRole="FmsLicense" />
  13796. <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="CmSite" ToRole="FmsMaterialCarriedForward" />
  13797. <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeClass" />
  13798. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeLocation" />
  13799. <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeType" />
  13800. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseOrder" />
  13801. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseRequest" />
  13802. <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="CmSite" ToRole="FmsMaterialStored" />
  13803. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="CmSite" ToRole="FmsMaterialTradeCompany" />
  13804. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="CmSite" ToRole="FmsMaterialWarehouse" />
  13805. <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCauseClass" />
  13806. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCycleUnit" />
  13807. <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeEmergency" />
  13808. <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeHolidayWorkType" />
  13809. <NavigationProperty Name="FmsWorkCodeLegalInspectionAgency" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeLegalInspectionAgency" />
  13810. <NavigationProperty Name="FmsWorkOrder" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="CmSite" ToRole="FmsWorkOrder" />
  13811. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="CmSite" ToRole="FmsWorkRequest" />
  13812. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmSite" ToRole="CmZoneTempHumiSet" />
  13813. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="CmSite" ToRole="FmsMaterial" />
  13814. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="CmSite" ToRole="FmsMaterialRelease" />
  13815. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="CmSite" ToRole="FmsReport" />
  13816. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmSite" ToRole="CmPatrolHistory" />
  13817. <Property Name="controlSchedule" Type="Boolean" />
  13818. <NavigationProperty Name="CmMenu" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmSite" ToRole="CmMenu" />
  13819. <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="CmSite" ToRole="BemsChartInfo" />
  13820. <Property Name="BuildingSize" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  13821. <Property Name="GrossArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13822. <Property Name="BuildingArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13823. <Property Name="FloorAreaRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13824. <Property Name="BuildingCoverageRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13825. <Property Name="MainUse" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  13826. <Property Name="CompletionDate" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13827. <Property Name="Standard" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13828. <Property Name="MainUseIndex" Type="Int32" />
  13829. <Property Name="HDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13830. <Property Name="CDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13831. <NavigationProperty Name="BemsPeopleIncrease" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="CmSite" ToRole="BemsPeopleIncrease" />
  13832. <NavigationProperty Name="BemsRentalRate" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="CmSite" ToRole="BemsRentalRate" />
  13833. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="CmSite" ToRole="BemsSitePrice" />
  13834. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="CmSite" ToRole="BemsSitePriceHistory" />
  13835. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="CmSite" ToRole="BemsAlarmSetting" />
  13836. <NavigationProperty Name="BemsEnergyConfigPercentMonth" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="CmSite" ToRole="BemsEnergyConfigPercentMonth" />
  13837. <NavigationProperty Name="BemsEnergyConfigPercentWeek" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="CmSite" ToRole="BemsEnergyConfigPercentWeek" />
  13838. <NavigationProperty Name="BemsEnergyDailyRegression" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="CmSite" ToRole="BemsEnergyDailyRegression" />
  13839. </EntityType>
  13840. <Association Name="FK_BemsPeakHIstory_CmSite">
  13841. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13842. <End Type="iBemsModel.BemsPeakHistory" Role="BemsPeakHistory" Multiplicity="*" />
  13843. <ReferentialConstraint>
  13844. <Principal Role="CmSite">
  13845. <PropertyRef Name="SiteId" />
  13846. </Principal>
  13847. <Dependent Role="BemsPeakHistory">
  13848. <PropertyRef Name="SiteId" />
  13849. </Dependent>
  13850. </ReferentialConstraint>
  13851. </Association>
  13852. <Association Name="FK_BemsPeakInfo_CmSite">
  13853. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13854. <End Type="iBemsModel.BemsPeakInfo" Role="BemsPeakInfo" Multiplicity="0..1" />
  13855. <ReferentialConstraint>
  13856. <Principal Role="CmSite">
  13857. <PropertyRef Name="SiteId" />
  13858. </Principal>
  13859. <Dependent Role="BemsPeakInfo">
  13860. <PropertyRef Name="SiteId" />
  13861. </Dependent>
  13862. </ReferentialConstraint>
  13863. </Association>
  13864. <Association Name="FK__CmBuildin__SiteI__3BFFE745">
  13865. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13866. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="*" />
  13867. <ReferentialConstraint>
  13868. <Principal Role="CmSite">
  13869. <PropertyRef Name="SiteId" />
  13870. </Principal>
  13871. <Dependent Role="CmBuilding">
  13872. <PropertyRef Name="SiteId" />
  13873. </Dependent>
  13874. </ReferentialConstraint>
  13875. </Association>
  13876. <Association Name="FK__CmCompany__SiteI__336AA144">
  13877. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13878. <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="*" />
  13879. <ReferentialConstraint>
  13880. <Principal Role="CmSite">
  13881. <PropertyRef Name="SiteId" />
  13882. </Principal>
  13883. <Dependent Role="CmCompany">
  13884. <PropertyRef Name="SiteId" />
  13885. </Dependent>
  13886. </ReferentialConstraint>
  13887. </Association>
  13888. <Association Name="FK_CmFacilityTempSet_CmSite">
  13889. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13890. <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="*" />
  13891. <ReferentialConstraint>
  13892. <Principal Role="CmSite">
  13893. <PropertyRef Name="SiteId" />
  13894. </Principal>
  13895. <Dependent Role="CmFacilityTempSet">
  13896. <PropertyRef Name="SiteId" />
  13897. </Dependent>
  13898. </ReferentialConstraint>
  13899. </Association>
  13900. <Association Name="FK__CmFile__SiteId__2759D01A">
  13901. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13902. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="*" />
  13903. <ReferentialConstraint>
  13904. <Principal Role="CmSite">
  13905. <PropertyRef Name="SiteId" />
  13906. </Principal>
  13907. <Dependent Role="CmFile">
  13908. <PropertyRef Name="SiteId" />
  13909. </Dependent>
  13910. </ReferentialConstraint>
  13911. </Association>
  13912. <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
  13913. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13914. <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
  13915. <ReferentialConstraint>
  13916. <Principal Role="CmSite">
  13917. <PropertyRef Name="SiteId" />
  13918. </Principal>
  13919. <Dependent Role="CmHoliday">
  13920. <PropertyRef Name="SiteId" />
  13921. </Dependent>
  13922. </ReferentialConstraint>
  13923. </Association>
  13924. <Association Name="FK__CmHoliday__SiteI__65AC084E">
  13925. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13926. <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
  13927. <ReferentialConstraint>
  13928. <Principal Role="CmSite">
  13929. <PropertyRef Name="SiteId" />
  13930. </Principal>
  13931. <Dependent Role="CmHoliday">
  13932. <PropertyRef Name="SiteId" />
  13933. </Dependent>
  13934. </ReferentialConstraint>
  13935. </Association>
  13936. <Association Name="FK__CmHoliday__SiteI__10766AC2">
  13937. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13938. <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
  13939. <ReferentialConstraint>
  13940. <Principal Role="CmSite">
  13941. <PropertyRef Name="SiteId" />
  13942. </Principal>
  13943. <Dependent Role="CmHolidayCustom">
  13944. <PropertyRef Name="SiteId" />
  13945. </Dependent>
  13946. </ReferentialConstraint>
  13947. </Association>
  13948. <Association Name="FK__CmHoliday__SiteI__66A02C87">
  13949. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13950. <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
  13951. <ReferentialConstraint>
  13952. <Principal Role="CmSite">
  13953. <PropertyRef Name="SiteId" />
  13954. </Principal>
  13955. <Dependent Role="CmHolidayCustom">
  13956. <PropertyRef Name="SiteId" />
  13957. </Dependent>
  13958. </ReferentialConstraint>
  13959. </Association>
  13960. <Association Name="FK__CmHoliday__SiteI__0D99FE17">
  13961. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13962. <End Type="iBemsModel.CmHolidayWeekend" Role="CmHolidayWeekend" Multiplicity="0..1" />
  13963. <ReferentialConstraint>
  13964. <Principal Role="CmSite">
  13965. <PropertyRef Name="SiteId" />
  13966. </Principal>
  13967. <Dependent Role="CmHolidayWeekend">
  13968. <PropertyRef Name="SiteId" />
  13969. </Dependent>
  13970. </ReferentialConstraint>
  13971. </Association>
  13972. <Association Name="FK_CmPatrolCourse_CmSite">
  13973. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13974. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="*" />
  13975. <ReferentialConstraint>
  13976. <Principal Role="CmSite">
  13977. <PropertyRef Name="SiteId" />
  13978. </Principal>
  13979. <Dependent Role="CmPatrolCourse">
  13980. <PropertyRef Name="SiteId" />
  13981. </Dependent>
  13982. </ReferentialConstraint>
  13983. </Association>
  13984. <Association Name="FK_CmPatrolCoursePos_CmSite">
  13985. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13986. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  13987. <ReferentialConstraint>
  13988. <Principal Role="CmSite">
  13989. <PropertyRef Name="SiteId" />
  13990. </Principal>
  13991. <Dependent Role="CmPatrolCoursePos">
  13992. <PropertyRef Name="SiteId" />
  13993. </Dependent>
  13994. </ReferentialConstraint>
  13995. </Association>
  13996. <Association Name="FK_CmPatrolGroup_CmSite">
  13997. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13998. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="*" />
  13999. <ReferentialConstraint>
  14000. <Principal Role="CmSite">
  14001. <PropertyRef Name="SiteId" />
  14002. </Principal>
  14003. <Dependent Role="CmPatrolGroup">
  14004. <PropertyRef Name="SiteId" />
  14005. </Dependent>
  14006. </ReferentialConstraint>
  14007. </Association>
  14008. <Association Name="FK_CmPatrolHistoryPos_CmSite">
  14009. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14010. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  14011. <ReferentialConstraint>
  14012. <Principal Role="CmSite">
  14013. <PropertyRef Name="SiteId" />
  14014. </Principal>
  14015. <Dependent Role="CmPatrolHistoryPos">
  14016. <PropertyRef Name="SiteId" />
  14017. </Dependent>
  14018. </ReferentialConstraint>
  14019. </Association>
  14020. <Association Name="FK_CmPatrolPlan_CmSite">
  14021. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14022. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  14023. <ReferentialConstraint>
  14024. <Principal Role="CmSite">
  14025. <PropertyRef Name="SiteId" />
  14026. </Principal>
  14027. <Dependent Role="CmPatrolPlan">
  14028. <PropertyRef Name="SiteId" />
  14029. </Dependent>
  14030. </ReferentialConstraint>
  14031. </Association>
  14032. <Association Name="FK_CmPatrolPos_CmSite">
  14033. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14034. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  14035. <ReferentialConstraint>
  14036. <Principal Role="CmSite">
  14037. <PropertyRef Name="SiteId" />
  14038. </Principal>
  14039. <Dependent Role="CmPatrolPos">
  14040. <PropertyRef Name="SiteId" />
  14041. </Dependent>
  14042. </ReferentialConstraint>
  14043. </Association>
  14044. <Association Name="FK_CmPatrolSchedule_CmSite">
  14045. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14046. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
  14047. <ReferentialConstraint>
  14048. <Principal Role="CmSite">
  14049. <PropertyRef Name="SiteId" />
  14050. </Principal>
  14051. <Dependent Role="CmPatrolSchedule">
  14052. <PropertyRef Name="SiteId" />
  14053. </Dependent>
  14054. </ReferentialConstraint>
  14055. </Association>
  14056. <Association Name="FK_CmPatrolType_CmSite">
  14057. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14058. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="*" />
  14059. <ReferentialConstraint>
  14060. <Principal Role="CmSite">
  14061. <PropertyRef Name="SiteId" />
  14062. </Principal>
  14063. <Dependent Role="CmPatrolType">
  14064. <PropertyRef Name="SiteId" />
  14065. </Dependent>
  14066. </ReferentialConstraint>
  14067. </Association>
  14068. <Association Name="FK__CmPositio__SiteI__6A70BD6B">
  14069. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14070. <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
  14071. <ReferentialConstraint>
  14072. <Principal Role="CmSite">
  14073. <PropertyRef Name="SiteId" />
  14074. </Principal>
  14075. <Dependent Role="CmPosition">
  14076. <PropertyRef Name="SiteId" />
  14077. </Dependent>
  14078. </ReferentialConstraint>
  14079. </Association>
  14080. <Association Name="FK__CmUserPos__SiteI__44952D46">
  14081. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14082. <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
  14083. <ReferentialConstraint>
  14084. <Principal Role="CmSite">
  14085. <PropertyRef Name="SiteId" />
  14086. </Principal>
  14087. <Dependent Role="CmPosition">
  14088. <PropertyRef Name="SiteId" />
  14089. </Dependent>
  14090. </ReferentialConstraint>
  14091. </Association>
  14092. <Association Name="FK__CmUserGro__SiteI__53D770D6">
  14093. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14094. <End Type="iBemsModel.CmUserGroup" Role="CmUserGroup" Multiplicity="*" />
  14095. <ReferentialConstraint>
  14096. <Principal Role="CmSite">
  14097. <PropertyRef Name="SiteId" />
  14098. </Principal>
  14099. <Dependent Role="CmUserGroup">
  14100. <PropertyRef Name="SiteId" />
  14101. </Dependent>
  14102. </ReferentialConstraint>
  14103. </Association>
  14104. <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
  14105. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14106. <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
  14107. <ReferentialConstraint>
  14108. <Principal Role="CmSite">
  14109. <PropertyRef Name="SiteId" />
  14110. </Principal>
  14111. <Dependent Role="FmsDrawingCodeGroup">
  14112. <PropertyRef Name="SiteId" />
  14113. </Dependent>
  14114. </ReferentialConstraint>
  14115. </Association>
  14116. <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
  14117. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14118. <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
  14119. <ReferentialConstraint>
  14120. <Principal Role="CmSite">
  14121. <PropertyRef Name="SiteId" />
  14122. </Principal>
  14123. <Dependent Role="FmsDrawingCodeType">
  14124. <PropertyRef Name="SiteId" />
  14125. </Dependent>
  14126. </ReferentialConstraint>
  14127. </Association>
  14128. <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
  14129. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14130. <End Type="iBemsModel.FmsDrawing" Role="FmsDrawing" Multiplicity="*" />
  14131. <ReferentialConstraint>
  14132. <Principal Role="CmSite">
  14133. <PropertyRef Name="SiteId" />
  14134. </Principal>
  14135. <Dependent Role="FmsDrawing">
  14136. <PropertyRef Name="SiteId" />
  14137. </Dependent>
  14138. </ReferentialConstraint>
  14139. </Association>
  14140. <Association Name="FK__FmsDrawin__SiteI__6F357288">
  14141. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14142. <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
  14143. <ReferentialConstraint>
  14144. <Principal Role="CmSite">
  14145. <PropertyRef Name="SiteId" />
  14146. </Principal>
  14147. <Dependent Role="FmsDrawingCodeGroup">
  14148. <PropertyRef Name="SiteId" />
  14149. </Dependent>
  14150. </ReferentialConstraint>
  14151. </Association>
  14152. <Association Name="FK__FmsDrawin__SiteI__702996C1">
  14153. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14154. <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
  14155. <ReferentialConstraint>
  14156. <Principal Role="CmSite">
  14157. <PropertyRef Name="SiteId" />
  14158. </Principal>
  14159. <Dependent Role="FmsDrawingCodeType">
  14160. <PropertyRef Name="SiteId" />
  14161. </Dependent>
  14162. </ReferentialConstraint>
  14163. </Association>
  14164. <Association Name="FK__FmsFacilityCodeClass__CmSite">
  14165. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1">
  14166. <OnDelete Action="Cascade" />
  14167. </End>
  14168. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="*" />
  14169. <ReferentialConstraint>
  14170. <Principal Role="CmSite">
  14171. <PropertyRef Name="SiteId" />
  14172. </Principal>
  14173. <Dependent Role="FmsFacilityCodeClass">
  14174. <PropertyRef Name="SiteId" />
  14175. </Dependent>
  14176. </ReferentialConstraint>
  14177. </Association>
  14178. <Association Name="FK__FmsLicense__CmSite">
  14179. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14180. <End Type="iBemsModel.FmsLicense" Role="FmsLicense" Multiplicity="*" />
  14181. <ReferentialConstraint>
  14182. <Principal Role="CmSite">
  14183. <PropertyRef Name="SiteId" />
  14184. </Principal>
  14185. <Dependent Role="FmsLicense">
  14186. <PropertyRef Name="SiteId" />
  14187. </Dependent>
  14188. </ReferentialConstraint>
  14189. </Association>
  14190. <Association Name="FK__FmsMaterialCarriedForward__CmSite">
  14191. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14192. <End Type="iBemsModel.FmsMaterialCarriedForward" Role="FmsMaterialCarriedForward" Multiplicity="*" />
  14193. <ReferentialConstraint>
  14194. <Principal Role="CmSite">
  14195. <PropertyRef Name="SiteId" />
  14196. </Principal>
  14197. <Dependent Role="FmsMaterialCarriedForward">
  14198. <PropertyRef Name="SiteId" />
  14199. </Dependent>
  14200. </ReferentialConstraint>
  14201. </Association>
  14202. <Association Name="FK__FmsMaterialCodeClass__CmSite">
  14203. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14204. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="*" />
  14205. <ReferentialConstraint>
  14206. <Principal Role="CmSite">
  14207. <PropertyRef Name="SiteId" />
  14208. </Principal>
  14209. <Dependent Role="FmsMaterialCodeClass">
  14210. <PropertyRef Name="SiteId" />
  14211. </Dependent>
  14212. </ReferentialConstraint>
  14213. </Association>
  14214. <Association Name="FK__FmsMaterialCodeLocation__CmSite">
  14215. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14216. <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="*" />
  14217. <ReferentialConstraint>
  14218. <Principal Role="CmSite">
  14219. <PropertyRef Name="SiteId" />
  14220. </Principal>
  14221. <Dependent Role="FmsMaterialCodeLocation">
  14222. <PropertyRef Name="SiteId" />
  14223. </Dependent>
  14224. </ReferentialConstraint>
  14225. </Association>
  14226. <Association Name="FK__FmsMaterialCodeType__CmSite">
  14227. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14228. <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="*" />
  14229. <ReferentialConstraint>
  14230. <Principal Role="CmSite">
  14231. <PropertyRef Name="SiteId" />
  14232. </Principal>
  14233. <Dependent Role="FmsMaterialCodeType">
  14234. <PropertyRef Name="SiteId" />
  14235. </Dependent>
  14236. </ReferentialConstraint>
  14237. </Association>
  14238. <Association Name="FK__FmsMaterialOrder__CmSite">
  14239. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14240. <End Type="iBemsModel.FmsMaterialPurchaseOrder" Role="FmsMaterialPurchaseOrder" Multiplicity="*" />
  14241. <ReferentialConstraint>
  14242. <Principal Role="CmSite">
  14243. <PropertyRef Name="SiteId" />
  14244. </Principal>
  14245. <Dependent Role="FmsMaterialPurchaseOrder">
  14246. <PropertyRef Name="SiteId" />
  14247. </Dependent>
  14248. </ReferentialConstraint>
  14249. </Association>
  14250. <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
  14251. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14252. <End Type="iBemsModel.FmsMaterialPurchaseRequest" Role="FmsMaterialPurchaseRequest" Multiplicity="*" />
  14253. <ReferentialConstraint>
  14254. <Principal Role="CmSite">
  14255. <PropertyRef Name="SiteId" />
  14256. </Principal>
  14257. <Dependent Role="FmsMaterialPurchaseRequest">
  14258. <PropertyRef Name="SiteId" />
  14259. </Dependent>
  14260. </ReferentialConstraint>
  14261. </Association>
  14262. <Association Name="FK__FmsMaterialStored__CmSite">
  14263. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14264. <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
  14265. <ReferentialConstraint>
  14266. <Principal Role="CmSite">
  14267. <PropertyRef Name="SiteId" />
  14268. </Principal>
  14269. <Dependent Role="FmsMaterialStored">
  14270. <PropertyRef Name="SiteId" />
  14271. </Dependent>
  14272. </ReferentialConstraint>
  14273. </Association>
  14274. <Association Name="FK__FmsMaterialTradeCompany__CmSite">
  14275. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14276. <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="*" />
  14277. <ReferentialConstraint>
  14278. <Principal Role="CmSite">
  14279. <PropertyRef Name="SiteId" />
  14280. </Principal>
  14281. <Dependent Role="FmsMaterialTradeCompany">
  14282. <PropertyRef Name="SiteId" />
  14283. </Dependent>
  14284. </ReferentialConstraint>
  14285. </Association>
  14286. <Association Name="FK__FmsMaterialWarehouse__CmSite">
  14287. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14288. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="*" />
  14289. <ReferentialConstraint>
  14290. <Principal Role="CmSite">
  14291. <PropertyRef Name="SiteId" />
  14292. </Principal>
  14293. <Dependent Role="FmsMaterialWarehouse">
  14294. <PropertyRef Name="SiteId" />
  14295. </Dependent>
  14296. </ReferentialConstraint>
  14297. </Association>
  14298. <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
  14299. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14300. <End Type="iBemsModel.FmsWorkCodeCauseClass" Role="FmsWorkCodeCauseClass" Multiplicity="*" />
  14301. <ReferentialConstraint>
  14302. <Principal Role="CmSite">
  14303. <PropertyRef Name="SiteId" />
  14304. </Principal>
  14305. <Dependent Role="FmsWorkCodeCauseClass">
  14306. <PropertyRef Name="SiteId" />
  14307. </Dependent>
  14308. </ReferentialConstraint>
  14309. </Association>
  14310. <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
  14311. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14312. <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="*" />
  14313. <ReferentialConstraint>
  14314. <Principal Role="CmSite">
  14315. <PropertyRef Name="SiteId" />
  14316. </Principal>
  14317. <Dependent Role="FmsWorkCodeCycleUnit">
  14318. <PropertyRef Name="SiteId" />
  14319. </Dependent>
  14320. </ReferentialConstraint>
  14321. </Association>
  14322. <Association Name="FK__FmsWorkCodeEmergency__CmSite">
  14323. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14324. <End Type="iBemsModel.FmsWorkCodeEmergency" Role="FmsWorkCodeEmergency" Multiplicity="*" />
  14325. <ReferentialConstraint>
  14326. <Principal Role="CmSite">
  14327. <PropertyRef Name="SiteId" />
  14328. </Principal>
  14329. <Dependent Role="FmsWorkCodeEmergency">
  14330. <PropertyRef Name="SiteId" />
  14331. </Dependent>
  14332. </ReferentialConstraint>
  14333. </Association>
  14334. <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
  14335. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14336. <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="*" />
  14337. <ReferentialConstraint>
  14338. <Principal Role="CmSite">
  14339. <PropertyRef Name="SiteId" />
  14340. </Principal>
  14341. <Dependent Role="FmsWorkCodeHolidayWorkType">
  14342. <PropertyRef Name="SiteId" />
  14343. </Dependent>
  14344. </ReferentialConstraint>
  14345. </Association>
  14346. <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  14347. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14348. <End Type="iBemsModel.FmsWorkCodeLegalInspectionAgency" Role="FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
  14349. <ReferentialConstraint>
  14350. <Principal Role="CmSite">
  14351. <PropertyRef Name="SiteId" />
  14352. </Principal>
  14353. <Dependent Role="FmsWorkCodeLegalInspectionAgency">
  14354. <PropertyRef Name="SiteId" />
  14355. </Dependent>
  14356. </ReferentialConstraint>
  14357. </Association>
  14358. <Association Name="FK__FmsWorkOrder__CmSite">
  14359. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14360. <End Type="iBemsModel.FmsWorkOrder" Role="FmsWorkOrder" Multiplicity="*" />
  14361. <ReferentialConstraint>
  14362. <Principal Role="CmSite">
  14363. <PropertyRef Name="SiteId" />
  14364. </Principal>
  14365. <Dependent Role="FmsWorkOrder">
  14366. <PropertyRef Name="SiteId" />
  14367. </Dependent>
  14368. </ReferentialConstraint>
  14369. </Association>
  14370. <Association Name="FK__FmsWorkRequest__CmSite">
  14371. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14372. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  14373. <ReferentialConstraint>
  14374. <Principal Role="CmSite">
  14375. <PropertyRef Name="SiteId" />
  14376. </Principal>
  14377. <Dependent Role="FmsWorkRequest">
  14378. <PropertyRef Name="SiteId" />
  14379. </Dependent>
  14380. </ReferentialConstraint>
  14381. </Association>
  14382. <Association Name="FK_CmZoneTempHumiSet_CmSite">
  14383. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14384. <End Type="iBemsModel.CmZoneTempHumiSet" Role="CmZoneTempHumiSet" Multiplicity="*" />
  14385. <ReferentialConstraint>
  14386. <Principal Role="CmSite">
  14387. <PropertyRef Name="SiteId" />
  14388. </Principal>
  14389. <Dependent Role="CmZoneTempHumiSet">
  14390. <PropertyRef Name="SiteId" />
  14391. </Dependent>
  14392. </ReferentialConstraint>
  14393. </Association>
  14394. <Association Name="FK_FmsMaterial_CmSite">
  14395. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14396. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  14397. <ReferentialConstraint>
  14398. <Principal Role="CmSite">
  14399. <PropertyRef Name="SiteId" />
  14400. </Principal>
  14401. <Dependent Role="FmsMaterial">
  14402. <PropertyRef Name="SiteId" />
  14403. </Dependent>
  14404. </ReferentialConstraint>
  14405. </Association>
  14406. <Association Name="FK_FmsMaterialRelease_CmSite">
  14407. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14408. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  14409. <ReferentialConstraint>
  14410. <Principal Role="CmSite">
  14411. <PropertyRef Name="SiteId" />
  14412. </Principal>
  14413. <Dependent Role="FmsMaterialRelease">
  14414. <PropertyRef Name="SiteId" />
  14415. </Dependent>
  14416. </ReferentialConstraint>
  14417. </Association>
  14418. <EntityType Name="FmsReport">
  14419. <Key>
  14420. <PropertyRef Name="SiteId" />
  14421. <PropertyRef Name="RId" />
  14422. </Key>
  14423. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14424. <Property Name="RId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  14425. <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  14426. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  14427. <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  14428. <Property Name="FileId" Type="Int32" />
  14429. <Property Name="MakeDate" Type="DateTime" Nullable="false" Precision="3" />
  14430. <Property Name="ConfirmUserId1" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  14431. <Property Name="ConfirmUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  14432. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  14433. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="FmsReport" ToRole="CmBusinessField" />
  14434. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="FmsReport" ToRole="CmFile" />
  14435. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="FmsReport" ToRole="CmSite" />
  14436. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="FmsReport" ToRole="CmUser" />
  14437. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="FmsReport" ToRole="CmUser" />
  14438. <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="FmsReport" ToRole="CmUser" />
  14439. </EntityType>
  14440. <Association Name="FK_FmsReport_CmBusinessField">
  14441. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  14442. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14443. <ReferentialConstraint>
  14444. <Principal Role="CmBusinessField">
  14445. <PropertyRef Name="SiteId" />
  14446. <PropertyRef Name="BusinessFieldId" />
  14447. </Principal>
  14448. <Dependent Role="FmsReport">
  14449. <PropertyRef Name="SiteId" />
  14450. <PropertyRef Name="BusinessFieldId" />
  14451. </Dependent>
  14452. </ReferentialConstraint>
  14453. </Association>
  14454. <Association Name="FK_FmsReport_CmFile">
  14455. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  14456. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14457. <ReferentialConstraint>
  14458. <Principal Role="CmFile">
  14459. <PropertyRef Name="SiteId" />
  14460. <PropertyRef Name="FileId" />
  14461. </Principal>
  14462. <Dependent Role="FmsReport">
  14463. <PropertyRef Name="SiteId" />
  14464. <PropertyRef Name="FileId" />
  14465. </Dependent>
  14466. </ReferentialConstraint>
  14467. </Association>
  14468. <Association Name="FK_FmsReport_CmSite">
  14469. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14470. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14471. <ReferentialConstraint>
  14472. <Principal Role="CmSite">
  14473. <PropertyRef Name="SiteId" />
  14474. </Principal>
  14475. <Dependent Role="FmsReport">
  14476. <PropertyRef Name="SiteId" />
  14477. </Dependent>
  14478. </ReferentialConstraint>
  14479. </Association>
  14480. <Association Name="FK_FmsReport_CmUser">
  14481. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  14482. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14483. <ReferentialConstraint>
  14484. <Principal Role="CmUser">
  14485. <PropertyRef Name="SiteId" />
  14486. <PropertyRef Name="UserId" />
  14487. </Principal>
  14488. <Dependent Role="FmsReport">
  14489. <PropertyRef Name="SiteId" />
  14490. <PropertyRef Name="RegisterUserId" />
  14491. </Dependent>
  14492. </ReferentialConstraint>
  14493. </Association>
  14494. <Association Name="FK_FmsReport_CmUser1">
  14495. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  14496. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14497. <ReferentialConstraint>
  14498. <Principal Role="CmUser">
  14499. <PropertyRef Name="SiteId" />
  14500. <PropertyRef Name="UserId" />
  14501. </Principal>
  14502. <Dependent Role="FmsReport">
  14503. <PropertyRef Name="SiteId" />
  14504. <PropertyRef Name="ConfirmUserId1" />
  14505. </Dependent>
  14506. </ReferentialConstraint>
  14507. </Association>
  14508. <Association Name="FK_FmsReport_CmUser2">
  14509. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  14510. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14511. <ReferentialConstraint>
  14512. <Principal Role="CmUser">
  14513. <PropertyRef Name="SiteId" />
  14514. <PropertyRef Name="UserId" />
  14515. </Principal>
  14516. <Dependent Role="FmsReport">
  14517. <PropertyRef Name="SiteId" />
  14518. <PropertyRef Name="ConfirmUserId2" />
  14519. </Dependent>
  14520. </ReferentialConstraint>
  14521. </Association>
  14522. <EntityType Name="CmServiceEnergyCalcMonth">
  14523. <Key>
  14524. <PropertyRef Name="SiteId" />
  14525. <PropertyRef Name="calDate" />
  14526. <PropertyRef Name="ServiceTypeId" />
  14527. </Key>
  14528. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14529. <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
  14530. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  14531. <Property Name="Value" Type="Double" />
  14532. </EntityType>
  14533. <EntityType Name="CmServiceEnergyCalcDay">
  14534. <Key>
  14535. <PropertyRef Name="SiteId" />
  14536. <PropertyRef Name="calDate" />
  14537. <PropertyRef Name="ServiceTypeId" />
  14538. </Key>
  14539. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14540. <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
  14541. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  14542. <Property Name="Value" Type="Double" />
  14543. </EntityType>
  14544. <EntityType Name="CmPatrolHistory">
  14545. <Key>
  14546. <PropertyRef Name="PatrolHistoryId" />
  14547. </Key>
  14548. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14549. <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  14550. <Property Name="ScheduleId" Type="Int32" Nullable="false" />
  14551. <Property Name="startDate" Type="DateTime" Nullable="false" Precision="3" />
  14552. <Property Name="endDate" Type="DateTime" Precision="3" />
  14553. <Property Name="resultTypeId" Type="Int32" Nullable="false" />
  14554. <Property Name="resultDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
  14555. <Property Name="resultPosCnt" Type="Int32" />
  14556. <Property Name="resultNormalCnt" Type="Int32" />
  14557. <Property Name="resultAbnormalCnt" Type="Int32" />
  14558. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolHistory" ToRole="CmPatrolSchedule" />
  14559. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolHistory" ToRole="CmPatrolType" />
  14560. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmPatrolHistory" ToRole="CmSite" />
  14561. </EntityType>
  14562. <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
  14563. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="1" />
  14564. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  14565. <ReferentialConstraint>
  14566. <Principal Role="CmPatrolSchedule">
  14567. <PropertyRef Name="SiteId" />
  14568. <PropertyRef Name="ScheduleId" />
  14569. </Principal>
  14570. <Dependent Role="CmPatrolHistory">
  14571. <PropertyRef Name="SiteId" />
  14572. <PropertyRef Name="ScheduleId" />
  14573. </Dependent>
  14574. </ReferentialConstraint>
  14575. </Association>
  14576. <Association Name="FK_CmPatrolHistory_CmPatrolType">
  14577. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
  14578. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  14579. <ReferentialConstraint>
  14580. <Principal Role="CmPatrolType">
  14581. <PropertyRef Name="SiteId" />
  14582. <PropertyRef Name="PatrolTypeId" />
  14583. </Principal>
  14584. <Dependent Role="CmPatrolHistory">
  14585. <PropertyRef Name="SiteId" />
  14586. <PropertyRef Name="resultTypeId" />
  14587. </Dependent>
  14588. </ReferentialConstraint>
  14589. </Association>
  14590. <Association Name="FK_CmPatrolHistory_CmSite">
  14591. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14592. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  14593. <ReferentialConstraint>
  14594. <Principal Role="CmSite">
  14595. <PropertyRef Name="SiteId" />
  14596. </Principal>
  14597. <Dependent Role="CmPatrolHistory">
  14598. <PropertyRef Name="SiteId" />
  14599. </Dependent>
  14600. </ReferentialConstraint>
  14601. </Association>
  14602. <EntityType Name="BemsReportFormat">
  14603. <Key>
  14604. <PropertyRef Name="ReportFormatId" />
  14605. <PropertyRef Name="parts" />
  14606. </Key>
  14607. <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
  14608. <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  14609. <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  14610. <Property Name="parts" Type="Int32" Nullable="false" />
  14611. </EntityType>
  14612. <EntityType Name="FmsWorkSchedule">
  14613. <Key>
  14614. <PropertyRef Name="SiteId" />
  14615. <PropertyRef Name="WorkScheduleId" />
  14616. </Key>
  14617. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14618. <Property Name="WorkScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  14619. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  14620. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  14621. <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
  14622. <Property Name="InspectionAgencyId" Type="Int32" />
  14623. <Property Name="CycleSize" Type="Int32" Nullable="false" />
  14624. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  14625. <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
  14626. <Property Name="WorkDueDate" Type="DateTime" Nullable="false" Precision="3" />
  14627. <Property Name="UpdateUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  14628. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  14629. <Property Name="IsAutoOrder" Type="Boolean" Nullable="false" />
  14630. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  14631. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK__FmsWorkSchedule__CmBusinessField" FromRole="FmsWorkSchedule" ToRole="CmBusinessField" />
  14632. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__FmsWorkSchedule__CmUser" FromRole="FmsWorkSchedule" ToRole="CmUser" />
  14633. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeCycleUnit" />
  14634. <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeHolidayWorkType" />
  14635. <NavigationProperty Name="FmsWorkCodeType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeType" />
  14636. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkRequest" />
  14637. <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkScheduleToFacility" />
  14638. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="FmsWorkSchedule" ToRole="CmPartner" />
  14639. </EntityType>
  14640. <Association Name="FK__FmsWorkSchedule__CmBusinessField">
  14641. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  14642. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14643. <ReferentialConstraint>
  14644. <Principal Role="CmBusinessField">
  14645. <PropertyRef Name="SiteId" />
  14646. <PropertyRef Name="BusinessFieldId" />
  14647. </Principal>
  14648. <Dependent Role="FmsWorkSchedule">
  14649. <PropertyRef Name="SiteId" />
  14650. <PropertyRef Name="BusinessFieldId" />
  14651. </Dependent>
  14652. </ReferentialConstraint>
  14653. </Association>
  14654. <Association Name="FK__FmsWorkSchedule__CmUser">
  14655. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  14656. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14657. <ReferentialConstraint>
  14658. <Principal Role="CmUser">
  14659. <PropertyRef Name="SiteId" />
  14660. <PropertyRef Name="UserId" />
  14661. </Principal>
  14662. <Dependent Role="FmsWorkSchedule">
  14663. <PropertyRef Name="SiteId" />
  14664. <PropertyRef Name="UpdateUserId" />
  14665. </Dependent>
  14666. </ReferentialConstraint>
  14667. </Association>
  14668. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  14669. <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="1" />
  14670. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14671. <ReferentialConstraint>
  14672. <Principal Role="FmsWorkCodeCycleUnit">
  14673. <PropertyRef Name="SiteId" />
  14674. <PropertyRef Name="CycleUnitId" />
  14675. </Principal>
  14676. <Dependent Role="FmsWorkSchedule">
  14677. <PropertyRef Name="SiteId" />
  14678. <PropertyRef Name="CycleUnitId" />
  14679. </Dependent>
  14680. </ReferentialConstraint>
  14681. </Association>
  14682. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  14683. <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="1" />
  14684. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14685. <ReferentialConstraint>
  14686. <Principal Role="FmsWorkCodeHolidayWorkType">
  14687. <PropertyRef Name="SiteId" />
  14688. <PropertyRef Name="HolidayWorkTypeId" />
  14689. </Principal>
  14690. <Dependent Role="FmsWorkSchedule">
  14691. <PropertyRef Name="SiteId" />
  14692. <PropertyRef Name="HolidayWorkTypeId" />
  14693. </Dependent>
  14694. </ReferentialConstraint>
  14695. </Association>
  14696. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  14697. <End Type="iBemsModel.FmsWorkCodeType" Role="FmsWorkCodeType" Multiplicity="1" />
  14698. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14699. <ReferentialConstraint>
  14700. <Principal Role="FmsWorkCodeType">
  14701. <PropertyRef Name="WorkTypeId" />
  14702. </Principal>
  14703. <Dependent Role="FmsWorkSchedule">
  14704. <PropertyRef Name="WorkTypeId" />
  14705. </Dependent>
  14706. </ReferentialConstraint>
  14707. </Association>
  14708. <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
  14709. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="0..1" />
  14710. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  14711. <ReferentialConstraint>
  14712. <Principal Role="FmsWorkSchedule">
  14713. <PropertyRef Name="SiteId" />
  14714. <PropertyRef Name="WorkScheduleId" />
  14715. </Principal>
  14716. <Dependent Role="FmsWorkRequest">
  14717. <PropertyRef Name="SiteId" />
  14718. <PropertyRef Name="WorkScheduleId" />
  14719. </Dependent>
  14720. </ReferentialConstraint>
  14721. </Association>
  14722. <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  14723. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="1" />
  14724. <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
  14725. <ReferentialConstraint>
  14726. <Principal Role="FmsWorkSchedule">
  14727. <PropertyRef Name="SiteId" />
  14728. <PropertyRef Name="WorkScheduleId" />
  14729. </Principal>
  14730. <Dependent Role="FmsWorkScheduleToFacility">
  14731. <PropertyRef Name="SiteId" />
  14732. <PropertyRef Name="WorkScheduleId" />
  14733. </Dependent>
  14734. </ReferentialConstraint>
  14735. </Association>
  14736. <EntityType Name="CmMenu">
  14737. <Key>
  14738. <PropertyRef Name="SiteId" />
  14739. <PropertyRef Name="MenuId" />
  14740. </Key>
  14741. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14742. <Property Name="MenuId" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  14743. <Property Name="Used" Type="Boolean" />
  14744. <Property Name="MenuPath" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  14745. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14746. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmMenu" ToRole="CmSite" />
  14747. </EntityType>
  14748. <Association Name="FK_FmsWorkResultCheckItem_CmFile">
  14749. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  14750. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  14751. <ReferentialConstraint>
  14752. <Principal Role="CmFile">
  14753. <PropertyRef Name="SiteId" />
  14754. <PropertyRef Name="FileId" />
  14755. </Principal>
  14756. <Dependent Role="FmsWorkResultCheckItem">
  14757. <PropertyRef Name="SiteId" />
  14758. <PropertyRef Name="FileId1" />
  14759. </Dependent>
  14760. </ReferentialConstraint>
  14761. </Association>
  14762. <Association Name="FK_FmsWorkResultCheckItem_CmFile1">
  14763. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  14764. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  14765. <ReferentialConstraint>
  14766. <Principal Role="CmFile">
  14767. <PropertyRef Name="SiteId" />
  14768. <PropertyRef Name="FileId" />
  14769. </Principal>
  14770. <Dependent Role="FmsWorkResultCheckItem">
  14771. <PropertyRef Name="SiteId" />
  14772. <PropertyRef Name="FileId2" />
  14773. </Dependent>
  14774. </ReferentialConstraint>
  14775. </Association>
  14776. <Association Name="FK_CmMenu_CmSite">
  14777. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14778. <End Type="iBemsModel.CmMenu" Role="CmMenu" Multiplicity="*" />
  14779. <ReferentialConstraint>
  14780. <Principal Role="CmSite">
  14781. <PropertyRef Name="SiteId" />
  14782. </Principal>
  14783. <Dependent Role="CmMenu">
  14784. <PropertyRef Name="SiteId" />
  14785. </Dependent>
  14786. </ReferentialConstraint>
  14787. </Association>
  14788. <EntityType Name="BemsChartInfo">
  14789. <Key>
  14790. <PropertyRef Name="SiteId" />
  14791. <PropertyRef Name="FacilityTypeId" />
  14792. <PropertyRef Name="ChartId" />
  14793. </Key>
  14794. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14795. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  14796. <Property Name="ChartId" Type="Int32" Nullable="false" />
  14797. <Property Name="LAxTitle" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  14798. <Property Name="RAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14799. <Property Name="XAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14800. <Property Name="XSFmId" Type="Int32" />
  14801. <Property Name="XSType" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14802. <Property Name="LSFmId1" Type="Int32" Nullable="false" />
  14803. <Property Name="LSName1" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  14804. <Property Name="LSType1" Type="String" Nullable="false" MaxLength="16" FixedLength="false" Unicode="true" />
  14805. <Property Name="LSFmId2" Type="Int32" />
  14806. <Property Name="LSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14807. <Property Name="LSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14808. <Property Name="LSFmId3" Type="Int32" />
  14809. <Property Name="LSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14810. <Property Name="LSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14811. <Property Name="LSFmId4" Type="Int32" />
  14812. <Property Name="LSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14813. <Property Name="LSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14814. <Property Name="RSFmId1" Type="Int32" />
  14815. <Property Name="RSName1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14816. <Property Name="RSType1" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14817. <Property Name="RSFmId2" Type="Int32" />
  14818. <Property Name="RSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14819. <Property Name="RSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14820. <Property Name="RSFmId3" Type="Int32" />
  14821. <Property Name="RSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14822. <Property Name="RSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14823. <Property Name="RSFmId4" Type="Int32" />
  14824. <Property Name="RSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14825. <Property Name="RSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14826. <Property Name="Title" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  14827. <Property Name="UseX" Type="Boolean" />
  14828. <Property Name="UseLAxMinMax" Type="Boolean" />
  14829. <Property Name="UseRAxMinMax" Type="Boolean" />
  14830. <Property Name="UseXAxMinMax" Type="Boolean" />
  14831. <Property Name="LAxMin" Type="Double" />
  14832. <Property Name="LAxMax" Type="Double" />
  14833. <Property Name="RAxMin" Type="Double" />
  14834. <Property Name="RAxMax" Type="Double" />
  14835. <Property Name="XAxMin" Type="Double" />
  14836. <Property Name="XAxMax" Type="Double" />
  14837. <Property Name="Palette" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  14838. <Property Name="UseChart" Type="Boolean" />
  14839. <Property Name="UseLCTLine" Type="Boolean" Nullable="false" />
  14840. <Property Name="LCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14841. <Property Name="LCTLineValue" Type="Double" />
  14842. <Property Name="UseRCTLine" Type="Boolean" Nullable="false" />
  14843. <Property Name="RCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14844. <Property Name="RCTLineValue" Type="Double" />
  14845. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsChartInfo" ToRole="BemsFacilityType" />
  14846. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="BemsChartInfo" ToRole="CmSite" />
  14847. </EntityType>
  14848. <Association Name="FK_BemsChartInfo_BemsFacilityType">
  14849. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  14850. <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
  14851. <ReferentialConstraint>
  14852. <Principal Role="BemsFacilityType">
  14853. <PropertyRef Name="FacilityTypeId" />
  14854. </Principal>
  14855. <Dependent Role="BemsChartInfo">
  14856. <PropertyRef Name="FacilityTypeId" />
  14857. </Dependent>
  14858. </ReferentialConstraint>
  14859. </Association>
  14860. <Association Name="FK_BemsChartInfo_CmSite">
  14861. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14862. <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
  14863. <ReferentialConstraint>
  14864. <Principal Role="CmSite">
  14865. <PropertyRef Name="SiteId" />
  14866. </Principal>
  14867. <Dependent Role="BemsChartInfo">
  14868. <PropertyRef Name="SiteId" />
  14869. </Dependent>
  14870. </ReferentialConstraint>
  14871. </Association>
  14872. <EntityType Name="BemsPeopleIncrease">
  14873. <Key>
  14874. <PropertyRef Name="Date" />
  14875. <PropertyRef Name="SiteId" />
  14876. </Key>
  14877. <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
  14878. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14879. <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14880. <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14881. <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14882. <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14883. <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14884. <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14885. <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14886. <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14887. <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14888. <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14889. <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14890. <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14891. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="BemsPeopleIncrease" ToRole="CmSite" />
  14892. </EntityType>
  14893. <EntityType Name="BemsPriceCode">
  14894. <Key>
  14895. <PropertyRef Name="PriceCode" />
  14896. </Key>
  14897. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  14898. <Property Name="PriceCodeDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  14899. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  14900. <Property Name="Unit" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
  14901. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePrice" />
  14902. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePriceHistory" />
  14903. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsPriceCode" ToRole="BemsFuelType" />
  14904. </EntityType>
  14905. <EntityType Name="BemsPriceFormula">
  14906. <Key>
  14907. <PropertyRef Name="SiteId" />
  14908. <PropertyRef Name="PriceTypeId" />
  14909. <PropertyRef Name="FacilityTypeId" />
  14910. <PropertyRef Name="FormulaId" />
  14911. <PropertyRef Name="FacilityCode" />
  14912. </Key>
  14913. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14914. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  14915. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  14916. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  14917. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  14918. <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="true" />
  14919. <NavigationProperty Name="BemsFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsPriceFormula" ToRole="BemsFormula" />
  14920. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceFormula" ToRole="BemsPriceType" />
  14921. </EntityType>
  14922. <EntityType Name="BemsPriceMeta">
  14923. <Key>
  14924. <PropertyRef Name="PriceTypeId" />
  14925. <PropertyRef Name="PublishDate" />
  14926. </Key>
  14927. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  14928. <Property Name="PublishDate" Type="DateTime" Nullable="false" Precision="3" />
  14929. <Property Name="BasePrice" Type="Int32" />
  14930. <Property Name="C01_00" Type="Double" />
  14931. <Property Name="C01_01" Type="Double" />
  14932. <Property Name="C01_02" Type="Double" />
  14933. <Property Name="C01_03" Type="Double" />
  14934. <Property Name="C01_04" Type="Double" />
  14935. <Property Name="C01_05" Type="Double" />
  14936. <Property Name="C01_06" Type="Double" />
  14937. <Property Name="C01_07" Type="Double" />
  14938. <Property Name="C01_08" Type="Double" />
  14939. <Property Name="C01_09" Type="Double" />
  14940. <Property Name="C01_10" Type="Double" />
  14941. <Property Name="C01_11" Type="Double" />
  14942. <Property Name="C01_12" Type="Double" />
  14943. <Property Name="C01_13" Type="Double" />
  14944. <Property Name="C01_14" Type="Double" />
  14945. <Property Name="C01_15" Type="Double" />
  14946. <Property Name="C01_16" Type="Double" />
  14947. <Property Name="C01_17" Type="Double" />
  14948. <Property Name="C01_18" Type="Double" />
  14949. <Property Name="C01_19" Type="Double" />
  14950. <Property Name="C01_20" Type="Double" />
  14951. <Property Name="C01_21" Type="Double" />
  14952. <Property Name="C01_22" Type="Double" />
  14953. <Property Name="C01_23" Type="Double" />
  14954. <Property Name="C02_00" Type="Double" />
  14955. <Property Name="C02_01" Type="Double" />
  14956. <Property Name="C02_02" Type="Double" />
  14957. <Property Name="C02_03" Type="Double" />
  14958. <Property Name="C02_04" Type="Double" />
  14959. <Property Name="C02_05" Type="Double" />
  14960. <Property Name="C02_06" Type="Double" />
  14961. <Property Name="C02_07" Type="Double" />
  14962. <Property Name="C02_08" Type="Double" />
  14963. <Property Name="C02_09" Type="Double" />
  14964. <Property Name="C02_10" Type="Double" />
  14965. <Property Name="C02_11" Type="Double" />
  14966. <Property Name="C02_12" Type="Double" />
  14967. <Property Name="C02_13" Type="Double" />
  14968. <Property Name="C02_14" Type="Double" />
  14969. <Property Name="C02_15" Type="Double" />
  14970. <Property Name="C02_16" Type="Double" />
  14971. <Property Name="C02_17" Type="Double" />
  14972. <Property Name="C02_18" Type="Double" />
  14973. <Property Name="C02_19" Type="Double" />
  14974. <Property Name="C02_20" Type="Double" />
  14975. <Property Name="C02_21" Type="Double" />
  14976. <Property Name="C02_22" Type="Double" />
  14977. <Property Name="C02_23" Type="Double" />
  14978. <Property Name="C03_00" Type="Double" />
  14979. <Property Name="C03_01" Type="Double" />
  14980. <Property Name="C03_02" Type="Double" />
  14981. <Property Name="C03_03" Type="Double" />
  14982. <Property Name="C03_04" Type="Double" />
  14983. <Property Name="C03_05" Type="Double" />
  14984. <Property Name="C03_06" Type="Double" />
  14985. <Property Name="C03_07" Type="Double" />
  14986. <Property Name="C03_08" Type="Double" />
  14987. <Property Name="C03_09" Type="Double" />
  14988. <Property Name="C03_10" Type="Double" />
  14989. <Property Name="C03_11" Type="Double" />
  14990. <Property Name="C03_12" Type="Double" />
  14991. <Property Name="C03_13" Type="Double" />
  14992. <Property Name="C03_14" Type="Double" />
  14993. <Property Name="C03_15" Type="Double" />
  14994. <Property Name="C03_16" Type="Double" />
  14995. <Property Name="C03_17" Type="Double" />
  14996. <Property Name="C03_18" Type="Double" />
  14997. <Property Name="C03_19" Type="Double" />
  14998. <Property Name="C03_20" Type="Double" />
  14999. <Property Name="C03_21" Type="Double" />
  15000. <Property Name="C03_22" Type="Double" />
  15001. <Property Name="C03_23" Type="Double" />
  15002. <Property Name="C04_00" Type="Double" />
  15003. <Property Name="C04_01" Type="Double" />
  15004. <Property Name="C04_02" Type="Double" />
  15005. <Property Name="C04_03" Type="Double" />
  15006. <Property Name="C04_04" Type="Double" />
  15007. <Property Name="C04_05" Type="Double" />
  15008. <Property Name="C04_06" Type="Double" />
  15009. <Property Name="C04_07" Type="Double" />
  15010. <Property Name="C04_08" Type="Double" />
  15011. <Property Name="C04_09" Type="Double" />
  15012. <Property Name="C04_10" Type="Double" />
  15013. <Property Name="C04_11" Type="Double" />
  15014. <Property Name="C04_12" Type="Double" />
  15015. <Property Name="C04_13" Type="Double" />
  15016. <Property Name="C04_14" Type="Double" />
  15017. <Property Name="C04_15" Type="Double" />
  15018. <Property Name="C04_16" Type="Double" />
  15019. <Property Name="C04_17" Type="Double" />
  15020. <Property Name="C04_18" Type="Double" />
  15021. <Property Name="C04_19" Type="Double" />
  15022. <Property Name="C04_20" Type="Double" />
  15023. <Property Name="C04_21" Type="Double" />
  15024. <Property Name="C04_22" Type="Double" />
  15025. <Property Name="C04_23" Type="Double" />
  15026. <Property Name="C05_00" Type="Double" />
  15027. <Property Name="C05_01" Type="Double" />
  15028. <Property Name="C05_02" Type="Double" />
  15029. <Property Name="C05_03" Type="Double" />
  15030. <Property Name="C05_04" Type="Double" />
  15031. <Property Name="C05_05" Type="Double" />
  15032. <Property Name="C05_06" Type="Double" />
  15033. <Property Name="C05_07" Type="Double" />
  15034. <Property Name="C05_08" Type="Double" />
  15035. <Property Name="C05_09" Type="Double" />
  15036. <Property Name="C05_10" Type="Double" />
  15037. <Property Name="C05_11" Type="Double" />
  15038. <Property Name="C05_12" Type="Double" />
  15039. <Property Name="C05_13" Type="Double" />
  15040. <Property Name="C05_14" Type="Double" />
  15041. <Property Name="C05_15" Type="Double" />
  15042. <Property Name="C05_16" Type="Double" />
  15043. <Property Name="C05_17" Type="Double" />
  15044. <Property Name="C05_18" Type="Double" />
  15045. <Property Name="C05_19" Type="Double" />
  15046. <Property Name="C05_20" Type="Double" />
  15047. <Property Name="C05_21" Type="Double" />
  15048. <Property Name="C05_22" Type="Double" />
  15049. <Property Name="C05_23" Type="Double" />
  15050. <Property Name="C06_00" Type="Double" />
  15051. <Property Name="C06_01" Type="Double" />
  15052. <Property Name="C06_02" Type="Double" />
  15053. <Property Name="C06_03" Type="Double" />
  15054. <Property Name="C06_04" Type="Double" />
  15055. <Property Name="C06_05" Type="Double" />
  15056. <Property Name="C06_06" Type="Double" />
  15057. <Property Name="C06_07" Type="Double" />
  15058. <Property Name="C06_08" Type="Double" />
  15059. <Property Name="C06_09" Type="Double" />
  15060. <Property Name="C06_10" Type="Double" />
  15061. <Property Name="C06_11" Type="Double" />
  15062. <Property Name="C06_12" Type="Double" />
  15063. <Property Name="C06_13" Type="Double" />
  15064. <Property Name="C06_14" Type="Double" />
  15065. <Property Name="C06_15" Type="Double" />
  15066. <Property Name="C06_16" Type="Double" />
  15067. <Property Name="C06_17" Type="Double" />
  15068. <Property Name="C06_18" Type="Double" />
  15069. <Property Name="C06_19" Type="Double" />
  15070. <Property Name="C06_20" Type="Double" />
  15071. <Property Name="C06_21" Type="Double" />
  15072. <Property Name="C06_22" Type="Double" />
  15073. <Property Name="C06_23" Type="Double" />
  15074. <Property Name="C07_00" Type="Double" />
  15075. <Property Name="C07_01" Type="Double" />
  15076. <Property Name="C07_02" Type="Double" />
  15077. <Property Name="C07_03" Type="Double" />
  15078. <Property Name="C07_04" Type="Double" />
  15079. <Property Name="C07_05" Type="Double" />
  15080. <Property Name="C07_06" Type="Double" />
  15081. <Property Name="C07_07" Type="Double" />
  15082. <Property Name="C07_08" Type="Double" />
  15083. <Property Name="C07_09" Type="Double" />
  15084. <Property Name="C07_10" Type="Double" />
  15085. <Property Name="C07_11" Type="Double" />
  15086. <Property Name="C07_12" Type="Double" />
  15087. <Property Name="C07_13" Type="Double" />
  15088. <Property Name="C07_14" Type="Double" />
  15089. <Property Name="C07_15" Type="Double" />
  15090. <Property Name="C07_16" Type="Double" />
  15091. <Property Name="C07_17" Type="Double" />
  15092. <Property Name="C07_18" Type="Double" />
  15093. <Property Name="C07_19" Type="Double" />
  15094. <Property Name="C07_20" Type="Double" />
  15095. <Property Name="C07_21" Type="Double" />
  15096. <Property Name="C07_22" Type="Double" />
  15097. <Property Name="C07_23" Type="Double" />
  15098. <Property Name="C08_00" Type="Double" />
  15099. <Property Name="C08_01" Type="Double" />
  15100. <Property Name="C08_02" Type="Double" />
  15101. <Property Name="C08_03" Type="Double" />
  15102. <Property Name="C08_04" Type="Double" />
  15103. <Property Name="C08_05" Type="Double" />
  15104. <Property Name="C08_06" Type="Double" />
  15105. <Property Name="C08_07" Type="Double" />
  15106. <Property Name="C08_08" Type="Double" />
  15107. <Property Name="C08_09" Type="Double" />
  15108. <Property Name="C08_10" Type="Double" />
  15109. <Property Name="C08_11" Type="Double" />
  15110. <Property Name="C08_12" Type="Double" />
  15111. <Property Name="C08_13" Type="Double" />
  15112. <Property Name="C08_14" Type="Double" />
  15113. <Property Name="C08_15" Type="Double" />
  15114. <Property Name="C08_16" Type="Double" />
  15115. <Property Name="C08_17" Type="Double" />
  15116. <Property Name="C08_18" Type="Double" />
  15117. <Property Name="C08_19" Type="Double" />
  15118. <Property Name="C08_20" Type="Double" />
  15119. <Property Name="C08_21" Type="Double" />
  15120. <Property Name="C08_22" Type="Double" />
  15121. <Property Name="C08_23" Type="Double" />
  15122. <Property Name="C09_00" Type="Double" />
  15123. <Property Name="C09_01" Type="Double" />
  15124. <Property Name="C09_02" Type="Double" />
  15125. <Property Name="C09_03" Type="Double" />
  15126. <Property Name="C09_04" Type="Double" />
  15127. <Property Name="C09_05" Type="Double" />
  15128. <Property Name="C09_06" Type="Double" />
  15129. <Property Name="C09_07" Type="Double" />
  15130. <Property Name="C09_08" Type="Double" />
  15131. <Property Name="C09_09" Type="Double" />
  15132. <Property Name="C09_10" Type="Double" />
  15133. <Property Name="C09_11" Type="Double" />
  15134. <Property Name="C09_12" Type="Double" />
  15135. <Property Name="C09_13" Type="Double" />
  15136. <Property Name="C09_14" Type="Double" />
  15137. <Property Name="C09_15" Type="Double" />
  15138. <Property Name="C09_16" Type="Double" />
  15139. <Property Name="C09_17" Type="Double" />
  15140. <Property Name="C09_18" Type="Double" />
  15141. <Property Name="C09_19" Type="Double" />
  15142. <Property Name="C09_20" Type="Double" />
  15143. <Property Name="C09_21" Type="Double" />
  15144. <Property Name="C09_22" Type="Double" />
  15145. <Property Name="C09_23" Type="Double" />
  15146. <Property Name="C10_00" Type="Double" />
  15147. <Property Name="C10_01" Type="Double" />
  15148. <Property Name="C10_02" Type="Double" />
  15149. <Property Name="C10_03" Type="Double" />
  15150. <Property Name="C10_04" Type="Double" />
  15151. <Property Name="C10_05" Type="Double" />
  15152. <Property Name="C10_06" Type="Double" />
  15153. <Property Name="C10_07" Type="Double" />
  15154. <Property Name="C10_08" Type="Double" />
  15155. <Property Name="C10_09" Type="Double" />
  15156. <Property Name="C10_10" Type="Double" />
  15157. <Property Name="C10_11" Type="Double" />
  15158. <Property Name="C10_12" Type="Double" />
  15159. <Property Name="C10_13" Type="Double" />
  15160. <Property Name="C10_14" Type="Double" />
  15161. <Property Name="C10_15" Type="Double" />
  15162. <Property Name="C10_16" Type="Double" />
  15163. <Property Name="C10_17" Type="Double" />
  15164. <Property Name="C10_18" Type="Double" />
  15165. <Property Name="C10_19" Type="Double" />
  15166. <Property Name="C10_20" Type="Double" />
  15167. <Property Name="C10_21" Type="Double" />
  15168. <Property Name="C10_22" Type="Double" />
  15169. <Property Name="C10_23" Type="Double" />
  15170. <Property Name="C11_00" Type="Double" />
  15171. <Property Name="C11_01" Type="Double" />
  15172. <Property Name="C11_02" Type="Double" />
  15173. <Property Name="C11_03" Type="Double" />
  15174. <Property Name="C11_04" Type="Double" />
  15175. <Property Name="C11_05" Type="Double" />
  15176. <Property Name="C11_06" Type="Double" />
  15177. <Property Name="C11_07" Type="Double" />
  15178. <Property Name="C11_08" Type="Double" />
  15179. <Property Name="C11_09" Type="Double" />
  15180. <Property Name="C11_10" Type="Double" />
  15181. <Property Name="C11_11" Type="Double" />
  15182. <Property Name="C11_12" Type="Double" />
  15183. <Property Name="C11_13" Type="Double" />
  15184. <Property Name="C11_14" Type="Double" />
  15185. <Property Name="C11_15" Type="Double" />
  15186. <Property Name="C11_16" Type="Double" />
  15187. <Property Name="C11_17" Type="Double" />
  15188. <Property Name="C11_18" Type="Double" />
  15189. <Property Name="C11_19" Type="Double" />
  15190. <Property Name="C11_20" Type="Double" />
  15191. <Property Name="C11_21" Type="Double" />
  15192. <Property Name="C11_22" Type="Double" />
  15193. <Property Name="C11_23" Type="Double" />
  15194. <Property Name="C12_00" Type="Double" />
  15195. <Property Name="C12_01" Type="Double" />
  15196. <Property Name="C12_02" Type="Double" />
  15197. <Property Name="C12_03" Type="Double" />
  15198. <Property Name="C12_04" Type="Double" />
  15199. <Property Name="C12_05" Type="Double" />
  15200. <Property Name="C12_06" Type="Double" />
  15201. <Property Name="C12_07" Type="Double" />
  15202. <Property Name="C12_08" Type="Double" />
  15203. <Property Name="C12_09" Type="Double" />
  15204. <Property Name="C12_10" Type="Double" />
  15205. <Property Name="C12_11" Type="Double" />
  15206. <Property Name="C12_12" Type="Double" />
  15207. <Property Name="C12_13" Type="Double" />
  15208. <Property Name="C12_14" Type="Double" />
  15209. <Property Name="C12_15" Type="Double" />
  15210. <Property Name="C12_16" Type="Double" />
  15211. <Property Name="C12_17" Type="Double" />
  15212. <Property Name="C12_18" Type="Double" />
  15213. <Property Name="C12_19" Type="Double" />
  15214. <Property Name="C12_20" Type="Double" />
  15215. <Property Name="C12_21" Type="Double" />
  15216. <Property Name="C12_22" Type="Double" />
  15217. <Property Name="C12_23" Type="Double" />
  15218. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceMeta" ToRole="BemsPriceType" />
  15219. </EntityType>
  15220. <EntityType Name="BemsPriceType">
  15221. <Key>
  15222. <PropertyRef Name="PriceTypeId" />
  15223. </Key>
  15224. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  15225. <Property Name="PriceTypeIdDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  15226. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15227. <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceFormula" />
  15228. <NavigationProperty Name="BemsPriceMeta" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceMeta" />
  15229. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePriceHistory" />
  15230. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePrice" />
  15231. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsPriceType" ToRole="BemsFuelType" />
  15232. </EntityType>
  15233. <EntityType Name="BemsRentalRate">
  15234. <Key>
  15235. <PropertyRef Name="Date" />
  15236. <PropertyRef Name="SiteId" />
  15237. </Key>
  15238. <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
  15239. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15240. <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15241. <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15242. <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15243. <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15244. <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15245. <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15246. <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15247. <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15248. <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15249. <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15250. <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15251. <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15252. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="BemsRentalRate" ToRole="CmSite" />
  15253. </EntityType>
  15254. <EntityType Name="BemsSitePrice">
  15255. <Key>
  15256. <PropertyRef Name="SiteID" />
  15257. <PropertyRef Name="FuelTypeId" />
  15258. <PropertyRef Name="PriceTypeId" />
  15259. <PropertyRef Name="PriceCode" />
  15260. </Key>
  15261. <Property Name="SiteID" Type="Int32" Nullable="false" />
  15262. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15263. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  15264. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  15265. <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
  15266. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsSitePrice" ToRole="BemsPriceCode" />
  15267. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="BemsSitePrice" ToRole="CmSite" />
  15268. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsSitePrice" ToRole="BemsPriceType" />
  15269. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsSitePrice" ToRole="BemsFuelType" />
  15270. </EntityType>
  15271. <EntityType Name="BemsSitePriceHistory">
  15272. <Key>
  15273. <PropertyRef Name="SiteId" />
  15274. <PropertyRef Name="FuelTypeId" />
  15275. <PropertyRef Name="PriceTypeId" />
  15276. <PropertyRef Name="PriceCode" />
  15277. <PropertyRef Name="PayDate" />
  15278. </Key>
  15279. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15280. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15281. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  15282. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  15283. <Property Name="PriceValue" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  15284. <Property Name="PayDate" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="false" />
  15285. <Property Name="StartDate" Type="DateTime" Precision="3" />
  15286. <Property Name="EndDate" Type="DateTime" Precision="3" />
  15287. <Property Name="PayCharge" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  15288. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsSitePriceHistory" ToRole="BemsPriceCode" />
  15289. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsSitePriceHistory" ToRole="BemsPriceType" />
  15290. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="BemsSitePriceHistory" ToRole="CmSite" />
  15291. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsSitePriceHistory" ToRole="BemsFuelType" />
  15292. </EntityType>
  15293. <Association Name="FK_BemsPriceFormula_BemsFormula">
  15294. <End Type="iBemsModel.BemsFormula" Role="BemsFormula" Multiplicity="1" />
  15295. <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
  15296. <ReferentialConstraint>
  15297. <Principal Role="BemsFormula">
  15298. <PropertyRef Name="SiteId" />
  15299. <PropertyRef Name="FacilityTypeId" />
  15300. <PropertyRef Name="FacilityCode" />
  15301. <PropertyRef Name="FormulaId" />
  15302. </Principal>
  15303. <Dependent Role="BemsPriceFormula">
  15304. <PropertyRef Name="SiteId" />
  15305. <PropertyRef Name="FacilityTypeId" />
  15306. <PropertyRef Name="FacilityCode" />
  15307. <PropertyRef Name="FormulaId" />
  15308. </Dependent>
  15309. </ReferentialConstraint>
  15310. </Association>
  15311. <Association Name="FK_BemsPeopleIncrease_CmSite">
  15312. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15313. <End Type="iBemsModel.BemsPeopleIncrease" Role="BemsPeopleIncrease" Multiplicity="*" />
  15314. <ReferentialConstraint>
  15315. <Principal Role="CmSite">
  15316. <PropertyRef Name="SiteId" />
  15317. </Principal>
  15318. <Dependent Role="BemsPeopleIncrease">
  15319. <PropertyRef Name="SiteId" />
  15320. </Dependent>
  15321. </ReferentialConstraint>
  15322. </Association>
  15323. <Association Name="FK_BemsSitePrice_BemsPriceCode">
  15324. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
  15325. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  15326. <ReferentialConstraint>
  15327. <Principal Role="BemsPriceCode">
  15328. <PropertyRef Name="PriceCode" />
  15329. </Principal>
  15330. <Dependent Role="BemsSitePrice">
  15331. <PropertyRef Name="PriceCode" />
  15332. </Dependent>
  15333. </ReferentialConstraint>
  15334. </Association>
  15335. <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
  15336. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
  15337. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  15338. <ReferentialConstraint>
  15339. <Principal Role="BemsPriceCode">
  15340. <PropertyRef Name="PriceCode" />
  15341. </Principal>
  15342. <Dependent Role="BemsSitePriceHistory">
  15343. <PropertyRef Name="PriceCode" />
  15344. </Dependent>
  15345. </ReferentialConstraint>
  15346. </Association>
  15347. <Association Name="FK_BemsPriceFormula_BemsPriceType">
  15348. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  15349. <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
  15350. <ReferentialConstraint>
  15351. <Principal Role="BemsPriceType">
  15352. <PropertyRef Name="PriceTypeId" />
  15353. </Principal>
  15354. <Dependent Role="BemsPriceFormula">
  15355. <PropertyRef Name="PriceTypeId" />
  15356. </Dependent>
  15357. </ReferentialConstraint>
  15358. </Association>
  15359. <Association Name="FK_BemsPriceMeta_BemsPriceType">
  15360. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  15361. <End Type="iBemsModel.BemsPriceMeta" Role="BemsPriceMeta" Multiplicity="*" />
  15362. <ReferentialConstraint>
  15363. <Principal Role="BemsPriceType">
  15364. <PropertyRef Name="PriceTypeId" />
  15365. </Principal>
  15366. <Dependent Role="BemsPriceMeta">
  15367. <PropertyRef Name="PriceTypeId" />
  15368. </Dependent>
  15369. </ReferentialConstraint>
  15370. </Association>
  15371. <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
  15372. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  15373. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  15374. <ReferentialConstraint>
  15375. <Principal Role="BemsPriceType">
  15376. <PropertyRef Name="PriceTypeId" />
  15377. </Principal>
  15378. <Dependent Role="BemsSitePriceHistory">
  15379. <PropertyRef Name="PriceTypeId" />
  15380. </Dependent>
  15381. </ReferentialConstraint>
  15382. </Association>
  15383. <Association Name="FK_BemsRentalRate_CmSite">
  15384. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15385. <End Type="iBemsModel.BemsRentalRate" Role="BemsRentalRate" Multiplicity="*" />
  15386. <ReferentialConstraint>
  15387. <Principal Role="CmSite">
  15388. <PropertyRef Name="SiteId" />
  15389. </Principal>
  15390. <Dependent Role="BemsRentalRate">
  15391. <PropertyRef Name="SiteId" />
  15392. </Dependent>
  15393. </ReferentialConstraint>
  15394. </Association>
  15395. <Association Name="FK_BemsSitePrice_CmSite1">
  15396. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15397. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  15398. <ReferentialConstraint>
  15399. <Principal Role="CmSite">
  15400. <PropertyRef Name="SiteId" />
  15401. </Principal>
  15402. <Dependent Role="BemsSitePrice">
  15403. <PropertyRef Name="SiteID" />
  15404. </Dependent>
  15405. </ReferentialConstraint>
  15406. </Association>
  15407. <Association Name="FK_BemsSitePriceHistory_CmSite">
  15408. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15409. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  15410. <ReferentialConstraint>
  15411. <Principal Role="CmSite">
  15412. <PropertyRef Name="SiteId" />
  15413. </Principal>
  15414. <Dependent Role="BemsSitePriceHistory">
  15415. <PropertyRef Name="SiteId" />
  15416. </Dependent>
  15417. </ReferentialConstraint>
  15418. </Association>
  15419. <Association Name="FK_BemsSitePrice_BemsPriceType">
  15420. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  15421. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  15422. <ReferentialConstraint>
  15423. <Principal Role="BemsPriceType">
  15424. <PropertyRef Name="PriceTypeId" />
  15425. </Principal>
  15426. <Dependent Role="BemsSitePrice">
  15427. <PropertyRef Name="PriceTypeId" />
  15428. </Dependent>
  15429. </ReferentialConstraint>
  15430. </Association>
  15431. <EntityType Name="BemsMonitoringPointConfig">
  15432. <Key>
  15433. <PropertyRef Name="SiteId" />
  15434. <PropertyRef Name="FacilityCode" />
  15435. <PropertyRef Name="PropertyId" />
  15436. </Key>
  15437. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15438. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15439. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15440. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  15441. <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
  15442. <Property Name="IsSampled" Type="Boolean" Nullable="false" />
  15443. <Property Name="SaveMode" Type="Int32" Nullable="false" />
  15444. <Property Name="ControlPointName" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  15445. <Property Name="IsConverted" Type="Boolean" />
  15446. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsMonitoringPointConfig" ToRole="BemsFacilityType" />
  15447. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPointConfig" ToRole="BemsMonitoringPoint" />
  15448. </EntityType>
  15449. <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
  15450. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  15451. <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="*" />
  15452. <ReferentialConstraint>
  15453. <Principal Role="BemsFacilityType">
  15454. <PropertyRef Name="FacilityTypeId" />
  15455. </Principal>
  15456. <Dependent Role="BemsMonitoringPointConfig">
  15457. <PropertyRef Name="FacilityTypeId" />
  15458. </Dependent>
  15459. </ReferentialConstraint>
  15460. </Association>
  15461. <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  15462. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
  15463. <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="0..1" />
  15464. <ReferentialConstraint>
  15465. <Principal Role="BemsMonitoringPoint">
  15466. <PropertyRef Name="SiteId" />
  15467. <PropertyRef Name="FacilityCode" />
  15468. <PropertyRef Name="PropertyId" />
  15469. </Principal>
  15470. <Dependent Role="BemsMonitoringPointConfig">
  15471. <PropertyRef Name="SiteId" />
  15472. <PropertyRef Name="FacilityCode" />
  15473. <PropertyRef Name="PropertyId" />
  15474. </Dependent>
  15475. </ReferentialConstraint>
  15476. </Association>
  15477. <EntityType Name="BemsAlarmSetting">
  15478. <Key>
  15479. <PropertyRef Name="SiteId" />
  15480. <PropertyRef Name="FacilityTypeId" />
  15481. <PropertyRef Name="FacilityCode" />
  15482. <PropertyRef Name="PropertyId" />
  15483. <PropertyRef Name="FormulaId" />
  15484. </Key>
  15485. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15486. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15487. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15488. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  15489. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  15490. <Property Name="FacilityName" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
  15491. <Property Name="PointName" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  15492. <Property Name="UseUpperLimit" Type="Boolean" Nullable="false" />
  15493. <Property Name="UpperLimit" Type="Double" />
  15494. <Property Name="UseLowerLimit" Type="Boolean" Nullable="false" />
  15495. <Property Name="LowerLimit" Type="Double" />
  15496. <Property Name="UseAlarm" Type="Boolean" Nullable="false" />
  15497. <Property Name="UseSMS" Type="Boolean" Nullable="false" />
  15498. <Property Name="UseEmail" Type="Boolean" Nullable="false" />
  15499. <Property Name="AlarmGroupName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  15500. <Property Name="Content" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  15501. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsAlarmSetting" ToRole="BemsFacilityType" />
  15502. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="BemsAlarmSetting" ToRole="CmSite" />
  15503. <NavigationProperty Name="BemsAlarmLog" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmSetting" ToRole="BemsAlarmLog" />
  15504. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="BemsAlarmSetting" ToRole="CmFacility" />
  15505. </EntityType>
  15506. <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
  15507. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  15508. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  15509. <ReferentialConstraint>
  15510. <Principal Role="BemsFacilityType">
  15511. <PropertyRef Name="FacilityTypeId" />
  15512. </Principal>
  15513. <Dependent Role="BemsAlarmSetting">
  15514. <PropertyRef Name="FacilityTypeId" />
  15515. </Dependent>
  15516. </ReferentialConstraint>
  15517. </Association>
  15518. <Association Name="FK_BemsAlarmSetting_CmSite1">
  15519. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15520. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  15521. <ReferentialConstraint>
  15522. <Principal Role="CmSite">
  15523. <PropertyRef Name="SiteId" />
  15524. </Principal>
  15525. <Dependent Role="BemsAlarmSetting">
  15526. <PropertyRef Name="SiteId" />
  15527. </Dependent>
  15528. </ReferentialConstraint>
  15529. </Association>
  15530. <EntityType Name="BemsAlarmLog">
  15531. <Key>
  15532. <PropertyRef Name="SiteId" />
  15533. <PropertyRef Name="FacilityTypeId" />
  15534. <PropertyRef Name="FacilityCode" />
  15535. <PropertyRef Name="PropertyId" />
  15536. <PropertyRef Name="FormulaId" />
  15537. <PropertyRef Name="CreatedDateTime" />
  15538. </Key>
  15539. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15540. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15541. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15542. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  15543. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  15544. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  15545. <Property Name="CurrentValue" Type="Double" />
  15546. <Property Name="SMSResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
  15547. <Property Name="EmailResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
  15548. <Property Name="Conform" Type="Boolean" />
  15549. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmLog" ToRole="BemsAlarmSetting" />
  15550. </EntityType>
  15551. <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
  15552. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="1" />
  15553. <End Type="iBemsModel.BemsAlarmLog" Role="BemsAlarmLog" Multiplicity="*" />
  15554. <ReferentialConstraint>
  15555. <Principal Role="BemsAlarmSetting">
  15556. <PropertyRef Name="SiteId" />
  15557. <PropertyRef Name="FacilityTypeId" />
  15558. <PropertyRef Name="FacilityCode" />
  15559. <PropertyRef Name="PropertyId" />
  15560. <PropertyRef Name="FormulaId" />
  15561. </Principal>
  15562. <Dependent Role="BemsAlarmLog">
  15563. <PropertyRef Name="SiteId" />
  15564. <PropertyRef Name="FacilityTypeId" />
  15565. <PropertyRef Name="FacilityCode" />
  15566. <PropertyRef Name="PropertyId" />
  15567. <PropertyRef Name="FormulaId" />
  15568. </Dependent>
  15569. </ReferentialConstraint>
  15570. </Association>
  15571. <EntityType Name="BemsAlarmGroup">
  15572. <Key>
  15573. <PropertyRef Name="SiteId" />
  15574. <PropertyRef Name="AlarmGroupId" />
  15575. </Key>
  15576. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15577. <Property Name="AlarmGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  15578. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  15579. </EntityType>
  15580. <EntityType Name="BemsAlarmGroupUser">
  15581. <Key>
  15582. <PropertyRef Name="SiteId" />
  15583. <PropertyRef Name="AlarmGroupId" />
  15584. <PropertyRef Name="UserId" />
  15585. </Key>
  15586. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15587. <Property Name="AlarmGroupId" Type="Int32" Nullable="false" />
  15588. <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  15589. </EntityType>
  15590. <EntityType Name="BemsEnergyCost">
  15591. <Key>
  15592. <PropertyRef Name="SiteId" />
  15593. <PropertyRef Name="FacilityCode" />
  15594. </Key>
  15595. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15596. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15597. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15598. <Property Name="PowerConsumption1" Type="Double" />
  15599. <Property Name="PowerConsumption2" Type="Double" />
  15600. <Property Name="GasConsumption" Type="Double" />
  15601. <Property Name="GasHeatQuantity" Type="Double" />
  15602. <Property Name="PowerPriceTypeId" Type="Int32" />
  15603. <Property Name="GasPriceTypeId" Type="Int32" />
  15604. <Property Name="IsUse" Type="Boolean" />
  15605. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="BemsEnergyCost" ToRole="CmFacility" />
  15606. </EntityType>
  15607. <EntityType Name="BemsEnergyConfigPercentMonth">
  15608. <Key>
  15609. <PropertyRef Name="SiteId" />
  15610. <PropertyRef Name="Year" />
  15611. <PropertyRef Name="Month" />
  15612. </Key>
  15613. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15614. <Property Name="Year" Type="Int32" Nullable="false" />
  15615. <Property Name="Month" Type="Int32" Nullable="false" />
  15616. <Property Name="Electricity" Type="Double" />
  15617. <Property Name="Gas" Type="Double" />
  15618. <Property Name="Water" Type="Double" />
  15619. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="BemsEnergyConfigPercentMonth" ToRole="CmSite" />
  15620. </EntityType>
  15621. <EntityType Name="BemsEnergyConfigPercentWeek">
  15622. <Key>
  15623. <PropertyRef Name="SiteId" />
  15624. <PropertyRef Name="Year" />
  15625. <PropertyRef Name="Week" />
  15626. </Key>
  15627. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15628. <Property Name="Year" Type="Int32" Nullable="false" />
  15629. <Property Name="Week" Type="Int32" Nullable="false" />
  15630. <Property Name="Electricity" Type="Double" />
  15631. <Property Name="Gas" Type="Double" />
  15632. <Property Name="Water" Type="Double" />
  15633. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="BemsEnergyConfigPercentWeek" ToRole="CmSite" />
  15634. </EntityType>
  15635. <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
  15636. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15637. <End Type="iBemsModel.BemsEnergyConfigPercentMonth" Role="BemsEnergyConfigPercentMonth" Multiplicity="*" />
  15638. <ReferentialConstraint>
  15639. <Principal Role="CmSite">
  15640. <PropertyRef Name="SiteId" />
  15641. </Principal>
  15642. <Dependent Role="BemsEnergyConfigPercentMonth">
  15643. <PropertyRef Name="SiteId" />
  15644. </Dependent>
  15645. </ReferentialConstraint>
  15646. </Association>
  15647. <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
  15648. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15649. <End Type="iBemsModel.BemsEnergyConfigPercentWeek" Role="BemsEnergyConfigPercentWeek" Multiplicity="*" />
  15650. <ReferentialConstraint>
  15651. <Principal Role="CmSite">
  15652. <PropertyRef Name="SiteId" />
  15653. </Principal>
  15654. <Dependent Role="BemsEnergyConfigPercentWeek">
  15655. <PropertyRef Name="SiteId" />
  15656. </Dependent>
  15657. </ReferentialConstraint>
  15658. </Association>
  15659. <EntityType Name="BemsEnergyDaily">
  15660. <Key>
  15661. <PropertyRef Name="SiteId" />
  15662. <PropertyRef Name="BuildingId" />
  15663. <PropertyRef Name="ServiceTypeId" />
  15664. <PropertyRef Name="FuelTypeId" />
  15665. <PropertyRef Name="CreatedDate" />
  15666. </Key>
  15667. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15668. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  15669. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  15670. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15671. <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="0" />
  15672. <Property Name="Prediction" Type="Double" />
  15673. <Property Name="Measurement" Type="Double" />
  15674. <Property Name="Goal" Type="Double" />
  15675. <Property Name="Prediction_Regression" Type="Double" />
  15676. <Property Name="MeanT" Type="Double" />
  15677. <Property Name="HDD" Type="Double" />
  15678. <Property Name="CDD" Type="Double" />
  15679. <NavigationProperty Name="BemsServiceType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsEnergyDaily" ToRole="BemsServiceType" />
  15680. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="BemsEnergyDaily" ToRole="CmBuilding" />
  15681. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsEnergyDaily" ToRole="BemsFuelType" />
  15682. </EntityType>
  15683. <Association Name="FK__BemsEnergyDaily__BemsServiceType">
  15684. <End Type="iBemsModel.BemsServiceType" Role="BemsServiceType" Multiplicity="1" />
  15685. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  15686. <ReferentialConstraint>
  15687. <Principal Role="BemsServiceType">
  15688. <PropertyRef Name="ServiceTypeId" />
  15689. </Principal>
  15690. <Dependent Role="BemsEnergyDaily">
  15691. <PropertyRef Name="ServiceTypeId" />
  15692. </Dependent>
  15693. </ReferentialConstraint>
  15694. </Association>
  15695. <Association Name="FK__BemsEnergyDaily__CmBuilding">
  15696. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
  15697. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  15698. <ReferentialConstraint>
  15699. <Principal Role="CmBuilding">
  15700. <PropertyRef Name="SiteId" />
  15701. <PropertyRef Name="BuildingId" />
  15702. </Principal>
  15703. <Dependent Role="BemsEnergyDaily">
  15704. <PropertyRef Name="SiteId" />
  15705. <PropertyRef Name="BuildingId" />
  15706. </Dependent>
  15707. </ReferentialConstraint>
  15708. </Association>
  15709. <EntityType Name="BemsEnergyDailyRegression">
  15710. <Key>
  15711. <PropertyRef Name="SiteId" />
  15712. </Key>
  15713. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15714. <Property Name="Weekday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15715. <Property Name="Weekday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15716. <Property Name="Weekday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15717. <Property Name="Weekday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15718. <Property Name="Weekday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15719. <Property Name="Weekday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15720. <Property Name="Holiday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15721. <Property Name="Holiday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15722. <Property Name="Holiday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15723. <Property Name="Holiday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15724. <Property Name="Holiday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15725. <Property Name="Holiday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15726. <Property Name="IsRegression" Type="Boolean" />
  15727. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="BemsEnergyDailyRegression" ToRole="CmSite" />
  15728. </EntityType>
  15729. <Association Name="FK_BemsEnergyDailyRegression_CmSite">
  15730. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15731. <End Type="iBemsModel.BemsEnergyDailyRegression" Role="BemsEnergyDailyRegression" Multiplicity="0..1" />
  15732. <ReferentialConstraint>
  15733. <Principal Role="CmSite">
  15734. <PropertyRef Name="SiteId" />
  15735. </Principal>
  15736. <Dependent Role="BemsEnergyDailyRegression">
  15737. <PropertyRef Name="SiteId" />
  15738. </Dependent>
  15739. </ReferentialConstraint>
  15740. </Association>
  15741. <EntityType Name="WeatherDongNaeForecast">
  15742. <Key>
  15743. <PropertyRef Name="BaseTime" />
  15744. <PropertyRef Name="ForecastTime" />
  15745. </Key>
  15746. <Property Name="BaseTime" Type="DateTime" Nullable="false" Precision="3" />
  15747. <Property Name="nx" Type="Int32" />
  15748. <Property Name="ny" Type="Int32" />
  15749. <Property Name="ForecastTime" Type="DateTime" Nullable="false" Precision="3" />
  15750. <Property Name="POP" Type="Double" />
  15751. <Property Name="PTY" Type="Double" />
  15752. <Property Name="R06" Type="Double" />
  15753. <Property Name="REH" Type="Double" />
  15754. <Property Name="S06" Type="Double" />
  15755. <Property Name="SKY" Type="Double" />
  15756. <Property Name="T3H" Type="Double" />
  15757. <Property Name="TMN" Type="Double" />
  15758. <Property Name="TMX" Type="Double" />
  15759. <Property Name="UUU" Type="Double" />
  15760. <Property Name="VVV" Type="Double" />
  15761. <Property Name="VEC" Type="Double" />
  15762. <Property Name="WSD" Type="Double" />
  15763. <Property Name="Type" Type="Int32" />
  15764. <Property Name="DBTime" Type="DateTime" Precision="3" />
  15765. <Property Name="Version" Type="Int32" />
  15766. </EntityType>
  15767. <EntityType Name="FmsEquipmentRentInfo">
  15768. <Key>
  15769. <PropertyRef Name="SiteId" />
  15770. <PropertyRef Name="EquipmentRentId" />
  15771. </Key>
  15772. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15773. <Property Name="EquipmentRentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  15774. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  15775. <Property Name="RentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  15776. <Property Name="RegisterDate" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
  15777. <Property Name="RentDate" Type="DateTime" Precision="3" />
  15778. <Property Name="ReturnDueDate" Type="DateTime" Precision="3" />
  15779. <Property Name="ReturnFixDate" Type="DateTime" Precision="3" />
  15780. <Property Name="EquipmentStateTypeId" Type="Int16" />
  15781. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  15782. <Property Name="Title" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  15783. <Property Name="RentUser" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  15784. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
  15785. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
  15786. <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentCodeStateType" />
  15787. <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentHistory" />
  15788. </EntityType>
  15789. <Association Name="FK_FmsEquipmentRentInfo_CmUser">
  15790. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  15791. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  15792. <ReferentialConstraint>
  15793. <Principal Role="CmUser">
  15794. <PropertyRef Name="SiteId" />
  15795. <PropertyRef Name="UserId" />
  15796. </Principal>
  15797. <Dependent Role="FmsEquipmentRentInfo">
  15798. <PropertyRef Name="SiteId" />
  15799. <PropertyRef Name="RegisterUserId" />
  15800. </Dependent>
  15801. </ReferentialConstraint>
  15802. </Association>
  15803. <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
  15804. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  15805. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  15806. <ReferentialConstraint>
  15807. <Principal Role="CmUser">
  15808. <PropertyRef Name="SiteId" />
  15809. <PropertyRef Name="UserId" />
  15810. </Principal>
  15811. <Dependent Role="FmsEquipmentRentInfo">
  15812. <PropertyRef Name="SiteId" />
  15813. <PropertyRef Name="RentUserId" />
  15814. </Dependent>
  15815. </ReferentialConstraint>
  15816. </Association>
  15817. <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  15818. <End Type="iBemsModel.FmsEquipmentCodeStateType" Role="FmsEquipmentCodeStateType" Multiplicity="0..1" />
  15819. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  15820. <ReferentialConstraint>
  15821. <Principal Role="FmsEquipmentCodeStateType">
  15822. <PropertyRef Name="EquipmentStateTypeId" />
  15823. </Principal>
  15824. <Dependent Role="FmsEquipmentRentInfo">
  15825. <PropertyRef Name="EquipmentStateTypeId" />
  15826. </Dependent>
  15827. </ReferentialConstraint>
  15828. </Association>
  15829. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  15830. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="0..1">
  15831. <OnDelete Action="Cascade" />
  15832. </End>
  15833. <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
  15834. <ReferentialConstraint>
  15835. <Principal Role="FmsEquipmentRentInfo">
  15836. <PropertyRef Name="SiteId" />
  15837. <PropertyRef Name="EquipmentRentId" />
  15838. </Principal>
  15839. <Dependent Role="FmsEquipmentHistory">
  15840. <PropertyRef Name="SiteId" />
  15841. <PropertyRef Name="EquipmentRentId" />
  15842. </Dependent>
  15843. </ReferentialConstraint>
  15844. </Association>
  15845. <EntityType Name="BemsControlAHUTempConfig">
  15846. <Key>
  15847. <PropertyRef Name="SiteId" />
  15848. <PropertyRef Name="FacilityTypeId" />
  15849. <PropertyRef Name="FacilityCode" />
  15850. </Key>
  15851. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15852. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15853. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15854. <Property Name="MaxTemperature" Type="Double" Nullable="false" />
  15855. <Property Name="MinTemperature" Type="Double" Nullable="false" />
  15856. </EntityType>
  15857. <EntityType Name="BemsFuelType">
  15858. <Key>
  15859. <PropertyRef Name="FuelTypeId" />
  15860. </Key>
  15861. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15862. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  15863. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsEnergyDaily" />
  15864. <NavigationProperty Name="BemsFactorCo2" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorCo2" />
  15865. <NavigationProperty Name="BemsFactorToe" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorToe" />
  15866. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPoint" />
  15867. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPointBaseData" />
  15868. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="BemsFuelType" ToRole="CmFacility" />
  15869. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsNoticePriceContractType" />
  15870. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsPriceCode" />
  15871. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsFuelType" ToRole="BemsPriceType" />
  15872. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePrice" />
  15873. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePriceHistory" />
  15874. </EntityType>
  15875. <Association Name="FK__BemsEnergyDaily__BemsFuelType">
  15876. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15877. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  15878. <ReferentialConstraint>
  15879. <Principal Role="BemsFuelType">
  15880. <PropertyRef Name="FuelTypeId" />
  15881. </Principal>
  15882. <Dependent Role="BemsEnergyDaily">
  15883. <PropertyRef Name="FuelTypeId" />
  15884. </Dependent>
  15885. </ReferentialConstraint>
  15886. </Association>
  15887. <Association Name="FK__BemsFactorCo2__BemsFuelType">
  15888. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15889. <End Type="iBemsModel.BemsFactorCo2" Role="BemsFactorCo2" Multiplicity="0..1" />
  15890. <ReferentialConstraint>
  15891. <Principal Role="BemsFuelType">
  15892. <PropertyRef Name="FuelTypeId" />
  15893. </Principal>
  15894. <Dependent Role="BemsFactorCo2">
  15895. <PropertyRef Name="FuelTypeId" />
  15896. </Dependent>
  15897. </ReferentialConstraint>
  15898. </Association>
  15899. <Association Name="FK__BemsFactorToe__BemsFuelType">
  15900. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15901. <End Type="iBemsModel.BemsFactorToe" Role="BemsFactorToe" Multiplicity="0..1" />
  15902. <ReferentialConstraint>
  15903. <Principal Role="BemsFuelType">
  15904. <PropertyRef Name="FuelTypeId" />
  15905. </Principal>
  15906. <Dependent Role="BemsFactorToe">
  15907. <PropertyRef Name="FuelTypeId" />
  15908. </Dependent>
  15909. </ReferentialConstraint>
  15910. </Association>
  15911. <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
  15912. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  15913. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
  15914. <ReferentialConstraint>
  15915. <Principal Role="BemsFuelType">
  15916. <PropertyRef Name="FuelTypeId" />
  15917. </Principal>
  15918. <Dependent Role="BemsMonitoringPoint">
  15919. <PropertyRef Name="FuelTypeId" />
  15920. </Dependent>
  15921. </ReferentialConstraint>
  15922. </Association>
  15923. <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
  15924. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  15925. <End Type="iBemsModel.BemsMonitoringPointBaseData" Role="BemsMonitoringPointBaseData" Multiplicity="*" />
  15926. <ReferentialConstraint>
  15927. <Principal Role="BemsFuelType">
  15928. <PropertyRef Name="FuelTypeId" />
  15929. </Principal>
  15930. <Dependent Role="BemsMonitoringPointBaseData">
  15931. <PropertyRef Name="FuelTypeId" />
  15932. </Dependent>
  15933. </ReferentialConstraint>
  15934. </Association>
  15935. <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
  15936. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15937. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="*" />
  15938. <ReferentialConstraint>
  15939. <Principal Role="BemsFuelType">
  15940. <PropertyRef Name="FuelTypeId" />
  15941. </Principal>
  15942. <Dependent Role="BemsNoticePriceContractType">
  15943. <PropertyRef Name="FuelTypeId" />
  15944. </Dependent>
  15945. </ReferentialConstraint>
  15946. </Association>
  15947. <Association Name="FK_BemsPriceCode_BemsFuelType">
  15948. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15949. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="*" />
  15950. <ReferentialConstraint>
  15951. <Principal Role="BemsFuelType">
  15952. <PropertyRef Name="FuelTypeId" />
  15953. </Principal>
  15954. <Dependent Role="BemsPriceCode">
  15955. <PropertyRef Name="FuelTypeId" />
  15956. </Dependent>
  15957. </ReferentialConstraint>
  15958. </Association>
  15959. <Association Name="FK_BemsPriceType_BemsFuelType1">
  15960. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15961. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="*" />
  15962. <ReferentialConstraint>
  15963. <Principal Role="BemsFuelType">
  15964. <PropertyRef Name="FuelTypeId" />
  15965. </Principal>
  15966. <Dependent Role="BemsPriceType">
  15967. <PropertyRef Name="FuelTypeId" />
  15968. </Dependent>
  15969. </ReferentialConstraint>
  15970. </Association>
  15971. <Association Name="FK_BemsSitePrice_BemsFuelType">
  15972. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15973. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  15974. <ReferentialConstraint>
  15975. <Principal Role="BemsFuelType">
  15976. <PropertyRef Name="FuelTypeId" />
  15977. </Principal>
  15978. <Dependent Role="BemsSitePrice">
  15979. <PropertyRef Name="FuelTypeId" />
  15980. </Dependent>
  15981. </ReferentialConstraint>
  15982. </Association>
  15983. <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
  15984. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15985. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  15986. <ReferentialConstraint>
  15987. <Principal Role="BemsFuelType">
  15988. <PropertyRef Name="FuelTypeId" />
  15989. </Principal>
  15990. <Dependent Role="BemsSitePriceHistory">
  15991. <PropertyRef Name="FuelTypeId" />
  15992. </Dependent>
  15993. </ReferentialConstraint>
  15994. </Association>
  15995. <EntityType Name="CmFacility">
  15996. <Key>
  15997. <PropertyRef Name="SiteId" />
  15998. <PropertyRef Name="FacilityCode" />
  15999. </Key>
  16000. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16001. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  16002. <Property Name="FacilityCode" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16003. <Property Name="FirstClassId" Type="Int32" />
  16004. <Property Name="SecondClassId" Type="Int32" />
  16005. <Property Name="ThirdClassId" Type="Int32" />
  16006. <Property Name="DeviceType" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  16007. <Property Name="ParentFacilityCode" Type="Int32" />
  16008. <Property Name="Name" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
  16009. <Property Name="Nickname" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  16010. <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  16011. <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  16012. <Property Name="ManufactureDate" Type="DateTime" Precision="0" />
  16013. <Property Name="ManufactureSerial" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16014. <Property Name="ManufactureModel" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  16015. <Property Name="Supplier" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  16016. <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16017. <Property Name="BuildingId" Type="Int32" />
  16018. <Property Name="FloorId" Type="Int32" />
  16019. <Property Name="ZoneId" Type="Int32" />
  16020. <Property Name="InstallDate" Type="DateTime" Precision="0" />
  16021. <Property Name="OperationStartDate" Type="DateTime" Precision="0" />
  16022. <Property Name="FacilityCapacity" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  16023. <Property Name="FacilityCost" Type="Int32" />
  16024. <Property Name="FacilityCount" Type="Int32" />
  16025. <Property Name="FacilitySeviceLifeYear" Type="Int32" />
  16026. <Property Name="FacilityUsage" Type="String" MaxLength="80" FixedLength="false" Unicode="true" />
  16027. <Property Name="RatedPowerConsumption" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  16028. <Property Name="RatedCOP" Type="Double" />
  16029. <Property Name="MainContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16030. <Property Name="SubContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16031. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  16032. <Property Name="Reserved1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  16033. <Property Name="Reserved2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  16034. <Property Name="IsUse" Type="Boolean" />
  16035. <Property Name="FileId" Type="Int32" />
  16036. <Property Name="IsVirtualFacility" Type="Boolean" Nullable="false" />
  16037. <Property Name="FuelTypeId" Type="Int16" />
  16038. <Property Name="ContractType" Type="Int16" />
  16039. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="CmFacility" ToRole="BemsAlarmSetting" />
  16040. <NavigationProperty Name="BemsEnergyCost" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="CmFacility" ToRole="BemsEnergyCost" />
  16041. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="CmFacility" ToRole="BemsFacilityType" />
  16042. <NavigationProperty Name="BemsFormulaParameter" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="CmFacility" ToRole="BemsFormulaParameter" />
  16043. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="CmFacility" ToRole="BemsFuelType" />
  16044. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="CmFacility" ToRole="BemsMonitoringPoint" />
  16045. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="CmFacility" ToRole="BemsNoticePriceContractType" />
  16046. <NavigationProperty Name="BemsPeakFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="CmFacility" ToRole="BemsPeakFacility" />
  16047. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmFacility" ToRole="CmBuilding" />
  16048. <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFacility" ToRole="CmFloor" />
  16049. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmFacility" ToRole="CmUser" />
  16050. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmFacility" ToRole="CmUser" />
  16051. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility" ToRole="CmFacility1" />
  16052. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility1" ToRole="CmFacility" />
  16053. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFacility" ToRole="CmFile" />
  16054. <NavigationProperty Name="CmZone" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmFacility" ToRole="CmZone" />
  16055. <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  16056. <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  16057. <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  16058. <NavigationProperty Name="CmFacilityFile" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacility" ToRole="CmFacilityFile" />
  16059. <NavigationProperty Name="FmsFacilityManual" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="CmFacility" ToRole="FmsFacilityManual" />
  16060. <NavigationProperty Name="FmsFacilityOperationItem" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="CmFacility" ToRole="FmsFacilityOperationItem" />
  16061. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultCheckItem" />
  16062. <NavigationProperty Name="FmsWorkResultToFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultToFacility" />
  16063. <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmFacility" ToRole="CmUser" />
  16064. <NavigationProperty Name="CmUser3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmFacility" ToRole="CmUser" />
  16065. <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacility" ToRole="CmFacilityTempSet" />
  16066. <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkOrderToFacility" />
  16067. <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkRequestToFacility" />
  16068. <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkScheduleToFacility" />
  16069. </EntityType>
  16070. <Association Name="FK_BemsAlarmSetting_CmFacility">
  16071. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16072. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  16073. <ReferentialConstraint>
  16074. <Principal Role="CmFacility">
  16075. <PropertyRef Name="SiteId" />
  16076. <PropertyRef Name="FacilityCode" />
  16077. </Principal>
  16078. <Dependent Role="BemsAlarmSetting">
  16079. <PropertyRef Name="SiteId" />
  16080. <PropertyRef Name="FacilityCode" />
  16081. </Dependent>
  16082. </ReferentialConstraint>
  16083. </Association>
  16084. <Association Name="FK_BemsEnergyCost_CmFacility">
  16085. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16086. <End Type="iBemsModel.BemsEnergyCost" Role="BemsEnergyCost" Multiplicity="0..1" />
  16087. <ReferentialConstraint>
  16088. <Principal Role="CmFacility">
  16089. <PropertyRef Name="SiteId" />
  16090. <PropertyRef Name="FacilityCode" />
  16091. </Principal>
  16092. <Dependent Role="BemsEnergyCost">
  16093. <PropertyRef Name="SiteId" />
  16094. <PropertyRef Name="FacilityCode" />
  16095. </Dependent>
  16096. </ReferentialConstraint>
  16097. </Association>
  16098. <Association Name="FK__CmFacility__BemsFacilityType">
  16099. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  16100. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16101. <ReferentialConstraint>
  16102. <Principal Role="BemsFacilityType">
  16103. <PropertyRef Name="FacilityTypeId" />
  16104. </Principal>
  16105. <Dependent Role="CmFacility">
  16106. <PropertyRef Name="FacilityTypeId" />
  16107. </Dependent>
  16108. </ReferentialConstraint>
  16109. </Association>
  16110. <Association Name="FK_BemsFormulaParameter_CmFacility">
  16111. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16112. <End Type="iBemsModel.BemsFormulaParameter" Role="BemsFormulaParameter" Multiplicity="*" />
  16113. <ReferentialConstraint>
  16114. <Principal Role="CmFacility">
  16115. <PropertyRef Name="SiteId" />
  16116. <PropertyRef Name="FacilityCode" />
  16117. </Principal>
  16118. <Dependent Role="BemsFormulaParameter">
  16119. <PropertyRef Name="SiteId" />
  16120. <PropertyRef Name="FacilityCode" />
  16121. </Dependent>
  16122. </ReferentialConstraint>
  16123. </Association>
  16124. <Association Name="FK_CmFacility_BemsFuelType">
  16125. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  16126. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16127. <ReferentialConstraint>
  16128. <Principal Role="BemsFuelType">
  16129. <PropertyRef Name="FuelTypeId" />
  16130. </Principal>
  16131. <Dependent Role="CmFacility">
  16132. <PropertyRef Name="FuelTypeId" />
  16133. </Dependent>
  16134. </ReferentialConstraint>
  16135. </Association>
  16136. <Association Name="FK_BemsMonitoringPoint_CmFacility">
  16137. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16138. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
  16139. <ReferentialConstraint>
  16140. <Principal Role="CmFacility">
  16141. <PropertyRef Name="SiteId" />
  16142. <PropertyRef Name="FacilityCode" />
  16143. </Principal>
  16144. <Dependent Role="BemsMonitoringPoint">
  16145. <PropertyRef Name="SiteId" />
  16146. <PropertyRef Name="FacilityCode" />
  16147. </Dependent>
  16148. </ReferentialConstraint>
  16149. </Association>
  16150. <Association Name="FK_CmFacility_BemsNoticePriceContractType">
  16151. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="0..1" />
  16152. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16153. <ReferentialConstraint>
  16154. <Principal Role="BemsNoticePriceContractType">
  16155. <PropertyRef Name="FuelTypeId" />
  16156. <PropertyRef Name="ContractType" />
  16157. </Principal>
  16158. <Dependent Role="CmFacility">
  16159. <PropertyRef Name="FuelTypeId" />
  16160. <PropertyRef Name="ContractType" />
  16161. </Dependent>
  16162. </ReferentialConstraint>
  16163. </Association>
  16164. <Association Name="FK_BemsPeakFacility_CmFacility">
  16165. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16166. <End Type="iBemsModel.BemsPeakFacility" Role="BemsPeakFacility" Multiplicity="*" />
  16167. <ReferentialConstraint>
  16168. <Principal Role="CmFacility">
  16169. <PropertyRef Name="SiteId" />
  16170. <PropertyRef Name="FacilityCode" />
  16171. </Principal>
  16172. <Dependent Role="BemsPeakFacility">
  16173. <PropertyRef Name="SiteId" />
  16174. <PropertyRef Name="FacilityCode" />
  16175. </Dependent>
  16176. </ReferentialConstraint>
  16177. </Association>
  16178. <Association Name="FK__CmFacility__CmBuilding">
  16179. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="0..1" />
  16180. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16181. <ReferentialConstraint>
  16182. <Principal Role="CmBuilding">
  16183. <PropertyRef Name="SiteId" />
  16184. <PropertyRef Name="BuildingId" />
  16185. </Principal>
  16186. <Dependent Role="CmFacility">
  16187. <PropertyRef Name="SiteId" />
  16188. <PropertyRef Name="BuildingId" />
  16189. </Dependent>
  16190. </ReferentialConstraint>
  16191. </Association>
  16192. <Association Name="FK__CmFacility__74444068">
  16193. <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="0..1" />
  16194. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16195. <ReferentialConstraint>
  16196. <Principal Role="CmFloor">
  16197. <PropertyRef Name="SiteId" />
  16198. <PropertyRef Name="BuildingId" />
  16199. <PropertyRef Name="FloorId" />
  16200. </Principal>
  16201. <Dependent Role="CmFacility">
  16202. <PropertyRef Name="SiteId" />
  16203. <PropertyRef Name="BuildingId" />
  16204. <PropertyRef Name="FloorId" />
  16205. </Dependent>
  16206. </ReferentialConstraint>
  16207. </Association>
  16208. <Association Name="FK__CmFacility__753864A1">
  16209. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  16210. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16211. <ReferentialConstraint>
  16212. <Principal Role="CmUser">
  16213. <PropertyRef Name="SiteId" />
  16214. <PropertyRef Name="UserId" />
  16215. </Principal>
  16216. <Dependent Role="CmFacility">
  16217. <PropertyRef Name="SiteId" />
  16218. <PropertyRef Name="MainContactorUserId" />
  16219. </Dependent>
  16220. </ReferentialConstraint>
  16221. </Association>
  16222. <Association Name="FK__CmFacility__762C88DA">
  16223. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  16224. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16225. <ReferentialConstraint>
  16226. <Principal Role="CmUser">
  16227. <PropertyRef Name="SiteId" />
  16228. <PropertyRef Name="UserId" />
  16229. </Principal>
  16230. <Dependent Role="CmFacility">
  16231. <PropertyRef Name="SiteId" />
  16232. <PropertyRef Name="SubContactorUserId" />
  16233. </Dependent>
  16234. </ReferentialConstraint>
  16235. </Association>
  16236. <Association Name="FK__CmFacility__CmFacility">
  16237. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
  16238. <End Type="iBemsModel.CmFacility" Role="CmFacility1" Multiplicity="*" />
  16239. <ReferentialConstraint>
  16240. <Principal Role="CmFacility">
  16241. <PropertyRef Name="SiteId" />
  16242. <PropertyRef Name="FacilityCode" />
  16243. </Principal>
  16244. <Dependent Role="CmFacility1">
  16245. <PropertyRef Name="SiteId" />
  16246. <PropertyRef Name="ParentFacilityCode" />
  16247. </Dependent>
  16248. </ReferentialConstraint>
  16249. </Association>
  16250. <Association Name="FK__CmFacility__CmFile">
  16251. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  16252. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16253. <ReferentialConstraint>
  16254. <Principal Role="CmFile">
  16255. <PropertyRef Name="SiteId" />
  16256. <PropertyRef Name="FileId" />
  16257. </Principal>
  16258. <Dependent Role="CmFacility">
  16259. <PropertyRef Name="SiteId" />
  16260. <PropertyRef Name="FileId" />
  16261. </Dependent>
  16262. </ReferentialConstraint>
  16263. </Association>
  16264. <Association Name="FK__CmFacility__CmZone">
  16265. <End Type="iBemsModel.CmZone" Role="CmZone" Multiplicity="0..1" />
  16266. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16267. <ReferentialConstraint>
  16268. <Principal Role="CmZone">
  16269. <PropertyRef Name="SiteId" />
  16270. <PropertyRef Name="BuildingId" />
  16271. <PropertyRef Name="FloorId" />
  16272. <PropertyRef Name="ZoneId" />
  16273. </Principal>
  16274. <Dependent Role="CmFacility">
  16275. <PropertyRef Name="SiteId" />
  16276. <PropertyRef Name="BuildingId" />
  16277. <PropertyRef Name="FloorId" />
  16278. <PropertyRef Name="ZoneId" />
  16279. </Dependent>
  16280. </ReferentialConstraint>
  16281. </Association>
  16282. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsFirst">
  16283. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  16284. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16285. <ReferentialConstraint>
  16286. <Principal Role="FmsFacilityCodeClass">
  16287. <PropertyRef Name="SiteId" />
  16288. <PropertyRef Name="FacilityClassId" />
  16289. </Principal>
  16290. <Dependent Role="CmFacility">
  16291. <PropertyRef Name="SiteId" />
  16292. <PropertyRef Name="FirstClassId" />
  16293. </Dependent>
  16294. </ReferentialConstraint>
  16295. </Association>
  16296. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsSecond">
  16297. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  16298. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16299. <ReferentialConstraint>
  16300. <Principal Role="FmsFacilityCodeClass">
  16301. <PropertyRef Name="SiteId" />
  16302. <PropertyRef Name="FacilityClassId" />
  16303. </Principal>
  16304. <Dependent Role="CmFacility">
  16305. <PropertyRef Name="SiteId" />
  16306. <PropertyRef Name="SecondClassId" />
  16307. </Dependent>
  16308. </ReferentialConstraint>
  16309. </Association>
  16310. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsThird">
  16311. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  16312. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16313. <ReferentialConstraint>
  16314. <Principal Role="FmsFacilityCodeClass">
  16315. <PropertyRef Name="SiteId" />
  16316. <PropertyRef Name="FacilityClassId" />
  16317. </Principal>
  16318. <Dependent Role="CmFacility">
  16319. <PropertyRef Name="SiteId" />
  16320. <PropertyRef Name="ThirdClassId" />
  16321. </Dependent>
  16322. </ReferentialConstraint>
  16323. </Association>
  16324. <Association Name="FK__CmFacilityFile__7720AD13">
  16325. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16326. <End Type="iBemsModel.CmFacilityFile" Role="CmFacilityFile" Multiplicity="*" />
  16327. <ReferentialConstraint>
  16328. <Principal Role="CmFacility">
  16329. <PropertyRef Name="SiteId" />
  16330. <PropertyRef Name="FacilityCode" />
  16331. </Principal>
  16332. <Dependent Role="CmFacilityFile">
  16333. <PropertyRef Name="SiteId" />
  16334. <PropertyRef Name="FacilityCode" />
  16335. </Dependent>
  16336. </ReferentialConstraint>
  16337. </Association>
  16338. <Association Name="FK__CmFacilityManual__79FD19BE">
  16339. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16340. <End Type="iBemsModel.FmsFacilityManual" Role="FmsFacilityManual" Multiplicity="*" />
  16341. <ReferentialConstraint>
  16342. <Principal Role="CmFacility">
  16343. <PropertyRef Name="SiteId" />
  16344. <PropertyRef Name="FacilityCode" />
  16345. </Principal>
  16346. <Dependent Role="FmsFacilityManual">
  16347. <PropertyRef Name="SiteId" />
  16348. <PropertyRef Name="FacilityCode" />
  16349. </Dependent>
  16350. </ReferentialConstraint>
  16351. </Association>
  16352. <Association Name="FK__FmsFacilityOpera__725BF7F6">
  16353. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16354. <End Type="iBemsModel.FmsFacilityOperationItem" Role="FmsFacilityOperationItem" Multiplicity="0..1" />
  16355. <ReferentialConstraint>
  16356. <Principal Role="CmFacility">
  16357. <PropertyRef Name="SiteId" />
  16358. <PropertyRef Name="FacilityCode" />
  16359. </Principal>
  16360. <Dependent Role="FmsFacilityOperationItem">
  16361. <PropertyRef Name="SiteId" />
  16362. <PropertyRef Name="ItemId" />
  16363. </Dependent>
  16364. </ReferentialConstraint>
  16365. </Association>
  16366. <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
  16367. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
  16368. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  16369. <ReferentialConstraint>
  16370. <Principal Role="CmFacility">
  16371. <PropertyRef Name="SiteId" />
  16372. <PropertyRef Name="FacilityCode" />
  16373. </Principal>
  16374. <Dependent Role="FmsWorkResultCheckItem">
  16375. <PropertyRef Name="SiteId" />
  16376. <PropertyRef Name="FacilityCode" />
  16377. </Dependent>
  16378. </ReferentialConstraint>
  16379. </Association>
  16380. <Association Name="FK__FmsWorkResultToFacility__CmFacility">
  16381. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16382. <End Type="iBemsModel.FmsWorkResultToFacility" Role="FmsWorkResultToFacility" Multiplicity="*" />
  16383. <ReferentialConstraint>
  16384. <Principal Role="CmFacility">
  16385. <PropertyRef Name="SiteId" />
  16386. <PropertyRef Name="FacilityCode" />
  16387. </Principal>
  16388. <Dependent Role="FmsWorkResultToFacility">
  16389. <PropertyRef Name="SiteId" />
  16390. <PropertyRef Name="FacilityCode" />
  16391. </Dependent>
  16392. </ReferentialConstraint>
  16393. </Association>
  16394. <Association Name="FK_CmFacility_CmUser">
  16395. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  16396. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16397. <ReferentialConstraint>
  16398. <Principal Role="CmUser">
  16399. <PropertyRef Name="SiteId" />
  16400. <PropertyRef Name="UserId" />
  16401. </Principal>
  16402. <Dependent Role="CmFacility">
  16403. <PropertyRef Name="SiteId" />
  16404. <PropertyRef Name="MainContactorUserId" />
  16405. </Dependent>
  16406. </ReferentialConstraint>
  16407. </Association>
  16408. <Association Name="FK_CmFacility_CmUser1">
  16409. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  16410. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16411. <ReferentialConstraint>
  16412. <Principal Role="CmUser">
  16413. <PropertyRef Name="SiteId" />
  16414. <PropertyRef Name="UserId" />
  16415. </Principal>
  16416. <Dependent Role="CmFacility">
  16417. <PropertyRef Name="SiteId" />
  16418. <PropertyRef Name="SubContactorUserId" />
  16419. </Dependent>
  16420. </ReferentialConstraint>
  16421. </Association>
  16422. <Association Name="FK_CmFacilityTempSet_CmFacility">
  16423. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16424. <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="0..1" />
  16425. <ReferentialConstraint>
  16426. <Principal Role="CmFacility">
  16427. <PropertyRef Name="SiteId" />
  16428. <PropertyRef Name="FacilityCode" />
  16429. </Principal>
  16430. <Dependent Role="CmFacilityTempSet">
  16431. <PropertyRef Name="SiteId" />
  16432. <PropertyRef Name="FacilityCode" />
  16433. </Dependent>
  16434. </ReferentialConstraint>
  16435. </Association>
  16436. <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
  16437. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16438. <End Type="iBemsModel.FmsWorkOrderToFacility" Role="FmsWorkOrderToFacility" Multiplicity="*" />
  16439. <ReferentialConstraint>
  16440. <Principal Role="CmFacility">
  16441. <PropertyRef Name="SiteId" />
  16442. <PropertyRef Name="FacilityCode" />
  16443. </Principal>
  16444. <Dependent Role="FmsWorkOrderToFacility">
  16445. <PropertyRef Name="SiteId" />
  16446. <PropertyRef Name="FacilityCode" />
  16447. </Dependent>
  16448. </ReferentialConstraint>
  16449. </Association>
  16450. <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
  16451. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16452. <End Type="iBemsModel.FmsWorkRequestToFacility" Role="FmsWorkRequestToFacility" Multiplicity="*" />
  16453. <ReferentialConstraint>
  16454. <Principal Role="CmFacility">
  16455. <PropertyRef Name="SiteId" />
  16456. <PropertyRef Name="FacilityCode" />
  16457. </Principal>
  16458. <Dependent Role="FmsWorkRequestToFacility">
  16459. <PropertyRef Name="SiteId" />
  16460. <PropertyRef Name="FacilityCode" />
  16461. </Dependent>
  16462. </ReferentialConstraint>
  16463. </Association>
  16464. <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
  16465. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16466. <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
  16467. <ReferentialConstraint>
  16468. <Principal Role="CmFacility">
  16469. <PropertyRef Name="SiteId" />
  16470. <PropertyRef Name="FacilityCode" />
  16471. </Principal>
  16472. <Dependent Role="FmsWorkScheduleToFacility">
  16473. <PropertyRef Name="SiteId" />
  16474. <PropertyRef Name="FacilityCode" />
  16475. </Dependent>
  16476. </ReferentialConstraint>
  16477. </Association>
  16478. <EntityType Name="BemsMonitoringPointHistory15minRawData">
  16479. <Key>
  16480. <PropertyRef Name="SiteId" />
  16481. <PropertyRef Name="FacilityCode" />
  16482. <PropertyRef Name="PropertyId" />
  16483. <PropertyRef Name="CreatedDateTime" />
  16484. </Key>
  16485. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16486. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  16487. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  16488. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  16489. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16490. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  16491. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsFacilityType" />
  16492. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsMonitoringPoint" />
  16493. </EntityType>
  16494. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  16495. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  16496. <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  16497. <ReferentialConstraint>
  16498. <Principal Role="BemsFacilityType">
  16499. <PropertyRef Name="FacilityTypeId" />
  16500. </Principal>
  16501. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  16502. <PropertyRef Name="FacilityTypeId" />
  16503. </Dependent>
  16504. </ReferentialConstraint>
  16505. </Association>
  16506. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  16507. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
  16508. <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  16509. <ReferentialConstraint>
  16510. <Principal Role="BemsMonitoringPoint">
  16511. <PropertyRef Name="SiteId" />
  16512. <PropertyRef Name="FacilityCode" />
  16513. <PropertyRef Name="PropertyId" />
  16514. </Principal>
  16515. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  16516. <PropertyRef Name="SiteId" />
  16517. <PropertyRef Name="FacilityCode" />
  16518. <PropertyRef Name="PropertyId" />
  16519. </Dependent>
  16520. </ReferentialConstraint>
  16521. </Association>
  16522. <EntityType Name="FmsDailyReport">
  16523. <Key>
  16524. <PropertyRef Name="SiteId" />
  16525. <PropertyRef Name="AddDate" />
  16526. <PropertyRef Name="BusinessFieldId" />
  16527. </Key>
  16528. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16529. <Property Name="DailyReportId" Type="Int32" />
  16530. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  16531. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  16532. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  16533. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="0" />
  16534. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  16535. <Property Name="Datas" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  16536. <Property Name="ApproverUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16537. <Property Name="ApproveDate" Type="DateTime" Precision="0" />
  16538. <Property Name="RegisterDate" Type="DateTime" Precision="0" />
  16539. <Property Name="ApproverUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16540. <Property Name="ApproveDate2" Type="DateTime" Precision="0" />
  16541. <Property Name="ApproverUserId3" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16542. <Property Name="ApproveDate3" Type="DateTime" Precision="0" />
  16543. <Property Name="ApproverUserId4" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16544. <Property Name="ApproveDate4" Type="DateTime" Precision="0" />
  16545. <Property Name="ApproverUserId5" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16546. <Property Name="ApproveDate5" Type="DateTime" Precision="0" />
  16547. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="FmsDailyReport" ToRole="CmBusinessField" />
  16548. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="FmsDailyReport" ToRole="CmUser" />
  16549. </EntityType>
  16550. <Association Name="FK_FmsDailyReport_CmBusinessField">
  16551. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  16552. <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
  16553. <ReferentialConstraint>
  16554. <Principal Role="CmBusinessField">
  16555. <PropertyRef Name="SiteId" />
  16556. <PropertyRef Name="BusinessFieldId" />
  16557. </Principal>
  16558. <Dependent Role="FmsDailyReport">
  16559. <PropertyRef Name="SiteId" />
  16560. <PropertyRef Name="BusinessFieldId" />
  16561. </Dependent>
  16562. </ReferentialConstraint>
  16563. </Association>
  16564. <Association Name="FK_FmsDailyReport_CmUser">
  16565. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  16566. <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
  16567. <ReferentialConstraint>
  16568. <Principal Role="CmUser">
  16569. <PropertyRef Name="SiteId" />
  16570. <PropertyRef Name="UserId" />
  16571. </Principal>
  16572. <Dependent Role="FmsDailyReport">
  16573. <PropertyRef Name="SiteId" />
  16574. <PropertyRef Name="RegisterUserId" />
  16575. </Dependent>
  16576. </ReferentialConstraint>
  16577. </Association>
  16578. <EntityType Name="BemsPeakHistoryDaily">
  16579. <Key>
  16580. <PropertyRef Name="SiteId" />
  16581. <PropertyRef Name="CreatedDateTime" />
  16582. </Key>
  16583. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16584. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16585. <Property Name="MaxPeakValue" Type="Double" />
  16586. <Property Name="MaxDateTime" Type="DateTime" Precision="3" />
  16587. <Property Name="MinPeakValue" Type="Double" />
  16588. <Property Name="MinDateTime" Type="DateTime" Precision="3" />
  16589. </EntityType>
  16590. <EntityType Name="FmsEquipment">
  16591. <Key>
  16592. <PropertyRef Name="SiteId" />
  16593. <PropertyRef Name="EquipmentId" />
  16594. </Key>
  16595. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16596. <Property Name="EquipmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16597. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  16598. <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" />
  16599. <Property Name="WarehouseId" Type="Int32" />
  16600. <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
  16601. <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16602. <Property Name="AddDate" Type="DateTime" Precision="3" />
  16603. <Property Name="UpdateDate" Type="DateTime" Precision="3" />
  16604. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  16605. <Property Name="SupplierName" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  16606. <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16607. <Property Name="ImageFileId" Type="Int32" />
  16608. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="FmsEquipment" ToRole="CmUser" />
  16609. <NavigationProperty Name="FmsEquipmentCodeType" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipment" ToRole="FmsEquipmentCodeType" />
  16610. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsEquipment" ToRole="FmsMaterialWarehouse" />
  16611. <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipment" ToRole="FmsEquipmentHistory" />
  16612. </EntityType>
  16613. <Association Name="FK_FmsEquipment_CmUser">
  16614. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  16615. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  16616. <ReferentialConstraint>
  16617. <Principal Role="CmUser">
  16618. <PropertyRef Name="SiteId" />
  16619. <PropertyRef Name="UserId" />
  16620. </Principal>
  16621. <Dependent Role="FmsEquipment">
  16622. <PropertyRef Name="SiteId" />
  16623. <PropertyRef Name="RegisterUserId" />
  16624. </Dependent>
  16625. </ReferentialConstraint>
  16626. </Association>
  16627. <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
  16628. <End Type="iBemsModel.FmsEquipmentCodeType" Role="FmsEquipmentCodeType" Multiplicity="1" />
  16629. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  16630. <ReferentialConstraint>
  16631. <Principal Role="FmsEquipmentCodeType">
  16632. <PropertyRef Name="SiteId" />
  16633. <PropertyRef Name="EquipmentTypeId" />
  16634. </Principal>
  16635. <Dependent Role="FmsEquipment">
  16636. <PropertyRef Name="SiteId" />
  16637. <PropertyRef Name="EquipmentTypeId" />
  16638. </Dependent>
  16639. </ReferentialConstraint>
  16640. </Association>
  16641. <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
  16642. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
  16643. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  16644. <ReferentialConstraint>
  16645. <Principal Role="FmsMaterialWarehouse">
  16646. <PropertyRef Name="SiteId" />
  16647. <PropertyRef Name="WarehouseId" />
  16648. </Principal>
  16649. <Dependent Role="FmsEquipment">
  16650. <PropertyRef Name="SiteId" />
  16651. <PropertyRef Name="WarehouseId" />
  16652. </Dependent>
  16653. </ReferentialConstraint>
  16654. </Association>
  16655. <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
  16656. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="1" />
  16657. <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
  16658. <ReferentialConstraint>
  16659. <Principal Role="FmsEquipment">
  16660. <PropertyRef Name="SiteId" />
  16661. <PropertyRef Name="EquipmentId" />
  16662. </Principal>
  16663. <Dependent Role="FmsEquipmentHistory">
  16664. <PropertyRef Name="SiteId" />
  16665. <PropertyRef Name="EquipmentId" />
  16666. </Dependent>
  16667. </ReferentialConstraint>
  16668. </Association>
  16669. <EntityType Name="CmAlarmAdmin">
  16670. <Key>
  16671. <PropertyRef Name="SiteId" />
  16672. </Key>
  16673. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16674. <Property Name="UserCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16675. <Property Name="DeptCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16676. <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16677. <Property Name="EmailAddress" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16678. <Property Name="EmailPassword" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16679. </EntityType>
  16680. <EntityType Name="BemsFloorStatus">
  16681. <Key>
  16682. <PropertyRef Name="SiteId" />
  16683. <PropertyRef Name="FloorId" />
  16684. <PropertyRef Name="FloorName" />
  16685. <PropertyRef Name="ImageFileId" />
  16686. <PropertyRef Name="Xvalue" />
  16687. <PropertyRef Name="Yvalue" />
  16688. <PropertyRef Name="PropertyId" />
  16689. </Key>
  16690. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16691. <Property Name="FloorId" Type="Int32" Nullable="false" />
  16692. <Property Name="FloorName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16693. <Property Name="ImageFileId" Type="Int32" Nullable="false" />
  16694. <Property Name="Xvalue" Type="Int32" Nullable="false" />
  16695. <Property Name="Yvalue" Type="Int32" Nullable="false" />
  16696. <Property Name="ZoneId" Type="Int32" />
  16697. <Property Name="ServiceTypeId" Type="Int32" />
  16698. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  16699. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  16700. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  16701. <Property Name="FacilityName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  16702. </EntityType>
  16703. <EntityType Name="BemsReportHistory">
  16704. <Key>
  16705. <PropertyRef Name="Seq" />
  16706. <PropertyRef Name="DateTime" />
  16707. <PropertyRef Name="ReportFormatId" />
  16708. <PropertyRef Name="parts" />
  16709. </Key>
  16710. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16711. <Property Name="Seq" Type="Int32" Nullable="false" />
  16712. <Property Name="DateTime" Type="DateTime" Nullable="false" Precision="3" />
  16713. <Property Name="ReportName" Type="String" Nullable="false" MaxLength="200" FixedLength="false" Unicode="false" />
  16714. <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
  16715. <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  16716. <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  16717. <Property Name="Writer" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  16718. <Property Name="Confirm1" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  16719. <Property Name="Confirm2" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  16720. <Property Name="parts" Type="Int32" Nullable="false" />
  16721. <Property Name="FileName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  16722. </EntityType>
  16723. <EntityType Name="CmPartner">
  16724. <Key>
  16725. <PropertyRef Name="SiteId" />
  16726. <PropertyRef Name="PartnerId" />
  16727. </Key>
  16728. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16729. <Property Name="PartnerId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16730. <Property Name="PartnerTypeId" Type="Int32" Nullable="false" />
  16731. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16732. <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16733. <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16734. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16735. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16736. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16737. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16738. <Property Name="AddressZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  16739. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  16740. <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16741. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  16742. <Property Name="HomepageUri" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  16743. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  16744. <Property Name="IsUse" Type="Boolean" />
  16745. <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartner" ToRole="CmPartnerType" />
  16746. <NavigationProperty Name="FmsConstruction" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="CmPartner" ToRole="FmsConstruction" />
  16747. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="CmPartner" ToRole="FmsWorkRequest" />
  16748. <NavigationProperty Name="FmsWorkSchedule" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="CmPartner" ToRole="FmsWorkSchedule" />
  16749. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="CmPartner" ToRole="FmsContract" />
  16750. </EntityType>
  16751. <EntityType Name="CmPartnerType">
  16752. <Key>
  16753. <PropertyRef Name="PartnerTypeId" />
  16754. </Key>
  16755. <Property Name="PartnerTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16756. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16757. <Property Name="IsUse" Type="Boolean" />
  16758. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartnerType" ToRole="CmPartner" />
  16759. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="CmPartnerType" ToRole="FmsContract" />
  16760. </EntityType>
  16761. <Association Name="FK_CmPartnerType_CmPartner">
  16762. <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="1" />
  16763. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="*" />
  16764. <ReferentialConstraint>
  16765. <Principal Role="CmPartnerType">
  16766. <PropertyRef Name="PartnerTypeId" />
  16767. </Principal>
  16768. <Dependent Role="CmPartner">
  16769. <PropertyRef Name="PartnerTypeId" />
  16770. </Dependent>
  16771. </ReferentialConstraint>
  16772. </Association>
  16773. <Association Name="FK_FmsConstruction_CmPartner">
  16774. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="1" />
  16775. <End Type="iBemsModel.FmsConstruction" Role="FmsConstruction" Multiplicity="*" />
  16776. <ReferentialConstraint>
  16777. <Principal Role="CmPartner">
  16778. <PropertyRef Name="SiteId" />
  16779. <PropertyRef Name="PartnerId" />
  16780. </Principal>
  16781. <Dependent Role="FmsConstruction">
  16782. <PropertyRef Name="SiteId" />
  16783. <PropertyRef Name="PartnerId" />
  16784. </Dependent>
  16785. </ReferentialConstraint>
  16786. </Association>
  16787. <Association Name="FK_FmsWorkRequest_CmPartner">
  16788. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  16789. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  16790. <ReferentialConstraint>
  16791. <Principal Role="CmPartner">
  16792. <PropertyRef Name="SiteId" />
  16793. <PropertyRef Name="PartnerId" />
  16794. </Principal>
  16795. <Dependent Role="FmsWorkRequest">
  16796. <PropertyRef Name="SiteId" />
  16797. <PropertyRef Name="InspectionAgencyId" />
  16798. </Dependent>
  16799. </ReferentialConstraint>
  16800. </Association>
  16801. <Association Name="FK_FmsWorkSchedule_CmPartner">
  16802. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  16803. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  16804. <ReferentialConstraint>
  16805. <Principal Role="CmPartner">
  16806. <PropertyRef Name="SiteId" />
  16807. <PropertyRef Name="PartnerId" />
  16808. </Principal>
  16809. <Dependent Role="FmsWorkSchedule">
  16810. <PropertyRef Name="SiteId" />
  16811. <PropertyRef Name="InspectionAgencyId" />
  16812. </Dependent>
  16813. </ReferentialConstraint>
  16814. </Association>
  16815. <EntityType Name="FmsContract">
  16816. <Key>
  16817. <PropertyRef Name="SiteId" />
  16818. <PropertyRef Name="ContractId" />
  16819. </Key>
  16820. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16821. <Property Name="ContractId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16822. <Property Name="Name" Type="String" Nullable="false" MaxLength="256" FixedLength="false" Unicode="true" />
  16823. <Property Name="PartnerTypeId" Type="Int32" />
  16824. <Property Name="PartnerId" Type="Int32" />
  16825. <Property Name="ContractDate" Type="DateTime" Precision="3" />
  16826. <Property Name="StartDate" Type="DateTime" Precision="3" />
  16827. <Property Name="EndDate" Type="DateTime" Precision="3" />
  16828. <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16829. <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16830. <Property Name="CommitmentMan" Type="Int16" />
  16831. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  16832. <Property Name="ContractClassId" Type="Int32" />
  16833. <Property Name="ContractTypeId" Type="Int32" />
  16834. <Property Name="ContractMethodId" Type="Int32" />
  16835. <Property Name="PaymentTypeId" Type="Int32" />
  16836. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="FmsContract" ToRole="CmPartner" />
  16837. <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="FmsContract" ToRole="CmPartnerType" />
  16838. <NavigationProperty Name="FmsContractClass" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContract" ToRole="FmsContractClass" />
  16839. <NavigationProperty Name="FmsContractMethod" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContract" ToRole="FmsContractMethod" />
  16840. <NavigationProperty Name="FmsContractType" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContract" ToRole="FmsContractType" />
  16841. <NavigationProperty Name="FmsPaymentType" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsContract" ToRole="FmsPaymentType" />
  16842. </EntityType>
  16843. <Association Name="FK_FmsContract_CmPartner">
  16844. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  16845. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16846. <ReferentialConstraint>
  16847. <Principal Role="CmPartner">
  16848. <PropertyRef Name="SiteId" />
  16849. <PropertyRef Name="PartnerId" />
  16850. </Principal>
  16851. <Dependent Role="FmsContract">
  16852. <PropertyRef Name="SiteId" />
  16853. <PropertyRef Name="PartnerId" />
  16854. </Dependent>
  16855. </ReferentialConstraint>
  16856. </Association>
  16857. <Association Name="FK_FmsContract_CmPartnerType">
  16858. <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="0..1" />
  16859. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16860. <ReferentialConstraint>
  16861. <Principal Role="CmPartnerType">
  16862. <PropertyRef Name="PartnerTypeId" />
  16863. </Principal>
  16864. <Dependent Role="FmsContract">
  16865. <PropertyRef Name="PartnerTypeId" />
  16866. </Dependent>
  16867. </ReferentialConstraint>
  16868. </Association>
  16869. <Association Name="FK_FmsContract_FmsContractClass">
  16870. <End Type="iBemsModel.FmsContractClass" Role="FmsContractClass" Multiplicity="0..1" />
  16871. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16872. <ReferentialConstraint>
  16873. <Principal Role="FmsContractClass">
  16874. <PropertyRef Name="SiteId" />
  16875. <PropertyRef Name="ContractClassId" />
  16876. </Principal>
  16877. <Dependent Role="FmsContract">
  16878. <PropertyRef Name="SiteId" />
  16879. <PropertyRef Name="ContractClassId" />
  16880. </Dependent>
  16881. </ReferentialConstraint>
  16882. </Association>
  16883. <Association Name="FK_FmsContract_FmsContractMethod">
  16884. <End Type="iBemsModel.FmsContractMethod" Role="FmsContractMethod" Multiplicity="0..1" />
  16885. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16886. <ReferentialConstraint>
  16887. <Principal Role="FmsContractMethod">
  16888. <PropertyRef Name="SiteId" />
  16889. <PropertyRef Name="ContractMethodId" />
  16890. </Principal>
  16891. <Dependent Role="FmsContract">
  16892. <PropertyRef Name="SiteId" />
  16893. <PropertyRef Name="ContractMethodId" />
  16894. </Dependent>
  16895. </ReferentialConstraint>
  16896. </Association>
  16897. <Association Name="FK_FmsContract_FmsContractType">
  16898. <End Type="iBemsModel.FmsContractType" Role="FmsContractType" Multiplicity="0..1" />
  16899. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16900. <ReferentialConstraint>
  16901. <Principal Role="FmsContractType">
  16902. <PropertyRef Name="SiteId" />
  16903. <PropertyRef Name="ContractTypeId" />
  16904. </Principal>
  16905. <Dependent Role="FmsContract">
  16906. <PropertyRef Name="SiteId" />
  16907. <PropertyRef Name="ContractTypeId" />
  16908. </Dependent>
  16909. </ReferentialConstraint>
  16910. </Association>
  16911. <Association Name="FK_FmsContract_FmsPaymentType">
  16912. <End Type="iBemsModel.FmsPaymentType" Role="FmsPaymentType" Multiplicity="0..1" />
  16913. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16914. <ReferentialConstraint>
  16915. <Principal Role="FmsPaymentType">
  16916. <PropertyRef Name="SiteId" />
  16917. <PropertyRef Name="PaymentTypeId" />
  16918. </Principal>
  16919. <Dependent Role="FmsContract">
  16920. <PropertyRef Name="SiteId" />
  16921. <PropertyRef Name="PartnerTypeId" />
  16922. </Dependent>
  16923. </ReferentialConstraint>
  16924. </Association>
  16925. <EntityType Name="BemsMonitoringPointForecastingDayAhead">
  16926. <Key>
  16927. <PropertyRef Name="SiteId" />
  16928. <PropertyRef Name="FacilityCode" />
  16929. <PropertyRef Name="PropertyId" />
  16930. <PropertyRef Name="CreatedDateTime" />
  16931. <PropertyRef Name="TargetDateTime" />
  16932. </Key>
  16933. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16934. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  16935. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  16936. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  16937. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16938. <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16939. <Property Name="ForecastedValue" Type="Double" Nullable="false" />
  16940. </EntityType>
  16941. <EntityType Name="BemsMonitoringPointForecastingHourAhead">
  16942. <Key>
  16943. <PropertyRef Name="SiteId" />
  16944. <PropertyRef Name="FacilityCode" />
  16945. <PropertyRef Name="PropertyId" />
  16946. <PropertyRef Name="CreatedDateTime" />
  16947. <PropertyRef Name="TargetDateTime" />
  16948. </Key>
  16949. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16950. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  16951. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  16952. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  16953. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16954. <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16955. <Property Name="ForecastedValue" Type="Double" Nullable="false" />
  16956. </EntityType>
  16957. <EntityType Name="BemsFloorPlan">
  16958. <Key>
  16959. <PropertyRef Name="SiteId" />
  16960. <PropertyRef Name="Name" />
  16961. </Key>
  16962. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16963. <Property Name="FloorId" Type="Int32" Nullable="false" />
  16964. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16965. <Property Name="ImageFileId" Type="Int32" />
  16966. </EntityType>
  16967. <EntityType Name="BemsMonitoringPointWeatherForecasted">
  16968. <Key>
  16969. <PropertyRef Name="SiteId" />
  16970. <PropertyRef Name="CreatedDateTime" />
  16971. <PropertyRef Name="Category" />
  16972. <PropertyRef Name="BaseDateTime" />
  16973. <PropertyRef Name="ForecastedDateTime" />
  16974. </Key>
  16975. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16976. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16977. <Property Name="Category" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16978. <Property Name="BaseDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16979. <Property Name="ForecastedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16980. <Property Name="ForecastedValue" Type="Double" Nullable="false" />
  16981. <Property Name="nx" Type="Int32" Nullable="false" />
  16982. <Property Name="ny" Type="Int32" Nullable="false" />
  16983. </EntityType>
  16984. <EntityType Name="BemsIceThermalStorageSimulation">
  16985. <Key>
  16986. <PropertyRef Name="SiteId" />
  16987. <PropertyRef Name="FacilityCode" />
  16988. <PropertyRef Name="PropertyId" />
  16989. <PropertyRef Name="CreatedDateTime" />
  16990. <PropertyRef Name="TargetDateTime" />
  16991. <PropertyRef Name="SimulationCase" />
  16992. </Key>
  16993. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16994. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  16995. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  16996. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  16997. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16998. <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16999. <Property Name="SimulationValue" Type="Double" />
  17000. <Property Name="SimulationCase" Type="Int32" Nullable="false" />
  17001. </EntityType>
  17002. <EntityType Name="BemsConfigData">
  17003. <Key>
  17004. <PropertyRef Name="SiteId" />
  17005. </Key>
  17006. <Property Name="SiteId" Type="Int32" Nullable="false" />
  17007. <Property Name="LoadDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  17008. <Property Name="LoadDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  17009. <Property Name="LoadDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  17010. <Property Name="LoadDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  17011. <Property Name="TargetDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  17012. <Property Name="TargetDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  17013. <Property Name="TargetDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  17014. <Property Name="TargetDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  17015. </EntityType>
  17016. </Schema>
  17017. </edmx:ConceptualModels>
  17018. <!-- C-S mapping content -->
  17019. <edmx:Mappings>
  17020. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  17021. <EntityContainerMapping StorageEntityContainer="iBemsModelStoreContainer" CdmEntityContainer="iBemsEntities">
  17022. <EntitySetMapping Name="BemsAnalysisType">
  17023. <EntityTypeMapping TypeName="iBemsModel.BemsAnalysisType">
  17024. <MappingFragment StoreEntitySet="BemsAnalysisType">
  17025. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17026. <ScalarProperty Name="AnalysisType" ColumnName="AnalysisType" />
  17027. <ScalarProperty Name="Name" ColumnName="Name" />
  17028. </MappingFragment>
  17029. </EntityTypeMapping>
  17030. </EntitySetMapping>
  17031. <EntitySetMapping Name="BemsControlPointHistory">
  17032. <EntityTypeMapping TypeName="iBemsModel.BemsControlPointHistory">
  17033. <MappingFragment StoreEntitySet="BemsControlPointHistory">
  17034. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17035. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17036. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17037. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17038. <ScalarProperty Name="CreateDateTime" ColumnName="CreateDateTime" />
  17039. <ScalarProperty Name="ControlValue" ColumnName="ControlValue" />
  17040. <ScalarProperty Name="WriteServiceName" ColumnName="WriteServiceName" />
  17041. <ScalarProperty Name="ActionDateTime" ColumnName="ActionDateTime" />
  17042. </MappingFragment>
  17043. </EntityTypeMapping>
  17044. </EntitySetMapping>
  17045. <EntitySetMapping Name="BemsFacilityType">
  17046. <EntityTypeMapping TypeName="iBemsModel.BemsFacilityType">
  17047. <MappingFragment StoreEntitySet="BemsFacilityType">
  17048. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17049. <ScalarProperty Name="Name" ColumnName="Name" />
  17050. </MappingFragment>
  17051. </EntityTypeMapping>
  17052. </EntitySetMapping>
  17053. <EntitySetMapping Name="BemsFactorCo2">
  17054. <EntityTypeMapping TypeName="iBemsModel.BemsFactorCo2">
  17055. <MappingFragment StoreEntitySet="BemsFactorCo2">
  17056. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  17057. <ScalarProperty Name="Factor" ColumnName="Factor" />
  17058. </MappingFragment>
  17059. </EntityTypeMapping>
  17060. </EntitySetMapping>
  17061. <EntitySetMapping Name="BemsFactorToe">
  17062. <EntityTypeMapping TypeName="iBemsModel.BemsFactorToe">
  17063. <MappingFragment StoreEntitySet="BemsFactorToe">
  17064. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  17065. <ScalarProperty Name="TotalFactor" ColumnName="TotalFactor" />
  17066. <ScalarProperty Name="PureFactor" ColumnName="PureFactor" />
  17067. <ScalarProperty Name="kcal" ColumnName="kcal" />
  17068. </MappingFragment>
  17069. </EntityTypeMapping>
  17070. </EntitySetMapping>
  17071. <EntitySetMapping Name="BemsFormula">
  17072. <EntityTypeMapping TypeName="iBemsModel.BemsFormula">
  17073. <MappingFragment StoreEntitySet="BemsFormula">
  17074. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17075. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17076. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17077. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  17078. <ScalarProperty Name="Formula" ColumnName="Formula" />
  17079. </MappingFragment>
  17080. </EntityTypeMapping>
  17081. </EntitySetMapping>
  17082. <EntitySetMapping Name="BemsFormulaBase">
  17083. <EntityTypeMapping TypeName="iBemsModel.BemsFormulaBase">
  17084. <MappingFragment StoreEntitySet="BemsFormulaBase">
  17085. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17086. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  17087. <ScalarProperty Name="Name" ColumnName="Name" />
  17088. </MappingFragment>
  17089. </EntityTypeMapping>
  17090. </EntitySetMapping>
  17091. <EntitySetMapping Name="BemsFormulaParameter">
  17092. <EntityTypeMapping TypeName="iBemsModel.BemsFormulaParameter">
  17093. <MappingFragment StoreEntitySet="BemsFormulaParameter">
  17094. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17095. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17096. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17097. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  17098. <ScalarProperty Name="ParameterId" ColumnName="ParameterId" />
  17099. <ScalarProperty Name="ParameterFacilityCode" ColumnName="ParameterFacilityCode" />
  17100. <ScalarProperty Name="ParameterPropertyId" ColumnName="ParameterPropertyId" />
  17101. </MappingFragment>
  17102. </EntityTypeMapping>
  17103. </EntitySetMapping>
  17104. <EntitySetMapping Name="BemsFormulaTable">
  17105. <EntityTypeMapping TypeName="iBemsModel.BemsFormulaTable">
  17106. <MappingFragment StoreEntitySet="BemsFormulaTable">
  17107. <ScalarProperty Name="TableId" ColumnName="TableId" />
  17108. <ScalarProperty Name="FunctionName" ColumnName="FunctionName" />
  17109. <ScalarProperty Name="Description" ColumnName="Description" />
  17110. </MappingFragment>
  17111. </EntityTypeMapping>
  17112. </EntitySetMapping>
  17113. <EntitySetMapping Name="BemsFormulaTableValue">
  17114. <EntityTypeMapping TypeName="iBemsModel.BemsFormulaTableValue">
  17115. <MappingFragment StoreEntitySet="BemsFormulaTableValue">
  17116. <ScalarProperty Name="TableId" ColumnName="TableId" />
  17117. <ScalarProperty Name="XValue" ColumnName="XValue" />
  17118. <ScalarProperty Name="YValue" ColumnName="YValue" />
  17119. </MappingFragment>
  17120. </EntityTypeMapping>
  17121. </EntitySetMapping>
  17122. <EntitySetMapping Name="BemsMonitoringPoint">
  17123. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPoint">
  17124. <MappingFragment StoreEntitySet="BemsMonitoringPoint">
  17125. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17126. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17127. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17128. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17129. <ScalarProperty Name="ValueType" ColumnName="ValueType" />
  17130. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  17131. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  17132. <ScalarProperty Name="Name" ColumnName="Name" />
  17133. <ScalarProperty Name="Description" ColumnName="Description" />
  17134. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17135. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  17136. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  17137. </MappingFragment>
  17138. </EntityTypeMapping>
  17139. </EntitySetMapping>
  17140. <EntitySetMapping Name="BemsMonitoringPointBaseData">
  17141. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointBaseData">
  17142. <MappingFragment StoreEntitySet="BemsMonitoringPointBaseData">
  17143. <ScalarProperty Name="IsConverted" ColumnName="IsConverted" />
  17144. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17145. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17146. <ScalarProperty Name="ValueType" ColumnName="ValueType" />
  17147. <ScalarProperty Name="IsAccumulated" ColumnName="IsAccumulated" />
  17148. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  17149. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  17150. <ScalarProperty Name="Name" ColumnName="Name" />
  17151. <ScalarProperty Name="Description" ColumnName="Description" />
  17152. <ScalarProperty Name="IsSampled" ColumnName="IsSampled" />
  17153. </MappingFragment>
  17154. </EntityTypeMapping>
  17155. </EntitySetMapping>
  17156. <EntitySetMapping Name="BemsMonitoringPointHistory15min">
  17157. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistory15min">
  17158. <MappingFragment StoreEntitySet="BemsMonitoringPointHistory15min">
  17159. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17160. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17161. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17162. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17163. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  17164. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  17165. </MappingFragment>
  17166. </EntityTypeMapping>
  17167. </EntitySetMapping>
  17168. <EntitySetMapping Name="BemsMonitoringPointHistoryDaily">
  17169. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistoryDaily">
  17170. <MappingFragment StoreEntitySet="BemsMonitoringPointHistoryDaily">
  17171. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17172. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17173. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17174. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17175. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  17176. <ScalarProperty Name="DailyValue" ColumnName="DailyValue" />
  17177. <ScalarProperty Name="MaxValue" ColumnName="MaxValue" />
  17178. <ScalarProperty Name="MinValue" ColumnName="MinValue" />
  17179. </MappingFragment>
  17180. </EntityTypeMapping>
  17181. </EntitySetMapping>
  17182. <EntitySetMapping Name="BemsMonitoringPointHistoryHourly">
  17183. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistoryHourly">
  17184. <MappingFragment StoreEntitySet="BemsMonitoringPointHistoryHourly">
  17185. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17186. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17187. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17188. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17189. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  17190. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  17191. </MappingFragment>
  17192. </EntityTypeMapping>
  17193. </EntitySetMapping>
  17194. <EntitySetMapping Name="BemsMonitoringPointToAnlaysisType">
  17195. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointToAnlaysisType">
  17196. <MappingFragment StoreEntitySet="BemsMonitoringPointToAnlaysisType">
  17197. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17198. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17199. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17200. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17201. <ScalarProperty Name="AnalysisType" ColumnName="AnalysisType" />
  17202. </MappingFragment>
  17203. </EntityTypeMapping>
  17204. </EntitySetMapping>
  17205. <EntitySetMapping Name="BemsServiceType">
  17206. <EntityTypeMapping TypeName="iBemsModel.BemsServiceType">
  17207. <MappingFragment StoreEntitySet="BemsServiceType">
  17208. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  17209. <ScalarProperty Name="Name" ColumnName="Name" />
  17210. </MappingFragment>
  17211. </EntityTypeMapping>
  17212. </EntitySetMapping>
  17213. <EntitySetMapping Name="CmAnnouncement">
  17214. <EntityTypeMapping TypeName="iBemsModel.CmAnnouncement">
  17215. <MappingFragment StoreEntitySet="CmAnnouncement">
  17216. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17217. <ScalarProperty Name="AnnouncementId" ColumnName="AnnouncementId" />
  17218. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17219. <ScalarProperty Name="Title" ColumnName="Title" />
  17220. <ScalarProperty Name="Contents" ColumnName="Contents" />
  17221. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  17222. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17223. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  17224. <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
  17225. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17226. <ScalarProperty Name="ReadCount" ColumnName="ReadCount" />
  17227. </MappingFragment>
  17228. </EntityTypeMapping>
  17229. </EntitySetMapping>
  17230. <EntitySetMapping Name="CmBuilding">
  17231. <EntityTypeMapping TypeName="iBemsModel.CmBuilding">
  17232. <MappingFragment StoreEntitySet="CmBuilding">
  17233. <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
  17234. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17235. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17236. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17237. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17238. <ScalarProperty Name="Name" ColumnName="Name" />
  17239. </MappingFragment>
  17240. </EntityTypeMapping>
  17241. </EntitySetMapping>
  17242. <EntitySetMapping Name="CmBusinessField">
  17243. <EntityTypeMapping TypeName="iBemsModel.CmBusinessField">
  17244. <MappingFragment StoreEntitySet="CmBusinessField">
  17245. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17246. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17247. <ScalarProperty Name="Name" ColumnName="Name" />
  17248. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17249. </MappingFragment>
  17250. </EntityTypeMapping>
  17251. </EntitySetMapping>
  17252. <EntitySetMapping Name="CmCompany">
  17253. <EntityTypeMapping TypeName="iBemsModel.CmCompany">
  17254. <MappingFragment StoreEntitySet="CmCompany">
  17255. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17256. <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
  17257. <ScalarProperty Name="CompanyTypeId" ColumnName="CompanyTypeId" />
  17258. <ScalarProperty Name="Name" ColumnName="Name" />
  17259. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  17260. <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
  17261. <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
  17262. <ScalarProperty Name="SalesName" ColumnName="SalesName" />
  17263. <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
  17264. <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
  17265. <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
  17266. <ScalarProperty Name="Address1" ColumnName="Address1" />
  17267. <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
  17268. <ScalarProperty Name="Homepage" ColumnName="Homepage" />
  17269. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17270. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17271. </MappingFragment>
  17272. </EntityTypeMapping>
  17273. </EntitySetMapping>
  17274. <EntitySetMapping Name="CmCompanyType">
  17275. <EntityTypeMapping TypeName="iBemsModel.CmCompanyType">
  17276. <MappingFragment StoreEntitySet="CmCompanyType">
  17277. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17278. <ScalarProperty Name="CompanyTypeId" ColumnName="CompanyTypeId" />
  17279. <ScalarProperty Name="Name" ColumnName="Name" />
  17280. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17281. </MappingFragment>
  17282. </EntityTypeMapping>
  17283. </EntitySetMapping>
  17284. <EntitySetMapping Name="CmDepartment">
  17285. <EntityTypeMapping TypeName="iBemsModel.CmDepartment">
  17286. <MappingFragment StoreEntitySet="CmDepartment">
  17287. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17288. <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
  17289. <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
  17290. <ScalarProperty Name="Name" ColumnName="Name" />
  17291. <ScalarProperty Name="ShortName" ColumnName="ShortName" />
  17292. <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
  17293. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  17294. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17295. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17296. </MappingFragment>
  17297. </EntityTypeMapping>
  17298. </EntitySetMapping>
  17299. <EntitySetMapping Name="CmFacilityFile">
  17300. <EntityTypeMapping TypeName="iBemsModel.CmFacilityFile">
  17301. <MappingFragment StoreEntitySet="CmFacilityFile">
  17302. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17303. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17304. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17305. <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
  17306. <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
  17307. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  17308. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  17309. </MappingFragment>
  17310. </EntityTypeMapping>
  17311. </EntitySetMapping>
  17312. <EntitySetMapping Name="CmFacilityTempSet">
  17313. <EntityTypeMapping TypeName="iBemsModel.CmFacilityTempSet">
  17314. <MappingFragment StoreEntitySet="CmFacilityTempSet">
  17315. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17316. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17317. <ScalarProperty Name="T1" ColumnName="T1" />
  17318. <ScalarProperty Name="T2" ColumnName="T2" />
  17319. <ScalarProperty Name="T3" ColumnName="T3" />
  17320. <ScalarProperty Name="T4" ColumnName="T4" />
  17321. <ScalarProperty Name="T5" ColumnName="T5" />
  17322. <ScalarProperty Name="T6" ColumnName="T6" />
  17323. <ScalarProperty Name="T7" ColumnName="T7" />
  17324. <ScalarProperty Name="T8" ColumnName="T8" />
  17325. <ScalarProperty Name="T9" ColumnName="T9" />
  17326. <ScalarProperty Name="T10" ColumnName="T10" />
  17327. <ScalarProperty Name="T11" ColumnName="T11" />
  17328. <ScalarProperty Name="T12" ColumnName="T12" />
  17329. </MappingFragment>
  17330. </EntityTypeMapping>
  17331. </EntitySetMapping>
  17332. <EntitySetMapping Name="CmFile">
  17333. <EntityTypeMapping TypeName="iBemsModel.CmFile">
  17334. <MappingFragment StoreEntitySet="CmFile">
  17335. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17336. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17337. <ScalarProperty Name="FileCategoryId" ColumnName="FileCategoryId" />
  17338. <ScalarProperty Name="Name" ColumnName="Name" />
  17339. <ScalarProperty Name="FileSize" ColumnName="FileSize" />
  17340. <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
  17341. <ScalarProperty Name="ContentType" ColumnName="ContentType" />
  17342. </MappingFragment>
  17343. </EntityTypeMapping>
  17344. </EntitySetMapping>
  17345. <EntitySetMapping Name="CmFileCategory">
  17346. <EntityTypeMapping TypeName="iBemsModel.CmFileCategory">
  17347. <MappingFragment StoreEntitySet="CmFileCategory">
  17348. <ScalarProperty Name="FileCategoryId" ColumnName="FileCategoryId" />
  17349. <ScalarProperty Name="Name" ColumnName="Name" />
  17350. </MappingFragment>
  17351. </EntityTypeMapping>
  17352. </EntitySetMapping>
  17353. <EntitySetMapping Name="CmFloor">
  17354. <EntityTypeMapping TypeName="iBemsModel.CmFloor">
  17355. <MappingFragment StoreEntitySet="CmFloor">
  17356. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17357. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17358. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  17359. <ScalarProperty Name="Name" ColumnName="Name" />
  17360. </MappingFragment>
  17361. </EntityTypeMapping>
  17362. </EntitySetMapping>
  17363. <EntitySetMapping Name="CmHoliday">
  17364. <EntityTypeMapping TypeName="iBemsModel.CmHoliday">
  17365. <MappingFragment StoreEntitySet="CmHoliday">
  17366. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17367. <ScalarProperty Name="HolidayMonth" ColumnName="HolidayMonth" />
  17368. <ScalarProperty Name="HolidayDay" ColumnName="HolidayDay" />
  17369. <ScalarProperty Name="IsLunar" ColumnName="IsLunar" />
  17370. <ScalarProperty Name="Name" ColumnName="Name" />
  17371. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17372. </MappingFragment>
  17373. </EntityTypeMapping>
  17374. </EntitySetMapping>
  17375. <EntitySetMapping Name="CmHolidayCustom">
  17376. <EntityTypeMapping TypeName="iBemsModel.CmHolidayCustom">
  17377. <MappingFragment StoreEntitySet="CmHolidayCustom">
  17378. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17379. <ScalarProperty Name="HolidayDate" ColumnName="HolidayDate" />
  17380. <ScalarProperty Name="Name" ColumnName="Name" />
  17381. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17382. </MappingFragment>
  17383. </EntityTypeMapping>
  17384. </EntitySetMapping>
  17385. <EntitySetMapping Name="CmPosition">
  17386. <EntityTypeMapping TypeName="iBemsModel.CmPosition">
  17387. <MappingFragment StoreEntitySet="CmPosition">
  17388. <ScalarProperty Name="Position" ColumnName="Position" />
  17389. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17390. <ScalarProperty Name="PositionId" ColumnName="PositionId" />
  17391. <ScalarProperty Name="Name" ColumnName="Name" />
  17392. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17393. </MappingFragment>
  17394. </EntityTypeMapping>
  17395. </EntitySetMapping>
  17396. <EntitySetMapping Name="CmUser">
  17397. <EntityTypeMapping TypeName="iBemsModel.CmUser">
  17398. <MappingFragment StoreEntitySet="CmUser">
  17399. <ScalarProperty Name="Devicetoken" ColumnName="Devicetoken" />
  17400. <ScalarProperty Name="IsSI" ColumnName="IsSI" />
  17401. <ScalarProperty Name="IsMobile" ColumnName="IsMobile" />
  17402. <ScalarProperty Name="IsScheduleUser" ColumnName="IsScheduleUser" />
  17403. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17404. <ScalarProperty Name="UserId" ColumnName="UserId" />
  17405. <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
  17406. <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
  17407. <ScalarProperty Name="PositionId" ColumnName="PositionId" />
  17408. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17409. <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
  17410. <ScalarProperty Name="Name" ColumnName="Name" />
  17411. <ScalarProperty Name="Passwd" ColumnName="Passwd" />
  17412. <ScalarProperty Name="Birthday" ColumnName="Birthday" />
  17413. <ScalarProperty Name="Lunar" ColumnName="Lunar" />
  17414. <ScalarProperty Name="StateId" ColumnName="StateId" />
  17415. <ScalarProperty Name="EmploymentType" ColumnName="EmploymentType" />
  17416. <ScalarProperty Name="EmploymentStatus" ColumnName="EmploymentStatus" />
  17417. <ScalarProperty Name="OfficePhoneNo" ColumnName="OfficePhoneNo" />
  17418. <ScalarProperty Name="HomePhoneNo" ColumnName="HomePhoneNo" />
  17419. <ScalarProperty Name="MobilePhoneNo" ColumnName="MobilePhoneNo" />
  17420. <ScalarProperty Name="HomeZip1" ColumnName="HomeZip1" />
  17421. <ScalarProperty Name="HomeZip2" ColumnName="HomeZip2" />
  17422. <ScalarProperty Name="HomeAddress1" ColumnName="HomeAddress1" />
  17423. <ScalarProperty Name="HomeAdderss2" ColumnName="HomeAdderss2" />
  17424. <ScalarProperty Name="Email" ColumnName="Email" />
  17425. <ScalarProperty Name="EnterDate" ColumnName="EnterDate" />
  17426. <ScalarProperty Name="RetireDate" ColumnName="RetireDate" />
  17427. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17428. <ScalarProperty Name="Rfcsn" ColumnName="Rfcsn" />
  17429. <ScalarProperty Name="PasswordUpdatedDate" ColumnName="PasswordUpdatedDate" />
  17430. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17431. <ScalarProperty Name="IsBems" ColumnName="IsBems" />
  17432. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17433. <ScalarProperty Name="Certificated" ColumnName="Certificated" />
  17434. </MappingFragment>
  17435. </EntityTypeMapping>
  17436. </EntitySetMapping>
  17437. <EntitySetMapping Name="CmUserGroup">
  17438. <EntityTypeMapping TypeName="iBemsModel.CmUserGroup">
  17439. <MappingFragment StoreEntitySet="CmUserGroup">
  17440. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17441. <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
  17442. <ScalarProperty Name="Name" ColumnName="Name" />
  17443. </MappingFragment>
  17444. </EntityTypeMapping>
  17445. </EntitySetMapping>
  17446. <EntitySetMapping Name="CmUserGroupPermission">
  17447. <EntityTypeMapping TypeName="iBemsModel.CmUserGroupPermission">
  17448. <MappingFragment StoreEntitySet="CmUserGroupPermission">
  17449. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17450. <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
  17451. <ScalarProperty Name="MenuId" ColumnName="MenuId" />
  17452. <ScalarProperty Name="MenuPermission" ColumnName="MenuPermission" />
  17453. </MappingFragment>
  17454. </EntityTypeMapping>
  17455. </EntitySetMapping>
  17456. <EntitySetMapping Name="CmUserLoginHistory">
  17457. <EntityTypeMapping TypeName="iBemsModel.CmUserLoginHistory">
  17458. <MappingFragment StoreEntitySet="CmUserLoginHistory">
  17459. <ScalarProperty Name="LoginHistoryId" ColumnName="LoginHistoryId" />
  17460. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17461. <ScalarProperty Name="UserId" ColumnName="UserId" />
  17462. <ScalarProperty Name="Type" ColumnName="Type" />
  17463. <ScalarProperty Name="TraceTime" ColumnName="TraceTime" />
  17464. <ScalarProperty Name="IpAddress" ColumnName="IpAddress" />
  17465. </MappingFragment>
  17466. </EntityTypeMapping>
  17467. </EntitySetMapping>
  17468. <EntitySetMapping Name="CmUserToLicense">
  17469. <EntityTypeMapping TypeName="iBemsModel.CmUserToLicense">
  17470. <MappingFragment StoreEntitySet="CmUserToLicense">
  17471. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17472. <ScalarProperty Name="UserId" ColumnName="UserId" />
  17473. <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />
  17474. </MappingFragment>
  17475. </EntityTypeMapping>
  17476. </EntitySetMapping>
  17477. <EntitySetMapping Name="CmZone">
  17478. <EntityTypeMapping TypeName="iBemsModel.CmZone">
  17479. <MappingFragment StoreEntitySet="CmZone">
  17480. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17481. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17482. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  17483. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  17484. <ScalarProperty Name="Name" ColumnName="Name" />
  17485. <ScalarProperty Name="Target_temperature" ColumnName="Target_temperature" />
  17486. <ScalarProperty Name="Target_humidity" ColumnName="Target_humidity" />
  17487. </MappingFragment>
  17488. </EntityTypeMapping>
  17489. </EntitySetMapping>
  17490. <EntitySetMapping Name="CmZoneTempHumiSet">
  17491. <EntityTypeMapping TypeName="iBemsModel.CmZoneTempHumiSet">
  17492. <MappingFragment StoreEntitySet="CmZoneTempHumiSet">
  17493. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17494. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17495. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  17496. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  17497. <ScalarProperty Name="T1" ColumnName="T1" />
  17498. <ScalarProperty Name="T2" ColumnName="T2" />
  17499. <ScalarProperty Name="T3" ColumnName="T3" />
  17500. <ScalarProperty Name="T4" ColumnName="T4" />
  17501. <ScalarProperty Name="T5" ColumnName="T5" />
  17502. <ScalarProperty Name="T6" ColumnName="T6" />
  17503. <ScalarProperty Name="T7" ColumnName="T7" />
  17504. <ScalarProperty Name="T8" ColumnName="T8" />
  17505. <ScalarProperty Name="T9" ColumnName="T9" />
  17506. <ScalarProperty Name="T10" ColumnName="T10" />
  17507. <ScalarProperty Name="T11" ColumnName="T11" />
  17508. <ScalarProperty Name="T12" ColumnName="T12" />
  17509. <ScalarProperty Name="H1" ColumnName="H1" />
  17510. <ScalarProperty Name="H2" ColumnName="H2" />
  17511. <ScalarProperty Name="H3" ColumnName="H3" />
  17512. <ScalarProperty Name="H4" ColumnName="H4" />
  17513. <ScalarProperty Name="H5" ColumnName="H5" />
  17514. <ScalarProperty Name="H6" ColumnName="H6" />
  17515. <ScalarProperty Name="H7" ColumnName="H7" />
  17516. <ScalarProperty Name="H8" ColumnName="H8" />
  17517. <ScalarProperty Name="H9" ColumnName="H9" />
  17518. <ScalarProperty Name="H10" ColumnName="H10" />
  17519. <ScalarProperty Name="H11" ColumnName="H11" />
  17520. <ScalarProperty Name="H12" ColumnName="H12" />
  17521. </MappingFragment>
  17522. </EntityTypeMapping>
  17523. </EntitySetMapping>
  17524. <EntitySetMapping Name="FmsAccident">
  17525. <EntityTypeMapping TypeName="iBemsModel.FmsAccident">
  17526. <MappingFragment StoreEntitySet="FmsAccident">
  17527. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17528. <ScalarProperty Name="AccidentId" ColumnName="AccidentId" />
  17529. <ScalarProperty Name="Name" ColumnName="Name" />
  17530. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  17531. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  17532. <ScalarProperty Name="AccidentTypeId" ColumnName="AccidentTypeId" />
  17533. <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
  17534. <ScalarProperty Name="AccidentLocation" ColumnName="AccidentLocation" />
  17535. <ScalarProperty Name="Reason" ColumnName="Reason" />
  17536. <ScalarProperty Name="Action" ColumnName="Action" />
  17537. <ScalarProperty Name="Damage" ColumnName="Damage" />
  17538. <ScalarProperty Name="Measurement" ColumnName="Measurement" />
  17539. <ScalarProperty Name="FileId1" ColumnName="FileId1" />
  17540. <ScalarProperty Name="FileId2" ColumnName="FileId2" />
  17541. <ScalarProperty Name="FileId3" ColumnName="FileId3" />
  17542. <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
  17543. </MappingFragment>
  17544. </EntityTypeMapping>
  17545. </EntitySetMapping>
  17546. <EntitySetMapping Name="FmsAccidentCodeType">
  17547. <EntityTypeMapping TypeName="iBemsModel.FmsAccidentCodeType">
  17548. <MappingFragment StoreEntitySet="FmsAccidentCodeType">
  17549. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17550. <ScalarProperty Name="AccidentTypeId" ColumnName="AccidentTypeId" />
  17551. <ScalarProperty Name="Name" ColumnName="Name" />
  17552. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17553. </MappingFragment>
  17554. </EntityTypeMapping>
  17555. </EntitySetMapping>
  17556. <EntitySetMapping Name="FmsBudget">
  17557. <EntityTypeMapping TypeName="iBemsModel.FmsBudget">
  17558. <MappingFragment StoreEntitySet="FmsBudget">
  17559. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17560. <ScalarProperty Name="Year" ColumnName="Year" />
  17561. </MappingFragment>
  17562. </EntityTypeMapping>
  17563. </EntitySetMapping>
  17564. <EntitySetMapping Name="FmsBudgetCodeClass">
  17565. <EntityTypeMapping TypeName="iBemsModel.FmsBudgetCodeClass">
  17566. <MappingFragment StoreEntitySet="FmsBudgetCodeClass">
  17567. <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
  17568. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17569. <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
  17570. <ScalarProperty Name="BudgetSeq" ColumnName="BudgetSeq" />
  17571. <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
  17572. <ScalarProperty Name="Depth" ColumnName="Depth" />
  17573. <ScalarProperty Name="Name" ColumnName="Name" />
  17574. <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
  17575. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17576. <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
  17577. <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
  17578. </MappingFragment>
  17579. </EntityTypeMapping>
  17580. </EntitySetMapping>
  17581. <EntitySetMapping Name="FmsCompanyEstimationCodeClass">
  17582. <EntityTypeMapping TypeName="iBemsModel.FmsCompanyEstimationCodeClass">
  17583. <MappingFragment StoreEntitySet="FmsCompanyEstimationCodeClass">
  17584. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17585. <ScalarProperty Name="CompanyEstimationClassId" ColumnName="CompanyEstimationClassId" />
  17586. <ScalarProperty Name="Name" ColumnName="Name" />
  17587. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17588. </MappingFragment>
  17589. </EntityTypeMapping>
  17590. </EntitySetMapping>
  17591. <EntitySetMapping Name="FmsConstruction">
  17592. <EntityTypeMapping TypeName="iBemsModel.FmsConstruction">
  17593. <MappingFragment StoreEntitySet="FmsConstruction">
  17594. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17595. <ScalarProperty Name="ConstructionId" ColumnName="ConstructionId" />
  17596. <ScalarProperty Name="Name" ColumnName="Name" />
  17597. <ScalarProperty Name="ConstructionTypeId" ColumnName="ConstructionTypeId" />
  17598. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  17599. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  17600. <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
  17601. <ScalarProperty Name="ConstructLocation" ColumnName="ConstructLocation" />
  17602. <ScalarProperty Name="OwnerShipName" ColumnName="OwnerShipName" />
  17603. <ScalarProperty Name="CommitmentMan" ColumnName="CommitmentMan" />
  17604. <ScalarProperty Name="OwnerShipPhoneNo" ColumnName="OwnerShipPhoneNo" />
  17605. <ScalarProperty Name="WeldWorkStartTime" ColumnName="WeldWorkStartTime" />
  17606. <ScalarProperty Name="WeldWorkEndTime" ColumnName="WeldWorkEndTime" />
  17607. <ScalarProperty Name="GasWorkStartTime" ColumnName="GasWorkStartTime" />
  17608. <ScalarProperty Name="GasWorkEndTime" ColumnName="GasWorkEndTime" />
  17609. <ScalarProperty Name="PaintWorkStartTime" ColumnName="PaintWorkStartTime" />
  17610. <ScalarProperty Name="PaintWorkEndTime" ColumnName="PaintWorkEndTime" />
  17611. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17612. <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
  17613. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  17614. <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
  17615. <ScalarProperty Name="ConstructionDetail" ColumnName="ConstructionDetail" />
  17616. <ScalarProperty Name="InOutStockName" ColumnName="InOutStockName" />
  17617. <ScalarProperty Name="FileId1" ColumnName="FileId1" />
  17618. <ScalarProperty Name="FileId2" ColumnName="FileId2" />
  17619. <ScalarProperty Name="FileId3" ColumnName="FileId3" />
  17620. </MappingFragment>
  17621. </EntityTypeMapping>
  17622. </EntitySetMapping>
  17623. <EntitySetMapping Name="FmsConstructionCodeProgress">
  17624. <EntityTypeMapping TypeName="iBemsModel.FmsConstructionCodeProgress">
  17625. <MappingFragment StoreEntitySet="FmsConstructionCodeProgress">
  17626. <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
  17627. <ScalarProperty Name="Name" ColumnName="Name" />
  17628. <ScalarProperty Name="Description" ColumnName="Description" />
  17629. </MappingFragment>
  17630. </EntityTypeMapping>
  17631. </EntitySetMapping>
  17632. <EntitySetMapping Name="FmsConstructionCodeType">
  17633. <EntityTypeMapping TypeName="iBemsModel.FmsConstructionCodeType">
  17634. <MappingFragment StoreEntitySet="FmsConstructionCodeType">
  17635. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17636. <ScalarProperty Name="ConstructionTypeId" ColumnName="ConstructionTypeId" />
  17637. <ScalarProperty Name="Name" ColumnName="Name" />
  17638. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17639. </MappingFragment>
  17640. </EntityTypeMapping>
  17641. </EntitySetMapping>
  17642. <EntitySetMapping Name="FmsConstructionEstimation">
  17643. <EntityTypeMapping TypeName="iBemsModel.FmsConstructionEstimation">
  17644. <MappingFragment StoreEntitySet="FmsConstructionEstimation">
  17645. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17646. <ScalarProperty Name="ConstructionId" ColumnName="ConstructionId" />
  17647. <ScalarProperty Name="EstimateDate" ColumnName="EstimateDate" />
  17648. <ScalarProperty Name="EstimateUserId" ColumnName="EstimateUserId" />
  17649. <ScalarProperty Name="Safety01_CleanUp" ColumnName="Safety01_CleanUp" />
  17650. <ScalarProperty Name="Safety02_PersonalProtection" ColumnName="Safety02_PersonalProtection" />
  17651. <ScalarProperty Name="Safety03_FireExtinguisher" ColumnName="Safety03_FireExtinguisher" />
  17652. <ScalarProperty Name="Safety04_HighPlaceWork" ColumnName="Safety04_HighPlaceWork" />
  17653. <ScalarProperty Name="Safety05_Weld" ColumnName="Safety05_Weld" />
  17654. <ScalarProperty Name="Safety06_SurroundingCleanUp" ColumnName="Safety06_SurroundingCleanUp" />
  17655. <ScalarProperty Name="Safety07_SurroundingHealthy" ColumnName="Safety07_SurroundingHealthy" />
  17656. <ScalarProperty Name="Safety08_Noise" ColumnName="Safety08_Noise" />
  17657. <ScalarProperty Name="Safety09_FacilityProtection" ColumnName="Safety09_FacilityProtection" />
  17658. <ScalarProperty Name="Safety10_Waste" ColumnName="Safety10_Waste" />
  17659. <ScalarProperty Name="Safety11_Execution" ColumnName="Safety11_Execution" />
  17660. <ScalarProperty Name="Safety12_Announcement" ColumnName="Safety12_Announcement" />
  17661. <ScalarProperty Name="Ability01_Compliance" ColumnName="Ability01_Compliance" />
  17662. <ScalarProperty Name="Ability02_Fault" ColumnName="Ability02_Fault" />
  17663. <ScalarProperty Name="Ability03_SkillLevel" ColumnName="Ability03_SkillLevel" />
  17664. <ScalarProperty Name="Ability04_ProcessManagement" ColumnName="Ability04_ProcessManagement" />
  17665. <ScalarProperty Name="Ability05_Collaboration" ColumnName="Ability05_Collaboration" />
  17666. <ScalarProperty Name="Service01_Compliance" ColumnName="Service01_Compliance" />
  17667. <ScalarProperty Name="Service02_SkillLevel" ColumnName="Service02_SkillLevel" />
  17668. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17669. <ScalarProperty Name="TotalEstimateScore" ColumnName="TotalEstimateScore" />
  17670. <ScalarProperty Name="SafetyScore" ColumnName="SafetyScore" />
  17671. <ScalarProperty Name="AbilityScore" ColumnName="AbilityScore" />
  17672. <ScalarProperty Name="ServiceScore" ColumnName="ServiceScore" />
  17673. </MappingFragment>
  17674. </EntityTypeMapping>
  17675. </EntitySetMapping>
  17676. <EntitySetMapping Name="FmsContractClass">
  17677. <EntityTypeMapping TypeName="iBemsModel.FmsContractClass">
  17678. <MappingFragment StoreEntitySet="FmsContractClass">
  17679. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17680. <ScalarProperty Name="ContractClassId" ColumnName="ContractClassId" />
  17681. <ScalarProperty Name="Name" ColumnName="Name" />
  17682. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17683. </MappingFragment>
  17684. </EntityTypeMapping>
  17685. </EntitySetMapping>
  17686. <EntitySetMapping Name="FmsContractMethod">
  17687. <EntityTypeMapping TypeName="iBemsModel.FmsContractMethod">
  17688. <MappingFragment StoreEntitySet="FmsContractMethod">
  17689. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17690. <ScalarProperty Name="ContractMethodId" ColumnName="ContractMethodId" />
  17691. <ScalarProperty Name="Name" ColumnName="Name" />
  17692. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17693. </MappingFragment>
  17694. </EntityTypeMapping>
  17695. </EntitySetMapping>
  17696. <EntitySetMapping Name="FmsContractType">
  17697. <EntityTypeMapping TypeName="iBemsModel.FmsContractType">
  17698. <MappingFragment StoreEntitySet="FmsContractType">
  17699. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17700. <ScalarProperty Name="ContractTypeId" ColumnName="ContractTypeId" />
  17701. <ScalarProperty Name="Name" ColumnName="Name" />
  17702. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17703. </MappingFragment>
  17704. </EntityTypeMapping>
  17705. </EntitySetMapping>
  17706. <EntitySetMapping Name="FmsDrawing">
  17707. <EntityTypeMapping TypeName="iBemsModel.FmsDrawing">
  17708. <MappingFragment StoreEntitySet="FmsDrawing">
  17709. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17710. <ScalarProperty Name="DrawingId" ColumnName="DrawingId" />
  17711. <ScalarProperty Name="DrawingNo" ColumnName="DrawingNo" />
  17712. <ScalarProperty Name="DrawingGroupId" ColumnName="DrawingGroupId" />
  17713. <ScalarProperty Name="DrawingTypeId" ColumnName="DrawingTypeId" />
  17714. <ScalarProperty Name="Name" ColumnName="Name" />
  17715. <ScalarProperty Name="Description" ColumnName="Description" />
  17716. </MappingFragment>
  17717. </EntityTypeMapping>
  17718. </EntitySetMapping>
  17719. <EntitySetMapping Name="FmsDrawingCodeGroup">
  17720. <EntityTypeMapping TypeName="iBemsModel.FmsDrawingCodeGroup">
  17721. <MappingFragment StoreEntitySet="FmsDrawingCodeGroup">
  17722. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17723. <ScalarProperty Name="DrawingGroupId" ColumnName="DrawingGroupId" />
  17724. <ScalarProperty Name="Name" ColumnName="Name" />
  17725. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17726. </MappingFragment>
  17727. </EntityTypeMapping>
  17728. </EntitySetMapping>
  17729. <EntitySetMapping Name="FmsDrawingCodeType">
  17730. <EntityTypeMapping TypeName="iBemsModel.FmsDrawingCodeType">
  17731. <MappingFragment StoreEntitySet="FmsDrawingCodeType">
  17732. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17733. <ScalarProperty Name="DrawingTypeId" ColumnName="DrawingTypeId" />
  17734. <ScalarProperty Name="Name" ColumnName="Name" />
  17735. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17736. </MappingFragment>
  17737. </EntityTypeMapping>
  17738. </EntitySetMapping>
  17739. <EntitySetMapping Name="FmsDrawingHistory">
  17740. <EntityTypeMapping TypeName="iBemsModel.FmsDrawingHistory">
  17741. <MappingFragment StoreEntitySet="FmsDrawingHistory">
  17742. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17743. <ScalarProperty Name="DrawingId" ColumnName="DrawingId" />
  17744. <ScalarProperty Name="HistoryId" ColumnName="HistoryId" />
  17745. <ScalarProperty Name="RevisionNo" ColumnName="RevisionNo" />
  17746. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17747. <ScalarProperty Name="Description" ColumnName="Description" />
  17748. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  17749. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  17750. </MappingFragment>
  17751. </EntityTypeMapping>
  17752. </EntitySetMapping>
  17753. <EntitySetMapping Name="FmsEquipmentCodeStateType">
  17754. <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentCodeStateType">
  17755. <MappingFragment StoreEntitySet="FmsEquipmentCodeStateType">
  17756. <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
  17757. <ScalarProperty Name="Name" ColumnName="Name" />
  17758. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17759. </MappingFragment>
  17760. </EntityTypeMapping>
  17761. </EntitySetMapping>
  17762. <EntitySetMapping Name="FmsEquipmentCodeType">
  17763. <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentCodeType">
  17764. <MappingFragment StoreEntitySet="FmsEquipmentCodeType">
  17765. <ScalarProperty Name="Description" ColumnName="Description" />
  17766. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17767. <ScalarProperty Name="EquipmentTypeId" ColumnName="EquipmentTypeId" />
  17768. <ScalarProperty Name="Name" ColumnName="Name" />
  17769. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17770. </MappingFragment>
  17771. </EntityTypeMapping>
  17772. </EntitySetMapping>
  17773. <EntitySetMapping Name="FmsEquipmentHistory">
  17774. <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentHistory">
  17775. <MappingFragment StoreEntitySet="FmsEquipmentHistory">
  17776. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17777. <ScalarProperty Name="EquipmentHistoryId" ColumnName="EquipmentHistoryId" />
  17778. <ScalarProperty Name="EquipmentId" ColumnName="EquipmentId" />
  17779. <ScalarProperty Name="TotalStockCount" ColumnName="TotalStockCount" />
  17780. <ScalarProperty Name="CurrentStockCount" ColumnName="CurrentStockCount" />
  17781. <ScalarProperty Name="RentCount" ColumnName="RentCount" />
  17782. <ScalarProperty Name="CurrentRentCount" ColumnName="CurrentRentCount" />
  17783. <ScalarProperty Name="ReturnCount" ColumnName="ReturnCount" />
  17784. <ScalarProperty Name="LossCount" ColumnName="LossCount" />
  17785. <ScalarProperty Name="StoredCount" ColumnName="StoredCount" />
  17786. <ScalarProperty Name="EquipmentRentId" ColumnName="EquipmentRentId" />
  17787. <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
  17788. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  17789. <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
  17790. <ScalarProperty Name="IsReturned" ColumnName="IsReturned" />
  17791. </MappingFragment>
  17792. </EntityTypeMapping>
  17793. </EntitySetMapping>
  17794. <EntitySetMapping Name="FmsFacilityCheckItem">
  17795. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityCheckItem">
  17796. <MappingFragment StoreEntitySet="FmsFacilityCheckItem">
  17797. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17798. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17799. <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
  17800. <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
  17801. <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
  17802. <ScalarProperty Name="Name" ColumnName="Name" />
  17803. <ScalarProperty Name="IsYesNoResult" ColumnName="IsYesNoResult" />
  17804. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17805. </MappingFragment>
  17806. </EntityTypeMapping>
  17807. </EntitySetMapping>
  17808. <EntitySetMapping Name="FmsFacilityCodeClass">
  17809. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityCodeClass">
  17810. <MappingFragment StoreEntitySet="FmsFacilityCodeClass">
  17811. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17812. <ScalarProperty Name="FacilityClassId" ColumnName="FacilityClassId" />
  17813. <ScalarProperty Name="ParentFacilityClassId" ColumnName="ParentFacilityClassId" />
  17814. <ScalarProperty Name="Depth" ColumnName="Depth" />
  17815. <ScalarProperty Name="Name" ColumnName="Name" />
  17816. <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
  17817. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17818. </MappingFragment>
  17819. </EntityTypeMapping>
  17820. </EntitySetMapping>
  17821. <EntitySetMapping Name="FmsFacilityManual">
  17822. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityManual">
  17823. <MappingFragment StoreEntitySet="FmsFacilityManual">
  17824. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17825. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17826. <ScalarProperty Name="ManualId" ColumnName="ManualId" />
  17827. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17828. <ScalarProperty Name="Name" ColumnName="Name" />
  17829. <ScalarProperty Name="Description" ColumnName="Description" />
  17830. <ScalarProperty Name="Keyword" ColumnName="Keyword" />
  17831. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17832. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17833. </MappingFragment>
  17834. </EntityTypeMapping>
  17835. </EntitySetMapping>
  17836. <EntitySetMapping Name="FmsFacilityOperationItem">
  17837. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityOperationItem">
  17838. <MappingFragment StoreEntitySet="FmsFacilityOperationItem">
  17839. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17840. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17841. <ScalarProperty Name="ItemId" ColumnName="ItemId" />
  17842. <ScalarProperty Name="Name" ColumnName="Name" />
  17843. <ScalarProperty Name="ResultUnit" ColumnName="ResultUnit" />
  17844. <ScalarProperty Name="PointId" ColumnName="PointId" />
  17845. <ScalarProperty Name="SystemId" ColumnName="SystemId" />
  17846. <ScalarProperty Name="EnergyCode" ColumnName="EnergyCode" />
  17847. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17848. <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
  17849. <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
  17850. <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
  17851. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  17852. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  17853. </MappingFragment>
  17854. </EntityTypeMapping>
  17855. </EntitySetMapping>
  17856. <EntitySetMapping Name="FmsLicense">
  17857. <EntityTypeMapping TypeName="iBemsModel.FmsLicense">
  17858. <MappingFragment StoreEntitySet="FmsLicense">
  17859. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17860. <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />
  17861. <ScalarProperty Name="Name" ColumnName="Name" />
  17862. <ScalarProperty Name="IssuingOffice" ColumnName="IssuingOffice" />
  17863. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17864. <ScalarProperty Name="EducationalInstitute" ColumnName="EducationalInstitute" />
  17865. <ScalarProperty Name="Note" ColumnName="Note" />
  17866. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17867. </MappingFragment>
  17868. </EntityTypeMapping>
  17869. </EntitySetMapping>
  17870. <EntitySetMapping Name="FmsManual">
  17871. <EntityTypeMapping TypeName="iBemsModel.FmsManual">
  17872. <MappingFragment StoreEntitySet="FmsManual">
  17873. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17874. <ScalarProperty Name="ManualId" ColumnName="ManualId" />
  17875. <ScalarProperty Name="ManualNo" ColumnName="ManualNo" />
  17876. <ScalarProperty Name="ManualTypeId" ColumnName="ManualTypeId" />
  17877. <ScalarProperty Name="Name" ColumnName="Name" />
  17878. <ScalarProperty Name="Description" ColumnName="Description" />
  17879. </MappingFragment>
  17880. </EntityTypeMapping>
  17881. </EntitySetMapping>
  17882. <EntitySetMapping Name="FmsManualHistory">
  17883. <EntityTypeMapping TypeName="iBemsModel.FmsManualHistory">
  17884. <MappingFragment StoreEntitySet="FmsManualHistory">
  17885. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17886. <ScalarProperty Name="ManualId" ColumnName="ManualId" />
  17887. <ScalarProperty Name="HistoryId" ColumnName="HistoryId" />
  17888. <ScalarProperty Name="RevisionNo" ColumnName="RevisionNo" />
  17889. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17890. <ScalarProperty Name="Description" ColumnName="Description" />
  17891. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  17892. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  17893. </MappingFragment>
  17894. </EntityTypeMapping>
  17895. </EntitySetMapping>
  17896. <EntitySetMapping Name="FmsManualType">
  17897. <EntityTypeMapping TypeName="iBemsModel.FmsManualType">
  17898. <MappingFragment StoreEntitySet="FmsManualType">
  17899. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17900. <ScalarProperty Name="ManualTypeId" ColumnName="ManualTypeId" />
  17901. <ScalarProperty Name="Name" ColumnName="Name" />
  17902. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17903. </MappingFragment>
  17904. </EntityTypeMapping>
  17905. </EntitySetMapping>
  17906. <EntitySetMapping Name="FmsMaterialCarriedForward">
  17907. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCarriedForward">
  17908. <MappingFragment StoreEntitySet="FmsMaterialCarriedForward">
  17909. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17910. <ScalarProperty Name="ClosedDate" ColumnName="ClosedDate" />
  17911. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17912. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  17913. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  17914. <ScalarProperty Name="StockCount" ColumnName="StockCount" />
  17915. <ScalarProperty Name="StockTotalCost" ColumnName="StockTotalCost" />
  17916. </MappingFragment>
  17917. </EntityTypeMapping>
  17918. </EntitySetMapping>
  17919. <EntitySetMapping Name="FmsMaterialCodeAdjustmentType">
  17920. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeAdjustmentType">
  17921. <MappingFragment StoreEntitySet="FmsMaterialCodeAdjustmentType">
  17922. <ScalarProperty Name="AdjustmentTypeId" ColumnName="AdjustmentTypeId" />
  17923. <ScalarProperty Name="Name" ColumnName="Name" />
  17924. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17925. </MappingFragment>
  17926. </EntityTypeMapping>
  17927. </EntitySetMapping>
  17928. <EntitySetMapping Name="FmsMaterialCodeClass">
  17929. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeClass">
  17930. <MappingFragment StoreEntitySet="FmsMaterialCodeClass">
  17931. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17932. <ScalarProperty Name="MaterialClassId" ColumnName="MaterialClassId" />
  17933. <ScalarProperty Name="ParentMaterialClassId" ColumnName="ParentMaterialClassId" />
  17934. <ScalarProperty Name="Depth" ColumnName="Depth" />
  17935. <ScalarProperty Name="Name" ColumnName="Name" />
  17936. <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
  17937. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17938. </MappingFragment>
  17939. </EntityTypeMapping>
  17940. </EntitySetMapping>
  17941. <EntitySetMapping Name="FmsMaterialCodeLocation">
  17942. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeLocation">
  17943. <MappingFragment StoreEntitySet="FmsMaterialCodeLocation">
  17944. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17945. <ScalarProperty Name="LocationId" ColumnName="LocationId" />
  17946. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17947. <ScalarProperty Name="Name" ColumnName="Name" />
  17948. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17949. </MappingFragment>
  17950. </EntityTypeMapping>
  17951. </EntitySetMapping>
  17952. <EntitySetMapping Name="FmsMaterialCodeProgress">
  17953. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeProgress">
  17954. <MappingFragment StoreEntitySet="FmsMaterialCodeProgress">
  17955. <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
  17956. <ScalarProperty Name="Name" ColumnName="Name" />
  17957. <ScalarProperty Name="Description" ColumnName="Description" />
  17958. </MappingFragment>
  17959. </EntityTypeMapping>
  17960. </EntitySetMapping>
  17961. <EntitySetMapping Name="FmsMaterialCodePurchaseType">
  17962. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodePurchaseType">
  17963. <MappingFragment StoreEntitySet="FmsMaterialCodePurchaseType">
  17964. <ScalarProperty Name="PurchaseTypeId" ColumnName="PurchaseTypeId" />
  17965. <ScalarProperty Name="Name" ColumnName="Name" />
  17966. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17967. </MappingFragment>
  17968. </EntityTypeMapping>
  17969. </EntitySetMapping>
  17970. <EntitySetMapping Name="FmsMaterialCodeReleaseType">
  17971. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeReleaseType">
  17972. <MappingFragment StoreEntitySet="FmsMaterialCodeReleaseType">
  17973. <ScalarProperty Name="ReleaseTypeId" ColumnName="ReleaseTypeId" />
  17974. <ScalarProperty Name="Name" ColumnName="Name" />
  17975. <ScalarProperty Name="Description" ColumnName="Description" />
  17976. </MappingFragment>
  17977. </EntityTypeMapping>
  17978. </EntitySetMapping>
  17979. <EntitySetMapping Name="FmsMaterialCodeType">
  17980. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeType">
  17981. <MappingFragment StoreEntitySet="FmsMaterialCodeType">
  17982. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17983. <ScalarProperty Name="MaterialTypeId" ColumnName="MaterialTypeId" />
  17984. <ScalarProperty Name="Name" ColumnName="Name" />
  17985. <ScalarProperty Name="Nickname" ColumnName="Nickname" />
  17986. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17987. </MappingFragment>
  17988. </EntityTypeMapping>
  17989. </EntitySetMapping>
  17990. <EntitySetMapping Name="FmsMaterialPurchaseOrder">
  17991. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseOrder">
  17992. <MappingFragment StoreEntitySet="FmsMaterialPurchaseOrder">
  17993. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17994. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17995. <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
  17996. <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
  17997. <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
  17998. <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
  17999. <ScalarProperty Name="OrderUserId" ColumnName="OrderUserId" />
  18000. <ScalarProperty Name="Title" ColumnName="Title" />
  18001. <ScalarProperty Name="Reason" ColumnName="Reason" />
  18002. <ScalarProperty Name="StoredDueDate" ColumnName="StoredDueDate" />
  18003. <ScalarProperty Name="FileId" ColumnName="FileId" />
  18004. </MappingFragment>
  18005. </EntityTypeMapping>
  18006. </EntitySetMapping>
  18007. <EntitySetMapping Name="FmsMaterialPurchaseOrderMaterial">
  18008. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseOrderMaterial">
  18009. <MappingFragment StoreEntitySet="FmsMaterialPurchaseOrderMaterial">
  18010. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18011. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18012. <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
  18013. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18014. <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
  18015. <ScalarProperty Name="UnitCost" ColumnName="UnitCost" />
  18016. </MappingFragment>
  18017. </EntityTypeMapping>
  18018. </EntitySetMapping>
  18019. <EntitySetMapping Name="FmsMaterialPurchaseRequest">
  18020. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseRequest">
  18021. <MappingFragment StoreEntitySet="FmsMaterialPurchaseRequest">
  18022. <ScalarProperty Name="bSameOrder" ColumnName="bSameOrder" />
  18023. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18024. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18025. <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
  18026. <ScalarProperty Name="PurchaseTypeId" ColumnName="PurchaseTypeId" />
  18027. <ScalarProperty Name="RequestDate" ColumnName="RequestDate" />
  18028. <ScalarProperty Name="RequestUserId" ColumnName="RequestUserId" />
  18029. <ScalarProperty Name="PurchaseHopeDate" ColumnName="PurchaseHopeDate" />
  18030. <ScalarProperty Name="Title" ColumnName="Title" />
  18031. <ScalarProperty Name="Reason" ColumnName="Reason" />
  18032. <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
  18033. <ScalarProperty Name="ApprovalDate" ColumnName="ApprovalDate" />
  18034. <ScalarProperty Name="ApprovalUserId" ColumnName="ApprovalUserId" />
  18035. </MappingFragment>
  18036. </EntityTypeMapping>
  18037. </EntitySetMapping>
  18038. <EntitySetMapping Name="FmsMaterialPurchaseRequestMaterial">
  18039. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseRequestMaterial">
  18040. <MappingFragment StoreEntitySet="FmsMaterialPurchaseRequestMaterial">
  18041. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18042. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18043. <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
  18044. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18045. <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
  18046. </MappingFragment>
  18047. </EntityTypeMapping>
  18048. </EntitySetMapping>
  18049. <EntitySetMapping Name="FmsMaterialStored">
  18050. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialStored">
  18051. <MappingFragment StoreEntitySet="FmsMaterialStored">
  18052. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18053. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18054. <ScalarProperty Name="StoredDate" ColumnName="StoredDate" />
  18055. <ScalarProperty Name="MaterialStoredId" ColumnName="MaterialStoredId" />
  18056. <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
  18057. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  18058. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18059. <ScalarProperty Name="StoredCount" ColumnName="StoredCount" />
  18060. <ScalarProperty Name="RemainStoredCount" ColumnName="RemainStoredCount" />
  18061. <ScalarProperty Name="UnitCost" ColumnName="UnitCost" />
  18062. <ScalarProperty Name="StockCount" ColumnName="StockCount" />
  18063. <ScalarProperty Name="Note" ColumnName="Note" />
  18064. <ScalarProperty Name="StoredUserId" ColumnName="StoredUserId" />
  18065. <ScalarProperty Name="ApprovalDate" ColumnName="ApprovalDate" />
  18066. <ScalarProperty Name="ApprovalUserId" ColumnName="ApprovalUserId" />
  18067. <ScalarProperty Name="IsApproval" ColumnName="IsApproval" />
  18068. <ScalarProperty Name="LocationInWarehouse" ColumnName="LocationInWarehouse" />
  18069. </MappingFragment>
  18070. </EntityTypeMapping>
  18071. </EntitySetMapping>
  18072. <EntitySetMapping Name="FmsMaterialTradeCompany">
  18073. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialTradeCompany">
  18074. <MappingFragment StoreEntitySet="FmsMaterialTradeCompany">
  18075. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18076. <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
  18077. <ScalarProperty Name="Name" ColumnName="Name" />
  18078. <ScalarProperty Name="RegistrationNo" ColumnName="RegistrationNo" />
  18079. <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
  18080. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  18081. <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
  18082. <ScalarProperty Name="SalesName" ColumnName="SalesName" />
  18083. <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
  18084. <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
  18085. <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
  18086. <ScalarProperty Name="Address1" ColumnName="Address1" />
  18087. <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
  18088. <ScalarProperty Name="HomepageUri" ColumnName="HomepageUri" />
  18089. <ScalarProperty Name="Note" ColumnName="Note" />
  18090. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18091. </MappingFragment>
  18092. </EntityTypeMapping>
  18093. </EntitySetMapping>
  18094. <EntitySetMapping Name="FmsMaterialWarehouse">
  18095. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialWarehouse">
  18096. <MappingFragment StoreEntitySet="FmsMaterialWarehouse">
  18097. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18098. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18099. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  18100. <ScalarProperty Name="Name" ColumnName="Name" />
  18101. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18102. </MappingFragment>
  18103. </EntityTypeMapping>
  18104. </EntitySetMapping>
  18105. <EntitySetMapping Name="FmsPaymentType">
  18106. <EntityTypeMapping TypeName="iBemsModel.FmsPaymentType">
  18107. <MappingFragment StoreEntitySet="FmsPaymentType">
  18108. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18109. <ScalarProperty Name="PaymentTypeId" ColumnName="PaymentTypeId" />
  18110. <ScalarProperty Name="Name" ColumnName="Name" />
  18111. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18112. </MappingFragment>
  18113. </EntityTypeMapping>
  18114. </EntitySetMapping>
  18115. <EntitySetMapping Name="FmsWorkCodeCauseClass">
  18116. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeCauseClass">
  18117. <MappingFragment StoreEntitySet="FmsWorkCodeCauseClass">
  18118. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18119. <ScalarProperty Name="CauseClassId" ColumnName="CauseClassId" />
  18120. <ScalarProperty Name="ParentId" ColumnName="ParentId" />
  18121. <ScalarProperty Name="Name" ColumnName="Name" />
  18122. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18123. </MappingFragment>
  18124. </EntityTypeMapping>
  18125. </EntitySetMapping>
  18126. <EntitySetMapping Name="FmsWorkCodeCycleUnit">
  18127. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeCycleUnit">
  18128. <MappingFragment StoreEntitySet="FmsWorkCodeCycleUnit">
  18129. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18130. <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
  18131. <ScalarProperty Name="Name" ColumnName="Name" />
  18132. <ScalarProperty Name="Description" ColumnName="Description" />
  18133. </MappingFragment>
  18134. </EntityTypeMapping>
  18135. </EntitySetMapping>
  18136. <EntitySetMapping Name="FmsWorkCodeEmergency">
  18137. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeEmergency">
  18138. <MappingFragment StoreEntitySet="FmsWorkCodeEmergency">
  18139. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18140. <ScalarProperty Name="EmergencyId" ColumnName="EmergencyId" />
  18141. <ScalarProperty Name="Name" ColumnName="Name" />
  18142. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18143. </MappingFragment>
  18144. </EntityTypeMapping>
  18145. </EntitySetMapping>
  18146. <EntitySetMapping Name="FmsWorkCodeHolidayWorkType">
  18147. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeHolidayWorkType">
  18148. <MappingFragment StoreEntitySet="FmsWorkCodeHolidayWorkType">
  18149. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18150. <ScalarProperty Name="HolidayWorkTypeId" ColumnName="HolidayWorkTypeId" />
  18151. <ScalarProperty Name="Name" ColumnName="Name" />
  18152. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18153. </MappingFragment>
  18154. </EntityTypeMapping>
  18155. </EntitySetMapping>
  18156. <EntitySetMapping Name="FmsWorkCodeLegalInspectionAgency">
  18157. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeLegalInspectionAgency">
  18158. <MappingFragment StoreEntitySet="FmsWorkCodeLegalInspectionAgency">
  18159. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18160. <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
  18161. <ScalarProperty Name="Name" ColumnName="Name" />
  18162. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18163. </MappingFragment>
  18164. </EntityTypeMapping>
  18165. </EntitySetMapping>
  18166. <EntitySetMapping Name="FmsWorkCodeProgress">
  18167. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeProgress">
  18168. <MappingFragment StoreEntitySet="FmsWorkCodeProgress">
  18169. <ScalarProperty Name="WorkProgressId" ColumnName="WorkProgressId" />
  18170. <ScalarProperty Name="Name" ColumnName="Name" />
  18171. <ScalarProperty Name="Description" ColumnName="Description" />
  18172. </MappingFragment>
  18173. </EntityTypeMapping>
  18174. </EntitySetMapping>
  18175. <EntitySetMapping Name="FmsWorkCodeType">
  18176. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeType">
  18177. <MappingFragment StoreEntitySet="FmsWorkCodeType">
  18178. <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
  18179. <ScalarProperty Name="Name" ColumnName="Name" />
  18180. <ScalarProperty Name="Description" ColumnName="Description" />
  18181. </MappingFragment>
  18182. </EntityTypeMapping>
  18183. </EntitySetMapping>
  18184. <EntitySetMapping Name="FmsWorkOrder">
  18185. <EntityTypeMapping TypeName="iBemsModel.FmsWorkOrder">
  18186. <MappingFragment StoreEntitySet="FmsWorkOrder">
  18187. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18188. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18189. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18190. <ScalarProperty Name="EmergencyId" ColumnName="EmergencyId" />
  18191. <ScalarProperty Name="OrderUserId" ColumnName="OrderUserId" />
  18192. <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
  18193. <ScalarProperty Name="StartWorkDate" ColumnName="StartWorkDate" />
  18194. <ScalarProperty Name="Title" ColumnName="Title" />
  18195. <ScalarProperty Name="Content" ColumnName="Content" />
  18196. </MappingFragment>
  18197. </EntityTypeMapping>
  18198. </EntitySetMapping>
  18199. <EntitySetMapping Name="FmsWorkOrderToFacility">
  18200. <EntityTypeMapping TypeName="iBemsModel.FmsWorkOrderToFacility">
  18201. <MappingFragment StoreEntitySet="FmsWorkOrderToFacility">
  18202. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18203. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18204. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18205. </MappingFragment>
  18206. </EntityTypeMapping>
  18207. </EntitySetMapping>
  18208. <EntitySetMapping Name="FmsWorkRequest">
  18209. <EntityTypeMapping TypeName="iBemsModel.FmsWorkRequest">
  18210. <MappingFragment StoreEntitySet="FmsWorkRequest">
  18211. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18212. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18213. <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
  18214. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18215. <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
  18216. <ScalarProperty Name="WorkProgressId" ColumnName="WorkProgressId" />
  18217. <ScalarProperty Name="Title" ColumnName="Title" />
  18218. <ScalarProperty Name="Content" ColumnName="Content" />
  18219. <ScalarProperty Name="RequestUserId" ColumnName="RequestUserId" />
  18220. <ScalarProperty Name="RequestDate" ColumnName="RequestDate" />
  18221. <ScalarProperty Name="StartWorkDate" ColumnName="StartWorkDate" />
  18222. <ScalarProperty Name="RejectUserId" ColumnName="RejectUserId" />
  18223. <ScalarProperty Name="RejectDate" ColumnName="RejectDate" />
  18224. <ScalarProperty Name="RejectReason" ColumnName="RejectReason" />
  18225. <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
  18226. </MappingFragment>
  18227. </EntityTypeMapping>
  18228. </EntitySetMapping>
  18229. <EntitySetMapping Name="FmsWorkRequestToFacility">
  18230. <EntityTypeMapping TypeName="iBemsModel.FmsWorkRequestToFacility">
  18231. <MappingFragment StoreEntitySet="FmsWorkRequestToFacility">
  18232. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18233. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18234. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18235. </MappingFragment>
  18236. </EntityTypeMapping>
  18237. </EntitySetMapping>
  18238. <EntitySetMapping Name="FmsWorkResult">
  18239. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResult">
  18240. <MappingFragment StoreEntitySet="FmsWorkResult">
  18241. <ScalarProperty Name="ConfirmDesc" ColumnName="ConfirmDesc" />
  18242. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18243. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18244. <ScalarProperty Name="WorkerUserId" ColumnName="WorkerUserId" />
  18245. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  18246. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  18247. <ScalarProperty Name="CauseClassId" ColumnName="CauseClassId" />
  18248. <ScalarProperty Name="Content" ColumnName="Content" />
  18249. <ScalarProperty Name="ConfirmedDate" ColumnName="ConfirmedDate" />
  18250. <ScalarProperty Name="ConfirmedUserId" ColumnName="ConfirmedUserId" />
  18251. <ScalarProperty Name="IsConfirmed" ColumnName="IsConfirmed" />
  18252. </MappingFragment>
  18253. </EntityTypeMapping>
  18254. </EntitySetMapping>
  18255. <EntitySetMapping Name="FmsWorkResultCheckItem">
  18256. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultCheckItem">
  18257. <MappingFragment StoreEntitySet="FmsWorkResultCheckItem">
  18258. <ScalarProperty Name="FileId2" ColumnName="FileId2" />
  18259. <ScalarProperty Name="FileId1" ColumnName="FileId1" />
  18260. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18261. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18262. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18263. <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
  18264. <ScalarProperty Name="BoolResult" ColumnName="BoolResult" />
  18265. <ScalarProperty Name="TextResult" ColumnName="TextResult" />
  18266. <ScalarProperty Name="CheckDate" ColumnName="CheckDate" />
  18267. </MappingFragment>
  18268. </EntityTypeMapping>
  18269. </EntitySetMapping>
  18270. <EntitySetMapping Name="FmsWorkResultCheckItemMaterial">
  18271. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultCheckItemMaterial">
  18272. <MappingFragment StoreEntitySet="FmsWorkResultCheckItemMaterial">
  18273. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18274. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18275. <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
  18276. <ScalarProperty Name="CheckItemMaterialId" ColumnName="CheckItemMaterialId" />
  18277. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18278. <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
  18279. <ScalarProperty Name="MaterialCode" ColumnName="MaterialCode" />
  18280. <ScalarProperty Name="Name" ColumnName="Name" />
  18281. </MappingFragment>
  18282. </EntityTypeMapping>
  18283. </EntitySetMapping>
  18284. <EntitySetMapping Name="FmsWorkResultFile">
  18285. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultFile">
  18286. <MappingFragment StoreEntitySet="FmsWorkResultFile">
  18287. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18288. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18289. <ScalarProperty Name="FileId" ColumnName="FileId" />
  18290. </MappingFragment>
  18291. </EntityTypeMapping>
  18292. </EntitySetMapping>
  18293. <EntitySetMapping Name="FmsWorkResultLaw">
  18294. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultLaw">
  18295. <MappingFragment StoreEntitySet="FmsWorkResultLaw">
  18296. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18297. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18298. <ScalarProperty Name="CertificationNo" ColumnName="CertificationNo" />
  18299. <ScalarProperty Name="CheckCommission" ColumnName="CheckCommission" />
  18300. <ScalarProperty Name="CheckResult" ColumnName="CheckResult" />
  18301. </MappingFragment>
  18302. </EntityTypeMapping>
  18303. </EntitySetMapping>
  18304. <EntitySetMapping Name="FmsWorkResultToFacility">
  18305. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultToFacility">
  18306. <MappingFragment StoreEntitySet="FmsWorkResultToFacility">
  18307. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18308. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18309. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18310. </MappingFragment>
  18311. </EntityTypeMapping>
  18312. </EntitySetMapping>
  18313. <EntitySetMapping Name="FmsWorkScheduleToFacility">
  18314. <EntityTypeMapping TypeName="iBemsModel.FmsWorkScheduleToFacility">
  18315. <MappingFragment StoreEntitySet="FmsWorkScheduleToFacility">
  18316. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18317. <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
  18318. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18319. </MappingFragment>
  18320. </EntityTypeMapping>
  18321. </EntitySetMapping>
  18322. <EntitySetMapping Name="sysdiagrams">
  18323. <EntityTypeMapping TypeName="iBemsModel.sysdiagrams">
  18324. <MappingFragment StoreEntitySet="sysdiagrams">
  18325. <ScalarProperty Name="name" ColumnName="name" />
  18326. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  18327. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  18328. <ScalarProperty Name="version" ColumnName="version" />
  18329. <ScalarProperty Name="definition" ColumnName="definition" />
  18330. </MappingFragment>
  18331. </EntityTypeMapping>
  18332. </EntitySetMapping>
  18333. <EntitySetMapping Name="FmsDailyCheckReport">
  18334. <EntityTypeMapping TypeName="iBemsModel.FmsDailyCheckReport">
  18335. <MappingFragment StoreEntitySet="FmsDailyCheckReport">
  18336. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  18337. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  18338. <ScalarProperty Name="Contents" ColumnName="Contents" />
  18339. <ScalarProperty Name="Name" ColumnName="Name" />
  18340. <ScalarProperty Name="DailyCheckReportId" ColumnName="DailyCheckReportId" />
  18341. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18342. </MappingFragment>
  18343. </EntityTypeMapping>
  18344. </EntitySetMapping>
  18345. <EntitySetMapping Name="FmsFacilityOperationReport">
  18346. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityOperationReport">
  18347. <MappingFragment StoreEntitySet="FmsFacilityOperationReport">
  18348. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  18349. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  18350. <ScalarProperty Name="Contents" ColumnName="Contents" />
  18351. <ScalarProperty Name="Name" ColumnName="Name" />
  18352. <ScalarProperty Name="FacilityOperationReportId" ColumnName="FacilityOperationReportId" />
  18353. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18354. </MappingFragment>
  18355. </EntityTypeMapping>
  18356. </EntitySetMapping>
  18357. <EntitySetMapping Name="FmsBudgetDetail">
  18358. <EntityTypeMapping TypeName="iBemsModel.FmsBudgetDetail">
  18359. <MappingFragment StoreEntitySet="FmsBudgetDetail">
  18360. <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
  18361. <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
  18362. <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
  18363. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18364. <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
  18365. <ScalarProperty Name="Name" ColumnName="Name" />
  18366. <ScalarProperty Name="Depth" ColumnName="Depth" />
  18367. <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
  18368. <ScalarProperty Name="BudgetSeq" ColumnName="BudgetSeq" />
  18369. <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
  18370. <ScalarProperty Name="Year" ColumnName="Year" />
  18371. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18372. </MappingFragment>
  18373. </EntityTypeMapping>
  18374. </EntitySetMapping>
  18375. <EntitySetMapping Name="FmsBudgetDetailExecution">
  18376. <EntityTypeMapping TypeName="iBemsModel.FmsBudgetDetailExecution">
  18377. <MappingFragment StoreEntitySet="FmsBudgetDetailExecution">
  18378. <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
  18379. <ScalarProperty Name="YearlyExecution" ColumnName="YearlyExecution" />
  18380. <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
  18381. <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
  18382. <ScalarProperty Name="Month" ColumnName="Month" />
  18383. <ScalarProperty Name="MonthlyExecution" ColumnName="MonthlyExecution" />
  18384. <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
  18385. <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
  18386. <ScalarProperty Name="Year" ColumnName="Year" />
  18387. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18388. </MappingFragment>
  18389. </EntityTypeMapping>
  18390. </EntitySetMapping>
  18391. <EntitySetMapping Name="FmsMonthlyReport">
  18392. <EntityTypeMapping TypeName="iBemsModel.FmsMonthlyReport">
  18393. <MappingFragment StoreEntitySet="FmsMonthlyReport">
  18394. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  18395. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  18396. <ScalarProperty Name="Contents" ColumnName="Contents" />
  18397. <ScalarProperty Name="Name" ColumnName="Name" />
  18398. <ScalarProperty Name="MonthlyReportId" ColumnName="MonthlyReportId" />
  18399. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18400. </MappingFragment>
  18401. </EntityTypeMapping>
  18402. </EntitySetMapping>
  18403. <EntitySetMapping Name="FmsInvestmentCost">
  18404. <EntityTypeMapping TypeName="iBemsModel.FmsInvestmentCost">
  18405. <MappingFragment StoreEntitySet="FmsInvestmentCost">
  18406. <ScalarProperty Name="InsvestmentCost" ColumnName="InsvestmentCost" />
  18407. <ScalarProperty Name="Comment" ColumnName="Comment" />
  18408. <ScalarProperty Name="Name" ColumnName="Name" />
  18409. <ScalarProperty Name="InsvestmentCostId" ColumnName="InsvestmentCostId" />
  18410. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18411. </MappingFragment>
  18412. </EntityTypeMapping>
  18413. </EntitySetMapping>
  18414. <EntitySetMapping Name="CmHolidayWeekend">
  18415. <EntityTypeMapping TypeName="iBemsModel.CmHolidayWeekend">
  18416. <MappingFragment StoreEntitySet="CmHolidayWeekend">
  18417. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18418. <ScalarProperty Name="Sunday" ColumnName="Sunday" />
  18419. <ScalarProperty Name="Saturday" ColumnName="Saturday" />
  18420. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18421. </MappingFragment>
  18422. </EntityTypeMapping>
  18423. </EntitySetMapping>
  18424. <EntitySetMapping Name="FmsMaterial">
  18425. <EntityTypeMapping TypeName="iBemsModel.FmsMaterial">
  18426. <MappingFragment StoreEntitySet="FmsMaterial">
  18427. <ScalarProperty Name="FinalTotalStockAmount" ColumnName="FinalTotalStockAmount" />
  18428. <ScalarProperty Name="FinalStockCount" ColumnName="FinalStockCount" />
  18429. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18430. <ScalarProperty Name="IsDiscontinued" ColumnName="IsDiscontinued" />
  18431. <ScalarProperty Name="Note" ColumnName="Note" />
  18432. <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
  18433. <ScalarProperty Name="FinalPrice" ColumnName="FinalPrice" />
  18434. <ScalarProperty Name="Standard" ColumnName="Standard" />
  18435. <ScalarProperty Name="Manufacturer" ColumnName="Manufacturer" />
  18436. <ScalarProperty Name="ReasonableStockCount" ColumnName="ReasonableStockCount" />
  18437. <ScalarProperty Name="DurableYears" ColumnName="DurableYears" />
  18438. <ScalarProperty Name="Unit" ColumnName="Unit" />
  18439. <ScalarProperty Name="Rfid" ColumnName="Rfid" />
  18440. <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
  18441. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  18442. <ScalarProperty Name="MaterialTypeId" ColumnName="MaterialTypeId" />
  18443. <ScalarProperty Name="LocationId" ColumnName="LocationId" />
  18444. <ScalarProperty Name="ThirdClassId" ColumnName="ThirdClassId" />
  18445. <ScalarProperty Name="SecondClassId" ColumnName="SecondClassId" />
  18446. <ScalarProperty Name="FirstClassId" ColumnName="FirstClassId" />
  18447. <ScalarProperty Name="Name" ColumnName="Name" />
  18448. <ScalarProperty Name="MaterialCode" ColumnName="MaterialCode" />
  18449. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18450. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18451. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18452. </MappingFragment>
  18453. </EntityTypeMapping>
  18454. </EntitySetMapping>
  18455. <EntitySetMapping Name="FmsMaterialRelease">
  18456. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialRelease">
  18457. <MappingFragment StoreEntitySet="FmsMaterialRelease">
  18458. <ScalarProperty Name="StockCountByPoint" ColumnName="StockCountByPoint" />
  18459. <ScalarProperty Name="Comment" ColumnName="Comment" />
  18460. <ScalarProperty Name="IsConfirmed" ColumnName="IsConfirmed" />
  18461. <ScalarProperty Name="ConfirmedDate" ColumnName="ConfirmedDate" />
  18462. <ScalarProperty Name="ConfirmedUserId" ColumnName="ConfirmedUserId" />
  18463. <ScalarProperty Name="AdjustmentUserId" ColumnName="AdjustmentUserId" />
  18464. <ScalarProperty Name="AdjustmentTypeId" ColumnName="AdjustmentTypeId" />
  18465. <ScalarProperty Name="ReleaseTotalCost" ColumnName="ReleaseTotalCost" />
  18466. <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
  18467. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18468. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  18469. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18470. <ScalarProperty Name="ReleaseTypeId" ColumnName="ReleaseTypeId" />
  18471. <ScalarProperty Name="MaterialReleaseId" ColumnName="MaterialReleaseId" />
  18472. <ScalarProperty Name="ReleaseDate" ColumnName="ReleaseDate" />
  18473. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18474. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18475. </MappingFragment>
  18476. </EntityTypeMapping>
  18477. </EntitySetMapping>
  18478. <EntitySetMapping Name="CmPatrolType">
  18479. <EntityTypeMapping TypeName="iBemsModel.CmPatrolType">
  18480. <MappingFragment StoreEntitySet="CmPatrolType">
  18481. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18482. <ScalarProperty Name="Name" ColumnName="Name" />
  18483. <ScalarProperty Name="PatrolTypeId" ColumnName="PatrolTypeId" />
  18484. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18485. </MappingFragment>
  18486. </EntityTypeMapping>
  18487. </EntitySetMapping>
  18488. <EntitySetMapping Name="CmPatrolGroup">
  18489. <EntityTypeMapping TypeName="iBemsModel.CmPatrolGroup">
  18490. <MappingFragment StoreEntitySet="CmPatrolGroup">
  18491. <ScalarProperty Name="Name" ColumnName="Name" />
  18492. <ScalarProperty Name="PatrolGroupId" ColumnName="PatrolGroupId" />
  18493. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18494. </MappingFragment>
  18495. </EntityTypeMapping>
  18496. </EntitySetMapping>
  18497. <EntitySetMapping Name="CmPatrolGroupUser">
  18498. <EntityTypeMapping TypeName="iBemsModel.CmPatrolGroupUser">
  18499. <MappingFragment StoreEntitySet="CmPatrolGroupUser">
  18500. <ScalarProperty Name="UserId" ColumnName="UserId" />
  18501. <ScalarProperty Name="PatrolGroupId" ColumnName="PatrolGroupId" />
  18502. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18503. </MappingFragment>
  18504. </EntityTypeMapping>
  18505. </EntitySetMapping>
  18506. <EntitySetMapping Name="CmPatrolPos">
  18507. <EntityTypeMapping TypeName="iBemsModel.CmPatrolPos">
  18508. <MappingFragment StoreEntitySet="CmPatrolPos">
  18509. <ScalarProperty Name="PosDesc" ColumnName="PosDesc" />
  18510. <ScalarProperty Name="TagId" ColumnName="TagId" />
  18511. <ScalarProperty Name="Name" ColumnName="Name" />
  18512. <ScalarProperty Name="PosId" ColumnName="PosId" />
  18513. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  18514. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  18515. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18516. </MappingFragment>
  18517. </EntityTypeMapping>
  18518. </EntitySetMapping>
  18519. <EntitySetMapping Name="CmPatrolCourse">
  18520. <EntityTypeMapping TypeName="iBemsModel.CmPatrolCourse">
  18521. <MappingFragment StoreEntitySet="CmPatrolCourse">
  18522. <ScalarProperty Name="Name" ColumnName="Name" />
  18523. <ScalarProperty Name="PatrolCourseId" ColumnName="PatrolCourseId" />
  18524. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18525. </MappingFragment>
  18526. </EntityTypeMapping>
  18527. </EntitySetMapping>
  18528. <EntitySetMapping Name="CmPatrolCoursePos">
  18529. <EntityTypeMapping TypeName="iBemsModel.CmPatrolCoursePos">
  18530. <MappingFragment StoreEntitySet="CmPatrolCoursePos">
  18531. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  18532. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  18533. <ScalarProperty Name="CourseOrder" ColumnName="CourseOrder" />
  18534. <ScalarProperty Name="PosId" ColumnName="PosId" />
  18535. <ScalarProperty Name="PatrolCourseId" ColumnName="PatrolCourseId" />
  18536. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18537. </MappingFragment>
  18538. </EntityTypeMapping>
  18539. </EntitySetMapping>
  18540. <EntitySetMapping Name="CmPatrolPlan">
  18541. <EntityTypeMapping TypeName="iBemsModel.CmPatrolPlan">
  18542. <MappingFragment StoreEntitySet="CmPatrolPlan">
  18543. <ScalarProperty Name="inDate" ColumnName="inDate" />
  18544. <ScalarProperty Name="term" ColumnName="term" />
  18545. <ScalarProperty Name="PlanDesc" ColumnName="PlanDesc" />
  18546. <ScalarProperty Name="Name" ColumnName="Name" />
  18547. <ScalarProperty Name="CourseId" ColumnName="CourseId" />
  18548. <ScalarProperty Name="GroupId" ColumnName="GroupId" />
  18549. <ScalarProperty Name="PatrolPlanId" ColumnName="PatrolPlanId" />
  18550. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18551. </MappingFragment>
  18552. </EntityTypeMapping>
  18553. </EntitySetMapping>
  18554. <EntitySetMapping Name="CmPatrolHistoryPos">
  18555. <EntityTypeMapping TypeName="iBemsModel.CmPatrolHistoryPos">
  18556. <MappingFragment StoreEntitySet="CmPatrolHistoryPos">
  18557. <ScalarProperty Name="mId" ColumnName="mId" />
  18558. <ScalarProperty Name="resultType" ColumnName="resultType" />
  18559. <ScalarProperty Name="term" ColumnName="term" />
  18560. <ScalarProperty Name="PatrolTime" ColumnName="PatrolTime" />
  18561. <ScalarProperty Name="PosId" ColumnName="PosId" />
  18562. <ScalarProperty Name="PatrolHistoryId" ColumnName="PatrolHistoryId" />
  18563. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18564. </MappingFragment>
  18565. </EntityTypeMapping>
  18566. </EntitySetMapping>
  18567. <EntitySetMapping Name="BemsPeakInfo">
  18568. <EntityTypeMapping TypeName="iBemsModel.BemsPeakInfo">
  18569. <MappingFragment StoreEntitySet="BemsPeakInfo">
  18570. <ScalarProperty Name="todayMinPeakValue" ColumnName="todayMinPeakValue" />
  18571. <ScalarProperty Name="todayMaxPeakValue" ColumnName="todayMaxPeakValue" />
  18572. <ScalarProperty Name="MinPeakValue" ColumnName="MinPeakValue" />
  18573. <ScalarProperty Name="MinDateTime" ColumnName="MinDateTime" />
  18574. <ScalarProperty Name="MaxPeakValue" ColumnName="MaxPeakValue" />
  18575. <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
  18576. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18577. </MappingFragment>
  18578. </EntityTypeMapping>
  18579. </EntitySetMapping>
  18580. <EntitySetMapping Name="BemsPeakHistory">
  18581. <EntityTypeMapping TypeName="iBemsModel.BemsPeakHistory">
  18582. <MappingFragment StoreEntitySet="BemsPeakHistory">
  18583. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  18584. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  18585. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18586. </MappingFragment>
  18587. </EntityTypeMapping>
  18588. </EntitySetMapping>
  18589. <EntitySetMapping Name="CmPatrolSchedule">
  18590. <EntityTypeMapping TypeName="iBemsModel.CmPatrolSchedule">
  18591. <MappingFragment StoreEntitySet="CmPatrolSchedule">
  18592. <ScalarProperty Name="patrolDateTime" ColumnName="patrolDateTime" />
  18593. <ScalarProperty Name="inDate" ColumnName="inDate" />
  18594. <ScalarProperty Name="ScheduleDesc" ColumnName="ScheduleDesc" />
  18595. <ScalarProperty Name="Name" ColumnName="Name" />
  18596. <ScalarProperty Name="PlanId" ColumnName="PlanId" />
  18597. <ScalarProperty Name="ScheduleId" ColumnName="ScheduleId" />
  18598. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18599. </MappingFragment>
  18600. </EntityTypeMapping>
  18601. </EntitySetMapping>
  18602. <EntitySetMapping Name="BemsNoticePriceBase">
  18603. <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceBase">
  18604. <MappingFragment StoreEntitySet="BemsNoticePriceBase">
  18605. <ScalarProperty Name="SecondaryPrice" ColumnName="SecondaryPrice" />
  18606. <ScalarProperty Name="PrimaryPrice" ColumnName="PrimaryPrice" />
  18607. <ScalarProperty Name="ContractType" ColumnName="ContractType" />
  18608. <ScalarProperty Name="ApplyDate" ColumnName="ApplyDate" />
  18609. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18610. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18611. </MappingFragment>
  18612. </EntityTypeMapping>
  18613. </EntitySetMapping>
  18614. <EntitySetMapping Name="BemsNoticePriceContractType">
  18615. <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceContractType">
  18616. <MappingFragment StoreEntitySet="BemsNoticePriceContractType">
  18617. <ScalarProperty Name="Name" ColumnName="Name" />
  18618. <ScalarProperty Name="ContractType" ColumnName="ContractType" />
  18619. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18620. </MappingFragment>
  18621. </EntityTypeMapping>
  18622. </EntitySetMapping>
  18623. <EntitySetMapping Name="BemsNoticePriceDetail">
  18624. <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceDetail">
  18625. <MappingFragment StoreEntitySet="BemsNoticePriceDetail">
  18626. <ScalarProperty Name="P12" ColumnName="P12" />
  18627. <ScalarProperty Name="P11" ColumnName="P11" />
  18628. <ScalarProperty Name="P10" ColumnName="P10" />
  18629. <ScalarProperty Name="P09" ColumnName="P09" />
  18630. <ScalarProperty Name="P08" ColumnName="P08" />
  18631. <ScalarProperty Name="P07" ColumnName="P07" />
  18632. <ScalarProperty Name="P06" ColumnName="P06" />
  18633. <ScalarProperty Name="P05" ColumnName="P05" />
  18634. <ScalarProperty Name="P04" ColumnName="P04" />
  18635. <ScalarProperty Name="P03" ColumnName="P03" />
  18636. <ScalarProperty Name="P02" ColumnName="P02" />
  18637. <ScalarProperty Name="P01" ColumnName="P01" />
  18638. <ScalarProperty Name="DataId" ColumnName="DataId" />
  18639. <ScalarProperty Name="ContractType" ColumnName="ContractType" />
  18640. <ScalarProperty Name="ApplyDate" ColumnName="ApplyDate" />
  18641. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18642. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18643. </MappingFragment>
  18644. </EntityTypeMapping>
  18645. </EntitySetMapping>
  18646. <EntitySetMapping Name="BemsPeakFacility">
  18647. <EntityTypeMapping TypeName="iBemsModel.BemsPeakFacility">
  18648. <MappingFragment StoreEntitySet="BemsPeakFacility">
  18649. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18650. <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
  18651. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18652. </MappingFragment>
  18653. </EntityTypeMapping>
  18654. </EntitySetMapping>
  18655. <EntitySetMapping Name="CmSite">
  18656. <EntityTypeMapping TypeName="iBemsModel.CmSite">
  18657. <MappingFragment StoreEntitySet="CmSite">
  18658. <ScalarProperty Name="CDD" ColumnName="CDD" />
  18659. <ScalarProperty Name="HDD" ColumnName="HDD" />
  18660. <ScalarProperty Name="MainUseIndex" ColumnName="MainUseIndex" />
  18661. <ScalarProperty Name="Standard" ColumnName="Standard" />
  18662. <ScalarProperty Name="CompletionDate" ColumnName="CompletionDate" />
  18663. <ScalarProperty Name="MainUse" ColumnName="MainUse" />
  18664. <ScalarProperty Name="BuildingCoverageRatio" ColumnName="BuildingCoverageRatio" />
  18665. <ScalarProperty Name="FloorAreaRatio" ColumnName="FloorAreaRatio" />
  18666. <ScalarProperty Name="BuildingArea" ColumnName="BuildingArea" />
  18667. <ScalarProperty Name="GrossArea" ColumnName="GrossArea" />
  18668. <ScalarProperty Name="BuildingSize" ColumnName="BuildingSize" />
  18669. <ScalarProperty Name="controlSchedule" ColumnName="controlSchedule" />
  18670. <ScalarProperty Name="lng" ColumnName="lng" />
  18671. <ScalarProperty Name="lat" ColumnName="lat" />
  18672. <ScalarProperty Name="MaxPeak" ColumnName="MaxPeak" />
  18673. <ScalarProperty Name="ScheduleCheckHour" ColumnName="ScheduleCheckHour" />
  18674. <ScalarProperty Name="IsControlSchedule" ColumnName="IsControlSchedule" />
  18675. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  18676. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  18677. <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
  18678. <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
  18679. <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
  18680. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18681. <ScalarProperty Name="Comment" ColumnName="Comment" />
  18682. <ScalarProperty Name="URL" ColumnName="URL" />
  18683. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  18684. <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
  18685. <ScalarProperty Name="Address1" ColumnName="Address1" />
  18686. <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
  18687. <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
  18688. <ScalarProperty Name="Name" ColumnName="Name" />
  18689. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18690. </MappingFragment>
  18691. </EntityTypeMapping>
  18692. </EntitySetMapping>
  18693. <EntitySetMapping Name="FmsReport">
  18694. <EntityTypeMapping TypeName="iBemsModel.FmsReport">
  18695. <MappingFragment StoreEntitySet="FmsReport">
  18696. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18697. <ScalarProperty Name="ConfirmUserId2" ColumnName="ConfirmUserId2" />
  18698. <ScalarProperty Name="ConfirmUserId1" ColumnName="ConfirmUserId1" />
  18699. <ScalarProperty Name="MakeDate" ColumnName="MakeDate" />
  18700. <ScalarProperty Name="FileId" ColumnName="FileId" />
  18701. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  18702. <ScalarProperty Name="Contents" ColumnName="Contents" />
  18703. <ScalarProperty Name="Title" ColumnName="Title" />
  18704. <ScalarProperty Name="RId" ColumnName="RId" />
  18705. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18706. </MappingFragment>
  18707. </EntityTypeMapping>
  18708. </EntitySetMapping>
  18709. <EntitySetMapping Name="CmServiceEnergyCalcMonth">
  18710. <EntityTypeMapping TypeName="iBemsModel.CmServiceEnergyCalcMonth">
  18711. <MappingFragment StoreEntitySet="CmServiceEnergyCalcMonth">
  18712. <ScalarProperty Name="Value" ColumnName="Value" />
  18713. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  18714. <ScalarProperty Name="calDate" ColumnName="calDate" />
  18715. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18716. </MappingFragment>
  18717. </EntityTypeMapping>
  18718. </EntitySetMapping>
  18719. <EntitySetMapping Name="CmServiceEnergyCalcDay">
  18720. <EntityTypeMapping TypeName="iBemsModel.CmServiceEnergyCalcDay">
  18721. <MappingFragment StoreEntitySet="CmServiceEnergyCalcDay">
  18722. <ScalarProperty Name="Value" ColumnName="Value" />
  18723. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  18724. <ScalarProperty Name="calDate" ColumnName="calDate" />
  18725. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18726. </MappingFragment>
  18727. </EntityTypeMapping>
  18728. </EntitySetMapping>
  18729. <EntitySetMapping Name="CmPatrolHistory">
  18730. <EntityTypeMapping TypeName="iBemsModel.CmPatrolHistory">
  18731. <MappingFragment StoreEntitySet="CmPatrolHistory">
  18732. <ScalarProperty Name="resultAbnormalCnt" ColumnName="resultAbnormalCnt" />
  18733. <ScalarProperty Name="resultNormalCnt" ColumnName="resultNormalCnt" />
  18734. <ScalarProperty Name="resultPosCnt" ColumnName="resultPosCnt" />
  18735. <ScalarProperty Name="resultDesc" ColumnName="resultDesc" />
  18736. <ScalarProperty Name="resultTypeId" ColumnName="resultTypeId" />
  18737. <ScalarProperty Name="endDate" ColumnName="endDate" />
  18738. <ScalarProperty Name="startDate" ColumnName="startDate" />
  18739. <ScalarProperty Name="ScheduleId" ColumnName="ScheduleId" />
  18740. <ScalarProperty Name="PatrolHistoryId" ColumnName="PatrolHistoryId" />
  18741. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18742. </MappingFragment>
  18743. </EntityTypeMapping>
  18744. </EntitySetMapping>
  18745. <EntitySetMapping Name="BemsReportFormat">
  18746. <EntityTypeMapping TypeName="iBemsModel.BemsReportFormat">
  18747. <MappingFragment StoreEntitySet="BemsReportFormat">
  18748. <ScalarProperty Name="parts" ColumnName="parts" />
  18749. <ScalarProperty Name="Content" ColumnName="Content" />
  18750. <ScalarProperty Name="FormatName" ColumnName="FormatName" />
  18751. <ScalarProperty Name="ReportFormatId" ColumnName="ReportFormatId" />
  18752. </MappingFragment>
  18753. </EntityTypeMapping>
  18754. </EntitySetMapping>
  18755. <EntitySetMapping Name="CmMenu">
  18756. <EntityTypeMapping TypeName="iBemsModel.CmMenu">
  18757. <MappingFragment StoreEntitySet="CmMenu">
  18758. <ScalarProperty Name="Name" ColumnName="Name" />
  18759. <ScalarProperty Name="MenuPath" ColumnName="MenuPath" />
  18760. <ScalarProperty Name="Used" ColumnName="Used" />
  18761. <ScalarProperty Name="MenuId" ColumnName="MenuId" />
  18762. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18763. </MappingFragment>
  18764. </EntityTypeMapping>
  18765. </EntitySetMapping>
  18766. <EntitySetMapping Name="BemsPeopleIncrease">
  18767. <EntityTypeMapping TypeName="iBemsModel.BemsPeopleIncrease">
  18768. <MappingFragment StoreEntitySet="BemsPeopleIncrease">
  18769. <ScalarProperty Name="m12" ColumnName="m12" />
  18770. <ScalarProperty Name="m11" ColumnName="m11" />
  18771. <ScalarProperty Name="m10" ColumnName="m10" />
  18772. <ScalarProperty Name="m9" ColumnName="m9" />
  18773. <ScalarProperty Name="m8" ColumnName="m8" />
  18774. <ScalarProperty Name="m7" ColumnName="m7" />
  18775. <ScalarProperty Name="m6" ColumnName="m6" />
  18776. <ScalarProperty Name="m5" ColumnName="m5" />
  18777. <ScalarProperty Name="m4" ColumnName="m4" />
  18778. <ScalarProperty Name="m3" ColumnName="m3" />
  18779. <ScalarProperty Name="m2" ColumnName="m2" />
  18780. <ScalarProperty Name="m1" ColumnName="m1" />
  18781. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18782. <ScalarProperty Name="Date" ColumnName="Date" />
  18783. </MappingFragment>
  18784. </EntityTypeMapping>
  18785. </EntitySetMapping>
  18786. <EntitySetMapping Name="BemsPriceCode">
  18787. <EntityTypeMapping TypeName="iBemsModel.BemsPriceCode">
  18788. <MappingFragment StoreEntitySet="BemsPriceCode">
  18789. <ScalarProperty Name="Unit" ColumnName="Unit" />
  18790. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18791. <ScalarProperty Name="PriceCodeDesc" ColumnName="PriceCodeDesc" />
  18792. <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
  18793. </MappingFragment>
  18794. </EntityTypeMapping>
  18795. </EntitySetMapping>
  18796. <EntitySetMapping Name="BemsPriceFormula">
  18797. <EntityTypeMapping TypeName="iBemsModel.BemsPriceFormula">
  18798. <MappingFragment StoreEntitySet="BemsPriceFormula">
  18799. <ScalarProperty Name="UseYN" ColumnName="UseYN" />
  18800. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18801. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  18802. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  18803. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  18804. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18805. </MappingFragment>
  18806. </EntityTypeMapping>
  18807. </EntitySetMapping>
  18808. <EntitySetMapping Name="BemsPriceMeta">
  18809. <EntityTypeMapping TypeName="iBemsModel.BemsPriceMeta">
  18810. <MappingFragment StoreEntitySet="BemsPriceMeta">
  18811. <ScalarProperty Name="C12_23" ColumnName="12_23" />
  18812. <ScalarProperty Name="C12_22" ColumnName="12_22" />
  18813. <ScalarProperty Name="C12_21" ColumnName="12_21" />
  18814. <ScalarProperty Name="C12_20" ColumnName="12_20" />
  18815. <ScalarProperty Name="C12_19" ColumnName="12_19" />
  18816. <ScalarProperty Name="C12_18" ColumnName="12_18" />
  18817. <ScalarProperty Name="C12_17" ColumnName="12_17" />
  18818. <ScalarProperty Name="C12_16" ColumnName="12_16" />
  18819. <ScalarProperty Name="C12_15" ColumnName="12_15" />
  18820. <ScalarProperty Name="C12_14" ColumnName="12_14" />
  18821. <ScalarProperty Name="C12_13" ColumnName="12_13" />
  18822. <ScalarProperty Name="C12_12" ColumnName="12_12" />
  18823. <ScalarProperty Name="C12_11" ColumnName="12_11" />
  18824. <ScalarProperty Name="C12_10" ColumnName="12_10" />
  18825. <ScalarProperty Name="C12_09" ColumnName="12_09" />
  18826. <ScalarProperty Name="C12_08" ColumnName="12_08" />
  18827. <ScalarProperty Name="C12_07" ColumnName="12_07" />
  18828. <ScalarProperty Name="C12_06" ColumnName="12_06" />
  18829. <ScalarProperty Name="C12_05" ColumnName="12_05" />
  18830. <ScalarProperty Name="C12_04" ColumnName="12_04" />
  18831. <ScalarProperty Name="C12_03" ColumnName="12_03" />
  18832. <ScalarProperty Name="C12_02" ColumnName="12_02" />
  18833. <ScalarProperty Name="C12_01" ColumnName="12_01" />
  18834. <ScalarProperty Name="C12_00" ColumnName="12_00" />
  18835. <ScalarProperty Name="C11_23" ColumnName="11_23" />
  18836. <ScalarProperty Name="C11_22" ColumnName="11_22" />
  18837. <ScalarProperty Name="C11_21" ColumnName="11_21" />
  18838. <ScalarProperty Name="C11_20" ColumnName="11_20" />
  18839. <ScalarProperty Name="C11_19" ColumnName="11_19" />
  18840. <ScalarProperty Name="C11_18" ColumnName="11_18" />
  18841. <ScalarProperty Name="C11_17" ColumnName="11_17" />
  18842. <ScalarProperty Name="C11_16" ColumnName="11_16" />
  18843. <ScalarProperty Name="C11_15" ColumnName="11_15" />
  18844. <ScalarProperty Name="C11_14" ColumnName="11_14" />
  18845. <ScalarProperty Name="C11_13" ColumnName="11_13" />
  18846. <ScalarProperty Name="C11_12" ColumnName="11_12" />
  18847. <ScalarProperty Name="C11_11" ColumnName="11_11" />
  18848. <ScalarProperty Name="C11_10" ColumnName="11_10" />
  18849. <ScalarProperty Name="C11_09" ColumnName="11_09" />
  18850. <ScalarProperty Name="C11_08" ColumnName="11_08" />
  18851. <ScalarProperty Name="C11_07" ColumnName="11_07" />
  18852. <ScalarProperty Name="C11_06" ColumnName="11_06" />
  18853. <ScalarProperty Name="C11_05" ColumnName="11_05" />
  18854. <ScalarProperty Name="C11_04" ColumnName="11_04" />
  18855. <ScalarProperty Name="C11_03" ColumnName="11_03" />
  18856. <ScalarProperty Name="C11_02" ColumnName="11_02" />
  18857. <ScalarProperty Name="C11_01" ColumnName="11_01" />
  18858. <ScalarProperty Name="C11_00" ColumnName="11_00" />
  18859. <ScalarProperty Name="C10_23" ColumnName="10_23" />
  18860. <ScalarProperty Name="C10_22" ColumnName="10_22" />
  18861. <ScalarProperty Name="C10_21" ColumnName="10_21" />
  18862. <ScalarProperty Name="C10_20" ColumnName="10_20" />
  18863. <ScalarProperty Name="C10_19" ColumnName="10_19" />
  18864. <ScalarProperty Name="C10_18" ColumnName="10_18" />
  18865. <ScalarProperty Name="C10_17" ColumnName="10_17" />
  18866. <ScalarProperty Name="C10_16" ColumnName="10_16" />
  18867. <ScalarProperty Name="C10_15" ColumnName="10_15" />
  18868. <ScalarProperty Name="C10_14" ColumnName="10_14" />
  18869. <ScalarProperty Name="C10_13" ColumnName="10_13" />
  18870. <ScalarProperty Name="C10_12" ColumnName="10_12" />
  18871. <ScalarProperty Name="C10_11" ColumnName="10_11" />
  18872. <ScalarProperty Name="C10_10" ColumnName="10_10" />
  18873. <ScalarProperty Name="C10_09" ColumnName="10_09" />
  18874. <ScalarProperty Name="C10_08" ColumnName="10_08" />
  18875. <ScalarProperty Name="C10_07" ColumnName="10_07" />
  18876. <ScalarProperty Name="C10_06" ColumnName="10_06" />
  18877. <ScalarProperty Name="C10_05" ColumnName="10_05" />
  18878. <ScalarProperty Name="C10_04" ColumnName="10_04" />
  18879. <ScalarProperty Name="C10_03" ColumnName="10_03" />
  18880. <ScalarProperty Name="C10_02" ColumnName="10_02" />
  18881. <ScalarProperty Name="C10_01" ColumnName="10_01" />
  18882. <ScalarProperty Name="C10_00" ColumnName="10_00" />
  18883. <ScalarProperty Name="C09_23" ColumnName="09_23" />
  18884. <ScalarProperty Name="C09_22" ColumnName="09_22" />
  18885. <ScalarProperty Name="C09_21" ColumnName="09_21" />
  18886. <ScalarProperty Name="C09_20" ColumnName="09_20" />
  18887. <ScalarProperty Name="C09_19" ColumnName="09_19" />
  18888. <ScalarProperty Name="C09_18" ColumnName="09_18" />
  18889. <ScalarProperty Name="C09_17" ColumnName="09_17" />
  18890. <ScalarProperty Name="C09_16" ColumnName="09_16" />
  18891. <ScalarProperty Name="C09_15" ColumnName="09_15" />
  18892. <ScalarProperty Name="C09_14" ColumnName="09_14" />
  18893. <ScalarProperty Name="C09_13" ColumnName="09_13" />
  18894. <ScalarProperty Name="C09_12" ColumnName="09_12" />
  18895. <ScalarProperty Name="C09_11" ColumnName="09_11" />
  18896. <ScalarProperty Name="C09_10" ColumnName="09_10" />
  18897. <ScalarProperty Name="C09_09" ColumnName="09_09" />
  18898. <ScalarProperty Name="C09_08" ColumnName="09_08" />
  18899. <ScalarProperty Name="C09_07" ColumnName="09_07" />
  18900. <ScalarProperty Name="C09_06" ColumnName="09_06" />
  18901. <ScalarProperty Name="C09_05" ColumnName="09_05" />
  18902. <ScalarProperty Name="C09_04" ColumnName="09_04" />
  18903. <ScalarProperty Name="C09_03" ColumnName="09_03" />
  18904. <ScalarProperty Name="C09_02" ColumnName="09_02" />
  18905. <ScalarProperty Name="C09_01" ColumnName="09_01" />
  18906. <ScalarProperty Name="C09_00" ColumnName="09_00" />
  18907. <ScalarProperty Name="C08_23" ColumnName="08_23" />
  18908. <ScalarProperty Name="C08_22" ColumnName="08_22" />
  18909. <ScalarProperty Name="C08_21" ColumnName="08_21" />
  18910. <ScalarProperty Name="C08_20" ColumnName="08_20" />
  18911. <ScalarProperty Name="C08_19" ColumnName="08_19" />
  18912. <ScalarProperty Name="C08_18" ColumnName="08_18" />
  18913. <ScalarProperty Name="C08_17" ColumnName="08_17" />
  18914. <ScalarProperty Name="C08_16" ColumnName="08_16" />
  18915. <ScalarProperty Name="C08_15" ColumnName="08_15" />
  18916. <ScalarProperty Name="C08_14" ColumnName="08_14" />
  18917. <ScalarProperty Name="C08_13" ColumnName="08_13" />
  18918. <ScalarProperty Name="C08_12" ColumnName="08_12" />
  18919. <ScalarProperty Name="C08_11" ColumnName="08_11" />
  18920. <ScalarProperty Name="C08_10" ColumnName="08_10" />
  18921. <ScalarProperty Name="C08_09" ColumnName="08_09" />
  18922. <ScalarProperty Name="C08_08" ColumnName="08_08" />
  18923. <ScalarProperty Name="C08_07" ColumnName="08_07" />
  18924. <ScalarProperty Name="C08_06" ColumnName="08_06" />
  18925. <ScalarProperty Name="C08_05" ColumnName="08_05" />
  18926. <ScalarProperty Name="C08_04" ColumnName="08_04" />
  18927. <ScalarProperty Name="C08_03" ColumnName="08_03" />
  18928. <ScalarProperty Name="C08_02" ColumnName="08_02" />
  18929. <ScalarProperty Name="C08_01" ColumnName="08_01" />
  18930. <ScalarProperty Name="C08_00" ColumnName="08_00" />
  18931. <ScalarProperty Name="C07_23" ColumnName="07_23" />
  18932. <ScalarProperty Name="C07_22" ColumnName="07_22" />
  18933. <ScalarProperty Name="C07_21" ColumnName="07_21" />
  18934. <ScalarProperty Name="C07_20" ColumnName="07_20" />
  18935. <ScalarProperty Name="C07_19" ColumnName="07_19" />
  18936. <ScalarProperty Name="C07_18" ColumnName="07_18" />
  18937. <ScalarProperty Name="C07_17" ColumnName="07_17" />
  18938. <ScalarProperty Name="C07_16" ColumnName="07_16" />
  18939. <ScalarProperty Name="C07_15" ColumnName="07_15" />
  18940. <ScalarProperty Name="C07_14" ColumnName="07_14" />
  18941. <ScalarProperty Name="C07_13" ColumnName="07_13" />
  18942. <ScalarProperty Name="C07_12" ColumnName="07_12" />
  18943. <ScalarProperty Name="C07_11" ColumnName="07_11" />
  18944. <ScalarProperty Name="C07_10" ColumnName="07_10" />
  18945. <ScalarProperty Name="C07_09" ColumnName="07_09" />
  18946. <ScalarProperty Name="C07_08" ColumnName="07_08" />
  18947. <ScalarProperty Name="C07_07" ColumnName="07_07" />
  18948. <ScalarProperty Name="C07_06" ColumnName="07_06" />
  18949. <ScalarProperty Name="C07_05" ColumnName="07_05" />
  18950. <ScalarProperty Name="C07_04" ColumnName="07_04" />
  18951. <ScalarProperty Name="C07_03" ColumnName="07_03" />
  18952. <ScalarProperty Name="C07_02" ColumnName="07_02" />
  18953. <ScalarProperty Name="C07_01" ColumnName="07_01" />
  18954. <ScalarProperty Name="C07_00" ColumnName="07_00" />
  18955. <ScalarProperty Name="C06_23" ColumnName="06_23" />
  18956. <ScalarProperty Name="C06_22" ColumnName="06_22" />
  18957. <ScalarProperty Name="C06_21" ColumnName="06_21" />
  18958. <ScalarProperty Name="C06_20" ColumnName="06_20" />
  18959. <ScalarProperty Name="C06_19" ColumnName="06_19" />
  18960. <ScalarProperty Name="C06_18" ColumnName="06_18" />
  18961. <ScalarProperty Name="C06_17" ColumnName="06_17" />
  18962. <ScalarProperty Name="C06_16" ColumnName="06_16" />
  18963. <ScalarProperty Name="C06_15" ColumnName="06_15" />
  18964. <ScalarProperty Name="C06_14" ColumnName="06_14" />
  18965. <ScalarProperty Name="C06_13" ColumnName="06_13" />
  18966. <ScalarProperty Name="C06_12" ColumnName="06_12" />
  18967. <ScalarProperty Name="C06_11" ColumnName="06_11" />
  18968. <ScalarProperty Name="C06_10" ColumnName="06_10" />
  18969. <ScalarProperty Name="C06_09" ColumnName="06_09" />
  18970. <ScalarProperty Name="C06_08" ColumnName="06_08" />
  18971. <ScalarProperty Name="C06_07" ColumnName="06_07" />
  18972. <ScalarProperty Name="C06_06" ColumnName="06_06" />
  18973. <ScalarProperty Name="C06_05" ColumnName="06_05" />
  18974. <ScalarProperty Name="C06_04" ColumnName="06_04" />
  18975. <ScalarProperty Name="C06_03" ColumnName="06_03" />
  18976. <ScalarProperty Name="C06_02" ColumnName="06_02" />
  18977. <ScalarProperty Name="C06_01" ColumnName="06_01" />
  18978. <ScalarProperty Name="C06_00" ColumnName="06_00" />
  18979. <ScalarProperty Name="C05_23" ColumnName="05_23" />
  18980. <ScalarProperty Name="C05_22" ColumnName="05_22" />
  18981. <ScalarProperty Name="C05_21" ColumnName="05_21" />
  18982. <ScalarProperty Name="C05_20" ColumnName="05_20" />
  18983. <ScalarProperty Name="C05_19" ColumnName="05_19" />
  18984. <ScalarProperty Name="C05_18" ColumnName="05_18" />
  18985. <ScalarProperty Name="C05_17" ColumnName="05_17" />
  18986. <ScalarProperty Name="C05_16" ColumnName="05_16" />
  18987. <ScalarProperty Name="C05_15" ColumnName="05_15" />
  18988. <ScalarProperty Name="C05_14" ColumnName="05_14" />
  18989. <ScalarProperty Name="C05_13" ColumnName="05_13" />
  18990. <ScalarProperty Name="C05_12" ColumnName="05_12" />
  18991. <ScalarProperty Name="C05_11" ColumnName="05_11" />
  18992. <ScalarProperty Name="C05_10" ColumnName="05_10" />
  18993. <ScalarProperty Name="C05_09" ColumnName="05_09" />
  18994. <ScalarProperty Name="C05_08" ColumnName="05_08" />
  18995. <ScalarProperty Name="C05_07" ColumnName="05_07" />
  18996. <ScalarProperty Name="C05_06" ColumnName="05_06" />
  18997. <ScalarProperty Name="C05_05" ColumnName="05_05" />
  18998. <ScalarProperty Name="C05_04" ColumnName="05_04" />
  18999. <ScalarProperty Name="C05_03" ColumnName="05_03" />
  19000. <ScalarProperty Name="C05_02" ColumnName="05_02" />
  19001. <ScalarProperty Name="C05_01" ColumnName="05_01" />
  19002. <ScalarProperty Name="C05_00" ColumnName="05_00" />
  19003. <ScalarProperty Name="C04_23" ColumnName="04_23" />
  19004. <ScalarProperty Name="C04_22" ColumnName="04_22" />
  19005. <ScalarProperty Name="C04_21" ColumnName="04_21" />
  19006. <ScalarProperty Name="C04_20" ColumnName="04_20" />
  19007. <ScalarProperty Name="C04_19" ColumnName="04_19" />
  19008. <ScalarProperty Name="C04_18" ColumnName="04_18" />
  19009. <ScalarProperty Name="C04_17" ColumnName="04_17" />
  19010. <ScalarProperty Name="C04_16" ColumnName="04_16" />
  19011. <ScalarProperty Name="C04_15" ColumnName="04_15" />
  19012. <ScalarProperty Name="C04_14" ColumnName="04_14" />
  19013. <ScalarProperty Name="C04_13" ColumnName="04_13" />
  19014. <ScalarProperty Name="C04_12" ColumnName="04_12" />
  19015. <ScalarProperty Name="C04_11" ColumnName="04_11" />
  19016. <ScalarProperty Name="C04_10" ColumnName="04_10" />
  19017. <ScalarProperty Name="C04_09" ColumnName="04_09" />
  19018. <ScalarProperty Name="C04_08" ColumnName="04_08" />
  19019. <ScalarProperty Name="C04_07" ColumnName="04_07" />
  19020. <ScalarProperty Name="C04_06" ColumnName="04_06" />
  19021. <ScalarProperty Name="C04_05" ColumnName="04_05" />
  19022. <ScalarProperty Name="C04_04" ColumnName="04_04" />
  19023. <ScalarProperty Name="C04_03" ColumnName="04_03" />
  19024. <ScalarProperty Name="C04_02" ColumnName="04_02" />
  19025. <ScalarProperty Name="C04_01" ColumnName="04_01" />
  19026. <ScalarProperty Name="C04_00" ColumnName="04_00" />
  19027. <ScalarProperty Name="C03_23" ColumnName="03_23" />
  19028. <ScalarProperty Name="C03_22" ColumnName="03_22" />
  19029. <ScalarProperty Name="C03_21" ColumnName="03_21" />
  19030. <ScalarProperty Name="C03_20" ColumnName="03_20" />
  19031. <ScalarProperty Name="C03_19" ColumnName="03_19" />
  19032. <ScalarProperty Name="C03_18" ColumnName="03_18" />
  19033. <ScalarProperty Name="C03_17" ColumnName="03_17" />
  19034. <ScalarProperty Name="C03_16" ColumnName="03_16" />
  19035. <ScalarProperty Name="C03_15" ColumnName="03_15" />
  19036. <ScalarProperty Name="C03_14" ColumnName="03_14" />
  19037. <ScalarProperty Name="C03_13" ColumnName="03_13" />
  19038. <ScalarProperty Name="C03_12" ColumnName="03_12" />
  19039. <ScalarProperty Name="C03_11" ColumnName="03_11" />
  19040. <ScalarProperty Name="C03_10" ColumnName="03_10" />
  19041. <ScalarProperty Name="C03_09" ColumnName="03_09" />
  19042. <ScalarProperty Name="C03_08" ColumnName="03_08" />
  19043. <ScalarProperty Name="C03_07" ColumnName="03_07" />
  19044. <ScalarProperty Name="C03_06" ColumnName="03_06" />
  19045. <ScalarProperty Name="C03_05" ColumnName="03_05" />
  19046. <ScalarProperty Name="C03_04" ColumnName="03_04" />
  19047. <ScalarProperty Name="C03_03" ColumnName="03_03" />
  19048. <ScalarProperty Name="C03_02" ColumnName="03_02" />
  19049. <ScalarProperty Name="C03_01" ColumnName="03_01" />
  19050. <ScalarProperty Name="C03_00" ColumnName="03_00" />
  19051. <ScalarProperty Name="C02_23" ColumnName="02_23" />
  19052. <ScalarProperty Name="C02_22" ColumnName="02_22" />
  19053. <ScalarProperty Name="C02_21" ColumnName="02_21" />
  19054. <ScalarProperty Name="C02_20" ColumnName="02_20" />
  19055. <ScalarProperty Name="C02_19" ColumnName="02_19" />
  19056. <ScalarProperty Name="C02_18" ColumnName="02_18" />
  19057. <ScalarProperty Name="C02_17" ColumnName="02_17" />
  19058. <ScalarProperty Name="C02_16" ColumnName="02_16" />
  19059. <ScalarProperty Name="C02_15" ColumnName="02_15" />
  19060. <ScalarProperty Name="C02_14" ColumnName="02_14" />
  19061. <ScalarProperty Name="C02_13" ColumnName="02_13" />
  19062. <ScalarProperty Name="C02_12" ColumnName="02_12" />
  19063. <ScalarProperty Name="C02_11" ColumnName="02_11" />
  19064. <ScalarProperty Name="C02_10" ColumnName="02_10" />
  19065. <ScalarProperty Name="C02_09" ColumnName="02_09" />
  19066. <ScalarProperty Name="C02_08" ColumnName="02_08" />
  19067. <ScalarProperty Name="C02_07" ColumnName="02_07" />
  19068. <ScalarProperty Name="C02_06" ColumnName="02_06" />
  19069. <ScalarProperty Name="C02_05" ColumnName="02_05" />
  19070. <ScalarProperty Name="C02_04" ColumnName="02_04" />
  19071. <ScalarProperty Name="C02_03" ColumnName="02_03" />
  19072. <ScalarProperty Name="C02_02" ColumnName="02_02" />
  19073. <ScalarProperty Name="C02_01" ColumnName="02_01" />
  19074. <ScalarProperty Name="C02_00" ColumnName="02_00" />
  19075. <ScalarProperty Name="C01_23" ColumnName="01_23" />
  19076. <ScalarProperty Name="C01_22" ColumnName="01_22" />
  19077. <ScalarProperty Name="C01_21" ColumnName="01_21" />
  19078. <ScalarProperty Name="C01_20" ColumnName="01_20" />
  19079. <ScalarProperty Name="C01_19" ColumnName="01_19" />
  19080. <ScalarProperty Name="C01_18" ColumnName="01_18" />
  19081. <ScalarProperty Name="C01_17" ColumnName="01_17" />
  19082. <ScalarProperty Name="C01_16" ColumnName="01_16" />
  19083. <ScalarProperty Name="C01_15" ColumnName="01_15" />
  19084. <ScalarProperty Name="C01_14" ColumnName="01_14" />
  19085. <ScalarProperty Name="C01_13" ColumnName="01_13" />
  19086. <ScalarProperty Name="C01_12" ColumnName="01_12" />
  19087. <ScalarProperty Name="C01_11" ColumnName="01_11" />
  19088. <ScalarProperty Name="C01_10" ColumnName="01_10" />
  19089. <ScalarProperty Name="C01_09" ColumnName="01_09" />
  19090. <ScalarProperty Name="C01_08" ColumnName="01_08" />
  19091. <ScalarProperty Name="C01_07" ColumnName="01_07" />
  19092. <ScalarProperty Name="C01_06" ColumnName="01_06" />
  19093. <ScalarProperty Name="C01_05" ColumnName="01_05" />
  19094. <ScalarProperty Name="C01_04" ColumnName="01_04" />
  19095. <ScalarProperty Name="C01_03" ColumnName="01_03" />
  19096. <ScalarProperty Name="C01_02" ColumnName="01_02" />
  19097. <ScalarProperty Name="C01_01" ColumnName="01_01" />
  19098. <ScalarProperty Name="C01_00" ColumnName="01_00" />
  19099. <ScalarProperty Name="BasePrice" ColumnName="BasePrice" />
  19100. <ScalarProperty Name="PublishDate" ColumnName="PublishDate" />
  19101. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  19102. </MappingFragment>
  19103. </EntityTypeMapping>
  19104. </EntitySetMapping>
  19105. <EntitySetMapping Name="BemsPriceType">
  19106. <EntityTypeMapping TypeName="iBemsModel.BemsPriceType">
  19107. <MappingFragment StoreEntitySet="BemsPriceType">
  19108. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19109. <ScalarProperty Name="PriceTypeIdDesc" ColumnName="PriceTypeIdDesc" />
  19110. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  19111. </MappingFragment>
  19112. </EntityTypeMapping>
  19113. </EntitySetMapping>
  19114. <EntitySetMapping Name="BemsRentalRate">
  19115. <EntityTypeMapping TypeName="iBemsModel.BemsRentalRate">
  19116. <MappingFragment StoreEntitySet="BemsRentalRate">
  19117. <ScalarProperty Name="m12" ColumnName="m12" />
  19118. <ScalarProperty Name="m11" ColumnName="m11" />
  19119. <ScalarProperty Name="m10" ColumnName="m10" />
  19120. <ScalarProperty Name="m9" ColumnName="m9" />
  19121. <ScalarProperty Name="m8" ColumnName="m8" />
  19122. <ScalarProperty Name="m7" ColumnName="m7" />
  19123. <ScalarProperty Name="m6" ColumnName="m6" />
  19124. <ScalarProperty Name="m5" ColumnName="m5" />
  19125. <ScalarProperty Name="m4" ColumnName="m4" />
  19126. <ScalarProperty Name="m3" ColumnName="m3" />
  19127. <ScalarProperty Name="m2" ColumnName="m2" />
  19128. <ScalarProperty Name="m1" ColumnName="m1" />
  19129. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19130. <ScalarProperty Name="Date" ColumnName="Date" />
  19131. </MappingFragment>
  19132. </EntityTypeMapping>
  19133. </EntitySetMapping>
  19134. <EntitySetMapping Name="BemsSitePrice">
  19135. <EntityTypeMapping TypeName="iBemsModel.BemsSitePrice">
  19136. <MappingFragment StoreEntitySet="BemsSitePrice">
  19137. <ScalarProperty Name="UseYN" ColumnName="UseYN" />
  19138. <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
  19139. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  19140. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19141. <ScalarProperty Name="SiteID" ColumnName="SiteID" />
  19142. </MappingFragment>
  19143. </EntityTypeMapping>
  19144. </EntitySetMapping>
  19145. <EntitySetMapping Name="BemsSitePriceHistory">
  19146. <EntityTypeMapping TypeName="iBemsModel.BemsSitePriceHistory">
  19147. <MappingFragment StoreEntitySet="BemsSitePriceHistory">
  19148. <ScalarProperty Name="PayCharge" ColumnName="PayCharge" />
  19149. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  19150. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  19151. <ScalarProperty Name="PayDate" ColumnName="PayDate" />
  19152. <ScalarProperty Name="PriceValue" ColumnName="PriceValue" />
  19153. <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
  19154. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  19155. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19156. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19157. </MappingFragment>
  19158. </EntityTypeMapping>
  19159. </EntitySetMapping>
  19160. <EntitySetMapping Name="BemsChartInfo">
  19161. <EntityTypeMapping TypeName="iBemsModel.BemsChartInfo">
  19162. <MappingFragment StoreEntitySet="BemsChartInfo">
  19163. <ScalarProperty Name="RCTLineValue" ColumnName="RCTLineValue" />
  19164. <ScalarProperty Name="RCTLineTitle" ColumnName="RCTLineTitle" />
  19165. <ScalarProperty Name="UseRCTLine" ColumnName="UseRCTLine" />
  19166. <ScalarProperty Name="LCTLineValue" ColumnName="LCTLineValue" />
  19167. <ScalarProperty Name="LCTLineTitle" ColumnName="LCTLineTitle" />
  19168. <ScalarProperty Name="UseLCTLine" ColumnName="UseLCTLine" />
  19169. <ScalarProperty Name="UseChart" ColumnName="UseChart" />
  19170. <ScalarProperty Name="Palette" ColumnName="Palette" />
  19171. <ScalarProperty Name="XAxMax" ColumnName="XAxMax" />
  19172. <ScalarProperty Name="XAxMin" ColumnName="XAxMin" />
  19173. <ScalarProperty Name="RAxMax" ColumnName="RAxMax" />
  19174. <ScalarProperty Name="RAxMin" ColumnName="RAxMin" />
  19175. <ScalarProperty Name="LAxMax" ColumnName="LAxMax" />
  19176. <ScalarProperty Name="LAxMin" ColumnName="LAxMin" />
  19177. <ScalarProperty Name="UseXAxMinMax" ColumnName="UseXAxMinMax" />
  19178. <ScalarProperty Name="UseRAxMinMax" ColumnName="UseRAxMinMax" />
  19179. <ScalarProperty Name="UseLAxMinMax" ColumnName="UseLAxMinMax" />
  19180. <ScalarProperty Name="UseX" ColumnName="UseX" />
  19181. <ScalarProperty Name="Title" ColumnName="Title" />
  19182. <ScalarProperty Name="RSType4" ColumnName="RSType4" />
  19183. <ScalarProperty Name="RSName4" ColumnName="RSName4" />
  19184. <ScalarProperty Name="RSFmId4" ColumnName="RSFmId4" />
  19185. <ScalarProperty Name="RSType3" ColumnName="RSType3" />
  19186. <ScalarProperty Name="RSName3" ColumnName="RSName3" />
  19187. <ScalarProperty Name="RSFmId3" ColumnName="RSFmId3" />
  19188. <ScalarProperty Name="RSType2" ColumnName="RSType2" />
  19189. <ScalarProperty Name="RSName2" ColumnName="RSName2" />
  19190. <ScalarProperty Name="RSFmId2" ColumnName="RSFmId2" />
  19191. <ScalarProperty Name="RSType1" ColumnName="RSType1" />
  19192. <ScalarProperty Name="RSName1" ColumnName="RSName1" />
  19193. <ScalarProperty Name="RSFmId1" ColumnName="RSFmId1" />
  19194. <ScalarProperty Name="LSType4" ColumnName="LSType4" />
  19195. <ScalarProperty Name="LSName4" ColumnName="LSName4" />
  19196. <ScalarProperty Name="LSFmId4" ColumnName="LSFmId4" />
  19197. <ScalarProperty Name="LSType3" ColumnName="LSType3" />
  19198. <ScalarProperty Name="LSName3" ColumnName="LSName3" />
  19199. <ScalarProperty Name="LSFmId3" ColumnName="LSFmId3" />
  19200. <ScalarProperty Name="LSType2" ColumnName="LSType2" />
  19201. <ScalarProperty Name="LSName2" ColumnName="LSName2" />
  19202. <ScalarProperty Name="LSFmId2" ColumnName="LSFmId2" />
  19203. <ScalarProperty Name="LSType1" ColumnName="LSType1" />
  19204. <ScalarProperty Name="LSName1" ColumnName="LSName1" />
  19205. <ScalarProperty Name="LSFmId1" ColumnName="LSFmId1" />
  19206. <ScalarProperty Name="XSType" ColumnName="XSType" />
  19207. <ScalarProperty Name="XSFmId" ColumnName="XSFmId" />
  19208. <ScalarProperty Name="XAxTitle" ColumnName="XAxTitle" />
  19209. <ScalarProperty Name="RAxTitle" ColumnName="RAxTitle" />
  19210. <ScalarProperty Name="LAxTitle" ColumnName="LAxTitle" />
  19211. <ScalarProperty Name="ChartId" ColumnName="ChartId" />
  19212. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19213. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19214. </MappingFragment>
  19215. </EntityTypeMapping>
  19216. </EntitySetMapping>
  19217. <EntitySetMapping Name="FmsWorkSchedule">
  19218. <EntityTypeMapping TypeName="iBemsModel.FmsWorkSchedule">
  19219. <MappingFragment StoreEntitySet="FmsWorkSchedule">
  19220. <ScalarProperty Name="Content" ColumnName="Content" />
  19221. <ScalarProperty Name="IsAutoOrder" ColumnName="IsAutoOrder" />
  19222. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19223. <ScalarProperty Name="UpdateUserId" ColumnName="UpdateUserId" />
  19224. <ScalarProperty Name="WorkDueDate" ColumnName="WorkDueDate" />
  19225. <ScalarProperty Name="HolidayWorkTypeId" ColumnName="HolidayWorkTypeId" />
  19226. <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
  19227. <ScalarProperty Name="CycleSize" ColumnName="CycleSize" />
  19228. <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
  19229. <ScalarProperty Name="Name" ColumnName="Name" />
  19230. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  19231. <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
  19232. <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
  19233. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19234. </MappingFragment>
  19235. </EntityTypeMapping>
  19236. </EntitySetMapping>
  19237. <EntitySetMapping Name="BemsMonitoringPointConfig">
  19238. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointConfig">
  19239. <MappingFragment StoreEntitySet="BemsMonitoringPointConfig">
  19240. <ScalarProperty Name="IsConverted" ColumnName="IsConverted" />
  19241. <ScalarProperty Name="ControlPointName" ColumnName="ControlPointName" />
  19242. <ScalarProperty Name="SaveMode" ColumnName="SaveMode" />
  19243. <ScalarProperty Name="IsSampled" ColumnName="IsSampled" />
  19244. <ScalarProperty Name="IsAccumulated" ColumnName="IsAccumulated" />
  19245. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19246. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19247. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19248. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19249. </MappingFragment>
  19250. </EntityTypeMapping>
  19251. </EntitySetMapping>
  19252. <EntitySetMapping Name="BemsAlarmSetting">
  19253. <EntityTypeMapping TypeName="iBemsModel.BemsAlarmSetting">
  19254. <MappingFragment StoreEntitySet="BemsAlarmSetting">
  19255. <ScalarProperty Name="Content" ColumnName="Content" />
  19256. <ScalarProperty Name="AlarmGroupName" ColumnName="AlarmGroupName" />
  19257. <ScalarProperty Name="UseEmail" ColumnName="UseEmail" />
  19258. <ScalarProperty Name="UseSMS" ColumnName="UseSMS" />
  19259. <ScalarProperty Name="UseAlarm" ColumnName="UseAlarm" />
  19260. <ScalarProperty Name="LowerLimit" ColumnName="LowerLimit" />
  19261. <ScalarProperty Name="UseLowerLimit" ColumnName="UseLowerLimit" />
  19262. <ScalarProperty Name="UpperLimit" ColumnName="UpperLimit" />
  19263. <ScalarProperty Name="UseUpperLimit" ColumnName="UseUpperLimit" />
  19264. <ScalarProperty Name="PointName" ColumnName="PointName" />
  19265. <ScalarProperty Name="FacilityName" ColumnName="FacilityName" />
  19266. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  19267. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19268. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19269. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19270. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19271. </MappingFragment>
  19272. </EntityTypeMapping>
  19273. </EntitySetMapping>
  19274. <EntitySetMapping Name="BemsAlarmLog">
  19275. <EntityTypeMapping TypeName="iBemsModel.BemsAlarmLog">
  19276. <MappingFragment StoreEntitySet="BemsAlarmLog">
  19277. <ScalarProperty Name="Conform" ColumnName="Conform" />
  19278. <ScalarProperty Name="EmailResult" ColumnName="EmailResult" />
  19279. <ScalarProperty Name="SMSResult" ColumnName="SMSResult" />
  19280. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  19281. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19282. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  19283. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19284. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19285. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19286. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19287. </MappingFragment>
  19288. </EntityTypeMapping>
  19289. </EntitySetMapping>
  19290. <EntitySetMapping Name="BemsAlarmGroup">
  19291. <EntityTypeMapping TypeName="iBemsModel.BemsAlarmGroup">
  19292. <MappingFragment StoreEntitySet="BemsAlarmGroup">
  19293. <ScalarProperty Name="Name" ColumnName="Name" />
  19294. <ScalarProperty Name="AlarmGroupId" ColumnName="AlarmGroupId" />
  19295. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19296. </MappingFragment>
  19297. </EntityTypeMapping>
  19298. </EntitySetMapping>
  19299. <EntitySetMapping Name="BemsAlarmGroupUser">
  19300. <EntityTypeMapping TypeName="iBemsModel.BemsAlarmGroupUser">
  19301. <MappingFragment StoreEntitySet="BemsAlarmGroupUser">
  19302. <ScalarProperty Name="UserId" ColumnName="UserId" />
  19303. <ScalarProperty Name="AlarmGroupId" ColumnName="AlarmGroupId" />
  19304. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19305. </MappingFragment>
  19306. </EntityTypeMapping>
  19307. </EntitySetMapping>
  19308. <EntitySetMapping Name="BemsEnergyCost">
  19309. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyCost">
  19310. <MappingFragment StoreEntitySet="BemsEnergyCost">
  19311. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19312. <ScalarProperty Name="GasPriceTypeId" ColumnName="GasPriceTypeId" />
  19313. <ScalarProperty Name="PowerPriceTypeId" ColumnName="PowerPriceTypeId" />
  19314. <ScalarProperty Name="GasHeatQuantity" ColumnName="GasHeatQuantity" />
  19315. <ScalarProperty Name="GasConsumption" ColumnName="GasConsumption" />
  19316. <ScalarProperty Name="PowerConsumption2" ColumnName="PowerConsumption2" />
  19317. <ScalarProperty Name="PowerConsumption1" ColumnName="PowerConsumption1" />
  19318. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19319. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19320. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19321. </MappingFragment>
  19322. </EntityTypeMapping>
  19323. </EntitySetMapping>
  19324. <EntitySetMapping Name="BemsEnergyConfigPercentMonth">
  19325. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyConfigPercentMonth">
  19326. <MappingFragment StoreEntitySet="BemsEnergyConfigPercentMonth">
  19327. <ScalarProperty Name="Water" ColumnName="Water" />
  19328. <ScalarProperty Name="Gas" ColumnName="Gas" />
  19329. <ScalarProperty Name="Electricity" ColumnName="Electricity" />
  19330. <ScalarProperty Name="Month" ColumnName="Month" />
  19331. <ScalarProperty Name="Year" ColumnName="Year" />
  19332. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19333. </MappingFragment>
  19334. </EntityTypeMapping>
  19335. </EntitySetMapping>
  19336. <EntitySetMapping Name="BemsEnergyConfigPercentWeek">
  19337. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyConfigPercentWeek">
  19338. <MappingFragment StoreEntitySet="BemsEnergyConfigPercentWeek">
  19339. <ScalarProperty Name="Water" ColumnName="Water" />
  19340. <ScalarProperty Name="Gas" ColumnName="Gas" />
  19341. <ScalarProperty Name="Electricity" ColumnName="Electricity" />
  19342. <ScalarProperty Name="Week" ColumnName="Week" />
  19343. <ScalarProperty Name="Year" ColumnName="Year" />
  19344. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19345. </MappingFragment>
  19346. </EntityTypeMapping>
  19347. </EntitySetMapping>
  19348. <EntitySetMapping Name="BemsEnergyDaily">
  19349. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyDaily">
  19350. <MappingFragment StoreEntitySet="BemsEnergyDaily">
  19351. <ScalarProperty Name="CDD" ColumnName="CDD" />
  19352. <ScalarProperty Name="HDD" ColumnName="HDD" />
  19353. <ScalarProperty Name="MeanT" ColumnName="MeanT" />
  19354. <ScalarProperty Name="Prediction_Regression" ColumnName="Prediction_Regression" />
  19355. <ScalarProperty Name="Goal" ColumnName="Goal" />
  19356. <ScalarProperty Name="Measurement" ColumnName="Measurement" />
  19357. <ScalarProperty Name="Prediction" ColumnName="Prediction" />
  19358. <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
  19359. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19360. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  19361. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  19362. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19363. </MappingFragment>
  19364. </EntityTypeMapping>
  19365. </EntitySetMapping>
  19366. <EntitySetMapping Name="BemsEnergyDailyRegression">
  19367. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyDailyRegression">
  19368. <MappingFragment StoreEntitySet="BemsEnergyDailyRegression">
  19369. <ScalarProperty Name="IsRegression" ColumnName="IsRegression" />
  19370. <ScalarProperty Name="Holiday_Water_Temp" ColumnName="Holiday_Water_Temp" />
  19371. <ScalarProperty Name="Holiday_Water" ColumnName="Holiday_Water" />
  19372. <ScalarProperty Name="Holiday_Gas_Temp" ColumnName="Holiday_Gas_Temp" />
  19373. <ScalarProperty Name="Holiday_Gas" ColumnName="Holiday_Gas" />
  19374. <ScalarProperty Name="Holiday_Power_Temp" ColumnName="Holiday_Power_Temp" />
  19375. <ScalarProperty Name="Holiday_Power" ColumnName="Holiday_Power" />
  19376. <ScalarProperty Name="Weekday_Water_Temp" ColumnName="Weekday_Water_Temp" />
  19377. <ScalarProperty Name="Weekday_Water" ColumnName="Weekday_Water" />
  19378. <ScalarProperty Name="Weekday_Gas_Temp" ColumnName="Weekday_Gas_Temp" />
  19379. <ScalarProperty Name="Weekday_Gas" ColumnName="Weekday_Gas" />
  19380. <ScalarProperty Name="Weekday_Power_Temp" ColumnName="Weekday_Power_Temp" />
  19381. <ScalarProperty Name="Weekday_Power" ColumnName="Weekday_Power" />
  19382. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19383. </MappingFragment>
  19384. </EntityTypeMapping>
  19385. </EntitySetMapping>
  19386. <EntitySetMapping Name="WeatherDongNaeForecast">
  19387. <EntityTypeMapping TypeName="iBemsModel.WeatherDongNaeForecast">
  19388. <MappingFragment StoreEntitySet="WeatherDongNaeForecast">
  19389. <ScalarProperty Name="Version" ColumnName="Version" />
  19390. <ScalarProperty Name="DBTime" ColumnName="DBTime" />
  19391. <ScalarProperty Name="Type" ColumnName="Type" />
  19392. <ScalarProperty Name="WSD" ColumnName="WSD" />
  19393. <ScalarProperty Name="VEC" ColumnName="VEC" />
  19394. <ScalarProperty Name="VVV" ColumnName="VVV" />
  19395. <ScalarProperty Name="UUU" ColumnName="UUU" />
  19396. <ScalarProperty Name="TMX" ColumnName="TMX" />
  19397. <ScalarProperty Name="TMN" ColumnName="TMN" />
  19398. <ScalarProperty Name="T3H" ColumnName="T3H" />
  19399. <ScalarProperty Name="SKY" ColumnName="SKY" />
  19400. <ScalarProperty Name="S06" ColumnName="S06" />
  19401. <ScalarProperty Name="REH" ColumnName="REH" />
  19402. <ScalarProperty Name="R06" ColumnName="R06" />
  19403. <ScalarProperty Name="PTY" ColumnName="PTY" />
  19404. <ScalarProperty Name="POP" ColumnName="POP" />
  19405. <ScalarProperty Name="ForecastTime" ColumnName="ForecastTime" />
  19406. <ScalarProperty Name="ny" ColumnName="ny" />
  19407. <ScalarProperty Name="nx" ColumnName="nx" />
  19408. <ScalarProperty Name="BaseTime" ColumnName="BaseTime" />
  19409. </MappingFragment>
  19410. </EntityTypeMapping>
  19411. </EntitySetMapping>
  19412. <EntitySetMapping Name="FmsEquipmentRentInfo">
  19413. <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentRentInfo">
  19414. <MappingFragment StoreEntitySet="FmsEquipmentRentInfo">
  19415. <ScalarProperty Name="RentUser" ColumnName="RentUser" />
  19416. <ScalarProperty Name="Title" ColumnName="Title" />
  19417. <ScalarProperty Name="Comment" ColumnName="Comment" />
  19418. <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
  19419. <ScalarProperty Name="ReturnFixDate" ColumnName="ReturnFixDate" />
  19420. <ScalarProperty Name="ReturnDueDate" ColumnName="ReturnDueDate" />
  19421. <ScalarProperty Name="RentDate" ColumnName="RentDate" />
  19422. <ScalarProperty Name="RegisterDate" ColumnName="RegisterDate" />
  19423. <ScalarProperty Name="RentUserId" ColumnName="RentUserId" />
  19424. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  19425. <ScalarProperty Name="EquipmentRentId" ColumnName="EquipmentRentId" />
  19426. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19427. </MappingFragment>
  19428. </EntityTypeMapping>
  19429. </EntitySetMapping>
  19430. <EntitySetMapping Name="BemsControlAHUTempConfig">
  19431. <EntityTypeMapping TypeName="iBemsModel.BemsControlAHUTempConfig">
  19432. <MappingFragment StoreEntitySet="BemsControlAHUTempConfig">
  19433. <ScalarProperty Name="MinTemperature" ColumnName="MinTemperature" />
  19434. <ScalarProperty Name="MaxTemperature" ColumnName="MaxTemperature" />
  19435. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19436. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19437. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19438. </MappingFragment>
  19439. </EntityTypeMapping>
  19440. </EntitySetMapping>
  19441. <EntitySetMapping Name="BemsFuelType">
  19442. <EntityTypeMapping TypeName="iBemsModel.BemsFuelType">
  19443. <MappingFragment StoreEntitySet="BemsFuelType">
  19444. <ScalarProperty Name="Name" ColumnName="Name" />
  19445. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19446. </MappingFragment>
  19447. </EntityTypeMapping>
  19448. </EntitySetMapping>
  19449. <EntitySetMapping Name="CmFacility">
  19450. <EntityTypeMapping TypeName="iBemsModel.CmFacility">
  19451. <MappingFragment StoreEntitySet="CmFacility">
  19452. <ScalarProperty Name="ContractType" ColumnName="ContractType" />
  19453. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19454. <ScalarProperty Name="IsVirtualFacility" ColumnName="IsVirtualFacility" />
  19455. <ScalarProperty Name="FileId" ColumnName="FileId" />
  19456. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19457. <ScalarProperty Name="Reserved2" ColumnName="Reserved2" />
  19458. <ScalarProperty Name="Reserved1" ColumnName="Reserved1" />
  19459. <ScalarProperty Name="Note" ColumnName="Note" />
  19460. <ScalarProperty Name="SubContactorUserId" ColumnName="SubContactorUserId" />
  19461. <ScalarProperty Name="MainContactorUserId" ColumnName="MainContactorUserId" />
  19462. <ScalarProperty Name="RatedCOP" ColumnName="RatedCOP" />
  19463. <ScalarProperty Name="RatedPowerConsumption" ColumnName="RatedPowerConsumption" />
  19464. <ScalarProperty Name="FacilityUsage" ColumnName="FacilityUsage" />
  19465. <ScalarProperty Name="FacilitySeviceLifeYear" ColumnName="FacilitySeviceLifeYear" />
  19466. <ScalarProperty Name="FacilityCount" ColumnName="FacilityCount" />
  19467. <ScalarProperty Name="FacilityCost" ColumnName="FacilityCost" />
  19468. <ScalarProperty Name="FacilityCapacity" ColumnName="FacilityCapacity" />
  19469. <ScalarProperty Name="OperationStartDate" ColumnName="OperationStartDate" />
  19470. <ScalarProperty Name="InstallDate" ColumnName="InstallDate" />
  19471. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  19472. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  19473. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  19474. <ScalarProperty Name="SupplierPhoneNo" ColumnName="SupplierPhoneNo" />
  19475. <ScalarProperty Name="Supplier" ColumnName="Supplier" />
  19476. <ScalarProperty Name="ManufactureModel" ColumnName="ManufactureModel" />
  19477. <ScalarProperty Name="ManufactureSerial" ColumnName="ManufactureSerial" />
  19478. <ScalarProperty Name="ManufactureDate" ColumnName="ManufactureDate" />
  19479. <ScalarProperty Name="Manufacturer" ColumnName="Manufacturer" />
  19480. <ScalarProperty Name="Rfid" ColumnName="Rfid" />
  19481. <ScalarProperty Name="Nickname" ColumnName="Nickname" />
  19482. <ScalarProperty Name="Name" ColumnName="Name" />
  19483. <ScalarProperty Name="ParentFacilityCode" ColumnName="ParentFacilityCode" />
  19484. <ScalarProperty Name="DeviceType" ColumnName="DeviceType" />
  19485. <ScalarProperty Name="ThirdClassId" ColumnName="ThirdClassId" />
  19486. <ScalarProperty Name="SecondClassId" ColumnName="SecondClassId" />
  19487. <ScalarProperty Name="FirstClassId" ColumnName="FirstClassId" />
  19488. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19489. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19490. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19491. </MappingFragment>
  19492. </EntityTypeMapping>
  19493. </EntitySetMapping>
  19494. <EntitySetMapping Name="BemsMonitoringPointHistory15minRawData">
  19495. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistory15minRawData">
  19496. <MappingFragment StoreEntitySet="BemsMonitoringPointHistory15minRawData">
  19497. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  19498. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19499. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19500. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19501. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19502. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19503. </MappingFragment>
  19504. </EntityTypeMapping>
  19505. </EntitySetMapping>
  19506. <EntitySetMapping Name="FmsDailyReport">
  19507. <EntityTypeMapping TypeName="iBemsModel.FmsDailyReport">
  19508. <MappingFragment StoreEntitySet="FmsDailyReport">
  19509. <ScalarProperty Name="ApproveDate5" ColumnName="ApproveDate5" />
  19510. <ScalarProperty Name="ApproverUserId5" ColumnName="ApproverUserId5" />
  19511. <ScalarProperty Name="ApproveDate4" ColumnName="ApproveDate4" />
  19512. <ScalarProperty Name="ApproverUserId4" ColumnName="ApproverUserId4" />
  19513. <ScalarProperty Name="ApproveDate3" ColumnName="ApproveDate3" />
  19514. <ScalarProperty Name="ApproverUserId3" ColumnName="ApproverUserId3" />
  19515. <ScalarProperty Name="ApproveDate2" ColumnName="ApproveDate2" />
  19516. <ScalarProperty Name="ApproverUserId2" ColumnName="ApproverUserId2" />
  19517. <ScalarProperty Name="RegisterDate" ColumnName="RegisterDate" />
  19518. <ScalarProperty Name="ApproveDate" ColumnName="ApproveDate" />
  19519. <ScalarProperty Name="ApproverUserId" ColumnName="ApproverUserId" />
  19520. <ScalarProperty Name="Datas" ColumnName="Datas" />
  19521. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  19522. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  19523. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  19524. <ScalarProperty Name="Contents" ColumnName="Contents" />
  19525. <ScalarProperty Name="Name" ColumnName="Name" />
  19526. <ScalarProperty Name="DailyReportId" ColumnName="DailyReportId" />
  19527. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19528. </MappingFragment>
  19529. </EntityTypeMapping>
  19530. </EntitySetMapping>
  19531. <EntitySetMapping Name="BemsPeakHistoryDaily">
  19532. <EntityTypeMapping TypeName="iBemsModel.BemsPeakHistoryDaily">
  19533. <MappingFragment StoreEntitySet="BemsPeakHistoryDaily">
  19534. <ScalarProperty Name="MinDateTime" ColumnName="MinDateTime" />
  19535. <ScalarProperty Name="MinPeakValue" ColumnName="MinPeakValue" />
  19536. <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
  19537. <ScalarProperty Name="MaxPeakValue" ColumnName="MaxPeakValue" />
  19538. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19539. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19540. </MappingFragment>
  19541. </EntityTypeMapping>
  19542. </EntitySetMapping>
  19543. <EntitySetMapping Name="FmsEquipment">
  19544. <EntityTypeMapping TypeName="iBemsModel.FmsEquipment">
  19545. <MappingFragment StoreEntitySet="FmsEquipment">
  19546. <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
  19547. <ScalarProperty Name="SupplierPhoneNo" ColumnName="SupplierPhoneNo" />
  19548. <ScalarProperty Name="SupplierName" ColumnName="SupplierName" />
  19549. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  19550. <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
  19551. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  19552. <ScalarProperty Name="Standard" ColumnName="Standard" />
  19553. <ScalarProperty Name="Unit" ColumnName="Unit" />
  19554. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  19555. <ScalarProperty Name="EquipmentTypeId" ColumnName="EquipmentTypeId" />
  19556. <ScalarProperty Name="Name" ColumnName="Name" />
  19557. <ScalarProperty Name="EquipmentId" ColumnName="EquipmentId" />
  19558. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19559. </MappingFragment>
  19560. </EntityTypeMapping>
  19561. </EntitySetMapping>
  19562. <EntitySetMapping Name="CmAlarmAdmin">
  19563. <EntityTypeMapping TypeName="iBemsModel.CmAlarmAdmin">
  19564. <MappingFragment StoreEntitySet="CmAlarmAdmin">
  19565. <ScalarProperty Name="EmailPassword" ColumnName="EmailPassword" />
  19566. <ScalarProperty Name="EmailAddress" ColumnName="EmailAddress" />
  19567. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  19568. <ScalarProperty Name="DeptCode" ColumnName="DeptCode" />
  19569. <ScalarProperty Name="UserCode" ColumnName="UserCode" />
  19570. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19571. </MappingFragment>
  19572. </EntityTypeMapping>
  19573. </EntitySetMapping>
  19574. <EntitySetMapping Name="BemsFloorStatus">
  19575. <EntityTypeMapping TypeName="iBemsModel.BemsFloorStatus">
  19576. <MappingFragment StoreEntitySet="BemsFloorStatus">
  19577. <ScalarProperty Name="FacilityName" ColumnName="FacilityName" />
  19578. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19579. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19580. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19581. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  19582. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  19583. <ScalarProperty Name="Yvalue" ColumnName="Yvalue" />
  19584. <ScalarProperty Name="Xvalue" ColumnName="Xvalue" />
  19585. <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
  19586. <ScalarProperty Name="FloorName" ColumnName="FloorName" />
  19587. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  19588. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19589. </MappingFragment>
  19590. </EntityTypeMapping>
  19591. </EntitySetMapping>
  19592. <EntitySetMapping Name="BemsReportHistory">
  19593. <EntityTypeMapping TypeName="iBemsModel.BemsReportHistory">
  19594. <MappingFragment StoreEntitySet="BemsReportHistory">
  19595. <ScalarProperty Name="FileName" ColumnName="FileName" />
  19596. <ScalarProperty Name="parts" ColumnName="parts" />
  19597. <ScalarProperty Name="Confirm2" ColumnName="Confirm2" />
  19598. <ScalarProperty Name="Confirm1" ColumnName="Confirm1" />
  19599. <ScalarProperty Name="Writer" ColumnName="Writer" />
  19600. <ScalarProperty Name="Content" ColumnName="Content" />
  19601. <ScalarProperty Name="FormatName" ColumnName="FormatName" />
  19602. <ScalarProperty Name="ReportFormatId" ColumnName="ReportFormatId" />
  19603. <ScalarProperty Name="ReportName" ColumnName="ReportName" />
  19604. <ScalarProperty Name="DateTime" ColumnName="DateTime" />
  19605. <ScalarProperty Name="Seq" ColumnName="Seq" />
  19606. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19607. </MappingFragment>
  19608. </EntityTypeMapping>
  19609. </EntitySetMapping>
  19610. <EntitySetMapping Name="CmPartner">
  19611. <EntityTypeMapping TypeName="iBemsModel.CmPartner">
  19612. <MappingFragment StoreEntitySet="CmPartner">
  19613. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19614. <ScalarProperty Name="Note" ColumnName="Note" />
  19615. <ScalarProperty Name="HomepageUri" ColumnName="HomepageUri" />
  19616. <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
  19617. <ScalarProperty Name="Address1" ColumnName="Address1" />
  19618. <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
  19619. <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
  19620. <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
  19621. <ScalarProperty Name="SalesName" ColumnName="SalesName" />
  19622. <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
  19623. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  19624. <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
  19625. <ScalarProperty Name="RegistrationNo" ColumnName="RegistrationNo" />
  19626. <ScalarProperty Name="Name" ColumnName="Name" />
  19627. <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
  19628. <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
  19629. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19630. </MappingFragment>
  19631. </EntityTypeMapping>
  19632. </EntitySetMapping>
  19633. <EntitySetMapping Name="CmPartnerType">
  19634. <EntityTypeMapping TypeName="iBemsModel.CmPartnerType">
  19635. <MappingFragment StoreEntitySet="CmPartnerType">
  19636. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19637. <ScalarProperty Name="Name" ColumnName="Name" />
  19638. <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
  19639. </MappingFragment>
  19640. </EntityTypeMapping>
  19641. </EntitySetMapping>
  19642. <EntitySetMapping Name="FmsContract">
  19643. <EntityTypeMapping TypeName="iBemsModel.FmsContract">
  19644. <MappingFragment StoreEntitySet="FmsContract">
  19645. <ScalarProperty Name="PaymentTypeId" ColumnName="PaymentTypeId" />
  19646. <ScalarProperty Name="ContractMethodId" ColumnName="ContractMethodId" />
  19647. <ScalarProperty Name="ContractTypeId" ColumnName="ContractTypeId" />
  19648. <ScalarProperty Name="ContractClassId" ColumnName="ContractClassId" />
  19649. <ScalarProperty Name="Comment" ColumnName="Comment" />
  19650. <ScalarProperty Name="CommitmentMan" ColumnName="CommitmentMan" />
  19651. <ScalarProperty Name="OwnerShipPhoneNo" ColumnName="OwnerShipPhoneNo" />
  19652. <ScalarProperty Name="OwnerShipName" ColumnName="OwnerShipName" />
  19653. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  19654. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  19655. <ScalarProperty Name="ContractDate" ColumnName="ContractDate" />
  19656. <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
  19657. <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
  19658. <ScalarProperty Name="Name" ColumnName="Name" />
  19659. <ScalarProperty Name="ContractId" ColumnName="ContractId" />
  19660. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19661. </MappingFragment>
  19662. </EntityTypeMapping>
  19663. </EntitySetMapping>
  19664. <EntitySetMapping Name="BemsMonitoringPointForecastingDayAhead">
  19665. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointForecastingDayAhead">
  19666. <MappingFragment StoreEntitySet="BemsMonitoringPointForecastingDayAhead">
  19667. <ScalarProperty Name="ForecastedValue" ColumnName="ForecastedValue" />
  19668. <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
  19669. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19670. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19671. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19672. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19673. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19674. </MappingFragment>
  19675. </EntityTypeMapping>
  19676. </EntitySetMapping>
  19677. <EntitySetMapping Name="BemsMonitoringPointForecastingHourAhead">
  19678. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointForecastingHourAhead">
  19679. <MappingFragment StoreEntitySet="BemsMonitoringPointForecastingHourAhead">
  19680. <ScalarProperty Name="ForecastedValue" ColumnName="ForecastedValue" />
  19681. <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
  19682. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19683. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19684. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19685. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19686. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19687. </MappingFragment>
  19688. </EntityTypeMapping>
  19689. </EntitySetMapping>
  19690. <EntitySetMapping Name="BemsFloorPlan">
  19691. <EntityTypeMapping TypeName="iBemsModel.BemsFloorPlan">
  19692. <MappingFragment StoreEntitySet="BemsFloorPlan">
  19693. <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
  19694. <ScalarProperty Name="Name" ColumnName="Name" />
  19695. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  19696. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19697. </MappingFragment>
  19698. </EntityTypeMapping>
  19699. </EntitySetMapping>
  19700. <EntitySetMapping Name="BemsMonitoringPointWeatherForecasted">
  19701. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointWeatherForecasted">
  19702. <MappingFragment StoreEntitySet="BemsMonitoringPointWeatherForecasted">
  19703. <ScalarProperty Name="ny" ColumnName="ny" />
  19704. <ScalarProperty Name="nx" ColumnName="nx" />
  19705. <ScalarProperty Name="ForecastedValue" ColumnName="ForecastedValue" />
  19706. <ScalarProperty Name="ForecastedDateTime" ColumnName="ForecastedDateTime" />
  19707. <ScalarProperty Name="BaseDateTime" ColumnName="BaseDateTime" />
  19708. <ScalarProperty Name="Category" ColumnName="Category" />
  19709. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19710. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19711. </MappingFragment>
  19712. </EntityTypeMapping>
  19713. </EntitySetMapping>
  19714. <EntitySetMapping Name="BemsIceThermalStorageSimulation">
  19715. <EntityTypeMapping TypeName="iBemsModel.BemsIceThermalStorageSimulation">
  19716. <MappingFragment StoreEntitySet="BemsIceThermalStorageSimulation">
  19717. <ScalarProperty Name="SimulationCase" ColumnName="SimulationCase" />
  19718. <ScalarProperty Name="SimulationValue" ColumnName="SimulationValue" />
  19719. <ScalarProperty Name="TargetDateTime" ColumnName="TargetDateTime" />
  19720. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19721. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19722. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19723. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19724. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19725. </MappingFragment>
  19726. </EntityTypeMapping>
  19727. </EntitySetMapping>
  19728. <EntitySetMapping Name="BemsConfigData">
  19729. <EntityTypeMapping TypeName="iBemsModel.BemsConfigData">
  19730. <MappingFragment StoreEntitySet="BemsConfigData">
  19731. <ScalarProperty Name="TargetDBName" ColumnName="TargetDBName" />
  19732. <ScalarProperty Name="TargetDBUserPW" ColumnName="TargetDBUserPW" />
  19733. <ScalarProperty Name="TargetDBUserID" ColumnName="TargetDBUserID" />
  19734. <ScalarProperty Name="TargetDBIP" ColumnName="TargetDBIP" />
  19735. <ScalarProperty Name="LoadDBName" ColumnName="LoadDBName" />
  19736. <ScalarProperty Name="LoadDBUserPW" ColumnName="LoadDBUserPW" />
  19737. <ScalarProperty Name="LoadDBUserID" ColumnName="LoadDBUserID" />
  19738. <ScalarProperty Name="LoadDBIP" ColumnName="LoadDBIP" />
  19739. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19740. </MappingFragment>
  19741. </EntityTypeMapping>
  19742. </EntitySetMapping>
  19743. </EntityContainerMapping>
  19744. </Mapping>
  19745. </edmx:Mappings>
  19746. </edmx:Runtime>
  19747. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  19748. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  19749. <Connection>
  19750. <DesignerInfoPropertySet>
  19751. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  19752. </DesignerInfoPropertySet>
  19753. </Connection>
  19754. <Options>
  19755. <DesignerInfoPropertySet>
  19756. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  19757. <DesignerProperty Name="EnablePluralization" Value="false" />
  19758. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  19759. <DesignerProperty Name="UseLegacyProvider" Value="true" />
  19760. <DesignerProperty Name="CodeGenerationStrategy" Value="없음" />
  19761. </DesignerInfoPropertySet>
  19762. </Options>
  19763. <!-- Diagram content (shape and connector positions) -->
  19764. <Diagrams></Diagrams>
  19765. </Designer>
  19766. </edmx:Edmx>