123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028 |
- <?xml version="1.0" encoding="utf-8"?>
- <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">
- <EntityType Name="BemsAlarmGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AlarmGroupId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="AlarmGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsAlarmGroupUser">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AlarmGroupId" />
- <PropertyRef Name="UserId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="AlarmGroupId" Type="int" Nullable="false" />
- <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsAlarmLog">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="FormulaId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="FormulaId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="CurrentValue" Type="float" />
- <Property Name="SMSResult" Type="nvarchar" MaxLength="2" />
- <Property Name="EmailResult" Type="nvarchar" MaxLength="2" />
- <Property Name="Conform" Type="bit" />
- </EntityType>
- <EntityType Name="BemsAlarmSetting">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="FormulaId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="FormulaId" Type="int" Nullable="false" />
- <Property Name="FacilityName" Type="nvarchar" MaxLength="80" Nullable="false" />
- <Property Name="PointName" Type="nvarchar" MaxLength="64" Nullable="false" />
- <Property Name="UseUpperLimit" Type="bit" Nullable="false" />
- <Property Name="UpperLimit" Type="float" />
- <Property Name="UseLowerLimit" Type="bit" Nullable="false" />
- <Property Name="LowerLimit" Type="float" />
- <Property Name="UseAlarm" Type="bit" Nullable="false" />
- <Property Name="UseSMS" Type="bit" Nullable="false" />
- <Property Name="UseEmail" Type="bit" Nullable="false" />
- <Property Name="AlarmGroupName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Content" Type="nvarchar" MaxLength="1000" />
- </EntityType>
- <EntityType Name="BemsAnalysisType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnalysisType" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="AnalysisType" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" />
- </EntityType>
- <EntityType Name="BemsChartInfo">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="ChartId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="ChartId" Type="int" Nullable="false" />
- <Property Name="LAxTitle" Type="nvarchar" MaxLength="64" Nullable="false" />
- <Property Name="RAxTitle" Type="nvarchar" MaxLength="64" />
- <Property Name="XAxTitle" Type="nvarchar" MaxLength="64" />
- <Property Name="XSFmId" Type="int" />
- <Property Name="XSType" Type="nvarchar" MaxLength="16" />
- <Property Name="LSFmId1" Type="int" Nullable="false" />
- <Property Name="LSName1" Type="nvarchar" MaxLength="64" Nullable="false" />
- <Property Name="LSType1" Type="nvarchar" MaxLength="16" Nullable="false" />
- <Property Name="LSFmId2" Type="int" />
- <Property Name="LSName2" Type="nvarchar" MaxLength="64" />
- <Property Name="LSType2" Type="nvarchar" MaxLength="16" />
- <Property Name="LSFmId3" Type="int" />
- <Property Name="LSName3" Type="nvarchar" MaxLength="64" />
- <Property Name="LSType3" Type="nvarchar" MaxLength="16" />
- <Property Name="LSFmId4" Type="int" />
- <Property Name="LSName4" Type="nvarchar" MaxLength="64" />
- <Property Name="LSType4" Type="nvarchar" MaxLength="16" />
- <Property Name="RSFmId1" Type="int" />
- <Property Name="RSName1" Type="nvarchar" MaxLength="64" />
- <Property Name="RSType1" Type="nvarchar" MaxLength="16" />
- <Property Name="RSFmId2" Type="int" />
- <Property Name="RSName2" Type="nvarchar" MaxLength="64" />
- <Property Name="RSType2" Type="nvarchar" MaxLength="16" />
- <Property Name="RSFmId3" Type="int" />
- <Property Name="RSName3" Type="nvarchar" MaxLength="64" />
- <Property Name="RSType3" Type="nvarchar" MaxLength="16" />
- <Property Name="RSFmId4" Type="int" />
- <Property Name="RSName4" Type="nvarchar" MaxLength="64" />
- <Property Name="RSType4" Type="nvarchar" MaxLength="16" />
- <Property Name="Title" Type="nvarchar" MaxLength="64" Nullable="false" />
- <Property Name="UseX" Type="bit" />
- <Property Name="UseLAxMinMax" Type="bit" />
- <Property Name="UseRAxMinMax" Type="bit" />
- <Property Name="UseXAxMinMax" Type="bit" />
- <Property Name="LAxMin" Type="float" />
- <Property Name="LAxMax" Type="float" />
- <Property Name="RAxMin" Type="float" />
- <Property Name="RAxMax" Type="float" />
- <Property Name="XAxMin" Type="float" />
- <Property Name="XAxMax" Type="float" />
- <Property Name="Palette" Type="nvarchar" MaxLength="32" Nullable="false" />
- <Property Name="UseChart" Type="bit" />
- <Property Name="UseLCTLine" Type="bit" Nullable="false" />
- <Property Name="LCTLineTitle" Type="nvarchar" MaxLength="64" />
- <Property Name="LCTLineValue" Type="float" />
- <Property Name="UseRCTLine" Type="bit" Nullable="false" />
- <Property Name="RCTLineTitle" Type="nvarchar" MaxLength="64" />
- <Property Name="RCTLineValue" Type="float" />
- </EntityType>
- <EntityType Name="BemsConfigData">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="LoadDBIP" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="LoadDBUserID" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="LoadDBUserPW" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="LoadDBName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="TargetDBIP" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="TargetDBUserID" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="TargetDBUserPW" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="TargetDBName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="InitialDate" Type="datetime" Nullable="false" />
- <Property Name="LinearFilterLength" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="NonlinearTestSize" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsControlAHUTempConfig">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="MaxTemperature" Type="float" Nullable="false" />
- <Property Name="MinTemperature" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsControlPointHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreateDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="CreateDateTime" Type="datetime" Nullable="false" />
- <Property Name="ControlValue" Type="float" Nullable="false" />
- <Property Name="WriteServiceName" Type="nvarchar" MaxLength="64" />
- <Property Name="ActionDateTime" Type="datetime" />
- </EntityType>
- <EntityType Name="BemsEnergyConfigPercentMonth">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="Month" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Year" Type="int" Nullable="false" />
- <Property Name="Month" Type="int" Nullable="false" />
- <Property Name="Electricity" Type="float" />
- <Property Name="Gas" Type="float" />
- <Property Name="Water" Type="float" />
- </EntityType>
- <EntityType Name="BemsEnergyConfigPercentWeek">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="Week" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Year" Type="int" Nullable="false" />
- <Property Name="Week" Type="int" Nullable="false" />
- <Property Name="Electricity" Type="float" />
- <Property Name="Gas" Type="float" />
- <Property Name="Water" Type="float" />
- </EntityType>
- <EntityType Name="BemsEnergyCost">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PowerConsumption1" Type="float" />
- <Property Name="PowerConsumption2" Type="float" />
- <Property Name="GasConsumption" Type="float" />
- <Property Name="GasHeatQuantity" Type="float" />
- <Property Name="PowerPriceTypeId" Type="int" />
- <Property Name="GasPriceTypeId" Type="int" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="BemsEnergyDaily">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="ServiceTypeId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="CreatedDate" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" Nullable="false" />
- <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="CreatedDate" Type="date" Nullable="false" />
- <Property Name="Prediction" Type="float" />
- <Property Name="Measurement" Type="float" />
- <Property Name="Goal" Type="float" />
- <Property Name="Prediction_Regression" Type="float" />
- <Property Name="MeanT" Type="float" />
- <Property Name="HDD" Type="float" />
- <Property Name="CDD" Type="float" />
- </EntityType>
- <EntityType Name="BemsEnergyDailyRegression">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Weekday_Power" Type="nvarchar" MaxLength="50" />
- <Property Name="Weekday_Power_Temp" Type="nvarchar" MaxLength="50" />
- <Property Name="Weekday_Gas" Type="nvarchar" MaxLength="50" />
- <Property Name="Weekday_Gas_Temp" Type="nvarchar" MaxLength="50" />
- <Property Name="Weekday_Water" Type="nvarchar" MaxLength="50" />
- <Property Name="Weekday_Water_Temp" Type="nvarchar" MaxLength="50" />
- <Property Name="Holiday_Power" Type="nvarchar" MaxLength="50" />
- <Property Name="Holiday_Power_Temp" Type="nvarchar" MaxLength="50" />
- <Property Name="Holiday_Gas" Type="nvarchar" MaxLength="50" />
- <Property Name="Holiday_Gas_Temp" Type="nvarchar" MaxLength="50" />
- <Property Name="Holiday_Water" Type="nvarchar" MaxLength="50" />
- <Property Name="Holiday_Water_Temp" Type="nvarchar" MaxLength="50" />
- <Property Name="IsRegression" Type="bit" />
- </EntityType>
- <EntityType Name="BemsFacilityType">
- <Key>
- <PropertyRef Name="FacilityTypeId" />
- </Key>
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" />
- </EntityType>
- <EntityType Name="BemsFactorCo2">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- </Key>
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="Factor" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFactorToe">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- </Key>
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="TotalFactor" Type="float" Nullable="false" />
- <Property Name="PureFactor" Type="float" Nullable="false" />
- <Property Name="kcal" Type="float" />
- </EntityType>
- <EntityType Name="BemsFloorPlan">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Name" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FloorId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="ImageFileId" Type="int" />
- </EntityType>
- <EntityType Name="BemsFloorStatus">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="FloorName" />
- <PropertyRef Name="ImageFileId" />
- <PropertyRef Name="Xvalue" />
- <PropertyRef Name="Yvalue" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FloorId" Type="int" Nullable="false" />
- <Property Name="FloorName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="ImageFileId" Type="int" Nullable="false" />
- <Property Name="Xvalue" Type="int" Nullable="false" />
- <Property Name="Yvalue" Type="int" Nullable="false" />
- <Property Name="ZoneId" Type="int" />
- <Property Name="ServiceTypeId" Type="int" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="FacilityName" Type="nvarchar" MaxLength="64" />
- </EntityType>
- <EntityType Name="BemsFormula">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="FormulaId" Type="int" Nullable="false" />
- <Property Name="Formula" Type="nvarchar" MaxLength="120" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFormulaBase">
- <Key>
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FormulaId" />
- </Key>
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FormulaId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFormulaParameter">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- <PropertyRef Name="ParameterId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="FormulaId" Type="int" Nullable="false" />
- <Property Name="ParameterId" Type="nchar" MaxLength="1" Nullable="false" />
- <Property Name="ParameterFacilityCode" Type="int" Nullable="false" />
- <Property Name="ParameterPropertyId" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFormulaTable">
- <Key>
- <PropertyRef Name="TableId" />
- </Key>
- <Property Name="TableId" Type="int" Nullable="false" />
- <Property Name="FunctionName" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="80" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFormulaTableValue">
- <Key>
- <PropertyRef Name="TableId" />
- <PropertyRef Name="XValue" />
- </Key>
- <Property Name="TableId" Type="int" Nullable="false" />
- <Property Name="XValue" Type="float" Nullable="false" />
- <Property Name="YValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFuelType">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- </Key>
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" />
- </EntityType>
- <EntityType Name="BemsIceThermalStorageSimulation">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- <PropertyRef Name="TargetDateTime" />
- <PropertyRef Name="SimulationCase" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
- <Property Name="SimulationValue" Type="float" />
- <Property Name="SimulationCase" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsMonitoringPoint">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="ValueType" Type="int" Nullable="false" />
- <Property Name="ServiceTypeId" Type="smallint" />
- <Property Name="FuelTypeId" Type="smallint" />
- <Property Name="Name" Type="nvarchar" MaxLength="64" />
- <Property Name="Description" Type="nvarchar" MaxLength="256" />
- <Property Name="BuildingId" Type="int" />
- <Property Name="FloorId" Type="int" />
- <Property Name="ZoneId" Type="int" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointBaseData">
- <Key>
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="ValueType" Type="int" Nullable="false" />
- <Property Name="IsAccumulated" Type="bit" Nullable="false" />
- <Property Name="ServiceTypeId" Type="smallint" />
- <Property Name="FuelTypeId" Type="smallint" />
- <Property Name="Name" Type="nvarchar" MaxLength="64" />
- <Property Name="Description" Type="nvarchar" MaxLength="256" />
- <Property Name="IsSampled" Type="bit" />
- <Property Name="IsConverted" Type="bit" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointConfig">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="IsAccumulated" Type="bit" Nullable="false" />
- <Property Name="IsSampled" Type="bit" Nullable="false" />
- <Property Name="SaveMode" Type="int" Nullable="false" />
- <Property Name="ControlPointName" Type="nvarchar" MaxLength="200" />
- <Property Name="IsConverted" Type="bit" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointForecastingDayAhead">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- <PropertyRef Name="TargetDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
- <Property Name="ForecastedValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointForecastingHourAhead">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- <PropertyRef Name="TargetDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
- <Property Name="ForecastedValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistory15min">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="CurrentValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistory15minRawData">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="CurrentValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistoryDaily">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="DailyValue" Type="float" Nullable="false" />
- <Property Name="MaxValue" Type="float" />
- <Property Name="MinValue" Type="float" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistoryHourly">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="CurrentValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointToAnlaysisType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="AnalysisType" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="AnalysisType" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointWeatherForecasted">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CreatedDateTime" />
- <PropertyRef Name="Category" />
- <PropertyRef Name="BaseDateTime" />
- <PropertyRef Name="ForecastedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="Category" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="BaseDateTime" Type="datetime" Nullable="false" />
- <Property Name="ForecastedDateTime" Type="datetime" Nullable="false" />
- <Property Name="ForecastedValue" Type="float" Nullable="false" />
- <Property Name="nx" Type="int" Nullable="false" />
- <Property Name="ny" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsNoticePriceBase">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ApplyDate" />
- <PropertyRef Name="ContractType" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="ApplyDate" Type="date" Nullable="false" />
- <Property Name="ContractType" Type="smallint" Nullable="false" />
- <Property Name="PrimaryPrice" Type="int" />
- <Property Name="SecondaryPrice" Type="int" />
- </EntityType>
- <EntityType Name="BemsNoticePriceContractType">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Key>
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="ContractType" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsNoticePriceDetail">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ApplyDate" />
- <PropertyRef Name="ContractType" />
- <PropertyRef Name="DataId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="ApplyDate" Type="date" Nullable="false" />
- <Property Name="ContractType" Type="smallint" Nullable="false" />
- <Property Name="DataId" Type="smallint" Nullable="false" />
- <Property Name="P01" Type="float" />
- <Property Name="P02" Type="float" />
- <Property Name="P03" Type="float" />
- <Property Name="P04" Type="float" />
- <Property Name="P05" Type="float" />
- <Property Name="P06" Type="float" />
- <Property Name="P07" Type="float" />
- <Property Name="P08" Type="float" />
- <Property Name="P09" Type="float" />
- <Property Name="P10" Type="float" />
- <Property Name="P11" Type="float" />
- <Property Name="P12" Type="float" />
- </EntityType>
- <EntityType Name="BemsPeakFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaxDateTime" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsPeakHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="CurrentValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsPeakHistoryDaily">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="MaxPeakValue" Type="float" />
- <Property Name="MaxDateTime" Type="datetime" />
- <Property Name="MinPeakValue" Type="float" />
- <Property Name="MinDateTime" Type="datetime" />
- </EntityType>
- <EntityType Name="BemsPeakInfo">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
- <Property Name="MaxPeakValue" Type="float" Nullable="false" />
- <Property Name="MinDateTime" Type="datetime" Nullable="false" />
- <Property Name="MinPeakValue" Type="float" Nullable="false" />
- <Property Name="todayMaxPeakValue" Type="float" Nullable="false" />
- <Property Name="todayMinPeakValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsPeopleIncrease">
- <Key>
- <PropertyRef Name="Date" />
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="m1" Type="nvarchar" MaxLength="50" />
- <Property Name="m2" Type="nvarchar" MaxLength="50" />
- <Property Name="m3" Type="nvarchar" MaxLength="50" />
- <Property Name="m4" Type="nvarchar" MaxLength="50" />
- <Property Name="m5" Type="nvarchar" MaxLength="50" />
- <Property Name="m6" Type="nvarchar" MaxLength="50" />
- <Property Name="m7" Type="nvarchar" MaxLength="50" />
- <Property Name="m8" Type="nvarchar" MaxLength="50" />
- <Property Name="m9" Type="nvarchar" MaxLength="50" />
- <Property Name="m10" Type="nvarchar" MaxLength="50" />
- <Property Name="m11" Type="nvarchar" MaxLength="50" />
- <Property Name="m12" Type="nvarchar" MaxLength="50" />
- </EntityType>
- <EntityType Name="BemsPriceCode">
- <Key>
- <PropertyRef Name="PriceCode" />
- </Key>
- <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
- <Property Name="PriceCodeDesc" Type="varchar" MaxLength="200" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="Unit" Type="varchar" MaxLength="20" />
- </EntityType>
- <EntityType Name="BemsPriceFormula">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FormulaId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PriceTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FormulaId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="UseYN" Type="nvarchar" MaxLength="1" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsPriceMeta">
- <Key>
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="PublishDate" />
- </Key>
- <Property Name="PriceTypeId" Type="int" Nullable="false" />
- <Property Name="PublishDate" Type="datetime" Nullable="false" />
- <Property Name="BasePrice" Type="int" />
- <Property Name="01_00" Type="float" />
- <Property Name="01_01" Type="float" />
- <Property Name="01_02" Type="float" />
- <Property Name="01_03" Type="float" />
- <Property Name="01_04" Type="float" />
- <Property Name="01_05" Type="float" />
- <Property Name="01_06" Type="float" />
- <Property Name="01_07" Type="float" />
- <Property Name="01_08" Type="float" />
- <Property Name="01_09" Type="float" />
- <Property Name="01_10" Type="float" />
- <Property Name="01_11" Type="float" />
- <Property Name="01_12" Type="float" />
- <Property Name="01_13" Type="float" />
- <Property Name="01_14" Type="float" />
- <Property Name="01_15" Type="float" />
- <Property Name="01_16" Type="float" />
- <Property Name="01_17" Type="float" />
- <Property Name="01_18" Type="float" />
- <Property Name="01_19" Type="float" />
- <Property Name="01_20" Type="float" />
- <Property Name="01_21" Type="float" />
- <Property Name="01_22" Type="float" />
- <Property Name="01_23" Type="float" />
- <Property Name="02_00" Type="float" />
- <Property Name="02_01" Type="float" />
- <Property Name="02_02" Type="float" />
- <Property Name="02_03" Type="float" />
- <Property Name="02_04" Type="float" />
- <Property Name="02_05" Type="float" />
- <Property Name="02_06" Type="float" />
- <Property Name="02_07" Type="float" />
- <Property Name="02_08" Type="float" />
- <Property Name="02_09" Type="float" />
- <Property Name="02_10" Type="float" />
- <Property Name="02_11" Type="float" />
- <Property Name="02_12" Type="float" />
- <Property Name="02_13" Type="float" />
- <Property Name="02_14" Type="float" />
- <Property Name="02_15" Type="float" />
- <Property Name="02_16" Type="float" />
- <Property Name="02_17" Type="float" />
- <Property Name="02_18" Type="float" />
- <Property Name="02_19" Type="float" />
- <Property Name="02_20" Type="float" />
- <Property Name="02_21" Type="float" />
- <Property Name="02_22" Type="float" />
- <Property Name="02_23" Type="float" />
- <Property Name="03_00" Type="float" />
- <Property Name="03_01" Type="float" />
- <Property Name="03_02" Type="float" />
- <Property Name="03_03" Type="float" />
- <Property Name="03_04" Type="float" />
- <Property Name="03_05" Type="float" />
- <Property Name="03_06" Type="float" />
- <Property Name="03_07" Type="float" />
- <Property Name="03_08" Type="float" />
- <Property Name="03_09" Type="float" />
- <Property Name="03_10" Type="float" />
- <Property Name="03_11" Type="float" />
- <Property Name="03_12" Type="float" />
- <Property Name="03_13" Type="float" />
- <Property Name="03_14" Type="float" />
- <Property Name="03_15" Type="float" />
- <Property Name="03_16" Type="float" />
- <Property Name="03_17" Type="float" />
- <Property Name="03_18" Type="float" />
- <Property Name="03_19" Type="float" />
- <Property Name="03_20" Type="float" />
- <Property Name="03_21" Type="float" />
- <Property Name="03_22" Type="float" />
- <Property Name="03_23" Type="float" />
- <Property Name="04_00" Type="float" />
- <Property Name="04_01" Type="float" />
- <Property Name="04_02" Type="float" />
- <Property Name="04_03" Type="float" />
- <Property Name="04_04" Type="float" />
- <Property Name="04_05" Type="float" />
- <Property Name="04_06" Type="float" />
- <Property Name="04_07" Type="float" />
- <Property Name="04_08" Type="float" />
- <Property Name="04_09" Type="float" />
- <Property Name="04_10" Type="float" />
- <Property Name="04_11" Type="float" />
- <Property Name="04_12" Type="float" />
- <Property Name="04_13" Type="float" />
- <Property Name="04_14" Type="float" />
- <Property Name="04_15" Type="float" />
- <Property Name="04_16" Type="float" />
- <Property Name="04_17" Type="float" />
- <Property Name="04_18" Type="float" />
- <Property Name="04_19" Type="float" />
- <Property Name="04_20" Type="float" />
- <Property Name="04_21" Type="float" />
- <Property Name="04_22" Type="float" />
- <Property Name="04_23" Type="float" />
- <Property Name="05_00" Type="float" />
- <Property Name="05_01" Type="float" />
- <Property Name="05_02" Type="float" />
- <Property Name="05_03" Type="float" />
- <Property Name="05_04" Type="float" />
- <Property Name="05_05" Type="float" />
- <Property Name="05_06" Type="float" />
- <Property Name="05_07" Type="float" />
- <Property Name="05_08" Type="float" />
- <Property Name="05_09" Type="float" />
- <Property Name="05_10" Type="float" />
- <Property Name="05_11" Type="float" />
- <Property Name="05_12" Type="float" />
- <Property Name="05_13" Type="float" />
- <Property Name="05_14" Type="float" />
- <Property Name="05_15" Type="float" />
- <Property Name="05_16" Type="float" />
- <Property Name="05_17" Type="float" />
- <Property Name="05_18" Type="float" />
- <Property Name="05_19" Type="float" />
- <Property Name="05_20" Type="float" />
- <Property Name="05_21" Type="float" />
- <Property Name="05_22" Type="float" />
- <Property Name="05_23" Type="float" />
- <Property Name="06_00" Type="float" />
- <Property Name="06_01" Type="float" />
- <Property Name="06_02" Type="float" />
- <Property Name="06_03" Type="float" />
- <Property Name="06_04" Type="float" />
- <Property Name="06_05" Type="float" />
- <Property Name="06_06" Type="float" />
- <Property Name="06_07" Type="float" />
- <Property Name="06_08" Type="float" />
- <Property Name="06_09" Type="float" />
- <Property Name="06_10" Type="float" />
- <Property Name="06_11" Type="float" />
- <Property Name="06_12" Type="float" />
- <Property Name="06_13" Type="float" />
- <Property Name="06_14" Type="float" />
- <Property Name="06_15" Type="float" />
- <Property Name="06_16" Type="float" />
- <Property Name="06_17" Type="float" />
- <Property Name="06_18" Type="float" />
- <Property Name="06_19" Type="float" />
- <Property Name="06_20" Type="float" />
- <Property Name="06_21" Type="float" />
- <Property Name="06_22" Type="float" />
- <Property Name="06_23" Type="float" />
- <Property Name="07_00" Type="float" />
- <Property Name="07_01" Type="float" />
- <Property Name="07_02" Type="float" />
- <Property Name="07_03" Type="float" />
- <Property Name="07_04" Type="float" />
- <Property Name="07_05" Type="float" />
- <Property Name="07_06" Type="float" />
- <Property Name="07_07" Type="float" />
- <Property Name="07_08" Type="float" />
- <Property Name="07_09" Type="float" />
- <Property Name="07_10" Type="float" />
- <Property Name="07_11" Type="float" />
- <Property Name="07_12" Type="float" />
- <Property Name="07_13" Type="float" />
- <Property Name="07_14" Type="float" />
- <Property Name="07_15" Type="float" />
- <Property Name="07_16" Type="float" />
- <Property Name="07_17" Type="float" />
- <Property Name="07_18" Type="float" />
- <Property Name="07_19" Type="float" />
- <Property Name="07_20" Type="float" />
- <Property Name="07_21" Type="float" />
- <Property Name="07_22" Type="float" />
- <Property Name="07_23" Type="float" />
- <Property Name="08_00" Type="float" />
- <Property Name="08_01" Type="float" />
- <Property Name="08_02" Type="float" />
- <Property Name="08_03" Type="float" />
- <Property Name="08_04" Type="float" />
- <Property Name="08_05" Type="float" />
- <Property Name="08_06" Type="float" />
- <Property Name="08_07" Type="float" />
- <Property Name="08_08" Type="float" />
- <Property Name="08_09" Type="float" />
- <Property Name="08_10" Type="float" />
- <Property Name="08_11" Type="float" />
- <Property Name="08_12" Type="float" />
- <Property Name="08_13" Type="float" />
- <Property Name="08_14" Type="float" />
- <Property Name="08_15" Type="float" />
- <Property Name="08_16" Type="float" />
- <Property Name="08_17" Type="float" />
- <Property Name="08_18" Type="float" />
- <Property Name="08_19" Type="float" />
- <Property Name="08_20" Type="float" />
- <Property Name="08_21" Type="float" />
- <Property Name="08_22" Type="float" />
- <Property Name="08_23" Type="float" />
- <Property Name="09_00" Type="float" />
- <Property Name="09_01" Type="float" />
- <Property Name="09_02" Type="float" />
- <Property Name="09_03" Type="float" />
- <Property Name="09_04" Type="float" />
- <Property Name="09_05" Type="float" />
- <Property Name="09_06" Type="float" />
- <Property Name="09_07" Type="float" />
- <Property Name="09_08" Type="float" />
- <Property Name="09_09" Type="float" />
- <Property Name="09_10" Type="float" />
- <Property Name="09_11" Type="float" />
- <Property Name="09_12" Type="float" />
- <Property Name="09_13" Type="float" />
- <Property Name="09_14" Type="float" />
- <Property Name="09_15" Type="float" />
- <Property Name="09_16" Type="float" />
- <Property Name="09_17" Type="float" />
- <Property Name="09_18" Type="float" />
- <Property Name="09_19" Type="float" />
- <Property Name="09_20" Type="float" />
- <Property Name="09_21" Type="float" />
- <Property Name="09_22" Type="float" />
- <Property Name="09_23" Type="float" />
- <Property Name="10_00" Type="float" />
- <Property Name="10_01" Type="float" />
- <Property Name="10_02" Type="float" />
- <Property Name="10_03" Type="float" />
- <Property Name="10_04" Type="float" />
- <Property Name="10_05" Type="float" />
- <Property Name="10_06" Type="float" />
- <Property Name="10_07" Type="float" />
- <Property Name="10_08" Type="float" />
- <Property Name="10_09" Type="float" />
- <Property Name="10_10" Type="float" />
- <Property Name="10_11" Type="float" />
- <Property Name="10_12" Type="float" />
- <Property Name="10_13" Type="float" />
- <Property Name="10_14" Type="float" />
- <Property Name="10_15" Type="float" />
- <Property Name="10_16" Type="float" />
- <Property Name="10_17" Type="float" />
- <Property Name="10_18" Type="float" />
- <Property Name="10_19" Type="float" />
- <Property Name="10_20" Type="float" />
- <Property Name="10_21" Type="float" />
- <Property Name="10_22" Type="float" />
- <Property Name="10_23" Type="float" />
- <Property Name="11_00" Type="float" />
- <Property Name="11_01" Type="float" />
- <Property Name="11_02" Type="float" />
- <Property Name="11_03" Type="float" />
- <Property Name="11_04" Type="float" />
- <Property Name="11_05" Type="float" />
- <Property Name="11_06" Type="float" />
- <Property Name="11_07" Type="float" />
- <Property Name="11_08" Type="float" />
- <Property Name="11_09" Type="float" />
- <Property Name="11_10" Type="float" />
- <Property Name="11_11" Type="float" />
- <Property Name="11_12" Type="float" />
- <Property Name="11_13" Type="float" />
- <Property Name="11_14" Type="float" />
- <Property Name="11_15" Type="float" />
- <Property Name="11_16" Type="float" />
- <Property Name="11_17" Type="float" />
- <Property Name="11_18" Type="float" />
- <Property Name="11_19" Type="float" />
- <Property Name="11_20" Type="float" />
- <Property Name="11_21" Type="float" />
- <Property Name="11_22" Type="float" />
- <Property Name="11_23" Type="float" />
- <Property Name="12_00" Type="float" />
- <Property Name="12_01" Type="float" />
- <Property Name="12_02" Type="float" />
- <Property Name="12_03" Type="float" />
- <Property Name="12_04" Type="float" />
- <Property Name="12_05" Type="float" />
- <Property Name="12_06" Type="float" />
- <Property Name="12_07" Type="float" />
- <Property Name="12_08" Type="float" />
- <Property Name="12_09" Type="float" />
- <Property Name="12_10" Type="float" />
- <Property Name="12_11" Type="float" />
- <Property Name="12_12" Type="float" />
- <Property Name="12_13" Type="float" />
- <Property Name="12_14" Type="float" />
- <Property Name="12_15" Type="float" />
- <Property Name="12_16" Type="float" />
- <Property Name="12_17" Type="float" />
- <Property Name="12_18" Type="float" />
- <Property Name="12_19" Type="float" />
- <Property Name="12_20" Type="float" />
- <Property Name="12_21" Type="float" />
- <Property Name="12_22" Type="float" />
- <Property Name="12_23" Type="float" />
- </EntityType>
- <EntityType Name="BemsPriceType">
- <Key>
- <PropertyRef Name="PriceTypeId" />
- </Key>
- <Property Name="PriceTypeId" Type="int" Nullable="false" />
- <Property Name="PriceTypeIdDesc" Type="varchar" MaxLength="200" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsRentalRate">
- <Key>
- <PropertyRef Name="Date" />
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="m1" Type="nvarchar" MaxLength="50" />
- <Property Name="m2" Type="nvarchar" MaxLength="50" />
- <Property Name="m3" Type="nvarchar" MaxLength="50" />
- <Property Name="m4" Type="nvarchar" MaxLength="50" />
- <Property Name="m5" Type="nvarchar" MaxLength="50" />
- <Property Name="m6" Type="nvarchar" MaxLength="50" />
- <Property Name="m7" Type="nvarchar" MaxLength="50" />
- <Property Name="m8" Type="nvarchar" MaxLength="50" />
- <Property Name="m9" Type="nvarchar" MaxLength="50" />
- <Property Name="m10" Type="nvarchar" MaxLength="50" />
- <Property Name="m11" Type="nvarchar" MaxLength="50" />
- <Property Name="m12" Type="nvarchar" MaxLength="50" />
- </EntityType>
- <EntityType Name="BemsReportFormat">
- <Key>
- <PropertyRef Name="ReportFormatId" />
- <PropertyRef Name="parts" />
- </Key>
- <Property Name="ReportFormatId" Type="int" Nullable="false" />
- <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
- <Property Name="Content" Type="varchar(max)" />
- <Property Name="parts" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsReportHistory">
- <Key>
- <PropertyRef Name="Seq" />
- <PropertyRef Name="DateTime" />
- <PropertyRef Name="ReportFormatId" />
- <PropertyRef Name="parts" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Seq" Type="int" Nullable="false" />
- <Property Name="DateTime" Type="datetime" Nullable="false" />
- <Property Name="ReportName" Type="varchar" MaxLength="200" Nullable="false" />
- <Property Name="ReportFormatId" Type="int" Nullable="false" />
- <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
- <Property Name="Content" Type="varchar(max)" />
- <Property Name="Writer" Type="varchar" MaxLength="50" />
- <Property Name="Confirm1" Type="varchar" MaxLength="50" />
- <Property Name="Confirm2" Type="varchar" MaxLength="50" />
- <Property Name="parts" Type="int" Nullable="false" />
- <Property Name="FileName" Type="nvarchar" MaxLength="100" />
- </EntityType>
- <EntityType Name="BemsServiceType">
- <Key>
- <PropertyRef Name="ServiceTypeId" />
- </Key>
- <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" />
- </EntityType>
- <EntityType Name="BemsSitePrice">
- <Key>
- <PropertyRef Name="SiteID" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="PriceCode" />
- </Key>
- <Property Name="SiteID" Type="int" Nullable="false" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="PriceTypeId" Type="int" Nullable="false" />
- <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
- <Property Name="UseYN" Type="varchar" MaxLength="1" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsSitePriceHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="PriceCode" />
- <PropertyRef Name="PayDate" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="PriceTypeId" Type="int" Nullable="false" />
- <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
- <Property Name="PriceValue" Type="varchar" MaxLength="200" />
- <Property Name="PayDate" Type="varchar" MaxLength="6" Nullable="false" />
- <Property Name="StartDate" Type="datetime" />
- <Property Name="EndDate" Type="datetime" />
- <Property Name="PayCharge" Type="varchar" MaxLength="200" />
- </EntityType>
- <EntityType Name="CmAlarmAdmin">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="UserCode" Type="nvarchar" MaxLength="50" />
- <Property Name="DeptCode" Type="nvarchar" MaxLength="50" />
- <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
- <Property Name="EmailAddress" Type="nvarchar" MaxLength="50" />
- <Property Name="EmailPassword" Type="nvarchar" MaxLength="50" />
- </EntityType>
- <EntityType Name="CmAnnouncement">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnnouncementId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="AnnouncementId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="FileId" Type="int" />
- <Property Name="AddDate" Type="datetime" Nullable="false" />
- <Property Name="UpdateDate" Type="datetime" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="ReadCount" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="CmBuilding">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="FileId" Type="int" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="SortOrderNo" Type="int" />
- </EntityType>
- <EntityType Name="CmBusinessField">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmCompany">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="CompanyTypeId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
- <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
- <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
- <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
- <Property Name="Address1" Type="nvarchar" MaxLength="50" />
- <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
- <Property Name="Homepage" Type="nvarchar" MaxLength="100" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmCompanyType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CompanyTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmDepartment">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CompanyId" Type="int" Nullable="false" />
- <Property Name="DepartmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="ShortName" Type="nvarchar" MaxLength="50" />
- <Property Name="FaxNo" Type="nvarchar" MaxLength="50" />
- <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="FirstClassId" Type="int" />
- <Property Name="SecondClassId" Type="int" />
- <Property Name="ThirdClassId" Type="int" />
- <Property Name="DeviceType" Type="nvarchar" MaxLength="48" />
- <Property Name="ParentFacilityCode" Type="int" />
- <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
- <Property Name="Nickname" Type="nvarchar" MaxLength="40" />
- <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
- <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
- <Property Name="ManufactureDate" Type="date" />
- <Property Name="ManufactureSerial" Type="nvarchar" MaxLength="20" />
- <Property Name="ManufactureModel" Type="nvarchar" MaxLength="40" />
- <Property Name="Supplier" Type="nvarchar" MaxLength="40" />
- <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="BuildingId" Type="int" />
- <Property Name="FloorId" Type="int" />
- <Property Name="ZoneId" Type="int" />
- <Property Name="InstallDate" Type="date" />
- <Property Name="OperationStartDate" Type="date" />
- <Property Name="FacilityCapacity" Type="nvarchar" MaxLength="40" />
- <Property Name="FacilityCost" Type="int" />
- <Property Name="FacilityCount" Type="int" />
- <Property Name="FacilitySeviceLifeYear" Type="int" />
- <Property Name="FacilityUsage" Type="nvarchar" MaxLength="80" />
- <Property Name="RatedPowerConsumption" Type="nvarchar" MaxLength="40" />
- <Property Name="RatedCOP" Type="float" />
- <Property Name="MainContactorUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="SubContactorUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="Note" Type="nvarchar" MaxLength="1024" />
- <Property Name="Reserved1" Type="nvarchar" MaxLength="64" />
- <Property Name="Reserved2" Type="nvarchar" MaxLength="64" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="FileId" Type="int" />
- <Property Name="IsVirtualFacility" Type="bit" Nullable="false" />
- <Property Name="FuelTypeId" Type="smallint" />
- <Property Name="ContractType" Type="smallint" />
- </EntityType>
- <EntityType Name="CmFacilityFile">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="InsertedDate" Type="datetime" />
- <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="UpdatedDate" Type="datetime" />
- <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
- </EntityType>
- <EntityType Name="CmFacilityTempSet">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="T1" Type="float" Nullable="false" />
- <Property Name="T2" Type="float" Nullable="false" />
- <Property Name="T3" Type="float" Nullable="false" />
- <Property Name="T4" Type="float" Nullable="false" />
- <Property Name="T5" Type="float" Nullable="false" />
- <Property Name="T6" Type="float" Nullable="false" />
- <Property Name="T7" Type="float" Nullable="false" />
- <Property Name="T8" Type="float" Nullable="false" />
- <Property Name="T9" Type="float" Nullable="false" />
- <Property Name="T10" Type="float" Nullable="false" />
- <Property Name="T11" Type="float" Nullable="false" />
- <Property Name="T12" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="CmFile">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="FileCategoryId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="FileSize" Type="int" />
- <Property Name="CreatedDate" Type="datetime" />
- <Property Name="ContentType" Type="nvarchar" MaxLength="128" />
- </EntityType>
- <EntityType Name="CmFileCategory">
- <Key>
- <PropertyRef Name="FileCategoryId" />
- </Key>
- <Property Name="FileCategoryId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- </EntityType>
- <EntityType Name="CmFloor">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" Nullable="false" />
- <Property Name="FloorId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="CmHoliday">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayMonth" />
- <PropertyRef Name="HolidayDay" />
- <PropertyRef Name="IsLunar" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="HolidayMonth" Type="smallint" Nullable="false" />
- <Property Name="HolidayDay" Type="smallint" Nullable="false" />
- <Property Name="IsLunar" Type="bit" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmHolidayCustom">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayDate" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="HolidayDate" Type="datetime" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmHolidayWeekend">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Saturday" Type="bit" Nullable="false" />
- <Property Name="Sunday" Type="bit" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmMenu">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MenuId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Used" Type="bit" />
- <Property Name="MenuPath" Type="nvarchar" MaxLength="255" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" />
- </EntityType>
- <EntityType Name="CmPartner">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PartnerId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="PartnerTypeId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" />
- <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" />
- <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
- <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
- <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="AddressZip1" Type="nchar" MaxLength="3" />
- <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
- <Property Name="Address1" Type="nvarchar" MaxLength="50" />
- <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
- <Property Name="HomepageUri" Type="nvarchar" MaxLength="100" />
- <Property Name="Note" Type="nvarchar" MaxLength="1024" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmPartnerType">
- <Key>
- <PropertyRef Name="PartnerTypeId" />
- </Key>
- <Property Name="PartnerTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmPatrolCourse">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolCourseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- </EntityType>
- <EntityType Name="CmPatrolCoursePos">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="PosId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolCourseId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" Nullable="false" />
- <Property Name="FloorId" Type="int" Nullable="false" />
- <Property Name="PosId" Type="int" Nullable="false" />
- <Property Name="CourseOrder" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="CmPatrolGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- </EntityType>
- <EntityType Name="CmPatrolGroupUser">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- <PropertyRef Name="UserId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolGroupId" Type="int" Nullable="false" />
- <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- </EntityType>
- <EntityType Name="CmPatrolHistory">
- <Key>
- <PropertyRef Name="PatrolHistoryId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ScheduleId" Type="int" Nullable="false" />
- <Property Name="startDate" Type="datetime" Nullable="false" />
- <Property Name="endDate" Type="datetime" />
- <Property Name="resultTypeId" Type="int" Nullable="false" />
- <Property Name="resultDesc" Type="varchar" MaxLength="1024" />
- <Property Name="resultPosCnt" Type="int" />
- <Property Name="resultNormalCnt" Type="int" />
- <Property Name="resultAbnormalCnt" Type="int" />
- </EntityType>
- <EntityType Name="CmPatrolHistoryPos">
- <Key>
- <PropertyRef Name="mId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolHistoryId" Type="int" Nullable="false" />
- <Property Name="PosId" Type="int" Nullable="false" />
- <Property Name="PatrolTime" Type="datetime" Nullable="false" />
- <Property Name="term" Type="int" />
- <Property Name="resultType" Type="int" Nullable="false" />
- <Property Name="mId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- </EntityType>
- <EntityType Name="CmPatrolPlan">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolPlanId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolPlanId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="GroupId" Type="int" Nullable="false" />
- <Property Name="CourseId" Type="int" Nullable="false" />
- <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
- <Property Name="PlanDesc" Type="varchar" MaxLength="1024" />
- <Property Name="term" Type="int" Nullable="false" />
- <Property Name="inDate" Type="datetime" />
- </EntityType>
- <EntityType Name="CmPatrolPos">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" Nullable="false" />
- <Property Name="FloorId" Type="int" Nullable="false" />
- <Property Name="PosId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="TagId" Type="nvarchar" MaxLength="32" />
- <Property Name="PosDesc" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="CmPatrolSchedule">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ScheduleId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="PlanId" Type="int" Nullable="false" />
- <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
- <Property Name="ScheduleDesc" Type="varchar" MaxLength="128" />
- <Property Name="inDate" Type="datetime" />
- <Property Name="patrolDateTime" Type="datetime" Nullable="false" />
- </EntityType>
- <EntityType Name="CmPatrolType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmPosition">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PositionId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PositionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="40" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmServiceEnergyCalcDay">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="calDate" />
- <PropertyRef Name="ServiceTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="calDate" Type="datetime" Nullable="false" />
- <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
- <Property Name="Value" Type="float" />
- </EntityType>
- <EntityType Name="CmServiceEnergyCalcMonth">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="calDate" />
- <PropertyRef Name="ServiceTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="calDate" Type="datetime" Nullable="false" />
- <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
- <Property Name="Value" Type="float" />
- </EntityType>
- <EntityType Name="CmSite">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
- <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
- <Property Name="Address1" Type="nvarchar" MaxLength="100" />
- <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
- <Property Name="PhoneNo" Type="nvarchar" MaxLength="24" />
- <Property Name="URL" Type="nvarchar" MaxLength="100" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="SortOrderNo" Type="int" />
- <Property Name="InsertedDate" Type="datetime" />
- <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="UpdatedDate" Type="datetime" />
- <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="IsControlSchedule" Type="bit" />
- <Property Name="ScheduleCheckHour" Type="int" />
- <Property Name="MaxPeak" Type="float" />
- <Property Name="lat" Type="float" />
- <Property Name="lng" Type="float" />
- <Property Name="controlSchedule" Type="bit" />
- <Property Name="HDD" Type="nvarchar" MaxLength="24" />
- <Property Name="CDD" Type="nvarchar" MaxLength="24" />
- <Property Name="BuildingSize" Type="nvarchar" MaxLength="50" />
- <Property Name="GrossArea" Type="nvarchar" MaxLength="24" />
- <Property Name="BuildingArea" Type="nvarchar" MaxLength="24" />
- <Property Name="FloorAreaRatio" Type="nvarchar" MaxLength="24" />
- <Property Name="BuildingCoverageRatio" Type="nvarchar" MaxLength="24" />
- <Property Name="MainUse" Type="nvarchar" MaxLength="10" />
- <Property Name="CompletionDate" Type="nvarchar" MaxLength="24" />
- <Property Name="Standard" Type="nvarchar" MaxLength="24" />
- <Property Name="MainUseIndex" Type="int" />
- </EntityType>
- <EntityType Name="CmUser">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="CompanyId" Type="int" />
- <Property Name="DepartmentId" Type="int" />
- <Property Name="PositionId" Type="int" />
- <Property Name="BusinessFieldId" Type="int" />
- <Property Name="UserGroupId" Type="int" />
- <Property Name="Name" Type="nvarchar" MaxLength="30" Nullable="false" />
- <Property Name="Passwd" Type="nvarchar" MaxLength="30" Nullable="false" />
- <Property Name="Birthday" Type="datetime" />
- <Property Name="Lunar" Type="bit" />
- <Property Name="StateId" Type="int" />
- <Property Name="EmploymentType" Type="int" />
- <Property Name="EmploymentStatus" Type="int" />
- <Property Name="OfficePhoneNo" Type="nvarchar" MaxLength="50" />
- <Property Name="HomePhoneNo" Type="nvarchar" MaxLength="50" />
- <Property Name="MobilePhoneNo" Type="nvarchar" MaxLength="50" />
- <Property Name="HomeZip1" Type="char" MaxLength="3" />
- <Property Name="HomeZip2" Type="char" MaxLength="3" />
- <Property Name="HomeAddress1" Type="nvarchar" MaxLength="50" />
- <Property Name="HomeAdderss2" Type="nvarchar" MaxLength="100" />
- <Property Name="Email" Type="nvarchar" MaxLength="50" />
- <Property Name="EnterDate" Type="datetime" />
- <Property Name="RetireDate" Type="datetime" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="Rfcsn" Type="nvarchar" MaxLength="30" />
- <Property Name="PasswordUpdatedDate" Type="datetime" />
- <Property Name="FileId" Type="int" />
- <Property Name="IsBems" Type="bit" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="IsScheduleUser" Type="bit" />
- <Property Name="Certificated" Type="nvarchar" MaxLength="512" />
- <Property Name="IsSI" Type="bit" />
- <Property Name="IsMobile" Type="bit" />
- <Property Name="Devicetoken" Type="nvarchar" MaxLength="500" />
- </EntityType>
- <EntityType Name="CmUserGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="UserGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- </EntityType>
- <EntityType Name="CmUserGroupPermission">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- <PropertyRef Name="MenuId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="UserGroupId" Type="int" Nullable="false" />
- <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="MenuPermission" Type="smallint" />
- </EntityType>
- <EntityType Name="CmUserLoginHistory">
- <Key>
- <PropertyRef Name="LoginHistoryId" />
- </Key>
- <Property Name="LoginHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Type" Type="nvarchar" MaxLength="10" Nullable="false" />
- <Property Name="TraceTime" Type="datetime" Nullable="false" />
- <Property Name="IpAddress" Type="nvarchar" MaxLength="16" />
- </EntityType>
- <EntityType Name="CmUserToLicense">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- <PropertyRef Name="LicenseId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="LicenseId" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="CmZone">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" Nullable="false" />
- <Property Name="FloorId" Type="int" Nullable="false" />
- <Property Name="ZoneId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Target_temperature" Type="float" />
- <Property Name="Target_humidity" Type="smallint" />
- </EntityType>
- <EntityType Name="CmZoneTempHumiSet">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" Nullable="false" />
- <Property Name="FloorId" Type="int" Nullable="false" />
- <Property Name="ZoneId" Type="int" Nullable="false" />
- <Property Name="T1" Type="float" Nullable="false" />
- <Property Name="T2" Type="float" Nullable="false" />
- <Property Name="T3" Type="float" Nullable="false" />
- <Property Name="T4" Type="float" Nullable="false" />
- <Property Name="T5" Type="float" Nullable="false" />
- <Property Name="T6" Type="float" Nullable="false" />
- <Property Name="T7" Type="float" Nullable="false" />
- <Property Name="T8" Type="float" Nullable="false" />
- <Property Name="T9" Type="float" Nullable="false" />
- <Property Name="T10" Type="float" Nullable="false" />
- <Property Name="T11" Type="float" Nullable="false" />
- <Property Name="T12" Type="float" Nullable="false" />
- <Property Name="H1" Type="smallint" Nullable="false" />
- <Property Name="H2" Type="smallint" Nullable="false" />
- <Property Name="H3" Type="smallint" Nullable="false" />
- <Property Name="H4" Type="smallint" Nullable="false" />
- <Property Name="H5" Type="smallint" Nullable="false" />
- <Property Name="H6" Type="smallint" Nullable="false" />
- <Property Name="H7" Type="smallint" Nullable="false" />
- <Property Name="H8" Type="smallint" Nullable="false" />
- <Property Name="H9" Type="smallint" Nullable="false" />
- <Property Name="H10" Type="smallint" Nullable="false" />
- <Property Name="H11" Type="smallint" Nullable="false" />
- <Property Name="H12" Type="smallint" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsAccident">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="AccidentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="StartDate" Type="datetime" />
- <Property Name="EndDate" Type="datetime" />
- <Property Name="AccidentTypeId" Type="int" Nullable="false" />
- <Property Name="DepartmentId" Type="int" />
- <Property Name="AccidentLocation" Type="nvarchar" MaxLength="256" />
- <Property Name="Reason" Type="nvarchar" MaxLength="1024" />
- <Property Name="Action" Type="nvarchar" MaxLength="1024" />
- <Property Name="Damage" Type="nvarchar" MaxLength="1024" />
- <Property Name="Measurement" Type="nvarchar" MaxLength="1024" />
- <Property Name="FileId1" Type="int" />
- <Property Name="FileId2" Type="int" />
- <Property Name="FileId3" Type="int" />
- <Property Name="CompanyId" Type="int" />
- </EntityType>
- <EntityType Name="FmsAccidentCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="AccidentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsBudget">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Year" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsBudgetCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BudgetClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BudgetClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
- <Property Name="RootBudgetClassId" Type="int" />
- <Property Name="ParentBudgetClassId" Type="int" />
- <Property Name="Depth" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="YearlyBudget" Type="float" />
- <Property Name="MonthlyBudget" Type="float" />
- </EntityType>
- <EntityType Name="FmsBudgetDetail">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="BudgetClassId" />
- <PropertyRef Name="ParentBudgetClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Year" Type="int" Nullable="false" />
- <Property Name="BudgetClassId" Type="int" Nullable="false" />
- <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
- <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
- <Property Name="RootBudgetClassId" Type="int" />
- <Property Name="Depth" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="YearlyBudget" Type="float" Nullable="false" />
- <Property Name="MonthlyBudget" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsBudgetDetailExecution">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="BudgetClassId" />
- <PropertyRef Name="ParentBudgetClassId" />
- <PropertyRef Name="Month" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Year" Type="int" Nullable="false" />
- <Property Name="BudgetClassId" Type="int" Nullable="false" />
- <Property Name="RootBudgetClassId" Type="int" />
- <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
- <Property Name="Month" Type="int" Nullable="false" />
- <Property Name="YearlyBudget" Type="float" Nullable="false" />
- <Property Name="MonthlyBudget" Type="float" Nullable="false" />
- <Property Name="YearlyExecution" Type="float" Nullable="false" />
- <Property Name="MonthlyExecution" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsCompanyEstimationCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyEstimationClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CompanyEstimationClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsConstruction">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ConstructionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="ConstructionTypeId" Type="int" Nullable="false" />
- <Property Name="StartDate" Type="datetime" Nullable="false" />
- <Property Name="EndDate" Type="datetime" Nullable="false" />
- <Property Name="PartnerId" Type="int" Nullable="false" />
- <Property Name="ConstructLocation" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="CommitmentMan" Type="smallint" />
- <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="WeldWorkStartTime" Type="datetime" />
- <Property Name="WeldWorkEndTime" Type="datetime" />
- <Property Name="GasWorkStartTime" Type="datetime" />
- <Property Name="GasWorkEndTime" Type="datetime" />
- <Property Name="PaintWorkStartTime" Type="datetime" />
- <Property Name="PaintWorkEndTime" Type="datetime" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="ProgressId" Type="smallint" Nullable="false" />
- <Property Name="AddDate" Type="datetime" Nullable="false" />
- <Property Name="UpdateDate" Type="datetime" Nullable="false" />
- <Property Name="ConstructionDetail" Type="nvarchar" MaxLength="1024" />
- <Property Name="InOutStockName" Type="nvarchar" MaxLength="1024" />
- <Property Name="FileId1" Type="int" />
- <Property Name="FileId2" Type="int" />
- <Property Name="FileId3" Type="int" />
- </EntityType>
- <EntityType Name="FmsConstructionCodeProgress">
- <Key>
- <PropertyRef Name="ProgressId" />
- </Key>
- <Property Name="ProgressId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="100" />
- </EntityType>
- <EntityType Name="FmsConstructionCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ConstructionTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsConstructionEstimation">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ConstructionId" Type="int" Nullable="false" />
- <Property Name="EstimateDate" Type="datetime" Nullable="false" />
- <Property Name="EstimateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Safety01_CleanUp" Type="bit" />
- <Property Name="Safety02_PersonalProtection" Type="bit" />
- <Property Name="Safety03_FireExtinguisher" Type="bit" />
- <Property Name="Safety04_HighPlaceWork" Type="bit" />
- <Property Name="Safety05_Weld" Type="bit" />
- <Property Name="Safety06_SurroundingCleanUp" Type="bit" />
- <Property Name="Safety07_SurroundingHealthy" Type="bit" />
- <Property Name="Safety08_Noise" Type="bit" />
- <Property Name="Safety09_FacilityProtection" Type="bit" />
- <Property Name="Safety10_Waste" Type="bit" />
- <Property Name="Safety11_Execution" Type="bit" />
- <Property Name="Safety12_Announcement" Type="bit" />
- <Property Name="Ability01_Compliance" Type="bit" />
- <Property Name="Ability02_Fault" Type="bit" />
- <Property Name="Ability03_SkillLevel" Type="bit" />
- <Property Name="Ability04_ProcessManagement" Type="bit" />
- <Property Name="Ability05_Collaboration" Type="bit" />
- <Property Name="Service01_Compliance" Type="bit" />
- <Property Name="Service02_SkillLevel" Type="bit" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="TotalEstimateScore" Type="float" />
- <Property Name="SafetyScore" Type="float" />
- <Property Name="AbilityScore" Type="float" />
- <Property Name="ServiceScore" Type="float" />
- </EntityType>
- <EntityType Name="FmsContract">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ContractId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="PartnerTypeId" Type="int" />
- <Property Name="PartnerId" Type="int" />
- <Property Name="ContractDate" Type="datetime" />
- <Property Name="StartDate" Type="datetime" />
- <Property Name="EndDate" Type="datetime" />
- <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" />
- <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="CommitmentMan" Type="smallint" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="ContractClassId" Type="int" />
- <Property Name="ContractTypeId" Type="int" />
- <Property Name="ContractMethodId" Type="int" />
- <Property Name="PaymentTypeId" Type="int" />
- </EntityType>
- <EntityType Name="FmsContractClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ContractClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsContractMethod">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractMethodId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ContractMethodId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsContractType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ContractTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsDailyCheckReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DailyCheckReportId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="DailyCheckReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="AddDate" Type="datetime" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsDailyReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AddDate" />
- <PropertyRef Name="BusinessFieldId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="DailyReportId" Type="int" />
- <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="AddDate" Type="date" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="Datas" Type="varchar(max)" />
- <Property Name="ApproverUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="ApproveDate" Type="date" />
- <Property Name="RegisterDate" Type="date" />
- <Property Name="ApproverUserId2" Type="nvarchar" MaxLength="24" />
- <Property Name="ApproveDate2" Type="date" />
- <Property Name="ApproverUserId3" Type="nvarchar" MaxLength="24" />
- <Property Name="ApproveDate3" Type="date" />
- <Property Name="ApproverUserId4" Type="nvarchar" MaxLength="24" />
- <Property Name="ApproveDate4" Type="date" />
- <Property Name="ApproverUserId5" Type="nvarchar" MaxLength="24" />
- <Property Name="ApproveDate5" Type="date" />
- </EntityType>
- <EntityType Name="FmsDrawing">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="DrawingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="DrawingNo" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="DrawingGroupId" Type="int" Nullable="false" />
- <Property Name="DrawingTypeId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="2000" />
- </EntityType>
- <EntityType Name="FmsDrawingCodeGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingGroupId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="DrawingGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsDrawingCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="DrawingTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsDrawingHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- <PropertyRef Name="HistoryId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="DrawingId" Type="int" Nullable="false" />
- <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="RevisionNo" Type="int" />
- <Property Name="FileId" Type="int" />
- <Property Name="Description" Type="nvarchar" MaxLength="2000" />
- <Property Name="UpdatedDate" Type="datetime" />
- <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
- </EntityType>
- <EntityType Name="FmsEquipment">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="EquipmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- <Property Name="EquipmentTypeId" Type="int" Nullable="false" />
- <Property Name="WarehouseId" Type="int" />
- <Property Name="Unit" Type="nvarchar" MaxLength="12" />
- <Property Name="Standard" Type="nvarchar" MaxLength="20" />
- <Property Name="AddDate" Type="datetime" />
- <Property Name="UpdateDate" Type="datetime" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="SupplierName" Type="nvarchar" MaxLength="256" />
- <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="ImageFileId" Type="int" />
- </EntityType>
- <EntityType Name="FmsEquipmentCodeStateType">
- <Key>
- <PropertyRef Name="EquipmentStateTypeId" />
- </Key>
- <Property Name="EquipmentStateTypeId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="FmsEquipmentCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="EquipmentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="255" />
- </EntityType>
- <EntityType Name="FmsEquipmentHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentHistoryId" />
- <PropertyRef Name="EquipmentId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="EquipmentHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="EquipmentId" Type="int" Nullable="false" />
- <Property Name="TotalStockCount" Type="int" />
- <Property Name="CurrentStockCount" Type="int" />
- <Property Name="RentCount" Type="int" />
- <Property Name="CurrentRentCount" Type="int" />
- <Property Name="ReturnCount" Type="int" />
- <Property Name="LossCount" Type="int" />
- <Property Name="StoredCount" Type="int" />
- <Property Name="EquipmentRentId" Type="int" />
- <Property Name="EquipmentStateTypeId" Type="smallint" />
- <Property Name="AddDate" Type="datetime" />
- <Property Name="UpdateDate" Type="datetime" />
- <Property Name="IsReturned" Type="bit" />
- </EntityType>
- <EntityType Name="FmsEquipmentRentInfo">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentRentId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="EquipmentRentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="RentUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="RegisterDate" Type="nchar" MaxLength="10" />
- <Property Name="RentDate" Type="datetime" />
- <Property Name="ReturnDueDate" Type="datetime" />
- <Property Name="ReturnFixDate" Type="datetime" />
- <Property Name="EquipmentStateTypeId" Type="smallint" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="RentUser" Type="nvarchar" MaxLength="128" />
- </EntityType>
- <EntityType Name="FmsFacilityCheckItem">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="CheckItemId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="WorkTypeId" Type="int" Nullable="false" />
- <Property Name="CycleUnitId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="IsYesNoResult" Type="bit" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsFacilityCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ParentFacilityClassId" Type="int" />
- <Property Name="Depth" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
- <Property Name="Abbreviation" Type="nvarchar" MaxLength="40" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsFacilityManual">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="ManualId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="100" />
- <Property Name="Description" Type="nvarchar" MaxLength="1024" />
- <Property Name="Keyword" Type="nvarchar" MaxLength="100" />
- <Property Name="FileId" Type="int" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsFacilityOperationItem">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ItemId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="ItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="100" />
- <Property Name="ResultUnit" Type="nvarchar" MaxLength="10" Nullable="false" />
- <Property Name="PointId" Type="nvarchar" MaxLength="50" />
- <Property Name="SystemId" Type="int" />
- <Property Name="EnergyCode" Type="bit" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="SortOrderNo" Type="int" />
- <Property Name="InsertedDate" Type="datetime" />
- <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="UpdatedDate" Type="datetime" />
- <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
- </EntityType>
- <EntityType Name="FmsFacilityOperationReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityOperationReportId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityOperationReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="AddDate" Type="datetime" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsInvestmentCost">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InsvestmentCostId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="InsvestmentCostId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="InsvestmentCost" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsLicense">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LicenseId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="LicenseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="52" Nullable="false" />
- <Property Name="IssuingOffice" Type="nvarchar" MaxLength="52" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" />
- <Property Name="EducationalInstitute" Type="nvarchar" MaxLength="52" />
- <Property Name="Note" Type="nvarchar" MaxLength="256" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsManual">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ManualNo" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="ManualTypeId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="2000" />
- </EntityType>
- <EntityType Name="FmsManualHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- <PropertyRef Name="HistoryId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ManualId" Type="int" Nullable="false" />
- <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="RevisionNo" Type="int" />
- <Property Name="FileId" Type="int" />
- <Property Name="Description" Type="nvarchar" MaxLength="2000" />
- <Property Name="UpdatedDate" Type="datetime" />
- <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
- </EntityType>
- <EntityType Name="FmsManualType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ManualTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsMaterial">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="MaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- <Property Name="FirstClassId" Type="int" />
- <Property Name="SecondClassId" Type="int" />
- <Property Name="ThirdClassId" Type="int" />
- <Property Name="LocationId" Type="int" />
- <Property Name="MaterialTypeId" Type="int" />
- <Property Name="WarehouseId" Type="int" />
- <Property Name="TradeCompanyId" Type="int" />
- <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
- <Property Name="Unit" Type="nvarchar" MaxLength="12" />
- <Property Name="DurableYears" Type="smallint" />
- <Property Name="ReasonableStockCount" Type="smallint" />
- <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
- <Property Name="Standard" Type="nvarchar" MaxLength="20" />
- <Property Name="FinalPrice" Type="int" />
- <Property Name="ImageFileId" Type="int" />
- <Property Name="Note" Type="nvarchar" MaxLength="512" />
- <Property Name="IsDiscontinued" Type="bit" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- <Property Name="FinalStockCount" Type="int" Nullable="false" />
- <Property Name="FinalTotalStockAmount" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMaterialCarriedForward">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ClosedDate" />
- <PropertyRef Name="BusinessFieldId" />
- <PropertyRef Name="WarehouseId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ClosedDate" Type="datetime" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="WarehouseId" Type="int" Nullable="false" />
- <Property Name="MaterialId" Type="int" Nullable="false" />
- <Property Name="StockCount" Type="int" Nullable="false" />
- <Property Name="StockTotalCost" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeAdjustmentType">
- <Key>
- <PropertyRef Name="AdjustmentTypeId" />
- </Key>
- <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="MaterialClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ParentMaterialClassId" Type="int" />
- <Property Name="Depth" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeLocation">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LocationId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="LocationId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeProgress">
- <Key>
- <PropertyRef Name="ProgressId" />
- </Key>
- <Property Name="ProgressId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="100" />
- </EntityType>
- <EntityType Name="FmsMaterialCodePurchaseType">
- <Key>
- <PropertyRef Name="PurchaseTypeId" />
- </Key>
- <Property Name="PurchaseTypeId" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeReleaseType">
- <Key>
- <PropertyRef Name="ReleaseTypeId" />
- </Key>
- <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="255" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="MaterialTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Nickname" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseOrder">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="PurchaseOrderId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
- <Property Name="TradeCompanyId" Type="int" />
- <Property Name="OrderDate" Type="datetime" Nullable="false" />
- <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="Reason" Type="nvarchar" MaxLength="2000" />
- <Property Name="StoredDueDate" Type="datetime" />
- <Property Name="FileId" Type="int" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseOrderMaterial">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="PurchaseOrderId" Type="int" Nullable="false" />
- <Property Name="MaterialId" Type="int" Nullable="false" />
- <Property Name="MaterialCount" Type="int" Nullable="false" />
- <Property Name="UnitCost" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseRequest">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="PurchaseRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="PurchaseTypeId" Type="smallint" Nullable="false" />
- <Property Name="RequestDate" Type="datetime" Nullable="false" />
- <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="PurchaseHopeDate" Type="datetime" />
- <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="Reason" Type="nvarchar" MaxLength="2000" Nullable="false" />
- <Property Name="ProgressId" Type="smallint" Nullable="false" />
- <Property Name="ApprovalDate" Type="datetime" />
- <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="bSameOrder" Type="bit" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseRequestMaterial">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
- <Property Name="MaterialId" Type="int" Nullable="false" />
- <Property Name="MaterialCount" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMaterialRelease">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialReleaseId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="ReleaseDate" Type="datetime" Nullable="false" />
- <Property Name="MaterialReleaseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" />
- <Property Name="WarehouseId" Type="int" />
- <Property Name="MaterialId" Type="int" />
- <Property Name="MaterialCount" Type="int" />
- <Property Name="StockCountByPoint" Type="int" />
- <Property Name="ReleaseTotalCost" Type="int" />
- <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
- <Property Name="AdjustmentUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="ConfirmedDate" Type="datetime" />
- <Property Name="IsConfirmed" Type="bit" Nullable="false" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="FmsMaterialStored">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialStoredId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="StoredDate" Type="datetime" Nullable="false" />
- <Property Name="MaterialStoredId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="PurchaseOrderId" Type="int" />
- <Property Name="WarehouseId" Type="int" Nullable="false" />
- <Property Name="MaterialId" Type="int" Nullable="false" />
- <Property Name="StoredCount" Type="int" Nullable="false" />
- <Property Name="RemainStoredCount" Type="int" Nullable="false" />
- <Property Name="UnitCost" Type="int" Nullable="false" />
- <Property Name="StockCount" Type="int" Nullable="false" />
- <Property Name="Note" Type="nvarchar" MaxLength="1024" />
- <Property Name="StoredUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="ApprovalDate" Type="datetime" />
- <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="IsApproval" Type="bit" Nullable="false" />
- <Property Name="LocationInWarehouse" Type="nvarchar" MaxLength="100" />
- </EntityType>
- <EntityType Name="FmsMaterialTradeCompany">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="TradeCompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="RepresentativeName" Type="nvarchar" MaxLength="24" />
- <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
- <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
- <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
- <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
- <Property Name="Address1" Type="nvarchar" MaxLength="100" />
- <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
- <Property Name="HomepageUri" Type="nvarchar" MaxLength="200" />
- <Property Name="Note" Type="nvarchar" MaxLength="1024" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMaterialWarehouse">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="WarehouseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMonthlyReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MonthlyReportId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="MonthlyReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="AddDate" Type="datetime" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsPaymentType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PaymentTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PaymentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="RId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="128" />
- <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="FileId" Type="int" />
- <Property Name="MakeDate" Type="datetime" Nullable="false" />
- <Property Name="ConfirmUserId1" Type="nvarchar" MaxLength="24" />
- <Property Name="ConfirmUserId2" Type="nvarchar" MaxLength="24" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsWorkCodeCauseClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CauseClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CauseClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ParentId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsWorkCodeCycleUnit">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CycleUnitId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="200" />
- </EntityType>
- <EntityType Name="FmsWorkCodeEmergency">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EmergencyId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="EmergencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsWorkCodeHolidayWorkType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayWorkTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsWorkCodeLegalInspectionAgency">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InspectionAgencyId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="InspectionAgencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsWorkCodeProgress">
- <Key>
- <PropertyRef Name="WorkProgressId" />
- </Key>
- <Property Name="WorkProgressId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="512" />
- </EntityType>
- <EntityType Name="FmsWorkCodeType">
- <Key>
- <PropertyRef Name="WorkTypeId" />
- </Key>
- <Property Name="WorkTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="512" />
- </EntityType>
- <EntityType Name="FmsWorkOrder">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="EmergencyId" Type="int" />
- <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="OrderDate" Type="datetime" Nullable="false" />
- <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
- <Property Name="Content" Type="nvarchar" MaxLength="2000" />
- </EntityType>
- <EntityType Name="FmsWorkOrderToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsWorkRequest">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="WorkTypeId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="WorkScheduleId" Type="int" />
- <Property Name="WorkProgressId" Type="int" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
- <Property Name="Content" Type="nvarchar" MaxLength="1024" />
- <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="RequestDate" Type="datetime" Nullable="false" />
- <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
- <Property Name="RejectUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="RejectDate" Type="datetime" />
- <Property Name="RejectReason" Type="nvarchar" MaxLength="512" />
- <Property Name="InspectionAgencyId" Type="int" />
- </EntityType>
- <EntityType Name="FmsWorkRequestToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsWorkResult">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="WorkerUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="StartDate" Type="datetime" Nullable="false" />
- <Property Name="EndDate" Type="datetime" Nullable="false" />
- <Property Name="CauseClassId" Type="int" />
- <Property Name="Content" Type="nvarchar" MaxLength="1024" />
- <Property Name="ConfirmedDate" Type="datetime" />
- <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="IsConfirmed" Type="bit" Nullable="false" />
- <Property Name="ConfirmDesc" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="FmsWorkResultCheckItem">
- <Key>
- <PropertyRef Name="CheckItemId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" />
- <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="BoolResult" Type="bit" />
- <Property Name="TextResult" Type="nvarchar" MaxLength="1024" />
- <Property Name="CheckDate" Type="datetime" Nullable="false" />
- <Property Name="FileId1" Type="int" />
- <Property Name="FileId2" Type="int" />
- </EntityType>
- <EntityType Name="FmsWorkResultCheckItemMaterial">
- <Key>
- <PropertyRef Name="CheckItemMaterialId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="CheckItemId" Type="int" Nullable="false" />
- <Property Name="CheckItemMaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="MaterialId" Type="int" Nullable="false" />
- <Property Name="MaterialCount" Type="int" Nullable="false" />
- <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" />
- </EntityType>
- <EntityType Name="FmsWorkResultFile">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="FileId" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsWorkResultLaw">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="CertificationNo" Type="nvarchar" MaxLength="50" />
- <Property Name="CheckCommission" Type="numeric" Precision="10" Scale="0" />
- <Property Name="CheckResult" Type="bit" />
- </EntityType>
- <EntityType Name="FmsWorkResultToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsWorkSchedule">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="WorkTypeId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="InspectionAgencyId" Type="int" />
- <Property Name="CycleSize" Type="int" Nullable="false" />
- <Property Name="CycleUnitId" Type="int" Nullable="false" />
- <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
- <Property Name="WorkDueDate" Type="datetime" Nullable="false" />
- <Property Name="UpdateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- <Property Name="IsAutoOrder" Type="bit" Nullable="false" />
- <Property Name="Content" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="FmsWorkScheduleToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkScheduleId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="principal_id" Type="int" Nullable="false" />
- <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="version" Type="int" />
- <Property Name="definition" Type="varbinary(max)" />
- </EntityType>
- <EntityType Name="WeatherDongNaeForecast">
- <Key>
- <PropertyRef Name="BaseTime" />
- <PropertyRef Name="ForecastTime" />
- </Key>
- <Property Name="BaseTime" Type="datetime" Nullable="false" />
- <Property Name="nx" Type="int" />
- <Property Name="ny" Type="int" />
- <Property Name="ForecastTime" Type="datetime" Nullable="false" />
- <Property Name="POP" Type="float" />
- <Property Name="PTY" Type="float" />
- <Property Name="R06" Type="float" />
- <Property Name="REH" Type="float" />
- <Property Name="S06" Type="float" />
- <Property Name="SKY" Type="float" />
- <Property Name="T3H" Type="float" />
- <Property Name="TMN" Type="float" />
- <Property Name="TMX" Type="float" />
- <Property Name="UUU" Type="float" />
- <Property Name="VVV" Type="float" />
- <Property Name="VEC" Type="float" />
- <Property Name="WSD" Type="float" />
- <Property Name="Type" Type="int" />
- <Property Name="DBTime" Type="datetime" />
- <Property Name="Version" Type="int" />
- </EntityType>
- <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsEnergyConfigPercentMonth" Type="Self.BemsEnergyConfigPercentMonth" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsEnergyConfigPercentMonth">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsEnergyConfigPercentWeek" Type="Self.BemsEnergyConfigPercentWeek" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsEnergyConfigPercentWeek">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsEnergyDaily__BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsEnergyDaily">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsEnergyDaily__BemsServiceType">
- <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="1" />
- <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsServiceType">
- <PropertyRef Name="ServiceTypeId" />
- </Principal>
- <Dependent Role="BemsEnergyDaily">
- <PropertyRef Name="ServiceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsEnergyDaily__CmBuilding">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
- <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="BemsEnergyDaily">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFactorCo2__BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsFactorCo2" Type="Self.BemsFactorCo2" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsFactorCo2">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFactorToe__BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsFactorToe" Type="Self.BemsFactorToe" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsFactorToe">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFormula__BemsFormulaBase">
- <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
- <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFormulaBase">
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FormulaId" />
- </Principal>
- <Dependent Role="BemsFormula">
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FormulaId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFormulaParameter__BemsFormula">
- <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
- <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFormula">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Principal>
- <Dependent Role="BemsFormulaParameter">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
- <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
- <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFormulaTable">
- <PropertyRef Name="TableId" />
- </Principal>
- <Dependent Role="BemsFormulaTableValue">
- <PropertyRef Name="TableId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPo__1372D2FE">
- <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
- <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsAnalysisType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnalysisType" />
- </Principal>
- <Dependent Role="BemsMonitoringPointToAnlaysisType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnalysisType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPo__155B1B70">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointToAnlaysisType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
- <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsServiceType">
- <PropertyRef Name="ServiceTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="ServiceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__CmBuilding">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__CmFloor">
- <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__CmZone">
- <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointBaseData">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
- <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointBaseData">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
- <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
- <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsServiceType">
- <PropertyRef Name="ServiceTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointBaseData">
- <PropertyRef Name="ServiceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistory15min">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistory15min">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistory15minRawData">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistory15minRawData">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistoryDaily">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistoryDaily">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistoryHourly">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistoryHourly">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointToAnlaysisType">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
- <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="1" />
- <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsNoticePriceContractType">
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Principal>
- <Dependent Role="BemsNoticePriceBase">
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsNoticePriceContractType">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
- <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="1" />
- <End Role="BemsNoticePriceDetail" Type="Self.BemsNoticePriceDetail" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsNoticePriceBase">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ApplyDate" />
- <PropertyRef Name="ContractType" />
- </Principal>
- <Dependent Role="BemsNoticePriceDetail">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ApplyDate" />
- <PropertyRef Name="ContractType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmCompany__345EC57D">
- <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
- <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmCompanyType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyTypeId" />
- </Principal>
- <Dependent Role="CmCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmCompany__SiteI__336AA144">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmCompany">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmDepartment__3552E9B6">
- <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
- <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Principal>
- <Dependent Role="CmDepartment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
- <End Role="CmFacility1" Type="Self.CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="CmFacility1">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ParentFacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacilityFile__7720AD13">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="CmFacilityFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacilityFile__CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
- <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="CmFacilityFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacilityManual__79FD19BE">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsFacilityManual">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacilityManual__7BE56230">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsFacilityManual">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFile__CmFileCategory">
- <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFileCategory">
- <PropertyRef Name="FileCategoryId" />
- </Principal>
- <Dependent Role="CmFile">
- <PropertyRef Name="FileCategoryId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFile__SiteId__2759D01A">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmFile">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFloor__3CF40B7E">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
- <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHoliday">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__0D99FE17">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmHolidayWeekend" Type="Self.CmHolidayWeekend" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHolidayWeekend">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__10766AC2">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHolidayCustom">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__65AC084E">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHoliday">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__66A02C87">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHolidayCustom">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmLocation__3DE82FB7">
- <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
- <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmPositio__SiteI__6A70BD6B">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPosition">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserGro__SiteI__53D770D6">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmUserGroup">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserGroupPermission__CmUserGroup">
- <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUserGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Principal>
- <Dependent Role="CmUserGroupPermission">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserPos__SiteI__44952D46">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPosition">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserToLicense__CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmUserToLicense">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserToLicense__FmsLicense">
- <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
- <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsLicense">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LicenseId" />
- </Principal>
- <Dependent Role="CmUserToLicense">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LicenseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmZone__CmBuilding">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
- <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawingCodeGroup">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawingCodeType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawing">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__6F357288">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawingCodeGroup">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__702996C1">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawingCodeType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawing__6E565CE8">
- <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
- <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsDrawingCodeGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingGroupId" />
- </Principal>
- <Dependent Role="FmsDrawing">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingGroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawing__6F4A8121">
- <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
- <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsDrawingCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingTypeId" />
- </Principal>
- <Dependent Role="FmsDrawing">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawingHistor__04DA9AE4">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsDrawingHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawingHistor__7132C993">
- <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsDrawing">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- </Principal>
- <Dependent Role="FmsDrawingHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawingHistory__CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsDrawingHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UpdatedUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
- <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
- <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeCycleUnit">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Principal>
- <Dependent Role="FmsFacilityCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
- <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeType">
- <PropertyRef Name="WorkTypeId" />
- </Principal>
- <Dependent Role="FmsFacilityCheckItem">
- <PropertyRef Name="WorkTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityCodeClass__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsFacilityCodeClass">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
- <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
- <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsFacilityCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityClassId" />
- </Principal>
- <Dependent Role="FmsFacilityCodeClass1">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ParentFacilityClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityOpera__725BF7F6">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="FmsFacilityOperationItem" Type="Self.FmsFacilityOperationItem" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsFacilityOperationItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ItemId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsLicense__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
- <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsLicense">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsLicense__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsLicense">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
- <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FirstClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
- <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="SecondClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
- <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ThirdClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialCarriedForward">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCarriedForward__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCarriedForward">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeClass__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
- <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeClass1">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ParentMaterialClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeLocation">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeLocation__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeLocation">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeType__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialOrder__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialOrder__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialOrder__CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="OrderUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
- <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialTradeCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RequestUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ApprovalUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
- <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeProgress">
- <PropertyRef Name="ProgressId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="ProgressId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialStored__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialStored__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="StoredUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ApprovalUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialTradeCompany__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialTradeCompany">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialWarehouse__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeCauseClass">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeCycleUnit">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeEmergency__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeEmergency">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeHolidayWorkType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkCodeLegalInspectionAgency" Type="Self.FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeLegalInspectionAgency">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="OrderUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
- <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeEmergency">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EmergencyId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EmergencyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkOrderToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RequestUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RejectUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
- <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeProgress">
- <PropertyRef Name="WorkProgressId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="WorkProgressId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeType">
- <PropertyRef Name="WorkTypeId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="WorkTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
- <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="0..1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkRequestToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkerUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConfirmedUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
- <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeCauseClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CauseClassId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CauseClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__FmsWorkOrder">
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__FmsWorkRequest">
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
- <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
- <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
- <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsFacilityCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="CheckItemId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="CheckItemId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultFile__CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
- <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsWorkResultFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
- <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
- <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultLaw">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultToFacility__CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkResultToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkSchedule__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkSchedule__CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UpdateUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
- <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
- <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeCycleUnit">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
- <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="1" />
- <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeHolidayWorkType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayWorkTypeId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayWorkTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
- <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeType">
- <PropertyRef Name="WorkTypeId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="WorkTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
- <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="1" />
- <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Principal>
- <Dependent Role="FmsWorkScheduleToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
- <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="1" />
- <End Role="BemsAlarmLog" Type="Self.BemsAlarmLog" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsAlarmSetting">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="FormulaId" />
- </Principal>
- <Dependent Role="BemsAlarmLog">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="FormulaId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsAlarmSetting">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsAlarmSetting_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsAlarmSetting">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsAlarmSetting_CmSite1">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsAlarmSetting">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsChartInfo_BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsChartInfo">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsChartInfo_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsChartInfo">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsControlPointHistory">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsControlPointHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsEnergyCost_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="BemsEnergyCost" Type="Self.BemsEnergyCost" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsEnergyCost">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsEnergyDailyRegression_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsEnergyDailyRegression" Type="Self.BemsEnergyDailyRegression" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsEnergyDailyRegression">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsFormulaParameter_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsFormulaParameter">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsMonitoringPoint_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointConfig">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointConfig">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPeakFacility_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="BemsPeakFacility" Type="Self.BemsPeakFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsPeakFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPeakHIstory_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsPeakHistory" Type="Self.BemsPeakHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsPeakHistory">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPeakInfo_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsPeakInfo" Type="Self.BemsPeakInfo" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsPeakInfo">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPeopleIncrease_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsPeopleIncrease" Type="Self.BemsPeopleIncrease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsPeopleIncrease">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceCode_BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsPriceCode">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceFormula_BemsFormula">
- <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
- <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFormula">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Principal>
- <Dependent Role="BemsPriceFormula">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceFormula_BemsPriceType">
- <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
- <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsPriceFormula">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceMeta_BemsPriceType">
- <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
- <End Role="BemsPriceMeta" Type="Self.BemsPriceMeta" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsPriceMeta">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceType_BemsFuelType1">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsPriceType">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsRentalRate_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsRentalRate" Type="Self.BemsRentalRate" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsRentalRate">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_BemsPriceCode">
- <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
- <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceCode">
- <PropertyRef Name="PriceCode" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="PriceCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_BemsPriceType">
- <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
- <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_CmSite1">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="SiteID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
- <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
- <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceCode">
- <PropertyRef Name="PriceCode" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="PriceCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
- <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
- <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmAnnouncement_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="CmAnnouncement">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmAnnouncement_CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="CmAnnouncement">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmAnnouncement_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmAnnouncement">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacilityTempSet_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="CmFacilityTempSet">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacilityTempSet_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmFacilityTempSet">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmMenu_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmMenu" Type="Self.CmMenu" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmMenu">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPartnerType_CmPartner">
- <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="1" />
- <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartnerType">
- <PropertyRef Name="PartnerTypeId" />
- </Principal>
- <Dependent Role="CmPartner">
- <PropertyRef Name="PartnerTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolCourse_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolCourse">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
- <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
- <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolCourse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- </Principal>
- <Dependent Role="CmPatrolCoursePos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolCoursePos_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolCoursePos">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolGroup_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolGroup">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
- <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
- <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- </Principal>
- <Dependent Role="CmPatrolGroupUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolGroupUser_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmPatrolGroupUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
- <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="1" />
- <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ScheduleId" />
- </Principal>
- <Dependent Role="CmPatrolHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ScheduleId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistory_CmPatrolType">
- <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
- <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolTypeId" />
- </Principal>
- <Dependent Role="CmPatrolHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="resultTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistory_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolHistory">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
- <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="1" />
- <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Principal>
- <Dependent Role="CmPatrolHistoryPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
- <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
- <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolTypeId" />
- </Principal>
- <Dependent Role="CmPatrolHistoryPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="resultType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistoryPos_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolHistoryPos">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
- <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
- <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolCourse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- </Principal>
- <Dependent Role="CmPatrolPlan">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CourseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
- <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
- <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- </Principal>
- <Dependent Role="CmPatrolPlan">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="GroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPlan_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolPlan">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPos_CmBuilding">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
- <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPos_CmFloor">
- <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
- <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPos_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
- <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="1" />
- <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolPlan">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolPlanId" />
- </Principal>
- <Dependent Role="CmPatrolSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PlanId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolSchedule_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolSchedule">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolType_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmCompany">
- <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmDepartment">
- <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmDepartment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmPosition">
- <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPosition">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PositionId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PositionId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmUserGroup">
- <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUserGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUserLoginHistory_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmUserLoginHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
- <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmZoneTempHumiSet">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmZoneTempHumiSet_CmFloor">
- <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
- <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="CmZoneTempHumiSet">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmZoneTempHumiSet_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmZoneTempHumiSet">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmZoneTempHumiSet_CmZone">
- <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
- <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Principal>
- <Dependent Role="CmZoneTempHumiSet">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_CmCompany">
- <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_CmDepartment">
- <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmDepartment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_CmFile1">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId1" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_CmFile2">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId2" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_CmFile3">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId3" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_FmsAccidentCodeType">
- <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsAccidentCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentTypeId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsBudgetDetail_FmsBudget">
- <End Role="FmsBudget" Type="Self.FmsBudget" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsBudget">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- </Principal>
- <Dependent Role="FmsBudgetDetail">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
- <End Role="FmsBudgetCodeClass" Type="Self.FmsBudgetCodeClass" Multiplicity="1" />
- <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsBudgetCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BudgetClassId" />
- </Principal>
- <Dependent Role="FmsBudgetDetail">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BudgetClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
- <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="1" />
- <End Role="FmsBudgetDetailExecution" Type="Self.FmsBudgetDetailExecution" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsBudgetDetail">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="BudgetClassId" />
- <PropertyRef Name="ParentBudgetClassId" />
- </Principal>
- <Dependent Role="FmsBudgetDetailExecution">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="BudgetClassId" />
- <PropertyRef Name="ParentBudgetClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_CmFile1">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId1" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_CmFile2">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId2" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_CmFile3">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId3" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_CmPartner">
- <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartner">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
- <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsConstructionCodeProgress">
- <PropertyRef Name="ProgressId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="ProgressId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
- <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsConstructionCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionTypeId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstructionEstimation_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsConstructionEstimation">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EstimateUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
- <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Principal>
- <Dependent Role="FmsConstructionEstimation">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_CmPartner">
- <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
- <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartner">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_CmPartnerType">
- <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="0..1" />
- <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartnerType">
- <PropertyRef Name="PartnerTypeId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="PartnerTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_FmsContractClass">
- <End Role="FmsContractClass" Type="Self.FmsContractClass" Multiplicity="0..1" />
- <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsContractClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractClassId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_FmsContractMethod">
- <End Role="FmsContractMethod" Type="Self.FmsContractMethod" Multiplicity="0..1" />
- <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsContractMethod">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractMethodId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractMethodId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_FmsContractType">
- <End Role="FmsContractType" Type="Self.FmsContractType" Multiplicity="0..1" />
- <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsContractType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractTypeId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_FmsPaymentType">
- <End Role="FmsPaymentType" Type="Self.FmsPaymentType" Multiplicity="0..1" />
- <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsPaymentType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PaymentTypeId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsDailyCheckReport_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsDailyCheckReport" Type="Self.FmsDailyCheckReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsDailyCheckReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsDailyReport_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsDailyReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsDailyReport_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsDailyReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipment_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsEquipment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
- <End Role="FmsEquipmentCodeType" Type="Self.FmsEquipmentCodeType" Multiplicity="1" />
- <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipmentCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentTypeId" />
- </Principal>
- <Dependent Role="FmsEquipment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
- <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Principal>
- <Dependent Role="FmsEquipment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
- <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="1" />
- <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentId" />
- </Principal>
- <Dependent Role="FmsEquipmentHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
- <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
- <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipmentCodeStateType">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Principal>
- <Dependent Role="FmsEquipmentHistory">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
- <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="0..1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipmentRentInfo">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentRentId" />
- </Principal>
- <Dependent Role="FmsEquipmentHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentRentId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentRentInfo_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsEquipmentRentInfo">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsEquipmentRentInfo">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RentUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
- <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
- <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipmentCodeStateType">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Principal>
- <Dependent Role="FmsEquipmentRentInfo">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsFacilityOperationReport_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsFacilityOperationReport" Type="Self.FmsFacilityOperationReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsFacilityOperationReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsManual_FmsManualType">
- <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
- <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsManualType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualTypeId" />
- </Principal>
- <Dependent Role="FmsManual">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsManualHistory_CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsManualHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsManualHistory_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsManualHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UpdatedUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsManualHistory_FmsManual">
- <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
- <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsManual">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- </Principal>
- <Dependent Role="FmsManualHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ImageFileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
- <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeLocation">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LocationId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LocationId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
- <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialTypeId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
- <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialTradeCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrderMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrderMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
- <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodePurchaseType">
- <PropertyRef Name="PurchaseTypeId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="PurchaseTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequestMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequestMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConfirmedUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_CmUser1">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AdjustmentUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_FmsMaterial">
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="0..1" />
- <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
- <End Role="FmsMaterialCodeAdjustmentType" Type="Self.FmsMaterialCodeAdjustmentType" Multiplicity="1" />
- <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeAdjustmentType">
- <PropertyRef Name="AdjustmentTypeId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="AdjustmentTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
- <End Role="FmsMaterialCodeReleaseType" Type="Self.FmsMaterialCodeReleaseType" Multiplicity="1" />
- <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeReleaseType">
- <PropertyRef Name="ReleaseTypeId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="ReleaseTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
- <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialStored_FmsMaterial">
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMonthlyReport_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsMonthlyReport" Type="Self.FmsMonthlyReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMonthlyReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmUser1">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConfirmUserId1" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmUser2">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConfirmUserId2" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkOrderToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkRequest_CmPartner">
- <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartner">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InspectionAgencyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkRequestToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
- <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItemMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
- <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItemMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
- <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1" />
- <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResultCheckItem">
- <PropertyRef Name="CheckItemId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItemMaterial">
- <PropertyRef Name="CheckItemId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkSchedule_CmPartner">
- <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
- <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartner">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InspectionAgencyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkScheduleToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="iBemsModelStoreContainer">
- <EntitySet Name="BemsAlarmGroup" EntityType="Self.BemsAlarmGroup" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsAlarmGroupUser" EntityType="Self.BemsAlarmGroupUser" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsAlarmLog" EntityType="Self.BemsAlarmLog" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsAlarmSetting" EntityType="Self.BemsAlarmSetting" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsChartInfo" EntityType="Self.BemsChartInfo" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsConfigData" EntityType="Self.BemsConfigData" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsControlAHUTempConfig" EntityType="Self.BemsControlAHUTempConfig" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="Self.BemsEnergyConfigPercentMonth" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="Self.BemsEnergyConfigPercentWeek" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsEnergyCost" EntityType="Self.BemsEnergyCost" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsEnergyDaily" EntityType="Self.BemsEnergyDaily" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsEnergyDailyRegression" EntityType="Self.BemsEnergyDailyRegression" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFloorPlan" EntityType="Self.BemsFloorPlan" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFloorStatus" EntityType="Self.BemsFloorStatus" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFuelType" EntityType="Self.BemsFuelType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="Self.BemsIceThermalStorageSimulation" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointConfig" EntityType="Self.BemsMonitoringPointConfig" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="Self.BemsMonitoringPointForecastingDayAhead" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="Self.BemsMonitoringPointForecastingHourAhead" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="Self.BemsMonitoringPointHistory15minRawData" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="Self.BemsMonitoringPointWeatherForecasted" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsNoticePriceBase" EntityType="Self.BemsNoticePriceBase" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsNoticePriceContractType" EntityType="Self.BemsNoticePriceContractType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsNoticePriceDetail" EntityType="Self.BemsNoticePriceDetail" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPeakFacility" EntityType="Self.BemsPeakFacility" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPeakHistory" EntityType="Self.BemsPeakHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPeakHistoryDaily" EntityType="Self.BemsPeakHistoryDaily" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPeakInfo" EntityType="Self.BemsPeakInfo" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPeopleIncrease" EntityType="Self.BemsPeopleIncrease" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPriceCode" EntityType="Self.BemsPriceCode" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPriceFormula" EntityType="Self.BemsPriceFormula" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPriceMeta" EntityType="Self.BemsPriceMeta" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPriceType" EntityType="Self.BemsPriceType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsRentalRate" EntityType="Self.BemsRentalRate" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsReportFormat" EntityType="Self.BemsReportFormat" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsReportHistory" EntityType="Self.BemsReportHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsSitePrice" EntityType="Self.BemsSitePrice" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsSitePriceHistory" EntityType="Self.BemsSitePriceHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmAlarmAdmin" EntityType="Self.CmAlarmAdmin" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmCompany" EntityType="Self.CmCompany" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmFacility" EntityType="Self.CmFacility" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmFile" EntityType="Self.CmFile" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmFloor" EntityType="Self.CmFloor" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmHolidayWeekend" EntityType="Self.CmHolidayWeekend" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmMenu" EntityType="Self.CmMenu" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPartner" EntityType="Self.CmPartner" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPartnerType" EntityType="Self.CmPartnerType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolCourse" EntityType="Self.CmPatrolCourse" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolCoursePos" EntityType="Self.CmPatrolCoursePos" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolGroup" EntityType="Self.CmPatrolGroup" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolGroupUser" EntityType="Self.CmPatrolGroupUser" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolHistory" EntityType="Self.CmPatrolHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolHistoryPos" EntityType="Self.CmPatrolHistoryPos" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolPlan" EntityType="Self.CmPatrolPlan" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolPos" EntityType="Self.CmPatrolPos" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolSchedule" EntityType="Self.CmPatrolSchedule" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolType" EntityType="Self.CmPatrolType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPosition" EntityType="Self.CmPosition" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmServiceEnergyCalcDay" EntityType="Self.CmServiceEnergyCalcDay" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="Self.CmServiceEnergyCalcMonth" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmSite" EntityType="Self.CmSite" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmUser" EntityType="Self.CmUser" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmZone" EntityType="Self.CmZone" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsBudgetDetail" EntityType="Self.FmsBudgetDetail" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsBudgetDetailExecution" EntityType="Self.FmsBudgetDetailExecution" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsContract" EntityType="Self.FmsContract" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsDailyCheckReport" EntityType="Self.FmsDailyCheckReport" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsDailyReport" EntityType="Self.FmsDailyReport" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsEquipment" EntityType="Self.FmsEquipment" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsEquipmentRentInfo" EntityType="Self.FmsEquipmentRentInfo" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsFacilityOperationReport" EntityType="Self.FmsFacilityOperationReport" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsInvestmentCost" EntityType="Self.FmsInvestmentCost" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsManual" EntityType="Self.FmsManual" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterial" EntityType="Self.FmsMaterial" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialRelease" EntityType="Self.FmsMaterialRelease" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMonthlyReport" EntityType="Self.FmsMonthlyReport" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsReport" EntityType="Self.FmsReport" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkSchedule" EntityType="Self.FmsWorkSchedule" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="WeatherDongNaeForecast" EntityType="Self.WeatherDongNaeForecast" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="Self.FK__BemsEnerg__SiteI__7954A4F6">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="Self.FK__BemsEnerg__SiteI__7C3111A1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="Self.FK__BemsEnergyDaily__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="Self.FK__BemsEnergyDaily__BemsServiceType">
- <End Role="BemsServiceType" EntitySet="BemsServiceType" />
- <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="Self.FK__BemsEnergyDaily__CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="Self.FK__BemsFactorCo2__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="Self.FK__BemsFactorToe__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
- <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
- <End Role="BemsFormula" EntitySet="BemsFormula" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
- <End Role="BemsFormula" EntitySet="BemsFormula" />
- <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
- <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
- <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
- <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
- <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="Self.FK__BemsMonitoringPoint__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
- <End Role="BemsServiceType" EntitySet="BemsServiceType" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
- <End Role="CmZone" EntitySet="CmZone" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
- <End Role="BemsServiceType" EntitySet="BemsServiceType" />
- <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="Self.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
- <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
- <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="Self.FK__BemsNoticePriceContractType__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="Self.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
- <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
- <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
- </AssociationSet>
- <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
- <End Role="CmCompanyType" EntitySet="CmCompanyType" />
- <End Role="CmCompany" EntitySet="CmCompany" />
- </AssociationSet>
- <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="Self.FK__CmCompany__SiteI__336AA144">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmCompany" EntitySet="CmCompany" />
- </AssociationSet>
- <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
- <End Role="CmCompany" EntitySet="CmCompany" />
- <End Role="CmDepartment" EntitySet="CmDepartment" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__CmFacility" Association="Self.FK__CmFacility__CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="CmFacility1" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="Self.FK__CmFacilityFile__7720AD13">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="Self.FK__CmFacilityManual__79FD19BE">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
- <End Role="CmFileCategory" EntitySet="CmFileCategory" />
- <End Role="CmFile" EntitySet="CmFile" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="Self.FK__CmFile__SiteId__2759D01A">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmFile" EntitySet="CmFile" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmFloor" EntitySet="CmFloor" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="Self.FK__CmHoliday__SiteI__0BB1B5A5">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHoliday" EntitySet="CmHoliday" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="Self.FK__CmHoliday__SiteI__0D99FE17">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="Self.FK__CmHoliday__SiteI__10766AC2">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="Self.FK__CmHoliday__SiteI__65AC084E">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHoliday" EntitySet="CmHoliday" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="Self.FK__CmHoliday__SiteI__66A02C87">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
- </AssociationSet>
- <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="CmZone" EntitySet="CmZone" />
- </AssociationSet>
- <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="Self.FK__CmPositio__SiteI__6A70BD6B">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPosition" EntitySet="CmPosition" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="Self.FK__CmUserGro__SiteI__53D770D6">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmUserGroup" EntitySet="CmUserGroup" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
- <End Role="CmUserGroup" EntitySet="CmUserGroup" />
- <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="Self.FK__CmUserPos__SiteI__44952D46">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPosition" EntitySet="CmPosition" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
- <End Role="FmsLicense" EntitySet="FmsLicense" />
- <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
- </AssociationSet>
- <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmZone" EntitySet="CmZone" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="Self.FK__FmsDrawin__SiteI__6B79F03D">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="Self.FK__FmsDrawin__SiteI__6C6E1476">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="Self.FK__FmsDrawin__SiteI__6D6238AF">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawing" EntitySet="FmsDrawing" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="Self.FK__FmsDrawin__SiteI__6F357288">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="Self.FK__FmsDrawin__SiteI__702996C1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
- <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
- <End Role="FmsDrawing" EntitySet="FmsDrawing" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
- <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
- <End Role="FmsDrawing" EntitySet="FmsDrawing" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
- <End Role="FmsDrawing" EntitySet="FmsDrawing" />
- <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
- <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
- <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
- <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="Self.FK__FmsFacilityCodeClass__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
- <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
- <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="Self.FK__FmsFacilityOpera__725BF7F6">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsLicense" EntitySet="FmsLicense" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsLicense__CmSite" Association="Self.FK__FmsLicense__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsLicense" EntitySet="FmsLicense" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="Self.FK__FmsMaterialCarriedForward__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="Self.FK__FmsMaterialCodeClass__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="Self.FK__FmsMaterialCodeLocation__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="Self.FK__FmsMaterialCodeType__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="Self.FK__FmsMaterialOrder__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
- <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="Self.FK__FmsMaterialPurchasingRequest__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
- <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="Self.FK__FmsMaterialStored__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="Self.FK__FmsMaterialTradeCompany__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="Self.FK__FmsMaterialWarehouse__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="Self.FK__FmsWorkCodeCauseClass__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="Self.FK__FmsWorkCodeCycleUnit__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="Self.FK__FmsWorkCodeEmergency__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="Self.FK__FmsWorkCodeHolidayWorkType__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="Self.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="Self.FK__FmsWorkOrder__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
- <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="Self.FK__FmsWorkRequest__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
- <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="Self.FK__FmsWorkRequest__FmsWorkSchedule">
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
- <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="Self.FK__FmsWorkResultCheckItem__CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
- <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="Self.FK__FmsWorkResultToFacility__CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="Self.FK__FmsWorkSchedule__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="Self.FK__FmsWorkSchedule__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
- <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
- <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="Self.FK_BemsAlarmLog_BemsAlarmSetting">
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="Self.FK_BemsAlarmSetting_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="Self.FK_BemsAlarmSetting_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="Self.FK_BemsAlarmSetting_CmSite1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="Self.FK_BemsChartInfo_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="Self.FK_BemsChartInfo_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="Self.FK_BemsEnergyCost_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="Self.FK_BemsEnergyDailyRegression_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="Self.FK_BemsFormulaParameter_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="Self.FK_BemsMonitoringPoint_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="Self.FK_BemsMonitoringPointConfig_BemsFacilityType1">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="Self.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="Self.FK_BemsPeakFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="Self.FK_BemsPeakHIstory_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="Self.FK_BemsPeakInfo_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="Self.FK_BemsPeopleIncrease_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="Self.FK_BemsPriceCode_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="Self.FK_BemsPriceFormula_BemsFormula">
- <End Role="BemsFormula" EntitySet="BemsFormula" />
- <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="Self.FK_BemsPriceFormula_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="Self.FK_BemsPriceMeta_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="Self.FK_BemsPriceType_BemsFuelType1">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="Self.FK_BemsRentalRate_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="Self.FK_BemsSitePrice_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="Self.FK_BemsSitePrice_BemsPriceCode">
- <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="Self.FK_BemsSitePrice_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="Self.FK_BemsSitePrice_CmSite1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="Self.FK_BemsSitePriceHistory_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="Self.FK_BemsSitePriceHistory_BemsPriceCode">
- <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="Self.FK_BemsSitePriceHistory_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="Self.FK_BemsSitePriceHistory_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
- </AssociationSet>
- <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
- </AssociationSet>
- <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="Self.FK_CmFacilityTempSet_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="Self.FK_CmFacilityTempSet_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
- </AssociationSet>
- <AssociationSet Name="FK_CmMenu_CmSite" Association="Self.FK_CmMenu_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmMenu" EntitySet="CmMenu" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="Self.FK_CmPartnerType_CmPartner">
- <End Role="CmPartnerType" EntitySet="CmPartnerType" />
- <End Role="CmPartner" EntitySet="CmPartner" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="Self.FK_CmPatrolCourse_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="Self.FK_CmPatrolCoursePos_CmPatrolCourse">
- <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
- <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="Self.FK_CmPatrolCoursePos_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="Self.FK_CmPatrolGroup_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="Self.FK_CmPatrolGroupUser_CmPatrolGroup">
- <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
- <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="Self.FK_CmPatrolGroupUser_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="Self.FK_CmPatrolHistory_CmPatrolSchedule">
- <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
- <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="Self.FK_CmPatrolHistory_CmPatrolType">
- <End Role="CmPatrolType" EntitySet="CmPatrolType" />
- <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="Self.FK_CmPatrolHistory_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="Self.FK_CmPatrolHistoryPos_CmPatrolPos">
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="Self.FK_CmPatrolHistoryPos_CmPatrolType">
- <End Role="CmPatrolType" EntitySet="CmPatrolType" />
- <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="Self.FK_CmPatrolHistoryPos_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="Self.FK_CmPatrolPlan_CmPatrolCourse">
- <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="Self.FK_CmPatrolPlan_CmPatrolGroup">
- <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="Self.FK_CmPatrolPlan_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="Self.FK_CmPatrolPos_CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="Self.FK_CmPatrolPos_CmFloor">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="Self.FK_CmPatrolPos_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="Self.FK_CmPatrolSchedule_CmPatrolPlan">
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="Self.FK_CmPatrolSchedule_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolType_CmSite" Association="Self.FK_CmPatrolType_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolType" EntitySet="CmPatrolType" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
- <End Role="CmCompany" EntitySet="CmCompany" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
- <End Role="CmDepartment" EntitySet="CmDepartment" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
- <End Role="CmPosition" EntitySet="CmPosition" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
- <End Role="CmUserGroup" EntitySet="CmUserGroup" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </AssociationSet>
- <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </AssociationSet>
- <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="Self.FK_CmZoneTempHumiSet_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </AssociationSet>
- <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
- <End Role="CmZone" EntitySet="CmZone" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_CmCompany" Association="Self.FK_FmsAccident_CmCompany">
- <End Role="CmCompany" EntitySet="CmCompany" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
- <End Role="CmDepartment" EntitySet="CmDepartment" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
- <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="Self.FK_FmsBudgetDetail_FmsBudget">
- <End Role="FmsBudget" EntitySet="FmsBudget" />
- <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="Self.FK_FmsBudgetDetail_FmsBudgetCodeClass">
- <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
- <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="Self.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
- <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
- <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="Self.FK_FmsConstruction_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
- <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
- <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_CmPartner" Association="Self.FK_FmsContract_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="Self.FK_FmsContract_CmPartnerType">
- <End Role="CmPartnerType" EntitySet="CmPartnerType" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="Self.FK_FmsContract_FmsContractClass">
- <End Role="FmsContractClass" EntitySet="FmsContractClass" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="Self.FK_FmsContract_FmsContractMethod">
- <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsContractType" Association="Self.FK_FmsContract_FmsContractType">
- <End Role="FmsContractType" EntitySet="FmsContractType" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="Self.FK_FmsContract_FmsPaymentType">
- <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="Self.FK_FmsDailyCheckReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="Self.FK_FmsDailyReport_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="Self.FK_FmsDailyReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipment_CmUser" Association="Self.FK_FmsEquipment_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="Self.FK_FmsEquipment_FmsEquipmentCodeType">
- <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="Self.FK_FmsEquipment_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="Self.FK_FmsEquipmentHistory_FmsEquipment">
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
- <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
- <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="Self.FK_FmsEquipmentRentInfo_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="Self.FK_FmsEquipmentRentInfo_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
- <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="Self.FK_FmsFacilityOperationReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
- <End Role="FmsManualType" EntitySet="FmsManualType" />
- <End Role="FmsManual" EntitySet="FmsManual" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
- <End Role="FmsManual" EntitySet="FmsManual" />
- <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="Self.FK_FmsMaterial_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_CmFile" Association="Self.FK_FmsMaterial_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_CmSite" Association="Self.FK_FmsMaterial_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="Self.FK_FmsMaterial_FmsMaterialCodeLocation">
- <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="Self.FK_FmsMaterial_FmsMaterialCodeType">
- <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="Self.FK_FmsMaterial_FmsMaterialTradeCompany">
- <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="Self.FK_FmsMaterial_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
- <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="Self.FK_FmsMaterialRelease_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="Self.FK_FmsMaterialRelease_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="Self.FK_FmsMaterialRelease_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="Self.FK_FmsMaterialRelease_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="Self.FK_FmsMaterialRelease_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
- <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
- <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="Self.FK_FmsMaterialRelease_FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="Self.FK_FmsMaterialStored_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="Self.FK_FmsMonthlyReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="Self.FK_FmsReport_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmFile" Association="Self.FK_FmsReport_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmSite" Association="Self.FK_FmsReport_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmUser" Association="Self.FK_FmsReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmUser1" Association="Self.FK_FmsReport_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmUser2" Association="Self.FK_FmsReport_CmUser2">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="Self.FK_FmsWorkOrderToFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="Self.FK_FmsWorkRequest_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="Self.FK_FmsWorkRequestToFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="Self.FK_FmsWorkSchedule_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="Self.FK_FmsWorkScheduleToFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
|