DataModel.edmx 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  3. <!-- EF Runtime content -->
  4. <edmx:Runtime>
  5. <!-- SSDL content -->
  6. <edmx:StorageModels>
  7. <Schema Namespace="iBemsModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2008" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  8. <EntityType Name="BemsAlarmGroup">
  9. <Key>
  10. <PropertyRef Name="SiteId" />
  11. <PropertyRef Name="AlarmGroupId" />
  12. </Key>
  13. <Property Name="SiteId" Type="int" Nullable="false" />
  14. <Property Name="AlarmGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  15. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  16. </EntityType>
  17. <EntityType Name="BemsAlarmGroupUser">
  18. <Key>
  19. <PropertyRef Name="SiteId" />
  20. <PropertyRef Name="AlarmGroupId" />
  21. <PropertyRef Name="UserId" />
  22. </Key>
  23. <Property Name="SiteId" Type="int" Nullable="false" />
  24. <Property Name="AlarmGroupId" Type="int" Nullable="false" />
  25. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  26. </EntityType>
  27. <EntityType Name="BemsAlarmLog">
  28. <Key>
  29. <PropertyRef Name="SiteId" />
  30. <PropertyRef Name="FacilityTypeId" />
  31. <PropertyRef Name="FacilityCode" />
  32. <PropertyRef Name="PropertyId" />
  33. <PropertyRef Name="FormulaId" />
  34. <PropertyRef Name="CreatedDateTime" />
  35. </Key>
  36. <Property Name="SiteId" Type="int" Nullable="false" />
  37. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  38. <Property Name="FacilityCode" Type="int" Nullable="false" />
  39. <Property Name="PropertyId" Type="int" Nullable="false" />
  40. <Property Name="FormulaId" Type="int" Nullable="false" />
  41. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  42. <Property Name="CurrentValue" Type="float" />
  43. <Property Name="SMSResult" Type="nvarchar" MaxLength="2" />
  44. <Property Name="EmailResult" Type="nvarchar" MaxLength="2" />
  45. <Property Name="Conform" Type="bit" />
  46. </EntityType>
  47. <EntityType Name="BemsAlarmSetting">
  48. <Key>
  49. <PropertyRef Name="SiteId" />
  50. <PropertyRef Name="FacilityTypeId" />
  51. <PropertyRef Name="FacilityCode" />
  52. <PropertyRef Name="PropertyId" />
  53. <PropertyRef Name="FormulaId" />
  54. </Key>
  55. <Property Name="SiteId" Type="int" Nullable="false" />
  56. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  57. <Property Name="FacilityCode" Type="int" Nullable="false" />
  58. <Property Name="PropertyId" Type="int" Nullable="false" />
  59. <Property Name="FormulaId" Type="int" Nullable="false" />
  60. <Property Name="FacilityName" Type="nvarchar" MaxLength="80" Nullable="false" />
  61. <Property Name="PointName" Type="nvarchar" MaxLength="64" Nullable="false" />
  62. <Property Name="UseUpperLimit" Type="bit" Nullable="false" />
  63. <Property Name="UpperLimit" Type="float" />
  64. <Property Name="UseLowerLimit" Type="bit" Nullable="false" />
  65. <Property Name="LowerLimit" Type="float" />
  66. <Property Name="UseAlarm" Type="bit" Nullable="false" />
  67. <Property Name="UseSMS" Type="bit" Nullable="false" />
  68. <Property Name="UseEmail" Type="bit" Nullable="false" />
  69. <Property Name="AlarmGroupName" Type="nvarchar" MaxLength="50" Nullable="false" />
  70. <Property Name="Content" Type="nvarchar" MaxLength="1000" />
  71. </EntityType>
  72. <EntityType Name="BemsAnalysisType">
  73. <Key>
  74. <PropertyRef Name="SiteId" />
  75. <PropertyRef Name="AnalysisType" />
  76. </Key>
  77. <Property Name="SiteId" Type="int" Nullable="false" />
  78. <Property Name="AnalysisType" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  79. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  80. </EntityType>
  81. <EntityType Name="BemsChartInfo">
  82. <Key>
  83. <PropertyRef Name="SiteId" />
  84. <PropertyRef Name="FacilityTypeId" />
  85. <PropertyRef Name="ChartId" />
  86. </Key>
  87. <Property Name="SiteId" Type="int" Nullable="false" />
  88. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  89. <Property Name="ChartId" Type="int" Nullable="false" />
  90. <Property Name="LAxTitle" Type="nvarchar" MaxLength="64" Nullable="false" />
  91. <Property Name="RAxTitle" Type="nvarchar" MaxLength="64" />
  92. <Property Name="XAxTitle" Type="nvarchar" MaxLength="64" />
  93. <Property Name="XSFmId" Type="int" />
  94. <Property Name="XSType" Type="nvarchar" MaxLength="16" />
  95. <Property Name="LSFmId1" Type="int" Nullable="false" />
  96. <Property Name="LSName1" Type="nvarchar" MaxLength="64" Nullable="false" />
  97. <Property Name="LSType1" Type="nvarchar" MaxLength="16" Nullable="false" />
  98. <Property Name="LSFmId2" Type="int" />
  99. <Property Name="LSName2" Type="nvarchar" MaxLength="64" />
  100. <Property Name="LSType2" Type="nvarchar" MaxLength="16" />
  101. <Property Name="LSFmId3" Type="int" />
  102. <Property Name="LSName3" Type="nvarchar" MaxLength="64" />
  103. <Property Name="LSType3" Type="nvarchar" MaxLength="16" />
  104. <Property Name="LSFmId4" Type="int" />
  105. <Property Name="LSName4" Type="nvarchar" MaxLength="64" />
  106. <Property Name="LSType4" Type="nvarchar" MaxLength="16" />
  107. <Property Name="RSFmId1" Type="int" />
  108. <Property Name="RSName1" Type="nvarchar" MaxLength="64" />
  109. <Property Name="RSType1" Type="nvarchar" MaxLength="16" />
  110. <Property Name="RSFmId2" Type="int" />
  111. <Property Name="RSName2" Type="nvarchar" MaxLength="64" />
  112. <Property Name="RSType2" Type="nvarchar" MaxLength="16" />
  113. <Property Name="RSFmId3" Type="int" />
  114. <Property Name="RSName3" Type="nvarchar" MaxLength="64" />
  115. <Property Name="RSType3" Type="nvarchar" MaxLength="16" />
  116. <Property Name="RSFmId4" Type="int" />
  117. <Property Name="RSName4" Type="nvarchar" MaxLength="64" />
  118. <Property Name="RSType4" Type="nvarchar" MaxLength="16" />
  119. <Property Name="Title" Type="nvarchar" MaxLength="64" Nullable="false" />
  120. <Property Name="UseX" Type="bit" />
  121. <Property Name="UseLAxMinMax" Type="bit" />
  122. <Property Name="UseRAxMinMax" Type="bit" />
  123. <Property Name="UseXAxMinMax" Type="bit" />
  124. <Property Name="LAxMin" Type="float" />
  125. <Property Name="LAxMax" Type="float" />
  126. <Property Name="RAxMin" Type="float" />
  127. <Property Name="RAxMax" Type="float" />
  128. <Property Name="XAxMin" Type="float" />
  129. <Property Name="XAxMax" Type="float" />
  130. <Property Name="Palette" Type="nvarchar" MaxLength="32" Nullable="false" />
  131. <Property Name="UseChart" Type="bit" />
  132. <Property Name="UseLCTLine" Type="bit" Nullable="false" />
  133. <Property Name="LCTLineTitle" Type="nvarchar" MaxLength="64" />
  134. <Property Name="LCTLineValue" Type="float" />
  135. <Property Name="UseRCTLine" Type="bit" Nullable="false" />
  136. <Property Name="RCTLineTitle" Type="nvarchar" MaxLength="64" />
  137. <Property Name="RCTLineValue" Type="float" />
  138. </EntityType>
  139. <EntityType Name="BemsControlAHUTempConfig">
  140. <Key>
  141. <PropertyRef Name="SiteId" />
  142. <PropertyRef Name="FacilityTypeId" />
  143. <PropertyRef Name="FacilityCode" />
  144. </Key>
  145. <Property Name="SiteId" Type="int" Nullable="false" />
  146. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  147. <Property Name="FacilityCode" Type="int" Nullable="false" />
  148. <Property Name="MaxTemperature" Type="float" Nullable="false" />
  149. <Property Name="MinTemperature" Type="float" Nullable="false" />
  150. </EntityType>
  151. <EntityType Name="BemsControlPointHistory">
  152. <Key>
  153. <PropertyRef Name="SiteId" />
  154. <PropertyRef Name="FacilityCode" />
  155. <PropertyRef Name="PropertyId" />
  156. <PropertyRef Name="CreateDateTime" />
  157. </Key>
  158. <Property Name="SiteId" Type="int" Nullable="false" />
  159. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  160. <Property Name="FacilityCode" Type="int" Nullable="false" />
  161. <Property Name="PropertyId" Type="int" Nullable="false" />
  162. <Property Name="CreateDateTime" Type="datetime" Nullable="false" />
  163. <Property Name="ControlValue" Type="float" Nullable="false" />
  164. <Property Name="WriteServiceName" Type="nvarchar" MaxLength="64" />
  165. <Property Name="ActionDateTime" Type="datetime" />
  166. </EntityType>
  167. <EntityType Name="BemsEnergyConfigPercentMonth">
  168. <Key>
  169. <PropertyRef Name="SiteId" />
  170. <PropertyRef Name="Year" />
  171. <PropertyRef Name="Month" />
  172. </Key>
  173. <Property Name="SiteId" Type="int" Nullable="false" />
  174. <Property Name="Year" Type="int" Nullable="false" />
  175. <Property Name="Month" Type="int" Nullable="false" />
  176. <Property Name="Electricity" Type="float" />
  177. <Property Name="Gas" Type="float" />
  178. <Property Name="Water" Type="float" />
  179. </EntityType>
  180. <EntityType Name="BemsEnergyConfigPercentWeek">
  181. <Key>
  182. <PropertyRef Name="SiteId" />
  183. <PropertyRef Name="Year" />
  184. <PropertyRef Name="Week" />
  185. </Key>
  186. <Property Name="SiteId" Type="int" Nullable="false" />
  187. <Property Name="Year" Type="int" Nullable="false" />
  188. <Property Name="Week" Type="int" Nullable="false" />
  189. <Property Name="Electricity" Type="float" />
  190. <Property Name="Gas" Type="float" />
  191. <Property Name="Water" Type="float" />
  192. </EntityType>
  193. <EntityType Name="BemsEnergyCost">
  194. <Key>
  195. <PropertyRef Name="SiteId" />
  196. <PropertyRef Name="FacilityCode" />
  197. </Key>
  198. <Property Name="SiteId" Type="int" Nullable="false" />
  199. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  200. <Property Name="FacilityCode" Type="int" Nullable="false" />
  201. <Property Name="PowerConsumption1" Type="float" />
  202. <Property Name="PowerConsumption2" Type="float" />
  203. <Property Name="GasConsumption" Type="float" />
  204. <Property Name="GasHeatQuantity" Type="float" />
  205. <Property Name="PowerPriceTypeId" Type="int" />
  206. <Property Name="GasPriceTypeId" Type="int" />
  207. <Property Name="IsUse" Type="bit" />
  208. </EntityType>
  209. <EntityType Name="BemsEnergyDaily">
  210. <Key>
  211. <PropertyRef Name="SiteId" />
  212. <PropertyRef Name="BuildingId" />
  213. <PropertyRef Name="ServiceTypeId" />
  214. <PropertyRef Name="FuelTypeId" />
  215. <PropertyRef Name="CreatedDate" />
  216. </Key>
  217. <Property Name="SiteId" Type="int" Nullable="false" />
  218. <Property Name="BuildingId" Type="int" Nullable="false" />
  219. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  220. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  221. <Property Name="CreatedDate" Type="date" Nullable="false" />
  222. <Property Name="Prediction" Type="float" />
  223. <Property Name="Measurement" Type="float" />
  224. <Property Name="Goal" Type="float" />
  225. <Property Name="Prediction_Regression" Type="float" />
  226. <Property Name="MeanT" Type="float" />
  227. <Property Name="HDD" Type="float" />
  228. <Property Name="CDD" Type="float" />
  229. </EntityType>
  230. <EntityType Name="BemsEnergyDailyRegression">
  231. <Key>
  232. <PropertyRef Name="SiteId" />
  233. </Key>
  234. <Property Name="SiteId" Type="int" Nullable="false" />
  235. <Property Name="Weekday_Power" Type="nvarchar" MaxLength="50" />
  236. <Property Name="Weekday_Power_Temp" Type="nvarchar" MaxLength="50" />
  237. <Property Name="Weekday_Gas" Type="nvarchar" MaxLength="50" />
  238. <Property Name="Weekday_Gas_Temp" Type="nvarchar" MaxLength="50" />
  239. <Property Name="Weekday_Water" Type="nvarchar" MaxLength="50" />
  240. <Property Name="Weekday_Water_Temp" Type="nvarchar" MaxLength="50" />
  241. <Property Name="Holiday_Power" Type="nvarchar" MaxLength="50" />
  242. <Property Name="Holiday_Power_Temp" Type="nvarchar" MaxLength="50" />
  243. <Property Name="Holiday_Gas" Type="nvarchar" MaxLength="50" />
  244. <Property Name="Holiday_Gas_Temp" Type="nvarchar" MaxLength="50" />
  245. <Property Name="Holiday_Water" Type="nvarchar" MaxLength="50" />
  246. <Property Name="Holiday_Water_Temp" Type="nvarchar" MaxLength="50" />
  247. <Property Name="IsRegression" Type="bit" />
  248. </EntityType>
  249. <EntityType Name="BemsFacilityType">
  250. <Key>
  251. <PropertyRef Name="FacilityTypeId" />
  252. </Key>
  253. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  254. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  255. </EntityType>
  256. <EntityType Name="BemsFactorCo2">
  257. <Key>
  258. <PropertyRef Name="FuelTypeId" />
  259. </Key>
  260. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  261. <Property Name="Factor" Type="float" Nullable="false" />
  262. </EntityType>
  263. <EntityType Name="BemsFactorToe">
  264. <Key>
  265. <PropertyRef Name="FuelTypeId" />
  266. </Key>
  267. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  268. <Property Name="TotalFactor" Type="float" Nullable="false" />
  269. <Property Name="PureFactor" Type="float" Nullable="false" />
  270. <Property Name="kcal" Type="float" />
  271. </EntityType>
  272. <EntityType Name="BemsFloorPlan">
  273. <Key>
  274. <PropertyRef Name="SiteId" />
  275. <PropertyRef Name="Name" />
  276. </Key>
  277. <Property Name="SiteId" Type="int" Nullable="false" />
  278. <Property Name="FloorId" Type="int" Nullable="false" />
  279. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  280. <Property Name="ImageFileId" Type="int" />
  281. </EntityType>
  282. <EntityType Name="BemsFloorStatus">
  283. <Key>
  284. <PropertyRef Name="SiteId" />
  285. <PropertyRef Name="FloorId" />
  286. <PropertyRef Name="FloorName" />
  287. <PropertyRef Name="ImageFileId" />
  288. <PropertyRef Name="Xvalue" />
  289. <PropertyRef Name="Yvalue" />
  290. <PropertyRef Name="PropertyId" />
  291. </Key>
  292. <Property Name="SiteId" Type="int" Nullable="false" />
  293. <Property Name="FloorId" Type="int" Nullable="false" />
  294. <Property Name="FloorName" Type="nvarchar" MaxLength="50" Nullable="false" />
  295. <Property Name="ImageFileId" Type="int" Nullable="false" />
  296. <Property Name="Xvalue" Type="int" Nullable="false" />
  297. <Property Name="Yvalue" Type="int" Nullable="false" />
  298. <Property Name="ZoneId" Type="int" />
  299. <Property Name="ServiceTypeId" Type="int" />
  300. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  301. <Property Name="FacilityCode" Type="int" Nullable="false" />
  302. <Property Name="PropertyId" Type="int" Nullable="false" />
  303. <Property Name="FacilityName" Type="nvarchar" MaxLength="64" />
  304. </EntityType>
  305. <EntityType Name="BemsFormula">
  306. <Key>
  307. <PropertyRef Name="SiteId" />
  308. <PropertyRef Name="FacilityTypeId" />
  309. <PropertyRef Name="FacilityCode" />
  310. <PropertyRef Name="FormulaId" />
  311. </Key>
  312. <Property Name="SiteId" Type="int" Nullable="false" />
  313. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  314. <Property Name="FacilityCode" Type="int" Nullable="false" />
  315. <Property Name="FormulaId" Type="int" Nullable="false" />
  316. <Property Name="Formula" Type="nvarchar" MaxLength="120" Nullable="false" />
  317. </EntityType>
  318. <EntityType Name="BemsFormulaBase">
  319. <Key>
  320. <PropertyRef Name="FacilityTypeId" />
  321. <PropertyRef Name="FormulaId" />
  322. </Key>
  323. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  324. <Property Name="FormulaId" Type="int" Nullable="false" />
  325. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  326. </EntityType>
  327. <EntityType Name="BemsFormulaParameter">
  328. <Key>
  329. <PropertyRef Name="SiteId" />
  330. <PropertyRef Name="FacilityCode" />
  331. <PropertyRef Name="FormulaId" />
  332. <PropertyRef Name="ParameterId" />
  333. </Key>
  334. <Property Name="SiteId" Type="int" Nullable="false" />
  335. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  336. <Property Name="FacilityCode" Type="int" Nullable="false" />
  337. <Property Name="FormulaId" Type="int" Nullable="false" />
  338. <Property Name="ParameterId" Type="nchar" MaxLength="1" Nullable="false" />
  339. <Property Name="ParameterFacilityCode" Type="int" Nullable="false" />
  340. <Property Name="ParameterPropertyId" Type="int" Nullable="false" />
  341. </EntityType>
  342. <EntityType Name="BemsFormulaTable">
  343. <Key>
  344. <PropertyRef Name="TableId" />
  345. </Key>
  346. <Property Name="TableId" Type="int" Nullable="false" />
  347. <Property Name="FunctionName" Type="nvarchar" MaxLength="20" Nullable="false" />
  348. <Property Name="Description" Type="nvarchar" MaxLength="80" Nullable="false" />
  349. </EntityType>
  350. <EntityType Name="BemsFormulaTableValue">
  351. <Key>
  352. <PropertyRef Name="TableId" />
  353. <PropertyRef Name="XValue" />
  354. </Key>
  355. <Property Name="TableId" Type="int" Nullable="false" />
  356. <Property Name="XValue" Type="float" Nullable="false" />
  357. <Property Name="YValue" Type="float" Nullable="false" />
  358. </EntityType>
  359. <EntityType Name="BemsFuelType">
  360. <Key>
  361. <PropertyRef Name="FuelTypeId" />
  362. </Key>
  363. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  364. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  365. </EntityType>
  366. <EntityType Name="BemsMonitoringPoint">
  367. <Key>
  368. <PropertyRef Name="SiteId" />
  369. <PropertyRef Name="FacilityCode" />
  370. <PropertyRef Name="PropertyId" />
  371. </Key>
  372. <Property Name="SiteId" Type="int" Nullable="false" />
  373. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  374. <Property Name="FacilityCode" Type="int" Nullable="false" />
  375. <Property Name="PropertyId" Type="int" Nullable="false" />
  376. <Property Name="ValueType" Type="int" Nullable="false" />
  377. <Property Name="ServiceTypeId" Type="smallint" />
  378. <Property Name="FuelTypeId" Type="smallint" />
  379. <Property Name="Name" Type="nvarchar" MaxLength="64" />
  380. <Property Name="Description" Type="nvarchar" MaxLength="256" />
  381. <Property Name="BuildingId" Type="int" />
  382. <Property Name="FloorId" Type="int" />
  383. <Property Name="ZoneId" Type="int" />
  384. </EntityType>
  385. <EntityType Name="BemsMonitoringPointBaseData">
  386. <Key>
  387. <PropertyRef Name="FacilityTypeId" />
  388. <PropertyRef Name="PropertyId" />
  389. </Key>
  390. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  391. <Property Name="PropertyId" Type="int" Nullable="false" />
  392. <Property Name="ValueType" Type="int" Nullable="false" />
  393. <Property Name="IsAccumulated" Type="bit" Nullable="false" />
  394. <Property Name="ServiceTypeId" Type="smallint" />
  395. <Property Name="FuelTypeId" Type="smallint" />
  396. <Property Name="Name" Type="nvarchar" MaxLength="64" />
  397. <Property Name="Description" Type="nvarchar" MaxLength="256" />
  398. <Property Name="IsSampled" Type="bit" />
  399. <Property Name="IsConverted" Type="bit" />
  400. </EntityType>
  401. <EntityType Name="BemsMonitoringPointConfig">
  402. <Key>
  403. <PropertyRef Name="SiteId" />
  404. <PropertyRef Name="FacilityCode" />
  405. <PropertyRef Name="PropertyId" />
  406. </Key>
  407. <Property Name="SiteId" Type="int" Nullable="false" />
  408. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  409. <Property Name="FacilityCode" Type="int" Nullable="false" />
  410. <Property Name="PropertyId" Type="int" Nullable="false" />
  411. <Property Name="IsAccumulated" Type="bit" Nullable="false" />
  412. <Property Name="IsSampled" Type="bit" Nullable="false" />
  413. <Property Name="SaveMode" Type="int" Nullable="false" />
  414. <Property Name="ControlPointName" Type="nvarchar" MaxLength="200" />
  415. <Property Name="IsConverted" Type="bit" />
  416. </EntityType>
  417. <EntityType Name="BemsMonitoringPointHistory15min">
  418. <Key>
  419. <PropertyRef Name="SiteId" />
  420. <PropertyRef Name="FacilityCode" />
  421. <PropertyRef Name="PropertyId" />
  422. <PropertyRef Name="CreatedDateTime" />
  423. </Key>
  424. <Property Name="SiteId" Type="int" Nullable="false" />
  425. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  426. <Property Name="FacilityCode" Type="int" Nullable="false" />
  427. <Property Name="PropertyId" Type="int" Nullable="false" />
  428. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  429. <Property Name="CurrentValue" Type="float" Nullable="false" />
  430. </EntityType>
  431. <EntityType Name="BemsMonitoringPointHistory15minRawData">
  432. <Key>
  433. <PropertyRef Name="SiteId" />
  434. <PropertyRef Name="FacilityCode" />
  435. <PropertyRef Name="PropertyId" />
  436. <PropertyRef Name="CreatedDateTime" />
  437. </Key>
  438. <Property Name="SiteId" Type="int" Nullable="false" />
  439. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  440. <Property Name="FacilityCode" Type="int" Nullable="false" />
  441. <Property Name="PropertyId" Type="int" Nullable="false" />
  442. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  443. <Property Name="CurrentValue" Type="float" Nullable="false" />
  444. </EntityType>
  445. <EntityType Name="BemsMonitoringPointHistoryDaily">
  446. <Key>
  447. <PropertyRef Name="SiteId" />
  448. <PropertyRef Name="FacilityCode" />
  449. <PropertyRef Name="PropertyId" />
  450. <PropertyRef Name="CreatedDateTime" />
  451. </Key>
  452. <Property Name="SiteId" Type="int" Nullable="false" />
  453. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  454. <Property Name="FacilityCode" Type="int" Nullable="false" />
  455. <Property Name="PropertyId" Type="int" Nullable="false" />
  456. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  457. <Property Name="DailyValue" Type="float" Nullable="false" />
  458. <Property Name="MaxValue" Type="float" />
  459. <Property Name="MinValue" Type="float" />
  460. </EntityType>
  461. <EntityType Name="BemsMonitoringPointHistoryHourly">
  462. <Key>
  463. <PropertyRef Name="SiteId" />
  464. <PropertyRef Name="FacilityCode" />
  465. <PropertyRef Name="PropertyId" />
  466. <PropertyRef Name="CreatedDateTime" />
  467. </Key>
  468. <Property Name="SiteId" Type="int" Nullable="false" />
  469. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  470. <Property Name="FacilityCode" Type="int" Nullable="false" />
  471. <Property Name="PropertyId" Type="int" Nullable="false" />
  472. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  473. <Property Name="CurrentValue" Type="float" Nullable="false" />
  474. </EntityType>
  475. <EntityType Name="BemsMonitoringPointToAnlaysisType">
  476. <Key>
  477. <PropertyRef Name="SiteId" />
  478. <PropertyRef Name="FacilityTypeId" />
  479. <PropertyRef Name="FacilityCode" />
  480. <PropertyRef Name="PropertyId" />
  481. <PropertyRef Name="AnalysisType" />
  482. </Key>
  483. <Property Name="SiteId" Type="int" Nullable="false" />
  484. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  485. <Property Name="FacilityCode" Type="int" Nullable="false" />
  486. <Property Name="PropertyId" Type="int" Nullable="false" />
  487. <Property Name="AnalysisType" Type="int" Nullable="false" />
  488. </EntityType>
  489. <EntityType Name="BemsNoticePriceBase">
  490. <Key>
  491. <PropertyRef Name="SiteId" />
  492. <PropertyRef Name="FuelTypeId" />
  493. <PropertyRef Name="ApplyDate" />
  494. <PropertyRef Name="ContractType" />
  495. </Key>
  496. <Property Name="SiteId" Type="int" Nullable="false" />
  497. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  498. <Property Name="ApplyDate" Type="date" Nullable="false" />
  499. <Property Name="ContractType" Type="smallint" Nullable="false" />
  500. <Property Name="PrimaryPrice" Type="int" />
  501. <Property Name="SecondaryPrice" Type="int" />
  502. </EntityType>
  503. <EntityType Name="BemsNoticePriceContractType">
  504. <Key>
  505. <PropertyRef Name="FuelTypeId" />
  506. <PropertyRef Name="ContractType" />
  507. </Key>
  508. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  509. <Property Name="ContractType" Type="smallint" Nullable="false" />
  510. <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
  511. </EntityType>
  512. <EntityType Name="BemsNoticePriceDetail">
  513. <Key>
  514. <PropertyRef Name="SiteId" />
  515. <PropertyRef Name="FuelTypeId" />
  516. <PropertyRef Name="ApplyDate" />
  517. <PropertyRef Name="ContractType" />
  518. <PropertyRef Name="DataId" />
  519. </Key>
  520. <Property Name="SiteId" Type="int" Nullable="false" />
  521. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  522. <Property Name="ApplyDate" Type="date" Nullable="false" />
  523. <Property Name="ContractType" Type="smallint" Nullable="false" />
  524. <Property Name="DataId" Type="smallint" Nullable="false" />
  525. <Property Name="P01" Type="float" />
  526. <Property Name="P02" Type="float" />
  527. <Property Name="P03" Type="float" />
  528. <Property Name="P04" Type="float" />
  529. <Property Name="P05" Type="float" />
  530. <Property Name="P06" Type="float" />
  531. <Property Name="P07" Type="float" />
  532. <Property Name="P08" Type="float" />
  533. <Property Name="P09" Type="float" />
  534. <Property Name="P10" Type="float" />
  535. <Property Name="P11" Type="float" />
  536. <Property Name="P12" Type="float" />
  537. </EntityType>
  538. <EntityType Name="BemsPeakFacility">
  539. <Key>
  540. <PropertyRef Name="SiteId" />
  541. <PropertyRef Name="MaxDateTime" />
  542. <PropertyRef Name="FacilityCode" />
  543. </Key>
  544. <Property Name="SiteId" Type="int" Nullable="false" />
  545. <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
  546. <Property Name="FacilityCode" Type="int" Nullable="false" />
  547. </EntityType>
  548. <EntityType Name="BemsPeakHistory">
  549. <Key>
  550. <PropertyRef Name="SiteId" />
  551. <PropertyRef Name="CreatedDateTime" />
  552. </Key>
  553. <Property Name="SiteId" Type="int" Nullable="false" />
  554. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  555. <Property Name="CurrentValue" Type="float" Nullable="false" />
  556. </EntityType>
  557. <EntityType Name="BemsPeakHistoryDaily">
  558. <Key>
  559. <PropertyRef Name="SiteId" />
  560. <PropertyRef Name="CreatedDateTime" />
  561. </Key>
  562. <Property Name="SiteId" Type="int" Nullable="false" />
  563. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  564. <Property Name="MaxPeakValue" Type="float" />
  565. <Property Name="MaxDateTime" Type="datetime" />
  566. <Property Name="MinPeakValue" Type="float" />
  567. <Property Name="MinDateTime" Type="datetime" />
  568. </EntityType>
  569. <EntityType Name="BemsPeakInfo">
  570. <Key>
  571. <PropertyRef Name="SiteId" />
  572. </Key>
  573. <Property Name="SiteId" Type="int" Nullable="false" />
  574. <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
  575. <Property Name="MaxPeakValue" Type="float" Nullable="false" />
  576. <Property Name="MinDateTime" Type="datetime" Nullable="false" />
  577. <Property Name="MinPeakValue" Type="float" Nullable="false" />
  578. <Property Name="todayMaxPeakValue" Type="float" Nullable="false" />
  579. <Property Name="todayMinPeakValue" Type="float" Nullable="false" />
  580. </EntityType>
  581. <EntityType Name="BemsPeopleIncrease">
  582. <Key>
  583. <PropertyRef Name="Date" />
  584. <PropertyRef Name="SiteId" />
  585. </Key>
  586. <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
  587. <Property Name="SiteId" Type="int" Nullable="false" />
  588. <Property Name="m1" Type="nvarchar" MaxLength="50" />
  589. <Property Name="m2" Type="nvarchar" MaxLength="50" />
  590. <Property Name="m3" Type="nvarchar" MaxLength="50" />
  591. <Property Name="m4" Type="nvarchar" MaxLength="50" />
  592. <Property Name="m5" Type="nvarchar" MaxLength="50" />
  593. <Property Name="m6" Type="nvarchar" MaxLength="50" />
  594. <Property Name="m7" Type="nvarchar" MaxLength="50" />
  595. <Property Name="m8" Type="nvarchar" MaxLength="50" />
  596. <Property Name="m9" Type="nvarchar" MaxLength="50" />
  597. <Property Name="m10" Type="nvarchar" MaxLength="50" />
  598. <Property Name="m11" Type="nvarchar" MaxLength="50" />
  599. <Property Name="m12" Type="nvarchar" MaxLength="50" />
  600. </EntityType>
  601. <EntityType Name="BemsPriceCode">
  602. <Key>
  603. <PropertyRef Name="PriceCode" />
  604. </Key>
  605. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  606. <Property Name="PriceCodeDesc" Type="varchar" MaxLength="200" />
  607. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  608. <Property Name="Unit" Type="varchar" MaxLength="20" />
  609. </EntityType>
  610. <EntityType Name="BemsPriceFormula">
  611. <Key>
  612. <PropertyRef Name="SiteId" />
  613. <PropertyRef Name="PriceTypeId" />
  614. <PropertyRef Name="FacilityTypeId" />
  615. <PropertyRef Name="FormulaId" />
  616. <PropertyRef Name="FacilityCode" />
  617. </Key>
  618. <Property Name="SiteId" Type="int" Nullable="false" />
  619. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  620. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  621. <Property Name="FormulaId" Type="int" Nullable="false" />
  622. <Property Name="FacilityCode" Type="int" Nullable="false" />
  623. <Property Name="UseYN" Type="nvarchar" MaxLength="1" Nullable="false" />
  624. </EntityType>
  625. <EntityType Name="BemsPriceMeta">
  626. <Key>
  627. <PropertyRef Name="PriceTypeId" />
  628. <PropertyRef Name="PublishDate" />
  629. </Key>
  630. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  631. <Property Name="PublishDate" Type="datetime" Nullable="false" />
  632. <Property Name="BasePrice" Type="int" />
  633. <Property Name="01_00" Type="float" />
  634. <Property Name="01_01" Type="float" />
  635. <Property Name="01_02" Type="float" />
  636. <Property Name="01_03" Type="float" />
  637. <Property Name="01_04" Type="float" />
  638. <Property Name="01_05" Type="float" />
  639. <Property Name="01_06" Type="float" />
  640. <Property Name="01_07" Type="float" />
  641. <Property Name="01_08" Type="float" />
  642. <Property Name="01_09" Type="float" />
  643. <Property Name="01_10" Type="float" />
  644. <Property Name="01_11" Type="float" />
  645. <Property Name="01_12" Type="float" />
  646. <Property Name="01_13" Type="float" />
  647. <Property Name="01_14" Type="float" />
  648. <Property Name="01_15" Type="float" />
  649. <Property Name="01_16" Type="float" />
  650. <Property Name="01_17" Type="float" />
  651. <Property Name="01_18" Type="float" />
  652. <Property Name="01_19" Type="float" />
  653. <Property Name="01_20" Type="float" />
  654. <Property Name="01_21" Type="float" />
  655. <Property Name="01_22" Type="float" />
  656. <Property Name="01_23" Type="float" />
  657. <Property Name="02_00" Type="float" />
  658. <Property Name="02_01" Type="float" />
  659. <Property Name="02_02" Type="float" />
  660. <Property Name="02_03" Type="float" />
  661. <Property Name="02_04" Type="float" />
  662. <Property Name="02_05" Type="float" />
  663. <Property Name="02_06" Type="float" />
  664. <Property Name="02_07" Type="float" />
  665. <Property Name="02_08" Type="float" />
  666. <Property Name="02_09" Type="float" />
  667. <Property Name="02_10" Type="float" />
  668. <Property Name="02_11" Type="float" />
  669. <Property Name="02_12" Type="float" />
  670. <Property Name="02_13" Type="float" />
  671. <Property Name="02_14" Type="float" />
  672. <Property Name="02_15" Type="float" />
  673. <Property Name="02_16" Type="float" />
  674. <Property Name="02_17" Type="float" />
  675. <Property Name="02_18" Type="float" />
  676. <Property Name="02_19" Type="float" />
  677. <Property Name="02_20" Type="float" />
  678. <Property Name="02_21" Type="float" />
  679. <Property Name="02_22" Type="float" />
  680. <Property Name="02_23" Type="float" />
  681. <Property Name="03_00" Type="float" />
  682. <Property Name="03_01" Type="float" />
  683. <Property Name="03_02" Type="float" />
  684. <Property Name="03_03" Type="float" />
  685. <Property Name="03_04" Type="float" />
  686. <Property Name="03_05" Type="float" />
  687. <Property Name="03_06" Type="float" />
  688. <Property Name="03_07" Type="float" />
  689. <Property Name="03_08" Type="float" />
  690. <Property Name="03_09" Type="float" />
  691. <Property Name="03_10" Type="float" />
  692. <Property Name="03_11" Type="float" />
  693. <Property Name="03_12" Type="float" />
  694. <Property Name="03_13" Type="float" />
  695. <Property Name="03_14" Type="float" />
  696. <Property Name="03_15" Type="float" />
  697. <Property Name="03_16" Type="float" />
  698. <Property Name="03_17" Type="float" />
  699. <Property Name="03_18" Type="float" />
  700. <Property Name="03_19" Type="float" />
  701. <Property Name="03_20" Type="float" />
  702. <Property Name="03_21" Type="float" />
  703. <Property Name="03_22" Type="float" />
  704. <Property Name="03_23" Type="float" />
  705. <Property Name="04_00" Type="float" />
  706. <Property Name="04_01" Type="float" />
  707. <Property Name="04_02" Type="float" />
  708. <Property Name="04_03" Type="float" />
  709. <Property Name="04_04" Type="float" />
  710. <Property Name="04_05" Type="float" />
  711. <Property Name="04_06" Type="float" />
  712. <Property Name="04_07" Type="float" />
  713. <Property Name="04_08" Type="float" />
  714. <Property Name="04_09" Type="float" />
  715. <Property Name="04_10" Type="float" />
  716. <Property Name="04_11" Type="float" />
  717. <Property Name="04_12" Type="float" />
  718. <Property Name="04_13" Type="float" />
  719. <Property Name="04_14" Type="float" />
  720. <Property Name="04_15" Type="float" />
  721. <Property Name="04_16" Type="float" />
  722. <Property Name="04_17" Type="float" />
  723. <Property Name="04_18" Type="float" />
  724. <Property Name="04_19" Type="float" />
  725. <Property Name="04_20" Type="float" />
  726. <Property Name="04_21" Type="float" />
  727. <Property Name="04_22" Type="float" />
  728. <Property Name="04_23" Type="float" />
  729. <Property Name="05_00" Type="float" />
  730. <Property Name="05_01" Type="float" />
  731. <Property Name="05_02" Type="float" />
  732. <Property Name="05_03" Type="float" />
  733. <Property Name="05_04" Type="float" />
  734. <Property Name="05_05" Type="float" />
  735. <Property Name="05_06" Type="float" />
  736. <Property Name="05_07" Type="float" />
  737. <Property Name="05_08" Type="float" />
  738. <Property Name="05_09" Type="float" />
  739. <Property Name="05_10" Type="float" />
  740. <Property Name="05_11" Type="float" />
  741. <Property Name="05_12" Type="float" />
  742. <Property Name="05_13" Type="float" />
  743. <Property Name="05_14" Type="float" />
  744. <Property Name="05_15" Type="float" />
  745. <Property Name="05_16" Type="float" />
  746. <Property Name="05_17" Type="float" />
  747. <Property Name="05_18" Type="float" />
  748. <Property Name="05_19" Type="float" />
  749. <Property Name="05_20" Type="float" />
  750. <Property Name="05_21" Type="float" />
  751. <Property Name="05_22" Type="float" />
  752. <Property Name="05_23" Type="float" />
  753. <Property Name="06_00" Type="float" />
  754. <Property Name="06_01" Type="float" />
  755. <Property Name="06_02" Type="float" />
  756. <Property Name="06_03" Type="float" />
  757. <Property Name="06_04" Type="float" />
  758. <Property Name="06_05" Type="float" />
  759. <Property Name="06_06" Type="float" />
  760. <Property Name="06_07" Type="float" />
  761. <Property Name="06_08" Type="float" />
  762. <Property Name="06_09" Type="float" />
  763. <Property Name="06_10" Type="float" />
  764. <Property Name="06_11" Type="float" />
  765. <Property Name="06_12" Type="float" />
  766. <Property Name="06_13" Type="float" />
  767. <Property Name="06_14" Type="float" />
  768. <Property Name="06_15" Type="float" />
  769. <Property Name="06_16" Type="float" />
  770. <Property Name="06_17" Type="float" />
  771. <Property Name="06_18" Type="float" />
  772. <Property Name="06_19" Type="float" />
  773. <Property Name="06_20" Type="float" />
  774. <Property Name="06_21" Type="float" />
  775. <Property Name="06_22" Type="float" />
  776. <Property Name="06_23" Type="float" />
  777. <Property Name="07_00" Type="float" />
  778. <Property Name="07_01" Type="float" />
  779. <Property Name="07_02" Type="float" />
  780. <Property Name="07_03" Type="float" />
  781. <Property Name="07_04" Type="float" />
  782. <Property Name="07_05" Type="float" />
  783. <Property Name="07_06" Type="float" />
  784. <Property Name="07_07" Type="float" />
  785. <Property Name="07_08" Type="float" />
  786. <Property Name="07_09" Type="float" />
  787. <Property Name="07_10" Type="float" />
  788. <Property Name="07_11" Type="float" />
  789. <Property Name="07_12" Type="float" />
  790. <Property Name="07_13" Type="float" />
  791. <Property Name="07_14" Type="float" />
  792. <Property Name="07_15" Type="float" />
  793. <Property Name="07_16" Type="float" />
  794. <Property Name="07_17" Type="float" />
  795. <Property Name="07_18" Type="float" />
  796. <Property Name="07_19" Type="float" />
  797. <Property Name="07_20" Type="float" />
  798. <Property Name="07_21" Type="float" />
  799. <Property Name="07_22" Type="float" />
  800. <Property Name="07_23" Type="float" />
  801. <Property Name="08_00" Type="float" />
  802. <Property Name="08_01" Type="float" />
  803. <Property Name="08_02" Type="float" />
  804. <Property Name="08_03" Type="float" />
  805. <Property Name="08_04" Type="float" />
  806. <Property Name="08_05" Type="float" />
  807. <Property Name="08_06" Type="float" />
  808. <Property Name="08_07" Type="float" />
  809. <Property Name="08_08" Type="float" />
  810. <Property Name="08_09" Type="float" />
  811. <Property Name="08_10" Type="float" />
  812. <Property Name="08_11" Type="float" />
  813. <Property Name="08_12" Type="float" />
  814. <Property Name="08_13" Type="float" />
  815. <Property Name="08_14" Type="float" />
  816. <Property Name="08_15" Type="float" />
  817. <Property Name="08_16" Type="float" />
  818. <Property Name="08_17" Type="float" />
  819. <Property Name="08_18" Type="float" />
  820. <Property Name="08_19" Type="float" />
  821. <Property Name="08_20" Type="float" />
  822. <Property Name="08_21" Type="float" />
  823. <Property Name="08_22" Type="float" />
  824. <Property Name="08_23" Type="float" />
  825. <Property Name="09_00" Type="float" />
  826. <Property Name="09_01" Type="float" />
  827. <Property Name="09_02" Type="float" />
  828. <Property Name="09_03" Type="float" />
  829. <Property Name="09_04" Type="float" />
  830. <Property Name="09_05" Type="float" />
  831. <Property Name="09_06" Type="float" />
  832. <Property Name="09_07" Type="float" />
  833. <Property Name="09_08" Type="float" />
  834. <Property Name="09_09" Type="float" />
  835. <Property Name="09_10" Type="float" />
  836. <Property Name="09_11" Type="float" />
  837. <Property Name="09_12" Type="float" />
  838. <Property Name="09_13" Type="float" />
  839. <Property Name="09_14" Type="float" />
  840. <Property Name="09_15" Type="float" />
  841. <Property Name="09_16" Type="float" />
  842. <Property Name="09_17" Type="float" />
  843. <Property Name="09_18" Type="float" />
  844. <Property Name="09_19" Type="float" />
  845. <Property Name="09_20" Type="float" />
  846. <Property Name="09_21" Type="float" />
  847. <Property Name="09_22" Type="float" />
  848. <Property Name="09_23" Type="float" />
  849. <Property Name="10_00" Type="float" />
  850. <Property Name="10_01" Type="float" />
  851. <Property Name="10_02" Type="float" />
  852. <Property Name="10_03" Type="float" />
  853. <Property Name="10_04" Type="float" />
  854. <Property Name="10_05" Type="float" />
  855. <Property Name="10_06" Type="float" />
  856. <Property Name="10_07" Type="float" />
  857. <Property Name="10_08" Type="float" />
  858. <Property Name="10_09" Type="float" />
  859. <Property Name="10_10" Type="float" />
  860. <Property Name="10_11" Type="float" />
  861. <Property Name="10_12" Type="float" />
  862. <Property Name="10_13" Type="float" />
  863. <Property Name="10_14" Type="float" />
  864. <Property Name="10_15" Type="float" />
  865. <Property Name="10_16" Type="float" />
  866. <Property Name="10_17" Type="float" />
  867. <Property Name="10_18" Type="float" />
  868. <Property Name="10_19" Type="float" />
  869. <Property Name="10_20" Type="float" />
  870. <Property Name="10_21" Type="float" />
  871. <Property Name="10_22" Type="float" />
  872. <Property Name="10_23" Type="float" />
  873. <Property Name="11_00" Type="float" />
  874. <Property Name="11_01" Type="float" />
  875. <Property Name="11_02" Type="float" />
  876. <Property Name="11_03" Type="float" />
  877. <Property Name="11_04" Type="float" />
  878. <Property Name="11_05" Type="float" />
  879. <Property Name="11_06" Type="float" />
  880. <Property Name="11_07" Type="float" />
  881. <Property Name="11_08" Type="float" />
  882. <Property Name="11_09" Type="float" />
  883. <Property Name="11_10" Type="float" />
  884. <Property Name="11_11" Type="float" />
  885. <Property Name="11_12" Type="float" />
  886. <Property Name="11_13" Type="float" />
  887. <Property Name="11_14" Type="float" />
  888. <Property Name="11_15" Type="float" />
  889. <Property Name="11_16" Type="float" />
  890. <Property Name="11_17" Type="float" />
  891. <Property Name="11_18" Type="float" />
  892. <Property Name="11_19" Type="float" />
  893. <Property Name="11_20" Type="float" />
  894. <Property Name="11_21" Type="float" />
  895. <Property Name="11_22" Type="float" />
  896. <Property Name="11_23" Type="float" />
  897. <Property Name="12_00" Type="float" />
  898. <Property Name="12_01" Type="float" />
  899. <Property Name="12_02" Type="float" />
  900. <Property Name="12_03" Type="float" />
  901. <Property Name="12_04" Type="float" />
  902. <Property Name="12_05" Type="float" />
  903. <Property Name="12_06" Type="float" />
  904. <Property Name="12_07" Type="float" />
  905. <Property Name="12_08" Type="float" />
  906. <Property Name="12_09" Type="float" />
  907. <Property Name="12_10" Type="float" />
  908. <Property Name="12_11" Type="float" />
  909. <Property Name="12_12" Type="float" />
  910. <Property Name="12_13" Type="float" />
  911. <Property Name="12_14" Type="float" />
  912. <Property Name="12_15" Type="float" />
  913. <Property Name="12_16" Type="float" />
  914. <Property Name="12_17" Type="float" />
  915. <Property Name="12_18" Type="float" />
  916. <Property Name="12_19" Type="float" />
  917. <Property Name="12_20" Type="float" />
  918. <Property Name="12_21" Type="float" />
  919. <Property Name="12_22" Type="float" />
  920. <Property Name="12_23" Type="float" />
  921. </EntityType>
  922. <EntityType Name="BemsPriceType">
  923. <Key>
  924. <PropertyRef Name="PriceTypeId" />
  925. </Key>
  926. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  927. <Property Name="PriceTypeIdDesc" Type="varchar" MaxLength="200" />
  928. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  929. </EntityType>
  930. <EntityType Name="BemsRentalRate">
  931. <Key>
  932. <PropertyRef Name="Date" />
  933. <PropertyRef Name="SiteId" />
  934. </Key>
  935. <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
  936. <Property Name="SiteId" Type="int" Nullable="false" />
  937. <Property Name="m1" Type="nvarchar" MaxLength="50" />
  938. <Property Name="m2" Type="nvarchar" MaxLength="50" />
  939. <Property Name="m3" Type="nvarchar" MaxLength="50" />
  940. <Property Name="m4" Type="nvarchar" MaxLength="50" />
  941. <Property Name="m5" Type="nvarchar" MaxLength="50" />
  942. <Property Name="m6" Type="nvarchar" MaxLength="50" />
  943. <Property Name="m7" Type="nvarchar" MaxLength="50" />
  944. <Property Name="m8" Type="nvarchar" MaxLength="50" />
  945. <Property Name="m9" Type="nvarchar" MaxLength="50" />
  946. <Property Name="m10" Type="nvarchar" MaxLength="50" />
  947. <Property Name="m11" Type="nvarchar" MaxLength="50" />
  948. <Property Name="m12" Type="nvarchar" MaxLength="50" />
  949. </EntityType>
  950. <EntityType Name="BemsReportFormat">
  951. <Key>
  952. <PropertyRef Name="ReportFormatId" />
  953. <PropertyRef Name="parts" />
  954. </Key>
  955. <Property Name="ReportFormatId" Type="int" Nullable="false" />
  956. <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
  957. <Property Name="Content" Type="varchar(max)" />
  958. <Property Name="parts" Type="int" Nullable="false" />
  959. </EntityType>
  960. <EntityType Name="BemsReportHistory">
  961. <Key>
  962. <PropertyRef Name="Seq" />
  963. <PropertyRef Name="DateTime" />
  964. <PropertyRef Name="ReportFormatId" />
  965. <PropertyRef Name="parts" />
  966. </Key>
  967. <Property Name="SiteId" Type="int" Nullable="false" />
  968. <Property Name="Seq" Type="int" Nullable="false" />
  969. <Property Name="DateTime" Type="datetime" Nullable="false" />
  970. <Property Name="ReportName" Type="varchar" MaxLength="200" Nullable="false" />
  971. <Property Name="ReportFormatId" Type="int" Nullable="false" />
  972. <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
  973. <Property Name="Content" Type="varchar(max)" />
  974. <Property Name="Writer" Type="varchar" MaxLength="50" />
  975. <Property Name="Confirm1" Type="varchar" MaxLength="50" />
  976. <Property Name="Confirm2" Type="varchar" MaxLength="50" />
  977. <Property Name="parts" Type="int" Nullable="false" />
  978. <Property Name="FileName" Type="nvarchar" MaxLength="100" />
  979. </EntityType>
  980. <EntityType Name="BemsServiceType">
  981. <Key>
  982. <PropertyRef Name="ServiceTypeId" />
  983. </Key>
  984. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  985. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  986. </EntityType>
  987. <EntityType Name="BemsSitePrice">
  988. <Key>
  989. <PropertyRef Name="SiteID" />
  990. <PropertyRef Name="FuelTypeId" />
  991. <PropertyRef Name="PriceTypeId" />
  992. <PropertyRef Name="PriceCode" />
  993. </Key>
  994. <Property Name="SiteID" Type="int" Nullable="false" />
  995. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  996. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  997. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  998. <Property Name="UseYN" Type="varchar" MaxLength="1" Nullable="false" />
  999. </EntityType>
  1000. <EntityType Name="BemsSitePriceHistory">
  1001. <Key>
  1002. <PropertyRef Name="SiteId" />
  1003. <PropertyRef Name="FuelTypeId" />
  1004. <PropertyRef Name="PriceTypeId" />
  1005. <PropertyRef Name="PriceCode" />
  1006. <PropertyRef Name="PayDate" />
  1007. </Key>
  1008. <Property Name="SiteId" Type="int" Nullable="false" />
  1009. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1010. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1011. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  1012. <Property Name="PriceValue" Type="varchar" MaxLength="200" />
  1013. <Property Name="PayDate" Type="varchar" MaxLength="6" Nullable="false" />
  1014. <Property Name="StartDate" Type="datetime" />
  1015. <Property Name="EndDate" Type="datetime" />
  1016. <Property Name="PayCharge" Type="varchar" MaxLength="200" />
  1017. </EntityType>
  1018. <EntityType Name="CmAlarmAdmin">
  1019. <Key>
  1020. <PropertyRef Name="SiteId" />
  1021. </Key>
  1022. <Property Name="SiteId" Type="int" Nullable="false" />
  1023. <Property Name="UserCode" Type="nvarchar" MaxLength="50" />
  1024. <Property Name="DeptCode" Type="nvarchar" MaxLength="50" />
  1025. <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
  1026. <Property Name="EmailAddress" Type="nvarchar" MaxLength="50" />
  1027. <Property Name="EmailPassword" Type="nvarchar" MaxLength="50" />
  1028. </EntityType>
  1029. <EntityType Name="CmAnnouncement">
  1030. <Key>
  1031. <PropertyRef Name="SiteId" />
  1032. <PropertyRef Name="AnnouncementId" />
  1033. </Key>
  1034. <Property Name="SiteId" Type="int" Nullable="false" />
  1035. <Property Name="AnnouncementId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1036. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  1037. <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
  1038. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  1039. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1040. <Property Name="FileId" Type="int" />
  1041. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1042. <Property Name="UpdateDate" Type="datetime" Nullable="false" />
  1043. <Property Name="IsUse" Type="bit" />
  1044. <Property Name="ReadCount" Type="int" Nullable="false" />
  1045. </EntityType>
  1046. <EntityType Name="CmBuilding">
  1047. <Key>
  1048. <PropertyRef Name="SiteId" />
  1049. <PropertyRef Name="BuildingId" />
  1050. </Key>
  1051. <Property Name="SiteId" Type="int" Nullable="false" />
  1052. <Property Name="BuildingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1053. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1054. <Property Name="FileId" Type="int" />
  1055. <Property Name="IsUse" Type="bit" />
  1056. <Property Name="SortOrderNo" Type="int" />
  1057. </EntityType>
  1058. <EntityType Name="CmBusinessField">
  1059. <Key>
  1060. <PropertyRef Name="SiteId" />
  1061. <PropertyRef Name="BusinessFieldId" />
  1062. </Key>
  1063. <Property Name="SiteId" Type="int" Nullable="false" />
  1064. <Property Name="BusinessFieldId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1065. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1066. <Property Name="IsUse" Type="bit" />
  1067. </EntityType>
  1068. <EntityType Name="CmCompany">
  1069. <Key>
  1070. <PropertyRef Name="SiteId" />
  1071. <PropertyRef Name="CompanyId" />
  1072. </Key>
  1073. <Property Name="SiteId" Type="int" Nullable="false" />
  1074. <Property Name="CompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1075. <Property Name="CompanyTypeId" Type="int" Nullable="false" />
  1076. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1077. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1078. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  1079. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" Nullable="false" />
  1080. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  1081. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  1082. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  1083. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1084. <Property Name="Address1" Type="nvarchar" MaxLength="50" />
  1085. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1086. <Property Name="Homepage" Type="nvarchar" MaxLength="100" />
  1087. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1088. <Property Name="IsUse" Type="bit" />
  1089. </EntityType>
  1090. <EntityType Name="CmCompanyType">
  1091. <Key>
  1092. <PropertyRef Name="SiteId" />
  1093. <PropertyRef Name="CompanyTypeId" />
  1094. </Key>
  1095. <Property Name="SiteId" Type="int" Nullable="false" />
  1096. <Property Name="CompanyTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1097. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1098. <Property Name="IsUse" Type="bit" />
  1099. </EntityType>
  1100. <EntityType Name="CmDepartment">
  1101. <Key>
  1102. <PropertyRef Name="SiteId" />
  1103. <PropertyRef Name="CompanyId" />
  1104. <PropertyRef Name="DepartmentId" />
  1105. </Key>
  1106. <Property Name="SiteId" Type="int" Nullable="false" />
  1107. <Property Name="CompanyId" Type="int" Nullable="false" />
  1108. <Property Name="DepartmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1109. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1110. <Property Name="ShortName" Type="nvarchar" MaxLength="50" />
  1111. <Property Name="FaxNo" Type="nvarchar" MaxLength="50" />
  1112. <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
  1113. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1114. <Property Name="IsUse" Type="bit" />
  1115. </EntityType>
  1116. <EntityType Name="CmFacility">
  1117. <Key>
  1118. <PropertyRef Name="SiteId" />
  1119. <PropertyRef Name="FacilityCode" />
  1120. </Key>
  1121. <Property Name="SiteId" Type="int" Nullable="false" />
  1122. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  1123. <Property Name="FacilityCode" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1124. <Property Name="FirstClassId" Type="int" />
  1125. <Property Name="SecondClassId" Type="int" />
  1126. <Property Name="ThirdClassId" Type="int" />
  1127. <Property Name="DeviceType" Type="nvarchar" MaxLength="48" />
  1128. <Property Name="ParentFacilityCode" Type="int" />
  1129. <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
  1130. <Property Name="Nickname" Type="nvarchar" MaxLength="40" />
  1131. <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
  1132. <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
  1133. <Property Name="ManufactureDate" Type="date" />
  1134. <Property Name="ManufactureSerial" Type="nvarchar" MaxLength="20" />
  1135. <Property Name="ManufactureModel" Type="nvarchar" MaxLength="40" />
  1136. <Property Name="Supplier" Type="nvarchar" MaxLength="40" />
  1137. <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
  1138. <Property Name="BuildingId" Type="int" />
  1139. <Property Name="FloorId" Type="int" />
  1140. <Property Name="ZoneId" Type="int" />
  1141. <Property Name="InstallDate" Type="date" />
  1142. <Property Name="OperationStartDate" Type="date" />
  1143. <Property Name="FacilityCapacity" Type="nvarchar" MaxLength="40" />
  1144. <Property Name="FacilityCost" Type="int" />
  1145. <Property Name="FacilityCount" Type="int" />
  1146. <Property Name="FacilitySeviceLifeYear" Type="int" />
  1147. <Property Name="FacilityUsage" Type="nvarchar" MaxLength="80" />
  1148. <Property Name="RatedPowerConsumption" Type="nvarchar" MaxLength="40" />
  1149. <Property Name="RatedCOP" Type="float" />
  1150. <Property Name="MainContactorUserId" Type="nvarchar" MaxLength="24" />
  1151. <Property Name="SubContactorUserId" Type="nvarchar" MaxLength="24" />
  1152. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  1153. <Property Name="Reserved1" Type="nvarchar" MaxLength="64" />
  1154. <Property Name="Reserved2" Type="nvarchar" MaxLength="64" />
  1155. <Property Name="IsUse" Type="bit" />
  1156. <Property Name="FileId" Type="int" />
  1157. <Property Name="IsVirtualFacility" Type="bit" Nullable="false" />
  1158. <Property Name="FuelTypeId" Type="smallint" />
  1159. <Property Name="ContractType" Type="smallint" />
  1160. </EntityType>
  1161. <EntityType Name="CmFacilityFile">
  1162. <Key>
  1163. <PropertyRef Name="SiteId" />
  1164. <PropertyRef Name="FileId" />
  1165. </Key>
  1166. <Property Name="SiteId" Type="int" Nullable="false" />
  1167. <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1168. <Property Name="FacilityCode" Type="int" Nullable="false" />
  1169. <Property Name="InsertedDate" Type="datetime" />
  1170. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  1171. <Property Name="UpdatedDate" Type="datetime" />
  1172. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1173. </EntityType>
  1174. <EntityType Name="CmFacilityTempSet">
  1175. <Key>
  1176. <PropertyRef Name="SiteId" />
  1177. <PropertyRef Name="FacilityCode" />
  1178. </Key>
  1179. <Property Name="SiteId" Type="int" Nullable="false" />
  1180. <Property Name="FacilityCode" Type="int" Nullable="false" />
  1181. <Property Name="T1" Type="float" Nullable="false" />
  1182. <Property Name="T2" Type="float" Nullable="false" />
  1183. <Property Name="T3" Type="float" Nullable="false" />
  1184. <Property Name="T4" Type="float" Nullable="false" />
  1185. <Property Name="T5" Type="float" Nullable="false" />
  1186. <Property Name="T6" Type="float" Nullable="false" />
  1187. <Property Name="T7" Type="float" Nullable="false" />
  1188. <Property Name="T8" Type="float" Nullable="false" />
  1189. <Property Name="T9" Type="float" Nullable="false" />
  1190. <Property Name="T10" Type="float" Nullable="false" />
  1191. <Property Name="T11" Type="float" Nullable="false" />
  1192. <Property Name="T12" Type="float" Nullable="false" />
  1193. </EntityType>
  1194. <EntityType Name="CmFile">
  1195. <Key>
  1196. <PropertyRef Name="SiteId" />
  1197. <PropertyRef Name="FileId" />
  1198. </Key>
  1199. <Property Name="SiteId" Type="int" Nullable="false" />
  1200. <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1201. <Property Name="FileCategoryId" Type="int" Nullable="false" />
  1202. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1203. <Property Name="FileSize" Type="int" />
  1204. <Property Name="CreatedDate" Type="datetime" />
  1205. <Property Name="ContentType" Type="nvarchar" MaxLength="128" />
  1206. </EntityType>
  1207. <EntityType Name="CmFileCategory">
  1208. <Key>
  1209. <PropertyRef Name="FileCategoryId" />
  1210. </Key>
  1211. <Property Name="FileCategoryId" Type="int" Nullable="false" />
  1212. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1213. </EntityType>
  1214. <EntityType Name="CmFloor">
  1215. <Key>
  1216. <PropertyRef Name="SiteId" />
  1217. <PropertyRef Name="BuildingId" />
  1218. <PropertyRef Name="FloorId" />
  1219. </Key>
  1220. <Property Name="SiteId" Type="int" Nullable="false" />
  1221. <Property Name="BuildingId" Type="int" Nullable="false" />
  1222. <Property Name="FloorId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1223. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1224. </EntityType>
  1225. <EntityType Name="CmHoliday">
  1226. <Key>
  1227. <PropertyRef Name="SiteId" />
  1228. <PropertyRef Name="HolidayMonth" />
  1229. <PropertyRef Name="HolidayDay" />
  1230. <PropertyRef Name="IsLunar" />
  1231. </Key>
  1232. <Property Name="SiteId" Type="int" Nullable="false" />
  1233. <Property Name="HolidayMonth" Type="smallint" Nullable="false" />
  1234. <Property Name="HolidayDay" Type="smallint" Nullable="false" />
  1235. <Property Name="IsLunar" Type="bit" Nullable="false" />
  1236. <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
  1237. <Property Name="IsUse" Type="bit" />
  1238. </EntityType>
  1239. <EntityType Name="CmHolidayCustom">
  1240. <Key>
  1241. <PropertyRef Name="SiteId" />
  1242. <PropertyRef Name="HolidayDate" />
  1243. </Key>
  1244. <Property Name="SiteId" Type="int" Nullable="false" />
  1245. <Property Name="HolidayDate" Type="datetime" Nullable="false" />
  1246. <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
  1247. <Property Name="IsUse" Type="bit" />
  1248. </EntityType>
  1249. <EntityType Name="CmHolidayWeekend">
  1250. <Key>
  1251. <PropertyRef Name="SiteId" />
  1252. </Key>
  1253. <Property Name="SiteId" Type="int" Nullable="false" />
  1254. <Property Name="Saturday" Type="bit" Nullable="false" />
  1255. <Property Name="Sunday" Type="bit" Nullable="false" />
  1256. <Property Name="IsUse" Type="bit" />
  1257. </EntityType>
  1258. <EntityType Name="CmMenu">
  1259. <Key>
  1260. <PropertyRef Name="SiteId" />
  1261. <PropertyRef Name="MenuId" />
  1262. </Key>
  1263. <Property Name="SiteId" Type="int" Nullable="false" />
  1264. <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
  1265. <Property Name="Used" Type="bit" />
  1266. <Property Name="MenuPath" Type="nvarchar" MaxLength="255" />
  1267. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  1268. </EntityType>
  1269. <EntityType Name="CmPartner">
  1270. <Key>
  1271. <PropertyRef Name="SiteId" />
  1272. <PropertyRef Name="PartnerId" />
  1273. </Key>
  1274. <Property Name="SiteId" Type="int" Nullable="false" />
  1275. <Property Name="PartnerId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1276. <Property Name="PartnerTypeId" Type="int" Nullable="false" />
  1277. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1278. <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" />
  1279. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" />
  1280. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
  1281. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  1282. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  1283. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  1284. <Property Name="AddressZip1" Type="nchar" MaxLength="3" />
  1285. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1286. <Property Name="Address1" Type="nvarchar" MaxLength="50" />
  1287. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1288. <Property Name="HomepageUri" Type="nvarchar" MaxLength="100" />
  1289. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  1290. <Property Name="IsUse" Type="bit" />
  1291. </EntityType>
  1292. <EntityType Name="CmPartnerType">
  1293. <Key>
  1294. <PropertyRef Name="PartnerTypeId" />
  1295. </Key>
  1296. <Property Name="PartnerTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1297. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1298. <Property Name="IsUse" Type="bit" />
  1299. </EntityType>
  1300. <EntityType Name="CmPatrolCourse">
  1301. <Key>
  1302. <PropertyRef Name="SiteId" />
  1303. <PropertyRef Name="PatrolCourseId" />
  1304. </Key>
  1305. <Property Name="SiteId" Type="int" Nullable="false" />
  1306. <Property Name="PatrolCourseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1307. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1308. </EntityType>
  1309. <EntityType Name="CmPatrolCoursePos">
  1310. <Key>
  1311. <PropertyRef Name="SiteId" />
  1312. <PropertyRef Name="PatrolCourseId" />
  1313. <PropertyRef Name="BuildingId" />
  1314. <PropertyRef Name="FloorId" />
  1315. <PropertyRef Name="PosId" />
  1316. </Key>
  1317. <Property Name="SiteId" Type="int" Nullable="false" />
  1318. <Property Name="PatrolCourseId" Type="int" Nullable="false" />
  1319. <Property Name="BuildingId" Type="int" Nullable="false" />
  1320. <Property Name="FloorId" Type="int" Nullable="false" />
  1321. <Property Name="PosId" Type="int" Nullable="false" />
  1322. <Property Name="CourseOrder" Type="int" Nullable="false" />
  1323. </EntityType>
  1324. <EntityType Name="CmPatrolGroup">
  1325. <Key>
  1326. <PropertyRef Name="SiteId" />
  1327. <PropertyRef Name="PatrolGroupId" />
  1328. </Key>
  1329. <Property Name="SiteId" Type="int" Nullable="false" />
  1330. <Property Name="PatrolGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1331. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1332. </EntityType>
  1333. <EntityType Name="CmPatrolGroupUser">
  1334. <Key>
  1335. <PropertyRef Name="SiteId" />
  1336. <PropertyRef Name="PatrolGroupId" />
  1337. <PropertyRef Name="UserId" />
  1338. </Key>
  1339. <Property Name="SiteId" Type="int" Nullable="false" />
  1340. <Property Name="PatrolGroupId" Type="int" Nullable="false" />
  1341. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1342. </EntityType>
  1343. <EntityType Name="CmPatrolHistory">
  1344. <Key>
  1345. <PropertyRef Name="PatrolHistoryId" />
  1346. </Key>
  1347. <Property Name="SiteId" Type="int" Nullable="false" />
  1348. <Property Name="PatrolHistoryId" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
  1349. <Property Name="ScheduleId" Type="int" Nullable="false" />
  1350. <Property Name="startDate" Type="datetime" Nullable="false" />
  1351. <Property Name="endDate" Type="datetime" />
  1352. <Property Name="resultTypeId" Type="int" Nullable="false" />
  1353. <Property Name="resultDesc" Type="varchar" MaxLength="1024" />
  1354. <Property Name="resultPosCnt" Type="int" />
  1355. <Property Name="resultNormalCnt" Type="int" />
  1356. <Property Name="resultAbnormalCnt" Type="int" />
  1357. </EntityType>
  1358. <EntityType Name="CmPatrolHistoryPos">
  1359. <Key>
  1360. <PropertyRef Name="mId" />
  1361. </Key>
  1362. <Property Name="SiteId" Type="int" Nullable="false" />
  1363. <Property Name="PatrolHistoryId" Type="int" Nullable="false" />
  1364. <Property Name="PosId" Type="int" Nullable="false" />
  1365. <Property Name="PatrolTime" Type="datetime" Nullable="false" />
  1366. <Property Name="term" Type="int" />
  1367. <Property Name="resultType" Type="int" Nullable="false" />
  1368. <Property Name="mId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1369. </EntityType>
  1370. <EntityType Name="CmPatrolPlan">
  1371. <Key>
  1372. <PropertyRef Name="SiteId" />
  1373. <PropertyRef Name="PatrolPlanId" />
  1374. </Key>
  1375. <Property Name="SiteId" Type="int" Nullable="false" />
  1376. <Property Name="PatrolPlanId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1377. <Property Name="GroupId" Type="int" Nullable="false" />
  1378. <Property Name="CourseId" Type="int" Nullable="false" />
  1379. <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
  1380. <Property Name="PlanDesc" Type="varchar" MaxLength="1024" />
  1381. <Property Name="term" Type="int" Nullable="false" />
  1382. <Property Name="inDate" Type="datetime" />
  1383. </EntityType>
  1384. <EntityType Name="CmPatrolPos">
  1385. <Key>
  1386. <PropertyRef Name="SiteId" />
  1387. <PropertyRef Name="PosId" />
  1388. </Key>
  1389. <Property Name="SiteId" Type="int" Nullable="false" />
  1390. <Property Name="BuildingId" Type="int" Nullable="false" />
  1391. <Property Name="FloorId" Type="int" Nullable="false" />
  1392. <Property Name="PosId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1393. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1394. <Property Name="TagId" Type="nvarchar" MaxLength="32" />
  1395. <Property Name="PosDesc" Type="nvarchar" MaxLength="1024" />
  1396. </EntityType>
  1397. <EntityType Name="CmPatrolSchedule">
  1398. <Key>
  1399. <PropertyRef Name="SiteId" />
  1400. <PropertyRef Name="ScheduleId" />
  1401. </Key>
  1402. <Property Name="SiteId" Type="int" Nullable="false" />
  1403. <Property Name="ScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1404. <Property Name="PlanId" Type="int" Nullable="false" />
  1405. <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
  1406. <Property Name="ScheduleDesc" Type="varchar" MaxLength="128" />
  1407. <Property Name="inDate" Type="datetime" />
  1408. <Property Name="patrolDateTime" Type="datetime" Nullable="false" />
  1409. </EntityType>
  1410. <EntityType Name="CmPatrolType">
  1411. <Key>
  1412. <PropertyRef Name="SiteId" />
  1413. <PropertyRef Name="PatrolTypeId" />
  1414. </Key>
  1415. <Property Name="SiteId" Type="int" Nullable="false" />
  1416. <Property Name="PatrolTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1417. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1418. <Property Name="IsUse" Type="bit" />
  1419. </EntityType>
  1420. <EntityType Name="CmPosition">
  1421. <Key>
  1422. <PropertyRef Name="SiteId" />
  1423. <PropertyRef Name="PositionId" />
  1424. </Key>
  1425. <Property Name="SiteId" Type="int" Nullable="false" />
  1426. <Property Name="PositionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1427. <Property Name="Name" Type="nvarchar" MaxLength="40" Nullable="false" />
  1428. <Property Name="IsUse" Type="bit" />
  1429. </EntityType>
  1430. <EntityType Name="CmServiceEnergyCalcDay">
  1431. <Key>
  1432. <PropertyRef Name="SiteId" />
  1433. <PropertyRef Name="calDate" />
  1434. <PropertyRef Name="ServiceTypeId" />
  1435. </Key>
  1436. <Property Name="SiteId" Type="int" Nullable="false" />
  1437. <Property Name="calDate" Type="datetime" Nullable="false" />
  1438. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1439. <Property Name="Value" Type="float" />
  1440. </EntityType>
  1441. <EntityType Name="CmServiceEnergyCalcMonth">
  1442. <Key>
  1443. <PropertyRef Name="SiteId" />
  1444. <PropertyRef Name="calDate" />
  1445. <PropertyRef Name="ServiceTypeId" />
  1446. </Key>
  1447. <Property Name="SiteId" Type="int" Nullable="false" />
  1448. <Property Name="calDate" Type="datetime" Nullable="false" />
  1449. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1450. <Property Name="Value" Type="float" />
  1451. </EntityType>
  1452. <EntityType Name="CmSite">
  1453. <Key>
  1454. <PropertyRef Name="SiteId" />
  1455. </Key>
  1456. <Property Name="SiteId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1457. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1458. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  1459. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1460. <Property Name="Address1" Type="nvarchar" MaxLength="100" />
  1461. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1462. <Property Name="PhoneNo" Type="nvarchar" MaxLength="24" />
  1463. <Property Name="URL" Type="nvarchar" MaxLength="100" />
  1464. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1465. <Property Name="IsUse" Type="bit" />
  1466. <Property Name="SortOrderNo" Type="int" />
  1467. <Property Name="InsertedDate" Type="datetime" />
  1468. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  1469. <Property Name="UpdatedDate" Type="datetime" />
  1470. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1471. <Property Name="IsControlSchedule" Type="bit" />
  1472. <Property Name="ScheduleCheckHour" Type="int" />
  1473. <Property Name="MaxPeak" Type="float" />
  1474. <Property Name="lat" Type="float" />
  1475. <Property Name="lng" Type="float" />
  1476. <Property Name="controlSchedule" Type="bit" />
  1477. <Property Name="HDD" Type="nvarchar" MaxLength="24" />
  1478. <Property Name="CDD" Type="nvarchar" MaxLength="24" />
  1479. <Property Name="BuildingSize" Type="nvarchar" MaxLength="50" />
  1480. <Property Name="GrossArea" Type="nvarchar" MaxLength="24" />
  1481. <Property Name="BuildingArea" Type="nvarchar" MaxLength="24" />
  1482. <Property Name="FloorAreaRatio" Type="nvarchar" MaxLength="24" />
  1483. <Property Name="BuildingCoverageRatio" Type="nvarchar" MaxLength="24" />
  1484. <Property Name="MainUse" Type="nvarchar" MaxLength="10" />
  1485. <Property Name="CompletionDate" Type="nvarchar" MaxLength="24" />
  1486. <Property Name="Standard" Type="nvarchar" MaxLength="24" />
  1487. <Property Name="MainUseIndex" Type="int" />
  1488. </EntityType>
  1489. <EntityType Name="CmUser">
  1490. <Key>
  1491. <PropertyRef Name="SiteId" />
  1492. <PropertyRef Name="UserId" />
  1493. </Key>
  1494. <Property Name="SiteId" Type="int" Nullable="false" />
  1495. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1496. <Property Name="CompanyId" Type="int" />
  1497. <Property Name="DepartmentId" Type="int" />
  1498. <Property Name="PositionId" Type="int" />
  1499. <Property Name="BusinessFieldId" Type="int" />
  1500. <Property Name="UserGroupId" Type="int" />
  1501. <Property Name="Name" Type="nvarchar" MaxLength="30" Nullable="false" />
  1502. <Property Name="Passwd" Type="nvarchar" MaxLength="30" Nullable="false" />
  1503. <Property Name="Birthday" Type="datetime" />
  1504. <Property Name="Lunar" Type="bit" />
  1505. <Property Name="StateId" Type="int" />
  1506. <Property Name="EmploymentType" Type="int" />
  1507. <Property Name="EmploymentStatus" Type="int" />
  1508. <Property Name="OfficePhoneNo" Type="nvarchar" MaxLength="50" />
  1509. <Property Name="HomePhoneNo" Type="nvarchar" MaxLength="50" />
  1510. <Property Name="MobilePhoneNo" Type="nvarchar" MaxLength="50" />
  1511. <Property Name="HomeZip1" Type="char" MaxLength="3" />
  1512. <Property Name="HomeZip2" Type="char" MaxLength="3" />
  1513. <Property Name="HomeAddress1" Type="nvarchar" MaxLength="50" />
  1514. <Property Name="HomeAdderss2" Type="nvarchar" MaxLength="100" />
  1515. <Property Name="Email" Type="nvarchar" MaxLength="50" />
  1516. <Property Name="EnterDate" Type="datetime" />
  1517. <Property Name="RetireDate" Type="datetime" />
  1518. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1519. <Property Name="Rfcsn" Type="nvarchar" MaxLength="30" />
  1520. <Property Name="PasswordUpdatedDate" Type="datetime" />
  1521. <Property Name="FileId" Type="int" />
  1522. <Property Name="IsBems" Type="bit" />
  1523. <Property Name="IsUse" Type="bit" />
  1524. <Property Name="IsScheduleUser" Type="bit" />
  1525. <Property Name="Certificated" Type="nvarchar" MaxLength="512" />
  1526. <Property Name="IsSI" Type="bit" />
  1527. <Property Name="IsMobile" Type="bit" />
  1528. <Property Name="Devicetoken" Type="nvarchar" MaxLength="500" />
  1529. </EntityType>
  1530. <EntityType Name="CmUserGroup">
  1531. <Key>
  1532. <PropertyRef Name="SiteId" />
  1533. <PropertyRef Name="UserGroupId" />
  1534. </Key>
  1535. <Property Name="SiteId" Type="int" Nullable="false" />
  1536. <Property Name="UserGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1537. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1538. </EntityType>
  1539. <EntityType Name="CmUserGroupPermission">
  1540. <Key>
  1541. <PropertyRef Name="SiteId" />
  1542. <PropertyRef Name="UserGroupId" />
  1543. <PropertyRef Name="MenuId" />
  1544. </Key>
  1545. <Property Name="SiteId" Type="int" Nullable="false" />
  1546. <Property Name="UserGroupId" Type="int" Nullable="false" />
  1547. <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
  1548. <Property Name="MenuPermission" Type="smallint" />
  1549. </EntityType>
  1550. <EntityType Name="CmUserLoginHistory">
  1551. <Key>
  1552. <PropertyRef Name="LoginHistoryId" />
  1553. </Key>
  1554. <Property Name="LoginHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1555. <Property Name="SiteId" Type="int" Nullable="false" />
  1556. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1557. <Property Name="Type" Type="nvarchar" MaxLength="10" Nullable="false" />
  1558. <Property Name="TraceTime" Type="datetime" Nullable="false" />
  1559. <Property Name="IpAddress" Type="nvarchar" MaxLength="16" />
  1560. </EntityType>
  1561. <EntityType Name="CmUserToLicense">
  1562. <Key>
  1563. <PropertyRef Name="SiteId" />
  1564. <PropertyRef Name="UserId" />
  1565. <PropertyRef Name="LicenseId" />
  1566. </Key>
  1567. <Property Name="SiteId" Type="int" Nullable="false" />
  1568. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1569. <Property Name="LicenseId" Type="int" Nullable="false" />
  1570. </EntityType>
  1571. <EntityType Name="CmZone">
  1572. <Key>
  1573. <PropertyRef Name="SiteId" />
  1574. <PropertyRef Name="BuildingId" />
  1575. <PropertyRef Name="FloorId" />
  1576. <PropertyRef Name="ZoneId" />
  1577. </Key>
  1578. <Property Name="SiteId" Type="int" Nullable="false" />
  1579. <Property Name="BuildingId" Type="int" Nullable="false" />
  1580. <Property Name="FloorId" Type="int" Nullable="false" />
  1581. <Property Name="ZoneId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1582. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1583. <Property Name="Target_temperature" Type="float" />
  1584. <Property Name="Target_humidity" Type="smallint" />
  1585. </EntityType>
  1586. <EntityType Name="CmZoneTempHumiSet">
  1587. <Key>
  1588. <PropertyRef Name="SiteId" />
  1589. <PropertyRef Name="BuildingId" />
  1590. <PropertyRef Name="FloorId" />
  1591. <PropertyRef Name="ZoneId" />
  1592. </Key>
  1593. <Property Name="SiteId" Type="int" Nullable="false" />
  1594. <Property Name="BuildingId" Type="int" Nullable="false" />
  1595. <Property Name="FloorId" Type="int" Nullable="false" />
  1596. <Property Name="ZoneId" Type="int" Nullable="false" />
  1597. <Property Name="T1" Type="float" Nullable="false" />
  1598. <Property Name="T2" Type="float" Nullable="false" />
  1599. <Property Name="T3" Type="float" Nullable="false" />
  1600. <Property Name="T4" Type="float" Nullable="false" />
  1601. <Property Name="T5" Type="float" Nullable="false" />
  1602. <Property Name="T6" Type="float" Nullable="false" />
  1603. <Property Name="T7" Type="float" Nullable="false" />
  1604. <Property Name="T8" Type="float" Nullable="false" />
  1605. <Property Name="T9" Type="float" Nullable="false" />
  1606. <Property Name="T10" Type="float" Nullable="false" />
  1607. <Property Name="T11" Type="float" Nullable="false" />
  1608. <Property Name="T12" Type="float" Nullable="false" />
  1609. <Property Name="H1" Type="smallint" Nullable="false" />
  1610. <Property Name="H2" Type="smallint" Nullable="false" />
  1611. <Property Name="H3" Type="smallint" Nullable="false" />
  1612. <Property Name="H4" Type="smallint" Nullable="false" />
  1613. <Property Name="H5" Type="smallint" Nullable="false" />
  1614. <Property Name="H6" Type="smallint" Nullable="false" />
  1615. <Property Name="H7" Type="smallint" Nullable="false" />
  1616. <Property Name="H8" Type="smallint" Nullable="false" />
  1617. <Property Name="H9" Type="smallint" Nullable="false" />
  1618. <Property Name="H10" Type="smallint" Nullable="false" />
  1619. <Property Name="H11" Type="smallint" Nullable="false" />
  1620. <Property Name="H12" Type="smallint" Nullable="false" />
  1621. </EntityType>
  1622. <EntityType Name="FmsAccident">
  1623. <Key>
  1624. <PropertyRef Name="SiteId" />
  1625. <PropertyRef Name="AccidentId" />
  1626. </Key>
  1627. <Property Name="SiteId" Type="int" Nullable="false" />
  1628. <Property Name="AccidentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1629. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1630. <Property Name="StartDate" Type="datetime" />
  1631. <Property Name="EndDate" Type="datetime" />
  1632. <Property Name="AccidentTypeId" Type="int" Nullable="false" />
  1633. <Property Name="DepartmentId" Type="int" />
  1634. <Property Name="AccidentLocation" Type="nvarchar" MaxLength="256" />
  1635. <Property Name="Reason" Type="nvarchar" MaxLength="1024" />
  1636. <Property Name="Action" Type="nvarchar" MaxLength="1024" />
  1637. <Property Name="Damage" Type="nvarchar" MaxLength="1024" />
  1638. <Property Name="Measurement" Type="nvarchar" MaxLength="1024" />
  1639. <Property Name="FileId1" Type="int" />
  1640. <Property Name="FileId2" Type="int" />
  1641. <Property Name="FileId3" Type="int" />
  1642. <Property Name="CompanyId" Type="int" />
  1643. </EntityType>
  1644. <EntityType Name="FmsAccidentCodeType">
  1645. <Key>
  1646. <PropertyRef Name="SiteId" />
  1647. <PropertyRef Name="AccidentTypeId" />
  1648. </Key>
  1649. <Property Name="SiteId" Type="int" Nullable="false" />
  1650. <Property Name="AccidentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1651. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1652. <Property Name="IsUse" Type="bit" Nullable="false" />
  1653. </EntityType>
  1654. <EntityType Name="FmsBudget">
  1655. <Key>
  1656. <PropertyRef Name="SiteId" />
  1657. <PropertyRef Name="Year" />
  1658. </Key>
  1659. <Property Name="SiteId" Type="int" Nullable="false" />
  1660. <Property Name="Year" Type="int" Nullable="false" />
  1661. </EntityType>
  1662. <EntityType Name="FmsBudgetCodeClass">
  1663. <Key>
  1664. <PropertyRef Name="SiteId" />
  1665. <PropertyRef Name="BudgetClassId" />
  1666. </Key>
  1667. <Property Name="SiteId" Type="int" Nullable="false" />
  1668. <Property Name="BudgetClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1669. <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
  1670. <Property Name="RootBudgetClassId" Type="int" />
  1671. <Property Name="ParentBudgetClassId" Type="int" />
  1672. <Property Name="Depth" Type="int" Nullable="false" />
  1673. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1674. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  1675. <Property Name="IsUse" Type="bit" />
  1676. <Property Name="YearlyBudget" Type="float" />
  1677. <Property Name="MonthlyBudget" Type="float" />
  1678. </EntityType>
  1679. <EntityType Name="FmsBudgetDetail">
  1680. <Key>
  1681. <PropertyRef Name="SiteId" />
  1682. <PropertyRef Name="Year" />
  1683. <PropertyRef Name="BudgetClassId" />
  1684. <PropertyRef Name="ParentBudgetClassId" />
  1685. </Key>
  1686. <Property Name="SiteId" Type="int" Nullable="false" />
  1687. <Property Name="Year" Type="int" Nullable="false" />
  1688. <Property Name="BudgetClassId" Type="int" Nullable="false" />
  1689. <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
  1690. <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
  1691. <Property Name="RootBudgetClassId" Type="int" />
  1692. <Property Name="Depth" Type="int" Nullable="false" />
  1693. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1694. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  1695. <Property Name="IsUse" Type="bit" />
  1696. <Property Name="YearlyBudget" Type="float" Nullable="false" />
  1697. <Property Name="MonthlyBudget" Type="float" Nullable="false" />
  1698. </EntityType>
  1699. <EntityType Name="FmsBudgetDetailExecution">
  1700. <Key>
  1701. <PropertyRef Name="SiteId" />
  1702. <PropertyRef Name="Year" />
  1703. <PropertyRef Name="BudgetClassId" />
  1704. <PropertyRef Name="ParentBudgetClassId" />
  1705. <PropertyRef Name="Month" />
  1706. </Key>
  1707. <Property Name="SiteId" Type="int" Nullable="false" />
  1708. <Property Name="Year" Type="int" Nullable="false" />
  1709. <Property Name="BudgetClassId" Type="int" Nullable="false" />
  1710. <Property Name="RootBudgetClassId" Type="int" />
  1711. <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
  1712. <Property Name="Month" Type="int" Nullable="false" />
  1713. <Property Name="YearlyBudget" Type="float" Nullable="false" />
  1714. <Property Name="MonthlyBudget" Type="float" Nullable="false" />
  1715. <Property Name="YearlyExecution" Type="float" Nullable="false" />
  1716. <Property Name="MonthlyExecution" Type="float" Nullable="false" />
  1717. </EntityType>
  1718. <EntityType Name="FmsCompanyEstimationCodeClass">
  1719. <Key>
  1720. <PropertyRef Name="SiteId" />
  1721. <PropertyRef Name="CompanyEstimationClassId" />
  1722. </Key>
  1723. <Property Name="SiteId" Type="int" Nullable="false" />
  1724. <Property Name="CompanyEstimationClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1725. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1726. <Property Name="IsUse" Type="bit" />
  1727. </EntityType>
  1728. <EntityType Name="FmsConstruction">
  1729. <Key>
  1730. <PropertyRef Name="SiteId" />
  1731. <PropertyRef Name="ConstructionId" />
  1732. </Key>
  1733. <Property Name="SiteId" Type="int" Nullable="false" />
  1734. <Property Name="ConstructionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1735. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1736. <Property Name="ConstructionTypeId" Type="int" Nullable="false" />
  1737. <Property Name="StartDate" Type="datetime" Nullable="false" />
  1738. <Property Name="EndDate" Type="datetime" Nullable="false" />
  1739. <Property Name="PartnerId" Type="int" Nullable="false" />
  1740. <Property Name="ConstructLocation" Type="nvarchar" MaxLength="256" Nullable="false" />
  1741. <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" Nullable="false" />
  1742. <Property Name="CommitmentMan" Type="smallint" />
  1743. <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1744. <Property Name="WeldWorkStartTime" Type="datetime" />
  1745. <Property Name="WeldWorkEndTime" Type="datetime" />
  1746. <Property Name="GasWorkStartTime" Type="datetime" />
  1747. <Property Name="GasWorkEndTime" Type="datetime" />
  1748. <Property Name="PaintWorkStartTime" Type="datetime" />
  1749. <Property Name="PaintWorkEndTime" Type="datetime" />
  1750. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1751. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  1752. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1753. <Property Name="UpdateDate" Type="datetime" Nullable="false" />
  1754. <Property Name="ConstructionDetail" Type="nvarchar" MaxLength="1024" />
  1755. <Property Name="InOutStockName" Type="nvarchar" MaxLength="1024" />
  1756. <Property Name="FileId1" Type="int" />
  1757. <Property Name="FileId2" Type="int" />
  1758. <Property Name="FileId3" Type="int" />
  1759. </EntityType>
  1760. <EntityType Name="FmsConstructionCodeProgress">
  1761. <Key>
  1762. <PropertyRef Name="ProgressId" />
  1763. </Key>
  1764. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  1765. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1766. <Property Name="Description" Type="nvarchar" MaxLength="100" />
  1767. </EntityType>
  1768. <EntityType Name="FmsConstructionCodeType">
  1769. <Key>
  1770. <PropertyRef Name="SiteId" />
  1771. <PropertyRef Name="ConstructionTypeId" />
  1772. </Key>
  1773. <Property Name="SiteId" Type="int" Nullable="false" />
  1774. <Property Name="ConstructionTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1775. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1776. <Property Name="IsUse" Type="bit" Nullable="false" />
  1777. </EntityType>
  1778. <EntityType Name="FmsConstructionEstimation">
  1779. <Key>
  1780. <PropertyRef Name="SiteId" />
  1781. <PropertyRef Name="ConstructionId" />
  1782. </Key>
  1783. <Property Name="SiteId" Type="int" Nullable="false" />
  1784. <Property Name="ConstructionId" Type="int" Nullable="false" />
  1785. <Property Name="EstimateDate" Type="datetime" Nullable="false" />
  1786. <Property Name="EstimateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1787. <Property Name="Safety01_CleanUp" Type="bit" />
  1788. <Property Name="Safety02_PersonalProtection" Type="bit" />
  1789. <Property Name="Safety03_FireExtinguisher" Type="bit" />
  1790. <Property Name="Safety04_HighPlaceWork" Type="bit" />
  1791. <Property Name="Safety05_Weld" Type="bit" />
  1792. <Property Name="Safety06_SurroundingCleanUp" Type="bit" />
  1793. <Property Name="Safety07_SurroundingHealthy" Type="bit" />
  1794. <Property Name="Safety08_Noise" Type="bit" />
  1795. <Property Name="Safety09_FacilityProtection" Type="bit" />
  1796. <Property Name="Safety10_Waste" Type="bit" />
  1797. <Property Name="Safety11_Execution" Type="bit" />
  1798. <Property Name="Safety12_Announcement" Type="bit" />
  1799. <Property Name="Ability01_Compliance" Type="bit" />
  1800. <Property Name="Ability02_Fault" Type="bit" />
  1801. <Property Name="Ability03_SkillLevel" Type="bit" />
  1802. <Property Name="Ability04_ProcessManagement" Type="bit" />
  1803. <Property Name="Ability05_Collaboration" Type="bit" />
  1804. <Property Name="Service01_Compliance" Type="bit" />
  1805. <Property Name="Service02_SkillLevel" Type="bit" />
  1806. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1807. <Property Name="TotalEstimateScore" Type="float" />
  1808. <Property Name="SafetyScore" Type="float" />
  1809. <Property Name="AbilityScore" Type="float" />
  1810. <Property Name="ServiceScore" Type="float" />
  1811. </EntityType>
  1812. <EntityType Name="FmsContract">
  1813. <Key>
  1814. <PropertyRef Name="SiteId" />
  1815. <PropertyRef Name="ContractId" />
  1816. </Key>
  1817. <Property Name="SiteId" Type="int" Nullable="false" />
  1818. <Property Name="ContractId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1819. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1820. <Property Name="PartnerTypeId" Type="int" />
  1821. <Property Name="PartnerId" Type="int" />
  1822. <Property Name="ContractDate" Type="datetime" />
  1823. <Property Name="StartDate" Type="datetime" />
  1824. <Property Name="EndDate" Type="datetime" />
  1825. <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" />
  1826. <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" />
  1827. <Property Name="CommitmentMan" Type="smallint" />
  1828. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1829. <Property Name="ContractClassId" Type="int" />
  1830. <Property Name="ContractTypeId" Type="int" />
  1831. <Property Name="ContractMethodId" Type="int" />
  1832. <Property Name="PaymentTypeId" Type="int" />
  1833. </EntityType>
  1834. <EntityType Name="FmsContractClass">
  1835. <Key>
  1836. <PropertyRef Name="SiteId" />
  1837. <PropertyRef Name="ContractClassId" />
  1838. </Key>
  1839. <Property Name="SiteId" Type="int" Nullable="false" />
  1840. <Property Name="ContractClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1841. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1842. <Property Name="IsUse" Type="bit" />
  1843. </EntityType>
  1844. <EntityType Name="FmsContractMethod">
  1845. <Key>
  1846. <PropertyRef Name="SiteId" />
  1847. <PropertyRef Name="ContractMethodId" />
  1848. </Key>
  1849. <Property Name="SiteId" Type="int" Nullable="false" />
  1850. <Property Name="ContractMethodId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1851. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1852. <Property Name="IsUse" Type="bit" />
  1853. </EntityType>
  1854. <EntityType Name="FmsContractType">
  1855. <Key>
  1856. <PropertyRef Name="SiteId" />
  1857. <PropertyRef Name="ContractTypeId" />
  1858. </Key>
  1859. <Property Name="SiteId" Type="int" Nullable="false" />
  1860. <Property Name="ContractTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1861. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1862. <Property Name="IsUse" Type="bit" />
  1863. </EntityType>
  1864. <EntityType Name="FmsDailyCheckReport">
  1865. <Key>
  1866. <PropertyRef Name="SiteId" />
  1867. <PropertyRef Name="DailyCheckReportId" />
  1868. </Key>
  1869. <Property Name="SiteId" Type="int" Nullable="false" />
  1870. <Property Name="DailyCheckReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1871. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  1872. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  1873. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1874. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1875. </EntityType>
  1876. <EntityType Name="FmsDailyReport">
  1877. <Key>
  1878. <PropertyRef Name="SiteId" />
  1879. <PropertyRef Name="AddDate" />
  1880. <PropertyRef Name="BusinessFieldId" />
  1881. </Key>
  1882. <Property Name="SiteId" Type="int" Nullable="false" />
  1883. <Property Name="DailyReportId" Type="int" />
  1884. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  1885. <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
  1886. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1887. <Property Name="AddDate" Type="date" Nullable="false" />
  1888. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  1889. <Property Name="Datas" Type="varchar(max)" />
  1890. <Property Name="ApproverUserId" Type="nvarchar" MaxLength="24" />
  1891. <Property Name="ApproveDate" Type="date" />
  1892. <Property Name="RegisterDate" Type="date" />
  1893. <Property Name="ApproverUserId2" Type="nvarchar" MaxLength="24" />
  1894. <Property Name="ApproveDate2" Type="date" />
  1895. <Property Name="ApproverUserId3" Type="nvarchar" MaxLength="24" />
  1896. <Property Name="ApproveDate3" Type="date" />
  1897. <Property Name="ApproverUserId4" Type="nvarchar" MaxLength="24" />
  1898. <Property Name="ApproveDate4" Type="date" />
  1899. <Property Name="ApproverUserId5" Type="nvarchar" MaxLength="24" />
  1900. <Property Name="ApproveDate5" Type="date" />
  1901. </EntityType>
  1902. <EntityType Name="FmsDrawing">
  1903. <Key>
  1904. <PropertyRef Name="SiteId" />
  1905. <PropertyRef Name="DrawingId" />
  1906. </Key>
  1907. <Property Name="SiteId" Type="int" Nullable="false" />
  1908. <Property Name="DrawingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1909. <Property Name="DrawingNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1910. <Property Name="DrawingGroupId" Type="int" Nullable="false" />
  1911. <Property Name="DrawingTypeId" Type="int" Nullable="false" />
  1912. <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
  1913. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  1914. </EntityType>
  1915. <EntityType Name="FmsDrawingCodeGroup">
  1916. <Key>
  1917. <PropertyRef Name="SiteId" />
  1918. <PropertyRef Name="DrawingGroupId" />
  1919. </Key>
  1920. <Property Name="SiteId" Type="int" Nullable="false" />
  1921. <Property Name="DrawingGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1922. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1923. <Property Name="IsUse" Type="bit" />
  1924. </EntityType>
  1925. <EntityType Name="FmsDrawingCodeType">
  1926. <Key>
  1927. <PropertyRef Name="SiteId" />
  1928. <PropertyRef Name="DrawingTypeId" />
  1929. </Key>
  1930. <Property Name="SiteId" Type="int" Nullable="false" />
  1931. <Property Name="DrawingTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1932. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1933. <Property Name="IsUse" Type="bit" />
  1934. </EntityType>
  1935. <EntityType Name="FmsDrawingHistory">
  1936. <Key>
  1937. <PropertyRef Name="SiteId" />
  1938. <PropertyRef Name="DrawingId" />
  1939. <PropertyRef Name="HistoryId" />
  1940. </Key>
  1941. <Property Name="SiteId" Type="int" Nullable="false" />
  1942. <Property Name="DrawingId" Type="int" Nullable="false" />
  1943. <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1944. <Property Name="RevisionNo" Type="int" />
  1945. <Property Name="FileId" Type="int" />
  1946. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  1947. <Property Name="UpdatedDate" Type="datetime" />
  1948. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1949. </EntityType>
  1950. <EntityType Name="FmsEquipment">
  1951. <Key>
  1952. <PropertyRef Name="SiteId" />
  1953. <PropertyRef Name="EquipmentId" />
  1954. </Key>
  1955. <Property Name="SiteId" Type="int" Nullable="false" />
  1956. <Property Name="EquipmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1957. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1958. <Property Name="EquipmentTypeId" Type="int" Nullable="false" />
  1959. <Property Name="WarehouseId" Type="int" />
  1960. <Property Name="Unit" Type="nvarchar" MaxLength="12" />
  1961. <Property Name="Standard" Type="nvarchar" MaxLength="20" />
  1962. <Property Name="AddDate" Type="datetime" />
  1963. <Property Name="UpdateDate" Type="datetime" />
  1964. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1965. <Property Name="SupplierName" Type="nvarchar" MaxLength="256" />
  1966. <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
  1967. <Property Name="ImageFileId" Type="int" />
  1968. </EntityType>
  1969. <EntityType Name="FmsEquipmentCodeStateType">
  1970. <Key>
  1971. <PropertyRef Name="EquipmentStateTypeId" />
  1972. </Key>
  1973. <Property Name="EquipmentStateTypeId" Type="smallint" Nullable="false" />
  1974. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1975. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1976. </EntityType>
  1977. <EntityType Name="FmsEquipmentCodeType">
  1978. <Key>
  1979. <PropertyRef Name="SiteId" />
  1980. <PropertyRef Name="EquipmentTypeId" />
  1981. </Key>
  1982. <Property Name="SiteId" Type="int" Nullable="false" />
  1983. <Property Name="EquipmentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1984. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1985. <Property Name="IsUse" Type="bit" Nullable="false" />
  1986. <Property Name="Description" Type="nvarchar" MaxLength="255" />
  1987. </EntityType>
  1988. <EntityType Name="FmsEquipmentHistory">
  1989. <Key>
  1990. <PropertyRef Name="SiteId" />
  1991. <PropertyRef Name="EquipmentHistoryId" />
  1992. <PropertyRef Name="EquipmentId" />
  1993. </Key>
  1994. <Property Name="SiteId" Type="int" Nullable="false" />
  1995. <Property Name="EquipmentHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1996. <Property Name="EquipmentId" Type="int" Nullable="false" />
  1997. <Property Name="TotalStockCount" Type="int" />
  1998. <Property Name="CurrentStockCount" Type="int" />
  1999. <Property Name="RentCount" Type="int" />
  2000. <Property Name="CurrentRentCount" Type="int" />
  2001. <Property Name="ReturnCount" Type="int" />
  2002. <Property Name="LossCount" Type="int" />
  2003. <Property Name="StoredCount" Type="int" />
  2004. <Property Name="EquipmentRentId" Type="int" />
  2005. <Property Name="EquipmentStateTypeId" Type="smallint" />
  2006. <Property Name="AddDate" Type="datetime" />
  2007. <Property Name="UpdateDate" Type="datetime" />
  2008. <Property Name="IsReturned" Type="bit" />
  2009. </EntityType>
  2010. <EntityType Name="FmsEquipmentRentInfo">
  2011. <Key>
  2012. <PropertyRef Name="SiteId" />
  2013. <PropertyRef Name="EquipmentRentId" />
  2014. </Key>
  2015. <Property Name="SiteId" Type="int" Nullable="false" />
  2016. <Property Name="EquipmentRentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2017. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2018. <Property Name="RentUserId" Type="nvarchar" MaxLength="24" />
  2019. <Property Name="RegisterDate" Type="nchar" MaxLength="10" />
  2020. <Property Name="RentDate" Type="datetime" />
  2021. <Property Name="ReturnDueDate" Type="datetime" />
  2022. <Property Name="ReturnFixDate" Type="datetime" />
  2023. <Property Name="EquipmentStateTypeId" Type="smallint" />
  2024. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2025. <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
  2026. <Property Name="RentUser" Type="nvarchar" MaxLength="128" />
  2027. </EntityType>
  2028. <EntityType Name="FmsFacilityCheckItem">
  2029. <Key>
  2030. <PropertyRef Name="SiteId" />
  2031. <PropertyRef Name="FacilityCode" />
  2032. <PropertyRef Name="CheckItemId" />
  2033. </Key>
  2034. <Property Name="SiteId" Type="int" Nullable="false" />
  2035. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2036. <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2037. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2038. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2039. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  2040. <Property Name="IsYesNoResult" Type="bit" Nullable="false" />
  2041. <Property Name="IsUse" Type="bit" />
  2042. </EntityType>
  2043. <EntityType Name="FmsFacilityCodeClass">
  2044. <Key>
  2045. <PropertyRef Name="SiteId" />
  2046. <PropertyRef Name="FacilityClassId" />
  2047. </Key>
  2048. <Property Name="SiteId" Type="int" Nullable="false" />
  2049. <Property Name="FacilityClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2050. <Property Name="ParentFacilityClassId" Type="int" />
  2051. <Property Name="Depth" Type="int" Nullable="false" />
  2052. <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
  2053. <Property Name="Abbreviation" Type="nvarchar" MaxLength="40" />
  2054. <Property Name="IsUse" Type="bit" />
  2055. </EntityType>
  2056. <EntityType Name="FmsFacilityManual">
  2057. <Key>
  2058. <PropertyRef Name="SiteId" />
  2059. <PropertyRef Name="FacilityCode" />
  2060. <PropertyRef Name="ManualId" />
  2061. </Key>
  2062. <Property Name="SiteId" Type="int" Nullable="false" />
  2063. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2064. <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2065. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2066. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  2067. <Property Name="Description" Type="nvarchar" MaxLength="1024" />
  2068. <Property Name="Keyword" Type="nvarchar" MaxLength="100" />
  2069. <Property Name="FileId" Type="int" />
  2070. <Property Name="IsUse" Type="bit" />
  2071. </EntityType>
  2072. <EntityType Name="FmsFacilityOperationItem">
  2073. <Key>
  2074. <PropertyRef Name="SiteId" />
  2075. <PropertyRef Name="ItemId" />
  2076. </Key>
  2077. <Property Name="SiteId" Type="int" Nullable="false" />
  2078. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2079. <Property Name="ItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2080. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  2081. <Property Name="ResultUnit" Type="nvarchar" MaxLength="10" Nullable="false" />
  2082. <Property Name="PointId" Type="nvarchar" MaxLength="50" />
  2083. <Property Name="SystemId" Type="int" />
  2084. <Property Name="EnergyCode" Type="bit" />
  2085. <Property Name="IsUse" Type="bit" />
  2086. <Property Name="SortOrderNo" Type="int" />
  2087. <Property Name="InsertedDate" Type="datetime" />
  2088. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  2089. <Property Name="UpdatedDate" Type="datetime" />
  2090. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2091. </EntityType>
  2092. <EntityType Name="FmsFacilityOperationReport">
  2093. <Key>
  2094. <PropertyRef Name="SiteId" />
  2095. <PropertyRef Name="FacilityOperationReportId" />
  2096. </Key>
  2097. <Property Name="SiteId" Type="int" Nullable="false" />
  2098. <Property Name="FacilityOperationReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2099. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2100. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  2101. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2102. <Property Name="AddDate" Type="datetime" Nullable="false" />
  2103. </EntityType>
  2104. <EntityType Name="FmsInvestmentCost">
  2105. <Key>
  2106. <PropertyRef Name="SiteId" />
  2107. <PropertyRef Name="InsvestmentCostId" />
  2108. </Key>
  2109. <Property Name="SiteId" Type="int" Nullable="false" />
  2110. <Property Name="InsvestmentCostId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2111. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  2112. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2113. <Property Name="InsvestmentCost" Type="float" Nullable="false" />
  2114. </EntityType>
  2115. <EntityType Name="FmsLicense">
  2116. <Key>
  2117. <PropertyRef Name="SiteId" />
  2118. <PropertyRef Name="LicenseId" />
  2119. </Key>
  2120. <Property Name="SiteId" Type="int" Nullable="false" />
  2121. <Property Name="LicenseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2122. <Property Name="Name" Type="nvarchar" MaxLength="52" Nullable="false" />
  2123. <Property Name="IssuingOffice" Type="nvarchar" MaxLength="52" Nullable="false" />
  2124. <Property Name="BusinessFieldId" Type="int" />
  2125. <Property Name="EducationalInstitute" Type="nvarchar" MaxLength="52" />
  2126. <Property Name="Note" Type="nvarchar" MaxLength="256" />
  2127. <Property Name="IsUse" Type="bit" />
  2128. </EntityType>
  2129. <EntityType Name="FmsManual">
  2130. <Key>
  2131. <PropertyRef Name="SiteId" />
  2132. <PropertyRef Name="ManualId" />
  2133. </Key>
  2134. <Property Name="SiteId" Type="int" Nullable="false" />
  2135. <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2136. <Property Name="ManualNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  2137. <Property Name="ManualTypeId" Type="int" Nullable="false" />
  2138. <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
  2139. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2140. </EntityType>
  2141. <EntityType Name="FmsManualHistory">
  2142. <Key>
  2143. <PropertyRef Name="SiteId" />
  2144. <PropertyRef Name="ManualId" />
  2145. <PropertyRef Name="HistoryId" />
  2146. </Key>
  2147. <Property Name="SiteId" Type="int" Nullable="false" />
  2148. <Property Name="ManualId" Type="int" Nullable="false" />
  2149. <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2150. <Property Name="RevisionNo" Type="int" />
  2151. <Property Name="FileId" Type="int" />
  2152. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2153. <Property Name="UpdatedDate" Type="datetime" />
  2154. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2155. </EntityType>
  2156. <EntityType Name="FmsManualType">
  2157. <Key>
  2158. <PropertyRef Name="SiteId" />
  2159. <PropertyRef Name="ManualTypeId" />
  2160. </Key>
  2161. <Property Name="SiteId" Type="int" Nullable="false" />
  2162. <Property Name="ManualTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2163. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2164. <Property Name="IsUse" Type="bit" />
  2165. </EntityType>
  2166. <EntityType Name="FmsMaterial">
  2167. <Key>
  2168. <PropertyRef Name="SiteId" />
  2169. <PropertyRef Name="MaterialId" />
  2170. </Key>
  2171. <Property Name="SiteId" Type="int" Nullable="false" />
  2172. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2173. <Property Name="MaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2174. <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" Nullable="false" />
  2175. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2176. <Property Name="FirstClassId" Type="int" />
  2177. <Property Name="SecondClassId" Type="int" />
  2178. <Property Name="ThirdClassId" Type="int" />
  2179. <Property Name="LocationId" Type="int" />
  2180. <Property Name="MaterialTypeId" Type="int" />
  2181. <Property Name="WarehouseId" Type="int" />
  2182. <Property Name="TradeCompanyId" Type="int" />
  2183. <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
  2184. <Property Name="Unit" Type="nvarchar" MaxLength="12" />
  2185. <Property Name="DurableYears" Type="smallint" />
  2186. <Property Name="ReasonableStockCount" Type="smallint" />
  2187. <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
  2188. <Property Name="Standard" Type="nvarchar" MaxLength="20" />
  2189. <Property Name="FinalPrice" Type="int" />
  2190. <Property Name="ImageFileId" Type="int" />
  2191. <Property Name="Note" Type="nvarchar" MaxLength="512" />
  2192. <Property Name="IsDiscontinued" Type="bit" />
  2193. <Property Name="IsUse" Type="bit" Nullable="false" />
  2194. <Property Name="FinalStockCount" Type="int" Nullable="false" />
  2195. <Property Name="FinalTotalStockAmount" Type="int" Nullable="false" />
  2196. </EntityType>
  2197. <EntityType Name="FmsMaterialCarriedForward">
  2198. <Key>
  2199. <PropertyRef Name="SiteId" />
  2200. <PropertyRef Name="ClosedDate" />
  2201. <PropertyRef Name="BusinessFieldId" />
  2202. <PropertyRef Name="WarehouseId" />
  2203. <PropertyRef Name="MaterialId" />
  2204. </Key>
  2205. <Property Name="SiteId" Type="int" Nullable="false" />
  2206. <Property Name="ClosedDate" Type="datetime" Nullable="false" />
  2207. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2208. <Property Name="WarehouseId" Type="int" Nullable="false" />
  2209. <Property Name="MaterialId" Type="int" Nullable="false" />
  2210. <Property Name="StockCount" Type="int" Nullable="false" />
  2211. <Property Name="StockTotalCost" Type="int" Nullable="false" />
  2212. </EntityType>
  2213. <EntityType Name="FmsMaterialCodeAdjustmentType">
  2214. <Key>
  2215. <PropertyRef Name="AdjustmentTypeId" />
  2216. </Key>
  2217. <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
  2218. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2219. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2220. </EntityType>
  2221. <EntityType Name="FmsMaterialCodeClass">
  2222. <Key>
  2223. <PropertyRef Name="SiteId" />
  2224. <PropertyRef Name="MaterialClassId" />
  2225. </Key>
  2226. <Property Name="SiteId" Type="int" Nullable="false" />
  2227. <Property Name="MaterialClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2228. <Property Name="ParentMaterialClassId" Type="int" />
  2229. <Property Name="Depth" Type="int" Nullable="false" />
  2230. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  2231. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  2232. <Property Name="IsUse" Type="bit" />
  2233. </EntityType>
  2234. <EntityType Name="FmsMaterialCodeLocation">
  2235. <Key>
  2236. <PropertyRef Name="SiteId" />
  2237. <PropertyRef Name="LocationId" />
  2238. </Key>
  2239. <Property Name="SiteId" Type="int" Nullable="false" />
  2240. <Property Name="LocationId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2241. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2242. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2243. <Property Name="IsUse" Type="bit" Nullable="false" />
  2244. </EntityType>
  2245. <EntityType Name="FmsMaterialCodeProgress">
  2246. <Key>
  2247. <PropertyRef Name="ProgressId" />
  2248. </Key>
  2249. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  2250. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2251. <Property Name="Description" Type="nvarchar" MaxLength="100" />
  2252. </EntityType>
  2253. <EntityType Name="FmsMaterialCodePurchaseType">
  2254. <Key>
  2255. <PropertyRef Name="PurchaseTypeId" />
  2256. </Key>
  2257. <Property Name="PurchaseTypeId" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
  2258. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2259. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2260. </EntityType>
  2261. <EntityType Name="FmsMaterialCodeReleaseType">
  2262. <Key>
  2263. <PropertyRef Name="ReleaseTypeId" />
  2264. </Key>
  2265. <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
  2266. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2267. <Property Name="Description" Type="nvarchar" MaxLength="255" />
  2268. </EntityType>
  2269. <EntityType Name="FmsMaterialCodeType">
  2270. <Key>
  2271. <PropertyRef Name="SiteId" />
  2272. <PropertyRef Name="MaterialTypeId" />
  2273. </Key>
  2274. <Property Name="SiteId" Type="int" Nullable="false" />
  2275. <Property Name="MaterialTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2276. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2277. <Property Name="Nickname" Type="nvarchar" MaxLength="24" Nullable="false" />
  2278. <Property Name="IsUse" Type="bit" Nullable="false" />
  2279. </EntityType>
  2280. <EntityType Name="FmsMaterialPurchaseOrder">
  2281. <Key>
  2282. <PropertyRef Name="SiteId" />
  2283. <PropertyRef Name="PurchaseOrderId" />
  2284. </Key>
  2285. <Property Name="SiteId" Type="int" Nullable="false" />
  2286. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2287. <Property Name="PurchaseOrderId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2288. <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
  2289. <Property Name="TradeCompanyId" Type="int" />
  2290. <Property Name="OrderDate" Type="datetime" Nullable="false" />
  2291. <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2292. <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
  2293. <Property Name="Reason" Type="nvarchar" MaxLength="2000" />
  2294. <Property Name="StoredDueDate" Type="datetime" />
  2295. <Property Name="FileId" Type="int" />
  2296. </EntityType>
  2297. <EntityType Name="FmsMaterialPurchaseOrderMaterial">
  2298. <Key>
  2299. <PropertyRef Name="SiteId" />
  2300. <PropertyRef Name="PurchaseOrderId" />
  2301. <PropertyRef Name="MaterialId" />
  2302. </Key>
  2303. <Property Name="SiteId" Type="int" Nullable="false" />
  2304. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2305. <Property Name="PurchaseOrderId" Type="int" Nullable="false" />
  2306. <Property Name="MaterialId" Type="int" Nullable="false" />
  2307. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2308. <Property Name="UnitCost" Type="int" Nullable="false" />
  2309. </EntityType>
  2310. <EntityType Name="FmsMaterialPurchaseRequest">
  2311. <Key>
  2312. <PropertyRef Name="SiteId" />
  2313. <PropertyRef Name="PurchaseRequestId" />
  2314. </Key>
  2315. <Property Name="SiteId" Type="int" Nullable="false" />
  2316. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2317. <Property Name="PurchaseRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2318. <Property Name="PurchaseTypeId" Type="smallint" Nullable="false" />
  2319. <Property Name="RequestDate" Type="datetime" Nullable="false" />
  2320. <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2321. <Property Name="PurchaseHopeDate" Type="datetime" />
  2322. <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
  2323. <Property Name="Reason" Type="nvarchar" MaxLength="2000" Nullable="false" />
  2324. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  2325. <Property Name="ApprovalDate" Type="datetime" />
  2326. <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
  2327. <Property Name="bSameOrder" Type="bit" />
  2328. </EntityType>
  2329. <EntityType Name="FmsMaterialPurchaseRequestMaterial">
  2330. <Key>
  2331. <PropertyRef Name="SiteId" />
  2332. <PropertyRef Name="PurchaseRequestId" />
  2333. <PropertyRef Name="MaterialId" />
  2334. </Key>
  2335. <Property Name="SiteId" Type="int" Nullable="false" />
  2336. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2337. <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
  2338. <Property Name="MaterialId" Type="int" Nullable="false" />
  2339. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2340. </EntityType>
  2341. <EntityType Name="FmsMaterialRelease">
  2342. <Key>
  2343. <PropertyRef Name="SiteId" />
  2344. <PropertyRef Name="MaterialReleaseId" />
  2345. </Key>
  2346. <Property Name="SiteId" Type="int" Nullable="false" />
  2347. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2348. <Property Name="ReleaseDate" Type="datetime" Nullable="false" />
  2349. <Property Name="MaterialReleaseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2350. <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
  2351. <Property Name="WorkRequestId" Type="int" />
  2352. <Property Name="WarehouseId" Type="int" />
  2353. <Property Name="MaterialId" Type="int" />
  2354. <Property Name="MaterialCount" Type="int" />
  2355. <Property Name="StockCountByPoint" Type="int" />
  2356. <Property Name="ReleaseTotalCost" Type="int" />
  2357. <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
  2358. <Property Name="AdjustmentUserId" Type="nvarchar" MaxLength="24" />
  2359. <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
  2360. <Property Name="ConfirmedDate" Type="datetime" />
  2361. <Property Name="IsConfirmed" Type="bit" Nullable="false" />
  2362. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2363. </EntityType>
  2364. <EntityType Name="FmsMaterialStored">
  2365. <Key>
  2366. <PropertyRef Name="SiteId" />
  2367. <PropertyRef Name="MaterialStoredId" />
  2368. </Key>
  2369. <Property Name="SiteId" Type="int" Nullable="false" />
  2370. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2371. <Property Name="StoredDate" Type="datetime" Nullable="false" />
  2372. <Property Name="MaterialStoredId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2373. <Property Name="PurchaseOrderId" Type="int" />
  2374. <Property Name="WarehouseId" Type="int" Nullable="false" />
  2375. <Property Name="MaterialId" Type="int" Nullable="false" />
  2376. <Property Name="StoredCount" Type="int" Nullable="false" />
  2377. <Property Name="RemainStoredCount" Type="int" Nullable="false" />
  2378. <Property Name="UnitCost" Type="int" Nullable="false" />
  2379. <Property Name="StockCount" Type="int" Nullable="false" />
  2380. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  2381. <Property Name="StoredUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2382. <Property Name="ApprovalDate" Type="datetime" />
  2383. <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
  2384. <Property Name="IsApproval" Type="bit" Nullable="false" />
  2385. <Property Name="LocationInWarehouse" Type="nvarchar" MaxLength="100" />
  2386. </EntityType>
  2387. <EntityType Name="FmsMaterialTradeCompany">
  2388. <Key>
  2389. <PropertyRef Name="SiteId" />
  2390. <PropertyRef Name="TradeCompanyId" />
  2391. </Key>
  2392. <Property Name="SiteId" Type="int" Nullable="false" />
  2393. <Property Name="TradeCompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2394. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2395. <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" Nullable="false" />
  2396. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="24" />
  2397. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
  2398. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  2399. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  2400. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  2401. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  2402. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  2403. <Property Name="Address1" Type="nvarchar" MaxLength="100" />
  2404. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  2405. <Property Name="HomepageUri" Type="nvarchar" MaxLength="200" />
  2406. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  2407. <Property Name="IsUse" Type="bit" Nullable="false" />
  2408. </EntityType>
  2409. <EntityType Name="FmsMaterialWarehouse">
  2410. <Key>
  2411. <PropertyRef Name="SiteId" />
  2412. <PropertyRef Name="WarehouseId" />
  2413. </Key>
  2414. <Property Name="SiteId" Type="int" Nullable="false" />
  2415. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2416. <Property Name="WarehouseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2417. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2418. <Property Name="IsUse" Type="bit" Nullable="false" />
  2419. </EntityType>
  2420. <EntityType Name="FmsMonthlyReport">
  2421. <Key>
  2422. <PropertyRef Name="SiteId" />
  2423. <PropertyRef Name="MonthlyReportId" />
  2424. </Key>
  2425. <Property Name="SiteId" Type="int" Nullable="false" />
  2426. <Property Name="MonthlyReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2427. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2428. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  2429. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2430. <Property Name="AddDate" Type="datetime" Nullable="false" />
  2431. </EntityType>
  2432. <EntityType Name="FmsPaymentType">
  2433. <Key>
  2434. <PropertyRef Name="SiteId" />
  2435. <PropertyRef Name="PaymentTypeId" />
  2436. </Key>
  2437. <Property Name="SiteId" Type="int" Nullable="false" />
  2438. <Property Name="PaymentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2439. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2440. <Property Name="IsUse" Type="bit" />
  2441. </EntityType>
  2442. <EntityType Name="FmsReport">
  2443. <Key>
  2444. <PropertyRef Name="SiteId" />
  2445. <PropertyRef Name="RId" />
  2446. </Key>
  2447. <Property Name="SiteId" Type="int" Nullable="false" />
  2448. <Property Name="RId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2449. <Property Name="Title" Type="nvarchar" MaxLength="128" />
  2450. <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
  2451. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" />
  2452. <Property Name="FileId" Type="int" />
  2453. <Property Name="MakeDate" Type="datetime" Nullable="false" />
  2454. <Property Name="ConfirmUserId1" Type="nvarchar" MaxLength="24" />
  2455. <Property Name="ConfirmUserId2" Type="nvarchar" MaxLength="24" />
  2456. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2457. </EntityType>
  2458. <EntityType Name="FmsWorkCodeCauseClass">
  2459. <Key>
  2460. <PropertyRef Name="SiteId" />
  2461. <PropertyRef Name="CauseClassId" />
  2462. </Key>
  2463. <Property Name="SiteId" Type="int" Nullable="false" />
  2464. <Property Name="CauseClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2465. <Property Name="ParentId" Type="int" Nullable="false" />
  2466. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2467. <Property Name="IsUse" Type="bit" />
  2468. </EntityType>
  2469. <EntityType Name="FmsWorkCodeCycleUnit">
  2470. <Key>
  2471. <PropertyRef Name="SiteId" />
  2472. <PropertyRef Name="CycleUnitId" />
  2473. </Key>
  2474. <Property Name="SiteId" Type="int" Nullable="false" />
  2475. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2476. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2477. <Property Name="Description" Type="nvarchar" MaxLength="200" />
  2478. </EntityType>
  2479. <EntityType Name="FmsWorkCodeEmergency">
  2480. <Key>
  2481. <PropertyRef Name="SiteId" />
  2482. <PropertyRef Name="EmergencyId" />
  2483. </Key>
  2484. <Property Name="SiteId" Type="int" Nullable="false" />
  2485. <Property Name="EmergencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2486. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  2487. <Property Name="IsUse" Type="bit" />
  2488. </EntityType>
  2489. <EntityType Name="FmsWorkCodeHolidayWorkType">
  2490. <Key>
  2491. <PropertyRef Name="SiteId" />
  2492. <PropertyRef Name="HolidayWorkTypeId" />
  2493. </Key>
  2494. <Property Name="SiteId" Type="int" Nullable="false" />
  2495. <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
  2496. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  2497. <Property Name="IsUse" Type="bit" />
  2498. </EntityType>
  2499. <EntityType Name="FmsWorkCodeLegalInspectionAgency">
  2500. <Key>
  2501. <PropertyRef Name="SiteId" />
  2502. <PropertyRef Name="InspectionAgencyId" />
  2503. </Key>
  2504. <Property Name="SiteId" Type="int" Nullable="false" />
  2505. <Property Name="InspectionAgencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2506. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2507. <Property Name="IsUse" Type="bit" />
  2508. </EntityType>
  2509. <EntityType Name="FmsWorkCodeProgress">
  2510. <Key>
  2511. <PropertyRef Name="WorkProgressId" />
  2512. </Key>
  2513. <Property Name="WorkProgressId" Type="int" Nullable="false" />
  2514. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2515. <Property Name="Description" Type="nvarchar" MaxLength="512" />
  2516. </EntityType>
  2517. <EntityType Name="FmsWorkCodeType">
  2518. <Key>
  2519. <PropertyRef Name="WorkTypeId" />
  2520. </Key>
  2521. <Property Name="WorkTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2522. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2523. <Property Name="Description" Type="nvarchar" MaxLength="512" />
  2524. </EntityType>
  2525. <EntityType Name="FmsWorkOrder">
  2526. <Key>
  2527. <PropertyRef Name="SiteId" />
  2528. <PropertyRef Name="WorkRequestId" />
  2529. </Key>
  2530. <Property Name="SiteId" Type="int" Nullable="false" />
  2531. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2532. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2533. <Property Name="EmergencyId" Type="int" />
  2534. <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2535. <Property Name="OrderDate" Type="datetime" Nullable="false" />
  2536. <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
  2537. <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
  2538. <Property Name="Content" Type="nvarchar" MaxLength="2000" />
  2539. </EntityType>
  2540. <EntityType Name="FmsWorkOrderToFacility">
  2541. <Key>
  2542. <PropertyRef Name="SiteId" />
  2543. <PropertyRef Name="WorkRequestId" />
  2544. <PropertyRef Name="FacilityCode" />
  2545. </Key>
  2546. <Property Name="SiteId" Type="int" Nullable="false" />
  2547. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2548. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2549. </EntityType>
  2550. <EntityType Name="FmsWorkRequest">
  2551. <Key>
  2552. <PropertyRef Name="SiteId" />
  2553. <PropertyRef Name="WorkRequestId" />
  2554. </Key>
  2555. <Property Name="SiteId" Type="int" Nullable="false" />
  2556. <Property Name="WorkRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2557. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2558. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2559. <Property Name="WorkScheduleId" Type="int" />
  2560. <Property Name="WorkProgressId" Type="int" Nullable="false" />
  2561. <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
  2562. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2563. <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" />
  2564. <Property Name="RequestDate" Type="datetime" Nullable="false" />
  2565. <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
  2566. <Property Name="RejectUserId" Type="nvarchar" MaxLength="24" />
  2567. <Property Name="RejectDate" Type="datetime" />
  2568. <Property Name="RejectReason" Type="nvarchar" MaxLength="512" />
  2569. <Property Name="InspectionAgencyId" Type="int" />
  2570. </EntityType>
  2571. <EntityType Name="FmsWorkRequestToFacility">
  2572. <Key>
  2573. <PropertyRef Name="SiteId" />
  2574. <PropertyRef Name="WorkRequestId" />
  2575. <PropertyRef Name="FacilityCode" />
  2576. </Key>
  2577. <Property Name="SiteId" Type="int" Nullable="false" />
  2578. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2579. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2580. </EntityType>
  2581. <EntityType Name="FmsWorkResult">
  2582. <Key>
  2583. <PropertyRef Name="SiteId" />
  2584. <PropertyRef Name="WorkRequestId" />
  2585. </Key>
  2586. <Property Name="SiteId" Type="int" Nullable="false" />
  2587. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2588. <Property Name="WorkerUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2589. <Property Name="StartDate" Type="datetime" Nullable="false" />
  2590. <Property Name="EndDate" Type="datetime" Nullable="false" />
  2591. <Property Name="CauseClassId" Type="int" />
  2592. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2593. <Property Name="ConfirmedDate" Type="datetime" />
  2594. <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
  2595. <Property Name="IsConfirmed" Type="bit" Nullable="false" />
  2596. <Property Name="ConfirmDesc" Type="nvarchar" MaxLength="1024" />
  2597. </EntityType>
  2598. <EntityType Name="FmsWorkResultCheckItem">
  2599. <Key>
  2600. <PropertyRef Name="CheckItemId" />
  2601. </Key>
  2602. <Property Name="SiteId" Type="int" Nullable="false" />
  2603. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2604. <Property Name="FacilityCode" Type="int" />
  2605. <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2606. <Property Name="BoolResult" Type="bit" />
  2607. <Property Name="TextResult" Type="nvarchar" MaxLength="1024" />
  2608. <Property Name="CheckDate" Type="datetime" Nullable="false" />
  2609. <Property Name="FileId1" Type="int" />
  2610. <Property Name="FileId2" Type="int" />
  2611. </EntityType>
  2612. <EntityType Name="FmsWorkResultCheckItemMaterial">
  2613. <Key>
  2614. <PropertyRef Name="CheckItemMaterialId" />
  2615. </Key>
  2616. <Property Name="SiteId" Type="int" Nullable="false" />
  2617. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2618. <Property Name="CheckItemId" Type="int" Nullable="false" />
  2619. <Property Name="CheckItemMaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2620. <Property Name="MaterialId" Type="int" Nullable="false" />
  2621. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2622. <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" />
  2623. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  2624. </EntityType>
  2625. <EntityType Name="FmsWorkResultFile">
  2626. <Key>
  2627. <PropertyRef Name="SiteId" />
  2628. <PropertyRef Name="WorkRequestId" />
  2629. </Key>
  2630. <Property Name="SiteId" Type="int" Nullable="false" />
  2631. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2632. <Property Name="FileId" Type="int" Nullable="false" />
  2633. </EntityType>
  2634. <EntityType Name="FmsWorkResultLaw">
  2635. <Key>
  2636. <PropertyRef Name="SiteId" />
  2637. <PropertyRef Name="WorkRequestId" />
  2638. </Key>
  2639. <Property Name="SiteId" Type="int" Nullable="false" />
  2640. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2641. <Property Name="CertificationNo" Type="nvarchar" MaxLength="50" />
  2642. <Property Name="CheckCommission" Type="numeric" Precision="10" Scale="0" />
  2643. <Property Name="CheckResult" Type="bit" />
  2644. </EntityType>
  2645. <EntityType Name="FmsWorkResultToFacility">
  2646. <Key>
  2647. <PropertyRef Name="SiteId" />
  2648. <PropertyRef Name="WorkRequestId" />
  2649. <PropertyRef Name="FacilityCode" />
  2650. </Key>
  2651. <Property Name="SiteId" Type="int" Nullable="false" />
  2652. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2653. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2654. </EntityType>
  2655. <EntityType Name="FmsWorkSchedule">
  2656. <Key>
  2657. <PropertyRef Name="SiteId" />
  2658. <PropertyRef Name="WorkScheduleId" />
  2659. </Key>
  2660. <Property Name="SiteId" Type="int" Nullable="false" />
  2661. <Property Name="WorkScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2662. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2663. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2664. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  2665. <Property Name="InspectionAgencyId" Type="int" />
  2666. <Property Name="CycleSize" Type="int" Nullable="false" />
  2667. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2668. <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
  2669. <Property Name="WorkDueDate" Type="datetime" Nullable="false" />
  2670. <Property Name="UpdateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2671. <Property Name="IsUse" Type="bit" Nullable="false" />
  2672. <Property Name="IsAutoOrder" Type="bit" Nullable="false" />
  2673. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2674. </EntityType>
  2675. <EntityType Name="FmsWorkScheduleToFacility">
  2676. <Key>
  2677. <PropertyRef Name="SiteId" />
  2678. <PropertyRef Name="WorkScheduleId" />
  2679. <PropertyRef Name="FacilityCode" />
  2680. </Key>
  2681. <Property Name="SiteId" Type="int" Nullable="false" />
  2682. <Property Name="WorkScheduleId" Type="int" Nullable="false" />
  2683. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2684. </EntityType>
  2685. <EntityType Name="sysdiagrams">
  2686. <Key>
  2687. <PropertyRef Name="diagram_id" />
  2688. </Key>
  2689. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2690. <Property Name="principal_id" Type="int" Nullable="false" />
  2691. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2692. <Property Name="version" Type="int" />
  2693. <Property Name="definition" Type="varbinary(max)" />
  2694. </EntityType>
  2695. <EntityType Name="WeatherDongNaeForecast">
  2696. <Key>
  2697. <PropertyRef Name="BaseTime" />
  2698. <PropertyRef Name="ForecastTime" />
  2699. </Key>
  2700. <Property Name="BaseTime" Type="datetime" Nullable="false" />
  2701. <Property Name="nx" Type="int" />
  2702. <Property Name="ny" Type="int" />
  2703. <Property Name="ForecastTime" Type="datetime" Nullable="false" />
  2704. <Property Name="POP" Type="float" />
  2705. <Property Name="PTY" Type="float" />
  2706. <Property Name="R06" Type="float" />
  2707. <Property Name="REH" Type="float" />
  2708. <Property Name="S06" Type="float" />
  2709. <Property Name="SKY" Type="float" />
  2710. <Property Name="T3H" Type="float" />
  2711. <Property Name="TMN" Type="float" />
  2712. <Property Name="TMX" Type="float" />
  2713. <Property Name="UUU" Type="float" />
  2714. <Property Name="VVV" Type="float" />
  2715. <Property Name="VEC" Type="float" />
  2716. <Property Name="WSD" Type="float" />
  2717. <Property Name="Type" Type="int" />
  2718. <Property Name="DBTime" Type="datetime" />
  2719. <Property Name="Version" Type="int" />
  2720. </EntityType>
  2721. <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
  2722. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  2723. <End Role="BemsEnergyConfigPercentMonth" Type="Self.BemsEnergyConfigPercentMonth" Multiplicity="*" />
  2724. <ReferentialConstraint>
  2725. <Principal Role="CmSite">
  2726. <PropertyRef Name="SiteId" />
  2727. </Principal>
  2728. <Dependent Role="BemsEnergyConfigPercentMonth">
  2729. <PropertyRef Name="SiteId" />
  2730. </Dependent>
  2731. </ReferentialConstraint>
  2732. </Association>
  2733. <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
  2734. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  2735. <End Role="BemsEnergyConfigPercentWeek" Type="Self.BemsEnergyConfigPercentWeek" Multiplicity="*" />
  2736. <ReferentialConstraint>
  2737. <Principal Role="CmSite">
  2738. <PropertyRef Name="SiteId" />
  2739. </Principal>
  2740. <Dependent Role="BemsEnergyConfigPercentWeek">
  2741. <PropertyRef Name="SiteId" />
  2742. </Dependent>
  2743. </ReferentialConstraint>
  2744. </Association>
  2745. <Association Name="FK__BemsEnergyDaily__BemsFuelType">
  2746. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2747. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2748. <ReferentialConstraint>
  2749. <Principal Role="BemsFuelType">
  2750. <PropertyRef Name="FuelTypeId" />
  2751. </Principal>
  2752. <Dependent Role="BemsEnergyDaily">
  2753. <PropertyRef Name="FuelTypeId" />
  2754. </Dependent>
  2755. </ReferentialConstraint>
  2756. </Association>
  2757. <Association Name="FK__BemsEnergyDaily__BemsServiceType">
  2758. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="1" />
  2759. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2760. <ReferentialConstraint>
  2761. <Principal Role="BemsServiceType">
  2762. <PropertyRef Name="ServiceTypeId" />
  2763. </Principal>
  2764. <Dependent Role="BemsEnergyDaily">
  2765. <PropertyRef Name="ServiceTypeId" />
  2766. </Dependent>
  2767. </ReferentialConstraint>
  2768. </Association>
  2769. <Association Name="FK__BemsEnergyDaily__CmBuilding">
  2770. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  2771. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2772. <ReferentialConstraint>
  2773. <Principal Role="CmBuilding">
  2774. <PropertyRef Name="SiteId" />
  2775. <PropertyRef Name="BuildingId" />
  2776. </Principal>
  2777. <Dependent Role="BemsEnergyDaily">
  2778. <PropertyRef Name="SiteId" />
  2779. <PropertyRef Name="BuildingId" />
  2780. </Dependent>
  2781. </ReferentialConstraint>
  2782. </Association>
  2783. <Association Name="FK__BemsFactorCo2__BemsFuelType">
  2784. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2785. <End Role="BemsFactorCo2" Type="Self.BemsFactorCo2" Multiplicity="0..1" />
  2786. <ReferentialConstraint>
  2787. <Principal Role="BemsFuelType">
  2788. <PropertyRef Name="FuelTypeId" />
  2789. </Principal>
  2790. <Dependent Role="BemsFactorCo2">
  2791. <PropertyRef Name="FuelTypeId" />
  2792. </Dependent>
  2793. </ReferentialConstraint>
  2794. </Association>
  2795. <Association Name="FK__BemsFactorToe__BemsFuelType">
  2796. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2797. <End Role="BemsFactorToe" Type="Self.BemsFactorToe" Multiplicity="0..1" />
  2798. <ReferentialConstraint>
  2799. <Principal Role="BemsFuelType">
  2800. <PropertyRef Name="FuelTypeId" />
  2801. </Principal>
  2802. <Dependent Role="BemsFactorToe">
  2803. <PropertyRef Name="FuelTypeId" />
  2804. </Dependent>
  2805. </ReferentialConstraint>
  2806. </Association>
  2807. <Association Name="FK__BemsFormula__BemsFormulaBase">
  2808. <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
  2809. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
  2810. <ReferentialConstraint>
  2811. <Principal Role="BemsFormulaBase">
  2812. <PropertyRef Name="FacilityTypeId" />
  2813. <PropertyRef Name="FormulaId" />
  2814. </Principal>
  2815. <Dependent Role="BemsFormula">
  2816. <PropertyRef Name="FacilityTypeId" />
  2817. <PropertyRef Name="FormulaId" />
  2818. </Dependent>
  2819. </ReferentialConstraint>
  2820. </Association>
  2821. <Association Name="FK__BemsFormulaParameter__BemsFormula">
  2822. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  2823. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  2824. <ReferentialConstraint>
  2825. <Principal Role="BemsFormula">
  2826. <PropertyRef Name="SiteId" />
  2827. <PropertyRef Name="FacilityTypeId" />
  2828. <PropertyRef Name="FacilityCode" />
  2829. <PropertyRef Name="FormulaId" />
  2830. </Principal>
  2831. <Dependent Role="BemsFormulaParameter">
  2832. <PropertyRef Name="SiteId" />
  2833. <PropertyRef Name="FacilityTypeId" />
  2834. <PropertyRef Name="FacilityCode" />
  2835. <PropertyRef Name="FormulaId" />
  2836. </Dependent>
  2837. </ReferentialConstraint>
  2838. </Association>
  2839. <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
  2840. <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
  2841. <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
  2842. <ReferentialConstraint>
  2843. <Principal Role="BemsFormulaTable">
  2844. <PropertyRef Name="TableId" />
  2845. </Principal>
  2846. <Dependent Role="BemsFormulaTableValue">
  2847. <PropertyRef Name="TableId" />
  2848. </Dependent>
  2849. </ReferentialConstraint>
  2850. </Association>
  2851. <Association Name="FK__BemsMonitoringPo__1372D2FE">
  2852. <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
  2853. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  2854. <ReferentialConstraint>
  2855. <Principal Role="BemsAnalysisType">
  2856. <PropertyRef Name="SiteId" />
  2857. <PropertyRef Name="AnalysisType" />
  2858. </Principal>
  2859. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  2860. <PropertyRef Name="SiteId" />
  2861. <PropertyRef Name="AnalysisType" />
  2862. </Dependent>
  2863. </ReferentialConstraint>
  2864. </Association>
  2865. <Association Name="FK__BemsMonitoringPo__155B1B70">
  2866. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  2867. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  2868. <ReferentialConstraint>
  2869. <Principal Role="BemsMonitoringPoint">
  2870. <PropertyRef Name="SiteId" />
  2871. <PropertyRef Name="FacilityCode" />
  2872. <PropertyRef Name="PropertyId" />
  2873. </Principal>
  2874. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  2875. <PropertyRef Name="SiteId" />
  2876. <PropertyRef Name="FacilityCode" />
  2877. <PropertyRef Name="PropertyId" />
  2878. </Dependent>
  2879. </ReferentialConstraint>
  2880. </Association>
  2881. <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
  2882. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
  2883. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2884. <ReferentialConstraint>
  2885. <Principal Role="BemsFuelType">
  2886. <PropertyRef Name="FuelTypeId" />
  2887. </Principal>
  2888. <Dependent Role="BemsMonitoringPoint">
  2889. <PropertyRef Name="FuelTypeId" />
  2890. </Dependent>
  2891. </ReferentialConstraint>
  2892. </Association>
  2893. <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
  2894. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  2895. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2896. <ReferentialConstraint>
  2897. <Principal Role="BemsServiceType">
  2898. <PropertyRef Name="ServiceTypeId" />
  2899. </Principal>
  2900. <Dependent Role="BemsMonitoringPoint">
  2901. <PropertyRef Name="ServiceTypeId" />
  2902. </Dependent>
  2903. </ReferentialConstraint>
  2904. </Association>
  2905. <Association Name="FK__BemsMonitoringPoint__CmBuilding">
  2906. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
  2907. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2908. <ReferentialConstraint>
  2909. <Principal Role="CmBuilding">
  2910. <PropertyRef Name="SiteId" />
  2911. <PropertyRef Name="BuildingId" />
  2912. </Principal>
  2913. <Dependent Role="BemsMonitoringPoint">
  2914. <PropertyRef Name="SiteId" />
  2915. <PropertyRef Name="BuildingId" />
  2916. </Dependent>
  2917. </ReferentialConstraint>
  2918. </Association>
  2919. <Association Name="FK__BemsMonitoringPoint__CmFloor">
  2920. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
  2921. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2922. <ReferentialConstraint>
  2923. <Principal Role="CmFloor">
  2924. <PropertyRef Name="SiteId" />
  2925. <PropertyRef Name="BuildingId" />
  2926. <PropertyRef Name="FloorId" />
  2927. </Principal>
  2928. <Dependent Role="BemsMonitoringPoint">
  2929. <PropertyRef Name="SiteId" />
  2930. <PropertyRef Name="BuildingId" />
  2931. <PropertyRef Name="FloorId" />
  2932. </Dependent>
  2933. </ReferentialConstraint>
  2934. </Association>
  2935. <Association Name="FK__BemsMonitoringPoint__CmZone">
  2936. <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
  2937. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2938. <ReferentialConstraint>
  2939. <Principal Role="CmZone">
  2940. <PropertyRef Name="SiteId" />
  2941. <PropertyRef Name="BuildingId" />
  2942. <PropertyRef Name="FloorId" />
  2943. <PropertyRef Name="ZoneId" />
  2944. </Principal>
  2945. <Dependent Role="BemsMonitoringPoint">
  2946. <PropertyRef Name="SiteId" />
  2947. <PropertyRef Name="BuildingId" />
  2948. <PropertyRef Name="FloorId" />
  2949. <PropertyRef Name="ZoneId" />
  2950. </Dependent>
  2951. </ReferentialConstraint>
  2952. </Association>
  2953. <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
  2954. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  2955. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  2956. <ReferentialConstraint>
  2957. <Principal Role="BemsFacilityType">
  2958. <PropertyRef Name="FacilityTypeId" />
  2959. </Principal>
  2960. <Dependent Role="BemsMonitoringPointBaseData">
  2961. <PropertyRef Name="FacilityTypeId" />
  2962. </Dependent>
  2963. </ReferentialConstraint>
  2964. </Association>
  2965. <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
  2966. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
  2967. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  2968. <ReferentialConstraint>
  2969. <Principal Role="BemsFuelType">
  2970. <PropertyRef Name="FuelTypeId" />
  2971. </Principal>
  2972. <Dependent Role="BemsMonitoringPointBaseData">
  2973. <PropertyRef Name="FuelTypeId" />
  2974. </Dependent>
  2975. </ReferentialConstraint>
  2976. </Association>
  2977. <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
  2978. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  2979. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  2980. <ReferentialConstraint>
  2981. <Principal Role="BemsServiceType">
  2982. <PropertyRef Name="ServiceTypeId" />
  2983. </Principal>
  2984. <Dependent Role="BemsMonitoringPointBaseData">
  2985. <PropertyRef Name="ServiceTypeId" />
  2986. </Dependent>
  2987. </ReferentialConstraint>
  2988. </Association>
  2989. <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  2990. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  2991. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  2992. <ReferentialConstraint>
  2993. <Principal Role="BemsFacilityType">
  2994. <PropertyRef Name="FacilityTypeId" />
  2995. </Principal>
  2996. <Dependent Role="BemsMonitoringPointHistory15min">
  2997. <PropertyRef Name="FacilityTypeId" />
  2998. </Dependent>
  2999. </ReferentialConstraint>
  3000. </Association>
  3001. <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  3002. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3003. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  3004. <ReferentialConstraint>
  3005. <Principal Role="BemsMonitoringPoint">
  3006. <PropertyRef Name="SiteId" />
  3007. <PropertyRef Name="FacilityCode" />
  3008. <PropertyRef Name="PropertyId" />
  3009. </Principal>
  3010. <Dependent Role="BemsMonitoringPointHistory15min">
  3011. <PropertyRef Name="SiteId" />
  3012. <PropertyRef Name="FacilityCode" />
  3013. <PropertyRef Name="PropertyId" />
  3014. </Dependent>
  3015. </ReferentialConstraint>
  3016. </Association>
  3017. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  3018. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3019. <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  3020. <ReferentialConstraint>
  3021. <Principal Role="BemsFacilityType">
  3022. <PropertyRef Name="FacilityTypeId" />
  3023. </Principal>
  3024. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  3025. <PropertyRef Name="FacilityTypeId" />
  3026. </Dependent>
  3027. </ReferentialConstraint>
  3028. </Association>
  3029. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  3030. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3031. <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  3032. <ReferentialConstraint>
  3033. <Principal Role="BemsMonitoringPoint">
  3034. <PropertyRef Name="SiteId" />
  3035. <PropertyRef Name="FacilityCode" />
  3036. <PropertyRef Name="PropertyId" />
  3037. </Principal>
  3038. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  3039. <PropertyRef Name="SiteId" />
  3040. <PropertyRef Name="FacilityCode" />
  3041. <PropertyRef Name="PropertyId" />
  3042. </Dependent>
  3043. </ReferentialConstraint>
  3044. </Association>
  3045. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  3046. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3047. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  3048. <ReferentialConstraint>
  3049. <Principal Role="BemsFacilityType">
  3050. <PropertyRef Name="FacilityTypeId" />
  3051. </Principal>
  3052. <Dependent Role="BemsMonitoringPointHistoryDaily">
  3053. <PropertyRef Name="FacilityTypeId" />
  3054. </Dependent>
  3055. </ReferentialConstraint>
  3056. </Association>
  3057. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  3058. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3059. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  3060. <ReferentialConstraint>
  3061. <Principal Role="BemsMonitoringPoint">
  3062. <PropertyRef Name="SiteId" />
  3063. <PropertyRef Name="FacilityCode" />
  3064. <PropertyRef Name="PropertyId" />
  3065. </Principal>
  3066. <Dependent Role="BemsMonitoringPointHistoryDaily">
  3067. <PropertyRef Name="SiteId" />
  3068. <PropertyRef Name="FacilityCode" />
  3069. <PropertyRef Name="PropertyId" />
  3070. </Dependent>
  3071. </ReferentialConstraint>
  3072. </Association>
  3073. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  3074. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3075. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  3076. <ReferentialConstraint>
  3077. <Principal Role="BemsFacilityType">
  3078. <PropertyRef Name="FacilityTypeId" />
  3079. </Principal>
  3080. <Dependent Role="BemsMonitoringPointHistoryHourly">
  3081. <PropertyRef Name="FacilityTypeId" />
  3082. </Dependent>
  3083. </ReferentialConstraint>
  3084. </Association>
  3085. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  3086. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3087. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  3088. <ReferentialConstraint>
  3089. <Principal Role="BemsMonitoringPoint">
  3090. <PropertyRef Name="SiteId" />
  3091. <PropertyRef Name="FacilityCode" />
  3092. <PropertyRef Name="PropertyId" />
  3093. </Principal>
  3094. <Dependent Role="BemsMonitoringPointHistoryHourly">
  3095. <PropertyRef Name="SiteId" />
  3096. <PropertyRef Name="FacilityCode" />
  3097. <PropertyRef Name="PropertyId" />
  3098. </Dependent>
  3099. </ReferentialConstraint>
  3100. </Association>
  3101. <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  3102. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3103. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  3104. <ReferentialConstraint>
  3105. <Principal Role="BemsFacilityType">
  3106. <PropertyRef Name="FacilityTypeId" />
  3107. </Principal>
  3108. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  3109. <PropertyRef Name="FacilityTypeId" />
  3110. </Dependent>
  3111. </ReferentialConstraint>
  3112. </Association>
  3113. <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  3114. <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="1" />
  3115. <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="*" />
  3116. <ReferentialConstraint>
  3117. <Principal Role="BemsNoticePriceContractType">
  3118. <PropertyRef Name="FuelTypeId" />
  3119. <PropertyRef Name="ContractType" />
  3120. </Principal>
  3121. <Dependent Role="BemsNoticePriceBase">
  3122. <PropertyRef Name="FuelTypeId" />
  3123. <PropertyRef Name="ContractType" />
  3124. </Dependent>
  3125. </ReferentialConstraint>
  3126. </Association>
  3127. <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
  3128. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  3129. <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="*" />
  3130. <ReferentialConstraint>
  3131. <Principal Role="BemsFuelType">
  3132. <PropertyRef Name="FuelTypeId" />
  3133. </Principal>
  3134. <Dependent Role="BemsNoticePriceContractType">
  3135. <PropertyRef Name="FuelTypeId" />
  3136. </Dependent>
  3137. </ReferentialConstraint>
  3138. </Association>
  3139. <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  3140. <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="1" />
  3141. <End Role="BemsNoticePriceDetail" Type="Self.BemsNoticePriceDetail" Multiplicity="*" />
  3142. <ReferentialConstraint>
  3143. <Principal Role="BemsNoticePriceBase">
  3144. <PropertyRef Name="SiteId" />
  3145. <PropertyRef Name="FuelTypeId" />
  3146. <PropertyRef Name="ApplyDate" />
  3147. <PropertyRef Name="ContractType" />
  3148. </Principal>
  3149. <Dependent Role="BemsNoticePriceDetail">
  3150. <PropertyRef Name="SiteId" />
  3151. <PropertyRef Name="FuelTypeId" />
  3152. <PropertyRef Name="ApplyDate" />
  3153. <PropertyRef Name="ContractType" />
  3154. </Dependent>
  3155. </ReferentialConstraint>
  3156. </Association>
  3157. <Association Name="FK__CmCompany__345EC57D">
  3158. <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
  3159. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  3160. <ReferentialConstraint>
  3161. <Principal Role="CmCompanyType">
  3162. <PropertyRef Name="SiteId" />
  3163. <PropertyRef Name="CompanyTypeId" />
  3164. </Principal>
  3165. <Dependent Role="CmCompany">
  3166. <PropertyRef Name="SiteId" />
  3167. <PropertyRef Name="CompanyTypeId" />
  3168. </Dependent>
  3169. </ReferentialConstraint>
  3170. </Association>
  3171. <Association Name="FK__CmCompany__SiteI__336AA144">
  3172. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3173. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  3174. <ReferentialConstraint>
  3175. <Principal Role="CmSite">
  3176. <PropertyRef Name="SiteId" />
  3177. </Principal>
  3178. <Dependent Role="CmCompany">
  3179. <PropertyRef Name="SiteId" />
  3180. </Dependent>
  3181. </ReferentialConstraint>
  3182. </Association>
  3183. <Association Name="FK__CmDepartment__3552E9B6">
  3184. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
  3185. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
  3186. <ReferentialConstraint>
  3187. <Principal Role="CmCompany">
  3188. <PropertyRef Name="SiteId" />
  3189. <PropertyRef Name="CompanyId" />
  3190. </Principal>
  3191. <Dependent Role="CmDepartment">
  3192. <PropertyRef Name="SiteId" />
  3193. <PropertyRef Name="CompanyId" />
  3194. </Dependent>
  3195. </ReferentialConstraint>
  3196. </Association>
  3197. <Association Name="FK__CmFacility__CmFacility">
  3198. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
  3199. <End Role="CmFacility1" Type="Self.CmFacility" Multiplicity="*" />
  3200. <ReferentialConstraint>
  3201. <Principal Role="CmFacility">
  3202. <PropertyRef Name="SiteId" />
  3203. <PropertyRef Name="FacilityCode" />
  3204. </Principal>
  3205. <Dependent Role="CmFacility1">
  3206. <PropertyRef Name="SiteId" />
  3207. <PropertyRef Name="ParentFacilityCode" />
  3208. </Dependent>
  3209. </ReferentialConstraint>
  3210. </Association>
  3211. <Association Name="FK__CmFacilityFile__7720AD13">
  3212. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3213. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="*" />
  3214. <ReferentialConstraint>
  3215. <Principal Role="CmFacility">
  3216. <PropertyRef Name="SiteId" />
  3217. <PropertyRef Name="FacilityCode" />
  3218. </Principal>
  3219. <Dependent Role="CmFacilityFile">
  3220. <PropertyRef Name="SiteId" />
  3221. <PropertyRef Name="FacilityCode" />
  3222. </Dependent>
  3223. </ReferentialConstraint>
  3224. </Association>
  3225. <Association Name="FK__CmFacilityFile__CmFile">
  3226. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  3227. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
  3228. <ReferentialConstraint>
  3229. <Principal Role="CmFile">
  3230. <PropertyRef Name="SiteId" />
  3231. <PropertyRef Name="FileId" />
  3232. </Principal>
  3233. <Dependent Role="CmFacilityFile">
  3234. <PropertyRef Name="SiteId" />
  3235. <PropertyRef Name="FileId" />
  3236. </Dependent>
  3237. </ReferentialConstraint>
  3238. </Association>
  3239. <Association Name="FK__CmFacilityManual__79FD19BE">
  3240. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3241. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  3242. <ReferentialConstraint>
  3243. <Principal Role="CmFacility">
  3244. <PropertyRef Name="SiteId" />
  3245. <PropertyRef Name="FacilityCode" />
  3246. </Principal>
  3247. <Dependent Role="FmsFacilityManual">
  3248. <PropertyRef Name="SiteId" />
  3249. <PropertyRef Name="FacilityCode" />
  3250. </Dependent>
  3251. </ReferentialConstraint>
  3252. </Association>
  3253. <Association Name="FK__CmFacilityManual__7BE56230">
  3254. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3255. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  3256. <ReferentialConstraint>
  3257. <Principal Role="CmBusinessField">
  3258. <PropertyRef Name="SiteId" />
  3259. <PropertyRef Name="BusinessFieldId" />
  3260. </Principal>
  3261. <Dependent Role="FmsFacilityManual">
  3262. <PropertyRef Name="SiteId" />
  3263. <PropertyRef Name="BusinessFieldId" />
  3264. </Dependent>
  3265. </ReferentialConstraint>
  3266. </Association>
  3267. <Association Name="FK__CmFile__CmFileCategory">
  3268. <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
  3269. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  3270. <ReferentialConstraint>
  3271. <Principal Role="CmFileCategory">
  3272. <PropertyRef Name="FileCategoryId" />
  3273. </Principal>
  3274. <Dependent Role="CmFile">
  3275. <PropertyRef Name="FileCategoryId" />
  3276. </Dependent>
  3277. </ReferentialConstraint>
  3278. </Association>
  3279. <Association Name="FK__CmFile__SiteId__2759D01A">
  3280. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3281. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  3282. <ReferentialConstraint>
  3283. <Principal Role="CmSite">
  3284. <PropertyRef Name="SiteId" />
  3285. </Principal>
  3286. <Dependent Role="CmFile">
  3287. <PropertyRef Name="SiteId" />
  3288. </Dependent>
  3289. </ReferentialConstraint>
  3290. </Association>
  3291. <Association Name="FK__CmFloor__3CF40B7E">
  3292. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  3293. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
  3294. <ReferentialConstraint>
  3295. <Principal Role="CmBuilding">
  3296. <PropertyRef Name="SiteId" />
  3297. <PropertyRef Name="BuildingId" />
  3298. </Principal>
  3299. <Dependent Role="CmFloor">
  3300. <PropertyRef Name="SiteId" />
  3301. <PropertyRef Name="BuildingId" />
  3302. </Dependent>
  3303. </ReferentialConstraint>
  3304. </Association>
  3305. <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
  3306. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3307. <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
  3308. <ReferentialConstraint>
  3309. <Principal Role="CmSite">
  3310. <PropertyRef Name="SiteId" />
  3311. </Principal>
  3312. <Dependent Role="CmHoliday">
  3313. <PropertyRef Name="SiteId" />
  3314. </Dependent>
  3315. </ReferentialConstraint>
  3316. </Association>
  3317. <Association Name="FK__CmHoliday__SiteI__0D99FE17">
  3318. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3319. <End Role="CmHolidayWeekend" Type="Self.CmHolidayWeekend" Multiplicity="0..1" />
  3320. <ReferentialConstraint>
  3321. <Principal Role="CmSite">
  3322. <PropertyRef Name="SiteId" />
  3323. </Principal>
  3324. <Dependent Role="CmHolidayWeekend">
  3325. <PropertyRef Name="SiteId" />
  3326. </Dependent>
  3327. </ReferentialConstraint>
  3328. </Association>
  3329. <Association Name="FK__CmHoliday__SiteI__10766AC2">
  3330. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3331. <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
  3332. <ReferentialConstraint>
  3333. <Principal Role="CmSite">
  3334. <PropertyRef Name="SiteId" />
  3335. </Principal>
  3336. <Dependent Role="CmHolidayCustom">
  3337. <PropertyRef Name="SiteId" />
  3338. </Dependent>
  3339. </ReferentialConstraint>
  3340. </Association>
  3341. <Association Name="FK__CmHoliday__SiteI__65AC084E">
  3342. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3343. <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
  3344. <ReferentialConstraint>
  3345. <Principal Role="CmSite">
  3346. <PropertyRef Name="SiteId" />
  3347. </Principal>
  3348. <Dependent Role="CmHoliday">
  3349. <PropertyRef Name="SiteId" />
  3350. </Dependent>
  3351. </ReferentialConstraint>
  3352. </Association>
  3353. <Association Name="FK__CmHoliday__SiteI__66A02C87">
  3354. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3355. <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
  3356. <ReferentialConstraint>
  3357. <Principal Role="CmSite">
  3358. <PropertyRef Name="SiteId" />
  3359. </Principal>
  3360. <Dependent Role="CmHolidayCustom">
  3361. <PropertyRef Name="SiteId" />
  3362. </Dependent>
  3363. </ReferentialConstraint>
  3364. </Association>
  3365. <Association Name="FK__CmLocation__3DE82FB7">
  3366. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  3367. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  3368. <ReferentialConstraint>
  3369. <Principal Role="CmFloor">
  3370. <PropertyRef Name="SiteId" />
  3371. <PropertyRef Name="BuildingId" />
  3372. <PropertyRef Name="FloorId" />
  3373. </Principal>
  3374. <Dependent Role="CmZone">
  3375. <PropertyRef Name="SiteId" />
  3376. <PropertyRef Name="BuildingId" />
  3377. <PropertyRef Name="FloorId" />
  3378. </Dependent>
  3379. </ReferentialConstraint>
  3380. </Association>
  3381. <Association Name="FK__CmPositio__SiteI__6A70BD6B">
  3382. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3383. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
  3384. <ReferentialConstraint>
  3385. <Principal Role="CmSite">
  3386. <PropertyRef Name="SiteId" />
  3387. </Principal>
  3388. <Dependent Role="CmPosition">
  3389. <PropertyRef Name="SiteId" />
  3390. </Dependent>
  3391. </ReferentialConstraint>
  3392. </Association>
  3393. <Association Name="FK__CmUserGro__SiteI__53D770D6">
  3394. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3395. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="*" />
  3396. <ReferentialConstraint>
  3397. <Principal Role="CmSite">
  3398. <PropertyRef Name="SiteId" />
  3399. </Principal>
  3400. <Dependent Role="CmUserGroup">
  3401. <PropertyRef Name="SiteId" />
  3402. </Dependent>
  3403. </ReferentialConstraint>
  3404. </Association>
  3405. <Association Name="FK__CmUserGroupPermission__CmUserGroup">
  3406. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
  3407. <OnDelete Action="Cascade" />
  3408. </End>
  3409. <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
  3410. <ReferentialConstraint>
  3411. <Principal Role="CmUserGroup">
  3412. <PropertyRef Name="SiteId" />
  3413. <PropertyRef Name="UserGroupId" />
  3414. </Principal>
  3415. <Dependent Role="CmUserGroupPermission">
  3416. <PropertyRef Name="SiteId" />
  3417. <PropertyRef Name="UserGroupId" />
  3418. </Dependent>
  3419. </ReferentialConstraint>
  3420. </Association>
  3421. <Association Name="FK__CmUserPos__SiteI__44952D46">
  3422. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3423. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
  3424. <ReferentialConstraint>
  3425. <Principal Role="CmSite">
  3426. <PropertyRef Name="SiteId" />
  3427. </Principal>
  3428. <Dependent Role="CmPosition">
  3429. <PropertyRef Name="SiteId" />
  3430. </Dependent>
  3431. </ReferentialConstraint>
  3432. </Association>
  3433. <Association Name="FK__CmUserToLicense__CmUser">
  3434. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3435. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  3436. <ReferentialConstraint>
  3437. <Principal Role="CmUser">
  3438. <PropertyRef Name="SiteId" />
  3439. <PropertyRef Name="UserId" />
  3440. </Principal>
  3441. <Dependent Role="CmUserToLicense">
  3442. <PropertyRef Name="SiteId" />
  3443. <PropertyRef Name="UserId" />
  3444. </Dependent>
  3445. </ReferentialConstraint>
  3446. </Association>
  3447. <Association Name="FK__CmUserToLicense__FmsLicense">
  3448. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
  3449. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  3450. <ReferentialConstraint>
  3451. <Principal Role="FmsLicense">
  3452. <PropertyRef Name="SiteId" />
  3453. <PropertyRef Name="LicenseId" />
  3454. </Principal>
  3455. <Dependent Role="CmUserToLicense">
  3456. <PropertyRef Name="SiteId" />
  3457. <PropertyRef Name="LicenseId" />
  3458. </Dependent>
  3459. </ReferentialConstraint>
  3460. </Association>
  3461. <Association Name="FK__CmZone__CmBuilding">
  3462. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  3463. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  3464. <ReferentialConstraint>
  3465. <Principal Role="CmBuilding">
  3466. <PropertyRef Name="SiteId" />
  3467. <PropertyRef Name="BuildingId" />
  3468. </Principal>
  3469. <Dependent Role="CmZone">
  3470. <PropertyRef Name="SiteId" />
  3471. <PropertyRef Name="BuildingId" />
  3472. </Dependent>
  3473. </ReferentialConstraint>
  3474. </Association>
  3475. <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
  3476. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3477. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
  3478. <ReferentialConstraint>
  3479. <Principal Role="CmSite">
  3480. <PropertyRef Name="SiteId" />
  3481. </Principal>
  3482. <Dependent Role="FmsDrawingCodeGroup">
  3483. <PropertyRef Name="SiteId" />
  3484. </Dependent>
  3485. </ReferentialConstraint>
  3486. </Association>
  3487. <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
  3488. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3489. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
  3490. <ReferentialConstraint>
  3491. <Principal Role="CmSite">
  3492. <PropertyRef Name="SiteId" />
  3493. </Principal>
  3494. <Dependent Role="FmsDrawingCodeType">
  3495. <PropertyRef Name="SiteId" />
  3496. </Dependent>
  3497. </ReferentialConstraint>
  3498. </Association>
  3499. <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
  3500. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3501. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3502. <ReferentialConstraint>
  3503. <Principal Role="CmSite">
  3504. <PropertyRef Name="SiteId" />
  3505. </Principal>
  3506. <Dependent Role="FmsDrawing">
  3507. <PropertyRef Name="SiteId" />
  3508. </Dependent>
  3509. </ReferentialConstraint>
  3510. </Association>
  3511. <Association Name="FK__FmsDrawin__SiteI__6F357288">
  3512. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3513. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
  3514. <ReferentialConstraint>
  3515. <Principal Role="CmSite">
  3516. <PropertyRef Name="SiteId" />
  3517. </Principal>
  3518. <Dependent Role="FmsDrawingCodeGroup">
  3519. <PropertyRef Name="SiteId" />
  3520. </Dependent>
  3521. </ReferentialConstraint>
  3522. </Association>
  3523. <Association Name="FK__FmsDrawin__SiteI__702996C1">
  3524. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3525. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
  3526. <ReferentialConstraint>
  3527. <Principal Role="CmSite">
  3528. <PropertyRef Name="SiteId" />
  3529. </Principal>
  3530. <Dependent Role="FmsDrawingCodeType">
  3531. <PropertyRef Name="SiteId" />
  3532. </Dependent>
  3533. </ReferentialConstraint>
  3534. </Association>
  3535. <Association Name="FK__FmsDrawing__6E565CE8">
  3536. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
  3537. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3538. <ReferentialConstraint>
  3539. <Principal Role="FmsDrawingCodeGroup">
  3540. <PropertyRef Name="SiteId" />
  3541. <PropertyRef Name="DrawingGroupId" />
  3542. </Principal>
  3543. <Dependent Role="FmsDrawing">
  3544. <PropertyRef Name="SiteId" />
  3545. <PropertyRef Name="DrawingGroupId" />
  3546. </Dependent>
  3547. </ReferentialConstraint>
  3548. </Association>
  3549. <Association Name="FK__FmsDrawing__6F4A8121">
  3550. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
  3551. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3552. <ReferentialConstraint>
  3553. <Principal Role="FmsDrawingCodeType">
  3554. <PropertyRef Name="SiteId" />
  3555. <PropertyRef Name="DrawingTypeId" />
  3556. </Principal>
  3557. <Dependent Role="FmsDrawing">
  3558. <PropertyRef Name="SiteId" />
  3559. <PropertyRef Name="DrawingTypeId" />
  3560. </Dependent>
  3561. </ReferentialConstraint>
  3562. </Association>
  3563. <Association Name="FK__FmsDrawingHistor__04DA9AE4">
  3564. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  3565. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3566. <ReferentialConstraint>
  3567. <Principal Role="CmFile">
  3568. <PropertyRef Name="SiteId" />
  3569. <PropertyRef Name="FileId" />
  3570. </Principal>
  3571. <Dependent Role="FmsDrawingHistory">
  3572. <PropertyRef Name="SiteId" />
  3573. <PropertyRef Name="FileId" />
  3574. </Dependent>
  3575. </ReferentialConstraint>
  3576. </Association>
  3577. <Association Name="FK__FmsDrawingHistor__7132C993">
  3578. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1">
  3579. <OnDelete Action="Cascade" />
  3580. </End>
  3581. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3582. <ReferentialConstraint>
  3583. <Principal Role="FmsDrawing">
  3584. <PropertyRef Name="SiteId" />
  3585. <PropertyRef Name="DrawingId" />
  3586. </Principal>
  3587. <Dependent Role="FmsDrawingHistory">
  3588. <PropertyRef Name="SiteId" />
  3589. <PropertyRef Name="DrawingId" />
  3590. </Dependent>
  3591. </ReferentialConstraint>
  3592. </Association>
  3593. <Association Name="FK__FmsDrawingHistory__CmUser">
  3594. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  3595. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3596. <ReferentialConstraint>
  3597. <Principal Role="CmUser">
  3598. <PropertyRef Name="SiteId" />
  3599. <PropertyRef Name="UserId" />
  3600. </Principal>
  3601. <Dependent Role="FmsDrawingHistory">
  3602. <PropertyRef Name="SiteId" />
  3603. <PropertyRef Name="UpdatedUserId" />
  3604. </Dependent>
  3605. </ReferentialConstraint>
  3606. </Association>
  3607. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  3608. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  3609. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  3610. <ReferentialConstraint>
  3611. <Principal Role="FmsWorkCodeCycleUnit">
  3612. <PropertyRef Name="SiteId" />
  3613. <PropertyRef Name="CycleUnitId" />
  3614. </Principal>
  3615. <Dependent Role="FmsFacilityCheckItem">
  3616. <PropertyRef Name="SiteId" />
  3617. <PropertyRef Name="CycleUnitId" />
  3618. </Dependent>
  3619. </ReferentialConstraint>
  3620. </Association>
  3621. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  3622. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  3623. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  3624. <ReferentialConstraint>
  3625. <Principal Role="FmsWorkCodeType">
  3626. <PropertyRef Name="WorkTypeId" />
  3627. </Principal>
  3628. <Dependent Role="FmsFacilityCheckItem">
  3629. <PropertyRef Name="WorkTypeId" />
  3630. </Dependent>
  3631. </ReferentialConstraint>
  3632. </Association>
  3633. <Association Name="FK__FmsFacilityCodeClass__CmSite">
  3634. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1">
  3635. <OnDelete Action="Cascade" />
  3636. </End>
  3637. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  3638. <ReferentialConstraint>
  3639. <Principal Role="CmSite">
  3640. <PropertyRef Name="SiteId" />
  3641. </Principal>
  3642. <Dependent Role="FmsFacilityCodeClass">
  3643. <PropertyRef Name="SiteId" />
  3644. </Dependent>
  3645. </ReferentialConstraint>
  3646. </Association>
  3647. <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  3648. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
  3649. <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  3650. <ReferentialConstraint>
  3651. <Principal Role="FmsFacilityCodeClass">
  3652. <PropertyRef Name="SiteId" />
  3653. <PropertyRef Name="FacilityClassId" />
  3654. </Principal>
  3655. <Dependent Role="FmsFacilityCodeClass1">
  3656. <PropertyRef Name="SiteId" />
  3657. <PropertyRef Name="ParentFacilityClassId" />
  3658. </Dependent>
  3659. </ReferentialConstraint>
  3660. </Association>
  3661. <Association Name="FK__FmsFacilityOpera__725BF7F6">
  3662. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3663. <End Role="FmsFacilityOperationItem" Type="Self.FmsFacilityOperationItem" Multiplicity="0..1" />
  3664. <ReferentialConstraint>
  3665. <Principal Role="CmFacility">
  3666. <PropertyRef Name="SiteId" />
  3667. <PropertyRef Name="FacilityCode" />
  3668. </Principal>
  3669. <Dependent Role="FmsFacilityOperationItem">
  3670. <PropertyRef Name="SiteId" />
  3671. <PropertyRef Name="ItemId" />
  3672. </Dependent>
  3673. </ReferentialConstraint>
  3674. </Association>
  3675. <Association Name="FK__FmsLicense__CmBusinessField">
  3676. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  3677. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  3678. <ReferentialConstraint>
  3679. <Principal Role="CmBusinessField">
  3680. <PropertyRef Name="SiteId" />
  3681. <PropertyRef Name="BusinessFieldId" />
  3682. </Principal>
  3683. <Dependent Role="FmsLicense">
  3684. <PropertyRef Name="SiteId" />
  3685. <PropertyRef Name="BusinessFieldId" />
  3686. </Dependent>
  3687. </ReferentialConstraint>
  3688. </Association>
  3689. <Association Name="FK__FmsLicense__CmSite">
  3690. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3691. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  3692. <ReferentialConstraint>
  3693. <Principal Role="CmSite">
  3694. <PropertyRef Name="SiteId" />
  3695. </Principal>
  3696. <Dependent Role="FmsLicense">
  3697. <PropertyRef Name="SiteId" />
  3698. </Dependent>
  3699. </ReferentialConstraint>
  3700. </Association>
  3701. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  3702. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3703. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3704. <ReferentialConstraint>
  3705. <Principal Role="FmsMaterialCodeClass">
  3706. <PropertyRef Name="SiteId" />
  3707. <PropertyRef Name="MaterialClassId" />
  3708. </Principal>
  3709. <Dependent Role="FmsMaterial">
  3710. <PropertyRef Name="SiteId" />
  3711. <PropertyRef Name="FirstClassId" />
  3712. </Dependent>
  3713. </ReferentialConstraint>
  3714. </Association>
  3715. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  3716. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3717. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3718. <ReferentialConstraint>
  3719. <Principal Role="FmsMaterialCodeClass">
  3720. <PropertyRef Name="SiteId" />
  3721. <PropertyRef Name="MaterialClassId" />
  3722. </Principal>
  3723. <Dependent Role="FmsMaterial">
  3724. <PropertyRef Name="SiteId" />
  3725. <PropertyRef Name="SecondClassId" />
  3726. </Dependent>
  3727. </ReferentialConstraint>
  3728. </Association>
  3729. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  3730. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3731. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3732. <ReferentialConstraint>
  3733. <Principal Role="FmsMaterialCodeClass">
  3734. <PropertyRef Name="SiteId" />
  3735. <PropertyRef Name="MaterialClassId" />
  3736. </Principal>
  3737. <Dependent Role="FmsMaterial">
  3738. <PropertyRef Name="SiteId" />
  3739. <PropertyRef Name="ThirdClassId" />
  3740. </Dependent>
  3741. </ReferentialConstraint>
  3742. </Association>
  3743. <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
  3744. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3745. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  3746. <ReferentialConstraint>
  3747. <Principal Role="CmBusinessField">
  3748. <PropertyRef Name="SiteId" />
  3749. <PropertyRef Name="BusinessFieldId" />
  3750. </Principal>
  3751. <Dependent Role="FmsMaterialCarriedForward">
  3752. <PropertyRef Name="SiteId" />
  3753. <PropertyRef Name="BusinessFieldId" />
  3754. </Dependent>
  3755. </ReferentialConstraint>
  3756. </Association>
  3757. <Association Name="FK__FmsMaterialCarriedForward__CmSite">
  3758. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3759. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  3760. <ReferentialConstraint>
  3761. <Principal Role="CmSite">
  3762. <PropertyRef Name="SiteId" />
  3763. </Principal>
  3764. <Dependent Role="FmsMaterialCarriedForward">
  3765. <PropertyRef Name="SiteId" />
  3766. </Dependent>
  3767. </ReferentialConstraint>
  3768. </Association>
  3769. <Association Name="FK__FmsMaterialCodeClass__CmSite">
  3770. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3771. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3772. <ReferentialConstraint>
  3773. <Principal Role="CmSite">
  3774. <PropertyRef Name="SiteId" />
  3775. </Principal>
  3776. <Dependent Role="FmsMaterialCodeClass">
  3777. <PropertyRef Name="SiteId" />
  3778. </Dependent>
  3779. </ReferentialConstraint>
  3780. </Association>
  3781. <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  3782. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3783. <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3784. <ReferentialConstraint>
  3785. <Principal Role="FmsMaterialCodeClass">
  3786. <PropertyRef Name="SiteId" />
  3787. <PropertyRef Name="MaterialClassId" />
  3788. </Principal>
  3789. <Dependent Role="FmsMaterialCodeClass1">
  3790. <PropertyRef Name="SiteId" />
  3791. <PropertyRef Name="ParentMaterialClassId" />
  3792. </Dependent>
  3793. </ReferentialConstraint>
  3794. </Association>
  3795. <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
  3796. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3797. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  3798. <ReferentialConstraint>
  3799. <Principal Role="CmBusinessField">
  3800. <PropertyRef Name="SiteId" />
  3801. <PropertyRef Name="BusinessFieldId" />
  3802. </Principal>
  3803. <Dependent Role="FmsMaterialCodeLocation">
  3804. <PropertyRef Name="SiteId" />
  3805. <PropertyRef Name="BusinessFieldId" />
  3806. </Dependent>
  3807. </ReferentialConstraint>
  3808. </Association>
  3809. <Association Name="FK__FmsMaterialCodeLocation__CmSite">
  3810. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3811. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  3812. <ReferentialConstraint>
  3813. <Principal Role="CmSite">
  3814. <PropertyRef Name="SiteId" />
  3815. </Principal>
  3816. <Dependent Role="FmsMaterialCodeLocation">
  3817. <PropertyRef Name="SiteId" />
  3818. </Dependent>
  3819. </ReferentialConstraint>
  3820. </Association>
  3821. <Association Name="FK__FmsMaterialCodeType__CmSite">
  3822. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3823. <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="*" />
  3824. <ReferentialConstraint>
  3825. <Principal Role="CmSite">
  3826. <PropertyRef Name="SiteId" />
  3827. </Principal>
  3828. <Dependent Role="FmsMaterialCodeType">
  3829. <PropertyRef Name="SiteId" />
  3830. </Dependent>
  3831. </ReferentialConstraint>
  3832. </Association>
  3833. <Association Name="FK__FmsMaterialOrder__CmBusinessField">
  3834. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3835. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3836. <ReferentialConstraint>
  3837. <Principal Role="CmBusinessField">
  3838. <PropertyRef Name="SiteId" />
  3839. <PropertyRef Name="BusinessFieldId" />
  3840. </Principal>
  3841. <Dependent Role="FmsMaterialPurchaseOrder">
  3842. <PropertyRef Name="SiteId" />
  3843. <PropertyRef Name="BusinessFieldId" />
  3844. </Dependent>
  3845. </ReferentialConstraint>
  3846. </Association>
  3847. <Association Name="FK__FmsMaterialOrder__CmSite">
  3848. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3849. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3850. <ReferentialConstraint>
  3851. <Principal Role="CmSite">
  3852. <PropertyRef Name="SiteId" />
  3853. </Principal>
  3854. <Dependent Role="FmsMaterialPurchaseOrder">
  3855. <PropertyRef Name="SiteId" />
  3856. </Dependent>
  3857. </ReferentialConstraint>
  3858. </Association>
  3859. <Association Name="FK__FmsMaterialOrder__CmUser">
  3860. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3861. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3862. <ReferentialConstraint>
  3863. <Principal Role="CmUser">
  3864. <PropertyRef Name="SiteId" />
  3865. <PropertyRef Name="UserId" />
  3866. </Principal>
  3867. <Dependent Role="FmsMaterialPurchaseOrder">
  3868. <PropertyRef Name="SiteId" />
  3869. <PropertyRef Name="OrderUserId" />
  3870. </Dependent>
  3871. </ReferentialConstraint>
  3872. </Association>
  3873. <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
  3874. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  3875. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3876. <ReferentialConstraint>
  3877. <Principal Role="CmFile">
  3878. <PropertyRef Name="SiteId" />
  3879. <PropertyRef Name="FileId" />
  3880. </Principal>
  3881. <Dependent Role="FmsMaterialPurchaseOrder">
  3882. <PropertyRef Name="SiteId" />
  3883. <PropertyRef Name="FileId" />
  3884. </Dependent>
  3885. </ReferentialConstraint>
  3886. </Association>
  3887. <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  3888. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  3889. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3890. <ReferentialConstraint>
  3891. <Principal Role="FmsMaterialTradeCompany">
  3892. <PropertyRef Name="SiteId" />
  3893. <PropertyRef Name="TradeCompanyId" />
  3894. </Principal>
  3895. <Dependent Role="FmsMaterialPurchaseOrder">
  3896. <PropertyRef Name="SiteId" />
  3897. <PropertyRef Name="TradeCompanyId" />
  3898. </Dependent>
  3899. </ReferentialConstraint>
  3900. </Association>
  3901. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  3902. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3903. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3904. <ReferentialConstraint>
  3905. <Principal Role="CmUser">
  3906. <PropertyRef Name="SiteId" />
  3907. <PropertyRef Name="UserId" />
  3908. </Principal>
  3909. <Dependent Role="FmsMaterialPurchaseRequest">
  3910. <PropertyRef Name="SiteId" />
  3911. <PropertyRef Name="RequestUserId" />
  3912. </Dependent>
  3913. </ReferentialConstraint>
  3914. </Association>
  3915. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  3916. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  3917. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3918. <ReferentialConstraint>
  3919. <Principal Role="CmUser">
  3920. <PropertyRef Name="SiteId" />
  3921. <PropertyRef Name="UserId" />
  3922. </Principal>
  3923. <Dependent Role="FmsMaterialPurchaseRequest">
  3924. <PropertyRef Name="SiteId" />
  3925. <PropertyRef Name="ApprovalUserId" />
  3926. </Dependent>
  3927. </ReferentialConstraint>
  3928. </Association>
  3929. <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
  3930. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3931. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3932. <ReferentialConstraint>
  3933. <Principal Role="CmBusinessField">
  3934. <PropertyRef Name="SiteId" />
  3935. <PropertyRef Name="BusinessFieldId" />
  3936. </Principal>
  3937. <Dependent Role="FmsMaterialPurchaseRequest">
  3938. <PropertyRef Name="SiteId" />
  3939. <PropertyRef Name="BusinessFieldId" />
  3940. </Dependent>
  3941. </ReferentialConstraint>
  3942. </Association>
  3943. <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
  3944. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3945. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3946. <ReferentialConstraint>
  3947. <Principal Role="CmSite">
  3948. <PropertyRef Name="SiteId" />
  3949. </Principal>
  3950. <Dependent Role="FmsMaterialPurchaseRequest">
  3951. <PropertyRef Name="SiteId" />
  3952. </Dependent>
  3953. </ReferentialConstraint>
  3954. </Association>
  3955. <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  3956. <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
  3957. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3958. <ReferentialConstraint>
  3959. <Principal Role="FmsMaterialCodeProgress">
  3960. <PropertyRef Name="ProgressId" />
  3961. </Principal>
  3962. <Dependent Role="FmsMaterialPurchaseRequest">
  3963. <PropertyRef Name="ProgressId" />
  3964. </Dependent>
  3965. </ReferentialConstraint>
  3966. </Association>
  3967. <Association Name="FK__FmsMaterialStored__CmBusinessField">
  3968. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3969. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  3970. <ReferentialConstraint>
  3971. <Principal Role="CmBusinessField">
  3972. <PropertyRef Name="SiteId" />
  3973. <PropertyRef Name="BusinessFieldId" />
  3974. </Principal>
  3975. <Dependent Role="FmsMaterialStored">
  3976. <PropertyRef Name="SiteId" />
  3977. <PropertyRef Name="BusinessFieldId" />
  3978. </Dependent>
  3979. </ReferentialConstraint>
  3980. </Association>
  3981. <Association Name="FK__FmsMaterialStored__CmSite">
  3982. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3983. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  3984. <ReferentialConstraint>
  3985. <Principal Role="CmSite">
  3986. <PropertyRef Name="SiteId" />
  3987. </Principal>
  3988. <Dependent Role="FmsMaterialStored">
  3989. <PropertyRef Name="SiteId" />
  3990. </Dependent>
  3991. </ReferentialConstraint>
  3992. </Association>
  3993. <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
  3994. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3995. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  3996. <ReferentialConstraint>
  3997. <Principal Role="CmUser">
  3998. <PropertyRef Name="SiteId" />
  3999. <PropertyRef Name="UserId" />
  4000. </Principal>
  4001. <Dependent Role="FmsMaterialStored">
  4002. <PropertyRef Name="SiteId" />
  4003. <PropertyRef Name="StoredUserId" />
  4004. </Dependent>
  4005. </ReferentialConstraint>
  4006. </Association>
  4007. <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  4008. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4009. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4010. <ReferentialConstraint>
  4011. <Principal Role="CmUser">
  4012. <PropertyRef Name="SiteId" />
  4013. <PropertyRef Name="UserId" />
  4014. </Principal>
  4015. <Dependent Role="FmsMaterialStored">
  4016. <PropertyRef Name="SiteId" />
  4017. <PropertyRef Name="ApprovalUserId" />
  4018. </Dependent>
  4019. </ReferentialConstraint>
  4020. </Association>
  4021. <Association Name="FK__FmsMaterialTradeCompany__CmSite">
  4022. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4023. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="*" />
  4024. <ReferentialConstraint>
  4025. <Principal Role="CmSite">
  4026. <PropertyRef Name="SiteId" />
  4027. </Principal>
  4028. <Dependent Role="FmsMaterialTradeCompany">
  4029. <PropertyRef Name="SiteId" />
  4030. </Dependent>
  4031. </ReferentialConstraint>
  4032. </Association>
  4033. <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
  4034. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4035. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  4036. <ReferentialConstraint>
  4037. <Principal Role="CmBusinessField">
  4038. <PropertyRef Name="SiteId" />
  4039. <PropertyRef Name="BusinessFieldId" />
  4040. </Principal>
  4041. <Dependent Role="FmsMaterialWarehouse">
  4042. <PropertyRef Name="SiteId" />
  4043. <PropertyRef Name="BusinessFieldId" />
  4044. </Dependent>
  4045. </ReferentialConstraint>
  4046. </Association>
  4047. <Association Name="FK__FmsMaterialWarehouse__CmSite">
  4048. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4049. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  4050. <ReferentialConstraint>
  4051. <Principal Role="CmSite">
  4052. <PropertyRef Name="SiteId" />
  4053. </Principal>
  4054. <Dependent Role="FmsMaterialWarehouse">
  4055. <PropertyRef Name="SiteId" />
  4056. </Dependent>
  4057. </ReferentialConstraint>
  4058. </Association>
  4059. <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
  4060. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4061. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="*" />
  4062. <ReferentialConstraint>
  4063. <Principal Role="CmSite">
  4064. <PropertyRef Name="SiteId" />
  4065. </Principal>
  4066. <Dependent Role="FmsWorkCodeCauseClass">
  4067. <PropertyRef Name="SiteId" />
  4068. </Dependent>
  4069. </ReferentialConstraint>
  4070. </Association>
  4071. <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
  4072. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4073. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="*" />
  4074. <ReferentialConstraint>
  4075. <Principal Role="CmSite">
  4076. <PropertyRef Name="SiteId" />
  4077. </Principal>
  4078. <Dependent Role="FmsWorkCodeCycleUnit">
  4079. <PropertyRef Name="SiteId" />
  4080. </Dependent>
  4081. </ReferentialConstraint>
  4082. </Association>
  4083. <Association Name="FK__FmsWorkCodeEmergency__CmSite">
  4084. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4085. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="*" />
  4086. <ReferentialConstraint>
  4087. <Principal Role="CmSite">
  4088. <PropertyRef Name="SiteId" />
  4089. </Principal>
  4090. <Dependent Role="FmsWorkCodeEmergency">
  4091. <PropertyRef Name="SiteId" />
  4092. </Dependent>
  4093. </ReferentialConstraint>
  4094. </Association>
  4095. <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
  4096. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4097. <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="*" />
  4098. <ReferentialConstraint>
  4099. <Principal Role="CmSite">
  4100. <PropertyRef Name="SiteId" />
  4101. </Principal>
  4102. <Dependent Role="FmsWorkCodeHolidayWorkType">
  4103. <PropertyRef Name="SiteId" />
  4104. </Dependent>
  4105. </ReferentialConstraint>
  4106. </Association>
  4107. <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  4108. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4109. <End Role="FmsWorkCodeLegalInspectionAgency" Type="Self.FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
  4110. <ReferentialConstraint>
  4111. <Principal Role="CmSite">
  4112. <PropertyRef Name="SiteId" />
  4113. </Principal>
  4114. <Dependent Role="FmsWorkCodeLegalInspectionAgency">
  4115. <PropertyRef Name="SiteId" />
  4116. </Dependent>
  4117. </ReferentialConstraint>
  4118. </Association>
  4119. <Association Name="FK__FmsWorkOrder__CmBusinessField">
  4120. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4121. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4122. <ReferentialConstraint>
  4123. <Principal Role="CmBusinessField">
  4124. <PropertyRef Name="SiteId" />
  4125. <PropertyRef Name="BusinessFieldId" />
  4126. </Principal>
  4127. <Dependent Role="FmsWorkOrder">
  4128. <PropertyRef Name="SiteId" />
  4129. <PropertyRef Name="BusinessFieldId" />
  4130. </Dependent>
  4131. </ReferentialConstraint>
  4132. </Association>
  4133. <Association Name="FK__FmsWorkOrder__CmSite">
  4134. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4135. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4136. <ReferentialConstraint>
  4137. <Principal Role="CmSite">
  4138. <PropertyRef Name="SiteId" />
  4139. </Principal>
  4140. <Dependent Role="FmsWorkOrder">
  4141. <PropertyRef Name="SiteId" />
  4142. </Dependent>
  4143. </ReferentialConstraint>
  4144. </Association>
  4145. <Association Name="FK__FmsWorkOrder__CmUser">
  4146. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4147. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4148. <ReferentialConstraint>
  4149. <Principal Role="CmUser">
  4150. <PropertyRef Name="SiteId" />
  4151. <PropertyRef Name="UserId" />
  4152. </Principal>
  4153. <Dependent Role="FmsWorkOrder">
  4154. <PropertyRef Name="SiteId" />
  4155. <PropertyRef Name="OrderUserId" />
  4156. </Dependent>
  4157. </ReferentialConstraint>
  4158. </Association>
  4159. <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
  4160. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
  4161. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4162. <ReferentialConstraint>
  4163. <Principal Role="FmsWorkCodeEmergency">
  4164. <PropertyRef Name="SiteId" />
  4165. <PropertyRef Name="EmergencyId" />
  4166. </Principal>
  4167. <Dependent Role="FmsWorkOrder">
  4168. <PropertyRef Name="SiteId" />
  4169. <PropertyRef Name="EmergencyId" />
  4170. </Dependent>
  4171. </ReferentialConstraint>
  4172. </Association>
  4173. <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
  4174. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  4175. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
  4176. <ReferentialConstraint>
  4177. <Principal Role="FmsWorkRequest">
  4178. <PropertyRef Name="SiteId" />
  4179. <PropertyRef Name="WorkRequestId" />
  4180. </Principal>
  4181. <Dependent Role="FmsWorkOrder">
  4182. <PropertyRef Name="SiteId" />
  4183. <PropertyRef Name="WorkRequestId" />
  4184. </Dependent>
  4185. </ReferentialConstraint>
  4186. </Association>
  4187. <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
  4188. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
  4189. <OnDelete Action="Cascade" />
  4190. </End>
  4191. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  4192. <ReferentialConstraint>
  4193. <Principal Role="FmsWorkOrder">
  4194. <PropertyRef Name="SiteId" />
  4195. <PropertyRef Name="WorkRequestId" />
  4196. </Principal>
  4197. <Dependent Role="FmsWorkOrderToFacility">
  4198. <PropertyRef Name="SiteId" />
  4199. <PropertyRef Name="WorkRequestId" />
  4200. </Dependent>
  4201. </ReferentialConstraint>
  4202. </Association>
  4203. <Association Name="FK__FmsWorkRequest__CmBusinessField">
  4204. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4205. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4206. <ReferentialConstraint>
  4207. <Principal Role="CmBusinessField">
  4208. <PropertyRef Name="SiteId" />
  4209. <PropertyRef Name="BusinessFieldId" />
  4210. </Principal>
  4211. <Dependent Role="FmsWorkRequest">
  4212. <PropertyRef Name="SiteId" />
  4213. <PropertyRef Name="BusinessFieldId" />
  4214. </Dependent>
  4215. </ReferentialConstraint>
  4216. </Association>
  4217. <Association Name="FK__FmsWorkRequest__CmSite">
  4218. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4219. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4220. <ReferentialConstraint>
  4221. <Principal Role="CmSite">
  4222. <PropertyRef Name="SiteId" />
  4223. </Principal>
  4224. <Dependent Role="FmsWorkRequest">
  4225. <PropertyRef Name="SiteId" />
  4226. </Dependent>
  4227. </ReferentialConstraint>
  4228. </Association>
  4229. <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
  4230. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4231. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4232. <ReferentialConstraint>
  4233. <Principal Role="CmUser">
  4234. <PropertyRef Name="SiteId" />
  4235. <PropertyRef Name="UserId" />
  4236. </Principal>
  4237. <Dependent Role="FmsWorkRequest">
  4238. <PropertyRef Name="SiteId" />
  4239. <PropertyRef Name="RequestUserId" />
  4240. </Dependent>
  4241. </ReferentialConstraint>
  4242. </Association>
  4243. <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  4244. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4245. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4246. <ReferentialConstraint>
  4247. <Principal Role="CmUser">
  4248. <PropertyRef Name="SiteId" />
  4249. <PropertyRef Name="UserId" />
  4250. </Principal>
  4251. <Dependent Role="FmsWorkRequest">
  4252. <PropertyRef Name="SiteId" />
  4253. <PropertyRef Name="RejectUserId" />
  4254. </Dependent>
  4255. </ReferentialConstraint>
  4256. </Association>
  4257. <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
  4258. <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
  4259. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4260. <ReferentialConstraint>
  4261. <Principal Role="FmsWorkCodeProgress">
  4262. <PropertyRef Name="WorkProgressId" />
  4263. </Principal>
  4264. <Dependent Role="FmsWorkRequest">
  4265. <PropertyRef Name="WorkProgressId" />
  4266. </Dependent>
  4267. </ReferentialConstraint>
  4268. </Association>
  4269. <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
  4270. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  4271. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4272. <ReferentialConstraint>
  4273. <Principal Role="FmsWorkCodeType">
  4274. <PropertyRef Name="WorkTypeId" />
  4275. </Principal>
  4276. <Dependent Role="FmsWorkRequest">
  4277. <PropertyRef Name="WorkTypeId" />
  4278. </Dependent>
  4279. </ReferentialConstraint>
  4280. </Association>
  4281. <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
  4282. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="0..1" />
  4283. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4284. <ReferentialConstraint>
  4285. <Principal Role="FmsWorkSchedule">
  4286. <PropertyRef Name="SiteId" />
  4287. <PropertyRef Name="WorkScheduleId" />
  4288. </Principal>
  4289. <Dependent Role="FmsWorkRequest">
  4290. <PropertyRef Name="SiteId" />
  4291. <PropertyRef Name="WorkScheduleId" />
  4292. </Dependent>
  4293. </ReferentialConstraint>
  4294. </Association>
  4295. <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
  4296. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
  4297. <OnDelete Action="Cascade" />
  4298. </End>
  4299. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  4300. <ReferentialConstraint>
  4301. <Principal Role="FmsWorkRequest">
  4302. <PropertyRef Name="SiteId" />
  4303. <PropertyRef Name="WorkRequestId" />
  4304. </Principal>
  4305. <Dependent Role="FmsWorkRequestToFacility">
  4306. <PropertyRef Name="SiteId" />
  4307. <PropertyRef Name="WorkRequestId" />
  4308. </Dependent>
  4309. </ReferentialConstraint>
  4310. </Association>
  4311. <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
  4312. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4313. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4314. <ReferentialConstraint>
  4315. <Principal Role="CmUser">
  4316. <PropertyRef Name="SiteId" />
  4317. <PropertyRef Name="UserId" />
  4318. </Principal>
  4319. <Dependent Role="FmsWorkResult">
  4320. <PropertyRef Name="SiteId" />
  4321. <PropertyRef Name="WorkerUserId" />
  4322. </Dependent>
  4323. </ReferentialConstraint>
  4324. </Association>
  4325. <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  4326. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4327. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4328. <ReferentialConstraint>
  4329. <Principal Role="CmUser">
  4330. <PropertyRef Name="SiteId" />
  4331. <PropertyRef Name="UserId" />
  4332. </Principal>
  4333. <Dependent Role="FmsWorkResult">
  4334. <PropertyRef Name="SiteId" />
  4335. <PropertyRef Name="ConfirmedUserId" />
  4336. </Dependent>
  4337. </ReferentialConstraint>
  4338. </Association>
  4339. <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
  4340. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
  4341. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4342. <ReferentialConstraint>
  4343. <Principal Role="FmsWorkCodeCauseClass">
  4344. <PropertyRef Name="SiteId" />
  4345. <PropertyRef Name="CauseClassId" />
  4346. </Principal>
  4347. <Dependent Role="FmsWorkResult">
  4348. <PropertyRef Name="SiteId" />
  4349. <PropertyRef Name="CauseClassId" />
  4350. </Dependent>
  4351. </ReferentialConstraint>
  4352. </Association>
  4353. <Association Name="FK__FmsWorkResult__FmsWorkOrder">
  4354. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
  4355. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  4356. <ReferentialConstraint>
  4357. <Principal Role="FmsWorkOrder">
  4358. <PropertyRef Name="SiteId" />
  4359. <PropertyRef Name="WorkRequestId" />
  4360. </Principal>
  4361. <Dependent Role="FmsWorkResult">
  4362. <PropertyRef Name="SiteId" />
  4363. <PropertyRef Name="WorkRequestId" />
  4364. </Dependent>
  4365. </ReferentialConstraint>
  4366. </Association>
  4367. <Association Name="FK__FmsWorkResult__FmsWorkRequest">
  4368. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  4369. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  4370. <ReferentialConstraint>
  4371. <Principal Role="FmsWorkRequest">
  4372. <PropertyRef Name="SiteId" />
  4373. <PropertyRef Name="WorkRequestId" />
  4374. </Principal>
  4375. <Dependent Role="FmsWorkResult">
  4376. <PropertyRef Name="SiteId" />
  4377. <PropertyRef Name="WorkRequestId" />
  4378. </Dependent>
  4379. </ReferentialConstraint>
  4380. </Association>
  4381. <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
  4382. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
  4383. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4384. <ReferentialConstraint>
  4385. <Principal Role="CmFacility">
  4386. <PropertyRef Name="SiteId" />
  4387. <PropertyRef Name="FacilityCode" />
  4388. </Principal>
  4389. <Dependent Role="FmsWorkResultCheckItem">
  4390. <PropertyRef Name="SiteId" />
  4391. <PropertyRef Name="FacilityCode" />
  4392. </Dependent>
  4393. </ReferentialConstraint>
  4394. </Association>
  4395. <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  4396. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
  4397. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4398. <ReferentialConstraint>
  4399. <Principal Role="FmsFacilityCheckItem">
  4400. <PropertyRef Name="SiteId" />
  4401. <PropertyRef Name="FacilityCode" />
  4402. <PropertyRef Name="CheckItemId" />
  4403. </Principal>
  4404. <Dependent Role="FmsWorkResultCheckItem">
  4405. <PropertyRef Name="SiteId" />
  4406. <PropertyRef Name="FacilityCode" />
  4407. <PropertyRef Name="CheckItemId" />
  4408. </Dependent>
  4409. </ReferentialConstraint>
  4410. </Association>
  4411. <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
  4412. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  4413. <OnDelete Action="Cascade" />
  4414. </End>
  4415. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4416. <ReferentialConstraint>
  4417. <Principal Role="FmsWorkResult">
  4418. <PropertyRef Name="SiteId" />
  4419. <PropertyRef Name="WorkRequestId" />
  4420. </Principal>
  4421. <Dependent Role="FmsWorkResultCheckItem">
  4422. <PropertyRef Name="SiteId" />
  4423. <PropertyRef Name="WorkRequestId" />
  4424. </Dependent>
  4425. </ReferentialConstraint>
  4426. </Association>
  4427. <Association Name="FK__FmsWorkResultFile__CmFile">
  4428. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  4429. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
  4430. <ReferentialConstraint>
  4431. <Principal Role="CmFile">
  4432. <PropertyRef Name="SiteId" />
  4433. <PropertyRef Name="FileId" />
  4434. </Principal>
  4435. <Dependent Role="FmsWorkResultFile">
  4436. <PropertyRef Name="SiteId" />
  4437. <PropertyRef Name="FileId" />
  4438. </Dependent>
  4439. </ReferentialConstraint>
  4440. </Association>
  4441. <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
  4442. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  4443. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
  4444. <ReferentialConstraint>
  4445. <Principal Role="FmsWorkResult">
  4446. <PropertyRef Name="SiteId" />
  4447. <PropertyRef Name="WorkRequestId" />
  4448. </Principal>
  4449. <Dependent Role="FmsWorkResultFile">
  4450. <PropertyRef Name="SiteId" />
  4451. <PropertyRef Name="WorkRequestId" />
  4452. </Dependent>
  4453. </ReferentialConstraint>
  4454. </Association>
  4455. <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
  4456. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  4457. <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
  4458. <ReferentialConstraint>
  4459. <Principal Role="FmsWorkResult">
  4460. <PropertyRef Name="SiteId" />
  4461. <PropertyRef Name="WorkRequestId" />
  4462. </Principal>
  4463. <Dependent Role="FmsWorkResultLaw">
  4464. <PropertyRef Name="SiteId" />
  4465. <PropertyRef Name="WorkRequestId" />
  4466. </Dependent>
  4467. </ReferentialConstraint>
  4468. </Association>
  4469. <Association Name="FK__FmsWorkResultToFacility__CmFacility">
  4470. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4471. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  4472. <ReferentialConstraint>
  4473. <Principal Role="CmFacility">
  4474. <PropertyRef Name="SiteId" />
  4475. <PropertyRef Name="FacilityCode" />
  4476. </Principal>
  4477. <Dependent Role="FmsWorkResultToFacility">
  4478. <PropertyRef Name="SiteId" />
  4479. <PropertyRef Name="FacilityCode" />
  4480. </Dependent>
  4481. </ReferentialConstraint>
  4482. </Association>
  4483. <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
  4484. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  4485. <OnDelete Action="Cascade" />
  4486. </End>
  4487. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  4488. <ReferentialConstraint>
  4489. <Principal Role="FmsWorkResult">
  4490. <PropertyRef Name="SiteId" />
  4491. <PropertyRef Name="WorkRequestId" />
  4492. </Principal>
  4493. <Dependent Role="FmsWorkResultToFacility">
  4494. <PropertyRef Name="SiteId" />
  4495. <PropertyRef Name="WorkRequestId" />
  4496. </Dependent>
  4497. </ReferentialConstraint>
  4498. </Association>
  4499. <Association Name="FK__FmsWorkSchedule__CmBusinessField">
  4500. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4501. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4502. <ReferentialConstraint>
  4503. <Principal Role="CmBusinessField">
  4504. <PropertyRef Name="SiteId" />
  4505. <PropertyRef Name="BusinessFieldId" />
  4506. </Principal>
  4507. <Dependent Role="FmsWorkSchedule">
  4508. <PropertyRef Name="SiteId" />
  4509. <PropertyRef Name="BusinessFieldId" />
  4510. </Dependent>
  4511. </ReferentialConstraint>
  4512. </Association>
  4513. <Association Name="FK__FmsWorkSchedule__CmUser">
  4514. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4515. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4516. <ReferentialConstraint>
  4517. <Principal Role="CmUser">
  4518. <PropertyRef Name="SiteId" />
  4519. <PropertyRef Name="UserId" />
  4520. </Principal>
  4521. <Dependent Role="FmsWorkSchedule">
  4522. <PropertyRef Name="SiteId" />
  4523. <PropertyRef Name="UpdateUserId" />
  4524. </Dependent>
  4525. </ReferentialConstraint>
  4526. </Association>
  4527. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  4528. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  4529. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4530. <ReferentialConstraint>
  4531. <Principal Role="FmsWorkCodeCycleUnit">
  4532. <PropertyRef Name="SiteId" />
  4533. <PropertyRef Name="CycleUnitId" />
  4534. </Principal>
  4535. <Dependent Role="FmsWorkSchedule">
  4536. <PropertyRef Name="SiteId" />
  4537. <PropertyRef Name="CycleUnitId" />
  4538. </Dependent>
  4539. </ReferentialConstraint>
  4540. </Association>
  4541. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  4542. <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="1" />
  4543. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4544. <ReferentialConstraint>
  4545. <Principal Role="FmsWorkCodeHolidayWorkType">
  4546. <PropertyRef Name="SiteId" />
  4547. <PropertyRef Name="HolidayWorkTypeId" />
  4548. </Principal>
  4549. <Dependent Role="FmsWorkSchedule">
  4550. <PropertyRef Name="SiteId" />
  4551. <PropertyRef Name="HolidayWorkTypeId" />
  4552. </Dependent>
  4553. </ReferentialConstraint>
  4554. </Association>
  4555. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  4556. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  4557. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4558. <ReferentialConstraint>
  4559. <Principal Role="FmsWorkCodeType">
  4560. <PropertyRef Name="WorkTypeId" />
  4561. </Principal>
  4562. <Dependent Role="FmsWorkSchedule">
  4563. <PropertyRef Name="WorkTypeId" />
  4564. </Dependent>
  4565. </ReferentialConstraint>
  4566. </Association>
  4567. <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  4568. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="1" />
  4569. <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
  4570. <ReferentialConstraint>
  4571. <Principal Role="FmsWorkSchedule">
  4572. <PropertyRef Name="SiteId" />
  4573. <PropertyRef Name="WorkScheduleId" />
  4574. </Principal>
  4575. <Dependent Role="FmsWorkScheduleToFacility">
  4576. <PropertyRef Name="SiteId" />
  4577. <PropertyRef Name="WorkScheduleId" />
  4578. </Dependent>
  4579. </ReferentialConstraint>
  4580. </Association>
  4581. <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
  4582. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="1" />
  4583. <End Role="BemsAlarmLog" Type="Self.BemsAlarmLog" Multiplicity="*" />
  4584. <ReferentialConstraint>
  4585. <Principal Role="BemsAlarmSetting">
  4586. <PropertyRef Name="SiteId" />
  4587. <PropertyRef Name="FacilityTypeId" />
  4588. <PropertyRef Name="FacilityCode" />
  4589. <PropertyRef Name="PropertyId" />
  4590. <PropertyRef Name="FormulaId" />
  4591. </Principal>
  4592. <Dependent Role="BemsAlarmLog">
  4593. <PropertyRef Name="SiteId" />
  4594. <PropertyRef Name="FacilityTypeId" />
  4595. <PropertyRef Name="FacilityCode" />
  4596. <PropertyRef Name="PropertyId" />
  4597. <PropertyRef Name="FormulaId" />
  4598. </Dependent>
  4599. </ReferentialConstraint>
  4600. </Association>
  4601. <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
  4602. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4603. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4604. <ReferentialConstraint>
  4605. <Principal Role="BemsFacilityType">
  4606. <PropertyRef Name="FacilityTypeId" />
  4607. </Principal>
  4608. <Dependent Role="BemsAlarmSetting">
  4609. <PropertyRef Name="FacilityTypeId" />
  4610. </Dependent>
  4611. </ReferentialConstraint>
  4612. </Association>
  4613. <Association Name="FK_BemsAlarmSetting_CmFacility">
  4614. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4615. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4616. <ReferentialConstraint>
  4617. <Principal Role="CmFacility">
  4618. <PropertyRef Name="SiteId" />
  4619. <PropertyRef Name="FacilityCode" />
  4620. </Principal>
  4621. <Dependent Role="BemsAlarmSetting">
  4622. <PropertyRef Name="SiteId" />
  4623. <PropertyRef Name="FacilityCode" />
  4624. </Dependent>
  4625. </ReferentialConstraint>
  4626. </Association>
  4627. <Association Name="FK_BemsAlarmSetting_CmSite1">
  4628. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4629. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4630. <ReferentialConstraint>
  4631. <Principal Role="CmSite">
  4632. <PropertyRef Name="SiteId" />
  4633. </Principal>
  4634. <Dependent Role="BemsAlarmSetting">
  4635. <PropertyRef Name="SiteId" />
  4636. </Dependent>
  4637. </ReferentialConstraint>
  4638. </Association>
  4639. <Association Name="FK_BemsChartInfo_BemsFacilityType">
  4640. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4641. <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
  4642. <ReferentialConstraint>
  4643. <Principal Role="BemsFacilityType">
  4644. <PropertyRef Name="FacilityTypeId" />
  4645. </Principal>
  4646. <Dependent Role="BemsChartInfo">
  4647. <PropertyRef Name="FacilityTypeId" />
  4648. </Dependent>
  4649. </ReferentialConstraint>
  4650. </Association>
  4651. <Association Name="FK_BemsChartInfo_CmSite">
  4652. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4653. <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
  4654. <ReferentialConstraint>
  4655. <Principal Role="CmSite">
  4656. <PropertyRef Name="SiteId" />
  4657. </Principal>
  4658. <Dependent Role="BemsChartInfo">
  4659. <PropertyRef Name="SiteId" />
  4660. </Dependent>
  4661. </ReferentialConstraint>
  4662. </Association>
  4663. <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
  4664. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4665. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  4666. <ReferentialConstraint>
  4667. <Principal Role="BemsFacilityType">
  4668. <PropertyRef Name="FacilityTypeId" />
  4669. </Principal>
  4670. <Dependent Role="BemsControlPointHistory">
  4671. <PropertyRef Name="FacilityTypeId" />
  4672. </Dependent>
  4673. </ReferentialConstraint>
  4674. </Association>
  4675. <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
  4676. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  4677. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  4678. <ReferentialConstraint>
  4679. <Principal Role="BemsMonitoringPoint">
  4680. <PropertyRef Name="SiteId" />
  4681. <PropertyRef Name="FacilityCode" />
  4682. <PropertyRef Name="PropertyId" />
  4683. </Principal>
  4684. <Dependent Role="BemsControlPointHistory">
  4685. <PropertyRef Name="SiteId" />
  4686. <PropertyRef Name="FacilityCode" />
  4687. <PropertyRef Name="PropertyId" />
  4688. </Dependent>
  4689. </ReferentialConstraint>
  4690. </Association>
  4691. <Association Name="FK_BemsEnergyCost_CmFacility">
  4692. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4693. <End Role="BemsEnergyCost" Type="Self.BemsEnergyCost" Multiplicity="0..1" />
  4694. <ReferentialConstraint>
  4695. <Principal Role="CmFacility">
  4696. <PropertyRef Name="SiteId" />
  4697. <PropertyRef Name="FacilityCode" />
  4698. </Principal>
  4699. <Dependent Role="BemsEnergyCost">
  4700. <PropertyRef Name="SiteId" />
  4701. <PropertyRef Name="FacilityCode" />
  4702. </Dependent>
  4703. </ReferentialConstraint>
  4704. </Association>
  4705. <Association Name="FK_BemsEnergyDailyRegression_CmSite">
  4706. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4707. <End Role="BemsEnergyDailyRegression" Type="Self.BemsEnergyDailyRegression" Multiplicity="0..1" />
  4708. <ReferentialConstraint>
  4709. <Principal Role="CmSite">
  4710. <PropertyRef Name="SiteId" />
  4711. </Principal>
  4712. <Dependent Role="BemsEnergyDailyRegression">
  4713. <PropertyRef Name="SiteId" />
  4714. </Dependent>
  4715. </ReferentialConstraint>
  4716. </Association>
  4717. <Association Name="FK_BemsFormulaParameter_CmFacility">
  4718. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4719. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  4720. <ReferentialConstraint>
  4721. <Principal Role="CmFacility">
  4722. <PropertyRef Name="SiteId" />
  4723. <PropertyRef Name="FacilityCode" />
  4724. </Principal>
  4725. <Dependent Role="BemsFormulaParameter">
  4726. <PropertyRef Name="SiteId" />
  4727. <PropertyRef Name="FacilityCode" />
  4728. </Dependent>
  4729. </ReferentialConstraint>
  4730. </Association>
  4731. <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
  4732. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4733. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  4734. <ReferentialConstraint>
  4735. <Principal Role="BemsFacilityType">
  4736. <PropertyRef Name="FacilityTypeId" />
  4737. </Principal>
  4738. <Dependent Role="BemsMonitoringPoint">
  4739. <PropertyRef Name="FacilityTypeId" />
  4740. </Dependent>
  4741. </ReferentialConstraint>
  4742. </Association>
  4743. <Association Name="FK_BemsMonitoringPoint_CmFacility">
  4744. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4745. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  4746. <ReferentialConstraint>
  4747. <Principal Role="CmFacility">
  4748. <PropertyRef Name="SiteId" />
  4749. <PropertyRef Name="FacilityCode" />
  4750. </Principal>
  4751. <Dependent Role="BemsMonitoringPoint">
  4752. <PropertyRef Name="SiteId" />
  4753. <PropertyRef Name="FacilityCode" />
  4754. </Dependent>
  4755. </ReferentialConstraint>
  4756. </Association>
  4757. <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
  4758. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4759. <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="*" />
  4760. <ReferentialConstraint>
  4761. <Principal Role="BemsFacilityType">
  4762. <PropertyRef Name="FacilityTypeId" />
  4763. </Principal>
  4764. <Dependent Role="BemsMonitoringPointConfig">
  4765. <PropertyRef Name="FacilityTypeId" />
  4766. </Dependent>
  4767. </ReferentialConstraint>
  4768. </Association>
  4769. <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  4770. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  4771. <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="0..1" />
  4772. <ReferentialConstraint>
  4773. <Principal Role="BemsMonitoringPoint">
  4774. <PropertyRef Name="SiteId" />
  4775. <PropertyRef Name="FacilityCode" />
  4776. <PropertyRef Name="PropertyId" />
  4777. </Principal>
  4778. <Dependent Role="BemsMonitoringPointConfig">
  4779. <PropertyRef Name="SiteId" />
  4780. <PropertyRef Name="FacilityCode" />
  4781. <PropertyRef Name="PropertyId" />
  4782. </Dependent>
  4783. </ReferentialConstraint>
  4784. </Association>
  4785. <Association Name="FK_BemsPeakFacility_CmFacility">
  4786. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4787. <End Role="BemsPeakFacility" Type="Self.BemsPeakFacility" Multiplicity="*" />
  4788. <ReferentialConstraint>
  4789. <Principal Role="CmFacility">
  4790. <PropertyRef Name="SiteId" />
  4791. <PropertyRef Name="FacilityCode" />
  4792. </Principal>
  4793. <Dependent Role="BemsPeakFacility">
  4794. <PropertyRef Name="SiteId" />
  4795. <PropertyRef Name="FacilityCode" />
  4796. </Dependent>
  4797. </ReferentialConstraint>
  4798. </Association>
  4799. <Association Name="FK_BemsPeakHIstory_CmSite">
  4800. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4801. <End Role="BemsPeakHistory" Type="Self.BemsPeakHistory" Multiplicity="*" />
  4802. <ReferentialConstraint>
  4803. <Principal Role="CmSite">
  4804. <PropertyRef Name="SiteId" />
  4805. </Principal>
  4806. <Dependent Role="BemsPeakHistory">
  4807. <PropertyRef Name="SiteId" />
  4808. </Dependent>
  4809. </ReferentialConstraint>
  4810. </Association>
  4811. <Association Name="FK_BemsPeakInfo_CmSite">
  4812. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4813. <End Role="BemsPeakInfo" Type="Self.BemsPeakInfo" Multiplicity="0..1" />
  4814. <ReferentialConstraint>
  4815. <Principal Role="CmSite">
  4816. <PropertyRef Name="SiteId" />
  4817. </Principal>
  4818. <Dependent Role="BemsPeakInfo">
  4819. <PropertyRef Name="SiteId" />
  4820. </Dependent>
  4821. </ReferentialConstraint>
  4822. </Association>
  4823. <Association Name="FK_BemsPeopleIncrease_CmSite">
  4824. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4825. <End Role="BemsPeopleIncrease" Type="Self.BemsPeopleIncrease" Multiplicity="*" />
  4826. <ReferentialConstraint>
  4827. <Principal Role="CmSite">
  4828. <PropertyRef Name="SiteId" />
  4829. </Principal>
  4830. <Dependent Role="BemsPeopleIncrease">
  4831. <PropertyRef Name="SiteId" />
  4832. </Dependent>
  4833. </ReferentialConstraint>
  4834. </Association>
  4835. <Association Name="FK_BemsPriceCode_BemsFuelType">
  4836. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4837. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="*" />
  4838. <ReferentialConstraint>
  4839. <Principal Role="BemsFuelType">
  4840. <PropertyRef Name="FuelTypeId" />
  4841. </Principal>
  4842. <Dependent Role="BemsPriceCode">
  4843. <PropertyRef Name="FuelTypeId" />
  4844. </Dependent>
  4845. </ReferentialConstraint>
  4846. </Association>
  4847. <Association Name="FK_BemsPriceFormula_BemsFormula">
  4848. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  4849. <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
  4850. <ReferentialConstraint>
  4851. <Principal Role="BemsFormula">
  4852. <PropertyRef Name="SiteId" />
  4853. <PropertyRef Name="FacilityTypeId" />
  4854. <PropertyRef Name="FacilityCode" />
  4855. <PropertyRef Name="FormulaId" />
  4856. </Principal>
  4857. <Dependent Role="BemsPriceFormula">
  4858. <PropertyRef Name="SiteId" />
  4859. <PropertyRef Name="FacilityTypeId" />
  4860. <PropertyRef Name="FacilityCode" />
  4861. <PropertyRef Name="FormulaId" />
  4862. </Dependent>
  4863. </ReferentialConstraint>
  4864. </Association>
  4865. <Association Name="FK_BemsPriceFormula_BemsPriceType">
  4866. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4867. <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
  4868. <ReferentialConstraint>
  4869. <Principal Role="BemsPriceType">
  4870. <PropertyRef Name="PriceTypeId" />
  4871. </Principal>
  4872. <Dependent Role="BemsPriceFormula">
  4873. <PropertyRef Name="PriceTypeId" />
  4874. </Dependent>
  4875. </ReferentialConstraint>
  4876. </Association>
  4877. <Association Name="FK_BemsPriceMeta_BemsPriceType">
  4878. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4879. <End Role="BemsPriceMeta" Type="Self.BemsPriceMeta" Multiplicity="*" />
  4880. <ReferentialConstraint>
  4881. <Principal Role="BemsPriceType">
  4882. <PropertyRef Name="PriceTypeId" />
  4883. </Principal>
  4884. <Dependent Role="BemsPriceMeta">
  4885. <PropertyRef Name="PriceTypeId" />
  4886. </Dependent>
  4887. </ReferentialConstraint>
  4888. </Association>
  4889. <Association Name="FK_BemsPriceType_BemsFuelType1">
  4890. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4891. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="*" />
  4892. <ReferentialConstraint>
  4893. <Principal Role="BemsFuelType">
  4894. <PropertyRef Name="FuelTypeId" />
  4895. </Principal>
  4896. <Dependent Role="BemsPriceType">
  4897. <PropertyRef Name="FuelTypeId" />
  4898. </Dependent>
  4899. </ReferentialConstraint>
  4900. </Association>
  4901. <Association Name="FK_BemsRentalRate_CmSite">
  4902. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4903. <End Role="BemsRentalRate" Type="Self.BemsRentalRate" Multiplicity="*" />
  4904. <ReferentialConstraint>
  4905. <Principal Role="CmSite">
  4906. <PropertyRef Name="SiteId" />
  4907. </Principal>
  4908. <Dependent Role="BemsRentalRate">
  4909. <PropertyRef Name="SiteId" />
  4910. </Dependent>
  4911. </ReferentialConstraint>
  4912. </Association>
  4913. <Association Name="FK_BemsSitePrice_BemsFuelType">
  4914. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4915. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  4916. <ReferentialConstraint>
  4917. <Principal Role="BemsFuelType">
  4918. <PropertyRef Name="FuelTypeId" />
  4919. </Principal>
  4920. <Dependent Role="BemsSitePrice">
  4921. <PropertyRef Name="FuelTypeId" />
  4922. </Dependent>
  4923. </ReferentialConstraint>
  4924. </Association>
  4925. <Association Name="FK_BemsSitePrice_BemsPriceCode">
  4926. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
  4927. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  4928. <ReferentialConstraint>
  4929. <Principal Role="BemsPriceCode">
  4930. <PropertyRef Name="PriceCode" />
  4931. </Principal>
  4932. <Dependent Role="BemsSitePrice">
  4933. <PropertyRef Name="PriceCode" />
  4934. </Dependent>
  4935. </ReferentialConstraint>
  4936. </Association>
  4937. <Association Name="FK_BemsSitePrice_BemsPriceType">
  4938. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4939. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  4940. <ReferentialConstraint>
  4941. <Principal Role="BemsPriceType">
  4942. <PropertyRef Name="PriceTypeId" />
  4943. </Principal>
  4944. <Dependent Role="BemsSitePrice">
  4945. <PropertyRef Name="PriceTypeId" />
  4946. </Dependent>
  4947. </ReferentialConstraint>
  4948. </Association>
  4949. <Association Name="FK_BemsSitePrice_CmSite1">
  4950. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4951. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  4952. <ReferentialConstraint>
  4953. <Principal Role="CmSite">
  4954. <PropertyRef Name="SiteId" />
  4955. </Principal>
  4956. <Dependent Role="BemsSitePrice">
  4957. <PropertyRef Name="SiteID" />
  4958. </Dependent>
  4959. </ReferentialConstraint>
  4960. </Association>
  4961. <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
  4962. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4963. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  4964. <ReferentialConstraint>
  4965. <Principal Role="BemsFuelType">
  4966. <PropertyRef Name="FuelTypeId" />
  4967. </Principal>
  4968. <Dependent Role="BemsSitePriceHistory">
  4969. <PropertyRef Name="FuelTypeId" />
  4970. </Dependent>
  4971. </ReferentialConstraint>
  4972. </Association>
  4973. <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
  4974. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
  4975. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  4976. <ReferentialConstraint>
  4977. <Principal Role="BemsPriceCode">
  4978. <PropertyRef Name="PriceCode" />
  4979. </Principal>
  4980. <Dependent Role="BemsSitePriceHistory">
  4981. <PropertyRef Name="PriceCode" />
  4982. </Dependent>
  4983. </ReferentialConstraint>
  4984. </Association>
  4985. <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
  4986. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4987. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  4988. <ReferentialConstraint>
  4989. <Principal Role="BemsPriceType">
  4990. <PropertyRef Name="PriceTypeId" />
  4991. </Principal>
  4992. <Dependent Role="BemsSitePriceHistory">
  4993. <PropertyRef Name="PriceTypeId" />
  4994. </Dependent>
  4995. </ReferentialConstraint>
  4996. </Association>
  4997. <Association Name="FK_BemsSitePriceHistory_CmSite">
  4998. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4999. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5000. <ReferentialConstraint>
  5001. <Principal Role="CmSite">
  5002. <PropertyRef Name="SiteId" />
  5003. </Principal>
  5004. <Dependent Role="BemsSitePriceHistory">
  5005. <PropertyRef Name="SiteId" />
  5006. </Dependent>
  5007. </ReferentialConstraint>
  5008. </Association>
  5009. <Association Name="FK_CmAnnouncement_CmBusinessField">
  5010. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  5011. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5012. <ReferentialConstraint>
  5013. <Principal Role="CmBusinessField">
  5014. <PropertyRef Name="SiteId" />
  5015. <PropertyRef Name="BusinessFieldId" />
  5016. </Principal>
  5017. <Dependent Role="CmAnnouncement">
  5018. <PropertyRef Name="SiteId" />
  5019. <PropertyRef Name="BusinessFieldId" />
  5020. </Dependent>
  5021. </ReferentialConstraint>
  5022. </Association>
  5023. <Association Name="FK_CmAnnouncement_CmFile">
  5024. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5025. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5026. <ReferentialConstraint>
  5027. <Principal Role="CmFile">
  5028. <PropertyRef Name="SiteId" />
  5029. <PropertyRef Name="FileId" />
  5030. </Principal>
  5031. <Dependent Role="CmAnnouncement">
  5032. <PropertyRef Name="SiteId" />
  5033. <PropertyRef Name="FileId" />
  5034. </Dependent>
  5035. </ReferentialConstraint>
  5036. </Association>
  5037. <Association Name="FK_CmAnnouncement_CmUser">
  5038. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5039. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5040. <ReferentialConstraint>
  5041. <Principal Role="CmUser">
  5042. <PropertyRef Name="SiteId" />
  5043. <PropertyRef Name="UserId" />
  5044. </Principal>
  5045. <Dependent Role="CmAnnouncement">
  5046. <PropertyRef Name="SiteId" />
  5047. <PropertyRef Name="RegisterUserId" />
  5048. </Dependent>
  5049. </ReferentialConstraint>
  5050. </Association>
  5051. <Association Name="FK_CmFacilityTempSet_CmFacility">
  5052. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  5053. <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="0..1" />
  5054. <ReferentialConstraint>
  5055. <Principal Role="CmFacility">
  5056. <PropertyRef Name="SiteId" />
  5057. <PropertyRef Name="FacilityCode" />
  5058. </Principal>
  5059. <Dependent Role="CmFacilityTempSet">
  5060. <PropertyRef Name="SiteId" />
  5061. <PropertyRef Name="FacilityCode" />
  5062. </Dependent>
  5063. </ReferentialConstraint>
  5064. </Association>
  5065. <Association Name="FK_CmFacilityTempSet_CmSite">
  5066. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5067. <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="*" />
  5068. <ReferentialConstraint>
  5069. <Principal Role="CmSite">
  5070. <PropertyRef Name="SiteId" />
  5071. </Principal>
  5072. <Dependent Role="CmFacilityTempSet">
  5073. <PropertyRef Name="SiteId" />
  5074. </Dependent>
  5075. </ReferentialConstraint>
  5076. </Association>
  5077. <Association Name="FK_CmMenu_CmSite">
  5078. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5079. <End Role="CmMenu" Type="Self.CmMenu" Multiplicity="*" />
  5080. <ReferentialConstraint>
  5081. <Principal Role="CmSite">
  5082. <PropertyRef Name="SiteId" />
  5083. </Principal>
  5084. <Dependent Role="CmMenu">
  5085. <PropertyRef Name="SiteId" />
  5086. </Dependent>
  5087. </ReferentialConstraint>
  5088. </Association>
  5089. <Association Name="FK_CmPartnerType_CmPartner">
  5090. <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="1" />
  5091. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="*" />
  5092. <ReferentialConstraint>
  5093. <Principal Role="CmPartnerType">
  5094. <PropertyRef Name="PartnerTypeId" />
  5095. </Principal>
  5096. <Dependent Role="CmPartner">
  5097. <PropertyRef Name="PartnerTypeId" />
  5098. </Dependent>
  5099. </ReferentialConstraint>
  5100. </Association>
  5101. <Association Name="FK_CmPatrolCourse_CmSite">
  5102. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5103. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="*" />
  5104. <ReferentialConstraint>
  5105. <Principal Role="CmSite">
  5106. <PropertyRef Name="SiteId" />
  5107. </Principal>
  5108. <Dependent Role="CmPatrolCourse">
  5109. <PropertyRef Name="SiteId" />
  5110. </Dependent>
  5111. </ReferentialConstraint>
  5112. </Association>
  5113. <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
  5114. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
  5115. <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
  5116. <ReferentialConstraint>
  5117. <Principal Role="CmPatrolCourse">
  5118. <PropertyRef Name="SiteId" />
  5119. <PropertyRef Name="PatrolCourseId" />
  5120. </Principal>
  5121. <Dependent Role="CmPatrolCoursePos">
  5122. <PropertyRef Name="SiteId" />
  5123. <PropertyRef Name="PatrolCourseId" />
  5124. </Dependent>
  5125. </ReferentialConstraint>
  5126. </Association>
  5127. <Association Name="FK_CmPatrolCoursePos_CmSite">
  5128. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5129. <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
  5130. <ReferentialConstraint>
  5131. <Principal Role="CmSite">
  5132. <PropertyRef Name="SiteId" />
  5133. </Principal>
  5134. <Dependent Role="CmPatrolCoursePos">
  5135. <PropertyRef Name="SiteId" />
  5136. </Dependent>
  5137. </ReferentialConstraint>
  5138. </Association>
  5139. <Association Name="FK_CmPatrolGroup_CmSite">
  5140. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5141. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="*" />
  5142. <ReferentialConstraint>
  5143. <Principal Role="CmSite">
  5144. <PropertyRef Name="SiteId" />
  5145. </Principal>
  5146. <Dependent Role="CmPatrolGroup">
  5147. <PropertyRef Name="SiteId" />
  5148. </Dependent>
  5149. </ReferentialConstraint>
  5150. </Association>
  5151. <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
  5152. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
  5153. <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
  5154. <ReferentialConstraint>
  5155. <Principal Role="CmPatrolGroup">
  5156. <PropertyRef Name="SiteId" />
  5157. <PropertyRef Name="PatrolGroupId" />
  5158. </Principal>
  5159. <Dependent Role="CmPatrolGroupUser">
  5160. <PropertyRef Name="SiteId" />
  5161. <PropertyRef Name="PatrolGroupId" />
  5162. </Dependent>
  5163. </ReferentialConstraint>
  5164. </Association>
  5165. <Association Name="FK_CmPatrolGroupUser_CmUser">
  5166. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5167. <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
  5168. <ReferentialConstraint>
  5169. <Principal Role="CmUser">
  5170. <PropertyRef Name="SiteId" />
  5171. <PropertyRef Name="UserId" />
  5172. </Principal>
  5173. <Dependent Role="CmPatrolGroupUser">
  5174. <PropertyRef Name="SiteId" />
  5175. <PropertyRef Name="UserId" />
  5176. </Dependent>
  5177. </ReferentialConstraint>
  5178. </Association>
  5179. <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
  5180. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="1" />
  5181. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5182. <ReferentialConstraint>
  5183. <Principal Role="CmPatrolSchedule">
  5184. <PropertyRef Name="SiteId" />
  5185. <PropertyRef Name="ScheduleId" />
  5186. </Principal>
  5187. <Dependent Role="CmPatrolHistory">
  5188. <PropertyRef Name="SiteId" />
  5189. <PropertyRef Name="ScheduleId" />
  5190. </Dependent>
  5191. </ReferentialConstraint>
  5192. </Association>
  5193. <Association Name="FK_CmPatrolHistory_CmPatrolType">
  5194. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
  5195. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5196. <ReferentialConstraint>
  5197. <Principal Role="CmPatrolType">
  5198. <PropertyRef Name="SiteId" />
  5199. <PropertyRef Name="PatrolTypeId" />
  5200. </Principal>
  5201. <Dependent Role="CmPatrolHistory">
  5202. <PropertyRef Name="SiteId" />
  5203. <PropertyRef Name="resultTypeId" />
  5204. </Dependent>
  5205. </ReferentialConstraint>
  5206. </Association>
  5207. <Association Name="FK_CmPatrolHistory_CmSite">
  5208. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5209. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5210. <ReferentialConstraint>
  5211. <Principal Role="CmSite">
  5212. <PropertyRef Name="SiteId" />
  5213. </Principal>
  5214. <Dependent Role="CmPatrolHistory">
  5215. <PropertyRef Name="SiteId" />
  5216. </Dependent>
  5217. </ReferentialConstraint>
  5218. </Association>
  5219. <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
  5220. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="1" />
  5221. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5222. <ReferentialConstraint>
  5223. <Principal Role="CmPatrolPos">
  5224. <PropertyRef Name="SiteId" />
  5225. <PropertyRef Name="PosId" />
  5226. </Principal>
  5227. <Dependent Role="CmPatrolHistoryPos">
  5228. <PropertyRef Name="SiteId" />
  5229. <PropertyRef Name="PosId" />
  5230. </Dependent>
  5231. </ReferentialConstraint>
  5232. </Association>
  5233. <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
  5234. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
  5235. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5236. <ReferentialConstraint>
  5237. <Principal Role="CmPatrolType">
  5238. <PropertyRef Name="SiteId" />
  5239. <PropertyRef Name="PatrolTypeId" />
  5240. </Principal>
  5241. <Dependent Role="CmPatrolHistoryPos">
  5242. <PropertyRef Name="SiteId" />
  5243. <PropertyRef Name="resultType" />
  5244. </Dependent>
  5245. </ReferentialConstraint>
  5246. </Association>
  5247. <Association Name="FK_CmPatrolHistoryPos_CmSite">
  5248. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5249. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5250. <ReferentialConstraint>
  5251. <Principal Role="CmSite">
  5252. <PropertyRef Name="SiteId" />
  5253. </Principal>
  5254. <Dependent Role="CmPatrolHistoryPos">
  5255. <PropertyRef Name="SiteId" />
  5256. </Dependent>
  5257. </ReferentialConstraint>
  5258. </Association>
  5259. <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
  5260. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
  5261. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5262. <ReferentialConstraint>
  5263. <Principal Role="CmPatrolCourse">
  5264. <PropertyRef Name="SiteId" />
  5265. <PropertyRef Name="PatrolCourseId" />
  5266. </Principal>
  5267. <Dependent Role="CmPatrolPlan">
  5268. <PropertyRef Name="SiteId" />
  5269. <PropertyRef Name="CourseId" />
  5270. </Dependent>
  5271. </ReferentialConstraint>
  5272. </Association>
  5273. <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
  5274. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
  5275. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5276. <ReferentialConstraint>
  5277. <Principal Role="CmPatrolGroup">
  5278. <PropertyRef Name="SiteId" />
  5279. <PropertyRef Name="PatrolGroupId" />
  5280. </Principal>
  5281. <Dependent Role="CmPatrolPlan">
  5282. <PropertyRef Name="SiteId" />
  5283. <PropertyRef Name="GroupId" />
  5284. </Dependent>
  5285. </ReferentialConstraint>
  5286. </Association>
  5287. <Association Name="FK_CmPatrolPlan_CmSite">
  5288. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5289. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5290. <ReferentialConstraint>
  5291. <Principal Role="CmSite">
  5292. <PropertyRef Name="SiteId" />
  5293. </Principal>
  5294. <Dependent Role="CmPatrolPlan">
  5295. <PropertyRef Name="SiteId" />
  5296. </Dependent>
  5297. </ReferentialConstraint>
  5298. </Association>
  5299. <Association Name="FK_CmPatrolPos_CmBuilding">
  5300. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  5301. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5302. <ReferentialConstraint>
  5303. <Principal Role="CmBuilding">
  5304. <PropertyRef Name="SiteId" />
  5305. <PropertyRef Name="BuildingId" />
  5306. </Principal>
  5307. <Dependent Role="CmPatrolPos">
  5308. <PropertyRef Name="SiteId" />
  5309. <PropertyRef Name="BuildingId" />
  5310. </Dependent>
  5311. </ReferentialConstraint>
  5312. </Association>
  5313. <Association Name="FK_CmPatrolPos_CmFloor">
  5314. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  5315. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5316. <ReferentialConstraint>
  5317. <Principal Role="CmFloor">
  5318. <PropertyRef Name="SiteId" />
  5319. <PropertyRef Name="BuildingId" />
  5320. <PropertyRef Name="FloorId" />
  5321. </Principal>
  5322. <Dependent Role="CmPatrolPos">
  5323. <PropertyRef Name="SiteId" />
  5324. <PropertyRef Name="BuildingId" />
  5325. <PropertyRef Name="FloorId" />
  5326. </Dependent>
  5327. </ReferentialConstraint>
  5328. </Association>
  5329. <Association Name="FK_CmPatrolPos_CmSite">
  5330. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5331. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5332. <ReferentialConstraint>
  5333. <Principal Role="CmSite">
  5334. <PropertyRef Name="SiteId" />
  5335. </Principal>
  5336. <Dependent Role="CmPatrolPos">
  5337. <PropertyRef Name="SiteId" />
  5338. </Dependent>
  5339. </ReferentialConstraint>
  5340. </Association>
  5341. <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
  5342. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="1" />
  5343. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
  5344. <ReferentialConstraint>
  5345. <Principal Role="CmPatrolPlan">
  5346. <PropertyRef Name="SiteId" />
  5347. <PropertyRef Name="PatrolPlanId" />
  5348. </Principal>
  5349. <Dependent Role="CmPatrolSchedule">
  5350. <PropertyRef Name="SiteId" />
  5351. <PropertyRef Name="PlanId" />
  5352. </Dependent>
  5353. </ReferentialConstraint>
  5354. </Association>
  5355. <Association Name="FK_CmPatrolSchedule_CmSite">
  5356. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5357. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
  5358. <ReferentialConstraint>
  5359. <Principal Role="CmSite">
  5360. <PropertyRef Name="SiteId" />
  5361. </Principal>
  5362. <Dependent Role="CmPatrolSchedule">
  5363. <PropertyRef Name="SiteId" />
  5364. </Dependent>
  5365. </ReferentialConstraint>
  5366. </Association>
  5367. <Association Name="FK_CmPatrolType_CmSite">
  5368. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5369. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="*" />
  5370. <ReferentialConstraint>
  5371. <Principal Role="CmSite">
  5372. <PropertyRef Name="SiteId" />
  5373. </Principal>
  5374. <Dependent Role="CmPatrolType">
  5375. <PropertyRef Name="SiteId" />
  5376. </Dependent>
  5377. </ReferentialConstraint>
  5378. </Association>
  5379. <Association Name="FK_CmUser_CmBusinessField">
  5380. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  5381. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5382. <ReferentialConstraint>
  5383. <Principal Role="CmBusinessField">
  5384. <PropertyRef Name="SiteId" />
  5385. <PropertyRef Name="BusinessFieldId" />
  5386. </Principal>
  5387. <Dependent Role="CmUser">
  5388. <PropertyRef Name="SiteId" />
  5389. <PropertyRef Name="BusinessFieldId" />
  5390. </Dependent>
  5391. </ReferentialConstraint>
  5392. </Association>
  5393. <Association Name="FK_CmUser_CmCompany">
  5394. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  5395. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5396. <ReferentialConstraint>
  5397. <Principal Role="CmCompany">
  5398. <PropertyRef Name="SiteId" />
  5399. <PropertyRef Name="CompanyId" />
  5400. </Principal>
  5401. <Dependent Role="CmUser">
  5402. <PropertyRef Name="SiteId" />
  5403. <PropertyRef Name="CompanyId" />
  5404. </Dependent>
  5405. </ReferentialConstraint>
  5406. </Association>
  5407. <Association Name="FK_CmUser_CmDepartment">
  5408. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  5409. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5410. <ReferentialConstraint>
  5411. <Principal Role="CmDepartment">
  5412. <PropertyRef Name="SiteId" />
  5413. <PropertyRef Name="CompanyId" />
  5414. <PropertyRef Name="DepartmentId" />
  5415. </Principal>
  5416. <Dependent Role="CmUser">
  5417. <PropertyRef Name="SiteId" />
  5418. <PropertyRef Name="CompanyId" />
  5419. <PropertyRef Name="DepartmentId" />
  5420. </Dependent>
  5421. </ReferentialConstraint>
  5422. </Association>
  5423. <Association Name="FK_CmUser_CmPosition">
  5424. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
  5425. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5426. <ReferentialConstraint>
  5427. <Principal Role="CmPosition">
  5428. <PropertyRef Name="SiteId" />
  5429. <PropertyRef Name="PositionId" />
  5430. </Principal>
  5431. <Dependent Role="CmUser">
  5432. <PropertyRef Name="SiteId" />
  5433. <PropertyRef Name="PositionId" />
  5434. </Dependent>
  5435. </ReferentialConstraint>
  5436. </Association>
  5437. <Association Name="FK_CmUser_CmUserGroup">
  5438. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
  5439. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5440. <ReferentialConstraint>
  5441. <Principal Role="CmUserGroup">
  5442. <PropertyRef Name="SiteId" />
  5443. <PropertyRef Name="UserGroupId" />
  5444. </Principal>
  5445. <Dependent Role="CmUser">
  5446. <PropertyRef Name="SiteId" />
  5447. <PropertyRef Name="UserGroupId" />
  5448. </Dependent>
  5449. </ReferentialConstraint>
  5450. </Association>
  5451. <Association Name="FK_CmUserLoginHistory_CmUser">
  5452. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5453. <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
  5454. <ReferentialConstraint>
  5455. <Principal Role="CmUser">
  5456. <PropertyRef Name="SiteId" />
  5457. <PropertyRef Name="UserId" />
  5458. </Principal>
  5459. <Dependent Role="CmUserLoginHistory">
  5460. <PropertyRef Name="SiteId" />
  5461. <PropertyRef Name="UserId" />
  5462. </Dependent>
  5463. </ReferentialConstraint>
  5464. </Association>
  5465. <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
  5466. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  5467. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5468. <ReferentialConstraint>
  5469. <Principal Role="CmBuilding">
  5470. <PropertyRef Name="SiteId" />
  5471. <PropertyRef Name="BuildingId" />
  5472. </Principal>
  5473. <Dependent Role="CmZoneTempHumiSet">
  5474. <PropertyRef Name="SiteId" />
  5475. <PropertyRef Name="BuildingId" />
  5476. </Dependent>
  5477. </ReferentialConstraint>
  5478. </Association>
  5479. <Association Name="FK_CmZoneTempHumiSet_CmFloor">
  5480. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  5481. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5482. <ReferentialConstraint>
  5483. <Principal Role="CmFloor">
  5484. <PropertyRef Name="SiteId" />
  5485. <PropertyRef Name="BuildingId" />
  5486. <PropertyRef Name="FloorId" />
  5487. </Principal>
  5488. <Dependent Role="CmZoneTempHumiSet">
  5489. <PropertyRef Name="SiteId" />
  5490. <PropertyRef Name="BuildingId" />
  5491. <PropertyRef Name="FloorId" />
  5492. </Dependent>
  5493. </ReferentialConstraint>
  5494. </Association>
  5495. <Association Name="FK_CmZoneTempHumiSet_CmSite">
  5496. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5497. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5498. <ReferentialConstraint>
  5499. <Principal Role="CmSite">
  5500. <PropertyRef Name="SiteId" />
  5501. </Principal>
  5502. <Dependent Role="CmZoneTempHumiSet">
  5503. <PropertyRef Name="SiteId" />
  5504. </Dependent>
  5505. </ReferentialConstraint>
  5506. </Association>
  5507. <Association Name="FK_CmZoneTempHumiSet_CmZone">
  5508. <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
  5509. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
  5510. <ReferentialConstraint>
  5511. <Principal Role="CmZone">
  5512. <PropertyRef Name="SiteId" />
  5513. <PropertyRef Name="BuildingId" />
  5514. <PropertyRef Name="FloorId" />
  5515. <PropertyRef Name="ZoneId" />
  5516. </Principal>
  5517. <Dependent Role="CmZoneTempHumiSet">
  5518. <PropertyRef Name="SiteId" />
  5519. <PropertyRef Name="BuildingId" />
  5520. <PropertyRef Name="FloorId" />
  5521. <PropertyRef Name="ZoneId" />
  5522. </Dependent>
  5523. </ReferentialConstraint>
  5524. </Association>
  5525. <Association Name="FK_FmsAccident_CmCompany">
  5526. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  5527. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5528. <ReferentialConstraint>
  5529. <Principal Role="CmCompany">
  5530. <PropertyRef Name="SiteId" />
  5531. <PropertyRef Name="CompanyId" />
  5532. </Principal>
  5533. <Dependent Role="FmsAccident">
  5534. <PropertyRef Name="SiteId" />
  5535. <PropertyRef Name="CompanyId" />
  5536. </Dependent>
  5537. </ReferentialConstraint>
  5538. </Association>
  5539. <Association Name="FK_FmsAccident_CmDepartment">
  5540. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  5541. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5542. <ReferentialConstraint>
  5543. <Principal Role="CmDepartment">
  5544. <PropertyRef Name="SiteId" />
  5545. <PropertyRef Name="CompanyId" />
  5546. <PropertyRef Name="DepartmentId" />
  5547. </Principal>
  5548. <Dependent Role="FmsAccident">
  5549. <PropertyRef Name="SiteId" />
  5550. <PropertyRef Name="CompanyId" />
  5551. <PropertyRef Name="DepartmentId" />
  5552. </Dependent>
  5553. </ReferentialConstraint>
  5554. </Association>
  5555. <Association Name="FK_FmsAccident_CmFile1">
  5556. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5557. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5558. <ReferentialConstraint>
  5559. <Principal Role="CmFile">
  5560. <PropertyRef Name="SiteId" />
  5561. <PropertyRef Name="FileId" />
  5562. </Principal>
  5563. <Dependent Role="FmsAccident">
  5564. <PropertyRef Name="SiteId" />
  5565. <PropertyRef Name="FileId1" />
  5566. </Dependent>
  5567. </ReferentialConstraint>
  5568. </Association>
  5569. <Association Name="FK_FmsAccident_CmFile2">
  5570. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5571. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5572. <ReferentialConstraint>
  5573. <Principal Role="CmFile">
  5574. <PropertyRef Name="SiteId" />
  5575. <PropertyRef Name="FileId" />
  5576. </Principal>
  5577. <Dependent Role="FmsAccident">
  5578. <PropertyRef Name="SiteId" />
  5579. <PropertyRef Name="FileId2" />
  5580. </Dependent>
  5581. </ReferentialConstraint>
  5582. </Association>
  5583. <Association Name="FK_FmsAccident_CmFile3">
  5584. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5585. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5586. <ReferentialConstraint>
  5587. <Principal Role="CmFile">
  5588. <PropertyRef Name="SiteId" />
  5589. <PropertyRef Name="FileId" />
  5590. </Principal>
  5591. <Dependent Role="FmsAccident">
  5592. <PropertyRef Name="SiteId" />
  5593. <PropertyRef Name="FileId3" />
  5594. </Dependent>
  5595. </ReferentialConstraint>
  5596. </Association>
  5597. <Association Name="FK_FmsAccident_FmsAccidentCodeType">
  5598. <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
  5599. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5600. <ReferentialConstraint>
  5601. <Principal Role="FmsAccidentCodeType">
  5602. <PropertyRef Name="SiteId" />
  5603. <PropertyRef Name="AccidentTypeId" />
  5604. </Principal>
  5605. <Dependent Role="FmsAccident">
  5606. <PropertyRef Name="SiteId" />
  5607. <PropertyRef Name="AccidentTypeId" />
  5608. </Dependent>
  5609. </ReferentialConstraint>
  5610. </Association>
  5611. <Association Name="FK_FmsBudgetDetail_FmsBudget">
  5612. <End Role="FmsBudget" Type="Self.FmsBudget" Multiplicity="1">
  5613. <OnDelete Action="Cascade" />
  5614. </End>
  5615. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
  5616. <ReferentialConstraint>
  5617. <Principal Role="FmsBudget">
  5618. <PropertyRef Name="SiteId" />
  5619. <PropertyRef Name="Year" />
  5620. </Principal>
  5621. <Dependent Role="FmsBudgetDetail">
  5622. <PropertyRef Name="SiteId" />
  5623. <PropertyRef Name="Year" />
  5624. </Dependent>
  5625. </ReferentialConstraint>
  5626. </Association>
  5627. <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
  5628. <End Role="FmsBudgetCodeClass" Type="Self.FmsBudgetCodeClass" Multiplicity="1" />
  5629. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
  5630. <ReferentialConstraint>
  5631. <Principal Role="FmsBudgetCodeClass">
  5632. <PropertyRef Name="SiteId" />
  5633. <PropertyRef Name="BudgetClassId" />
  5634. </Principal>
  5635. <Dependent Role="FmsBudgetDetail">
  5636. <PropertyRef Name="SiteId" />
  5637. <PropertyRef Name="BudgetClassId" />
  5638. </Dependent>
  5639. </ReferentialConstraint>
  5640. </Association>
  5641. <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  5642. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="1" />
  5643. <End Role="FmsBudgetDetailExecution" Type="Self.FmsBudgetDetailExecution" Multiplicity="*" />
  5644. <ReferentialConstraint>
  5645. <Principal Role="FmsBudgetDetail">
  5646. <PropertyRef Name="SiteId" />
  5647. <PropertyRef Name="Year" />
  5648. <PropertyRef Name="BudgetClassId" />
  5649. <PropertyRef Name="ParentBudgetClassId" />
  5650. </Principal>
  5651. <Dependent Role="FmsBudgetDetailExecution">
  5652. <PropertyRef Name="SiteId" />
  5653. <PropertyRef Name="Year" />
  5654. <PropertyRef Name="BudgetClassId" />
  5655. <PropertyRef Name="ParentBudgetClassId" />
  5656. </Dependent>
  5657. </ReferentialConstraint>
  5658. </Association>
  5659. <Association Name="FK_FmsConstruction_CmFile1">
  5660. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5661. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5662. <ReferentialConstraint>
  5663. <Principal Role="CmFile">
  5664. <PropertyRef Name="SiteId" />
  5665. <PropertyRef Name="FileId" />
  5666. </Principal>
  5667. <Dependent Role="FmsConstruction">
  5668. <PropertyRef Name="SiteId" />
  5669. <PropertyRef Name="FileId1" />
  5670. </Dependent>
  5671. </ReferentialConstraint>
  5672. </Association>
  5673. <Association Name="FK_FmsConstruction_CmFile2">
  5674. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5675. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5676. <ReferentialConstraint>
  5677. <Principal Role="CmFile">
  5678. <PropertyRef Name="SiteId" />
  5679. <PropertyRef Name="FileId" />
  5680. </Principal>
  5681. <Dependent Role="FmsConstruction">
  5682. <PropertyRef Name="SiteId" />
  5683. <PropertyRef Name="FileId2" />
  5684. </Dependent>
  5685. </ReferentialConstraint>
  5686. </Association>
  5687. <Association Name="FK_FmsConstruction_CmFile3">
  5688. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5689. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5690. <ReferentialConstraint>
  5691. <Principal Role="CmFile">
  5692. <PropertyRef Name="SiteId" />
  5693. <PropertyRef Name="FileId" />
  5694. </Principal>
  5695. <Dependent Role="FmsConstruction">
  5696. <PropertyRef Name="SiteId" />
  5697. <PropertyRef Name="FileId3" />
  5698. </Dependent>
  5699. </ReferentialConstraint>
  5700. </Association>
  5701. <Association Name="FK_FmsConstruction_CmPartner">
  5702. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="1" />
  5703. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5704. <ReferentialConstraint>
  5705. <Principal Role="CmPartner">
  5706. <PropertyRef Name="SiteId" />
  5707. <PropertyRef Name="PartnerId" />
  5708. </Principal>
  5709. <Dependent Role="FmsConstruction">
  5710. <PropertyRef Name="SiteId" />
  5711. <PropertyRef Name="PartnerId" />
  5712. </Dependent>
  5713. </ReferentialConstraint>
  5714. </Association>
  5715. <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
  5716. <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
  5717. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5718. <ReferentialConstraint>
  5719. <Principal Role="FmsConstructionCodeProgress">
  5720. <PropertyRef Name="ProgressId" />
  5721. </Principal>
  5722. <Dependent Role="FmsConstruction">
  5723. <PropertyRef Name="ProgressId" />
  5724. </Dependent>
  5725. </ReferentialConstraint>
  5726. </Association>
  5727. <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
  5728. <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
  5729. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5730. <ReferentialConstraint>
  5731. <Principal Role="FmsConstructionCodeType">
  5732. <PropertyRef Name="SiteId" />
  5733. <PropertyRef Name="ConstructionTypeId" />
  5734. </Principal>
  5735. <Dependent Role="FmsConstruction">
  5736. <PropertyRef Name="SiteId" />
  5737. <PropertyRef Name="ConstructionTypeId" />
  5738. </Dependent>
  5739. </ReferentialConstraint>
  5740. </Association>
  5741. <Association Name="FK_FmsConstructionEstimation_CmUser">
  5742. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5743. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
  5744. <ReferentialConstraint>
  5745. <Principal Role="CmUser">
  5746. <PropertyRef Name="SiteId" />
  5747. <PropertyRef Name="UserId" />
  5748. </Principal>
  5749. <Dependent Role="FmsConstructionEstimation">
  5750. <PropertyRef Name="SiteId" />
  5751. <PropertyRef Name="EstimateUserId" />
  5752. </Dependent>
  5753. </ReferentialConstraint>
  5754. </Association>
  5755. <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
  5756. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
  5757. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
  5758. <ReferentialConstraint>
  5759. <Principal Role="FmsConstruction">
  5760. <PropertyRef Name="SiteId" />
  5761. <PropertyRef Name="ConstructionId" />
  5762. </Principal>
  5763. <Dependent Role="FmsConstructionEstimation">
  5764. <PropertyRef Name="SiteId" />
  5765. <PropertyRef Name="ConstructionId" />
  5766. </Dependent>
  5767. </ReferentialConstraint>
  5768. </Association>
  5769. <Association Name="FK_FmsContract_CmPartner">
  5770. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  5771. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5772. <ReferentialConstraint>
  5773. <Principal Role="CmPartner">
  5774. <PropertyRef Name="SiteId" />
  5775. <PropertyRef Name="PartnerId" />
  5776. </Principal>
  5777. <Dependent Role="FmsContract">
  5778. <PropertyRef Name="SiteId" />
  5779. <PropertyRef Name="PartnerId" />
  5780. </Dependent>
  5781. </ReferentialConstraint>
  5782. </Association>
  5783. <Association Name="FK_FmsContract_CmPartnerType">
  5784. <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="0..1" />
  5785. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5786. <ReferentialConstraint>
  5787. <Principal Role="CmPartnerType">
  5788. <PropertyRef Name="PartnerTypeId" />
  5789. </Principal>
  5790. <Dependent Role="FmsContract">
  5791. <PropertyRef Name="PartnerTypeId" />
  5792. </Dependent>
  5793. </ReferentialConstraint>
  5794. </Association>
  5795. <Association Name="FK_FmsContract_FmsContractClass">
  5796. <End Role="FmsContractClass" Type="Self.FmsContractClass" Multiplicity="0..1" />
  5797. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5798. <ReferentialConstraint>
  5799. <Principal Role="FmsContractClass">
  5800. <PropertyRef Name="SiteId" />
  5801. <PropertyRef Name="ContractClassId" />
  5802. </Principal>
  5803. <Dependent Role="FmsContract">
  5804. <PropertyRef Name="SiteId" />
  5805. <PropertyRef Name="ContractClassId" />
  5806. </Dependent>
  5807. </ReferentialConstraint>
  5808. </Association>
  5809. <Association Name="FK_FmsContract_FmsContractMethod">
  5810. <End Role="FmsContractMethod" Type="Self.FmsContractMethod" Multiplicity="0..1" />
  5811. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5812. <ReferentialConstraint>
  5813. <Principal Role="FmsContractMethod">
  5814. <PropertyRef Name="SiteId" />
  5815. <PropertyRef Name="ContractMethodId" />
  5816. </Principal>
  5817. <Dependent Role="FmsContract">
  5818. <PropertyRef Name="SiteId" />
  5819. <PropertyRef Name="ContractMethodId" />
  5820. </Dependent>
  5821. </ReferentialConstraint>
  5822. </Association>
  5823. <Association Name="FK_FmsContract_FmsContractType">
  5824. <End Role="FmsContractType" Type="Self.FmsContractType" Multiplicity="0..1" />
  5825. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5826. <ReferentialConstraint>
  5827. <Principal Role="FmsContractType">
  5828. <PropertyRef Name="SiteId" />
  5829. <PropertyRef Name="ContractTypeId" />
  5830. </Principal>
  5831. <Dependent Role="FmsContract">
  5832. <PropertyRef Name="SiteId" />
  5833. <PropertyRef Name="ContractTypeId" />
  5834. </Dependent>
  5835. </ReferentialConstraint>
  5836. </Association>
  5837. <Association Name="FK_FmsContract_FmsPaymentType">
  5838. <End Role="FmsPaymentType" Type="Self.FmsPaymentType" Multiplicity="0..1" />
  5839. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5840. <ReferentialConstraint>
  5841. <Principal Role="FmsPaymentType">
  5842. <PropertyRef Name="SiteId" />
  5843. <PropertyRef Name="PaymentTypeId" />
  5844. </Principal>
  5845. <Dependent Role="FmsContract">
  5846. <PropertyRef Name="SiteId" />
  5847. <PropertyRef Name="PartnerTypeId" />
  5848. </Dependent>
  5849. </ReferentialConstraint>
  5850. </Association>
  5851. <Association Name="FK_FmsDailyCheckReport_CmUser">
  5852. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5853. <End Role="FmsDailyCheckReport" Type="Self.FmsDailyCheckReport" Multiplicity="*" />
  5854. <ReferentialConstraint>
  5855. <Principal Role="CmUser">
  5856. <PropertyRef Name="SiteId" />
  5857. <PropertyRef Name="UserId" />
  5858. </Principal>
  5859. <Dependent Role="FmsDailyCheckReport">
  5860. <PropertyRef Name="SiteId" />
  5861. <PropertyRef Name="RegisterUserId" />
  5862. </Dependent>
  5863. </ReferentialConstraint>
  5864. </Association>
  5865. <Association Name="FK_FmsDailyReport_CmBusinessField">
  5866. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  5867. <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
  5868. <ReferentialConstraint>
  5869. <Principal Role="CmBusinessField">
  5870. <PropertyRef Name="SiteId" />
  5871. <PropertyRef Name="BusinessFieldId" />
  5872. </Principal>
  5873. <Dependent Role="FmsDailyReport">
  5874. <PropertyRef Name="SiteId" />
  5875. <PropertyRef Name="BusinessFieldId" />
  5876. </Dependent>
  5877. </ReferentialConstraint>
  5878. </Association>
  5879. <Association Name="FK_FmsDailyReport_CmUser">
  5880. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5881. <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
  5882. <ReferentialConstraint>
  5883. <Principal Role="CmUser">
  5884. <PropertyRef Name="SiteId" />
  5885. <PropertyRef Name="UserId" />
  5886. </Principal>
  5887. <Dependent Role="FmsDailyReport">
  5888. <PropertyRef Name="SiteId" />
  5889. <PropertyRef Name="RegisterUserId" />
  5890. </Dependent>
  5891. </ReferentialConstraint>
  5892. </Association>
  5893. <Association Name="FK_FmsEquipment_CmUser">
  5894. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5895. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5896. <ReferentialConstraint>
  5897. <Principal Role="CmUser">
  5898. <PropertyRef Name="SiteId" />
  5899. <PropertyRef Name="UserId" />
  5900. </Principal>
  5901. <Dependent Role="FmsEquipment">
  5902. <PropertyRef Name="SiteId" />
  5903. <PropertyRef Name="RegisterUserId" />
  5904. </Dependent>
  5905. </ReferentialConstraint>
  5906. </Association>
  5907. <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
  5908. <End Role="FmsEquipmentCodeType" Type="Self.FmsEquipmentCodeType" Multiplicity="1" />
  5909. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5910. <ReferentialConstraint>
  5911. <Principal Role="FmsEquipmentCodeType">
  5912. <PropertyRef Name="SiteId" />
  5913. <PropertyRef Name="EquipmentTypeId" />
  5914. </Principal>
  5915. <Dependent Role="FmsEquipment">
  5916. <PropertyRef Name="SiteId" />
  5917. <PropertyRef Name="EquipmentTypeId" />
  5918. </Dependent>
  5919. </ReferentialConstraint>
  5920. </Association>
  5921. <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
  5922. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
  5923. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5924. <ReferentialConstraint>
  5925. <Principal Role="FmsMaterialWarehouse">
  5926. <PropertyRef Name="SiteId" />
  5927. <PropertyRef Name="WarehouseId" />
  5928. </Principal>
  5929. <Dependent Role="FmsEquipment">
  5930. <PropertyRef Name="SiteId" />
  5931. <PropertyRef Name="WarehouseId" />
  5932. </Dependent>
  5933. </ReferentialConstraint>
  5934. </Association>
  5935. <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
  5936. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="1" />
  5937. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  5938. <ReferentialConstraint>
  5939. <Principal Role="FmsEquipment">
  5940. <PropertyRef Name="SiteId" />
  5941. <PropertyRef Name="EquipmentId" />
  5942. </Principal>
  5943. <Dependent Role="FmsEquipmentHistory">
  5944. <PropertyRef Name="SiteId" />
  5945. <PropertyRef Name="EquipmentId" />
  5946. </Dependent>
  5947. </ReferentialConstraint>
  5948. </Association>
  5949. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  5950. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  5951. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  5952. <ReferentialConstraint>
  5953. <Principal Role="FmsEquipmentCodeStateType">
  5954. <PropertyRef Name="EquipmentStateTypeId" />
  5955. </Principal>
  5956. <Dependent Role="FmsEquipmentHistory">
  5957. <PropertyRef Name="EquipmentStateTypeId" />
  5958. </Dependent>
  5959. </ReferentialConstraint>
  5960. </Association>
  5961. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  5962. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="0..1">
  5963. <OnDelete Action="Cascade" />
  5964. </End>
  5965. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  5966. <ReferentialConstraint>
  5967. <Principal Role="FmsEquipmentRentInfo">
  5968. <PropertyRef Name="SiteId" />
  5969. <PropertyRef Name="EquipmentRentId" />
  5970. </Principal>
  5971. <Dependent Role="FmsEquipmentHistory">
  5972. <PropertyRef Name="SiteId" />
  5973. <PropertyRef Name="EquipmentRentId" />
  5974. </Dependent>
  5975. </ReferentialConstraint>
  5976. </Association>
  5977. <Association Name="FK_FmsEquipmentRentInfo_CmUser">
  5978. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5979. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  5980. <ReferentialConstraint>
  5981. <Principal Role="CmUser">
  5982. <PropertyRef Name="SiteId" />
  5983. <PropertyRef Name="UserId" />
  5984. </Principal>
  5985. <Dependent Role="FmsEquipmentRentInfo">
  5986. <PropertyRef Name="SiteId" />
  5987. <PropertyRef Name="RegisterUserId" />
  5988. </Dependent>
  5989. </ReferentialConstraint>
  5990. </Association>
  5991. <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
  5992. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  5993. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  5994. <ReferentialConstraint>
  5995. <Principal Role="CmUser">
  5996. <PropertyRef Name="SiteId" />
  5997. <PropertyRef Name="UserId" />
  5998. </Principal>
  5999. <Dependent Role="FmsEquipmentRentInfo">
  6000. <PropertyRef Name="SiteId" />
  6001. <PropertyRef Name="RentUserId" />
  6002. </Dependent>
  6003. </ReferentialConstraint>
  6004. </Association>
  6005. <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  6006. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  6007. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6008. <ReferentialConstraint>
  6009. <Principal Role="FmsEquipmentCodeStateType">
  6010. <PropertyRef Name="EquipmentStateTypeId" />
  6011. </Principal>
  6012. <Dependent Role="FmsEquipmentRentInfo">
  6013. <PropertyRef Name="EquipmentStateTypeId" />
  6014. </Dependent>
  6015. </ReferentialConstraint>
  6016. </Association>
  6017. <Association Name="FK_FmsFacilityOperationReport_CmUser">
  6018. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6019. <End Role="FmsFacilityOperationReport" Type="Self.FmsFacilityOperationReport" Multiplicity="*" />
  6020. <ReferentialConstraint>
  6021. <Principal Role="CmUser">
  6022. <PropertyRef Name="SiteId" />
  6023. <PropertyRef Name="UserId" />
  6024. </Principal>
  6025. <Dependent Role="FmsFacilityOperationReport">
  6026. <PropertyRef Name="SiteId" />
  6027. <PropertyRef Name="RegisterUserId" />
  6028. </Dependent>
  6029. </ReferentialConstraint>
  6030. </Association>
  6031. <Association Name="FK_FmsManual_FmsManualType">
  6032. <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
  6033. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
  6034. <ReferentialConstraint>
  6035. <Principal Role="FmsManualType">
  6036. <PropertyRef Name="SiteId" />
  6037. <PropertyRef Name="ManualTypeId" />
  6038. </Principal>
  6039. <Dependent Role="FmsManual">
  6040. <PropertyRef Name="SiteId" />
  6041. <PropertyRef Name="ManualTypeId" />
  6042. </Dependent>
  6043. </ReferentialConstraint>
  6044. </Association>
  6045. <Association Name="FK_FmsManualHistory_CmFile">
  6046. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6047. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6048. <ReferentialConstraint>
  6049. <Principal Role="CmFile">
  6050. <PropertyRef Name="SiteId" />
  6051. <PropertyRef Name="FileId" />
  6052. </Principal>
  6053. <Dependent Role="FmsManualHistory">
  6054. <PropertyRef Name="SiteId" />
  6055. <PropertyRef Name="FileId" />
  6056. </Dependent>
  6057. </ReferentialConstraint>
  6058. </Association>
  6059. <Association Name="FK_FmsManualHistory_CmUser">
  6060. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6061. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6062. <ReferentialConstraint>
  6063. <Principal Role="CmUser">
  6064. <PropertyRef Name="SiteId" />
  6065. <PropertyRef Name="UserId" />
  6066. </Principal>
  6067. <Dependent Role="FmsManualHistory">
  6068. <PropertyRef Name="SiteId" />
  6069. <PropertyRef Name="UpdatedUserId" />
  6070. </Dependent>
  6071. </ReferentialConstraint>
  6072. </Association>
  6073. <Association Name="FK_FmsManualHistory_FmsManual">
  6074. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
  6075. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6076. <ReferentialConstraint>
  6077. <Principal Role="FmsManual">
  6078. <PropertyRef Name="SiteId" />
  6079. <PropertyRef Name="ManualId" />
  6080. </Principal>
  6081. <Dependent Role="FmsManualHistory">
  6082. <PropertyRef Name="SiteId" />
  6083. <PropertyRef Name="ManualId" />
  6084. </Dependent>
  6085. </ReferentialConstraint>
  6086. </Association>
  6087. <Association Name="FK_FmsMaterial_CmBusinessField">
  6088. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6089. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6090. <ReferentialConstraint>
  6091. <Principal Role="CmBusinessField">
  6092. <PropertyRef Name="SiteId" />
  6093. <PropertyRef Name="BusinessFieldId" />
  6094. </Principal>
  6095. <Dependent Role="FmsMaterial">
  6096. <PropertyRef Name="SiteId" />
  6097. <PropertyRef Name="BusinessFieldId" />
  6098. </Dependent>
  6099. </ReferentialConstraint>
  6100. </Association>
  6101. <Association Name="FK_FmsMaterial_CmFile">
  6102. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6103. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6104. <ReferentialConstraint>
  6105. <Principal Role="CmFile">
  6106. <PropertyRef Name="SiteId" />
  6107. <PropertyRef Name="FileId" />
  6108. </Principal>
  6109. <Dependent Role="FmsMaterial">
  6110. <PropertyRef Name="SiteId" />
  6111. <PropertyRef Name="ImageFileId" />
  6112. </Dependent>
  6113. </ReferentialConstraint>
  6114. </Association>
  6115. <Association Name="FK_FmsMaterial_CmSite">
  6116. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6117. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6118. <ReferentialConstraint>
  6119. <Principal Role="CmSite">
  6120. <PropertyRef Name="SiteId" />
  6121. </Principal>
  6122. <Dependent Role="FmsMaterial">
  6123. <PropertyRef Name="SiteId" />
  6124. </Dependent>
  6125. </ReferentialConstraint>
  6126. </Association>
  6127. <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
  6128. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="0..1" />
  6129. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6130. <ReferentialConstraint>
  6131. <Principal Role="FmsMaterialCodeLocation">
  6132. <PropertyRef Name="SiteId" />
  6133. <PropertyRef Name="LocationId" />
  6134. </Principal>
  6135. <Dependent Role="FmsMaterial">
  6136. <PropertyRef Name="SiteId" />
  6137. <PropertyRef Name="LocationId" />
  6138. </Dependent>
  6139. </ReferentialConstraint>
  6140. </Association>
  6141. <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
  6142. <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="0..1" />
  6143. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6144. <ReferentialConstraint>
  6145. <Principal Role="FmsMaterialCodeType">
  6146. <PropertyRef Name="SiteId" />
  6147. <PropertyRef Name="MaterialTypeId" />
  6148. </Principal>
  6149. <Dependent Role="FmsMaterial">
  6150. <PropertyRef Name="SiteId" />
  6151. <PropertyRef Name="MaterialTypeId" />
  6152. </Dependent>
  6153. </ReferentialConstraint>
  6154. </Association>
  6155. <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
  6156. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  6157. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6158. <ReferentialConstraint>
  6159. <Principal Role="FmsMaterialTradeCompany">
  6160. <PropertyRef Name="SiteId" />
  6161. <PropertyRef Name="TradeCompanyId" />
  6162. </Principal>
  6163. <Dependent Role="FmsMaterial">
  6164. <PropertyRef Name="SiteId" />
  6165. <PropertyRef Name="TradeCompanyId" />
  6166. </Dependent>
  6167. </ReferentialConstraint>
  6168. </Association>
  6169. <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
  6170. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
  6171. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6172. <ReferentialConstraint>
  6173. <Principal Role="FmsMaterialWarehouse">
  6174. <PropertyRef Name="SiteId" />
  6175. <PropertyRef Name="WarehouseId" />
  6176. </Principal>
  6177. <Dependent Role="FmsMaterial">
  6178. <PropertyRef Name="SiteId" />
  6179. <PropertyRef Name="WarehouseId" />
  6180. </Dependent>
  6181. </ReferentialConstraint>
  6182. </Association>
  6183. <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  6184. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
  6185. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  6186. <ReferentialConstraint>
  6187. <Principal Role="FmsMaterialPurchaseRequest">
  6188. <PropertyRef Name="SiteId" />
  6189. <PropertyRef Name="PurchaseRequestId" />
  6190. </Principal>
  6191. <Dependent Role="FmsMaterialPurchaseOrder">
  6192. <PropertyRef Name="SiteId" />
  6193. <PropertyRef Name="PurchaseRequestId" />
  6194. </Dependent>
  6195. </ReferentialConstraint>
  6196. </Association>
  6197. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  6198. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6199. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  6200. <ReferentialConstraint>
  6201. <Principal Role="FmsMaterial">
  6202. <PropertyRef Name="SiteId" />
  6203. <PropertyRef Name="MaterialId" />
  6204. </Principal>
  6205. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  6206. <PropertyRef Name="SiteId" />
  6207. <PropertyRef Name="MaterialId" />
  6208. </Dependent>
  6209. </ReferentialConstraint>
  6210. </Association>
  6211. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  6212. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
  6213. <OnDelete Action="Cascade" />
  6214. </End>
  6215. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  6216. <ReferentialConstraint>
  6217. <Principal Role="FmsMaterialPurchaseOrder">
  6218. <PropertyRef Name="SiteId" />
  6219. <PropertyRef Name="PurchaseOrderId" />
  6220. </Principal>
  6221. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  6222. <PropertyRef Name="SiteId" />
  6223. <PropertyRef Name="PurchaseOrderId" />
  6224. </Dependent>
  6225. </ReferentialConstraint>
  6226. </Association>
  6227. <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  6228. <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
  6229. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  6230. <ReferentialConstraint>
  6231. <Principal Role="FmsMaterialCodePurchaseType">
  6232. <PropertyRef Name="PurchaseTypeId" />
  6233. </Principal>
  6234. <Dependent Role="FmsMaterialPurchaseRequest">
  6235. <PropertyRef Name="PurchaseTypeId" />
  6236. </Dependent>
  6237. </ReferentialConstraint>
  6238. </Association>
  6239. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  6240. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6241. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  6242. <ReferentialConstraint>
  6243. <Principal Role="FmsMaterial">
  6244. <PropertyRef Name="SiteId" />
  6245. <PropertyRef Name="MaterialId" />
  6246. </Principal>
  6247. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  6248. <PropertyRef Name="SiteId" />
  6249. <PropertyRef Name="MaterialId" />
  6250. </Dependent>
  6251. </ReferentialConstraint>
  6252. </Association>
  6253. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  6254. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
  6255. <OnDelete Action="Cascade" />
  6256. </End>
  6257. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  6258. <ReferentialConstraint>
  6259. <Principal Role="FmsMaterialPurchaseRequest">
  6260. <PropertyRef Name="SiteId" />
  6261. <PropertyRef Name="PurchaseRequestId" />
  6262. </Principal>
  6263. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  6264. <PropertyRef Name="SiteId" />
  6265. <PropertyRef Name="PurchaseRequestId" />
  6266. </Dependent>
  6267. </ReferentialConstraint>
  6268. </Association>
  6269. <Association Name="FK_FmsMaterialRelease_CmBusinessField">
  6270. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6271. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6272. <ReferentialConstraint>
  6273. <Principal Role="CmBusinessField">
  6274. <PropertyRef Name="SiteId" />
  6275. <PropertyRef Name="BusinessFieldId" />
  6276. </Principal>
  6277. <Dependent Role="FmsMaterialRelease">
  6278. <PropertyRef Name="SiteId" />
  6279. <PropertyRef Name="BusinessFieldId" />
  6280. </Dependent>
  6281. </ReferentialConstraint>
  6282. </Association>
  6283. <Association Name="FK_FmsMaterialRelease_CmSite">
  6284. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6285. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6286. <ReferentialConstraint>
  6287. <Principal Role="CmSite">
  6288. <PropertyRef Name="SiteId" />
  6289. </Principal>
  6290. <Dependent Role="FmsMaterialRelease">
  6291. <PropertyRef Name="SiteId" />
  6292. </Dependent>
  6293. </ReferentialConstraint>
  6294. </Association>
  6295. <Association Name="FK_FmsMaterialRelease_CmUser">
  6296. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6297. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6298. <ReferentialConstraint>
  6299. <Principal Role="CmUser">
  6300. <PropertyRef Name="SiteId" />
  6301. <PropertyRef Name="UserId" />
  6302. </Principal>
  6303. <Dependent Role="FmsMaterialRelease">
  6304. <PropertyRef Name="SiteId" />
  6305. <PropertyRef Name="ConfirmedUserId" />
  6306. </Dependent>
  6307. </ReferentialConstraint>
  6308. </Association>
  6309. <Association Name="FK_FmsMaterialRelease_CmUser1">
  6310. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6311. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6312. <ReferentialConstraint>
  6313. <Principal Role="CmUser">
  6314. <PropertyRef Name="SiteId" />
  6315. <PropertyRef Name="UserId" />
  6316. </Principal>
  6317. <Dependent Role="FmsMaterialRelease">
  6318. <PropertyRef Name="SiteId" />
  6319. <PropertyRef Name="AdjustmentUserId" />
  6320. </Dependent>
  6321. </ReferentialConstraint>
  6322. </Association>
  6323. <Association Name="FK_FmsMaterialRelease_FmsMaterial">
  6324. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="0..1" />
  6325. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6326. <ReferentialConstraint>
  6327. <Principal Role="FmsMaterial">
  6328. <PropertyRef Name="SiteId" />
  6329. <PropertyRef Name="MaterialId" />
  6330. </Principal>
  6331. <Dependent Role="FmsMaterialRelease">
  6332. <PropertyRef Name="SiteId" />
  6333. <PropertyRef Name="MaterialId" />
  6334. </Dependent>
  6335. </ReferentialConstraint>
  6336. </Association>
  6337. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  6338. <End Role="FmsMaterialCodeAdjustmentType" Type="Self.FmsMaterialCodeAdjustmentType" Multiplicity="1" />
  6339. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6340. <ReferentialConstraint>
  6341. <Principal Role="FmsMaterialCodeAdjustmentType">
  6342. <PropertyRef Name="AdjustmentTypeId" />
  6343. </Principal>
  6344. <Dependent Role="FmsMaterialRelease">
  6345. <PropertyRef Name="AdjustmentTypeId" />
  6346. </Dependent>
  6347. </ReferentialConstraint>
  6348. </Association>
  6349. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  6350. <End Role="FmsMaterialCodeReleaseType" Type="Self.FmsMaterialCodeReleaseType" Multiplicity="1" />
  6351. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6352. <ReferentialConstraint>
  6353. <Principal Role="FmsMaterialCodeReleaseType">
  6354. <PropertyRef Name="ReleaseTypeId" />
  6355. </Principal>
  6356. <Dependent Role="FmsMaterialRelease">
  6357. <PropertyRef Name="ReleaseTypeId" />
  6358. </Dependent>
  6359. </ReferentialConstraint>
  6360. </Association>
  6361. <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
  6362. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  6363. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6364. <ReferentialConstraint>
  6365. <Principal Role="FmsWorkResult">
  6366. <PropertyRef Name="SiteId" />
  6367. <PropertyRef Name="WorkRequestId" />
  6368. </Principal>
  6369. <Dependent Role="FmsMaterialRelease">
  6370. <PropertyRef Name="SiteId" />
  6371. <PropertyRef Name="WorkRequestId" />
  6372. </Dependent>
  6373. </ReferentialConstraint>
  6374. </Association>
  6375. <Association Name="FK_FmsMaterialStored_FmsMaterial">
  6376. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6377. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6378. <ReferentialConstraint>
  6379. <Principal Role="FmsMaterial">
  6380. <PropertyRef Name="SiteId" />
  6381. <PropertyRef Name="MaterialId" />
  6382. </Principal>
  6383. <Dependent Role="FmsMaterialStored">
  6384. <PropertyRef Name="SiteId" />
  6385. <PropertyRef Name="MaterialId" />
  6386. </Dependent>
  6387. </ReferentialConstraint>
  6388. </Association>
  6389. <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  6390. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
  6391. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6392. <ReferentialConstraint>
  6393. <Principal Role="FmsMaterialPurchaseOrder">
  6394. <PropertyRef Name="SiteId" />
  6395. <PropertyRef Name="PurchaseOrderId" />
  6396. </Principal>
  6397. <Dependent Role="FmsMaterialStored">
  6398. <PropertyRef Name="SiteId" />
  6399. <PropertyRef Name="PurchaseOrderId" />
  6400. </Dependent>
  6401. </ReferentialConstraint>
  6402. </Association>
  6403. <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
  6404. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
  6405. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6406. <ReferentialConstraint>
  6407. <Principal Role="FmsMaterialWarehouse">
  6408. <PropertyRef Name="SiteId" />
  6409. <PropertyRef Name="WarehouseId" />
  6410. </Principal>
  6411. <Dependent Role="FmsMaterialStored">
  6412. <PropertyRef Name="SiteId" />
  6413. <PropertyRef Name="WarehouseId" />
  6414. </Dependent>
  6415. </ReferentialConstraint>
  6416. </Association>
  6417. <Association Name="FK_FmsMonthlyReport_CmUser">
  6418. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6419. <End Role="FmsMonthlyReport" Type="Self.FmsMonthlyReport" Multiplicity="*" />
  6420. <ReferentialConstraint>
  6421. <Principal Role="CmUser">
  6422. <PropertyRef Name="SiteId" />
  6423. <PropertyRef Name="UserId" />
  6424. </Principal>
  6425. <Dependent Role="FmsMonthlyReport">
  6426. <PropertyRef Name="SiteId" />
  6427. <PropertyRef Name="RegisterUserId" />
  6428. </Dependent>
  6429. </ReferentialConstraint>
  6430. </Association>
  6431. <Association Name="FK_FmsReport_CmBusinessField">
  6432. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6433. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6434. <ReferentialConstraint>
  6435. <Principal Role="CmBusinessField">
  6436. <PropertyRef Name="SiteId" />
  6437. <PropertyRef Name="BusinessFieldId" />
  6438. </Principal>
  6439. <Dependent Role="FmsReport">
  6440. <PropertyRef Name="SiteId" />
  6441. <PropertyRef Name="BusinessFieldId" />
  6442. </Dependent>
  6443. </ReferentialConstraint>
  6444. </Association>
  6445. <Association Name="FK_FmsReport_CmFile">
  6446. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6447. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6448. <ReferentialConstraint>
  6449. <Principal Role="CmFile">
  6450. <PropertyRef Name="SiteId" />
  6451. <PropertyRef Name="FileId" />
  6452. </Principal>
  6453. <Dependent Role="FmsReport">
  6454. <PropertyRef Name="SiteId" />
  6455. <PropertyRef Name="FileId" />
  6456. </Dependent>
  6457. </ReferentialConstraint>
  6458. </Association>
  6459. <Association Name="FK_FmsReport_CmSite">
  6460. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6461. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6462. <ReferentialConstraint>
  6463. <Principal Role="CmSite">
  6464. <PropertyRef Name="SiteId" />
  6465. </Principal>
  6466. <Dependent Role="FmsReport">
  6467. <PropertyRef Name="SiteId" />
  6468. </Dependent>
  6469. </ReferentialConstraint>
  6470. </Association>
  6471. <Association Name="FK_FmsReport_CmUser">
  6472. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6473. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6474. <ReferentialConstraint>
  6475. <Principal Role="CmUser">
  6476. <PropertyRef Name="SiteId" />
  6477. <PropertyRef Name="UserId" />
  6478. </Principal>
  6479. <Dependent Role="FmsReport">
  6480. <PropertyRef Name="SiteId" />
  6481. <PropertyRef Name="RegisterUserId" />
  6482. </Dependent>
  6483. </ReferentialConstraint>
  6484. </Association>
  6485. <Association Name="FK_FmsReport_CmUser1">
  6486. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6487. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6488. <ReferentialConstraint>
  6489. <Principal Role="CmUser">
  6490. <PropertyRef Name="SiteId" />
  6491. <PropertyRef Name="UserId" />
  6492. </Principal>
  6493. <Dependent Role="FmsReport">
  6494. <PropertyRef Name="SiteId" />
  6495. <PropertyRef Name="ConfirmUserId1" />
  6496. </Dependent>
  6497. </ReferentialConstraint>
  6498. </Association>
  6499. <Association Name="FK_FmsReport_CmUser2">
  6500. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6501. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6502. <ReferentialConstraint>
  6503. <Principal Role="CmUser">
  6504. <PropertyRef Name="SiteId" />
  6505. <PropertyRef Name="UserId" />
  6506. </Principal>
  6507. <Dependent Role="FmsReport">
  6508. <PropertyRef Name="SiteId" />
  6509. <PropertyRef Name="ConfirmUserId2" />
  6510. </Dependent>
  6511. </ReferentialConstraint>
  6512. </Association>
  6513. <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
  6514. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6515. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  6516. <ReferentialConstraint>
  6517. <Principal Role="CmFacility">
  6518. <PropertyRef Name="SiteId" />
  6519. <PropertyRef Name="FacilityCode" />
  6520. </Principal>
  6521. <Dependent Role="FmsWorkOrderToFacility">
  6522. <PropertyRef Name="SiteId" />
  6523. <PropertyRef Name="FacilityCode" />
  6524. </Dependent>
  6525. </ReferentialConstraint>
  6526. </Association>
  6527. <Association Name="FK_FmsWorkRequest_CmPartner">
  6528. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  6529. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  6530. <ReferentialConstraint>
  6531. <Principal Role="CmPartner">
  6532. <PropertyRef Name="SiteId" />
  6533. <PropertyRef Name="PartnerId" />
  6534. </Principal>
  6535. <Dependent Role="FmsWorkRequest">
  6536. <PropertyRef Name="SiteId" />
  6537. <PropertyRef Name="InspectionAgencyId" />
  6538. </Dependent>
  6539. </ReferentialConstraint>
  6540. </Association>
  6541. <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
  6542. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6543. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  6544. <ReferentialConstraint>
  6545. <Principal Role="CmFacility">
  6546. <PropertyRef Name="SiteId" />
  6547. <PropertyRef Name="FacilityCode" />
  6548. </Principal>
  6549. <Dependent Role="FmsWorkRequestToFacility">
  6550. <PropertyRef Name="SiteId" />
  6551. <PropertyRef Name="FacilityCode" />
  6552. </Dependent>
  6553. </ReferentialConstraint>
  6554. </Association>
  6555. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  6556. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6557. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6558. <ReferentialConstraint>
  6559. <Principal Role="FmsMaterial">
  6560. <PropertyRef Name="SiteId" />
  6561. <PropertyRef Name="MaterialId" />
  6562. </Principal>
  6563. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6564. <PropertyRef Name="SiteId" />
  6565. <PropertyRef Name="MaterialId" />
  6566. </Dependent>
  6567. </ReferentialConstraint>
  6568. </Association>
  6569. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  6570. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  6571. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6572. <ReferentialConstraint>
  6573. <Principal Role="FmsWorkResult">
  6574. <PropertyRef Name="SiteId" />
  6575. <PropertyRef Name="WorkRequestId" />
  6576. </Principal>
  6577. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6578. <PropertyRef Name="SiteId" />
  6579. <PropertyRef Name="WorkRequestId" />
  6580. </Dependent>
  6581. </ReferentialConstraint>
  6582. </Association>
  6583. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  6584. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1" />
  6585. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6586. <ReferentialConstraint>
  6587. <Principal Role="FmsWorkResultCheckItem">
  6588. <PropertyRef Name="CheckItemId" />
  6589. </Principal>
  6590. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6591. <PropertyRef Name="CheckItemId" />
  6592. </Dependent>
  6593. </ReferentialConstraint>
  6594. </Association>
  6595. <Association Name="FK_FmsWorkSchedule_CmPartner">
  6596. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  6597. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  6598. <ReferentialConstraint>
  6599. <Principal Role="CmPartner">
  6600. <PropertyRef Name="SiteId" />
  6601. <PropertyRef Name="PartnerId" />
  6602. </Principal>
  6603. <Dependent Role="FmsWorkSchedule">
  6604. <PropertyRef Name="SiteId" />
  6605. <PropertyRef Name="InspectionAgencyId" />
  6606. </Dependent>
  6607. </ReferentialConstraint>
  6608. </Association>
  6609. <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
  6610. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6611. <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
  6612. <ReferentialConstraint>
  6613. <Principal Role="CmFacility">
  6614. <PropertyRef Name="SiteId" />
  6615. <PropertyRef Name="FacilityCode" />
  6616. </Principal>
  6617. <Dependent Role="FmsWorkScheduleToFacility">
  6618. <PropertyRef Name="SiteId" />
  6619. <PropertyRef Name="FacilityCode" />
  6620. </Dependent>
  6621. </ReferentialConstraint>
  6622. </Association>
  6623. <EntityContainer Name="iBemsModelStoreContainer">
  6624. <EntitySet Name="BemsAlarmGroup" EntityType="Self.BemsAlarmGroup" Schema="dbo" store:Type="Tables" />
  6625. <EntitySet Name="BemsAlarmGroupUser" EntityType="Self.BemsAlarmGroupUser" Schema="dbo" store:Type="Tables" />
  6626. <EntitySet Name="BemsAlarmLog" EntityType="Self.BemsAlarmLog" Schema="dbo" store:Type="Tables" />
  6627. <EntitySet Name="BemsAlarmSetting" EntityType="Self.BemsAlarmSetting" Schema="dbo" store:Type="Tables" />
  6628. <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" Schema="dbo" store:Type="Tables" />
  6629. <EntitySet Name="BemsChartInfo" EntityType="Self.BemsChartInfo" Schema="dbo" store:Type="Tables" />
  6630. <EntitySet Name="BemsControlAHUTempConfig" EntityType="Self.BemsControlAHUTempConfig" Schema="dbo" store:Type="Tables" />
  6631. <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" Schema="dbo" store:Type="Tables" />
  6632. <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="Self.BemsEnergyConfigPercentMonth" Schema="dbo" store:Type="Tables" />
  6633. <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="Self.BemsEnergyConfigPercentWeek" Schema="dbo" store:Type="Tables" />
  6634. <EntitySet Name="BemsEnergyCost" EntityType="Self.BemsEnergyCost" Schema="dbo" store:Type="Tables" />
  6635. <EntitySet Name="BemsEnergyDaily" EntityType="Self.BemsEnergyDaily" Schema="dbo" store:Type="Tables" />
  6636. <EntitySet Name="BemsEnergyDailyRegression" EntityType="Self.BemsEnergyDailyRegression" Schema="dbo" store:Type="Tables" />
  6637. <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" Schema="dbo" store:Type="Tables" />
  6638. <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" Schema="dbo" store:Type="Tables" />
  6639. <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" Schema="dbo" store:Type="Tables" />
  6640. <EntitySet Name="BemsFloorPlan" EntityType="Self.BemsFloorPlan" Schema="dbo" store:Type="Tables" />
  6641. <EntitySet Name="BemsFloorStatus" EntityType="Self.BemsFloorStatus" Schema="dbo" store:Type="Tables" />
  6642. <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" Schema="dbo" store:Type="Tables" />
  6643. <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" Schema="dbo" store:Type="Tables" />
  6644. <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" Schema="dbo" store:Type="Tables" />
  6645. <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" Schema="dbo" store:Type="Tables" />
  6646. <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" Schema="dbo" store:Type="Tables" />
  6647. <EntitySet Name="BemsFuelType" EntityType="Self.BemsFuelType" Schema="dbo" store:Type="Tables" />
  6648. <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" Schema="dbo" store:Type="Tables" />
  6649. <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" Schema="dbo" store:Type="Tables" />
  6650. <EntitySet Name="BemsMonitoringPointConfig" EntityType="Self.BemsMonitoringPointConfig" Schema="dbo" store:Type="Tables" />
  6651. <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" Schema="dbo" store:Type="Tables" />
  6652. <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="Self.BemsMonitoringPointHistory15minRawData" Schema="dbo" store:Type="Tables" />
  6653. <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" Schema="dbo" store:Type="Tables" />
  6654. <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" Schema="dbo" store:Type="Tables" />
  6655. <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" Schema="dbo" store:Type="Tables" />
  6656. <EntitySet Name="BemsNoticePriceBase" EntityType="Self.BemsNoticePriceBase" Schema="dbo" store:Type="Tables" />
  6657. <EntitySet Name="BemsNoticePriceContractType" EntityType="Self.BemsNoticePriceContractType" Schema="dbo" store:Type="Tables" />
  6658. <EntitySet Name="BemsNoticePriceDetail" EntityType="Self.BemsNoticePriceDetail" Schema="dbo" store:Type="Tables" />
  6659. <EntitySet Name="BemsPeakFacility" EntityType="Self.BemsPeakFacility" Schema="dbo" store:Type="Tables" />
  6660. <EntitySet Name="BemsPeakHistory" EntityType="Self.BemsPeakHistory" Schema="dbo" store:Type="Tables" />
  6661. <EntitySet Name="BemsPeakHistoryDaily" EntityType="Self.BemsPeakHistoryDaily" Schema="dbo" store:Type="Tables" />
  6662. <EntitySet Name="BemsPeakInfo" EntityType="Self.BemsPeakInfo" Schema="dbo" store:Type="Tables" />
  6663. <EntitySet Name="BemsPeopleIncrease" EntityType="Self.BemsPeopleIncrease" Schema="dbo" store:Type="Tables" />
  6664. <EntitySet Name="BemsPriceCode" EntityType="Self.BemsPriceCode" Schema="dbo" store:Type="Tables" />
  6665. <EntitySet Name="BemsPriceFormula" EntityType="Self.BemsPriceFormula" Schema="dbo" store:Type="Tables" />
  6666. <EntitySet Name="BemsPriceMeta" EntityType="Self.BemsPriceMeta" Schema="dbo" store:Type="Tables" />
  6667. <EntitySet Name="BemsPriceType" EntityType="Self.BemsPriceType" Schema="dbo" store:Type="Tables" />
  6668. <EntitySet Name="BemsRentalRate" EntityType="Self.BemsRentalRate" Schema="dbo" store:Type="Tables" />
  6669. <EntitySet Name="BemsReportFormat" EntityType="Self.BemsReportFormat" Schema="dbo" store:Type="Tables" />
  6670. <EntitySet Name="BemsReportHistory" EntityType="Self.BemsReportHistory" Schema="dbo" store:Type="Tables" />
  6671. <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" Schema="dbo" store:Type="Tables" />
  6672. <EntitySet Name="BemsSitePrice" EntityType="Self.BemsSitePrice" Schema="dbo" store:Type="Tables" />
  6673. <EntitySet Name="BemsSitePriceHistory" EntityType="Self.BemsSitePriceHistory" Schema="dbo" store:Type="Tables" />
  6674. <EntitySet Name="CmAlarmAdmin" EntityType="Self.CmAlarmAdmin" Schema="dbo" store:Type="Tables" />
  6675. <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" Schema="dbo" store:Type="Tables" />
  6676. <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" Schema="dbo" store:Type="Tables" />
  6677. <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" Schema="dbo" store:Type="Tables" />
  6678. <EntitySet Name="CmCompany" EntityType="Self.CmCompany" Schema="dbo" store:Type="Tables" />
  6679. <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" Schema="dbo" store:Type="Tables" />
  6680. <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" Schema="dbo" store:Type="Tables" />
  6681. <EntitySet Name="CmFacility" EntityType="Self.CmFacility" Schema="dbo" store:Type="Tables" />
  6682. <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" Schema="dbo" store:Type="Tables" />
  6683. <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" Schema="dbo" store:Type="Tables" />
  6684. <EntitySet Name="CmFile" EntityType="Self.CmFile" Schema="dbo" store:Type="Tables" />
  6685. <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" Schema="dbo" store:Type="Tables" />
  6686. <EntitySet Name="CmFloor" EntityType="Self.CmFloor" Schema="dbo" store:Type="Tables" />
  6687. <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" Schema="dbo" store:Type="Tables" />
  6688. <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" Schema="dbo" store:Type="Tables" />
  6689. <EntitySet Name="CmHolidayWeekend" EntityType="Self.CmHolidayWeekend" Schema="dbo" store:Type="Tables" />
  6690. <EntitySet Name="CmMenu" EntityType="Self.CmMenu" Schema="dbo" store:Type="Tables" />
  6691. <EntitySet Name="CmPartner" EntityType="Self.CmPartner" Schema="dbo" store:Type="Tables" />
  6692. <EntitySet Name="CmPartnerType" EntityType="Self.CmPartnerType" Schema="dbo" store:Type="Tables" />
  6693. <EntitySet Name="CmPatrolCourse" EntityType="Self.CmPatrolCourse" Schema="dbo" store:Type="Tables" />
  6694. <EntitySet Name="CmPatrolCoursePos" EntityType="Self.CmPatrolCoursePos" Schema="dbo" store:Type="Tables" />
  6695. <EntitySet Name="CmPatrolGroup" EntityType="Self.CmPatrolGroup" Schema="dbo" store:Type="Tables" />
  6696. <EntitySet Name="CmPatrolGroupUser" EntityType="Self.CmPatrolGroupUser" Schema="dbo" store:Type="Tables" />
  6697. <EntitySet Name="CmPatrolHistory" EntityType="Self.CmPatrolHistory" Schema="dbo" store:Type="Tables" />
  6698. <EntitySet Name="CmPatrolHistoryPos" EntityType="Self.CmPatrolHistoryPos" Schema="dbo" store:Type="Tables" />
  6699. <EntitySet Name="CmPatrolPlan" EntityType="Self.CmPatrolPlan" Schema="dbo" store:Type="Tables" />
  6700. <EntitySet Name="CmPatrolPos" EntityType="Self.CmPatrolPos" Schema="dbo" store:Type="Tables" />
  6701. <EntitySet Name="CmPatrolSchedule" EntityType="Self.CmPatrolSchedule" Schema="dbo" store:Type="Tables" />
  6702. <EntitySet Name="CmPatrolType" EntityType="Self.CmPatrolType" Schema="dbo" store:Type="Tables" />
  6703. <EntitySet Name="CmPosition" EntityType="Self.CmPosition" Schema="dbo" store:Type="Tables" />
  6704. <EntitySet Name="CmServiceEnergyCalcDay" EntityType="Self.CmServiceEnergyCalcDay" Schema="dbo" store:Type="Tables" />
  6705. <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="Self.CmServiceEnergyCalcMonth" Schema="dbo" store:Type="Tables" />
  6706. <EntitySet Name="CmSite" EntityType="Self.CmSite" Schema="dbo" store:Type="Tables" />
  6707. <EntitySet Name="CmUser" EntityType="Self.CmUser" Schema="dbo" store:Type="Tables" />
  6708. <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" Schema="dbo" store:Type="Tables" />
  6709. <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" Schema="dbo" store:Type="Tables" />
  6710. <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" Schema="dbo" store:Type="Tables" />
  6711. <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" Schema="dbo" store:Type="Tables" />
  6712. <EntitySet Name="CmZone" EntityType="Self.CmZone" Schema="dbo" store:Type="Tables" />
  6713. <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" Schema="dbo" store:Type="Tables" />
  6714. <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" Schema="dbo" store:Type="Tables" />
  6715. <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" Schema="dbo" store:Type="Tables" />
  6716. <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" Schema="dbo" store:Type="Tables" />
  6717. <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" Schema="dbo" store:Type="Tables" />
  6718. <EntitySet Name="FmsBudgetDetail" EntityType="Self.FmsBudgetDetail" Schema="dbo" store:Type="Tables" />
  6719. <EntitySet Name="FmsBudgetDetailExecution" EntityType="Self.FmsBudgetDetailExecution" Schema="dbo" store:Type="Tables" />
  6720. <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" Schema="dbo" store:Type="Tables" />
  6721. <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" Schema="dbo" store:Type="Tables" />
  6722. <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" Schema="dbo" store:Type="Tables" />
  6723. <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" Schema="dbo" store:Type="Tables" />
  6724. <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" Schema="dbo" store:Type="Tables" />
  6725. <EntitySet Name="FmsContract" EntityType="Self.FmsContract" Schema="dbo" store:Type="Tables" />
  6726. <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" Schema="dbo" store:Type="Tables" />
  6727. <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" Schema="dbo" store:Type="Tables" />
  6728. <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" Schema="dbo" store:Type="Tables" />
  6729. <EntitySet Name="FmsDailyCheckReport" EntityType="Self.FmsDailyCheckReport" Schema="dbo" store:Type="Tables" />
  6730. <EntitySet Name="FmsDailyReport" EntityType="Self.FmsDailyReport" Schema="dbo" store:Type="Tables" />
  6731. <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" Schema="dbo" store:Type="Tables" />
  6732. <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" Schema="dbo" store:Type="Tables" />
  6733. <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" Schema="dbo" store:Type="Tables" />
  6734. <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" Schema="dbo" store:Type="Tables" />
  6735. <EntitySet Name="FmsEquipment" EntityType="Self.FmsEquipment" Schema="dbo" store:Type="Tables" />
  6736. <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" Schema="dbo" store:Type="Tables" />
  6737. <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" Schema="dbo" store:Type="Tables" />
  6738. <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" Schema="dbo" store:Type="Tables" />
  6739. <EntitySet Name="FmsEquipmentRentInfo" EntityType="Self.FmsEquipmentRentInfo" Schema="dbo" store:Type="Tables" />
  6740. <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" Schema="dbo" store:Type="Tables" />
  6741. <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" Schema="dbo" store:Type="Tables" />
  6742. <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" Schema="dbo" store:Type="Tables" />
  6743. <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" Schema="dbo" store:Type="Tables" />
  6744. <EntitySet Name="FmsFacilityOperationReport" EntityType="Self.FmsFacilityOperationReport" Schema="dbo" store:Type="Tables" />
  6745. <EntitySet Name="FmsInvestmentCost" EntityType="Self.FmsInvestmentCost" Schema="dbo" store:Type="Tables" />
  6746. <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" Schema="dbo" store:Type="Tables" />
  6747. <EntitySet Name="FmsManual" EntityType="Self.FmsManual" Schema="dbo" store:Type="Tables" />
  6748. <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" Schema="dbo" store:Type="Tables" />
  6749. <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" Schema="dbo" store:Type="Tables" />
  6750. <EntitySet Name="FmsMaterial" EntityType="Self.FmsMaterial" Schema="dbo" store:Type="Tables" />
  6751. <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" Schema="dbo" store:Type="Tables" />
  6752. <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" Schema="dbo" store:Type="Tables" />
  6753. <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" Schema="dbo" store:Type="Tables" />
  6754. <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" Schema="dbo" store:Type="Tables" />
  6755. <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" Schema="dbo" store:Type="Tables" />
  6756. <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" Schema="dbo" store:Type="Tables" />
  6757. <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" Schema="dbo" store:Type="Tables" />
  6758. <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" Schema="dbo" store:Type="Tables" />
  6759. <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" Schema="dbo" store:Type="Tables" />
  6760. <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" Schema="dbo" store:Type="Tables" />
  6761. <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" Schema="dbo" store:Type="Tables" />
  6762. <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" Schema="dbo" store:Type="Tables" />
  6763. <EntitySet Name="FmsMaterialRelease" EntityType="Self.FmsMaterialRelease" Schema="dbo" store:Type="Tables" />
  6764. <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" Schema="dbo" store:Type="Tables" />
  6765. <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" Schema="dbo" store:Type="Tables" />
  6766. <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" Schema="dbo" store:Type="Tables" />
  6767. <EntitySet Name="FmsMonthlyReport" EntityType="Self.FmsMonthlyReport" Schema="dbo" store:Type="Tables" />
  6768. <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" Schema="dbo" store:Type="Tables" />
  6769. <EntitySet Name="FmsReport" EntityType="Self.FmsReport" Schema="dbo" store:Type="Tables" />
  6770. <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" Schema="dbo" store:Type="Tables" />
  6771. <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" Schema="dbo" store:Type="Tables" />
  6772. <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" Schema="dbo" store:Type="Tables" />
  6773. <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" Schema="dbo" store:Type="Tables" />
  6774. <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" Schema="dbo" store:Type="Tables" />
  6775. <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" Schema="dbo" store:Type="Tables" />
  6776. <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" Schema="dbo" store:Type="Tables" />
  6777. <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" Schema="dbo" store:Type="Tables" />
  6778. <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" Schema="dbo" store:Type="Tables" />
  6779. <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" Schema="dbo" store:Type="Tables" />
  6780. <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" Schema="dbo" store:Type="Tables" />
  6781. <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" Schema="dbo" store:Type="Tables" />
  6782. <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" Schema="dbo" store:Type="Tables" />
  6783. <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" Schema="dbo" store:Type="Tables" />
  6784. <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" Schema="dbo" store:Type="Tables" />
  6785. <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" Schema="dbo" store:Type="Tables" />
  6786. <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" Schema="dbo" store:Type="Tables" />
  6787. <EntitySet Name="FmsWorkSchedule" EntityType="Self.FmsWorkSchedule" Schema="dbo" store:Type="Tables" />
  6788. <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" Schema="dbo" store:Type="Tables" />
  6789. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  6790. <EntitySet Name="WeatherDongNaeForecast" EntityType="Self.WeatherDongNaeForecast" Schema="dbo" store:Type="Tables" />
  6791. <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="Self.FK__BemsEnerg__SiteI__7954A4F6">
  6792. <End Role="CmSite" EntitySet="CmSite" />
  6793. <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
  6794. </AssociationSet>
  6795. <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="Self.FK__BemsEnerg__SiteI__7C3111A1">
  6796. <End Role="CmSite" EntitySet="CmSite" />
  6797. <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
  6798. </AssociationSet>
  6799. <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="Self.FK__BemsEnergyDaily__BemsFuelType">
  6800. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6801. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6802. </AssociationSet>
  6803. <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="Self.FK__BemsEnergyDaily__BemsServiceType">
  6804. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6805. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6806. </AssociationSet>
  6807. <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="Self.FK__BemsEnergyDaily__CmBuilding">
  6808. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6809. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6810. </AssociationSet>
  6811. <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="Self.FK__BemsFactorCo2__BemsFuelType">
  6812. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6813. <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
  6814. </AssociationSet>
  6815. <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="Self.FK__BemsFactorToe__BemsFuelType">
  6816. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6817. <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
  6818. </AssociationSet>
  6819. <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
  6820. <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
  6821. <End Role="BemsFormula" EntitySet="BemsFormula" />
  6822. </AssociationSet>
  6823. <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
  6824. <End Role="BemsFormula" EntitySet="BemsFormula" />
  6825. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  6826. </AssociationSet>
  6827. <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
  6828. <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
  6829. <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
  6830. </AssociationSet>
  6831. <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
  6832. <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
  6833. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6834. </AssociationSet>
  6835. <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
  6836. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6837. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6838. </AssociationSet>
  6839. <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="Self.FK__BemsMonitoringPoint__BemsFuelType">
  6840. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6841. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6842. </AssociationSet>
  6843. <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
  6844. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6845. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6846. </AssociationSet>
  6847. <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
  6848. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6849. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6850. </AssociationSet>
  6851. <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
  6852. <End Role="CmFloor" EntitySet="CmFloor" />
  6853. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6854. </AssociationSet>
  6855. <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
  6856. <End Role="CmZone" EntitySet="CmZone" />
  6857. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6858. </AssociationSet>
  6859. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
  6860. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6861. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6862. </AssociationSet>
  6863. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFuelType">
  6864. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6865. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6866. </AssociationSet>
  6867. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
  6868. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6869. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6870. </AssociationSet>
  6871. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  6872. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6873. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  6874. </AssociationSet>
  6875. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  6876. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6877. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  6878. </AssociationSet>
  6879. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  6880. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6881. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  6882. </AssociationSet>
  6883. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  6884. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6885. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  6886. </AssociationSet>
  6887. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  6888. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6889. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  6890. </AssociationSet>
  6891. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  6892. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6893. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  6894. </AssociationSet>
  6895. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  6896. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6897. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  6898. </AssociationSet>
  6899. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  6900. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6901. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  6902. </AssociationSet>
  6903. <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  6904. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6905. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6906. </AssociationSet>
  6907. <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="Self.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  6908. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  6909. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  6910. </AssociationSet>
  6911. <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="Self.FK__BemsNoticePriceContractType__BemsFuelType">
  6912. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6913. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  6914. </AssociationSet>
  6915. <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="Self.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  6916. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  6917. <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
  6918. </AssociationSet>
  6919. <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
  6920. <End Role="CmCompanyType" EntitySet="CmCompanyType" />
  6921. <End Role="CmCompany" EntitySet="CmCompany" />
  6922. </AssociationSet>
  6923. <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="Self.FK__CmCompany__SiteI__336AA144">
  6924. <End Role="CmSite" EntitySet="CmSite" />
  6925. <End Role="CmCompany" EntitySet="CmCompany" />
  6926. </AssociationSet>
  6927. <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
  6928. <End Role="CmCompany" EntitySet="CmCompany" />
  6929. <End Role="CmDepartment" EntitySet="CmDepartment" />
  6930. </AssociationSet>
  6931. <AssociationSet Name="FK__CmFacility__CmFacility" Association="Self.FK__CmFacility__CmFacility">
  6932. <End Role="CmFacility" EntitySet="CmFacility" />
  6933. <End Role="CmFacility1" EntitySet="CmFacility" />
  6934. </AssociationSet>
  6935. <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="Self.FK__CmFacilityFile__7720AD13">
  6936. <End Role="CmFacility" EntitySet="CmFacility" />
  6937. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  6938. </AssociationSet>
  6939. <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
  6940. <End Role="CmFile" EntitySet="CmFile" />
  6941. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  6942. </AssociationSet>
  6943. <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="Self.FK__CmFacilityManual__79FD19BE">
  6944. <End Role="CmFacility" EntitySet="CmFacility" />
  6945. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  6946. </AssociationSet>
  6947. <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
  6948. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  6949. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  6950. </AssociationSet>
  6951. <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
  6952. <End Role="CmFileCategory" EntitySet="CmFileCategory" />
  6953. <End Role="CmFile" EntitySet="CmFile" />
  6954. </AssociationSet>
  6955. <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="Self.FK__CmFile__SiteId__2759D01A">
  6956. <End Role="CmSite" EntitySet="CmSite" />
  6957. <End Role="CmFile" EntitySet="CmFile" />
  6958. </AssociationSet>
  6959. <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
  6960. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6961. <End Role="CmFloor" EntitySet="CmFloor" />
  6962. </AssociationSet>
  6963. <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="Self.FK__CmHoliday__SiteI__0BB1B5A5">
  6964. <End Role="CmSite" EntitySet="CmSite" />
  6965. <End Role="CmHoliday" EntitySet="CmHoliday" />
  6966. </AssociationSet>
  6967. <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="Self.FK__CmHoliday__SiteI__0D99FE17">
  6968. <End Role="CmSite" EntitySet="CmSite" />
  6969. <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
  6970. </AssociationSet>
  6971. <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="Self.FK__CmHoliday__SiteI__10766AC2">
  6972. <End Role="CmSite" EntitySet="CmSite" />
  6973. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  6974. </AssociationSet>
  6975. <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="Self.FK__CmHoliday__SiteI__65AC084E">
  6976. <End Role="CmSite" EntitySet="CmSite" />
  6977. <End Role="CmHoliday" EntitySet="CmHoliday" />
  6978. </AssociationSet>
  6979. <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="Self.FK__CmHoliday__SiteI__66A02C87">
  6980. <End Role="CmSite" EntitySet="CmSite" />
  6981. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  6982. </AssociationSet>
  6983. <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
  6984. <End Role="CmFloor" EntitySet="CmFloor" />
  6985. <End Role="CmZone" EntitySet="CmZone" />
  6986. </AssociationSet>
  6987. <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="Self.FK__CmPositio__SiteI__6A70BD6B">
  6988. <End Role="CmSite" EntitySet="CmSite" />
  6989. <End Role="CmPosition" EntitySet="CmPosition" />
  6990. </AssociationSet>
  6991. <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="Self.FK__CmUserGro__SiteI__53D770D6">
  6992. <End Role="CmSite" EntitySet="CmSite" />
  6993. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  6994. </AssociationSet>
  6995. <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
  6996. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  6997. <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
  6998. </AssociationSet>
  6999. <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="Self.FK__CmUserPos__SiteI__44952D46">
  7000. <End Role="CmSite" EntitySet="CmSite" />
  7001. <End Role="CmPosition" EntitySet="CmPosition" />
  7002. </AssociationSet>
  7003. <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
  7004. <End Role="CmUser" EntitySet="CmUser" />
  7005. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  7006. </AssociationSet>
  7007. <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
  7008. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7009. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  7010. </AssociationSet>
  7011. <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
  7012. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7013. <End Role="CmZone" EntitySet="CmZone" />
  7014. </AssociationSet>
  7015. <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="Self.FK__FmsDrawin__SiteI__6B79F03D">
  7016. <End Role="CmSite" EntitySet="CmSite" />
  7017. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7018. </AssociationSet>
  7019. <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="Self.FK__FmsDrawin__SiteI__6C6E1476">
  7020. <End Role="CmSite" EntitySet="CmSite" />
  7021. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7022. </AssociationSet>
  7023. <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="Self.FK__FmsDrawin__SiteI__6D6238AF">
  7024. <End Role="CmSite" EntitySet="CmSite" />
  7025. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7026. </AssociationSet>
  7027. <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="Self.FK__FmsDrawin__SiteI__6F357288">
  7028. <End Role="CmSite" EntitySet="CmSite" />
  7029. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7030. </AssociationSet>
  7031. <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="Self.FK__FmsDrawin__SiteI__702996C1">
  7032. <End Role="CmSite" EntitySet="CmSite" />
  7033. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7034. </AssociationSet>
  7035. <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
  7036. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7037. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7038. </AssociationSet>
  7039. <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
  7040. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7041. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7042. </AssociationSet>
  7043. <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
  7044. <End Role="CmFile" EntitySet="CmFile" />
  7045. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7046. </AssociationSet>
  7047. <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
  7048. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7049. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7050. </AssociationSet>
  7051. <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
  7052. <End Role="CmUser" EntitySet="CmUser" />
  7053. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7054. </AssociationSet>
  7055. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  7056. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7057. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7058. </AssociationSet>
  7059. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  7060. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7061. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7062. </AssociationSet>
  7063. <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="Self.FK__FmsFacilityCodeClass__CmSite">
  7064. <End Role="CmSite" EntitySet="CmSite" />
  7065. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  7066. </AssociationSet>
  7067. <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  7068. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  7069. <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
  7070. </AssociationSet>
  7071. <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="Self.FK__FmsFacilityOpera__725BF7F6">
  7072. <End Role="CmFacility" EntitySet="CmFacility" />
  7073. <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
  7074. </AssociationSet>
  7075. <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
  7076. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7077. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7078. </AssociationSet>
  7079. <AssociationSet Name="FK__FmsLicense__CmSite" Association="Self.FK__FmsLicense__CmSite">
  7080. <End Role="CmSite" EntitySet="CmSite" />
  7081. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7082. </AssociationSet>
  7083. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  7084. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7085. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7086. </AssociationSet>
  7087. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  7088. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7089. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7090. </AssociationSet>
  7091. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  7092. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7093. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7094. </AssociationSet>
  7095. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
  7096. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7097. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  7098. </AssociationSet>
  7099. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="Self.FK__FmsMaterialCarriedForward__CmSite">
  7100. <End Role="CmSite" EntitySet="CmSite" />
  7101. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  7102. </AssociationSet>
  7103. <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="Self.FK__FmsMaterialCodeClass__CmSite">
  7104. <End Role="CmSite" EntitySet="CmSite" />
  7105. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7106. </AssociationSet>
  7107. <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  7108. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7109. <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
  7110. </AssociationSet>
  7111. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
  7112. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7113. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7114. </AssociationSet>
  7115. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="Self.FK__FmsMaterialCodeLocation__CmSite">
  7116. <End Role="CmSite" EntitySet="CmSite" />
  7117. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7118. </AssociationSet>
  7119. <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="Self.FK__FmsMaterialCodeType__CmSite">
  7120. <End Role="CmSite" EntitySet="CmSite" />
  7121. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  7122. </AssociationSet>
  7123. <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
  7124. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7125. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7126. </AssociationSet>
  7127. <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="Self.FK__FmsMaterialOrder__CmSite">
  7128. <End Role="CmSite" EntitySet="CmSite" />
  7129. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7130. </AssociationSet>
  7131. <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
  7132. <End Role="CmUser" EntitySet="CmUser" />
  7133. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7134. </AssociationSet>
  7135. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
  7136. <End Role="CmFile" EntitySet="CmFile" />
  7137. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7138. </AssociationSet>
  7139. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  7140. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7141. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7142. </AssociationSet>
  7143. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  7144. <End Role="CmUser" EntitySet="CmUser" />
  7145. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7146. </AssociationSet>
  7147. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  7148. <End Role="CmUser" EntitySet="CmUser" />
  7149. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7150. </AssociationSet>
  7151. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
  7152. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7153. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7154. </AssociationSet>
  7155. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="Self.FK__FmsMaterialPurchasingRequest__CmSite">
  7156. <End Role="CmSite" EntitySet="CmSite" />
  7157. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7158. </AssociationSet>
  7159. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  7160. <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
  7161. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7162. </AssociationSet>
  7163. <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
  7164. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7165. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7166. </AssociationSet>
  7167. <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="Self.FK__FmsMaterialStored__CmSite">
  7168. <End Role="CmSite" EntitySet="CmSite" />
  7169. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7170. </AssociationSet>
  7171. <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
  7172. <End Role="CmUser" EntitySet="CmUser" />
  7173. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7174. </AssociationSet>
  7175. <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  7176. <End Role="CmUser" EntitySet="CmUser" />
  7177. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7178. </AssociationSet>
  7179. <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="Self.FK__FmsMaterialTradeCompany__CmSite">
  7180. <End Role="CmSite" EntitySet="CmSite" />
  7181. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7182. </AssociationSet>
  7183. <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
  7184. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7185. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7186. </AssociationSet>
  7187. <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="Self.FK__FmsMaterialWarehouse__CmSite">
  7188. <End Role="CmSite" EntitySet="CmSite" />
  7189. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7190. </AssociationSet>
  7191. <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="Self.FK__FmsWorkCodeCauseClass__CmSite">
  7192. <End Role="CmSite" EntitySet="CmSite" />
  7193. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  7194. </AssociationSet>
  7195. <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="Self.FK__FmsWorkCodeCycleUnit__CmSite">
  7196. <End Role="CmSite" EntitySet="CmSite" />
  7197. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7198. </AssociationSet>
  7199. <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="Self.FK__FmsWorkCodeEmergency__CmSite">
  7200. <End Role="CmSite" EntitySet="CmSite" />
  7201. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  7202. </AssociationSet>
  7203. <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="Self.FK__FmsWorkCodeHolidayWorkType__CmSite">
  7204. <End Role="CmSite" EntitySet="CmSite" />
  7205. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  7206. </AssociationSet>
  7207. <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="Self.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  7208. <End Role="CmSite" EntitySet="CmSite" />
  7209. <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
  7210. </AssociationSet>
  7211. <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
  7212. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7213. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7214. </AssociationSet>
  7215. <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="Self.FK__FmsWorkOrder__CmSite">
  7216. <End Role="CmSite" EntitySet="CmSite" />
  7217. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7218. </AssociationSet>
  7219. <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
  7220. <End Role="CmUser" EntitySet="CmUser" />
  7221. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7222. </AssociationSet>
  7223. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
  7224. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  7225. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7226. </AssociationSet>
  7227. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
  7228. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7229. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7230. </AssociationSet>
  7231. <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
  7232. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7233. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  7234. </AssociationSet>
  7235. <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
  7236. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7237. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7238. </AssociationSet>
  7239. <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="Self.FK__FmsWorkRequest__CmSite">
  7240. <End Role="CmSite" EntitySet="CmSite" />
  7241. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7242. </AssociationSet>
  7243. <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
  7244. <End Role="CmUser" EntitySet="CmUser" />
  7245. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7246. </AssociationSet>
  7247. <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  7248. <End Role="CmUser" EntitySet="CmUser" />
  7249. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7250. </AssociationSet>
  7251. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
  7252. <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
  7253. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7254. </AssociationSet>
  7255. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
  7256. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7257. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7258. </AssociationSet>
  7259. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="Self.FK__FmsWorkRequest__FmsWorkSchedule">
  7260. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7261. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7262. </AssociationSet>
  7263. <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
  7264. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7265. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  7266. </AssociationSet>
  7267. <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
  7268. <End Role="CmUser" EntitySet="CmUser" />
  7269. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7270. </AssociationSet>
  7271. <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  7272. <End Role="CmUser" EntitySet="CmUser" />
  7273. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7274. </AssociationSet>
  7275. <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
  7276. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  7277. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7278. </AssociationSet>
  7279. <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
  7280. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7281. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7282. </AssociationSet>
  7283. <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
  7284. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7285. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7286. </AssociationSet>
  7287. <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="Self.FK__FmsWorkResultCheckItem__CmFacility">
  7288. <End Role="CmFacility" EntitySet="CmFacility" />
  7289. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7290. </AssociationSet>
  7291. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  7292. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7293. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7294. </AssociationSet>
  7295. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
  7296. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7297. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7298. </AssociationSet>
  7299. <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
  7300. <End Role="CmFile" EntitySet="CmFile" />
  7301. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  7302. </AssociationSet>
  7303. <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
  7304. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7305. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  7306. </AssociationSet>
  7307. <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
  7308. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7309. <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
  7310. </AssociationSet>
  7311. <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="Self.FK__FmsWorkResultToFacility__CmFacility">
  7312. <End Role="CmFacility" EntitySet="CmFacility" />
  7313. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  7314. </AssociationSet>
  7315. <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
  7316. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7317. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  7318. </AssociationSet>
  7319. <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="Self.FK__FmsWorkSchedule__CmBusinessField">
  7320. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7321. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7322. </AssociationSet>
  7323. <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="Self.FK__FmsWorkSchedule__CmUser">
  7324. <End Role="CmUser" EntitySet="CmUser" />
  7325. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7326. </AssociationSet>
  7327. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  7328. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7329. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7330. </AssociationSet>
  7331. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  7332. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  7333. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7334. </AssociationSet>
  7335. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  7336. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7337. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7338. </AssociationSet>
  7339. <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  7340. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7341. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  7342. </AssociationSet>
  7343. <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="Self.FK_BemsAlarmLog_BemsAlarmSetting">
  7344. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7345. <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
  7346. </AssociationSet>
  7347. <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="Self.FK_BemsAlarmSetting_BemsFacilityType">
  7348. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7349. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7350. </AssociationSet>
  7351. <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="Self.FK_BemsAlarmSetting_CmFacility">
  7352. <End Role="CmFacility" EntitySet="CmFacility" />
  7353. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7354. </AssociationSet>
  7355. <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="Self.FK_BemsAlarmSetting_CmSite1">
  7356. <End Role="CmSite" EntitySet="CmSite" />
  7357. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7358. </AssociationSet>
  7359. <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="Self.FK_BemsChartInfo_BemsFacilityType">
  7360. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7361. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  7362. </AssociationSet>
  7363. <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="Self.FK_BemsChartInfo_CmSite">
  7364. <End Role="CmSite" EntitySet="CmSite" />
  7365. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  7366. </AssociationSet>
  7367. <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
  7368. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7369. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  7370. </AssociationSet>
  7371. <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
  7372. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7373. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  7374. </AssociationSet>
  7375. <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="Self.FK_BemsEnergyCost_CmFacility">
  7376. <End Role="CmFacility" EntitySet="CmFacility" />
  7377. <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
  7378. </AssociationSet>
  7379. <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="Self.FK_BemsEnergyDailyRegression_CmSite">
  7380. <End Role="CmSite" EntitySet="CmSite" />
  7381. <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
  7382. </AssociationSet>
  7383. <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="Self.FK_BemsFormulaParameter_CmFacility">
  7384. <End Role="CmFacility" EntitySet="CmFacility" />
  7385. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  7386. </AssociationSet>
  7387. <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
  7388. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7389. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7390. </AssociationSet>
  7391. <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="Self.FK_BemsMonitoringPoint_CmFacility">
  7392. <End Role="CmFacility" EntitySet="CmFacility" />
  7393. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7394. </AssociationSet>
  7395. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="Self.FK_BemsMonitoringPointConfig_BemsFacilityType1">
  7396. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7397. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  7398. </AssociationSet>
  7399. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="Self.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  7400. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7401. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  7402. </AssociationSet>
  7403. <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="Self.FK_BemsPeakFacility_CmFacility">
  7404. <End Role="CmFacility" EntitySet="CmFacility" />
  7405. <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
  7406. </AssociationSet>
  7407. <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="Self.FK_BemsPeakHIstory_CmSite">
  7408. <End Role="CmSite" EntitySet="CmSite" />
  7409. <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
  7410. </AssociationSet>
  7411. <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="Self.FK_BemsPeakInfo_CmSite">
  7412. <End Role="CmSite" EntitySet="CmSite" />
  7413. <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
  7414. </AssociationSet>
  7415. <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="Self.FK_BemsPeopleIncrease_CmSite">
  7416. <End Role="CmSite" EntitySet="CmSite" />
  7417. <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
  7418. </AssociationSet>
  7419. <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="Self.FK_BemsPriceCode_BemsFuelType">
  7420. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7421. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7422. </AssociationSet>
  7423. <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="Self.FK_BemsPriceFormula_BemsFormula">
  7424. <End Role="BemsFormula" EntitySet="BemsFormula" />
  7425. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  7426. </AssociationSet>
  7427. <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="Self.FK_BemsPriceFormula_BemsPriceType">
  7428. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7429. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  7430. </AssociationSet>
  7431. <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="Self.FK_BemsPriceMeta_BemsPriceType">
  7432. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7433. <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
  7434. </AssociationSet>
  7435. <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="Self.FK_BemsPriceType_BemsFuelType1">
  7436. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7437. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7438. </AssociationSet>
  7439. <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="Self.FK_BemsRentalRate_CmSite">
  7440. <End Role="CmSite" EntitySet="CmSite" />
  7441. <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
  7442. </AssociationSet>
  7443. <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="Self.FK_BemsSitePrice_BemsFuelType">
  7444. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7445. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7446. </AssociationSet>
  7447. <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="Self.FK_BemsSitePrice_BemsPriceCode">
  7448. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7449. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7450. </AssociationSet>
  7451. <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="Self.FK_BemsSitePrice_BemsPriceType">
  7452. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7453. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7454. </AssociationSet>
  7455. <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="Self.FK_BemsSitePrice_CmSite1">
  7456. <End Role="CmSite" EntitySet="CmSite" />
  7457. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7458. </AssociationSet>
  7459. <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="Self.FK_BemsSitePriceHistory_BemsFuelType">
  7460. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7461. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7462. </AssociationSet>
  7463. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="Self.FK_BemsSitePriceHistory_BemsPriceCode">
  7464. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7465. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7466. </AssociationSet>
  7467. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="Self.FK_BemsSitePriceHistory_BemsPriceType">
  7468. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7469. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7470. </AssociationSet>
  7471. <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="Self.FK_BemsSitePriceHistory_CmSite">
  7472. <End Role="CmSite" EntitySet="CmSite" />
  7473. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7474. </AssociationSet>
  7475. <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
  7476. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7477. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7478. </AssociationSet>
  7479. <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
  7480. <End Role="CmFile" EntitySet="CmFile" />
  7481. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7482. </AssociationSet>
  7483. <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
  7484. <End Role="CmUser" EntitySet="CmUser" />
  7485. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7486. </AssociationSet>
  7487. <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="Self.FK_CmFacilityTempSet_CmFacility">
  7488. <End Role="CmFacility" EntitySet="CmFacility" />
  7489. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  7490. </AssociationSet>
  7491. <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="Self.FK_CmFacilityTempSet_CmSite">
  7492. <End Role="CmSite" EntitySet="CmSite" />
  7493. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  7494. </AssociationSet>
  7495. <AssociationSet Name="FK_CmMenu_CmSite" Association="Self.FK_CmMenu_CmSite">
  7496. <End Role="CmSite" EntitySet="CmSite" />
  7497. <End Role="CmMenu" EntitySet="CmMenu" />
  7498. </AssociationSet>
  7499. <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="Self.FK_CmPartnerType_CmPartner">
  7500. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  7501. <End Role="CmPartner" EntitySet="CmPartner" />
  7502. </AssociationSet>
  7503. <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="Self.FK_CmPatrolCourse_CmSite">
  7504. <End Role="CmSite" EntitySet="CmSite" />
  7505. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7506. </AssociationSet>
  7507. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="Self.FK_CmPatrolCoursePos_CmPatrolCourse">
  7508. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7509. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  7510. </AssociationSet>
  7511. <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="Self.FK_CmPatrolCoursePos_CmSite">
  7512. <End Role="CmSite" EntitySet="CmSite" />
  7513. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  7514. </AssociationSet>
  7515. <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="Self.FK_CmPatrolGroup_CmSite">
  7516. <End Role="CmSite" EntitySet="CmSite" />
  7517. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7518. </AssociationSet>
  7519. <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="Self.FK_CmPatrolGroupUser_CmPatrolGroup">
  7520. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7521. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  7522. </AssociationSet>
  7523. <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="Self.FK_CmPatrolGroupUser_CmUser">
  7524. <End Role="CmUser" EntitySet="CmUser" />
  7525. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  7526. </AssociationSet>
  7527. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="Self.FK_CmPatrolHistory_CmPatrolSchedule">
  7528. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7529. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7530. </AssociationSet>
  7531. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="Self.FK_CmPatrolHistory_CmPatrolType">
  7532. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7533. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7534. </AssociationSet>
  7535. <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="Self.FK_CmPatrolHistory_CmSite">
  7536. <End Role="CmSite" EntitySet="CmSite" />
  7537. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7538. </AssociationSet>
  7539. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="Self.FK_CmPatrolHistoryPos_CmPatrolPos">
  7540. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7541. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7542. </AssociationSet>
  7543. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="Self.FK_CmPatrolHistoryPos_CmPatrolType">
  7544. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7545. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7546. </AssociationSet>
  7547. <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="Self.FK_CmPatrolHistoryPos_CmSite">
  7548. <End Role="CmSite" EntitySet="CmSite" />
  7549. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7550. </AssociationSet>
  7551. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="Self.FK_CmPatrolPlan_CmPatrolCourse">
  7552. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7553. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7554. </AssociationSet>
  7555. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="Self.FK_CmPatrolPlan_CmPatrolGroup">
  7556. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7557. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7558. </AssociationSet>
  7559. <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="Self.FK_CmPatrolPlan_CmSite">
  7560. <End Role="CmSite" EntitySet="CmSite" />
  7561. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7562. </AssociationSet>
  7563. <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="Self.FK_CmPatrolPos_CmBuilding">
  7564. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7565. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7566. </AssociationSet>
  7567. <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="Self.FK_CmPatrolPos_CmFloor">
  7568. <End Role="CmFloor" EntitySet="CmFloor" />
  7569. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7570. </AssociationSet>
  7571. <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="Self.FK_CmPatrolPos_CmSite">
  7572. <End Role="CmSite" EntitySet="CmSite" />
  7573. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7574. </AssociationSet>
  7575. <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="Self.FK_CmPatrolSchedule_CmPatrolPlan">
  7576. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7577. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7578. </AssociationSet>
  7579. <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="Self.FK_CmPatrolSchedule_CmSite">
  7580. <End Role="CmSite" EntitySet="CmSite" />
  7581. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7582. </AssociationSet>
  7583. <AssociationSet Name="FK_CmPatrolType_CmSite" Association="Self.FK_CmPatrolType_CmSite">
  7584. <End Role="CmSite" EntitySet="CmSite" />
  7585. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7586. </AssociationSet>
  7587. <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
  7588. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7589. <End Role="CmUser" EntitySet="CmUser" />
  7590. </AssociationSet>
  7591. <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
  7592. <End Role="CmCompany" EntitySet="CmCompany" />
  7593. <End Role="CmUser" EntitySet="CmUser" />
  7594. </AssociationSet>
  7595. <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
  7596. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7597. <End Role="CmUser" EntitySet="CmUser" />
  7598. </AssociationSet>
  7599. <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
  7600. <End Role="CmPosition" EntitySet="CmPosition" />
  7601. <End Role="CmUser" EntitySet="CmUser" />
  7602. </AssociationSet>
  7603. <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
  7604. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7605. <End Role="CmUser" EntitySet="CmUser" />
  7606. </AssociationSet>
  7607. <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
  7608. <End Role="CmUser" EntitySet="CmUser" />
  7609. <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
  7610. </AssociationSet>
  7611. <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
  7612. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7613. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7614. </AssociationSet>
  7615. <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
  7616. <End Role="CmFloor" EntitySet="CmFloor" />
  7617. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7618. </AssociationSet>
  7619. <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="Self.FK_CmZoneTempHumiSet_CmSite">
  7620. <End Role="CmSite" EntitySet="CmSite" />
  7621. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7622. </AssociationSet>
  7623. <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
  7624. <End Role="CmZone" EntitySet="CmZone" />
  7625. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7626. </AssociationSet>
  7627. <AssociationSet Name="FK_FmsAccident_CmCompany" Association="Self.FK_FmsAccident_CmCompany">
  7628. <End Role="CmCompany" EntitySet="CmCompany" />
  7629. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7630. </AssociationSet>
  7631. <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
  7632. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7633. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7634. </AssociationSet>
  7635. <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
  7636. <End Role="CmFile" EntitySet="CmFile" />
  7637. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7638. </AssociationSet>
  7639. <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
  7640. <End Role="CmFile" EntitySet="CmFile" />
  7641. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7642. </AssociationSet>
  7643. <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
  7644. <End Role="CmFile" EntitySet="CmFile" />
  7645. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7646. </AssociationSet>
  7647. <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
  7648. <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
  7649. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7650. </AssociationSet>
  7651. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="Self.FK_FmsBudgetDetail_FmsBudget">
  7652. <End Role="FmsBudget" EntitySet="FmsBudget" />
  7653. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7654. </AssociationSet>
  7655. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="Self.FK_FmsBudgetDetail_FmsBudgetCodeClass">
  7656. <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
  7657. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7658. </AssociationSet>
  7659. <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="Self.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  7660. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7661. <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
  7662. </AssociationSet>
  7663. <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
  7664. <End Role="CmFile" EntitySet="CmFile" />
  7665. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7666. </AssociationSet>
  7667. <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
  7668. <End Role="CmFile" EntitySet="CmFile" />
  7669. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7670. </AssociationSet>
  7671. <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
  7672. <End Role="CmFile" EntitySet="CmFile" />
  7673. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7674. </AssociationSet>
  7675. <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="Self.FK_FmsConstruction_CmPartner">
  7676. <End Role="CmPartner" EntitySet="CmPartner" />
  7677. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7678. </AssociationSet>
  7679. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
  7680. <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
  7681. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7682. </AssociationSet>
  7683. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
  7684. <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
  7685. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7686. </AssociationSet>
  7687. <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
  7688. <End Role="CmUser" EntitySet="CmUser" />
  7689. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  7690. </AssociationSet>
  7691. <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
  7692. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7693. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  7694. </AssociationSet>
  7695. <AssociationSet Name="FK_FmsContract_CmPartner" Association="Self.FK_FmsContract_CmPartner">
  7696. <End Role="CmPartner" EntitySet="CmPartner" />
  7697. <End Role="FmsContract" EntitySet="FmsContract" />
  7698. </AssociationSet>
  7699. <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="Self.FK_FmsContract_CmPartnerType">
  7700. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  7701. <End Role="FmsContract" EntitySet="FmsContract" />
  7702. </AssociationSet>
  7703. <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="Self.FK_FmsContract_FmsContractClass">
  7704. <End Role="FmsContractClass" EntitySet="FmsContractClass" />
  7705. <End Role="FmsContract" EntitySet="FmsContract" />
  7706. </AssociationSet>
  7707. <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="Self.FK_FmsContract_FmsContractMethod">
  7708. <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
  7709. <End Role="FmsContract" EntitySet="FmsContract" />
  7710. </AssociationSet>
  7711. <AssociationSet Name="FK_FmsContract_FmsContractType" Association="Self.FK_FmsContract_FmsContractType">
  7712. <End Role="FmsContractType" EntitySet="FmsContractType" />
  7713. <End Role="FmsContract" EntitySet="FmsContract" />
  7714. </AssociationSet>
  7715. <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="Self.FK_FmsContract_FmsPaymentType">
  7716. <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
  7717. <End Role="FmsContract" EntitySet="FmsContract" />
  7718. </AssociationSet>
  7719. <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="Self.FK_FmsDailyCheckReport_CmUser">
  7720. <End Role="CmUser" EntitySet="CmUser" />
  7721. <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
  7722. </AssociationSet>
  7723. <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="Self.FK_FmsDailyReport_CmBusinessField">
  7724. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7725. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  7726. </AssociationSet>
  7727. <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="Self.FK_FmsDailyReport_CmUser">
  7728. <End Role="CmUser" EntitySet="CmUser" />
  7729. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  7730. </AssociationSet>
  7731. <AssociationSet Name="FK_FmsEquipment_CmUser" Association="Self.FK_FmsEquipment_CmUser">
  7732. <End Role="CmUser" EntitySet="CmUser" />
  7733. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7734. </AssociationSet>
  7735. <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="Self.FK_FmsEquipment_FmsEquipmentCodeType">
  7736. <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
  7737. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7738. </AssociationSet>
  7739. <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="Self.FK_FmsEquipment_FmsMaterialWarehouse">
  7740. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7741. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7742. </AssociationSet>
  7743. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="Self.FK_FmsEquipmentHistory_FmsEquipment">
  7744. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7745. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7746. </AssociationSet>
  7747. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  7748. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  7749. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7750. </AssociationSet>
  7751. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  7752. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7753. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7754. </AssociationSet>
  7755. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="Self.FK_FmsEquipmentRentInfo_CmUser">
  7756. <End Role="CmUser" EntitySet="CmUser" />
  7757. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7758. </AssociationSet>
  7759. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="Self.FK_FmsEquipmentRentInfo_CmUser1">
  7760. <End Role="CmUser" EntitySet="CmUser" />
  7761. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7762. </AssociationSet>
  7763. <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  7764. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  7765. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7766. </AssociationSet>
  7767. <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="Self.FK_FmsFacilityOperationReport_CmUser">
  7768. <End Role="CmUser" EntitySet="CmUser" />
  7769. <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
  7770. </AssociationSet>
  7771. <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
  7772. <End Role="FmsManualType" EntitySet="FmsManualType" />
  7773. <End Role="FmsManual" EntitySet="FmsManual" />
  7774. </AssociationSet>
  7775. <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
  7776. <End Role="CmFile" EntitySet="CmFile" />
  7777. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7778. </AssociationSet>
  7779. <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
  7780. <End Role="CmUser" EntitySet="CmUser" />
  7781. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7782. </AssociationSet>
  7783. <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
  7784. <End Role="FmsManual" EntitySet="FmsManual" />
  7785. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7786. </AssociationSet>
  7787. <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="Self.FK_FmsMaterial_CmBusinessField">
  7788. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7789. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7790. </AssociationSet>
  7791. <AssociationSet Name="FK_FmsMaterial_CmFile" Association="Self.FK_FmsMaterial_CmFile">
  7792. <End Role="CmFile" EntitySet="CmFile" />
  7793. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7794. </AssociationSet>
  7795. <AssociationSet Name="FK_FmsMaterial_CmSite" Association="Self.FK_FmsMaterial_CmSite">
  7796. <End Role="CmSite" EntitySet="CmSite" />
  7797. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7798. </AssociationSet>
  7799. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="Self.FK_FmsMaterial_FmsMaterialCodeLocation">
  7800. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7801. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7802. </AssociationSet>
  7803. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="Self.FK_FmsMaterial_FmsMaterialCodeType">
  7804. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  7805. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7806. </AssociationSet>
  7807. <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="Self.FK_FmsMaterial_FmsMaterialTradeCompany">
  7808. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7809. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7810. </AssociationSet>
  7811. <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="Self.FK_FmsMaterial_FmsMaterialWarehouse">
  7812. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7813. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7814. </AssociationSet>
  7815. <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  7816. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7817. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7818. </AssociationSet>
  7819. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  7820. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7821. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  7822. </AssociationSet>
  7823. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  7824. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7825. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  7826. </AssociationSet>
  7827. <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  7828. <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
  7829. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7830. </AssociationSet>
  7831. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  7832. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7833. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  7834. </AssociationSet>
  7835. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  7836. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7837. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  7838. </AssociationSet>
  7839. <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="Self.FK_FmsMaterialRelease_CmBusinessField">
  7840. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7841. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7842. </AssociationSet>
  7843. <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="Self.FK_FmsMaterialRelease_CmSite">
  7844. <End Role="CmSite" EntitySet="CmSite" />
  7845. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7846. </AssociationSet>
  7847. <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="Self.FK_FmsMaterialRelease_CmUser">
  7848. <End Role="CmUser" EntitySet="CmUser" />
  7849. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7850. </AssociationSet>
  7851. <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="Self.FK_FmsMaterialRelease_CmUser1">
  7852. <End Role="CmUser" EntitySet="CmUser" />
  7853. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7854. </AssociationSet>
  7855. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="Self.FK_FmsMaterialRelease_FmsMaterial">
  7856. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7857. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7858. </AssociationSet>
  7859. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  7860. <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
  7861. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7862. </AssociationSet>
  7863. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  7864. <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
  7865. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7866. </AssociationSet>
  7867. <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="Self.FK_FmsMaterialRelease_FmsWorkResult">
  7868. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7869. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7870. </AssociationSet>
  7871. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="Self.FK_FmsMaterialStored_FmsMaterial">
  7872. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7873. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7874. </AssociationSet>
  7875. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  7876. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7877. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7878. </AssociationSet>
  7879. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
  7880. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7881. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7882. </AssociationSet>
  7883. <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="Self.FK_FmsMonthlyReport_CmUser">
  7884. <End Role="CmUser" EntitySet="CmUser" />
  7885. <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
  7886. </AssociationSet>
  7887. <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="Self.FK_FmsReport_CmBusinessField">
  7888. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7889. <End Role="FmsReport" EntitySet="FmsReport" />
  7890. </AssociationSet>
  7891. <AssociationSet Name="FK_FmsReport_CmFile" Association="Self.FK_FmsReport_CmFile">
  7892. <End Role="CmFile" EntitySet="CmFile" />
  7893. <End Role="FmsReport" EntitySet="FmsReport" />
  7894. </AssociationSet>
  7895. <AssociationSet Name="FK_FmsReport_CmSite" Association="Self.FK_FmsReport_CmSite">
  7896. <End Role="CmSite" EntitySet="CmSite" />
  7897. <End Role="FmsReport" EntitySet="FmsReport" />
  7898. </AssociationSet>
  7899. <AssociationSet Name="FK_FmsReport_CmUser" Association="Self.FK_FmsReport_CmUser">
  7900. <End Role="CmUser" EntitySet="CmUser" />
  7901. <End Role="FmsReport" EntitySet="FmsReport" />
  7902. </AssociationSet>
  7903. <AssociationSet Name="FK_FmsReport_CmUser1" Association="Self.FK_FmsReport_CmUser1">
  7904. <End Role="CmUser" EntitySet="CmUser" />
  7905. <End Role="FmsReport" EntitySet="FmsReport" />
  7906. </AssociationSet>
  7907. <AssociationSet Name="FK_FmsReport_CmUser2" Association="Self.FK_FmsReport_CmUser2">
  7908. <End Role="CmUser" EntitySet="CmUser" />
  7909. <End Role="FmsReport" EntitySet="FmsReport" />
  7910. </AssociationSet>
  7911. <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="Self.FK_FmsWorkOrderToFacility_CmFacility">
  7912. <End Role="CmFacility" EntitySet="CmFacility" />
  7913. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  7914. </AssociationSet>
  7915. <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="Self.FK_FmsWorkRequest_CmPartner">
  7916. <End Role="CmPartner" EntitySet="CmPartner" />
  7917. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7918. </AssociationSet>
  7919. <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="Self.FK_FmsWorkRequestToFacility_CmFacility">
  7920. <End Role="CmFacility" EntitySet="CmFacility" />
  7921. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  7922. </AssociationSet>
  7923. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  7924. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7925. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  7926. </AssociationSet>
  7927. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  7928. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7929. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  7930. </AssociationSet>
  7931. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  7932. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7933. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  7934. </AssociationSet>
  7935. <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="Self.FK_FmsWorkSchedule_CmPartner">
  7936. <End Role="CmPartner" EntitySet="CmPartner" />
  7937. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7938. </AssociationSet>
  7939. <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="Self.FK_FmsWorkScheduleToFacility_CmFacility">
  7940. <End Role="CmFacility" EntitySet="CmFacility" />
  7941. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  7942. </AssociationSet>
  7943. </EntityContainer>
  7944. </Schema></edmx:StorageModels>
  7945. <!-- CSDL content -->
  7946. <edmx:ConceptualModels>
  7947. <Schema Namespace="iBemsModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
  7948. <EntityType Name="BemsAnalysisType">
  7949. <Key>
  7950. <PropertyRef Name="SiteId" />
  7951. <PropertyRef Name="AnalysisType" />
  7952. </Key>
  7953. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7954. <Property Name="AnalysisType" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  7955. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  7956. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsAnalysisType" ToRole="BemsMonitoringPointToAnlaysisType" />
  7957. </EntityType>
  7958. <EntityType Name="BemsControlPointHistory">
  7959. <Key>
  7960. <PropertyRef Name="SiteId" />
  7961. <PropertyRef Name="FacilityCode" />
  7962. <PropertyRef Name="PropertyId" />
  7963. <PropertyRef Name="CreateDateTime" />
  7964. </Key>
  7965. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7966. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7967. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  7968. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  7969. <Property Name="CreateDateTime" Type="DateTime" Nullable="false" Precision="3" />
  7970. <Property Name="ControlValue" Type="Double" Nullable="false" />
  7971. <Property Name="WriteServiceName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  7972. <Property Name="ActionDateTime" Type="DateTime" Precision="3" />
  7973. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsControlPointHistory" ToRole="BemsFacilityType" />
  7974. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsControlPointHistory" ToRole="BemsMonitoringPoint" />
  7975. </EntityType>
  7976. <EntityType Name="BemsFacilityType">
  7977. <Key>
  7978. <PropertyRef Name="FacilityTypeId" />
  7979. </Key>
  7980. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7981. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  7982. <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsControlPointHistory" />
  7983. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointBaseData" />
  7984. <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15min" />
  7985. <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryDaily" />
  7986. <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryHourly" />
  7987. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointToAnlaysisType" />
  7988. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPoint" />
  7989. <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsChartInfo" />
  7990. <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointConfig" />
  7991. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsAlarmSetting" />
  7992. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="BemsFacilityType" ToRole="CmFacility" />
  7993. <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15minRawData" />
  7994. </EntityType>
  7995. <EntityType Name="BemsFactorCo2">
  7996. <Key>
  7997. <PropertyRef Name="FuelTypeId" />
  7998. </Key>
  7999. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  8000. <Property Name="Factor" Type="Double" Nullable="false" />
  8001. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFactorCo2" ToRole="BemsFuelType" />
  8002. </EntityType>
  8003. <EntityType Name="BemsFactorToe">
  8004. <Key>
  8005. <PropertyRef Name="FuelTypeId" />
  8006. </Key>
  8007. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  8008. <Property Name="TotalFactor" Type="Double" Nullable="false" />
  8009. <Property Name="PureFactor" Type="Double" Nullable="false" />
  8010. <Property Name="kcal" Type="Double" />
  8011. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFactorToe" ToRole="BemsFuelType" />
  8012. </EntityType>
  8013. <EntityType Name="BemsFormula">
  8014. <Key>
  8015. <PropertyRef Name="SiteId" />
  8016. <PropertyRef Name="FacilityTypeId" />
  8017. <PropertyRef Name="FacilityCode" />
  8018. <PropertyRef Name="FormulaId" />
  8019. </Key>
  8020. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8021. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8022. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8023. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  8024. <Property Name="Formula" Type="String" MaxLength="120" FixedLength="false" Unicode="true" Nullable="false" />
  8025. <NavigationProperty Name="BemsFormulaBase" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormula" ToRole="BemsFormulaBase" />
  8026. <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormula" ToRole="BemsFormulaParameter" />
  8027. <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsFormula" ToRole="BemsPriceFormula" />
  8028. </EntityType>
  8029. <EntityType Name="BemsFormulaBase">
  8030. <Key>
  8031. <PropertyRef Name="FacilityTypeId" />
  8032. <PropertyRef Name="FormulaId" />
  8033. </Key>
  8034. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8035. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  8036. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8037. <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormulaBase" ToRole="BemsFormula" />
  8038. </EntityType>
  8039. <EntityType Name="BemsFormulaParameter">
  8040. <Key>
  8041. <PropertyRef Name="SiteId" />
  8042. <PropertyRef Name="FacilityCode" />
  8043. <PropertyRef Name="FormulaId" />
  8044. <PropertyRef Name="ParameterId" />
  8045. </Key>
  8046. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8047. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8048. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8049. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  8050. <Property Name="ParameterId" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
  8051. <Property Name="ParameterFacilityCode" Type="Int32" Nullable="false" />
  8052. <Property Name="ParameterPropertyId" Type="Int32" Nullable="false" />
  8053. <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormulaParameter" ToRole="BemsFormula" />
  8054. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsFormulaParameter" ToRole="BemsMonitoringPoint" />
  8055. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="BemsFormulaParameter" ToRole="CmFacility" />
  8056. </EntityType>
  8057. <EntityType Name="BemsFormulaTable">
  8058. <Key>
  8059. <PropertyRef Name="TableId" />
  8060. </Key>
  8061. <Property Name="TableId" Type="Int32" Nullable="false" />
  8062. <Property Name="FunctionName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8063. <Property Name="Description" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
  8064. <NavigationProperty Name="BemsFormulaTableValue" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTable" ToRole="BemsFormulaTableValue" />
  8065. </EntityType>
  8066. <EntityType Name="BemsFormulaTableValue">
  8067. <Key>
  8068. <PropertyRef Name="TableId" />
  8069. <PropertyRef Name="XValue" />
  8070. </Key>
  8071. <Property Name="TableId" Type="Int32" Nullable="false" />
  8072. <Property Name="XValue" Type="Double" Nullable="false" />
  8073. <Property Name="YValue" Type="Double" Nullable="false" />
  8074. <NavigationProperty Name="BemsFormulaTable" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTableValue" ToRole="BemsFormulaTable" />
  8075. </EntityType>
  8076. <EntityType Name="BemsMonitoringPoint">
  8077. <Key>
  8078. <PropertyRef Name="SiteId" />
  8079. <PropertyRef Name="FacilityCode" />
  8080. <PropertyRef Name="PropertyId" />
  8081. </Key>
  8082. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8083. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8084. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8085. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8086. <Property Name="ValueType" Type="Int32" Nullable="false" />
  8087. <Property Name="ServiceTypeId" Type="Int16" />
  8088. <Property Name="FuelTypeId" Type="Int16" />
  8089. <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8090. <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  8091. <Property Name="BuildingId" Type="Int32" />
  8092. <Property Name="FloorId" Type="Int32" />
  8093. <Property Name="ZoneId" Type="Int32" />
  8094. <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsControlPointHistory" />
  8095. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsMonitoringPoint" ToRole="BemsFacilityType" />
  8096. <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsFormulaParameter" />
  8097. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointToAnlaysisType" />
  8098. <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsMonitoringPoint" ToRole="BemsServiceType" />
  8099. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="BemsMonitoringPoint" ToRole="CmBuilding" />
  8100. <NavigationProperty Name="CmFloor" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="BemsMonitoringPoint" ToRole="CmFloor" />
  8101. <NavigationProperty Name="CmZone" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="BemsMonitoringPoint" ToRole="CmZone" />
  8102. <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15min" />
  8103. <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryDaily" />
  8104. <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryHourly" />
  8105. <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointConfig" />
  8106. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsMonitoringPoint" ToRole="BemsFuelType" />
  8107. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="BemsMonitoringPoint" ToRole="CmFacility" />
  8108. <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15minRawData" />
  8109. </EntityType>
  8110. <EntityType Name="BemsMonitoringPointBaseData">
  8111. <Key>
  8112. <PropertyRef Name="FacilityTypeId" />
  8113. <PropertyRef Name="PropertyId" />
  8114. </Key>
  8115. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8116. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8117. <Property Name="ValueType" Type="Int32" Nullable="false" />
  8118. <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
  8119. <Property Name="ServiceTypeId" Type="Int16" />
  8120. <Property Name="FuelTypeId" Type="Int16" />
  8121. <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8122. <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  8123. <Property Name="IsSampled" Type="Boolean" />
  8124. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFacilityType" />
  8125. <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsServiceType" />
  8126. <Property Name="IsConverted" Type="Boolean" />
  8127. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFuelType" />
  8128. </EntityType>
  8129. <EntityType Name="BemsMonitoringPointHistory15min">
  8130. <Key>
  8131. <PropertyRef Name="SiteId" />
  8132. <PropertyRef Name="FacilityCode" />
  8133. <PropertyRef Name="PropertyId" />
  8134. <PropertyRef Name="CreatedDateTime" />
  8135. </Key>
  8136. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8137. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8138. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8139. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8140. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8141. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  8142. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsFacilityType" />
  8143. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsMonitoringPoint" />
  8144. </EntityType>
  8145. <EntityType Name="BemsMonitoringPointHistoryDaily">
  8146. <Key>
  8147. <PropertyRef Name="SiteId" />
  8148. <PropertyRef Name="FacilityCode" />
  8149. <PropertyRef Name="PropertyId" />
  8150. <PropertyRef Name="CreatedDateTime" />
  8151. </Key>
  8152. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8153. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8154. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8155. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8156. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8157. <Property Name="DailyValue" Type="Double" Nullable="false" />
  8158. <Property Name="MaxValue" Type="Double" />
  8159. <Property Name="MinValue" Type="Double" />
  8160. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsFacilityType" />
  8161. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsMonitoringPoint" />
  8162. </EntityType>
  8163. <EntityType Name="BemsMonitoringPointHistoryHourly">
  8164. <Key>
  8165. <PropertyRef Name="SiteId" />
  8166. <PropertyRef Name="FacilityCode" />
  8167. <PropertyRef Name="PropertyId" />
  8168. <PropertyRef Name="CreatedDateTime" />
  8169. </Key>
  8170. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8171. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8172. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8173. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8174. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8175. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  8176. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsFacilityType" />
  8177. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsMonitoringPoint" />
  8178. </EntityType>
  8179. <EntityType Name="BemsMonitoringPointToAnlaysisType">
  8180. <Key>
  8181. <PropertyRef Name="SiteId" />
  8182. <PropertyRef Name="FacilityTypeId" />
  8183. <PropertyRef Name="FacilityCode" />
  8184. <PropertyRef Name="PropertyId" />
  8185. <PropertyRef Name="AnalysisType" />
  8186. </Key>
  8187. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8188. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8189. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8190. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8191. <Property Name="AnalysisType" Type="Int32" Nullable="false" />
  8192. <NavigationProperty Name="BemsAnalysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsAnalysisType" />
  8193. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsFacilityType" />
  8194. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsMonitoringPoint" />
  8195. </EntityType>
  8196. <EntityType Name="BemsServiceType">
  8197. <Key>
  8198. <PropertyRef Name="ServiceTypeId" />
  8199. </Key>
  8200. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  8201. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  8202. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPoint" />
  8203. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPointBaseData" />
  8204. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsEnergyDaily" />
  8205. </EntityType>
  8206. <EntityType Name="CmAnnouncement">
  8207. <Key>
  8208. <PropertyRef Name="SiteId" />
  8209. <PropertyRef Name="AnnouncementId" />
  8210. </Key>
  8211. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8212. <Property Name="AnnouncementId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8213. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  8214. <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  8215. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" Nullable="false" />
  8216. <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8217. <Property Name="FileId" Type="Int32" />
  8218. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  8219. <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
  8220. <Property Name="IsUse" Type="Boolean" />
  8221. <Property Name="ReadCount" Type="Int32" Nullable="false" />
  8222. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmAnnouncement" ToRole="CmBusinessField" />
  8223. <NavigationProperty Name="CmFile" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmAnnouncement" ToRole="CmFile" />
  8224. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmAnnouncement" ToRole="CmUser" />
  8225. </EntityType>
  8226. <EntityType Name="CmBuilding">
  8227. <Key>
  8228. <PropertyRef Name="SiteId" />
  8229. <PropertyRef Name="BuildingId" />
  8230. </Key>
  8231. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8232. <Property Name="BuildingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8233. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8234. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="CmBuilding" ToRole="BemsMonitoringPoint" />
  8235. <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmBuilding" ToRole="CmFloor" />
  8236. <NavigationProperty Name="CmZone" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmBuilding" ToRole="CmZone" />
  8237. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmBuilding" ToRole="CmZoneTempHumiSet" />
  8238. <Property Name="FileId" Type="Int32" />
  8239. <Property Name="IsUse" Type="Boolean" />
  8240. <Property Name="SortOrderNo" Type="Int32" />
  8241. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmBuilding" ToRole="CmPatrolPos" />
  8242. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmBuilding" ToRole="CmSite" />
  8243. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="CmBuilding" ToRole="BemsEnergyDaily" />
  8244. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmBuilding" ToRole="CmFacility" />
  8245. </EntityType>
  8246. <EntityType Name="CmBusinessField">
  8247. <Key>
  8248. <PropertyRef Name="SiteId" />
  8249. <PropertyRef Name="BusinessFieldId" />
  8250. </Key>
  8251. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8252. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8253. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8254. <Property Name="IsUse" Type="Boolean" />
  8255. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmBusinessField" ToRole="CmAnnouncement" />
  8256. <NavigationProperty Name="FmsFacilityManual" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="CmBusinessField" ToRole="FmsFacilityManual" />
  8257. <NavigationProperty Name="FmsLicense" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsLicense" />
  8258. <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCarriedForward" />
  8259. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCodeLocation" />
  8260. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseOrder" />
  8261. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseRequest" />
  8262. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialStored" />
  8263. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialWarehouse" />
  8264. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkOrder" />
  8265. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkRequest" />
  8266. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkSchedule" />
  8267. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmBusinessField" ToRole="CmUser" />
  8268. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterial" />
  8269. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialRelease" />
  8270. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsReport" />
  8271. <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsDailyReport" />
  8272. </EntityType>
  8273. <EntityType Name="CmCompany">
  8274. <Key>
  8275. <PropertyRef Name="SiteId" />
  8276. <PropertyRef Name="CompanyId" />
  8277. </Key>
  8278. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8279. <Property Name="CompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8280. <Property Name="CompanyTypeId" Type="Int32" Nullable="false" />
  8281. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8282. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8283. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8284. <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8285. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8286. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8287. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  8288. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  8289. <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8290. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8291. <Property Name="Homepage" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8292. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8293. <Property Name="IsUse" Type="Boolean" />
  8294. <NavigationProperty Name="CmCompanyType" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompany" ToRole="CmCompanyType" />
  8295. <NavigationProperty Name="CmDepartment" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmCompany" ToRole="CmDepartment" />
  8296. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmCompany" ToRole="CmUser" />
  8297. <NavigationProperty Name="FmsAccident" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="CmCompany" ToRole="FmsAccident" />
  8298. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmCompany" ToRole="CmSite" />
  8299. </EntityType>
  8300. <EntityType Name="CmCompanyType">
  8301. <Key>
  8302. <PropertyRef Name="SiteId" />
  8303. <PropertyRef Name="CompanyTypeId" />
  8304. </Key>
  8305. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8306. <Property Name="CompanyTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8307. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8308. <Property Name="IsUse" Type="Boolean" />
  8309. <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompanyType" ToRole="CmCompany" />
  8310. </EntityType>
  8311. <EntityType Name="CmDepartment">
  8312. <Key>
  8313. <PropertyRef Name="SiteId" />
  8314. <PropertyRef Name="CompanyId" />
  8315. <PropertyRef Name="DepartmentId" />
  8316. </Key>
  8317. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8318. <Property Name="CompanyId" Type="Int32" Nullable="false" />
  8319. <Property Name="DepartmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8320. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8321. <Property Name="ShortName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8322. <Property Name="FaxNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8323. <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8324. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8325. <Property Name="IsUse" Type="Boolean" />
  8326. <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmDepartment" ToRole="CmCompany" />
  8327. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmDepartment" ToRole="CmUser" />
  8328. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="CmDepartment" ToRole="FmsAccident" />
  8329. </EntityType>
  8330. <EntityType Name="CmFacilityFile">
  8331. <Key>
  8332. <PropertyRef Name="SiteId" />
  8333. <PropertyRef Name="FileId" />
  8334. </Key>
  8335. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8336. <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8337. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8338. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  8339. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8340. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  8341. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8342. <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFacilityFile" ToRole="CmFile" />
  8343. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacilityFile" ToRole="CmFacility" />
  8344. </EntityType>
  8345. <EntityType Name="CmFacilityTempSet">
  8346. <Key>
  8347. <PropertyRef Name="SiteId" />
  8348. <PropertyRef Name="FacilityCode" />
  8349. </Key>
  8350. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8351. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8352. <Property Name="T1" Type="Double" Nullable="false" />
  8353. <Property Name="T2" Type="Double" Nullable="false" />
  8354. <Property Name="T3" Type="Double" Nullable="false" />
  8355. <Property Name="T4" Type="Double" Nullable="false" />
  8356. <Property Name="T5" Type="Double" Nullable="false" />
  8357. <Property Name="T6" Type="Double" Nullable="false" />
  8358. <Property Name="T7" Type="Double" Nullable="false" />
  8359. <Property Name="T8" Type="Double" Nullable="false" />
  8360. <Property Name="T9" Type="Double" Nullable="false" />
  8361. <Property Name="T10" Type="Double" Nullable="false" />
  8362. <Property Name="T11" Type="Double" Nullable="false" />
  8363. <Property Name="T12" Type="Double" Nullable="false" />
  8364. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmFacilityTempSet" ToRole="CmSite" />
  8365. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacilityTempSet" ToRole="CmFacility" />
  8366. </EntityType>
  8367. <EntityType Name="CmFile" m:HasStream="true" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
  8368. <Key>
  8369. <PropertyRef Name="SiteId" />
  8370. <PropertyRef Name="FileId" />
  8371. </Key>
  8372. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8373. <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8374. <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
  8375. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  8376. <Property Name="FileSize" Type="Int32" />
  8377. <Property Name="CreatedDate" Type="DateTime" Precision="3" />
  8378. <Property Name="ContentType" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  8379. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmFile" ToRole="CmAnnouncement" />
  8380. <NavigationProperty Name="CmFacilityFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFile" ToRole="CmFacilityFile" />
  8381. <NavigationProperty Name="CmFileCategory" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFile" ToRole="CmFileCategory" />
  8382. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="CmFile" ToRole="FmsDrawingHistory" />
  8383. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="CmFile" ToRole="FmsMaterialPurchaseOrder" />
  8384. <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="CmFile" ToRole="FmsWorkResultFile" />
  8385. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="CmFile" ToRole="FmsAccident" />
  8386. <NavigationProperty Name="FmsAccident1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="CmFile" ToRole="FmsAccident" />
  8387. <NavigationProperty Name="FmsAccident2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="CmFile" ToRole="FmsAccident" />
  8388. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="CmFile" ToRole="FmsConstruction" />
  8389. <NavigationProperty Name="FmsConstruction1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="CmFile" ToRole="FmsConstruction" />
  8390. <NavigationProperty Name="FmsConstruction2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="CmFile" ToRole="FmsConstruction" />
  8391. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="CmFile" ToRole="FmsManualHistory" />
  8392. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="CmFile" ToRole="FmsMaterial" />
  8393. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmFile" ToRole="CmSite" />
  8394. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="CmFile" ToRole="FmsReport" />
  8395. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
  8396. <NavigationProperty Name="FmsWorkResultCheckItem1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
  8397. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFile" ToRole="CmFacility" />
  8398. </EntityType>
  8399. <EntityType Name="CmFileCategory">
  8400. <Key>
  8401. <PropertyRef Name="FileCategoryId" />
  8402. </Key>
  8403. <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
  8404. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8405. <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFileCategory" ToRole="CmFile" />
  8406. </EntityType>
  8407. <EntityType Name="CmFloor">
  8408. <Key>
  8409. <PropertyRef Name="SiteId" />
  8410. <PropertyRef Name="BuildingId" />
  8411. <PropertyRef Name="FloorId" />
  8412. </Key>
  8413. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8414. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  8415. <Property Name="FloorId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8416. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8417. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="CmFloor" ToRole="BemsMonitoringPoint" />
  8418. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmFloor" ToRole="CmBuilding" />
  8419. <NavigationProperty Name="CmZone" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmFloor" ToRole="CmZone" />
  8420. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmFloor" ToRole="CmZoneTempHumiSet" />
  8421. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmFloor" ToRole="CmPatrolPos" />
  8422. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFloor" ToRole="CmFacility" />
  8423. </EntityType>
  8424. <EntityType Name="CmHoliday">
  8425. <Key>
  8426. <PropertyRef Name="SiteId" />
  8427. <PropertyRef Name="HolidayMonth" />
  8428. <PropertyRef Name="HolidayDay" />
  8429. <PropertyRef Name="IsLunar" />
  8430. </Key>
  8431. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8432. <Property Name="HolidayMonth" Type="Int16" Nullable="false" />
  8433. <Property Name="HolidayDay" Type="Int16" Nullable="false" />
  8434. <Property Name="IsLunar" Type="Boolean" Nullable="false" />
  8435. <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
  8436. <Property Name="IsUse" Type="Boolean" />
  8437. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmHoliday" ToRole="CmSite" />
  8438. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmHoliday" ToRole="CmSite" />
  8439. </EntityType>
  8440. <EntityType Name="CmHolidayCustom">
  8441. <Key>
  8442. <PropertyRef Name="SiteId" />
  8443. <PropertyRef Name="HolidayDate" />
  8444. </Key>
  8445. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8446. <Property Name="HolidayDate" Type="DateTime" Nullable="false" Precision="3" />
  8447. <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
  8448. <Property Name="IsUse" Type="Boolean" />
  8449. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmHolidayCustom" ToRole="CmSite" />
  8450. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmHolidayCustom" ToRole="CmSite" />
  8451. </EntityType>
  8452. <EntityType Name="CmPosition">
  8453. <Key>
  8454. <PropertyRef Name="SiteId" />
  8455. <PropertyRef Name="PositionId" />
  8456. </Key>
  8457. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8458. <Property Name="PositionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8459. <Property Name="Name" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
  8460. <Property Name="IsUse" Type="Boolean" />
  8461. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmPosition" ToRole="CmUser" />
  8462. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmPosition" ToRole="CmSite" />
  8463. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmPosition" ToRole="CmSite" />
  8464. </EntityType>
  8465. <EntityType Name="CmUser">
  8466. <Key>
  8467. <PropertyRef Name="SiteId" />
  8468. <PropertyRef Name="UserId" />
  8469. </Key>
  8470. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8471. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8472. <Property Name="CompanyId" Type="Int32" />
  8473. <Property Name="DepartmentId" Type="Int32" />
  8474. <Property Name="PositionId" Type="Int32" />
  8475. <Property Name="BusinessFieldId" Type="Int32" />
  8476. <Property Name="UserGroupId" Type="Int32" />
  8477. <Property Name="Name" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  8478. <Property Name="Passwd" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  8479. <Property Name="Birthday" Type="DateTime" Precision="3" />
  8480. <Property Name="Lunar" Type="Boolean" />
  8481. <Property Name="StateId" Type="Int32" />
  8482. <Property Name="EmploymentType" Type="Int32" />
  8483. <Property Name="EmploymentStatus" Type="Int32" />
  8484. <Property Name="OfficePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8485. <Property Name="HomePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8486. <Property Name="MobilePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8487. <Property Name="HomeZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
  8488. <Property Name="HomeZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
  8489. <Property Name="HomeAddress1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8490. <Property Name="HomeAdderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8491. <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8492. <Property Name="EnterDate" Type="DateTime" Precision="3" />
  8493. <Property Name="RetireDate" Type="DateTime" Precision="3" />
  8494. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8495. <Property Name="Rfcsn" Type="String" MaxLength="30" FixedLength="false" Unicode="true" />
  8496. <Property Name="PasswordUpdatedDate" Type="DateTime" Precision="3" />
  8497. <Property Name="FileId" Type="Int32" />
  8498. <Property Name="IsBems" Type="Boolean" />
  8499. <Property Name="IsUse" Type="Boolean" />
  8500. <Property Name="Certificated" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  8501. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmUser" ToRole="CmAnnouncement" />
  8502. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmUser" ToRole="CmBusinessField" />
  8503. <NavigationProperty Name="CmCompany" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmUser" ToRole="CmCompany" />
  8504. <NavigationProperty Name="CmDepartment" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmUser" ToRole="CmDepartment" />
  8505. <NavigationProperty Name="CmPosition" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmUser" ToRole="CmPosition" />
  8506. <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUser" ToRole="CmUserToLicense" />
  8507. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="CmUser" ToRole="FmsDrawingHistory" />
  8508. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="CmUser" ToRole="FmsMaterialPurchaseOrder" />
  8509. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
  8510. <NavigationProperty Name="FmsMaterialPurchaseRequest1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
  8511. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
  8512. <NavigationProperty Name="FmsMaterialStored1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
  8513. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="CmUser" ToRole="FmsWorkOrder" />
  8514. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
  8515. <NavigationProperty Name="FmsWorkRequest1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
  8516. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
  8517. <NavigationProperty Name="FmsWorkResult1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
  8518. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmUser" FromRole="CmUser" ToRole="FmsWorkSchedule" />
  8519. <NavigationProperty Name="CmUserGroup" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUser" ToRole="CmUserGroup" />
  8520. <NavigationProperty Name="CmUserLoginHistory" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUser" ToRole="CmUserLoginHistory" />
  8521. <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="CmUser" ToRole="FmsConstructionEstimation" />
  8522. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="CmUser" ToRole="FmsManualHistory" />
  8523. <NavigationProperty Name="FmsDailyCheckReport" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="CmUser" ToRole="FmsDailyCheckReport" />
  8524. <NavigationProperty Name="FmsFacilityOperationReport" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="CmUser" ToRole="FmsFacilityOperationReport" />
  8525. <Property Name="IsScheduleUser" Type="Boolean" />
  8526. <NavigationProperty Name="FmsMonthlyReport" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="CmUser" ToRole="FmsMonthlyReport" />
  8527. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="CmUser" ToRole="FmsMaterialRelease" />
  8528. <NavigationProperty Name="FmsMaterialRelease1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="CmUser" ToRole="FmsMaterialRelease" />
  8529. <Property Name="IsSI" Type="Boolean" Nullable="true" />
  8530. <Property Name="IsMobile" Type="Boolean" Nullable="true" />
  8531. <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmUser" ToRole="CmPatrolGroupUser" />
  8532. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="CmUser" ToRole="FmsReport" />
  8533. <NavigationProperty Name="FmsReport1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="CmUser" ToRole="FmsReport" />
  8534. <NavigationProperty Name="FmsReport2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="CmUser" ToRole="FmsReport" />
  8535. <Property Name="Devicetoken" Type="String" MaxLength="500" FixedLength="false" Unicode="true" />
  8536. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
  8537. <NavigationProperty Name="FmsEquipmentRentInfo1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
  8538. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmUser" ToRole="CmFacility" />
  8539. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmUser" ToRole="CmFacility" />
  8540. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmUser" ToRole="CmFacility" />
  8541. <NavigationProperty Name="CmFacility3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmUser" ToRole="CmFacility" />
  8542. <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="CmUser" ToRole="FmsDailyReport" />
  8543. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="CmUser" ToRole="FmsEquipment" />
  8544. </EntityType>
  8545. <EntityType Name="CmUserGroup">
  8546. <Key>
  8547. <PropertyRef Name="SiteId" />
  8548. <PropertyRef Name="UserGroupId" />
  8549. </Key>
  8550. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8551. <Property Name="UserGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8552. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8553. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUserGroup" ToRole="CmUser" />
  8554. <NavigationProperty Name="CmUserGroupPermission" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroup" ToRole="CmUserGroupPermission" />
  8555. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmUserGroup" ToRole="CmSite" />
  8556. </EntityType>
  8557. <EntityType Name="CmUserGroupPermission">
  8558. <Key>
  8559. <PropertyRef Name="SiteId" />
  8560. <PropertyRef Name="UserGroupId" />
  8561. <PropertyRef Name="MenuId" />
  8562. </Key>
  8563. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8564. <Property Name="UserGroupId" Type="Int32" Nullable="false" />
  8565. <Property Name="MenuId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8566. <Property Name="MenuPermission" Type="Int16" />
  8567. <NavigationProperty Name="CmUserGroup" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroupPermission" ToRole="CmUserGroup" />
  8568. </EntityType>
  8569. <EntityType Name="CmUserLoginHistory">
  8570. <Key>
  8571. <PropertyRef Name="LoginHistoryId" />
  8572. </Key>
  8573. <Property Name="LoginHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8574. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8575. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8576. <Property Name="Type" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
  8577. <Property Name="TraceTime" Type="DateTime" Nullable="false" Precision="3" />
  8578. <Property Name="IpAddress" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  8579. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUserLoginHistory" ToRole="CmUser" />
  8580. </EntityType>
  8581. <EntityType Name="CmUserToLicense">
  8582. <Key>
  8583. <PropertyRef Name="SiteId" />
  8584. <PropertyRef Name="UserId" />
  8585. <PropertyRef Name="LicenseId" />
  8586. </Key>
  8587. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8588. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8589. <Property Name="LicenseId" Type="Int32" Nullable="false" />
  8590. <NavigationProperty Name="CmUser" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUserToLicense" ToRole="CmUser" />
  8591. <NavigationProperty Name="FmsLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="CmUserToLicense" ToRole="FmsLicense" />
  8592. </EntityType>
  8593. <EntityType Name="CmZone">
  8594. <Key>
  8595. <PropertyRef Name="SiteId" />
  8596. <PropertyRef Name="BuildingId" />
  8597. <PropertyRef Name="FloorId" />
  8598. <PropertyRef Name="ZoneId" />
  8599. </Key>
  8600. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8601. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  8602. <Property Name="FloorId" Type="Int32" Nullable="false" />
  8603. <Property Name="ZoneId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8604. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8605. <Property Name="Target_temperature" Type="Double" />
  8606. <Property Name="Target_humidity" Type="Int16" />
  8607. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="CmZone" ToRole="BemsMonitoringPoint" />
  8608. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmZone" ToRole="CmBuilding" />
  8609. <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmZone" ToRole="CmFloor" />
  8610. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZone" ToRole="CmZoneTempHumiSet" />
  8611. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmZone" ToRole="CmFacility" />
  8612. </EntityType>
  8613. <EntityType Name="CmZoneTempHumiSet">
  8614. <Key>
  8615. <PropertyRef Name="SiteId" />
  8616. <PropertyRef Name="BuildingId" />
  8617. <PropertyRef Name="FloorId" />
  8618. <PropertyRef Name="ZoneId" />
  8619. </Key>
  8620. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8621. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  8622. <Property Name="FloorId" Type="Int32" Nullable="false" />
  8623. <Property Name="ZoneId" Type="Int32" Nullable="false" />
  8624. <Property Name="T1" Type="Double" Nullable="false" />
  8625. <Property Name="T2" Type="Double" Nullable="false" />
  8626. <Property Name="T3" Type="Double" Nullable="false" />
  8627. <Property Name="T4" Type="Double" Nullable="false" />
  8628. <Property Name="T5" Type="Double" Nullable="false" />
  8629. <Property Name="T6" Type="Double" Nullable="false" />
  8630. <Property Name="T7" Type="Double" Nullable="false" />
  8631. <Property Name="T8" Type="Double" Nullable="false" />
  8632. <Property Name="T9" Type="Double" Nullable="false" />
  8633. <Property Name="T10" Type="Double" Nullable="false" />
  8634. <Property Name="T11" Type="Double" Nullable="false" />
  8635. <Property Name="T12" Type="Double" Nullable="false" />
  8636. <Property Name="H1" Type="Int16" Nullable="false" />
  8637. <Property Name="H2" Type="Int16" Nullable="false" />
  8638. <Property Name="H3" Type="Int16" Nullable="false" />
  8639. <Property Name="H4" Type="Int16" Nullable="false" />
  8640. <Property Name="H5" Type="Int16" Nullable="false" />
  8641. <Property Name="H6" Type="Int16" Nullable="false" />
  8642. <Property Name="H7" Type="Int16" Nullable="false" />
  8643. <Property Name="H8" Type="Int16" Nullable="false" />
  8644. <Property Name="H9" Type="Int16" Nullable="false" />
  8645. <Property Name="H10" Type="Int16" Nullable="false" />
  8646. <Property Name="H11" Type="Int16" Nullable="false" />
  8647. <Property Name="H12" Type="Int16" Nullable="false" />
  8648. <NavigationProperty Name="CmBuilding" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmZoneTempHumiSet" ToRole="CmBuilding" />
  8649. <NavigationProperty Name="CmFloor" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmZoneTempHumiSet" ToRole="CmFloor" />
  8650. <NavigationProperty Name="CmZone" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZoneTempHumiSet" ToRole="CmZone" />
  8651. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmZoneTempHumiSet" ToRole="CmSite" />
  8652. </EntityType>
  8653. <EntityType Name="FmsAccident">
  8654. <Key>
  8655. <PropertyRef Name="SiteId" />
  8656. <PropertyRef Name="AccidentId" />
  8657. </Key>
  8658. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8659. <Property Name="AccidentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8660. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  8661. <Property Name="StartDate" Type="DateTime" Precision="3" />
  8662. <Property Name="EndDate" Type="DateTime" Precision="3" />
  8663. <Property Name="AccidentTypeId" Type="Int32" Nullable="false" />
  8664. <Property Name="DepartmentId" Type="Int32" />
  8665. <Property Name="AccidentLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  8666. <Property Name="Reason" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8667. <Property Name="Action" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8668. <Property Name="Damage" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8669. <Property Name="Measurement" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8670. <Property Name="FileId1" Type="Int32" />
  8671. <Property Name="FileId2" Type="Int32" />
  8672. <Property Name="FileId3" Type="Int32" />
  8673. <Property Name="CompanyId" Type="Int32" />
  8674. <NavigationProperty Name="CmDepartment" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="FmsAccident" ToRole="CmDepartment" />
  8675. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="FmsAccident" ToRole="CmFile" />
  8676. <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="FmsAccident" ToRole="CmFile" />
  8677. <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="FmsAccident" ToRole="CmFile" />
  8678. <NavigationProperty Name="FmsAccidentCodeType" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccident" ToRole="FmsAccidentCodeType" />
  8679. <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="FmsAccident" ToRole="CmCompany" />
  8680. </EntityType>
  8681. <EntityType Name="FmsAccidentCodeType">
  8682. <Key>
  8683. <PropertyRef Name="SiteId" />
  8684. <PropertyRef Name="AccidentTypeId" />
  8685. </Key>
  8686. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8687. <Property Name="AccidentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8688. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8689. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  8690. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccidentCodeType" ToRole="FmsAccident" />
  8691. </EntityType>
  8692. <EntityType Name="FmsBudget">
  8693. <Key>
  8694. <PropertyRef Name="SiteId" />
  8695. <PropertyRef Name="Year" />
  8696. </Key>
  8697. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8698. <Property Name="Year" Type="Int32" Nullable="false" />
  8699. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudget" ToRole="FmsBudgetDetail" />
  8700. </EntityType>
  8701. <EntityType Name="FmsBudgetCodeClass">
  8702. <Key>
  8703. <PropertyRef Name="SiteId" />
  8704. <PropertyRef Name="BudgetClassId" />
  8705. </Key>
  8706. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8707. <Property Name="BudgetClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8708. <Property Name="BudgetSeq" Type="String" MaxLength="6" FixedLength="false" Unicode="true" Nullable="false" />
  8709. <Property Name="ParentBudgetClassId" Type="Int32" />
  8710. <Property Name="Depth" Type="Int32" Nullable="false" />
  8711. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8712. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  8713. <Property Name="IsUse" Type="Boolean" />
  8714. <Property Name="YearlyBudget" Type="Double" />
  8715. <Property Name="MonthlyBudget" Type="Double" />
  8716. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetCodeClass" ToRole="FmsBudgetDetail" />
  8717. <Property Name="RootBudgetClassId" Type="Int32" />
  8718. </EntityType>
  8719. <EntityType Name="FmsCompanyEstimationCodeClass">
  8720. <Key>
  8721. <PropertyRef Name="SiteId" />
  8722. <PropertyRef Name="CompanyEstimationClassId" />
  8723. </Key>
  8724. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8725. <Property Name="CompanyEstimationClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8726. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  8727. <Property Name="IsUse" Type="Boolean" />
  8728. </EntityType>
  8729. <EntityType Name="FmsConstruction">
  8730. <Key>
  8731. <PropertyRef Name="SiteId" />
  8732. <PropertyRef Name="ConstructionId" />
  8733. </Key>
  8734. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8735. <Property Name="ConstructionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8736. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  8737. <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
  8738. <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
  8739. <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
  8740. <Property Name="PartnerId" Type="Int32" Nullable="false" />
  8741. <Property Name="ConstructLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  8742. <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8743. <Property Name="CommitmentMan" Type="Int16" />
  8744. <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8745. <Property Name="WeldWorkStartTime" Type="DateTime" Precision="3" />
  8746. <Property Name="WeldWorkEndTime" Type="DateTime" Precision="3" />
  8747. <Property Name="GasWorkStartTime" Type="DateTime" Precision="3" />
  8748. <Property Name="GasWorkEndTime" Type="DateTime" Precision="3" />
  8749. <Property Name="PaintWorkStartTime" Type="DateTime" Precision="3" />
  8750. <Property Name="PaintWorkEndTime" Type="DateTime" Precision="3" />
  8751. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8752. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  8753. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  8754. <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
  8755. <Property Name="ConstructionDetail" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8756. <Property Name="InOutStockName" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8757. <Property Name="FileId1" Type="Int32" />
  8758. <Property Name="FileId2" Type="Int32" />
  8759. <Property Name="FileId3" Type="Int32" />
  8760. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="FmsConstruction" ToRole="CmFile" />
  8761. <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="FmsConstruction" ToRole="CmFile" />
  8762. <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="FmsConstruction" ToRole="CmFile" />
  8763. <NavigationProperty Name="FmsConstructionCodeProgress" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstruction" ToRole="FmsConstructionCodeProgress" />
  8764. <NavigationProperty Name="FmsConstructionCodeType" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstruction" ToRole="FmsConstructionCodeType" />
  8765. <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstruction" ToRole="FmsConstructionEstimation" />
  8766. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="FmsConstruction" ToRole="CmPartner" />
  8767. </EntityType>
  8768. <EntityType Name="FmsConstructionCodeProgress">
  8769. <Key>
  8770. <PropertyRef Name="ProgressId" />
  8771. </Key>
  8772. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  8773. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8774. <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8775. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstructionCodeProgress" ToRole="FmsConstruction" />
  8776. </EntityType>
  8777. <EntityType Name="FmsConstructionCodeType">
  8778. <Key>
  8779. <PropertyRef Name="SiteId" />
  8780. <PropertyRef Name="ConstructionTypeId" />
  8781. </Key>
  8782. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8783. <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
  8784. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8785. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  8786. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstructionCodeType" ToRole="FmsConstruction" />
  8787. </EntityType>
  8788. <EntityType Name="FmsConstructionEstimation">
  8789. <Key>
  8790. <PropertyRef Name="SiteId" />
  8791. <PropertyRef Name="ConstructionId" />
  8792. </Key>
  8793. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8794. <Property Name="ConstructionId" Type="Int32" Nullable="false" />
  8795. <Property Name="EstimateDate" Type="DateTime" Nullable="false" Precision="3" />
  8796. <Property Name="EstimateUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8797. <Property Name="Safety01_CleanUp" Type="Boolean" />
  8798. <Property Name="Safety02_PersonalProtection" Type="Boolean" />
  8799. <Property Name="Safety03_FireExtinguisher" Type="Boolean" />
  8800. <Property Name="Safety04_HighPlaceWork" Type="Boolean" />
  8801. <Property Name="Safety05_Weld" Type="Boolean" />
  8802. <Property Name="Safety06_SurroundingCleanUp" Type="Boolean" />
  8803. <Property Name="Safety07_SurroundingHealthy" Type="Boolean" />
  8804. <Property Name="Safety08_Noise" Type="Boolean" />
  8805. <Property Name="Safety09_FacilityProtection" Type="Boolean" />
  8806. <Property Name="Safety10_Waste" Type="Boolean" />
  8807. <Property Name="Safety11_Execution" Type="Boolean" />
  8808. <Property Name="Safety12_Announcement" Type="Boolean" />
  8809. <Property Name="Ability01_Compliance" Type="Boolean" />
  8810. <Property Name="Ability02_Fault" Type="Boolean" />
  8811. <Property Name="Ability03_SkillLevel" Type="Boolean" />
  8812. <Property Name="Ability04_ProcessManagement" Type="Boolean" />
  8813. <Property Name="Ability05_Collaboration" Type="Boolean" />
  8814. <Property Name="Service01_Compliance" Type="Boolean" />
  8815. <Property Name="Service02_SkillLevel" Type="Boolean" />
  8816. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8817. <Property Name="TotalEstimateScore" Type="Double" />
  8818. <Property Name="SafetyScore" Type="Double" />
  8819. <Property Name="AbilityScore" Type="Double" />
  8820. <Property Name="ServiceScore" Type="Double" />
  8821. <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="FmsConstructionEstimation" ToRole="CmUser" />
  8822. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstructionEstimation" ToRole="FmsConstruction" />
  8823. </EntityType>
  8824. <EntityType Name="FmsContractClass">
  8825. <Key>
  8826. <PropertyRef Name="SiteId" />
  8827. <PropertyRef Name="ContractClassId" />
  8828. </Key>
  8829. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8830. <Property Name="ContractClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8831. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8832. <Property Name="IsUse" Type="Boolean" />
  8833. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContractClass" ToRole="FmsContract" />
  8834. </EntityType>
  8835. <EntityType Name="FmsContractMethod">
  8836. <Key>
  8837. <PropertyRef Name="SiteId" />
  8838. <PropertyRef Name="ContractMethodId" />
  8839. </Key>
  8840. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8841. <Property Name="ContractMethodId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8842. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8843. <Property Name="IsUse" Type="Boolean" />
  8844. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContractMethod" ToRole="FmsContract" />
  8845. </EntityType>
  8846. <EntityType Name="FmsContractType">
  8847. <Key>
  8848. <PropertyRef Name="SiteId" />
  8849. <PropertyRef Name="ContractTypeId" />
  8850. </Key>
  8851. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8852. <Property Name="ContractTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8853. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8854. <Property Name="IsUse" Type="Boolean" />
  8855. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContractType" ToRole="FmsContract" />
  8856. </EntityType>
  8857. <EntityType Name="FmsDrawing">
  8858. <Key>
  8859. <PropertyRef Name="SiteId" />
  8860. <PropertyRef Name="DrawingId" />
  8861. </Key>
  8862. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8863. <Property Name="DrawingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8864. <Property Name="DrawingNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  8865. <Property Name="DrawingGroupId" Type="Int32" Nullable="false" />
  8866. <Property Name="DrawingTypeId" Type="Int32" Nullable="false" />
  8867. <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  8868. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  8869. <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawing" ToRole="FmsDrawingCodeGroup" />
  8870. <NavigationProperty Name="FmsDrawingCodeType" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawing" ToRole="FmsDrawingCodeType" />
  8871. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawing" ToRole="FmsDrawingHistory" />
  8872. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="FmsDrawing" ToRole="CmSite" />
  8873. </EntityType>
  8874. <EntityType Name="FmsDrawingCodeGroup">
  8875. <Key>
  8876. <PropertyRef Name="SiteId" />
  8877. <PropertyRef Name="DrawingGroupId" />
  8878. </Key>
  8879. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8880. <Property Name="DrawingGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8881. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8882. <Property Name="IsUse" Type="Boolean" />
  8883. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawingCodeGroup" ToRole="FmsDrawing" />
  8884. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
  8885. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
  8886. </EntityType>
  8887. <EntityType Name="FmsDrawingCodeType">
  8888. <Key>
  8889. <PropertyRef Name="SiteId" />
  8890. <PropertyRef Name="DrawingTypeId" />
  8891. </Key>
  8892. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8893. <Property Name="DrawingTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8894. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  8895. <Property Name="IsUse" Type="Boolean" />
  8896. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawingCodeType" ToRole="FmsDrawing" />
  8897. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
  8898. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
  8899. </EntityType>
  8900. <EntityType Name="FmsDrawingHistory">
  8901. <Key>
  8902. <PropertyRef Name="SiteId" />
  8903. <PropertyRef Name="DrawingId" />
  8904. <PropertyRef Name="HistoryId" />
  8905. </Key>
  8906. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8907. <Property Name="DrawingId" Type="Int32" Nullable="false" />
  8908. <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8909. <Property Name="RevisionNo" Type="Int32" />
  8910. <Property Name="FileId" Type="Int32" />
  8911. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  8912. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  8913. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8914. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="FmsDrawingHistory" ToRole="CmFile" />
  8915. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="FmsDrawingHistory" ToRole="CmUser" />
  8916. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawingHistory" ToRole="FmsDrawing" />
  8917. </EntityType>
  8918. <EntityType Name="FmsEquipmentCodeStateType">
  8919. <Key>
  8920. <PropertyRef Name="EquipmentStateTypeId" />
  8921. </Key>
  8922. <Property Name="EquipmentStateTypeId" Type="Int16" Nullable="false" />
  8923. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8924. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8925. <NavigationProperty Name="FmsEquipmentHistory" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentHistory" />
  8926. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentRentInfo" />
  8927. </EntityType>
  8928. <EntityType Name="FmsEquipmentCodeType">
  8929. <Key>
  8930. <PropertyRef Name="SiteId" />
  8931. <PropertyRef Name="EquipmentTypeId" />
  8932. </Key>
  8933. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8934. <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8935. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  8936. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  8937. <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  8938. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipmentCodeType" ToRole="FmsEquipment" />
  8939. </EntityType>
  8940. <EntityType Name="FmsEquipmentHistory">
  8941. <Key>
  8942. <PropertyRef Name="SiteId" />
  8943. <PropertyRef Name="EquipmentHistoryId" />
  8944. <PropertyRef Name="EquipmentId" />
  8945. </Key>
  8946. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8947. <Property Name="EquipmentHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8948. <Property Name="EquipmentId" Type="Int32" Nullable="false" />
  8949. <Property Name="TotalStockCount" Type="Int32" />
  8950. <Property Name="CurrentStockCount" Type="Int32" />
  8951. <Property Name="RentCount" Type="Int32" />
  8952. <Property Name="CurrentRentCount" Type="Int32" />
  8953. <Property Name="ReturnCount" Type="Int32" />
  8954. <Property Name="LossCount" Type="Int32" />
  8955. <Property Name="StoredCount" Type="Int32" />
  8956. <Property Name="EquipmentRentId" Type="Int32" />
  8957. <Property Name="EquipmentStateTypeId" Type="Int16" />
  8958. <Property Name="AddDate" Type="DateTime" Precision="3" />
  8959. <Property Name="UpdateDate" Type="DateTime" Precision="3" />
  8960. <Property Name="IsReturned" Type="Boolean" />
  8961. <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentCodeStateType" />
  8962. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentRentInfo" />
  8963. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipmentHistory" ToRole="FmsEquipment" />
  8964. </EntityType>
  8965. <EntityType Name="FmsFacilityCheckItem">
  8966. <Key>
  8967. <PropertyRef Name="SiteId" />
  8968. <PropertyRef Name="FacilityCode" />
  8969. <PropertyRef Name="CheckItemId" />
  8970. </Key>
  8971. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8972. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8973. <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8974. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  8975. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  8976. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  8977. <Property Name="IsYesNoResult" Type="Boolean" Nullable="false" />
  8978. <Property Name="IsUse" Type="Boolean" />
  8979. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeCycleUnit" />
  8980. <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeType" />
  8981. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkResultCheckItem" />
  8982. </EntityType>
  8983. <EntityType Name="FmsFacilityCodeClass">
  8984. <Key>
  8985. <PropertyRef Name="SiteId" />
  8986. <PropertyRef Name="FacilityClassId" />
  8987. </Key>
  8988. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8989. <Property Name="FacilityClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8990. <Property Name="ParentFacilityClassId" Type="Int32" />
  8991. <Property Name="Depth" Type="Int32" Nullable="false" />
  8992. <Property Name="Name" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
  8993. <Property Name="Abbreviation" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  8994. <Property Name="IsUse" Type="Boolean" />
  8995. <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass" ToRole="FmsFacilityCodeClass1" />
  8996. <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass1" ToRole="FmsFacilityCodeClass" />
  8997. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="FmsFacilityCodeClass" ToRole="CmSite" />
  8998. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  8999. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  9000. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  9001. </EntityType>
  9002. <EntityType Name="FmsFacilityManual">
  9003. <Key>
  9004. <PropertyRef Name="SiteId" />
  9005. <PropertyRef Name="FacilityCode" />
  9006. <PropertyRef Name="ManualId" />
  9007. </Key>
  9008. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9009. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9010. <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9011. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9012. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9013. <Property Name="Description" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9014. <Property Name="Keyword" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9015. <Property Name="FileId" Type="Int32" />
  9016. <Property Name="IsUse" Type="Boolean" />
  9017. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="FmsFacilityManual" ToRole="CmBusinessField" />
  9018. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="FmsFacilityManual" ToRole="CmFacility" />
  9019. </EntityType>
  9020. <EntityType Name="FmsFacilityOperationItem">
  9021. <Key>
  9022. <PropertyRef Name="SiteId" />
  9023. <PropertyRef Name="ItemId" />
  9024. </Key>
  9025. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9026. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9027. <Property Name="ItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9028. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9029. <Property Name="ResultUnit" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
  9030. <Property Name="PointId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  9031. <Property Name="SystemId" Type="Int32" />
  9032. <Property Name="EnergyCode" Type="Boolean" />
  9033. <Property Name="IsUse" Type="Boolean" />
  9034. <Property Name="SortOrderNo" Type="Int32" />
  9035. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  9036. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9037. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  9038. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9039. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="FmsFacilityOperationItem" ToRole="CmFacility" />
  9040. </EntityType>
  9041. <EntityType Name="FmsLicense">
  9042. <Key>
  9043. <PropertyRef Name="SiteId" />
  9044. <PropertyRef Name="LicenseId" />
  9045. </Key>
  9046. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9047. <Property Name="LicenseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9048. <Property Name="Name" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
  9049. <Property Name="IssuingOffice" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
  9050. <Property Name="BusinessFieldId" Type="Int32" />
  9051. <Property Name="EducationalInstitute" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  9052. <Property Name="Note" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  9053. <Property Name="IsUse" Type="Boolean" />
  9054. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="FmsLicense" ToRole="CmBusinessField" />
  9055. <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="FmsLicense" ToRole="CmUserToLicense" />
  9056. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="FmsLicense" ToRole="CmSite" />
  9057. </EntityType>
  9058. <EntityType Name="FmsManual">
  9059. <Key>
  9060. <PropertyRef Name="SiteId" />
  9061. <PropertyRef Name="ManualId" />
  9062. </Key>
  9063. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9064. <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9065. <Property Name="ManualNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  9066. <Property Name="ManualTypeId" Type="Int32" Nullable="false" />
  9067. <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  9068. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9069. <NavigationProperty Name="FmsManualType" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManual" ToRole="FmsManualType" />
  9070. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManual" ToRole="FmsManualHistory" />
  9071. </EntityType>
  9072. <EntityType Name="FmsManualHistory">
  9073. <Key>
  9074. <PropertyRef Name="SiteId" />
  9075. <PropertyRef Name="ManualId" />
  9076. <PropertyRef Name="HistoryId" />
  9077. </Key>
  9078. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9079. <Property Name="ManualId" Type="Int32" Nullable="false" />
  9080. <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9081. <Property Name="RevisionNo" Type="Int32" />
  9082. <Property Name="FileId" Type="Int32" />
  9083. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9084. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  9085. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9086. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="FmsManualHistory" ToRole="CmFile" />
  9087. <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="FmsManualHistory" ToRole="CmUser" />
  9088. <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManualHistory" ToRole="FmsManual" />
  9089. </EntityType>
  9090. <EntityType Name="FmsManualType">
  9091. <Key>
  9092. <PropertyRef Name="SiteId" />
  9093. <PropertyRef Name="ManualTypeId" />
  9094. </Key>
  9095. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9096. <Property Name="ManualTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9097. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  9098. <Property Name="IsUse" Type="Boolean" />
  9099. <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManualType" ToRole="FmsManual" />
  9100. </EntityType>
  9101. <EntityType Name="FmsMaterialCarriedForward">
  9102. <Key>
  9103. <PropertyRef Name="SiteId" />
  9104. <PropertyRef Name="ClosedDate" />
  9105. <PropertyRef Name="BusinessFieldId" />
  9106. <PropertyRef Name="WarehouseId" />
  9107. <PropertyRef Name="MaterialId" />
  9108. </Key>
  9109. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9110. <Property Name="ClosedDate" Type="DateTime" Nullable="false" Precision="3" />
  9111. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9112. <Property Name="WarehouseId" Type="Int32" Nullable="false" />
  9113. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9114. <Property Name="StockCount" Type="Int32" Nullable="false" />
  9115. <Property Name="StockTotalCost" Type="Int32" Nullable="false" />
  9116. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="FmsMaterialCarriedForward" ToRole="CmBusinessField" />
  9117. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="FmsMaterialCarriedForward" ToRole="CmSite" />
  9118. </EntityType>
  9119. <EntityType Name="FmsMaterialCodeAdjustmentType">
  9120. <Key>
  9121. <PropertyRef Name="AdjustmentTypeId" />
  9122. </Key>
  9123. <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
  9124. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9125. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9126. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialCodeAdjustmentType" ToRole="FmsMaterialRelease" />
  9127. </EntityType>
  9128. <EntityType Name="FmsMaterialCodeClass">
  9129. <Key>
  9130. <PropertyRef Name="SiteId" />
  9131. <PropertyRef Name="MaterialClassId" />
  9132. </Key>
  9133. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9134. <Property Name="MaterialClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9135. <Property Name="ParentMaterialClassId" Type="Int32" />
  9136. <Property Name="Depth" Type="Int32" Nullable="false" />
  9137. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  9138. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  9139. <Property Name="IsUse" Type="Boolean" />
  9140. <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterialCodeClass1" />
  9141. <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass1" ToRole="FmsMaterialCodeClass" />
  9142. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  9143. <NavigationProperty Name="FmsMaterial1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  9144. <NavigationProperty Name="FmsMaterial2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  9145. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="FmsMaterialCodeClass" ToRole="CmSite" />
  9146. </EntityType>
  9147. <EntityType Name="FmsMaterialCodeLocation">
  9148. <Key>
  9149. <PropertyRef Name="SiteId" />
  9150. <PropertyRef Name="LocationId" />
  9151. </Key>
  9152. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9153. <Property Name="LocationId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9154. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9155. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  9156. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9157. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="FmsMaterialCodeLocation" ToRole="CmBusinessField" />
  9158. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterialCodeLocation" ToRole="FmsMaterial" />
  9159. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="FmsMaterialCodeLocation" ToRole="CmSite" />
  9160. </EntityType>
  9161. <EntityType Name="FmsMaterialCodeProgress">
  9162. <Key>
  9163. <PropertyRef Name="ProgressId" />
  9164. </Key>
  9165. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  9166. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9167. <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9168. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialCodeProgress" ToRole="FmsMaterialPurchaseRequest" />
  9169. </EntityType>
  9170. <EntityType Name="FmsMaterialCodePurchaseType">
  9171. <Key>
  9172. <PropertyRef Name="PurchaseTypeId" />
  9173. </Key>
  9174. <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9175. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9176. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9177. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialCodePurchaseType" ToRole="FmsMaterialPurchaseRequest" />
  9178. </EntityType>
  9179. <EntityType Name="FmsMaterialCodeReleaseType">
  9180. <Key>
  9181. <PropertyRef Name="ReleaseTypeId" />
  9182. </Key>
  9183. <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
  9184. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9185. <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  9186. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialCodeReleaseType" ToRole="FmsMaterialRelease" />
  9187. </EntityType>
  9188. <EntityType Name="FmsMaterialCodeType">
  9189. <Key>
  9190. <PropertyRef Name="SiteId" />
  9191. <PropertyRef Name="MaterialTypeId" />
  9192. </Key>
  9193. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9194. <Property Name="MaterialTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9195. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9196. <Property Name="Nickname" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9197. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9198. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterialCodeType" ToRole="FmsMaterial" />
  9199. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="FmsMaterialCodeType" ToRole="CmSite" />
  9200. </EntityType>
  9201. <EntityType Name="FmsMaterialPurchaseOrder">
  9202. <Key>
  9203. <PropertyRef Name="SiteId" />
  9204. <PropertyRef Name="PurchaseOrderId" />
  9205. </Key>
  9206. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9207. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9208. <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9209. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
  9210. <Property Name="TradeCompanyId" Type="Int32" />
  9211. <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
  9212. <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9213. <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  9214. <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9215. <Property Name="StoredDueDate" Type="DateTime" Precision="3" />
  9216. <Property Name="FileId" Type="Int32" />
  9217. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="FmsMaterialPurchaseOrder" ToRole="CmBusinessField" />
  9218. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="FmsMaterialPurchaseOrder" ToRole="CmFile" />
  9219. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="FmsMaterialPurchaseOrder" ToRole="CmUser" />
  9220. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialTradeCompany" />
  9221. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseRequest" />
  9222. <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseOrderMaterial" />
  9223. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialStored" />
  9224. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="FmsMaterialPurchaseOrder" ToRole="CmSite" />
  9225. </EntityType>
  9226. <EntityType Name="FmsMaterialPurchaseOrderMaterial">
  9227. <Key>
  9228. <PropertyRef Name="SiteId" />
  9229. <PropertyRef Name="PurchaseOrderId" />
  9230. <PropertyRef Name="MaterialId" />
  9231. </Key>
  9232. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9233. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9234. <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" />
  9235. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9236. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  9237. <Property Name="UnitCost" Type="Int32" Nullable="false" />
  9238. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterialPurchaseOrder" />
  9239. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterial" />
  9240. </EntityType>
  9241. <EntityType Name="FmsMaterialPurchaseRequest">
  9242. <Key>
  9243. <PropertyRef Name="SiteId" />
  9244. <PropertyRef Name="PurchaseRequestId" />
  9245. </Key>
  9246. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9247. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9248. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9249. <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" />
  9250. <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
  9251. <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9252. <Property Name="PurchaseHopeDate" Type="DateTime" Precision="3" />
  9253. <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  9254. <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" Nullable="false" />
  9255. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  9256. <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
  9257. <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9258. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="FmsMaterialPurchaseRequest" ToRole="CmBusinessField" />
  9259. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
  9260. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
  9261. <NavigationProperty Name="FmsMaterialCodeProgress" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodeProgress" />
  9262. <NavigationProperty Name="FmsMaterialCodePurchaseType" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodePurchaseType" />
  9263. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseOrder" />
  9264. <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseRequestMaterial" />
  9265. <Property Name="bSameOrder" Type="Boolean" />
  9266. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="FmsMaterialPurchaseRequest" ToRole="CmSite" />
  9267. </EntityType>
  9268. <EntityType Name="FmsMaterialPurchaseRequestMaterial">
  9269. <Key>
  9270. <PropertyRef Name="SiteId" />
  9271. <PropertyRef Name="PurchaseRequestId" />
  9272. <PropertyRef Name="MaterialId" />
  9273. </Key>
  9274. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9275. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9276. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
  9277. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9278. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  9279. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterialPurchaseRequest" />
  9280. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterial" />
  9281. </EntityType>
  9282. <EntityType Name="FmsMaterialStored">
  9283. <Key>
  9284. <PropertyRef Name="SiteId" />
  9285. <PropertyRef Name="MaterialStoredId" />
  9286. </Key>
  9287. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9288. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9289. <Property Name="StoredDate" Type="DateTime" Nullable="false" Precision="3" />
  9290. <Property Name="MaterialStoredId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9291. <Property Name="PurchaseOrderId" Type="Int32" />
  9292. <Property Name="WarehouseId" Type="Int32" Nullable="false" />
  9293. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9294. <Property Name="StoredCount" Type="Int32" Nullable="false" />
  9295. <Property Name="RemainStoredCount" Type="Int32" Nullable="false" />
  9296. <Property Name="UnitCost" Type="Int32" Nullable="false" />
  9297. <Property Name="StockCount" Type="Int32" Nullable="false" />
  9298. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9299. <Property Name="StoredUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9300. <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
  9301. <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9302. <Property Name="IsApproval" Type="Boolean" Nullable="false" />
  9303. <Property Name="LocationInWarehouse" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9304. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="FmsMaterialStored" ToRole="CmBusinessField" />
  9305. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
  9306. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
  9307. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialStored" ToRole="FmsMaterialPurchaseOrder" />
  9308. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialStored" ToRole="FmsMaterialWarehouse" />
  9309. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterialStored" ToRole="FmsMaterial" />
  9310. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="FmsMaterialStored" ToRole="CmSite" />
  9311. </EntityType>
  9312. <EntityType Name="FmsMaterialTradeCompany">
  9313. <Key>
  9314. <PropertyRef Name="SiteId" />
  9315. <PropertyRef Name="TradeCompanyId" />
  9316. </Key>
  9317. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9318. <Property Name="TradeCompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9319. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  9320. <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9321. <Property Name="RepresentativeName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9322. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  9323. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  9324. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  9325. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  9326. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  9327. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  9328. <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9329. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  9330. <Property Name="HomepageUri" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  9331. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9332. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9333. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterialPurchaseOrder" />
  9334. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterial" />
  9335. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="FmsMaterialTradeCompany" ToRole="CmSite" />
  9336. </EntityType>
  9337. <EntityType Name="FmsMaterialWarehouse">
  9338. <Key>
  9339. <PropertyRef Name="SiteId" />
  9340. <PropertyRef Name="WarehouseId" />
  9341. </Key>
  9342. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9343. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9344. <Property Name="WarehouseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9345. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  9346. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  9347. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="FmsMaterialWarehouse" ToRole="CmBusinessField" />
  9348. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterialStored" />
  9349. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterial" />
  9350. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="FmsMaterialWarehouse" ToRole="CmSite" />
  9351. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsEquipment" />
  9352. </EntityType>
  9353. <EntityType Name="FmsPaymentType">
  9354. <Key>
  9355. <PropertyRef Name="SiteId" />
  9356. <PropertyRef Name="PaymentTypeId" />
  9357. </Key>
  9358. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9359. <Property Name="PaymentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9360. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  9361. <Property Name="IsUse" Type="Boolean" />
  9362. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsPaymentType" ToRole="FmsContract" />
  9363. </EntityType>
  9364. <EntityType Name="FmsWorkCodeCauseClass">
  9365. <Key>
  9366. <PropertyRef Name="SiteId" />
  9367. <PropertyRef Name="CauseClassId" />
  9368. </Key>
  9369. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9370. <Property Name="CauseClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9371. <Property Name="ParentId" Type="Int32" Nullable="false" />
  9372. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  9373. <Property Name="IsUse" Type="Boolean" />
  9374. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkCodeCauseClass" ToRole="FmsWorkResult" />
  9375. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="FmsWorkCodeCauseClass" ToRole="CmSite" />
  9376. </EntityType>
  9377. <EntityType Name="FmsWorkCodeCycleUnit">
  9378. <Key>
  9379. <PropertyRef Name="SiteId" />
  9380. <PropertyRef Name="CycleUnitId" />
  9381. </Key>
  9382. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9383. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  9384. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9385. <Property Name="Description" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  9386. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsFacilityCheckItem" />
  9387. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsWorkSchedule" />
  9388. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="FmsWorkCodeCycleUnit" ToRole="CmSite" />
  9389. </EntityType>
  9390. <EntityType Name="FmsWorkCodeEmergency">
  9391. <Key>
  9392. <PropertyRef Name="SiteId" />
  9393. <PropertyRef Name="EmergencyId" />
  9394. </Key>
  9395. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9396. <Property Name="EmergencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9397. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  9398. <Property Name="IsUse" Type="Boolean" />
  9399. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkCodeEmergency" ToRole="FmsWorkOrder" />
  9400. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="FmsWorkCodeEmergency" ToRole="CmSite" />
  9401. </EntityType>
  9402. <EntityType Name="FmsWorkCodeHolidayWorkType">
  9403. <Key>
  9404. <PropertyRef Name="SiteId" />
  9405. <PropertyRef Name="HolidayWorkTypeId" />
  9406. </Key>
  9407. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9408. <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
  9409. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  9410. <Property Name="IsUse" Type="Boolean" />
  9411. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkCodeHolidayWorkType" ToRole="FmsWorkSchedule" />
  9412. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="FmsWorkCodeHolidayWorkType" ToRole="CmSite" />
  9413. </EntityType>
  9414. <EntityType Name="FmsWorkCodeLegalInspectionAgency">
  9415. <Key>
  9416. <PropertyRef Name="SiteId" />
  9417. <PropertyRef Name="InspectionAgencyId" />
  9418. </Key>
  9419. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9420. <Property Name="InspectionAgencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9421. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9422. <Property Name="IsUse" Type="Boolean" />
  9423. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="FmsWorkCodeLegalInspectionAgency" ToRole="CmSite" />
  9424. </EntityType>
  9425. <EntityType Name="FmsWorkCodeProgress">
  9426. <Key>
  9427. <PropertyRef Name="WorkProgressId" />
  9428. </Key>
  9429. <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
  9430. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9431. <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  9432. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkCodeProgress" ToRole="FmsWorkRequest" />
  9433. </EntityType>
  9434. <EntityType Name="FmsWorkCodeType">
  9435. <Key>
  9436. <PropertyRef Name="WorkTypeId" />
  9437. </Key>
  9438. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  9439. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  9440. <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  9441. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsFacilityCheckItem" />
  9442. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkRequest" />
  9443. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkSchedule" />
  9444. </EntityType>
  9445. <EntityType Name="FmsWorkOrder">
  9446. <Key>
  9447. <PropertyRef Name="SiteId" />
  9448. <PropertyRef Name="WorkRequestId" />
  9449. </Key>
  9450. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9451. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9452. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9453. <Property Name="EmergencyId" Type="Int32" />
  9454. <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9455. <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
  9456. <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
  9457. <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  9458. <Property Name="Content" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  9459. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="FmsWorkOrder" ToRole="CmBusinessField" />
  9460. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="FmsWorkOrder" ToRole="CmUser" />
  9461. <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkOrder" ToRole="FmsWorkCodeEmergency" />
  9462. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkOrder" ToRole="FmsWorkRequest" />
  9463. <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkOrderToFacility" />
  9464. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkResult" />
  9465. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="FmsWorkOrder" ToRole="CmSite" />
  9466. </EntityType>
  9467. <EntityType Name="FmsWorkOrderToFacility">
  9468. <Key>
  9469. <PropertyRef Name="SiteId" />
  9470. <PropertyRef Name="WorkRequestId" />
  9471. <PropertyRef Name="FacilityCode" />
  9472. </Key>
  9473. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9474. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9475. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9476. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrderToFacility" ToRole="FmsWorkOrder" />
  9477. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="FmsWorkOrderToFacility" ToRole="CmFacility" />
  9478. </EntityType>
  9479. <EntityType Name="FmsWorkRequest">
  9480. <Key>
  9481. <PropertyRef Name="SiteId" />
  9482. <PropertyRef Name="WorkRequestId" />
  9483. </Key>
  9484. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9485. <Property Name="WorkRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9486. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  9487. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  9488. <Property Name="WorkScheduleId" Type="Int32" />
  9489. <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
  9490. <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  9491. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9492. <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9493. <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
  9494. <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
  9495. <Property Name="RejectUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9496. <Property Name="RejectDate" Type="DateTime" Precision="3" />
  9497. <Property Name="RejectReason" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  9498. <Property Name="InspectionAgencyId" Type="Int32" />
  9499. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="FmsWorkRequest" ToRole="CmBusinessField" />
  9500. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
  9501. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
  9502. <NavigationProperty Name="FmsWorkCodeProgress" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeProgress" />
  9503. <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeType" />
  9504. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkOrder" />
  9505. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkRequest" ToRole="FmsWorkSchedule" />
  9506. <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkRequestToFacility" />
  9507. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkResult" />
  9508. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="FmsWorkRequest" ToRole="CmSite" />
  9509. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="FmsWorkRequest" ToRole="CmPartner" />
  9510. </EntityType>
  9511. <EntityType Name="FmsWorkRequestToFacility">
  9512. <Key>
  9513. <PropertyRef Name="SiteId" />
  9514. <PropertyRef Name="WorkRequestId" />
  9515. <PropertyRef Name="FacilityCode" />
  9516. </Key>
  9517. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9518. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9519. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9520. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequestToFacility" ToRole="FmsWorkRequest" />
  9521. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="FmsWorkRequestToFacility" ToRole="CmFacility" />
  9522. </EntityType>
  9523. <EntityType Name="FmsWorkResult">
  9524. <Key>
  9525. <PropertyRef Name="SiteId" />
  9526. <PropertyRef Name="WorkRequestId" />
  9527. </Key>
  9528. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9529. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9530. <Property Name="WorkerUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  9531. <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
  9532. <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
  9533. <Property Name="CauseClassId" Type="Int32" />
  9534. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9535. <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
  9536. <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  9537. <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
  9538. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
  9539. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
  9540. <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkResult" ToRole="FmsWorkCodeCauseClass" />
  9541. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkOrder" />
  9542. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkResult" ToRole="FmsWorkRequest" />
  9543. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItem" />
  9544. <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultFile" />
  9545. <NavigationProperty Name="FmsWorkResultLaw" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultLaw" />
  9546. <NavigationProperty Name="FmsWorkResultToFacility" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkResultToFacility" />
  9547. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsMaterialRelease" />
  9548. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItemMaterial" />
  9549. <Property Name="ConfirmDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9550. </EntityType>
  9551. <EntityType Name="FmsWorkResultCheckItem">
  9552. <Key>
  9553. <PropertyRef Name="CheckItemId" />
  9554. </Key>
  9555. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9556. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9557. <Property Name="FacilityCode" Type="Int32" />
  9558. <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9559. <Property Name="BoolResult" Type="Boolean" />
  9560. <Property Name="TextResult" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  9561. <Property Name="CheckDate" Type="DateTime" Nullable="false" Precision="3" />
  9562. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsFacilityCheckItem" />
  9563. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResult" />
  9564. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResultCheckItemMaterial" />
  9565. <Property Name="FileId1" Type="Int32" />
  9566. <Property Name="FileId2" Type="Int32" />
  9567. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
  9568. <NavigationProperty Name="CmFile1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
  9569. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="FmsWorkResultCheckItem" ToRole="CmFacility" />
  9570. </EntityType>
  9571. <EntityType Name="FmsWorkResultCheckItemMaterial">
  9572. <Key>
  9573. <PropertyRef Name="CheckItemMaterialId" />
  9574. </Key>
  9575. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9576. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9577. <Property Name="CheckItemId" Type="Int32" Nullable="false" />
  9578. <Property Name="CheckItemMaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9579. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  9580. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  9581. <Property Name="MaterialCode" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  9582. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  9583. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResultCheckItem" />
  9584. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsMaterial" />
  9585. <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResult" />
  9586. </EntityType>
  9587. <EntityType Name="FmsWorkResultFile">
  9588. <Key>
  9589. <PropertyRef Name="SiteId" />
  9590. <PropertyRef Name="WorkRequestId" />
  9591. </Key>
  9592. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9593. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9594. <Property Name="FileId" Type="Int32" Nullable="false" />
  9595. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="FmsWorkResultFile" ToRole="CmFile" />
  9596. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResultFile" ToRole="FmsWorkResult" />
  9597. </EntityType>
  9598. <EntityType Name="FmsWorkResultLaw">
  9599. <Key>
  9600. <PropertyRef Name="SiteId" />
  9601. <PropertyRef Name="WorkRequestId" />
  9602. </Key>
  9603. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9604. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9605. <Property Name="CertificationNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  9606. <Property Name="CheckCommission" Type="Decimal" Precision="10" Scale="0" />
  9607. <Property Name="CheckResult" Type="Boolean" />
  9608. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResultLaw" ToRole="FmsWorkResult" />
  9609. </EntityType>
  9610. <EntityType Name="FmsWorkResultToFacility">
  9611. <Key>
  9612. <PropertyRef Name="SiteId" />
  9613. <PropertyRef Name="WorkRequestId" />
  9614. <PropertyRef Name="FacilityCode" />
  9615. </Key>
  9616. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9617. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  9618. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9619. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResultToFacility" ToRole="FmsWorkResult" />
  9620. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="FmsWorkResultToFacility" ToRole="CmFacility" />
  9621. </EntityType>
  9622. <EntityType Name="FmsWorkScheduleToFacility">
  9623. <Key>
  9624. <PropertyRef Name="SiteId" />
  9625. <PropertyRef Name="WorkScheduleId" />
  9626. <PropertyRef Name="FacilityCode" />
  9627. </Key>
  9628. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9629. <Property Name="WorkScheduleId" Type="Int32" Nullable="false" />
  9630. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  9631. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkScheduleToFacility" ToRole="FmsWorkSchedule" />
  9632. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="FmsWorkScheduleToFacility" ToRole="CmFacility" />
  9633. </EntityType>
  9634. <EntityType Name="sysdiagrams">
  9635. <Key>
  9636. <PropertyRef Name="diagram_id" />
  9637. </Key>
  9638. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  9639. <Property Name="principal_id" Type="Int32" Nullable="false" />
  9640. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  9641. <Property Name="version" Type="Int32" />
  9642. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  9643. </EntityType>
  9644. <Association Name="FK__BemsMonitoringPo__1372D2FE">
  9645. <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
  9646. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  9647. <ReferentialConstraint>
  9648. <Principal Role="BemsAnalysisType">
  9649. <PropertyRef Name="SiteId" />
  9650. <PropertyRef Name="AnalysisType" />
  9651. </Principal>
  9652. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  9653. <PropertyRef Name="SiteId" />
  9654. <PropertyRef Name="AnalysisType" />
  9655. </Dependent>
  9656. </ReferentialConstraint>
  9657. </Association>
  9658. <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
  9659. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9660. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  9661. <ReferentialConstraint>
  9662. <Principal Role="BemsFacilityType">
  9663. <PropertyRef Name="FacilityTypeId" />
  9664. </Principal>
  9665. <Dependent Role="BemsControlPointHistory">
  9666. <PropertyRef Name="FacilityTypeId" />
  9667. </Dependent>
  9668. </ReferentialConstraint>
  9669. </Association>
  9670. <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
  9671. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9672. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  9673. <ReferentialConstraint>
  9674. <Principal Role="BemsMonitoringPoint">
  9675. <PropertyRef Name="SiteId" />
  9676. <PropertyRef Name="FacilityCode" />
  9677. <PropertyRef Name="PropertyId" />
  9678. </Principal>
  9679. <Dependent Role="BemsControlPointHistory">
  9680. <PropertyRef Name="SiteId" />
  9681. <PropertyRef Name="FacilityCode" />
  9682. <PropertyRef Name="PropertyId" />
  9683. </Dependent>
  9684. </ReferentialConstraint>
  9685. </Association>
  9686. <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
  9687. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9688. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  9689. <ReferentialConstraint>
  9690. <Principal Role="BemsFacilityType">
  9691. <PropertyRef Name="FacilityTypeId" />
  9692. </Principal>
  9693. <Dependent Role="BemsMonitoringPointBaseData">
  9694. <PropertyRef Name="FacilityTypeId" />
  9695. </Dependent>
  9696. </ReferentialConstraint>
  9697. </Association>
  9698. <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  9699. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9700. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  9701. <ReferentialConstraint>
  9702. <Principal Role="BemsFacilityType">
  9703. <PropertyRef Name="FacilityTypeId" />
  9704. </Principal>
  9705. <Dependent Role="BemsMonitoringPointHistory15min">
  9706. <PropertyRef Name="FacilityTypeId" />
  9707. </Dependent>
  9708. </ReferentialConstraint>
  9709. </Association>
  9710. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  9711. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9712. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  9713. <ReferentialConstraint>
  9714. <Principal Role="BemsFacilityType">
  9715. <PropertyRef Name="FacilityTypeId" />
  9716. </Principal>
  9717. <Dependent Role="BemsMonitoringPointHistoryDaily">
  9718. <PropertyRef Name="FacilityTypeId" />
  9719. </Dependent>
  9720. </ReferentialConstraint>
  9721. </Association>
  9722. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  9723. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9724. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  9725. <ReferentialConstraint>
  9726. <Principal Role="BemsFacilityType">
  9727. <PropertyRef Name="FacilityTypeId" />
  9728. </Principal>
  9729. <Dependent Role="BemsMonitoringPointHistoryHourly">
  9730. <PropertyRef Name="FacilityTypeId" />
  9731. </Dependent>
  9732. </ReferentialConstraint>
  9733. </Association>
  9734. <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  9735. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9736. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  9737. <ReferentialConstraint>
  9738. <Principal Role="BemsFacilityType">
  9739. <PropertyRef Name="FacilityTypeId" />
  9740. </Principal>
  9741. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  9742. <PropertyRef Name="FacilityTypeId" />
  9743. </Dependent>
  9744. </ReferentialConstraint>
  9745. </Association>
  9746. <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
  9747. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  9748. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9749. <ReferentialConstraint>
  9750. <Principal Role="BemsFacilityType">
  9751. <PropertyRef Name="FacilityTypeId" />
  9752. </Principal>
  9753. <Dependent Role="BemsMonitoringPoint">
  9754. <PropertyRef Name="FacilityTypeId" />
  9755. </Dependent>
  9756. </ReferentialConstraint>
  9757. </Association>
  9758. <Association Name="FK__BemsFormula__BemsFormulaBase">
  9759. <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
  9760. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
  9761. <ReferentialConstraint>
  9762. <Principal Role="BemsFormulaBase">
  9763. <PropertyRef Name="FacilityTypeId" />
  9764. <PropertyRef Name="FormulaId" />
  9765. </Principal>
  9766. <Dependent Role="BemsFormula">
  9767. <PropertyRef Name="FacilityTypeId" />
  9768. <PropertyRef Name="FormulaId" />
  9769. </Dependent>
  9770. </ReferentialConstraint>
  9771. </Association>
  9772. <Association Name="FK__BemsFormulaParameter__BemsFormula">
  9773. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  9774. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  9775. <ReferentialConstraint>
  9776. <Principal Role="BemsFormula">
  9777. <PropertyRef Name="SiteId" />
  9778. <PropertyRef Name="FacilityTypeId" />
  9779. <PropertyRef Name="FacilityCode" />
  9780. <PropertyRef Name="FormulaId" />
  9781. </Principal>
  9782. <Dependent Role="BemsFormulaParameter">
  9783. <PropertyRef Name="SiteId" />
  9784. <PropertyRef Name="FacilityTypeId" />
  9785. <PropertyRef Name="FacilityCode" />
  9786. <PropertyRef Name="FormulaId" />
  9787. </Dependent>
  9788. </ReferentialConstraint>
  9789. </Association>
  9790. <Association Name="FK__BemsFormulaParameter__BemsMonitoringPoint">
  9791. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9792. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  9793. <ReferentialConstraint>
  9794. <Principal Role="BemsMonitoringPoint">
  9795. <PropertyRef Name="SiteId" />
  9796. <PropertyRef Name="FacilityCode" />
  9797. <PropertyRef Name="PropertyId" />
  9798. </Principal>
  9799. <Dependent Role="BemsFormulaParameter">
  9800. <PropertyRef Name="SiteId" />
  9801. <PropertyRef Name="ParameterFacilityCode" />
  9802. <PropertyRef Name="ParameterPropertyId" />
  9803. </Dependent>
  9804. </ReferentialConstraint>
  9805. </Association>
  9806. <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
  9807. <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
  9808. <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
  9809. <ReferentialConstraint>
  9810. <Principal Role="BemsFormulaTable">
  9811. <PropertyRef Name="TableId" />
  9812. </Principal>
  9813. <Dependent Role="BemsFormulaTableValue">
  9814. <PropertyRef Name="TableId" />
  9815. </Dependent>
  9816. </ReferentialConstraint>
  9817. </Association>
  9818. <Association Name="FK__BemsMonitoringPo__155B1B70">
  9819. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9820. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  9821. <ReferentialConstraint>
  9822. <Principal Role="BemsMonitoringPoint">
  9823. <PropertyRef Name="SiteId" />
  9824. <PropertyRef Name="FacilityCode" />
  9825. <PropertyRef Name="PropertyId" />
  9826. </Principal>
  9827. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  9828. <PropertyRef Name="SiteId" />
  9829. <PropertyRef Name="FacilityCode" />
  9830. <PropertyRef Name="PropertyId" />
  9831. </Dependent>
  9832. </ReferentialConstraint>
  9833. </Association>
  9834. <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
  9835. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  9836. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9837. <ReferentialConstraint>
  9838. <Principal Role="BemsServiceType">
  9839. <PropertyRef Name="ServiceTypeId" />
  9840. </Principal>
  9841. <Dependent Role="BemsMonitoringPoint">
  9842. <PropertyRef Name="ServiceTypeId" />
  9843. </Dependent>
  9844. </ReferentialConstraint>
  9845. </Association>
  9846. <Association Name="FK__BemsMonitoringPoint__CmBuilding">
  9847. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
  9848. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9849. <ReferentialConstraint>
  9850. <Principal Role="CmBuilding">
  9851. <PropertyRef Name="SiteId" />
  9852. <PropertyRef Name="BuildingId" />
  9853. </Principal>
  9854. <Dependent Role="BemsMonitoringPoint">
  9855. <PropertyRef Name="SiteId" />
  9856. <PropertyRef Name="BuildingId" />
  9857. </Dependent>
  9858. </ReferentialConstraint>
  9859. </Association>
  9860. <Association Name="FK__BemsMonitoringPoint__CmFloor">
  9861. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
  9862. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9863. <ReferentialConstraint>
  9864. <Principal Role="CmFloor">
  9865. <PropertyRef Name="SiteId" />
  9866. <PropertyRef Name="BuildingId" />
  9867. <PropertyRef Name="FloorId" />
  9868. </Principal>
  9869. <Dependent Role="BemsMonitoringPoint">
  9870. <PropertyRef Name="SiteId" />
  9871. <PropertyRef Name="BuildingId" />
  9872. <PropertyRef Name="FloorId" />
  9873. </Dependent>
  9874. </ReferentialConstraint>
  9875. </Association>
  9876. <Association Name="FK__BemsMonitoringPoint__CmZone">
  9877. <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
  9878. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  9879. <ReferentialConstraint>
  9880. <Principal Role="CmZone">
  9881. <PropertyRef Name="SiteId" />
  9882. <PropertyRef Name="BuildingId" />
  9883. <PropertyRef Name="FloorId" />
  9884. <PropertyRef Name="ZoneId" />
  9885. </Principal>
  9886. <Dependent Role="BemsMonitoringPoint">
  9887. <PropertyRef Name="SiteId" />
  9888. <PropertyRef Name="BuildingId" />
  9889. <PropertyRef Name="FloorId" />
  9890. <PropertyRef Name="ZoneId" />
  9891. </Dependent>
  9892. </ReferentialConstraint>
  9893. </Association>
  9894. <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  9895. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9896. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  9897. <ReferentialConstraint>
  9898. <Principal Role="BemsMonitoringPoint">
  9899. <PropertyRef Name="SiteId" />
  9900. <PropertyRef Name="FacilityCode" />
  9901. <PropertyRef Name="PropertyId" />
  9902. </Principal>
  9903. <Dependent Role="BemsMonitoringPointHistory15min">
  9904. <PropertyRef Name="SiteId" />
  9905. <PropertyRef Name="FacilityCode" />
  9906. <PropertyRef Name="PropertyId" />
  9907. </Dependent>
  9908. </ReferentialConstraint>
  9909. </Association>
  9910. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  9911. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9912. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  9913. <ReferentialConstraint>
  9914. <Principal Role="BemsMonitoringPoint">
  9915. <PropertyRef Name="SiteId" />
  9916. <PropertyRef Name="FacilityCode" />
  9917. <PropertyRef Name="PropertyId" />
  9918. </Principal>
  9919. <Dependent Role="BemsMonitoringPointHistoryDaily">
  9920. <PropertyRef Name="SiteId" />
  9921. <PropertyRef Name="FacilityCode" />
  9922. <PropertyRef Name="PropertyId" />
  9923. </Dependent>
  9924. </ReferentialConstraint>
  9925. </Association>
  9926. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  9927. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  9928. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  9929. <ReferentialConstraint>
  9930. <Principal Role="BemsMonitoringPoint">
  9931. <PropertyRef Name="SiteId" />
  9932. <PropertyRef Name="FacilityCode" />
  9933. <PropertyRef Name="PropertyId" />
  9934. </Principal>
  9935. <Dependent Role="BemsMonitoringPointHistoryHourly">
  9936. <PropertyRef Name="SiteId" />
  9937. <PropertyRef Name="FacilityCode" />
  9938. <PropertyRef Name="PropertyId" />
  9939. </Dependent>
  9940. </ReferentialConstraint>
  9941. </Association>
  9942. <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
  9943. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  9944. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  9945. <ReferentialConstraint>
  9946. <Principal Role="BemsServiceType">
  9947. <PropertyRef Name="ServiceTypeId" />
  9948. </Principal>
  9949. <Dependent Role="BemsMonitoringPointBaseData">
  9950. <PropertyRef Name="ServiceTypeId" />
  9951. </Dependent>
  9952. </ReferentialConstraint>
  9953. </Association>
  9954. <Association Name="FK_CmAnnouncement_CmBusinessField">
  9955. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  9956. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  9957. <ReferentialConstraint>
  9958. <Principal Role="CmBusinessField">
  9959. <PropertyRef Name="SiteId" />
  9960. <PropertyRef Name="BusinessFieldId" />
  9961. </Principal>
  9962. <Dependent Role="CmAnnouncement">
  9963. <PropertyRef Name="SiteId" />
  9964. <PropertyRef Name="BusinessFieldId" />
  9965. </Dependent>
  9966. </ReferentialConstraint>
  9967. </Association>
  9968. <Association Name="FK_CmAnnouncement_CmFile">
  9969. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  9970. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  9971. <ReferentialConstraint>
  9972. <Principal Role="CmFile">
  9973. <PropertyRef Name="SiteId" />
  9974. <PropertyRef Name="FileId" />
  9975. </Principal>
  9976. <Dependent Role="CmAnnouncement">
  9977. <PropertyRef Name="SiteId" />
  9978. <PropertyRef Name="FileId" />
  9979. </Dependent>
  9980. </ReferentialConstraint>
  9981. </Association>
  9982. <Association Name="FK_CmAnnouncement_CmUser">
  9983. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  9984. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  9985. <ReferentialConstraint>
  9986. <Principal Role="CmUser">
  9987. <PropertyRef Name="SiteId" />
  9988. <PropertyRef Name="UserId" />
  9989. </Principal>
  9990. <Dependent Role="CmAnnouncement">
  9991. <PropertyRef Name="SiteId" />
  9992. <PropertyRef Name="RegisterUserId" />
  9993. </Dependent>
  9994. </ReferentialConstraint>
  9995. </Association>
  9996. <Association Name="FK__CmFloor__3CF40B7E">
  9997. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  9998. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
  9999. <ReferentialConstraint>
  10000. <Principal Role="CmBuilding">
  10001. <PropertyRef Name="SiteId" />
  10002. <PropertyRef Name="BuildingId" />
  10003. </Principal>
  10004. <Dependent Role="CmFloor">
  10005. <PropertyRef Name="SiteId" />
  10006. <PropertyRef Name="BuildingId" />
  10007. </Dependent>
  10008. </ReferentialConstraint>
  10009. </Association>
  10010. <Association Name="FK__CmZone__CmBuilding">
  10011. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  10012. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  10013. <ReferentialConstraint>
  10014. <Principal Role="CmBuilding">
  10015. <PropertyRef Name="SiteId" />
  10016. <PropertyRef Name="BuildingId" />
  10017. </Principal>
  10018. <Dependent Role="CmZone">
  10019. <PropertyRef Name="SiteId" />
  10020. <PropertyRef Name="BuildingId" />
  10021. </Dependent>
  10022. </ReferentialConstraint>
  10023. </Association>
  10024. <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
  10025. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  10026. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  10027. <ReferentialConstraint>
  10028. <Principal Role="CmBuilding">
  10029. <PropertyRef Name="SiteId" />
  10030. <PropertyRef Name="BuildingId" />
  10031. </Principal>
  10032. <Dependent Role="CmZoneTempHumiSet">
  10033. <PropertyRef Name="SiteId" />
  10034. <PropertyRef Name="BuildingId" />
  10035. </Dependent>
  10036. </ReferentialConstraint>
  10037. </Association>
  10038. <Association Name="FK__CmFacilityManual__7BE56230">
  10039. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10040. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  10041. <ReferentialConstraint>
  10042. <Principal Role="CmBusinessField">
  10043. <PropertyRef Name="SiteId" />
  10044. <PropertyRef Name="BusinessFieldId" />
  10045. </Principal>
  10046. <Dependent Role="FmsFacilityManual">
  10047. <PropertyRef Name="SiteId" />
  10048. <PropertyRef Name="BusinessFieldId" />
  10049. </Dependent>
  10050. </ReferentialConstraint>
  10051. </Association>
  10052. <Association Name="FK__FmsLicense__CmBusinessField">
  10053. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  10054. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  10055. <ReferentialConstraint>
  10056. <Principal Role="CmBusinessField">
  10057. <PropertyRef Name="SiteId" />
  10058. <PropertyRef Name="BusinessFieldId" />
  10059. </Principal>
  10060. <Dependent Role="FmsLicense">
  10061. <PropertyRef Name="SiteId" />
  10062. <PropertyRef Name="BusinessFieldId" />
  10063. </Dependent>
  10064. </ReferentialConstraint>
  10065. </Association>
  10066. <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
  10067. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10068. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  10069. <ReferentialConstraint>
  10070. <Principal Role="CmBusinessField">
  10071. <PropertyRef Name="SiteId" />
  10072. <PropertyRef Name="BusinessFieldId" />
  10073. </Principal>
  10074. <Dependent Role="FmsMaterialCarriedForward">
  10075. <PropertyRef Name="SiteId" />
  10076. <PropertyRef Name="BusinessFieldId" />
  10077. </Dependent>
  10078. </ReferentialConstraint>
  10079. </Association>
  10080. <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
  10081. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10082. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  10083. <ReferentialConstraint>
  10084. <Principal Role="CmBusinessField">
  10085. <PropertyRef Name="SiteId" />
  10086. <PropertyRef Name="BusinessFieldId" />
  10087. </Principal>
  10088. <Dependent Role="FmsMaterialCodeLocation">
  10089. <PropertyRef Name="SiteId" />
  10090. <PropertyRef Name="BusinessFieldId" />
  10091. </Dependent>
  10092. </ReferentialConstraint>
  10093. </Association>
  10094. <Association Name="FK__FmsMaterialOrder__CmBusinessField">
  10095. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10096. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  10097. <ReferentialConstraint>
  10098. <Principal Role="CmBusinessField">
  10099. <PropertyRef Name="SiteId" />
  10100. <PropertyRef Name="BusinessFieldId" />
  10101. </Principal>
  10102. <Dependent Role="FmsMaterialPurchaseOrder">
  10103. <PropertyRef Name="SiteId" />
  10104. <PropertyRef Name="BusinessFieldId" />
  10105. </Dependent>
  10106. </ReferentialConstraint>
  10107. </Association>
  10108. <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
  10109. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10110. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  10111. <ReferentialConstraint>
  10112. <Principal Role="CmBusinessField">
  10113. <PropertyRef Name="SiteId" />
  10114. <PropertyRef Name="BusinessFieldId" />
  10115. </Principal>
  10116. <Dependent Role="FmsMaterialPurchaseRequest">
  10117. <PropertyRef Name="SiteId" />
  10118. <PropertyRef Name="BusinessFieldId" />
  10119. </Dependent>
  10120. </ReferentialConstraint>
  10121. </Association>
  10122. <Association Name="FK__FmsMaterialStored__CmBusinessField">
  10123. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10124. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  10125. <ReferentialConstraint>
  10126. <Principal Role="CmBusinessField">
  10127. <PropertyRef Name="SiteId" />
  10128. <PropertyRef Name="BusinessFieldId" />
  10129. </Principal>
  10130. <Dependent Role="FmsMaterialStored">
  10131. <PropertyRef Name="SiteId" />
  10132. <PropertyRef Name="BusinessFieldId" />
  10133. </Dependent>
  10134. </ReferentialConstraint>
  10135. </Association>
  10136. <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
  10137. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10138. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  10139. <ReferentialConstraint>
  10140. <Principal Role="CmBusinessField">
  10141. <PropertyRef Name="SiteId" />
  10142. <PropertyRef Name="BusinessFieldId" />
  10143. </Principal>
  10144. <Dependent Role="FmsMaterialWarehouse">
  10145. <PropertyRef Name="SiteId" />
  10146. <PropertyRef Name="BusinessFieldId" />
  10147. </Dependent>
  10148. </ReferentialConstraint>
  10149. </Association>
  10150. <Association Name="FK__FmsWorkOrder__CmBusinessField">
  10151. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10152. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  10153. <ReferentialConstraint>
  10154. <Principal Role="CmBusinessField">
  10155. <PropertyRef Name="SiteId" />
  10156. <PropertyRef Name="BusinessFieldId" />
  10157. </Principal>
  10158. <Dependent Role="FmsWorkOrder">
  10159. <PropertyRef Name="SiteId" />
  10160. <PropertyRef Name="BusinessFieldId" />
  10161. </Dependent>
  10162. </ReferentialConstraint>
  10163. </Association>
  10164. <Association Name="FK__FmsWorkRequest__CmBusinessField">
  10165. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  10166. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  10167. <ReferentialConstraint>
  10168. <Principal Role="CmBusinessField">
  10169. <PropertyRef Name="SiteId" />
  10170. <PropertyRef Name="BusinessFieldId" />
  10171. </Principal>
  10172. <Dependent Role="FmsWorkRequest">
  10173. <PropertyRef Name="SiteId" />
  10174. <PropertyRef Name="BusinessFieldId" />
  10175. </Dependent>
  10176. </ReferentialConstraint>
  10177. </Association>
  10178. <Association Name="FK_CmUser_CmBusinessField">
  10179. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  10180. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10181. <ReferentialConstraint>
  10182. <Principal Role="CmBusinessField">
  10183. <PropertyRef Name="SiteId" />
  10184. <PropertyRef Name="BusinessFieldId" />
  10185. </Principal>
  10186. <Dependent Role="CmUser">
  10187. <PropertyRef Name="SiteId" />
  10188. <PropertyRef Name="BusinessFieldId" />
  10189. </Dependent>
  10190. </ReferentialConstraint>
  10191. </Association>
  10192. <Association Name="FK__CmCompany__345EC57D">
  10193. <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
  10194. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  10195. <ReferentialConstraint>
  10196. <Principal Role="CmCompanyType">
  10197. <PropertyRef Name="SiteId" />
  10198. <PropertyRef Name="CompanyTypeId" />
  10199. </Principal>
  10200. <Dependent Role="CmCompany">
  10201. <PropertyRef Name="SiteId" />
  10202. <PropertyRef Name="CompanyTypeId" />
  10203. </Dependent>
  10204. </ReferentialConstraint>
  10205. </Association>
  10206. <Association Name="FK__CmDepartment__3552E9B6">
  10207. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
  10208. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
  10209. <ReferentialConstraint>
  10210. <Principal Role="CmCompany">
  10211. <PropertyRef Name="SiteId" />
  10212. <PropertyRef Name="CompanyId" />
  10213. </Principal>
  10214. <Dependent Role="CmDepartment">
  10215. <PropertyRef Name="SiteId" />
  10216. <PropertyRef Name="CompanyId" />
  10217. </Dependent>
  10218. </ReferentialConstraint>
  10219. </Association>
  10220. <Association Name="FK_CmUser_CmCompany">
  10221. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  10222. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10223. <ReferentialConstraint>
  10224. <Principal Role="CmCompany">
  10225. <PropertyRef Name="SiteId" />
  10226. <PropertyRef Name="CompanyId" />
  10227. </Principal>
  10228. <Dependent Role="CmUser">
  10229. <PropertyRef Name="SiteId" />
  10230. <PropertyRef Name="CompanyId" />
  10231. </Dependent>
  10232. </ReferentialConstraint>
  10233. </Association>
  10234. <Association Name="FK_CmUser_CmDepartment">
  10235. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  10236. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10237. <ReferentialConstraint>
  10238. <Principal Role="CmDepartment">
  10239. <PropertyRef Name="SiteId" />
  10240. <PropertyRef Name="CompanyId" />
  10241. <PropertyRef Name="DepartmentId" />
  10242. </Principal>
  10243. <Dependent Role="CmUser">
  10244. <PropertyRef Name="SiteId" />
  10245. <PropertyRef Name="CompanyId" />
  10246. <PropertyRef Name="DepartmentId" />
  10247. </Dependent>
  10248. </ReferentialConstraint>
  10249. </Association>
  10250. <Association Name="FK_FmsAccident_CmDepartment">
  10251. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  10252. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10253. <ReferentialConstraint>
  10254. <Principal Role="CmDepartment">
  10255. <PropertyRef Name="SiteId" />
  10256. <PropertyRef Name="CompanyId" />
  10257. <PropertyRef Name="DepartmentId" />
  10258. </Principal>
  10259. <Dependent Role="FmsAccident">
  10260. <PropertyRef Name="SiteId" />
  10261. <PropertyRef Name="CompanyId" />
  10262. <PropertyRef Name="DepartmentId" />
  10263. </Dependent>
  10264. </ReferentialConstraint>
  10265. </Association>
  10266. <Association Name="FK__CmFacilityFile__CmFile">
  10267. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  10268. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
  10269. <ReferentialConstraint>
  10270. <Principal Role="CmFile">
  10271. <PropertyRef Name="SiteId" />
  10272. <PropertyRef Name="FileId" />
  10273. </Principal>
  10274. <Dependent Role="CmFacilityFile">
  10275. <PropertyRef Name="SiteId" />
  10276. <PropertyRef Name="FileId" />
  10277. </Dependent>
  10278. </ReferentialConstraint>
  10279. </Association>
  10280. <Association Name="FK__CmFile__CmFileCategory">
  10281. <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
  10282. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  10283. <ReferentialConstraint>
  10284. <Principal Role="CmFileCategory">
  10285. <PropertyRef Name="FileCategoryId" />
  10286. </Principal>
  10287. <Dependent Role="CmFile">
  10288. <PropertyRef Name="FileCategoryId" />
  10289. </Dependent>
  10290. </ReferentialConstraint>
  10291. </Association>
  10292. <Association Name="FK__FmsDrawingHistor__04DA9AE4">
  10293. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10294. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  10295. <ReferentialConstraint>
  10296. <Principal Role="CmFile">
  10297. <PropertyRef Name="SiteId" />
  10298. <PropertyRef Name="FileId" />
  10299. </Principal>
  10300. <Dependent Role="FmsDrawingHistory">
  10301. <PropertyRef Name="SiteId" />
  10302. <PropertyRef Name="FileId" />
  10303. </Dependent>
  10304. </ReferentialConstraint>
  10305. </Association>
  10306. <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
  10307. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10308. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  10309. <ReferentialConstraint>
  10310. <Principal Role="CmFile">
  10311. <PropertyRef Name="SiteId" />
  10312. <PropertyRef Name="FileId" />
  10313. </Principal>
  10314. <Dependent Role="FmsMaterialPurchaseOrder">
  10315. <PropertyRef Name="SiteId" />
  10316. <PropertyRef Name="FileId" />
  10317. </Dependent>
  10318. </ReferentialConstraint>
  10319. </Association>
  10320. <Association Name="FK__FmsWorkResultFile__CmFile">
  10321. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  10322. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
  10323. <ReferentialConstraint>
  10324. <Principal Role="CmFile">
  10325. <PropertyRef Name="SiteId" />
  10326. <PropertyRef Name="FileId" />
  10327. </Principal>
  10328. <Dependent Role="FmsWorkResultFile">
  10329. <PropertyRef Name="SiteId" />
  10330. <PropertyRef Name="FileId" />
  10331. </Dependent>
  10332. </ReferentialConstraint>
  10333. </Association>
  10334. <Association Name="FK_FmsAccident_CmFile1">
  10335. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10336. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10337. <ReferentialConstraint>
  10338. <Principal Role="CmFile">
  10339. <PropertyRef Name="SiteId" />
  10340. <PropertyRef Name="FileId" />
  10341. </Principal>
  10342. <Dependent Role="FmsAccident">
  10343. <PropertyRef Name="SiteId" />
  10344. <PropertyRef Name="FileId1" />
  10345. </Dependent>
  10346. </ReferentialConstraint>
  10347. </Association>
  10348. <Association Name="FK_FmsAccident_CmFile2">
  10349. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10350. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10351. <ReferentialConstraint>
  10352. <Principal Role="CmFile">
  10353. <PropertyRef Name="SiteId" />
  10354. <PropertyRef Name="FileId" />
  10355. </Principal>
  10356. <Dependent Role="FmsAccident">
  10357. <PropertyRef Name="SiteId" />
  10358. <PropertyRef Name="FileId2" />
  10359. </Dependent>
  10360. </ReferentialConstraint>
  10361. </Association>
  10362. <Association Name="FK_FmsAccident_CmFile3">
  10363. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10364. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10365. <ReferentialConstraint>
  10366. <Principal Role="CmFile">
  10367. <PropertyRef Name="SiteId" />
  10368. <PropertyRef Name="FileId" />
  10369. </Principal>
  10370. <Dependent Role="FmsAccident">
  10371. <PropertyRef Name="SiteId" />
  10372. <PropertyRef Name="FileId3" />
  10373. </Dependent>
  10374. </ReferentialConstraint>
  10375. </Association>
  10376. <Association Name="FK_FmsConstruction_CmFile1">
  10377. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10378. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10379. <ReferentialConstraint>
  10380. <Principal Role="CmFile">
  10381. <PropertyRef Name="SiteId" />
  10382. <PropertyRef Name="FileId" />
  10383. </Principal>
  10384. <Dependent Role="FmsConstruction">
  10385. <PropertyRef Name="SiteId" />
  10386. <PropertyRef Name="FileId1" />
  10387. </Dependent>
  10388. </ReferentialConstraint>
  10389. </Association>
  10390. <Association Name="FK_FmsConstruction_CmFile2">
  10391. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10392. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10393. <ReferentialConstraint>
  10394. <Principal Role="CmFile">
  10395. <PropertyRef Name="SiteId" />
  10396. <PropertyRef Name="FileId" />
  10397. </Principal>
  10398. <Dependent Role="FmsConstruction">
  10399. <PropertyRef Name="SiteId" />
  10400. <PropertyRef Name="FileId2" />
  10401. </Dependent>
  10402. </ReferentialConstraint>
  10403. </Association>
  10404. <Association Name="FK_FmsConstruction_CmFile3">
  10405. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10406. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10407. <ReferentialConstraint>
  10408. <Principal Role="CmFile">
  10409. <PropertyRef Name="SiteId" />
  10410. <PropertyRef Name="FileId" />
  10411. </Principal>
  10412. <Dependent Role="FmsConstruction">
  10413. <PropertyRef Name="SiteId" />
  10414. <PropertyRef Name="FileId3" />
  10415. </Dependent>
  10416. </ReferentialConstraint>
  10417. </Association>
  10418. <Association Name="FK_FmsManualHistory_CmFile">
  10419. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  10420. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  10421. <ReferentialConstraint>
  10422. <Principal Role="CmFile">
  10423. <PropertyRef Name="SiteId" />
  10424. <PropertyRef Name="FileId" />
  10425. </Principal>
  10426. <Dependent Role="FmsManualHistory">
  10427. <PropertyRef Name="SiteId" />
  10428. <PropertyRef Name="FileId" />
  10429. </Dependent>
  10430. </ReferentialConstraint>
  10431. </Association>
  10432. <Association Name="FK__CmLocation__3DE82FB7">
  10433. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  10434. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  10435. <ReferentialConstraint>
  10436. <Principal Role="CmFloor">
  10437. <PropertyRef Name="SiteId" />
  10438. <PropertyRef Name="BuildingId" />
  10439. <PropertyRef Name="FloorId" />
  10440. </Principal>
  10441. <Dependent Role="CmZone">
  10442. <PropertyRef Name="SiteId" />
  10443. <PropertyRef Name="BuildingId" />
  10444. <PropertyRef Name="FloorId" />
  10445. </Dependent>
  10446. </ReferentialConstraint>
  10447. </Association>
  10448. <Association Name="FK_CmZoneTempHumiSet_CmFloor">
  10449. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  10450. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  10451. <ReferentialConstraint>
  10452. <Principal Role="CmFloor">
  10453. <PropertyRef Name="SiteId" />
  10454. <PropertyRef Name="BuildingId" />
  10455. <PropertyRef Name="FloorId" />
  10456. </Principal>
  10457. <Dependent Role="CmZoneTempHumiSet">
  10458. <PropertyRef Name="SiteId" />
  10459. <PropertyRef Name="BuildingId" />
  10460. <PropertyRef Name="FloorId" />
  10461. </Dependent>
  10462. </ReferentialConstraint>
  10463. </Association>
  10464. <Association Name="FK_CmUser_CmPosition">
  10465. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
  10466. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10467. <ReferentialConstraint>
  10468. <Principal Role="CmPosition">
  10469. <PropertyRef Name="SiteId" />
  10470. <PropertyRef Name="PositionId" />
  10471. </Principal>
  10472. <Dependent Role="CmUser">
  10473. <PropertyRef Name="SiteId" />
  10474. <PropertyRef Name="PositionId" />
  10475. </Dependent>
  10476. </ReferentialConstraint>
  10477. </Association>
  10478. <Association Name="FK__CmUserToLicense__CmUser">
  10479. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10480. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  10481. <ReferentialConstraint>
  10482. <Principal Role="CmUser">
  10483. <PropertyRef Name="SiteId" />
  10484. <PropertyRef Name="UserId" />
  10485. </Principal>
  10486. <Dependent Role="CmUserToLicense">
  10487. <PropertyRef Name="SiteId" />
  10488. <PropertyRef Name="UserId" />
  10489. </Dependent>
  10490. </ReferentialConstraint>
  10491. </Association>
  10492. <Association Name="FK__FmsDrawingHistory__CmUser">
  10493. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10494. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  10495. <ReferentialConstraint>
  10496. <Principal Role="CmUser">
  10497. <PropertyRef Name="SiteId" />
  10498. <PropertyRef Name="UserId" />
  10499. </Principal>
  10500. <Dependent Role="FmsDrawingHistory">
  10501. <PropertyRef Name="SiteId" />
  10502. <PropertyRef Name="UpdatedUserId" />
  10503. </Dependent>
  10504. </ReferentialConstraint>
  10505. </Association>
  10506. <Association Name="FK__FmsMaterialOrder__CmUser">
  10507. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10508. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  10509. <ReferentialConstraint>
  10510. <Principal Role="CmUser">
  10511. <PropertyRef Name="SiteId" />
  10512. <PropertyRef Name="UserId" />
  10513. </Principal>
  10514. <Dependent Role="FmsMaterialPurchaseOrder">
  10515. <PropertyRef Name="SiteId" />
  10516. <PropertyRef Name="OrderUserId" />
  10517. </Dependent>
  10518. </ReferentialConstraint>
  10519. </Association>
  10520. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  10521. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10522. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  10523. <ReferentialConstraint>
  10524. <Principal Role="CmUser">
  10525. <PropertyRef Name="SiteId" />
  10526. <PropertyRef Name="UserId" />
  10527. </Principal>
  10528. <Dependent Role="FmsMaterialPurchaseRequest">
  10529. <PropertyRef Name="SiteId" />
  10530. <PropertyRef Name="RequestUserId" />
  10531. </Dependent>
  10532. </ReferentialConstraint>
  10533. </Association>
  10534. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  10535. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10536. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  10537. <ReferentialConstraint>
  10538. <Principal Role="CmUser">
  10539. <PropertyRef Name="SiteId" />
  10540. <PropertyRef Name="UserId" />
  10541. </Principal>
  10542. <Dependent Role="FmsMaterialPurchaseRequest">
  10543. <PropertyRef Name="SiteId" />
  10544. <PropertyRef Name="ApprovalUserId" />
  10545. </Dependent>
  10546. </ReferentialConstraint>
  10547. </Association>
  10548. <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
  10549. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10550. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  10551. <ReferentialConstraint>
  10552. <Principal Role="CmUser">
  10553. <PropertyRef Name="SiteId" />
  10554. <PropertyRef Name="UserId" />
  10555. </Principal>
  10556. <Dependent Role="FmsMaterialStored">
  10557. <PropertyRef Name="SiteId" />
  10558. <PropertyRef Name="StoredUserId" />
  10559. </Dependent>
  10560. </ReferentialConstraint>
  10561. </Association>
  10562. <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  10563. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10564. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  10565. <ReferentialConstraint>
  10566. <Principal Role="CmUser">
  10567. <PropertyRef Name="SiteId" />
  10568. <PropertyRef Name="UserId" />
  10569. </Principal>
  10570. <Dependent Role="FmsMaterialStored">
  10571. <PropertyRef Name="SiteId" />
  10572. <PropertyRef Name="ApprovalUserId" />
  10573. </Dependent>
  10574. </ReferentialConstraint>
  10575. </Association>
  10576. <Association Name="FK__FmsWorkOrder__CmUser">
  10577. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10578. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  10579. <ReferentialConstraint>
  10580. <Principal Role="CmUser">
  10581. <PropertyRef Name="SiteId" />
  10582. <PropertyRef Name="UserId" />
  10583. </Principal>
  10584. <Dependent Role="FmsWorkOrder">
  10585. <PropertyRef Name="SiteId" />
  10586. <PropertyRef Name="OrderUserId" />
  10587. </Dependent>
  10588. </ReferentialConstraint>
  10589. </Association>
  10590. <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
  10591. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10592. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  10593. <ReferentialConstraint>
  10594. <Principal Role="CmUser">
  10595. <PropertyRef Name="SiteId" />
  10596. <PropertyRef Name="UserId" />
  10597. </Principal>
  10598. <Dependent Role="FmsWorkRequest">
  10599. <PropertyRef Name="SiteId" />
  10600. <PropertyRef Name="RequestUserId" />
  10601. </Dependent>
  10602. </ReferentialConstraint>
  10603. </Association>
  10604. <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  10605. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10606. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  10607. <ReferentialConstraint>
  10608. <Principal Role="CmUser">
  10609. <PropertyRef Name="SiteId" />
  10610. <PropertyRef Name="UserId" />
  10611. </Principal>
  10612. <Dependent Role="FmsWorkRequest">
  10613. <PropertyRef Name="SiteId" />
  10614. <PropertyRef Name="RejectUserId" />
  10615. </Dependent>
  10616. </ReferentialConstraint>
  10617. </Association>
  10618. <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
  10619. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10620. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  10621. <ReferentialConstraint>
  10622. <Principal Role="CmUser">
  10623. <PropertyRef Name="SiteId" />
  10624. <PropertyRef Name="UserId" />
  10625. </Principal>
  10626. <Dependent Role="FmsWorkResult">
  10627. <PropertyRef Name="SiteId" />
  10628. <PropertyRef Name="WorkerUserId" />
  10629. </Dependent>
  10630. </ReferentialConstraint>
  10631. </Association>
  10632. <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  10633. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10634. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  10635. <ReferentialConstraint>
  10636. <Principal Role="CmUser">
  10637. <PropertyRef Name="SiteId" />
  10638. <PropertyRef Name="UserId" />
  10639. </Principal>
  10640. <Dependent Role="FmsWorkResult">
  10641. <PropertyRef Name="SiteId" />
  10642. <PropertyRef Name="ConfirmedUserId" />
  10643. </Dependent>
  10644. </ReferentialConstraint>
  10645. </Association>
  10646. <Association Name="FK_CmUser_CmUserGroup">
  10647. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
  10648. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  10649. <ReferentialConstraint>
  10650. <Principal Role="CmUserGroup">
  10651. <PropertyRef Name="SiteId" />
  10652. <PropertyRef Name="UserGroupId" />
  10653. </Principal>
  10654. <Dependent Role="CmUser">
  10655. <PropertyRef Name="SiteId" />
  10656. <PropertyRef Name="UserGroupId" />
  10657. </Dependent>
  10658. </ReferentialConstraint>
  10659. </Association>
  10660. <Association Name="FK_CmUserLoginHistory_CmUser">
  10661. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10662. <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
  10663. <ReferentialConstraint>
  10664. <Principal Role="CmUser">
  10665. <PropertyRef Name="SiteId" />
  10666. <PropertyRef Name="UserId" />
  10667. </Principal>
  10668. <Dependent Role="CmUserLoginHistory">
  10669. <PropertyRef Name="SiteId" />
  10670. <PropertyRef Name="UserId" />
  10671. </Dependent>
  10672. </ReferentialConstraint>
  10673. </Association>
  10674. <Association Name="FK_FmsConstructionEstimation_CmUser">
  10675. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  10676. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
  10677. <ReferentialConstraint>
  10678. <Principal Role="CmUser">
  10679. <PropertyRef Name="SiteId" />
  10680. <PropertyRef Name="UserId" />
  10681. </Principal>
  10682. <Dependent Role="FmsConstructionEstimation">
  10683. <PropertyRef Name="SiteId" />
  10684. <PropertyRef Name="EstimateUserId" />
  10685. </Dependent>
  10686. </ReferentialConstraint>
  10687. </Association>
  10688. <Association Name="FK_FmsManualHistory_CmUser">
  10689. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  10690. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  10691. <ReferentialConstraint>
  10692. <Principal Role="CmUser">
  10693. <PropertyRef Name="SiteId" />
  10694. <PropertyRef Name="UserId" />
  10695. </Principal>
  10696. <Dependent Role="FmsManualHistory">
  10697. <PropertyRef Name="SiteId" />
  10698. <PropertyRef Name="UpdatedUserId" />
  10699. </Dependent>
  10700. </ReferentialConstraint>
  10701. </Association>
  10702. <Association Name="FK__CmUserGroupPermission__CmUserGroup">
  10703. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
  10704. <OnDelete Action="Cascade" />
  10705. </End>
  10706. <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
  10707. <ReferentialConstraint>
  10708. <Principal Role="CmUserGroup">
  10709. <PropertyRef Name="SiteId" />
  10710. <PropertyRef Name="UserGroupId" />
  10711. </Principal>
  10712. <Dependent Role="CmUserGroupPermission">
  10713. <PropertyRef Name="SiteId" />
  10714. <PropertyRef Name="UserGroupId" />
  10715. </Dependent>
  10716. </ReferentialConstraint>
  10717. </Association>
  10718. <Association Name="FK__CmUserToLicense__FmsLicense">
  10719. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
  10720. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  10721. <ReferentialConstraint>
  10722. <Principal Role="FmsLicense">
  10723. <PropertyRef Name="SiteId" />
  10724. <PropertyRef Name="LicenseId" />
  10725. </Principal>
  10726. <Dependent Role="CmUserToLicense">
  10727. <PropertyRef Name="SiteId" />
  10728. <PropertyRef Name="LicenseId" />
  10729. </Dependent>
  10730. </ReferentialConstraint>
  10731. </Association>
  10732. <Association Name="FK_CmZoneTempHumiSet_CmZone">
  10733. <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
  10734. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
  10735. <ReferentialConstraint>
  10736. <Principal Role="CmZone">
  10737. <PropertyRef Name="SiteId" />
  10738. <PropertyRef Name="BuildingId" />
  10739. <PropertyRef Name="FloorId" />
  10740. <PropertyRef Name="ZoneId" />
  10741. </Principal>
  10742. <Dependent Role="CmZoneTempHumiSet">
  10743. <PropertyRef Name="SiteId" />
  10744. <PropertyRef Name="BuildingId" />
  10745. <PropertyRef Name="FloorId" />
  10746. <PropertyRef Name="ZoneId" />
  10747. </Dependent>
  10748. </ReferentialConstraint>
  10749. </Association>
  10750. <Association Name="FK_FmsAccident_FmsAccidentCodeType">
  10751. <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
  10752. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  10753. <ReferentialConstraint>
  10754. <Principal Role="FmsAccidentCodeType">
  10755. <PropertyRef Name="SiteId" />
  10756. <PropertyRef Name="AccidentTypeId" />
  10757. </Principal>
  10758. <Dependent Role="FmsAccident">
  10759. <PropertyRef Name="SiteId" />
  10760. <PropertyRef Name="AccidentTypeId" />
  10761. </Dependent>
  10762. </ReferentialConstraint>
  10763. </Association>
  10764. <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
  10765. <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
  10766. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10767. <ReferentialConstraint>
  10768. <Principal Role="FmsConstructionCodeProgress">
  10769. <PropertyRef Name="ProgressId" />
  10770. </Principal>
  10771. <Dependent Role="FmsConstruction">
  10772. <PropertyRef Name="ProgressId" />
  10773. </Dependent>
  10774. </ReferentialConstraint>
  10775. </Association>
  10776. <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
  10777. <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
  10778. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  10779. <ReferentialConstraint>
  10780. <Principal Role="FmsConstructionCodeType">
  10781. <PropertyRef Name="SiteId" />
  10782. <PropertyRef Name="ConstructionTypeId" />
  10783. </Principal>
  10784. <Dependent Role="FmsConstruction">
  10785. <PropertyRef Name="SiteId" />
  10786. <PropertyRef Name="ConstructionTypeId" />
  10787. </Dependent>
  10788. </ReferentialConstraint>
  10789. </Association>
  10790. <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
  10791. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
  10792. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
  10793. <ReferentialConstraint>
  10794. <Principal Role="FmsConstruction">
  10795. <PropertyRef Name="SiteId" />
  10796. <PropertyRef Name="ConstructionId" />
  10797. </Principal>
  10798. <Dependent Role="FmsConstructionEstimation">
  10799. <PropertyRef Name="SiteId" />
  10800. <PropertyRef Name="ConstructionId" />
  10801. </Dependent>
  10802. </ReferentialConstraint>
  10803. </Association>
  10804. <Association Name="FK__FmsDrawing__6E565CE8">
  10805. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
  10806. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  10807. <ReferentialConstraint>
  10808. <Principal Role="FmsDrawingCodeGroup">
  10809. <PropertyRef Name="SiteId" />
  10810. <PropertyRef Name="DrawingGroupId" />
  10811. </Principal>
  10812. <Dependent Role="FmsDrawing">
  10813. <PropertyRef Name="SiteId" />
  10814. <PropertyRef Name="DrawingGroupId" />
  10815. </Dependent>
  10816. </ReferentialConstraint>
  10817. </Association>
  10818. <Association Name="FK__FmsDrawing__6F4A8121">
  10819. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
  10820. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  10821. <ReferentialConstraint>
  10822. <Principal Role="FmsDrawingCodeType">
  10823. <PropertyRef Name="SiteId" />
  10824. <PropertyRef Name="DrawingTypeId" />
  10825. </Principal>
  10826. <Dependent Role="FmsDrawing">
  10827. <PropertyRef Name="SiteId" />
  10828. <PropertyRef Name="DrawingTypeId" />
  10829. </Dependent>
  10830. </ReferentialConstraint>
  10831. </Association>
  10832. <Association Name="FK__FmsDrawingHistor__7132C993">
  10833. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1" />
  10834. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  10835. <ReferentialConstraint>
  10836. <Principal Role="FmsDrawing">
  10837. <PropertyRef Name="SiteId" />
  10838. <PropertyRef Name="DrawingId" />
  10839. </Principal>
  10840. <Dependent Role="FmsDrawingHistory">
  10841. <PropertyRef Name="SiteId" />
  10842. <PropertyRef Name="DrawingId" />
  10843. </Dependent>
  10844. </ReferentialConstraint>
  10845. </Association>
  10846. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  10847. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  10848. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  10849. <ReferentialConstraint>
  10850. <Principal Role="FmsEquipmentCodeStateType">
  10851. <PropertyRef Name="EquipmentStateTypeId" />
  10852. </Principal>
  10853. <Dependent Role="FmsEquipmentHistory">
  10854. <PropertyRef Name="EquipmentStateTypeId" />
  10855. </Dependent>
  10856. </ReferentialConstraint>
  10857. </Association>
  10858. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  10859. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  10860. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  10861. <ReferentialConstraint>
  10862. <Principal Role="FmsWorkCodeCycleUnit">
  10863. <PropertyRef Name="SiteId" />
  10864. <PropertyRef Name="CycleUnitId" />
  10865. </Principal>
  10866. <Dependent Role="FmsFacilityCheckItem">
  10867. <PropertyRef Name="SiteId" />
  10868. <PropertyRef Name="CycleUnitId" />
  10869. </Dependent>
  10870. </ReferentialConstraint>
  10871. </Association>
  10872. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  10873. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  10874. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  10875. <ReferentialConstraint>
  10876. <Principal Role="FmsWorkCodeType">
  10877. <PropertyRef Name="WorkTypeId" />
  10878. </Principal>
  10879. <Dependent Role="FmsFacilityCheckItem">
  10880. <PropertyRef Name="WorkTypeId" />
  10881. </Dependent>
  10882. </ReferentialConstraint>
  10883. </Association>
  10884. <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  10885. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
  10886. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  10887. <ReferentialConstraint>
  10888. <Principal Role="FmsFacilityCheckItem">
  10889. <PropertyRef Name="SiteId" />
  10890. <PropertyRef Name="FacilityCode" />
  10891. <PropertyRef Name="CheckItemId" />
  10892. </Principal>
  10893. <Dependent Role="FmsWorkResultCheckItem">
  10894. <PropertyRef Name="SiteId" />
  10895. <PropertyRef Name="FacilityCode" />
  10896. <PropertyRef Name="CheckItemId" />
  10897. </Dependent>
  10898. </ReferentialConstraint>
  10899. </Association>
  10900. <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  10901. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
  10902. <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  10903. <ReferentialConstraint>
  10904. <Principal Role="FmsFacilityCodeClass">
  10905. <PropertyRef Name="SiteId" />
  10906. <PropertyRef Name="FacilityClassId" />
  10907. </Principal>
  10908. <Dependent Role="FmsFacilityCodeClass1">
  10909. <PropertyRef Name="SiteId" />
  10910. <PropertyRef Name="ParentFacilityClassId" />
  10911. </Dependent>
  10912. </ReferentialConstraint>
  10913. </Association>
  10914. <Association Name="FK_FmsManual_FmsManualType">
  10915. <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
  10916. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
  10917. <ReferentialConstraint>
  10918. <Principal Role="FmsManualType">
  10919. <PropertyRef Name="SiteId" />
  10920. <PropertyRef Name="ManualTypeId" />
  10921. </Principal>
  10922. <Dependent Role="FmsManual">
  10923. <PropertyRef Name="SiteId" />
  10924. <PropertyRef Name="ManualTypeId" />
  10925. </Dependent>
  10926. </ReferentialConstraint>
  10927. </Association>
  10928. <Association Name="FK_FmsManualHistory_FmsManual">
  10929. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
  10930. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  10931. <ReferentialConstraint>
  10932. <Principal Role="FmsManual">
  10933. <PropertyRef Name="SiteId" />
  10934. <PropertyRef Name="ManualId" />
  10935. </Principal>
  10936. <Dependent Role="FmsManualHistory">
  10937. <PropertyRef Name="SiteId" />
  10938. <PropertyRef Name="ManualId" />
  10939. </Dependent>
  10940. </ReferentialConstraint>
  10941. </Association>
  10942. <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  10943. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  10944. <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  10945. <ReferentialConstraint>
  10946. <Principal Role="FmsMaterialCodeClass">
  10947. <PropertyRef Name="SiteId" />
  10948. <PropertyRef Name="MaterialClassId" />
  10949. </Principal>
  10950. <Dependent Role="FmsMaterialCodeClass1">
  10951. <PropertyRef Name="SiteId" />
  10952. <PropertyRef Name="ParentMaterialClassId" />
  10953. </Dependent>
  10954. </ReferentialConstraint>
  10955. </Association>
  10956. <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  10957. <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
  10958. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  10959. <ReferentialConstraint>
  10960. <Principal Role="FmsMaterialCodeProgress">
  10961. <PropertyRef Name="ProgressId" />
  10962. </Principal>
  10963. <Dependent Role="FmsMaterialPurchaseRequest">
  10964. <PropertyRef Name="ProgressId" />
  10965. </Dependent>
  10966. </ReferentialConstraint>
  10967. </Association>
  10968. <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  10969. <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
  10970. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  10971. <ReferentialConstraint>
  10972. <Principal Role="FmsMaterialCodePurchaseType">
  10973. <PropertyRef Name="PurchaseTypeId" />
  10974. </Principal>
  10975. <Dependent Role="FmsMaterialPurchaseRequest">
  10976. <PropertyRef Name="PurchaseTypeId" />
  10977. </Dependent>
  10978. </ReferentialConstraint>
  10979. </Association>
  10980. <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  10981. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  10982. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  10983. <ReferentialConstraint>
  10984. <Principal Role="FmsMaterialTradeCompany">
  10985. <PropertyRef Name="SiteId" />
  10986. <PropertyRef Name="TradeCompanyId" />
  10987. </Principal>
  10988. <Dependent Role="FmsMaterialPurchaseOrder">
  10989. <PropertyRef Name="SiteId" />
  10990. <PropertyRef Name="TradeCompanyId" />
  10991. </Dependent>
  10992. </ReferentialConstraint>
  10993. </Association>
  10994. <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  10995. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
  10996. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  10997. <ReferentialConstraint>
  10998. <Principal Role="FmsMaterialPurchaseRequest">
  10999. <PropertyRef Name="SiteId" />
  11000. <PropertyRef Name="PurchaseRequestId" />
  11001. </Principal>
  11002. <Dependent Role="FmsMaterialPurchaseOrder">
  11003. <PropertyRef Name="SiteId" />
  11004. <PropertyRef Name="PurchaseRequestId" />
  11005. </Dependent>
  11006. </ReferentialConstraint>
  11007. </Association>
  11008. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  11009. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
  11010. <OnDelete Action="Cascade" />
  11011. </End>
  11012. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  11013. <ReferentialConstraint>
  11014. <Principal Role="FmsMaterialPurchaseOrder">
  11015. <PropertyRef Name="SiteId" />
  11016. <PropertyRef Name="PurchaseOrderId" />
  11017. </Principal>
  11018. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  11019. <PropertyRef Name="SiteId" />
  11020. <PropertyRef Name="PurchaseOrderId" />
  11021. </Dependent>
  11022. </ReferentialConstraint>
  11023. </Association>
  11024. <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  11025. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
  11026. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  11027. <ReferentialConstraint>
  11028. <Principal Role="FmsMaterialPurchaseOrder">
  11029. <PropertyRef Name="SiteId" />
  11030. <PropertyRef Name="PurchaseOrderId" />
  11031. </Principal>
  11032. <Dependent Role="FmsMaterialStored">
  11033. <PropertyRef Name="SiteId" />
  11034. <PropertyRef Name="PurchaseOrderId" />
  11035. </Dependent>
  11036. </ReferentialConstraint>
  11037. </Association>
  11038. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  11039. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
  11040. <OnDelete Action="Cascade" />
  11041. </End>
  11042. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  11043. <ReferentialConstraint>
  11044. <Principal Role="FmsMaterialPurchaseRequest">
  11045. <PropertyRef Name="SiteId" />
  11046. <PropertyRef Name="PurchaseRequestId" />
  11047. </Principal>
  11048. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  11049. <PropertyRef Name="SiteId" />
  11050. <PropertyRef Name="PurchaseRequestId" />
  11051. </Dependent>
  11052. </ReferentialConstraint>
  11053. </Association>
  11054. <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
  11055. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
  11056. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  11057. <ReferentialConstraint>
  11058. <Principal Role="FmsMaterialWarehouse">
  11059. <PropertyRef Name="SiteId" />
  11060. <PropertyRef Name="WarehouseId" />
  11061. </Principal>
  11062. <Dependent Role="FmsMaterialStored">
  11063. <PropertyRef Name="SiteId" />
  11064. <PropertyRef Name="WarehouseId" />
  11065. </Dependent>
  11066. </ReferentialConstraint>
  11067. </Association>
  11068. <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
  11069. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
  11070. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  11071. <ReferentialConstraint>
  11072. <Principal Role="FmsWorkCodeCauseClass">
  11073. <PropertyRef Name="SiteId" />
  11074. <PropertyRef Name="CauseClassId" />
  11075. </Principal>
  11076. <Dependent Role="FmsWorkResult">
  11077. <PropertyRef Name="SiteId" />
  11078. <PropertyRef Name="CauseClassId" />
  11079. </Dependent>
  11080. </ReferentialConstraint>
  11081. </Association>
  11082. <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
  11083. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
  11084. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  11085. <ReferentialConstraint>
  11086. <Principal Role="FmsWorkCodeEmergency">
  11087. <PropertyRef Name="SiteId" />
  11088. <PropertyRef Name="EmergencyId" />
  11089. </Principal>
  11090. <Dependent Role="FmsWorkOrder">
  11091. <PropertyRef Name="SiteId" />
  11092. <PropertyRef Name="EmergencyId" />
  11093. </Dependent>
  11094. </ReferentialConstraint>
  11095. </Association>
  11096. <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
  11097. <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
  11098. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  11099. <ReferentialConstraint>
  11100. <Principal Role="FmsWorkCodeProgress">
  11101. <PropertyRef Name="WorkProgressId" />
  11102. </Principal>
  11103. <Dependent Role="FmsWorkRequest">
  11104. <PropertyRef Name="WorkProgressId" />
  11105. </Dependent>
  11106. </ReferentialConstraint>
  11107. </Association>
  11108. <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
  11109. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  11110. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  11111. <ReferentialConstraint>
  11112. <Principal Role="FmsWorkCodeType">
  11113. <PropertyRef Name="WorkTypeId" />
  11114. </Principal>
  11115. <Dependent Role="FmsWorkRequest">
  11116. <PropertyRef Name="WorkTypeId" />
  11117. </Dependent>
  11118. </ReferentialConstraint>
  11119. </Association>
  11120. <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
  11121. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  11122. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
  11123. <ReferentialConstraint>
  11124. <Principal Role="FmsWorkRequest">
  11125. <PropertyRef Name="SiteId" />
  11126. <PropertyRef Name="WorkRequestId" />
  11127. </Principal>
  11128. <Dependent Role="FmsWorkOrder">
  11129. <PropertyRef Name="SiteId" />
  11130. <PropertyRef Name="WorkRequestId" />
  11131. </Dependent>
  11132. </ReferentialConstraint>
  11133. </Association>
  11134. <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
  11135. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
  11136. <OnDelete Action="Cascade" />
  11137. </End>
  11138. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  11139. <ReferentialConstraint>
  11140. <Principal Role="FmsWorkOrder">
  11141. <PropertyRef Name="SiteId" />
  11142. <PropertyRef Name="WorkRequestId" />
  11143. </Principal>
  11144. <Dependent Role="FmsWorkOrderToFacility">
  11145. <PropertyRef Name="SiteId" />
  11146. <PropertyRef Name="WorkRequestId" />
  11147. </Dependent>
  11148. </ReferentialConstraint>
  11149. </Association>
  11150. <Association Name="FK__FmsWorkResult__FmsWorkOrder">
  11151. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
  11152. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  11153. <ReferentialConstraint>
  11154. <Principal Role="FmsWorkOrder">
  11155. <PropertyRef Name="SiteId" />
  11156. <PropertyRef Name="WorkRequestId" />
  11157. </Principal>
  11158. <Dependent Role="FmsWorkResult">
  11159. <PropertyRef Name="SiteId" />
  11160. <PropertyRef Name="WorkRequestId" />
  11161. </Dependent>
  11162. </ReferentialConstraint>
  11163. </Association>
  11164. <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
  11165. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
  11166. <OnDelete Action="Cascade" />
  11167. </End>
  11168. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  11169. <ReferentialConstraint>
  11170. <Principal Role="FmsWorkRequest">
  11171. <PropertyRef Name="SiteId" />
  11172. <PropertyRef Name="WorkRequestId" />
  11173. </Principal>
  11174. <Dependent Role="FmsWorkRequestToFacility">
  11175. <PropertyRef Name="SiteId" />
  11176. <PropertyRef Name="WorkRequestId" />
  11177. </Dependent>
  11178. </ReferentialConstraint>
  11179. </Association>
  11180. <Association Name="FK__FmsWorkResult__FmsWorkRequest">
  11181. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  11182. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  11183. <ReferentialConstraint>
  11184. <Principal Role="FmsWorkRequest">
  11185. <PropertyRef Name="SiteId" />
  11186. <PropertyRef Name="WorkRequestId" />
  11187. </Principal>
  11188. <Dependent Role="FmsWorkResult">
  11189. <PropertyRef Name="SiteId" />
  11190. <PropertyRef Name="WorkRequestId" />
  11191. </Dependent>
  11192. </ReferentialConstraint>
  11193. </Association>
  11194. <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
  11195. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  11196. <OnDelete Action="Cascade" />
  11197. </End>
  11198. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  11199. <ReferentialConstraint>
  11200. <Principal Role="FmsWorkResult">
  11201. <PropertyRef Name="SiteId" />
  11202. <PropertyRef Name="WorkRequestId" />
  11203. </Principal>
  11204. <Dependent Role="FmsWorkResultCheckItem">
  11205. <PropertyRef Name="SiteId" />
  11206. <PropertyRef Name="WorkRequestId" />
  11207. </Dependent>
  11208. </ReferentialConstraint>
  11209. </Association>
  11210. <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
  11211. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  11212. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
  11213. <ReferentialConstraint>
  11214. <Principal Role="FmsWorkResult">
  11215. <PropertyRef Name="SiteId" />
  11216. <PropertyRef Name="WorkRequestId" />
  11217. </Principal>
  11218. <Dependent Role="FmsWorkResultFile">
  11219. <PropertyRef Name="SiteId" />
  11220. <PropertyRef Name="WorkRequestId" />
  11221. </Dependent>
  11222. </ReferentialConstraint>
  11223. </Association>
  11224. <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
  11225. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  11226. <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
  11227. <ReferentialConstraint>
  11228. <Principal Role="FmsWorkResult">
  11229. <PropertyRef Name="SiteId" />
  11230. <PropertyRef Name="WorkRequestId" />
  11231. </Principal>
  11232. <Dependent Role="FmsWorkResultLaw">
  11233. <PropertyRef Name="SiteId" />
  11234. <PropertyRef Name="WorkRequestId" />
  11235. </Dependent>
  11236. </ReferentialConstraint>
  11237. </Association>
  11238. <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
  11239. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  11240. <OnDelete Action="Cascade" />
  11241. </End>
  11242. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  11243. <ReferentialConstraint>
  11244. <Principal Role="FmsWorkResult">
  11245. <PropertyRef Name="SiteId" />
  11246. <PropertyRef Name="WorkRequestId" />
  11247. </Principal>
  11248. <Dependent Role="FmsWorkResultToFacility">
  11249. <PropertyRef Name="SiteId" />
  11250. <PropertyRef Name="WorkRequestId" />
  11251. </Dependent>
  11252. </ReferentialConstraint>
  11253. </Association>
  11254. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  11255. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1">
  11256. <OnDelete Action="Cascade" />
  11257. </End>
  11258. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  11259. <ReferentialConstraint>
  11260. <Principal Role="FmsWorkResultCheckItem">
  11261. <PropertyRef Name="CheckItemId" />
  11262. </Principal>
  11263. <Dependent Role="FmsWorkResultCheckItemMaterial">
  11264. <PropertyRef Name="CheckItemId" />
  11265. </Dependent>
  11266. </ReferentialConstraint>
  11267. </Association>
  11268. <EntityContainer Name="iBemsEntities" annotation:LazyLoadingEnabled="true">
  11269. <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" />
  11270. <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" />
  11271. <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" />
  11272. <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" />
  11273. <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" />
  11274. <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" />
  11275. <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" />
  11276. <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" />
  11277. <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" />
  11278. <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" />
  11279. <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" />
  11280. <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" />
  11281. <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" />
  11282. <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" />
  11283. <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" />
  11284. <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" />
  11285. <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" />
  11286. <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" />
  11287. <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" />
  11288. <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" />
  11289. <EntitySet Name="CmCompany" EntityType="Self.CmCompany" />
  11290. <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" />
  11291. <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" />
  11292. <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" />
  11293. <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" />
  11294. <EntitySet Name="CmFile" EntityType="Self.CmFile" />
  11295. <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" />
  11296. <EntitySet Name="CmFloor" EntityType="Self.CmFloor" />
  11297. <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" />
  11298. <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" />
  11299. <EntitySet Name="CmPosition" EntityType="Self.CmPosition" />
  11300. <EntitySet Name="CmUser" EntityType="Self.CmUser" />
  11301. <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" />
  11302. <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" />
  11303. <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" />
  11304. <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" />
  11305. <EntitySet Name="CmZone" EntityType="Self.CmZone" />
  11306. <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" />
  11307. <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" />
  11308. <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" />
  11309. <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" />
  11310. <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" />
  11311. <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" />
  11312. <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" />
  11313. <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" />
  11314. <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" />
  11315. <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" />
  11316. <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" />
  11317. <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" />
  11318. <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" />
  11319. <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" />
  11320. <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" />
  11321. <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" />
  11322. <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" />
  11323. <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" />
  11324. <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" />
  11325. <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" />
  11326. <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" />
  11327. <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" />
  11328. <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" />
  11329. <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" />
  11330. <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" />
  11331. <EntitySet Name="FmsManual" EntityType="Self.FmsManual" />
  11332. <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" />
  11333. <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" />
  11334. <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" />
  11335. <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" />
  11336. <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" />
  11337. <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" />
  11338. <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" />
  11339. <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" />
  11340. <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" />
  11341. <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" />
  11342. <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" />
  11343. <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" />
  11344. <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" />
  11345. <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" />
  11346. <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" />
  11347. <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" />
  11348. <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" />
  11349. <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" />
  11350. <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" />
  11351. <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" />
  11352. <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" />
  11353. <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" />
  11354. <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" />
  11355. <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" />
  11356. <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" />
  11357. <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" />
  11358. <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" />
  11359. <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" />
  11360. <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" />
  11361. <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" />
  11362. <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" />
  11363. <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" />
  11364. <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" />
  11365. <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" />
  11366. <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" />
  11367. <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" />
  11368. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  11369. <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
  11370. <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
  11371. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  11372. </AssociationSet>
  11373. <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
  11374. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11375. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  11376. </AssociationSet>
  11377. <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
  11378. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11379. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  11380. </AssociationSet>
  11381. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
  11382. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11383. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  11384. </AssociationSet>
  11385. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  11386. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11387. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  11388. </AssociationSet>
  11389. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  11390. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11391. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  11392. </AssociationSet>
  11393. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  11394. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11395. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  11396. </AssociationSet>
  11397. <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  11398. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11399. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  11400. </AssociationSet>
  11401. <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
  11402. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  11403. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11404. </AssociationSet>
  11405. <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
  11406. <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
  11407. <End Role="BemsFormula" EntitySet="BemsFormula" />
  11408. </AssociationSet>
  11409. <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
  11410. <End Role="BemsFormula" EntitySet="BemsFormula" />
  11411. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  11412. </AssociationSet>
  11413. <AssociationSet Name="FK__BemsFormulaParameter__BemsMonitoringPoint" Association="Self.FK__BemsFormulaParameter__BemsMonitoringPoint">
  11414. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11415. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  11416. </AssociationSet>
  11417. <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
  11418. <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
  11419. <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
  11420. </AssociationSet>
  11421. <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
  11422. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11423. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  11424. </AssociationSet>
  11425. <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
  11426. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  11427. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11428. </AssociationSet>
  11429. <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
  11430. <End Role="CmBuilding" EntitySet="CmBuilding" />
  11431. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11432. </AssociationSet>
  11433. <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
  11434. <End Role="CmFloor" EntitySet="CmFloor" />
  11435. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11436. </AssociationSet>
  11437. <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
  11438. <End Role="CmZone" EntitySet="CmZone" />
  11439. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11440. </AssociationSet>
  11441. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  11442. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11443. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  11444. </AssociationSet>
  11445. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  11446. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11447. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  11448. </AssociationSet>
  11449. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  11450. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  11451. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  11452. </AssociationSet>
  11453. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
  11454. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  11455. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  11456. </AssociationSet>
  11457. <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
  11458. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11459. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  11460. </AssociationSet>
  11461. <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
  11462. <End Role="CmFile" EntitySet="CmFile" />
  11463. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  11464. </AssociationSet>
  11465. <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
  11466. <End Role="CmUser" EntitySet="CmUser" />
  11467. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  11468. </AssociationSet>
  11469. <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
  11470. <End Role="CmBuilding" EntitySet="CmBuilding" />
  11471. <End Role="CmFloor" EntitySet="CmFloor" />
  11472. </AssociationSet>
  11473. <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
  11474. <End Role="CmBuilding" EntitySet="CmBuilding" />
  11475. <End Role="CmZone" EntitySet="CmZone" />
  11476. </AssociationSet>
  11477. <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
  11478. <End Role="CmBuilding" EntitySet="CmBuilding" />
  11479. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  11480. </AssociationSet>
  11481. <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
  11482. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11483. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  11484. </AssociationSet>
  11485. <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
  11486. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11487. <End Role="FmsLicense" EntitySet="FmsLicense" />
  11488. </AssociationSet>
  11489. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
  11490. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11491. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  11492. </AssociationSet>
  11493. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
  11494. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11495. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  11496. </AssociationSet>
  11497. <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
  11498. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11499. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11500. </AssociationSet>
  11501. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
  11502. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11503. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11504. </AssociationSet>
  11505. <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
  11506. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11507. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11508. </AssociationSet>
  11509. <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
  11510. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11511. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  11512. </AssociationSet>
  11513. <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
  11514. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11515. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11516. </AssociationSet>
  11517. <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
  11518. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11519. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11520. </AssociationSet>
  11521. <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
  11522. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11523. <End Role="CmUser" EntitySet="CmUser" />
  11524. </AssociationSet>
  11525. <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
  11526. <End Role="CmCompanyType" EntitySet="CmCompanyType" />
  11527. <End Role="CmCompany" EntitySet="CmCompany" />
  11528. </AssociationSet>
  11529. <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
  11530. <End Role="CmCompany" EntitySet="CmCompany" />
  11531. <End Role="CmDepartment" EntitySet="CmDepartment" />
  11532. </AssociationSet>
  11533. <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
  11534. <End Role="CmCompany" EntitySet="CmCompany" />
  11535. <End Role="CmUser" EntitySet="CmUser" />
  11536. </AssociationSet>
  11537. <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
  11538. <End Role="CmDepartment" EntitySet="CmDepartment" />
  11539. <End Role="CmUser" EntitySet="CmUser" />
  11540. </AssociationSet>
  11541. <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
  11542. <End Role="CmDepartment" EntitySet="CmDepartment" />
  11543. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11544. </AssociationSet>
  11545. <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
  11546. <End Role="CmFile" EntitySet="CmFile" />
  11547. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  11548. </AssociationSet>
  11549. <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
  11550. <End Role="CmFileCategory" EntitySet="CmFileCategory" />
  11551. <End Role="CmFile" EntitySet="CmFile" />
  11552. </AssociationSet>
  11553. <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
  11554. <End Role="CmFile" EntitySet="CmFile" />
  11555. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  11556. </AssociationSet>
  11557. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
  11558. <End Role="CmFile" EntitySet="CmFile" />
  11559. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11560. </AssociationSet>
  11561. <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
  11562. <End Role="CmFile" EntitySet="CmFile" />
  11563. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  11564. </AssociationSet>
  11565. <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
  11566. <End Role="CmFile" EntitySet="CmFile" />
  11567. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11568. </AssociationSet>
  11569. <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
  11570. <End Role="CmFile" EntitySet="CmFile" />
  11571. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11572. </AssociationSet>
  11573. <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
  11574. <End Role="CmFile" EntitySet="CmFile" />
  11575. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11576. </AssociationSet>
  11577. <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
  11578. <End Role="CmFile" EntitySet="CmFile" />
  11579. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11580. </AssociationSet>
  11581. <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
  11582. <End Role="CmFile" EntitySet="CmFile" />
  11583. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11584. </AssociationSet>
  11585. <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
  11586. <End Role="CmFile" EntitySet="CmFile" />
  11587. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11588. </AssociationSet>
  11589. <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
  11590. <End Role="CmFile" EntitySet="CmFile" />
  11591. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  11592. </AssociationSet>
  11593. <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
  11594. <End Role="CmFloor" EntitySet="CmFloor" />
  11595. <End Role="CmZone" EntitySet="CmZone" />
  11596. </AssociationSet>
  11597. <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
  11598. <End Role="CmFloor" EntitySet="CmFloor" />
  11599. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  11600. </AssociationSet>
  11601. <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
  11602. <End Role="CmPosition" EntitySet="CmPosition" />
  11603. <End Role="CmUser" EntitySet="CmUser" />
  11604. </AssociationSet>
  11605. <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
  11606. <End Role="CmUser" EntitySet="CmUser" />
  11607. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  11608. </AssociationSet>
  11609. <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
  11610. <End Role="CmUser" EntitySet="CmUser" />
  11611. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  11612. </AssociationSet>
  11613. <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
  11614. <End Role="CmUser" EntitySet="CmUser" />
  11615. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11616. </AssociationSet>
  11617. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  11618. <End Role="CmUser" EntitySet="CmUser" />
  11619. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11620. </AssociationSet>
  11621. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  11622. <End Role="CmUser" EntitySet="CmUser" />
  11623. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11624. </AssociationSet>
  11625. <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
  11626. <End Role="CmUser" EntitySet="CmUser" />
  11627. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11628. </AssociationSet>
  11629. <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  11630. <End Role="CmUser" EntitySet="CmUser" />
  11631. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11632. </AssociationSet>
  11633. <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
  11634. <End Role="CmUser" EntitySet="CmUser" />
  11635. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11636. </AssociationSet>
  11637. <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
  11638. <End Role="CmUser" EntitySet="CmUser" />
  11639. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11640. </AssociationSet>
  11641. <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  11642. <End Role="CmUser" EntitySet="CmUser" />
  11643. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11644. </AssociationSet>
  11645. <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
  11646. <End Role="CmUser" EntitySet="CmUser" />
  11647. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11648. </AssociationSet>
  11649. <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  11650. <End Role="CmUser" EntitySet="CmUser" />
  11651. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11652. </AssociationSet>
  11653. <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
  11654. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  11655. <End Role="CmUser" EntitySet="CmUser" />
  11656. </AssociationSet>
  11657. <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
  11658. <End Role="CmUser" EntitySet="CmUser" />
  11659. <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
  11660. </AssociationSet>
  11661. <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
  11662. <End Role="CmUser" EntitySet="CmUser" />
  11663. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  11664. </AssociationSet>
  11665. <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
  11666. <End Role="CmUser" EntitySet="CmUser" />
  11667. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  11668. </AssociationSet>
  11669. <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
  11670. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  11671. <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
  11672. </AssociationSet>
  11673. <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
  11674. <End Role="FmsLicense" EntitySet="FmsLicense" />
  11675. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  11676. </AssociationSet>
  11677. <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
  11678. <End Role="CmZone" EntitySet="CmZone" />
  11679. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  11680. </AssociationSet>
  11681. <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
  11682. <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
  11683. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11684. </AssociationSet>
  11685. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
  11686. <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
  11687. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11688. </AssociationSet>
  11689. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
  11690. <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
  11691. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11692. </AssociationSet>
  11693. <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
  11694. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  11695. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  11696. </AssociationSet>
  11697. <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
  11698. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  11699. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  11700. </AssociationSet>
  11701. <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
  11702. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  11703. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  11704. </AssociationSet>
  11705. <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
  11706. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  11707. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  11708. </AssociationSet>
  11709. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  11710. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  11711. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  11712. </AssociationSet>
  11713. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  11714. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  11715. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  11716. </AssociationSet>
  11717. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  11718. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  11719. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  11720. </AssociationSet>
  11721. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  11722. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  11723. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  11724. </AssociationSet>
  11725. <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  11726. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  11727. <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
  11728. </AssociationSet>
  11729. <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
  11730. <End Role="FmsManualType" EntitySet="FmsManualType" />
  11731. <End Role="FmsManual" EntitySet="FmsManual" />
  11732. </AssociationSet>
  11733. <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
  11734. <End Role="FmsManual" EntitySet="FmsManual" />
  11735. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  11736. </AssociationSet>
  11737. <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  11738. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  11739. <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
  11740. </AssociationSet>
  11741. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  11742. <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
  11743. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11744. </AssociationSet>
  11745. <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  11746. <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
  11747. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11748. </AssociationSet>
  11749. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  11750. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  11751. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11752. </AssociationSet>
  11753. <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  11754. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11755. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11756. </AssociationSet>
  11757. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  11758. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11759. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  11760. </AssociationSet>
  11761. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  11762. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  11763. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11764. </AssociationSet>
  11765. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  11766. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  11767. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  11768. </AssociationSet>
  11769. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
  11770. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  11771. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11772. </AssociationSet>
  11773. <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
  11774. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  11775. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11776. </AssociationSet>
  11777. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
  11778. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  11779. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11780. </AssociationSet>
  11781. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
  11782. <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
  11783. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11784. </AssociationSet>
  11785. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
  11786. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  11787. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11788. </AssociationSet>
  11789. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
  11790. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11791. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11792. </AssociationSet>
  11793. <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
  11794. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11795. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  11796. </AssociationSet>
  11797. <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
  11798. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  11799. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11800. </AssociationSet>
  11801. <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
  11802. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11803. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  11804. </AssociationSet>
  11805. <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
  11806. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  11807. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11808. </AssociationSet>
  11809. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
  11810. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11811. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  11812. </AssociationSet>
  11813. <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
  11814. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11815. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  11816. </AssociationSet>
  11817. <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
  11818. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11819. <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
  11820. </AssociationSet>
  11821. <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
  11822. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11823. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  11824. </AssociationSet>
  11825. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  11826. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  11827. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  11828. </AssociationSet>
  11829. <EntitySet Name="FmsDailyCheckReport" EntityType="iBemsModel.FmsDailyCheckReport" />
  11830. <EntitySet Name="FmsFacilityOperationReport" EntityType="iBemsModel.FmsFacilityOperationReport" />
  11831. <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="iBemsModel.FK_FmsDailyCheckReport_CmUser">
  11832. <End Role="CmUser" EntitySet="CmUser" />
  11833. <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
  11834. </AssociationSet>
  11835. <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="iBemsModel.FK_FmsFacilityOperationReport_CmUser">
  11836. <End Role="CmUser" EntitySet="CmUser" />
  11837. <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
  11838. </AssociationSet>
  11839. <EntitySet Name="FmsBudgetDetail" EntityType="iBemsModel.FmsBudgetDetail" />
  11840. <EntitySet Name="FmsBudgetDetailExecution" EntityType="iBemsModel.FmsBudgetDetailExecution" />
  11841. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudget">
  11842. <End Role="FmsBudget" EntitySet="FmsBudget" />
  11843. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  11844. </AssociationSet>
  11845. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass">
  11846. <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
  11847. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  11848. </AssociationSet>
  11849. <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  11850. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  11851. <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
  11852. </AssociationSet>
  11853. <EntitySet Name="FmsMonthlyReport" EntityType="iBemsModel.FmsMonthlyReport" />
  11854. <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="iBemsModel.FK_FmsMonthlyReport_CmUser">
  11855. <End Role="CmUser" EntitySet="CmUser" />
  11856. <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
  11857. </AssociationSet>
  11858. <EntitySet Name="FmsInvestmentCost" EntityType="iBemsModel.FmsInvestmentCost" />
  11859. <EntitySet Name="CmHolidayWeekend" EntityType="iBemsModel.CmHolidayWeekend" />
  11860. <AssociationSet Name="FK_FmsAccident_CmCompany" Association="iBemsModel.FK_FmsAccident_CmCompany">
  11861. <End Role="CmCompany" EntitySet="CmCompany" />
  11862. <End Role="FmsAccident" EntitySet="FmsAccident" />
  11863. </AssociationSet>
  11864. <EntitySet Name="FmsMaterial" EntityType="iBemsModel.FmsMaterial" />
  11865. <EntitySet Name="FmsMaterialRelease" EntityType="iBemsModel.FmsMaterialRelease" />
  11866. <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="iBemsModel.FK_FmsMaterial_CmBusinessField">
  11867. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11868. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11869. </AssociationSet>
  11870. <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="iBemsModel.FK_FmsMaterialRelease_CmBusinessField">
  11871. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  11872. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  11873. </AssociationSet>
  11874. <AssociationSet Name="FK_FmsMaterial_CmFile" Association="iBemsModel.FK_FmsMaterial_CmFile">
  11875. <End Role="CmFile" EntitySet="CmFile" />
  11876. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11877. </AssociationSet>
  11878. <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="iBemsModel.FK_FmsMaterialRelease_CmUser">
  11879. <End Role="CmUser" EntitySet="CmUser" />
  11880. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  11881. </AssociationSet>
  11882. <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="iBemsModel.FK_FmsMaterialRelease_CmUser1">
  11883. <End Role="CmUser" EntitySet="CmUser" />
  11884. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  11885. </AssociationSet>
  11886. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  11887. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  11888. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11889. </AssociationSet>
  11890. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  11891. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  11892. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11893. </AssociationSet>
  11894. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  11895. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  11896. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11897. </AssociationSet>
  11898. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation">
  11899. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  11900. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11901. </AssociationSet>
  11902. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType">
  11903. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  11904. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11905. </AssociationSet>
  11906. <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany">
  11907. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  11908. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11909. </AssociationSet>
  11910. <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse">
  11911. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  11912. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11913. </AssociationSet>
  11914. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  11915. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11916. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  11917. </AssociationSet>
  11918. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  11919. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11920. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  11921. </AssociationSet>
  11922. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterial">
  11923. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11924. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  11925. </AssociationSet>
  11926. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="iBemsModel.FK_FmsMaterialStored_FmsMaterial">
  11927. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11928. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  11929. </AssociationSet>
  11930. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  11931. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  11932. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  11933. </AssociationSet>
  11934. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  11935. <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
  11936. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  11937. </AssociationSet>
  11938. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  11939. <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
  11940. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  11941. </AssociationSet>
  11942. <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult">
  11943. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11944. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  11945. </AssociationSet>
  11946. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  11947. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  11948. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  11949. </AssociationSet>
  11950. <EntitySet Name="CmPatrolType" EntityType="iBemsModel.CmPatrolType" />
  11951. <EntitySet Name="CmPatrolGroup" EntityType="iBemsModel.CmPatrolGroup" />
  11952. <EntitySet Name="CmPatrolGroupUser" EntityType="iBemsModel.CmPatrolGroupUser" />
  11953. <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup">
  11954. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  11955. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  11956. </AssociationSet>
  11957. <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="iBemsModel.FK_CmPatrolGroupUser_CmUser">
  11958. <End Role="CmUser" EntitySet="CmUser" />
  11959. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  11960. </AssociationSet>
  11961. <EntitySet Name="CmPatrolPos" EntityType="iBemsModel.CmPatrolPos" />
  11962. <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="iBemsModel.FK_CmPatrolPos_CmBuilding">
  11963. <End Role="CmBuilding" EntitySet="CmBuilding" />
  11964. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  11965. </AssociationSet>
  11966. <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="iBemsModel.FK_CmPatrolPos_CmFloor">
  11967. <End Role="CmFloor" EntitySet="CmFloor" />
  11968. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  11969. </AssociationSet>
  11970. <EntitySet Name="CmPatrolCourse" EntityType="iBemsModel.CmPatrolCourse" />
  11971. <EntitySet Name="CmPatrolCoursePos" EntityType="iBemsModel.CmPatrolCoursePos" />
  11972. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse">
  11973. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  11974. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  11975. </AssociationSet>
  11976. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos">
  11977. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  11978. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  11979. </AssociationSet>
  11980. <EntitySet Name="CmPatrolPlan" EntityType="iBemsModel.CmPatrolPlan" />
  11981. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse">
  11982. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  11983. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  11984. </AssociationSet>
  11985. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup">
  11986. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  11987. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  11988. </AssociationSet>
  11989. <EntitySet Name="CmPatrolHistoryPos" EntityType="iBemsModel.CmPatrolHistoryPos" />
  11990. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos">
  11991. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  11992. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  11993. </AssociationSet>
  11994. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType">
  11995. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  11996. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  11997. </AssociationSet>
  11998. <EntitySet Name="BemsPeakInfo" EntityType="iBemsModel.BemsPeakInfo" />
  11999. <EntitySet Name="BemsPeakHistory" EntityType="iBemsModel.BemsPeakHistory" />
  12000. <EntitySet Name="CmPatrolSchedule" EntityType="iBemsModel.CmPatrolSchedule" />
  12001. <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan">
  12002. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  12003. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  12004. </AssociationSet>
  12005. <EntitySet Name="BemsNoticePriceBase" EntityType="iBemsModel.BemsNoticePriceBase" />
  12006. <EntitySet Name="BemsNoticePriceContractType" EntityType="iBemsModel.BemsNoticePriceContractType" />
  12007. <EntitySet Name="BemsNoticePriceDetail" EntityType="iBemsModel.BemsNoticePriceDetail" />
  12008. <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  12009. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  12010. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  12011. </AssociationSet>
  12012. <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  12013. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  12014. <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
  12015. </AssociationSet>
  12016. <EntitySet Name="BemsPeakFacility" EntityType="iBemsModel.BemsPeakFacility" />
  12017. <EntitySet Name="CmSite" EntityType="iBemsModel.CmSite" />
  12018. <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="iBemsModel.FK_BemsPeakHIstory_CmSite">
  12019. <End Role="CmSite" EntitySet="CmSite" />
  12020. <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
  12021. </AssociationSet>
  12022. <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="iBemsModel.FK_BemsPeakInfo_CmSite">
  12023. <End Role="CmSite" EntitySet="CmSite" />
  12024. <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
  12025. </AssociationSet>
  12026. <AssociationSet Name="FK__CmBuildin__SiteI__3BFFE745" Association="iBemsModel.FK__CmBuildin__SiteI__3BFFE745">
  12027. <End Role="CmSite" EntitySet="CmSite" />
  12028. <End Role="CmBuilding" EntitySet="CmBuilding" />
  12029. </AssociationSet>
  12030. <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="iBemsModel.FK__CmCompany__SiteI__336AA144">
  12031. <End Role="CmSite" EntitySet="CmSite" />
  12032. <End Role="CmCompany" EntitySet="CmCompany" />
  12033. </AssociationSet>
  12034. <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="iBemsModel.FK_CmFacilityTempSet_CmSite">
  12035. <End Role="CmSite" EntitySet="CmSite" />
  12036. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  12037. </AssociationSet>
  12038. <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="iBemsModel.FK__CmFile__SiteId__2759D01A">
  12039. <End Role="CmSite" EntitySet="CmSite" />
  12040. <End Role="CmFile" EntitySet="CmFile" />
  12041. </AssociationSet>
  12042. <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5">
  12043. <End Role="CmSite" EntitySet="CmSite" />
  12044. <End Role="CmHoliday" EntitySet="CmHoliday" />
  12045. </AssociationSet>
  12046. <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="iBemsModel.FK__CmHoliday__SiteI__65AC084E">
  12047. <End Role="CmSite" EntitySet="CmSite" />
  12048. <End Role="CmHoliday" EntitySet="CmHoliday" />
  12049. </AssociationSet>
  12050. <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="iBemsModel.FK__CmHoliday__SiteI__10766AC2">
  12051. <End Role="CmSite" EntitySet="CmSite" />
  12052. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  12053. </AssociationSet>
  12054. <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="iBemsModel.FK__CmHoliday__SiteI__66A02C87">
  12055. <End Role="CmSite" EntitySet="CmSite" />
  12056. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  12057. </AssociationSet>
  12058. <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="iBemsModel.FK__CmHoliday__SiteI__0D99FE17">
  12059. <End Role="CmSite" EntitySet="CmSite" />
  12060. <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
  12061. </AssociationSet>
  12062. <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="iBemsModel.FK_CmPatrolCourse_CmSite">
  12063. <End Role="CmSite" EntitySet="CmSite" />
  12064. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  12065. </AssociationSet>
  12066. <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="iBemsModel.FK_CmPatrolCoursePos_CmSite">
  12067. <End Role="CmSite" EntitySet="CmSite" />
  12068. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  12069. </AssociationSet>
  12070. <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="iBemsModel.FK_CmPatrolGroup_CmSite">
  12071. <End Role="CmSite" EntitySet="CmSite" />
  12072. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  12073. </AssociationSet>
  12074. <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="iBemsModel.FK_CmPatrolHistoryPos_CmSite">
  12075. <End Role="CmSite" EntitySet="CmSite" />
  12076. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  12077. </AssociationSet>
  12078. <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="iBemsModel.FK_CmPatrolPlan_CmSite">
  12079. <End Role="CmSite" EntitySet="CmSite" />
  12080. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  12081. </AssociationSet>
  12082. <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="iBemsModel.FK_CmPatrolPos_CmSite">
  12083. <End Role="CmSite" EntitySet="CmSite" />
  12084. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  12085. </AssociationSet>
  12086. <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="iBemsModel.FK_CmPatrolSchedule_CmSite">
  12087. <End Role="CmSite" EntitySet="CmSite" />
  12088. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  12089. </AssociationSet>
  12090. <AssociationSet Name="FK_CmPatrolType_CmSite" Association="iBemsModel.FK_CmPatrolType_CmSite">
  12091. <End Role="CmSite" EntitySet="CmSite" />
  12092. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  12093. </AssociationSet>
  12094. <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="iBemsModel.FK__CmPositio__SiteI__6A70BD6B">
  12095. <End Role="CmSite" EntitySet="CmSite" />
  12096. <End Role="CmPosition" EntitySet="CmPosition" />
  12097. </AssociationSet>
  12098. <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="iBemsModel.FK__CmUserPos__SiteI__44952D46">
  12099. <End Role="CmSite" EntitySet="CmSite" />
  12100. <End Role="CmPosition" EntitySet="CmPosition" />
  12101. </AssociationSet>
  12102. <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="iBemsModel.FK__CmUserGro__SiteI__53D770D6">
  12103. <End Role="CmSite" EntitySet="CmSite" />
  12104. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  12105. </AssociationSet>
  12106. <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D">
  12107. <End Role="CmSite" EntitySet="CmSite" />
  12108. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  12109. </AssociationSet>
  12110. <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476">
  12111. <End Role="CmSite" EntitySet="CmSite" />
  12112. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  12113. </AssociationSet>
  12114. <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF">
  12115. <End Role="CmSite" EntitySet="CmSite" />
  12116. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  12117. </AssociationSet>
  12118. <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="iBemsModel.FK__FmsDrawin__SiteI__6F357288">
  12119. <End Role="CmSite" EntitySet="CmSite" />
  12120. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  12121. </AssociationSet>
  12122. <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="iBemsModel.FK__FmsDrawin__SiteI__702996C1">
  12123. <End Role="CmSite" EntitySet="CmSite" />
  12124. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  12125. </AssociationSet>
  12126. <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="iBemsModel.FK__FmsFacilityCodeClass__CmSite">
  12127. <End Role="CmSite" EntitySet="CmSite" />
  12128. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  12129. </AssociationSet>
  12130. <AssociationSet Name="FK__FmsLicense__CmSite" Association="iBemsModel.FK__FmsLicense__CmSite">
  12131. <End Role="CmSite" EntitySet="CmSite" />
  12132. <End Role="FmsLicense" EntitySet="FmsLicense" />
  12133. </AssociationSet>
  12134. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="iBemsModel.FK__FmsMaterialCarriedForward__CmSite">
  12135. <End Role="CmSite" EntitySet="CmSite" />
  12136. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  12137. </AssociationSet>
  12138. <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="iBemsModel.FK__FmsMaterialCodeClass__CmSite">
  12139. <End Role="CmSite" EntitySet="CmSite" />
  12140. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  12141. </AssociationSet>
  12142. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="iBemsModel.FK__FmsMaterialCodeLocation__CmSite">
  12143. <End Role="CmSite" EntitySet="CmSite" />
  12144. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  12145. </AssociationSet>
  12146. <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="iBemsModel.FK__FmsMaterialCodeType__CmSite">
  12147. <End Role="CmSite" EntitySet="CmSite" />
  12148. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  12149. </AssociationSet>
  12150. <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="iBemsModel.FK__FmsMaterialOrder__CmSite">
  12151. <End Role="CmSite" EntitySet="CmSite" />
  12152. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  12153. </AssociationSet>
  12154. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite">
  12155. <End Role="CmSite" EntitySet="CmSite" />
  12156. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  12157. </AssociationSet>
  12158. <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="iBemsModel.FK__FmsMaterialStored__CmSite">
  12159. <End Role="CmSite" EntitySet="CmSite" />
  12160. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  12161. </AssociationSet>
  12162. <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="iBemsModel.FK__FmsMaterialTradeCompany__CmSite">
  12163. <End Role="CmSite" EntitySet="CmSite" />
  12164. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  12165. </AssociationSet>
  12166. <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="iBemsModel.FK__FmsMaterialWarehouse__CmSite">
  12167. <End Role="CmSite" EntitySet="CmSite" />
  12168. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  12169. </AssociationSet>
  12170. <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite">
  12171. <End Role="CmSite" EntitySet="CmSite" />
  12172. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  12173. </AssociationSet>
  12174. <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite">
  12175. <End Role="CmSite" EntitySet="CmSite" />
  12176. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  12177. </AssociationSet>
  12178. <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="iBemsModel.FK__FmsWorkCodeEmergency__CmSite">
  12179. <End Role="CmSite" EntitySet="CmSite" />
  12180. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  12181. </AssociationSet>
  12182. <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite">
  12183. <End Role="CmSite" EntitySet="CmSite" />
  12184. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  12185. </AssociationSet>
  12186. <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  12187. <End Role="CmSite" EntitySet="CmSite" />
  12188. <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
  12189. </AssociationSet>
  12190. <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="iBemsModel.FK__FmsWorkOrder__CmSite">
  12191. <End Role="CmSite" EntitySet="CmSite" />
  12192. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  12193. </AssociationSet>
  12194. <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="iBemsModel.FK__FmsWorkRequest__CmSite">
  12195. <End Role="CmSite" EntitySet="CmSite" />
  12196. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  12197. </AssociationSet>
  12198. <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="iBemsModel.FK_CmZoneTempHumiSet_CmSite">
  12199. <End Role="CmSite" EntitySet="CmSite" />
  12200. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  12201. </AssociationSet>
  12202. <AssociationSet Name="FK_FmsMaterial_CmSite" Association="iBemsModel.FK_FmsMaterial_CmSite">
  12203. <End Role="CmSite" EntitySet="CmSite" />
  12204. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  12205. </AssociationSet>
  12206. <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="iBemsModel.FK_FmsMaterialRelease_CmSite">
  12207. <End Role="CmSite" EntitySet="CmSite" />
  12208. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  12209. </AssociationSet>
  12210. <EntitySet Name="FmsReport" EntityType="iBemsModel.FmsReport" />
  12211. <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="iBemsModel.FK_FmsReport_CmBusinessField">
  12212. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  12213. <End Role="FmsReport" EntitySet="FmsReport" />
  12214. </AssociationSet>
  12215. <AssociationSet Name="FK_FmsReport_CmFile" Association="iBemsModel.FK_FmsReport_CmFile">
  12216. <End Role="CmFile" EntitySet="CmFile" />
  12217. <End Role="FmsReport" EntitySet="FmsReport" />
  12218. </AssociationSet>
  12219. <AssociationSet Name="FK_FmsReport_CmSite" Association="iBemsModel.FK_FmsReport_CmSite">
  12220. <End Role="CmSite" EntitySet="CmSite" />
  12221. <End Role="FmsReport" EntitySet="FmsReport" />
  12222. </AssociationSet>
  12223. <AssociationSet Name="FK_FmsReport_CmUser" Association="iBemsModel.FK_FmsReport_CmUser">
  12224. <End Role="CmUser" EntitySet="CmUser" />
  12225. <End Role="FmsReport" EntitySet="FmsReport" />
  12226. </AssociationSet>
  12227. <AssociationSet Name="FK_FmsReport_CmUser1" Association="iBemsModel.FK_FmsReport_CmUser1">
  12228. <End Role="CmUser" EntitySet="CmUser" />
  12229. <End Role="FmsReport" EntitySet="FmsReport" />
  12230. </AssociationSet>
  12231. <AssociationSet Name="FK_FmsReport_CmUser2" Association="iBemsModel.FK_FmsReport_CmUser2">
  12232. <End Role="CmUser" EntitySet="CmUser" />
  12233. <End Role="FmsReport" EntitySet="FmsReport" />
  12234. </AssociationSet>
  12235. <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="iBemsModel.CmServiceEnergyCalcMonth" />
  12236. <EntitySet Name="CmServiceEnergyCalcDay" EntityType="iBemsModel.CmServiceEnergyCalcDay" />
  12237. <EntitySet Name="CmPatrolHistory" EntityType="iBemsModel.CmPatrolHistory" />
  12238. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule">
  12239. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  12240. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  12241. </AssociationSet>
  12242. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolType">
  12243. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  12244. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  12245. </AssociationSet>
  12246. <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="iBemsModel.FK_CmPatrolHistory_CmSite">
  12247. <End Role="CmSite" EntitySet="CmSite" />
  12248. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  12249. </AssociationSet>
  12250. <EntitySet Name="CmMenu" EntityType="iBemsModel.CmMenu" />
  12251. <EntitySet Name="BemsChartInfo" EntityType="iBemsModel.BemsChartInfo" />
  12252. <EntitySet Name="BemsReportFormat" EntityType="iBemsModel.BemsReportFormat" />
  12253. <EntitySet Name="FmsWorkSchedule" EntityType="iBemsModel.FmsWorkSchedule" />
  12254. <AssociationSet Name="FK_CmMenu_CmSite" Association="iBemsModel.FK_CmMenu_CmSite">
  12255. <End Role="CmSite" EntitySet="CmSite" />
  12256. <End Role="CmMenu" EntitySet="CmMenu" />
  12257. </AssociationSet>
  12258. <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="iBemsModel.FK_BemsChartInfo_BemsFacilityType">
  12259. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12260. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  12261. </AssociationSet>
  12262. <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="iBemsModel.FK__FmsWorkSchedule__CmBusinessField">
  12263. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  12264. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12265. </AssociationSet>
  12266. <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="iBemsModel.FK__FmsWorkSchedule__CmUser">
  12267. <End Role="CmUser" EntitySet="CmUser" />
  12268. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12269. </AssociationSet>
  12270. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  12271. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  12272. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12273. </AssociationSet>
  12274. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  12275. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  12276. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12277. </AssociationSet>
  12278. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  12279. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  12280. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12281. </AssociationSet>
  12282. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule">
  12283. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12284. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  12285. </AssociationSet>
  12286. <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  12287. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12288. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  12289. </AssociationSet>
  12290. <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile">
  12291. <End Role="CmFile" EntitySet="CmFile" />
  12292. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  12293. </AssociationSet>
  12294. <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile1" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1">
  12295. <End Role="CmFile" EntitySet="CmFile" />
  12296. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  12297. </AssociationSet>
  12298. <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="iBemsModel.FK_BemsChartInfo_CmSite">
  12299. <End Role="CmSite" EntitySet="CmSite" />
  12300. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  12301. </AssociationSet>
  12302. <EntitySet Name="BemsPeopleIncrease" EntityType="iBemsModel.BemsPeopleIncrease" />
  12303. <EntitySet Name="BemsPriceCode" EntityType="iBemsModel.BemsPriceCode" />
  12304. <EntitySet Name="BemsPriceFormula" EntityType="iBemsModel.BemsPriceFormula" />
  12305. <EntitySet Name="BemsPriceMeta" EntityType="iBemsModel.BemsPriceMeta" />
  12306. <EntitySet Name="BemsPriceType" EntityType="iBemsModel.BemsPriceType" />
  12307. <EntitySet Name="BemsRentalRate" EntityType="iBemsModel.BemsRentalRate" />
  12308. <EntitySet Name="BemsSitePrice" EntityType="iBemsModel.BemsSitePrice" />
  12309. <EntitySet Name="BemsSitePriceHistory" EntityType="iBemsModel.BemsSitePriceHistory" />
  12310. <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="iBemsModel.FK_BemsPriceFormula_BemsFormula">
  12311. <End Role="BemsFormula" EntitySet="BemsFormula" />
  12312. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  12313. </AssociationSet>
  12314. <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="iBemsModel.FK_BemsPeopleIncrease_CmSite">
  12315. <End Role="CmSite" EntitySet="CmSite" />
  12316. <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
  12317. </AssociationSet>
  12318. <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="iBemsModel.FK_BemsSitePrice_BemsPriceCode">
  12319. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  12320. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  12321. </AssociationSet>
  12322. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode">
  12323. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  12324. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  12325. </AssociationSet>
  12326. <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="iBemsModel.FK_BemsPriceFormula_BemsPriceType">
  12327. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12328. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  12329. </AssociationSet>
  12330. <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="iBemsModel.FK_BemsPriceMeta_BemsPriceType">
  12331. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12332. <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
  12333. </AssociationSet>
  12334. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType">
  12335. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12336. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  12337. </AssociationSet>
  12338. <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="iBemsModel.FK_BemsRentalRate_CmSite">
  12339. <End Role="CmSite" EntitySet="CmSite" />
  12340. <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
  12341. </AssociationSet>
  12342. <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="iBemsModel.FK_BemsSitePrice_CmSite1">
  12343. <End Role="CmSite" EntitySet="CmSite" />
  12344. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  12345. </AssociationSet>
  12346. <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="iBemsModel.FK_BemsSitePriceHistory_CmSite">
  12347. <End Role="CmSite" EntitySet="CmSite" />
  12348. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  12349. </AssociationSet>
  12350. <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="iBemsModel.FK_BemsSitePrice_BemsPriceType">
  12351. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12352. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  12353. </AssociationSet>
  12354. <EntitySet Name="BemsMonitoringPointConfig" EntityType="iBemsModel.BemsMonitoringPointConfig" />
  12355. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1">
  12356. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12357. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  12358. </AssociationSet>
  12359. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  12360. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  12361. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  12362. </AssociationSet>
  12363. <EntitySet Name="BemsAlarmSetting" EntityType="iBemsModel.BemsAlarmSetting" />
  12364. <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType">
  12365. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12366. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  12367. </AssociationSet>
  12368. <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="iBemsModel.FK_BemsAlarmSetting_CmSite1">
  12369. <End Role="CmSite" EntitySet="CmSite" />
  12370. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  12371. </AssociationSet>
  12372. <EntitySet Name="BemsAlarmLog" EntityType="iBemsModel.BemsAlarmLog" />
  12373. <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting">
  12374. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  12375. <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
  12376. </AssociationSet>
  12377. <EntitySet Name="BemsAlarmGroup" EntityType="iBemsModel.BemsAlarmGroup" />
  12378. <EntitySet Name="BemsAlarmGroupUser" EntityType="iBemsModel.BemsAlarmGroupUser" />
  12379. <EntitySet Name="BemsEnergyCost" EntityType="iBemsModel.BemsEnergyCost" />
  12380. <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="iBemsModel.BemsEnergyConfigPercentMonth" />
  12381. <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="iBemsModel.BemsEnergyConfigPercentWeek" />
  12382. <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6">
  12383. <End Role="CmSite" EntitySet="CmSite" />
  12384. <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
  12385. </AssociationSet>
  12386. <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1">
  12387. <End Role="CmSite" EntitySet="CmSite" />
  12388. <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
  12389. </AssociationSet>
  12390. <EntitySet Name="BemsEnergyDaily" EntityType="iBemsModel.BemsEnergyDaily" />
  12391. <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="iBemsModel.FK__BemsEnergyDaily__BemsServiceType">
  12392. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  12393. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  12394. </AssociationSet>
  12395. <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="iBemsModel.FK__BemsEnergyDaily__CmBuilding">
  12396. <End Role="CmBuilding" EntitySet="CmBuilding" />
  12397. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  12398. </AssociationSet>
  12399. <EntitySet Name="BemsEnergyDailyRegression" EntityType="iBemsModel.BemsEnergyDailyRegression" />
  12400. <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="iBemsModel.FK_BemsEnergyDailyRegression_CmSite">
  12401. <End Role="CmSite" EntitySet="CmSite" />
  12402. <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
  12403. </AssociationSet>
  12404. <EntitySet Name="WeatherDongNaeForecast" EntityType="iBemsModel.WeatherDongNaeForecast" />
  12405. <EntitySet Name="FmsEquipmentRentInfo" EntityType="iBemsModel.FmsEquipmentRentInfo" />
  12406. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser">
  12407. <End Role="CmUser" EntitySet="CmUser" />
  12408. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  12409. </AssociationSet>
  12410. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1">
  12411. <End Role="CmUser" EntitySet="CmUser" />
  12412. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  12413. </AssociationSet>
  12414. <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  12415. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  12416. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  12417. </AssociationSet>
  12418. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  12419. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  12420. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  12421. </AssociationSet>
  12422. <EntitySet Name="BemsControlAHUTempConfig" EntityType="iBemsModel.BemsControlAHUTempConfig" />
  12423. <EntitySet Name="BemsFuelType" EntityType="iBemsModel.BemsFuelType" />
  12424. <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="iBemsModel.FK__BemsEnergyDaily__BemsFuelType">
  12425. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12426. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  12427. </AssociationSet>
  12428. <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="iBemsModel.FK__BemsFactorCo2__BemsFuelType">
  12429. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12430. <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
  12431. </AssociationSet>
  12432. <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="iBemsModel.FK__BemsFactorToe__BemsFuelType">
  12433. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12434. <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
  12435. </AssociationSet>
  12436. <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType">
  12437. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12438. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  12439. </AssociationSet>
  12440. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType">
  12441. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12442. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  12443. </AssociationSet>
  12444. <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType">
  12445. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12446. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  12447. </AssociationSet>
  12448. <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="iBemsModel.FK_BemsPriceCode_BemsFuelType">
  12449. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12450. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  12451. </AssociationSet>
  12452. <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="iBemsModel.FK_BemsPriceType_BemsFuelType1">
  12453. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12454. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  12455. </AssociationSet>
  12456. <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="iBemsModel.FK_BemsSitePrice_BemsFuelType">
  12457. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12458. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  12459. </AssociationSet>
  12460. <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType">
  12461. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12462. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  12463. </AssociationSet>
  12464. <EntitySet Name="CmFacility" EntityType="iBemsModel.CmFacility" />
  12465. <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="iBemsModel.FK_BemsAlarmSetting_CmFacility">
  12466. <End Role="CmFacility" EntitySet="CmFacility" />
  12467. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  12468. </AssociationSet>
  12469. <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="iBemsModel.FK_BemsEnergyCost_CmFacility">
  12470. <End Role="CmFacility" EntitySet="CmFacility" />
  12471. <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
  12472. </AssociationSet>
  12473. <AssociationSet Name="FK__CmFacility__BemsFacilityType" Association="iBemsModel.FK__CmFacility__BemsFacilityType">
  12474. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12475. <End Role="CmFacility" EntitySet="CmFacility" />
  12476. </AssociationSet>
  12477. <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="iBemsModel.FK_BemsFormulaParameter_CmFacility">
  12478. <End Role="CmFacility" EntitySet="CmFacility" />
  12479. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  12480. </AssociationSet>
  12481. <AssociationSet Name="FK_CmFacility_BemsFuelType" Association="iBemsModel.FK_CmFacility_BemsFuelType">
  12482. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  12483. <End Role="CmFacility" EntitySet="CmFacility" />
  12484. </AssociationSet>
  12485. <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="iBemsModel.FK_BemsMonitoringPoint_CmFacility">
  12486. <End Role="CmFacility" EntitySet="CmFacility" />
  12487. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  12488. </AssociationSet>
  12489. <AssociationSet Name="FK_CmFacility_BemsNoticePriceContractType" Association="iBemsModel.FK_CmFacility_BemsNoticePriceContractType">
  12490. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  12491. <End Role="CmFacility" EntitySet="CmFacility" />
  12492. </AssociationSet>
  12493. <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="iBemsModel.FK_BemsPeakFacility_CmFacility">
  12494. <End Role="CmFacility" EntitySet="CmFacility" />
  12495. <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
  12496. </AssociationSet>
  12497. <AssociationSet Name="FK__CmFacility__CmBuilding" Association="iBemsModel.FK__CmFacility__CmBuilding">
  12498. <End Role="CmBuilding" EntitySet="CmBuilding" />
  12499. <End Role="CmFacility" EntitySet="CmFacility" />
  12500. </AssociationSet>
  12501. <AssociationSet Name="FK__CmFacility__74444068" Association="iBemsModel.FK__CmFacility__74444068">
  12502. <End Role="CmFloor" EntitySet="CmFloor" />
  12503. <End Role="CmFacility" EntitySet="CmFacility" />
  12504. </AssociationSet>
  12505. <AssociationSet Name="FK__CmFacility__753864A1" Association="iBemsModel.FK__CmFacility__753864A1">
  12506. <End Role="CmUser" EntitySet="CmUser" />
  12507. <End Role="CmFacility" EntitySet="CmFacility" />
  12508. </AssociationSet>
  12509. <AssociationSet Name="FK__CmFacility__762C88DA" Association="iBemsModel.FK__CmFacility__762C88DA">
  12510. <End Role="CmUser" EntitySet="CmUser" />
  12511. <End Role="CmFacility" EntitySet="CmFacility" />
  12512. </AssociationSet>
  12513. <AssociationSet Name="FK__CmFacility__CmFacility" Association="iBemsModel.FK__CmFacility__CmFacility">
  12514. <End Role="CmFacility" EntitySet="CmFacility" />
  12515. <End Role="CmFacility1" EntitySet="CmFacility" />
  12516. </AssociationSet>
  12517. <AssociationSet Name="FK__CmFacility__CmFile" Association="iBemsModel.FK__CmFacility__CmFile">
  12518. <End Role="CmFile" EntitySet="CmFile" />
  12519. <End Role="CmFacility" EntitySet="CmFacility" />
  12520. </AssociationSet>
  12521. <AssociationSet Name="FK__CmFacility__CmZone" Association="iBemsModel.FK__CmFacility__CmZone">
  12522. <End Role="CmZone" EntitySet="CmZone" />
  12523. <End Role="CmFacility" EntitySet="CmFacility" />
  12524. </AssociationSet>
  12525. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsFirst" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst">
  12526. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  12527. <End Role="CmFacility" EntitySet="CmFacility" />
  12528. </AssociationSet>
  12529. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsSecond" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond">
  12530. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  12531. <End Role="CmFacility" EntitySet="CmFacility" />
  12532. </AssociationSet>
  12533. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsThird" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird">
  12534. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  12535. <End Role="CmFacility" EntitySet="CmFacility" />
  12536. </AssociationSet>
  12537. <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="iBemsModel.FK__CmFacilityFile__7720AD13">
  12538. <End Role="CmFacility" EntitySet="CmFacility" />
  12539. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  12540. </AssociationSet>
  12541. <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="iBemsModel.FK__CmFacilityManual__79FD19BE">
  12542. <End Role="CmFacility" EntitySet="CmFacility" />
  12543. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  12544. </AssociationSet>
  12545. <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="iBemsModel.FK__FmsFacilityOpera__725BF7F6">
  12546. <End Role="CmFacility" EntitySet="CmFacility" />
  12547. <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
  12548. </AssociationSet>
  12549. <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility">
  12550. <End Role="CmFacility" EntitySet="CmFacility" />
  12551. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  12552. </AssociationSet>
  12553. <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="iBemsModel.FK__FmsWorkResultToFacility__CmFacility">
  12554. <End Role="CmFacility" EntitySet="CmFacility" />
  12555. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  12556. </AssociationSet>
  12557. <AssociationSet Name="FK_CmFacility_CmUser" Association="iBemsModel.FK_CmFacility_CmUser">
  12558. <End Role="CmUser" EntitySet="CmUser" />
  12559. <End Role="CmFacility" EntitySet="CmFacility" />
  12560. </AssociationSet>
  12561. <AssociationSet Name="FK_CmFacility_CmUser1" Association="iBemsModel.FK_CmFacility_CmUser1">
  12562. <End Role="CmUser" EntitySet="CmUser" />
  12563. <End Role="CmFacility" EntitySet="CmFacility" />
  12564. </AssociationSet>
  12565. <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="iBemsModel.FK_CmFacilityTempSet_CmFacility">
  12566. <End Role="CmFacility" EntitySet="CmFacility" />
  12567. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  12568. </AssociationSet>
  12569. <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility">
  12570. <End Role="CmFacility" EntitySet="CmFacility" />
  12571. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  12572. </AssociationSet>
  12573. <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility">
  12574. <End Role="CmFacility" EntitySet="CmFacility" />
  12575. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  12576. </AssociationSet>
  12577. <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility">
  12578. <End Role="CmFacility" EntitySet="CmFacility" />
  12579. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  12580. </AssociationSet>
  12581. <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="iBemsModel.BemsMonitoringPointHistory15minRawData" />
  12582. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  12583. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  12584. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  12585. </AssociationSet>
  12586. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  12587. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  12588. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  12589. </AssociationSet>
  12590. <EntitySet Name="FmsDailyReport" EntityType="iBemsModel.FmsDailyReport" />
  12591. <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="iBemsModel.FK_FmsDailyReport_CmBusinessField">
  12592. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  12593. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  12594. </AssociationSet>
  12595. <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="iBemsModel.FK_FmsDailyReport_CmUser">
  12596. <End Role="CmUser" EntitySet="CmUser" />
  12597. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  12598. </AssociationSet>
  12599. <EntitySet Name="BemsPeakHistoryDaily" EntityType="iBemsModel.BemsPeakHistoryDaily" />
  12600. <EntitySet Name="FmsEquipment" EntityType="iBemsModel.FmsEquipment" />
  12601. <AssociationSet Name="FK_FmsEquipment_CmUser" Association="iBemsModel.FK_FmsEquipment_CmUser">
  12602. <End Role="CmUser" EntitySet="CmUser" />
  12603. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  12604. </AssociationSet>
  12605. <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType">
  12606. <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
  12607. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  12608. </AssociationSet>
  12609. <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse">
  12610. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  12611. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  12612. </AssociationSet>
  12613. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment">
  12614. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  12615. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  12616. </AssociationSet>
  12617. <EntitySet Name="CmAlarmAdmin" EntityType="iBemsModel.CmAlarmAdmin" />
  12618. <EntitySet Name="BemsFloorStatus" EntityType="iBemsModel.BemsFloorStatus" />
  12619. <EntitySet Name="BemsReportHistory" EntityType="iBemsModel.BemsReportHistory" />
  12620. <EntitySet Name="CmPartner" EntityType="iBemsModel.CmPartner" />
  12621. <EntitySet Name="CmPartnerType" EntityType="iBemsModel.CmPartnerType" />
  12622. <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="iBemsModel.FK_CmPartnerType_CmPartner">
  12623. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  12624. <End Role="CmPartner" EntitySet="CmPartner" />
  12625. </AssociationSet>
  12626. <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="iBemsModel.FK_FmsConstruction_CmPartner">
  12627. <End Role="CmPartner" EntitySet="CmPartner" />
  12628. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  12629. </AssociationSet>
  12630. <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="iBemsModel.FK_FmsWorkRequest_CmPartner">
  12631. <End Role="CmPartner" EntitySet="CmPartner" />
  12632. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  12633. </AssociationSet>
  12634. <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="iBemsModel.FK_FmsWorkSchedule_CmPartner">
  12635. <End Role="CmPartner" EntitySet="CmPartner" />
  12636. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  12637. </AssociationSet>
  12638. <EntitySet Name="FmsContract" EntityType="iBemsModel.FmsContract" />
  12639. <AssociationSet Name="FK_FmsContract_CmPartner" Association="iBemsModel.FK_FmsContract_CmPartner">
  12640. <End Role="CmPartner" EntitySet="CmPartner" />
  12641. <End Role="FmsContract" EntitySet="FmsContract" />
  12642. </AssociationSet>
  12643. <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="iBemsModel.FK_FmsContract_CmPartnerType">
  12644. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  12645. <End Role="FmsContract" EntitySet="FmsContract" />
  12646. </AssociationSet>
  12647. <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="iBemsModel.FK_FmsContract_FmsContractClass">
  12648. <End Role="FmsContractClass" EntitySet="FmsContractClass" />
  12649. <End Role="FmsContract" EntitySet="FmsContract" />
  12650. </AssociationSet>
  12651. <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="iBemsModel.FK_FmsContract_FmsContractMethod">
  12652. <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
  12653. <End Role="FmsContract" EntitySet="FmsContract" />
  12654. </AssociationSet>
  12655. <AssociationSet Name="FK_FmsContract_FmsContractType" Association="iBemsModel.FK_FmsContract_FmsContractType">
  12656. <End Role="FmsContractType" EntitySet="FmsContractType" />
  12657. <End Role="FmsContract" EntitySet="FmsContract" />
  12658. </AssociationSet>
  12659. <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="iBemsModel.FK_FmsContract_FmsPaymentType">
  12660. <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
  12661. <End Role="FmsContract" EntitySet="FmsContract" />
  12662. </AssociationSet>
  12663. <EntitySet Name="BemsFloorPlan" EntityType="iBemsModel.BemsFloorPlan" />
  12664. </EntityContainer>
  12665. <EntityType Name="FmsDailyCheckReport">
  12666. <Key>
  12667. <PropertyRef Name="SiteId" />
  12668. <PropertyRef Name="DailyCheckReportId" />
  12669. </Key>
  12670. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12671. <Property Name="DailyCheckReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12672. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  12673. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  12674. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  12675. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  12676. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="FmsDailyCheckReport" ToRole="CmUser" />
  12677. </EntityType>
  12678. <EntityType Name="FmsFacilityOperationReport">
  12679. <Key>
  12680. <PropertyRef Name="SiteId" />
  12681. <PropertyRef Name="FacilityOperationReportId" />
  12682. </Key>
  12683. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12684. <Property Name="FacilityOperationReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12685. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  12686. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  12687. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  12688. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  12689. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="FmsFacilityOperationReport" ToRole="CmUser" />
  12690. </EntityType>
  12691. <Association Name="FK_FmsDailyCheckReport_CmUser">
  12692. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  12693. <End Type="iBemsModel.FmsDailyCheckReport" Role="FmsDailyCheckReport" Multiplicity="*" />
  12694. <ReferentialConstraint>
  12695. <Principal Role="CmUser">
  12696. <PropertyRef Name="SiteId" />
  12697. <PropertyRef Name="UserId" />
  12698. </Principal>
  12699. <Dependent Role="FmsDailyCheckReport">
  12700. <PropertyRef Name="SiteId" />
  12701. <PropertyRef Name="RegisterUserId" />
  12702. </Dependent>
  12703. </ReferentialConstraint>
  12704. </Association>
  12705. <Association Name="FK_FmsFacilityOperationReport_CmUser">
  12706. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  12707. <End Type="iBemsModel.FmsFacilityOperationReport" Role="FmsFacilityOperationReport" Multiplicity="*" />
  12708. <ReferentialConstraint>
  12709. <Principal Role="CmUser">
  12710. <PropertyRef Name="SiteId" />
  12711. <PropertyRef Name="UserId" />
  12712. </Principal>
  12713. <Dependent Role="FmsFacilityOperationReport">
  12714. <PropertyRef Name="SiteId" />
  12715. <PropertyRef Name="RegisterUserId" />
  12716. </Dependent>
  12717. </ReferentialConstraint>
  12718. </Association>
  12719. <EntityType Name="FmsBudgetDetail">
  12720. <Key>
  12721. <PropertyRef Name="SiteId" />
  12722. <PropertyRef Name="Year" />
  12723. <PropertyRef Name="BudgetClassId" />
  12724. <PropertyRef Name="ParentBudgetClassId" />
  12725. </Key>
  12726. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12727. <Property Name="Year" Type="Int32" Nullable="false" />
  12728. <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
  12729. <Property Name="BudgetSeq" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="true" />
  12730. <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
  12731. <Property Name="Depth" Type="Int32" Nullable="false" />
  12732. <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  12733. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  12734. <Property Name="IsUse" Type="Boolean" />
  12735. <Property Name="YearlyBudget" Type="Double" Nullable="false" />
  12736. <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
  12737. <NavigationProperty Name="FmsBudget" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudgetDetail" ToRole="FmsBudget" />
  12738. <NavigationProperty Name="FmsBudgetCodeClass" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetDetail" ToRole="FmsBudgetCodeClass" />
  12739. <NavigationProperty Name="FmsBudgetDetailExecution" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetail" ToRole="FmsBudgetDetailExecution" />
  12740. <Property Name="RootBudgetClassId" Type="Int32" />
  12741. </EntityType>
  12742. <EntityType Name="FmsBudgetDetailExecution">
  12743. <Key>
  12744. <PropertyRef Name="SiteId" />
  12745. <PropertyRef Name="Year" />
  12746. <PropertyRef Name="BudgetClassId" />
  12747. <PropertyRef Name="ParentBudgetClassId" />
  12748. <PropertyRef Name="Month" />
  12749. </Key>
  12750. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12751. <Property Name="Year" Type="Int32" Nullable="false" />
  12752. <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
  12753. <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
  12754. <Property Name="MonthlyExecution" Type="Double" Nullable="false" />
  12755. <Property Name="Month" Type="Int32" Nullable="false" />
  12756. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetailExecution" ToRole="FmsBudgetDetail" />
  12757. <Property Name="YearlyBudget" Type="Double" Nullable="false" />
  12758. <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
  12759. <Property Name="YearlyExecution" Type="Double" Nullable="false" />
  12760. <Property Name="RootBudgetClassId" Type="Int32" />
  12761. </EntityType>
  12762. <Association Name="FK_FmsBudgetDetail_FmsBudget">
  12763. <End Type="iBemsModel.FmsBudget" Role="FmsBudget" Multiplicity="1">
  12764. <OnDelete Action="Cascade" />
  12765. </End>
  12766. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
  12767. <ReferentialConstraint>
  12768. <Principal Role="FmsBudget">
  12769. <PropertyRef Name="SiteId" />
  12770. <PropertyRef Name="Year" />
  12771. </Principal>
  12772. <Dependent Role="FmsBudgetDetail">
  12773. <PropertyRef Name="SiteId" />
  12774. <PropertyRef Name="Year" />
  12775. </Dependent>
  12776. </ReferentialConstraint>
  12777. </Association>
  12778. <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
  12779. <End Type="iBemsModel.FmsBudgetCodeClass" Role="FmsBudgetCodeClass" Multiplicity="1" />
  12780. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
  12781. <ReferentialConstraint>
  12782. <Principal Role="FmsBudgetCodeClass">
  12783. <PropertyRef Name="SiteId" />
  12784. <PropertyRef Name="BudgetClassId" />
  12785. </Principal>
  12786. <Dependent Role="FmsBudgetDetail">
  12787. <PropertyRef Name="SiteId" />
  12788. <PropertyRef Name="BudgetClassId" />
  12789. </Dependent>
  12790. </ReferentialConstraint>
  12791. </Association>
  12792. <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  12793. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="1" />
  12794. <End Type="iBemsModel.FmsBudgetDetailExecution" Role="FmsBudgetDetailExecution" Multiplicity="*" />
  12795. <ReferentialConstraint>
  12796. <Principal Role="FmsBudgetDetail">
  12797. <PropertyRef Name="SiteId" />
  12798. <PropertyRef Name="Year" />
  12799. <PropertyRef Name="BudgetClassId" />
  12800. <PropertyRef Name="ParentBudgetClassId" />
  12801. </Principal>
  12802. <Dependent Role="FmsBudgetDetailExecution">
  12803. <PropertyRef Name="SiteId" />
  12804. <PropertyRef Name="Year" />
  12805. <PropertyRef Name="BudgetClassId" />
  12806. <PropertyRef Name="ParentBudgetClassId" />
  12807. </Dependent>
  12808. </ReferentialConstraint>
  12809. </Association>
  12810. <EntityType Name="FmsMonthlyReport">
  12811. <Key>
  12812. <PropertyRef Name="SiteId" />
  12813. <PropertyRef Name="MonthlyReportId" />
  12814. </Key>
  12815. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12816. <Property Name="MonthlyReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12817. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  12818. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  12819. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  12820. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  12821. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="FmsMonthlyReport" ToRole="CmUser" />
  12822. </EntityType>
  12823. <Association Name="FK_FmsMonthlyReport_CmUser">
  12824. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  12825. <End Type="iBemsModel.FmsMonthlyReport" Role="FmsMonthlyReport" Multiplicity="*" />
  12826. <ReferentialConstraint>
  12827. <Principal Role="CmUser">
  12828. <PropertyRef Name="SiteId" />
  12829. <PropertyRef Name="UserId" />
  12830. </Principal>
  12831. <Dependent Role="FmsMonthlyReport">
  12832. <PropertyRef Name="SiteId" />
  12833. <PropertyRef Name="RegisterUserId" />
  12834. </Dependent>
  12835. </ReferentialConstraint>
  12836. </Association>
  12837. <EntityType Name="FmsInvestmentCost">
  12838. <Key>
  12839. <PropertyRef Name="SiteId" />
  12840. <PropertyRef Name="InsvestmentCostId" />
  12841. </Key>
  12842. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12843. <Property Name="InsvestmentCostId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12844. <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  12845. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  12846. <Property Name="InsvestmentCost" Type="Double" Nullable="false" />
  12847. </EntityType>
  12848. <EntityType Name="CmHolidayWeekend">
  12849. <Key>
  12850. <PropertyRef Name="SiteId" />
  12851. </Key>
  12852. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12853. <Property Name="Saturday" Type="Boolean" Nullable="false" />
  12854. <Property Name="Sunday" Type="Boolean" Nullable="false" />
  12855. <Property Name="IsUse" Type="Boolean" />
  12856. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmHolidayWeekend" ToRole="CmSite" />
  12857. </EntityType>
  12858. <Association Name="FK_FmsAccident_CmCompany">
  12859. <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="0..1" />
  12860. <End Type="iBemsModel.FmsAccident" Role="FmsAccident" Multiplicity="*" />
  12861. <ReferentialConstraint>
  12862. <Principal Role="CmCompany">
  12863. <PropertyRef Name="SiteId" />
  12864. <PropertyRef Name="CompanyId" />
  12865. </Principal>
  12866. <Dependent Role="FmsAccident">
  12867. <PropertyRef Name="SiteId" />
  12868. <PropertyRef Name="CompanyId" />
  12869. </Dependent>
  12870. </ReferentialConstraint>
  12871. </Association>
  12872. <EntityType Name="FmsMaterial">
  12873. <Key>
  12874. <PropertyRef Name="SiteId" />
  12875. <PropertyRef Name="MaterialId" />
  12876. </Key>
  12877. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12878. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  12879. <Property Name="MaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12880. <Property Name="MaterialCode" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  12881. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  12882. <Property Name="FirstClassId" Type="Int32" />
  12883. <Property Name="SecondClassId" Type="Int32" />
  12884. <Property Name="ThirdClassId" Type="Int32" />
  12885. <Property Name="LocationId" Type="Int32" />
  12886. <Property Name="MaterialTypeId" Type="Int32" />
  12887. <Property Name="WarehouseId" Type="Int32" />
  12888. <Property Name="TradeCompanyId" Type="Int32" />
  12889. <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  12890. <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
  12891. <Property Name="DurableYears" Type="Int16" />
  12892. <Property Name="ReasonableStockCount" Type="Int16" />
  12893. <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  12894. <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  12895. <Property Name="FinalPrice" Type="Int32" />
  12896. <Property Name="ImageFileId" Type="Int32" />
  12897. <Property Name="Note" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  12898. <Property Name="IsDiscontinued" Type="Boolean" />
  12899. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  12900. <Property Name="FinalStockCount" Type="Int32" Nullable="false" />
  12901. <Property Name="FinalTotalStockAmount" Type="Int32" Nullable="false" />
  12902. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="FmsMaterial" ToRole="CmBusinessField" />
  12903. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="FmsMaterial" ToRole="CmFile" />
  12904. <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  12905. <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  12906. <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  12907. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterial" ToRole="FmsMaterialCodeLocation" />
  12908. <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterial" ToRole="FmsMaterialCodeType" />
  12909. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterial" ToRole="FmsMaterialTradeCompany" />
  12910. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterial" ToRole="FmsMaterialWarehouse" />
  12911. <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseOrderMaterial" />
  12912. <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseRequestMaterial" />
  12913. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialRelease" />
  12914. <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialStored" />
  12915. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsWorkResultCheckItemMaterial" />
  12916. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="FmsMaterial" ToRole="CmSite" />
  12917. </EntityType>
  12918. <EntityType Name="FmsMaterialRelease">
  12919. <Key>
  12920. <PropertyRef Name="SiteId" />
  12921. <PropertyRef Name="MaterialReleaseId" />
  12922. </Key>
  12923. <Property Name="SiteId" Type="Int32" Nullable="false" />
  12924. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  12925. <Property Name="ReleaseDate" Type="DateTime" Nullable="false" Precision="3" />
  12926. <Property Name="MaterialReleaseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  12927. <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
  12928. <Property Name="WorkRequestId" Type="Int32" />
  12929. <Property Name="WarehouseId" Type="Int32" />
  12930. <Property Name="MaterialId" Type="Int32" />
  12931. <Property Name="MaterialCount" Type="Int32" />
  12932. <Property Name="ReleaseTotalCost" Type="Int32" />
  12933. <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
  12934. <Property Name="AdjustmentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  12935. <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  12936. <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
  12937. <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
  12938. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  12939. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="FmsMaterialRelease" ToRole="CmBusinessField" />
  12940. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="FmsMaterialRelease" ToRole="CmUser" />
  12941. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="FmsMaterialRelease" ToRole="CmUser" />
  12942. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterialRelease" ToRole="FmsMaterial" />
  12943. <NavigationProperty Name="FmsMaterialCodeAdjustmentType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeAdjustmentType" />
  12944. <NavigationProperty Name="FmsMaterialCodeReleaseType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeReleaseType" />
  12945. <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsMaterialRelease" ToRole="FmsWorkResult" />
  12946. <Property Name="StockCountByPoint" Type="Int32" />
  12947. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="FmsMaterialRelease" ToRole="CmSite" />
  12948. </EntityType>
  12949. <Association Name="FK_FmsMaterial_CmBusinessField">
  12950. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  12951. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  12952. <ReferentialConstraint>
  12953. <Principal Role="CmBusinessField">
  12954. <PropertyRef Name="SiteId" />
  12955. <PropertyRef Name="BusinessFieldId" />
  12956. </Principal>
  12957. <Dependent Role="FmsMaterial">
  12958. <PropertyRef Name="SiteId" />
  12959. <PropertyRef Name="BusinessFieldId" />
  12960. </Dependent>
  12961. </ReferentialConstraint>
  12962. </Association>
  12963. <Association Name="FK_FmsMaterialRelease_CmBusinessField">
  12964. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  12965. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  12966. <ReferentialConstraint>
  12967. <Principal Role="CmBusinessField">
  12968. <PropertyRef Name="SiteId" />
  12969. <PropertyRef Name="BusinessFieldId" />
  12970. </Principal>
  12971. <Dependent Role="FmsMaterialRelease">
  12972. <PropertyRef Name="SiteId" />
  12973. <PropertyRef Name="BusinessFieldId" />
  12974. </Dependent>
  12975. </ReferentialConstraint>
  12976. </Association>
  12977. <Association Name="FK_FmsMaterial_CmFile">
  12978. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  12979. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  12980. <ReferentialConstraint>
  12981. <Principal Role="CmFile">
  12982. <PropertyRef Name="SiteId" />
  12983. <PropertyRef Name="FileId" />
  12984. </Principal>
  12985. <Dependent Role="FmsMaterial">
  12986. <PropertyRef Name="SiteId" />
  12987. <PropertyRef Name="ImageFileId" />
  12988. </Dependent>
  12989. </ReferentialConstraint>
  12990. </Association>
  12991. <Association Name="FK_FmsMaterialRelease_CmUser">
  12992. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  12993. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  12994. <ReferentialConstraint>
  12995. <Principal Role="CmUser">
  12996. <PropertyRef Name="SiteId" />
  12997. <PropertyRef Name="UserId" />
  12998. </Principal>
  12999. <Dependent Role="FmsMaterialRelease">
  13000. <PropertyRef Name="SiteId" />
  13001. <PropertyRef Name="ConfirmedUserId" />
  13002. </Dependent>
  13003. </ReferentialConstraint>
  13004. </Association>
  13005. <Association Name="FK_FmsMaterialRelease_CmUser1">
  13006. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  13007. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13008. <ReferentialConstraint>
  13009. <Principal Role="CmUser">
  13010. <PropertyRef Name="SiteId" />
  13011. <PropertyRef Name="UserId" />
  13012. </Principal>
  13013. <Dependent Role="FmsMaterialRelease">
  13014. <PropertyRef Name="SiteId" />
  13015. <PropertyRef Name="AdjustmentUserId" />
  13016. </Dependent>
  13017. </ReferentialConstraint>
  13018. </Association>
  13019. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  13020. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  13021. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13022. <ReferentialConstraint>
  13023. <Principal Role="FmsMaterialCodeClass">
  13024. <PropertyRef Name="SiteId" />
  13025. <PropertyRef Name="MaterialClassId" />
  13026. </Principal>
  13027. <Dependent Role="FmsMaterial">
  13028. <PropertyRef Name="SiteId" />
  13029. <PropertyRef Name="FirstClassId" />
  13030. </Dependent>
  13031. </ReferentialConstraint>
  13032. </Association>
  13033. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  13034. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  13035. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13036. <ReferentialConstraint>
  13037. <Principal Role="FmsMaterialCodeClass">
  13038. <PropertyRef Name="SiteId" />
  13039. <PropertyRef Name="MaterialClassId" />
  13040. </Principal>
  13041. <Dependent Role="FmsMaterial">
  13042. <PropertyRef Name="SiteId" />
  13043. <PropertyRef Name="SecondClassId" />
  13044. </Dependent>
  13045. </ReferentialConstraint>
  13046. </Association>
  13047. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  13048. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  13049. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13050. <ReferentialConstraint>
  13051. <Principal Role="FmsMaterialCodeClass">
  13052. <PropertyRef Name="SiteId" />
  13053. <PropertyRef Name="MaterialClassId" />
  13054. </Principal>
  13055. <Dependent Role="FmsMaterial">
  13056. <PropertyRef Name="SiteId" />
  13057. <PropertyRef Name="ThirdClassId" />
  13058. </Dependent>
  13059. </ReferentialConstraint>
  13060. </Association>
  13061. <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
  13062. <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="0..1" />
  13063. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13064. <ReferentialConstraint>
  13065. <Principal Role="FmsMaterialCodeLocation">
  13066. <PropertyRef Name="SiteId" />
  13067. <PropertyRef Name="LocationId" />
  13068. </Principal>
  13069. <Dependent Role="FmsMaterial">
  13070. <PropertyRef Name="SiteId" />
  13071. <PropertyRef Name="LocationId" />
  13072. </Dependent>
  13073. </ReferentialConstraint>
  13074. </Association>
  13075. <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
  13076. <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="0..1" />
  13077. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13078. <ReferentialConstraint>
  13079. <Principal Role="FmsMaterialCodeType">
  13080. <PropertyRef Name="SiteId" />
  13081. <PropertyRef Name="MaterialTypeId" />
  13082. </Principal>
  13083. <Dependent Role="FmsMaterial">
  13084. <PropertyRef Name="SiteId" />
  13085. <PropertyRef Name="MaterialTypeId" />
  13086. </Dependent>
  13087. </ReferentialConstraint>
  13088. </Association>
  13089. <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
  13090. <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="0..1" />
  13091. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13092. <ReferentialConstraint>
  13093. <Principal Role="FmsMaterialTradeCompany">
  13094. <PropertyRef Name="SiteId" />
  13095. <PropertyRef Name="TradeCompanyId" />
  13096. </Principal>
  13097. <Dependent Role="FmsMaterial">
  13098. <PropertyRef Name="SiteId" />
  13099. <PropertyRef Name="TradeCompanyId" />
  13100. </Dependent>
  13101. </ReferentialConstraint>
  13102. </Association>
  13103. <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
  13104. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
  13105. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  13106. <ReferentialConstraint>
  13107. <Principal Role="FmsMaterialWarehouse">
  13108. <PropertyRef Name="SiteId" />
  13109. <PropertyRef Name="WarehouseId" />
  13110. </Principal>
  13111. <Dependent Role="FmsMaterial">
  13112. <PropertyRef Name="SiteId" />
  13113. <PropertyRef Name="WarehouseId" />
  13114. </Dependent>
  13115. </ReferentialConstraint>
  13116. </Association>
  13117. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  13118. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13119. <End Type="iBemsModel.FmsMaterialPurchaseOrderMaterial" Role="FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  13120. <ReferentialConstraint>
  13121. <Principal Role="FmsMaterial">
  13122. <PropertyRef Name="SiteId" />
  13123. <PropertyRef Name="MaterialId" />
  13124. </Principal>
  13125. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  13126. <PropertyRef Name="SiteId" />
  13127. <PropertyRef Name="MaterialId" />
  13128. </Dependent>
  13129. </ReferentialConstraint>
  13130. </Association>
  13131. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  13132. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13133. <End Type="iBemsModel.FmsMaterialPurchaseRequestMaterial" Role="FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  13134. <ReferentialConstraint>
  13135. <Principal Role="FmsMaterial">
  13136. <PropertyRef Name="SiteId" />
  13137. <PropertyRef Name="MaterialId" />
  13138. </Principal>
  13139. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  13140. <PropertyRef Name="SiteId" />
  13141. <PropertyRef Name="MaterialId" />
  13142. </Dependent>
  13143. </ReferentialConstraint>
  13144. </Association>
  13145. <Association Name="FK_FmsMaterialRelease_FmsMaterial">
  13146. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13147. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13148. <ReferentialConstraint>
  13149. <Principal Role="FmsMaterial">
  13150. <PropertyRef Name="SiteId" />
  13151. <PropertyRef Name="MaterialId" />
  13152. </Principal>
  13153. <Dependent Role="FmsMaterialRelease">
  13154. <PropertyRef Name="SiteId" />
  13155. <PropertyRef Name="MaterialId" />
  13156. </Dependent>
  13157. </ReferentialConstraint>
  13158. </Association>
  13159. <Association Name="FK_FmsMaterialStored_FmsMaterial">
  13160. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13161. <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
  13162. <ReferentialConstraint>
  13163. <Principal Role="FmsMaterial">
  13164. <PropertyRef Name="SiteId" />
  13165. <PropertyRef Name="MaterialId" />
  13166. </Principal>
  13167. <Dependent Role="FmsMaterialStored">
  13168. <PropertyRef Name="SiteId" />
  13169. <PropertyRef Name="MaterialId" />
  13170. </Dependent>
  13171. </ReferentialConstraint>
  13172. </Association>
  13173. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  13174. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  13175. <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  13176. <ReferentialConstraint>
  13177. <Principal Role="FmsMaterial">
  13178. <PropertyRef Name="SiteId" />
  13179. <PropertyRef Name="MaterialId" />
  13180. </Principal>
  13181. <Dependent Role="FmsWorkResultCheckItemMaterial">
  13182. <PropertyRef Name="SiteId" />
  13183. <PropertyRef Name="MaterialId" />
  13184. </Dependent>
  13185. </ReferentialConstraint>
  13186. </Association>
  13187. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  13188. <End Type="iBemsModel.FmsMaterialCodeAdjustmentType" Role="FmsMaterialCodeAdjustmentType" Multiplicity="1" />
  13189. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13190. <ReferentialConstraint>
  13191. <Principal Role="FmsMaterialCodeAdjustmentType">
  13192. <PropertyRef Name="AdjustmentTypeId" />
  13193. </Principal>
  13194. <Dependent Role="FmsMaterialRelease">
  13195. <PropertyRef Name="AdjustmentTypeId" />
  13196. </Dependent>
  13197. </ReferentialConstraint>
  13198. </Association>
  13199. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  13200. <End Type="iBemsModel.FmsMaterialCodeReleaseType" Role="FmsMaterialCodeReleaseType" Multiplicity="1" />
  13201. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13202. <ReferentialConstraint>
  13203. <Principal Role="FmsMaterialCodeReleaseType">
  13204. <PropertyRef Name="ReleaseTypeId" />
  13205. </Principal>
  13206. <Dependent Role="FmsMaterialRelease">
  13207. <PropertyRef Name="ReleaseTypeId" />
  13208. </Dependent>
  13209. </ReferentialConstraint>
  13210. </Association>
  13211. <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
  13212. <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="0..1" />
  13213. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  13214. <ReferentialConstraint>
  13215. <Principal Role="FmsWorkResult">
  13216. <PropertyRef Name="SiteId" />
  13217. <PropertyRef Name="WorkRequestId" />
  13218. </Principal>
  13219. <Dependent Role="FmsMaterialRelease">
  13220. <PropertyRef Name="SiteId" />
  13221. <PropertyRef Name="WorkRequestId" />
  13222. </Dependent>
  13223. </ReferentialConstraint>
  13224. </Association>
  13225. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  13226. <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="1" />
  13227. <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  13228. <ReferentialConstraint>
  13229. <Principal Role="FmsWorkResult">
  13230. <PropertyRef Name="SiteId" />
  13231. <PropertyRef Name="WorkRequestId" />
  13232. </Principal>
  13233. <Dependent Role="FmsWorkResultCheckItemMaterial">
  13234. <PropertyRef Name="SiteId" />
  13235. <PropertyRef Name="WorkRequestId" />
  13236. </Dependent>
  13237. </ReferentialConstraint>
  13238. </Association>
  13239. <EntityType Name="CmPatrolType">
  13240. <Key>
  13241. <PropertyRef Name="SiteId" />
  13242. <PropertyRef Name="PatrolTypeId" />
  13243. </Key>
  13244. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13245. <Property Name="PatrolTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13246. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  13247. <Property Name="IsUse" Type="Boolean" />
  13248. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistoryPos" />
  13249. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmPatrolType" ToRole="CmSite" />
  13250. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistory" />
  13251. </EntityType>
  13252. <EntityType Name="CmPatrolGroup">
  13253. <Key>
  13254. <PropertyRef Name="SiteId" />
  13255. <PropertyRef Name="PatrolGroupId" />
  13256. </Key>
  13257. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13258. <Property Name="PatrolGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13259. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  13260. <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolGroupUser" />
  13261. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolPlan" />
  13262. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmPatrolGroup" ToRole="CmSite" />
  13263. </EntityType>
  13264. <EntityType Name="CmPatrolGroupUser">
  13265. <Key>
  13266. <PropertyRef Name="SiteId" />
  13267. <PropertyRef Name="PatrolGroupId" />
  13268. <PropertyRef Name="UserId" />
  13269. </Key>
  13270. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13271. <Property Name="PatrolGroupId" Type="Int32" Nullable="false" />
  13272. <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  13273. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroupUser" ToRole="CmPatrolGroup" />
  13274. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmPatrolGroupUser" ToRole="CmUser" />
  13275. </EntityType>
  13276. <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
  13277. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
  13278. <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
  13279. <ReferentialConstraint>
  13280. <Principal Role="CmPatrolGroup">
  13281. <PropertyRef Name="SiteId" />
  13282. <PropertyRef Name="PatrolGroupId" />
  13283. </Principal>
  13284. <Dependent Role="CmPatrolGroupUser">
  13285. <PropertyRef Name="SiteId" />
  13286. <PropertyRef Name="PatrolGroupId" />
  13287. </Dependent>
  13288. </ReferentialConstraint>
  13289. </Association>
  13290. <Association Name="FK_CmPatrolGroupUser_CmUser">
  13291. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  13292. <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
  13293. <ReferentialConstraint>
  13294. <Principal Role="CmUser">
  13295. <PropertyRef Name="SiteId" />
  13296. <PropertyRef Name="UserId" />
  13297. </Principal>
  13298. <Dependent Role="CmPatrolGroupUser">
  13299. <PropertyRef Name="SiteId" />
  13300. <PropertyRef Name="UserId" />
  13301. </Dependent>
  13302. </ReferentialConstraint>
  13303. </Association>
  13304. <EntityType Name="CmPatrolPos">
  13305. <Key>
  13306. <PropertyRef Name="SiteId" />
  13307. <PropertyRef Name="PosId" />
  13308. </Key>
  13309. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13310. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  13311. <Property Name="FloorId" Type="Int32" Nullable="false" />
  13312. <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13313. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  13314. <Property Name="TagId" Type="String" MaxLength="32" FixedLength="false" Unicode="true" />
  13315. <Property Name="PosDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  13316. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmPatrolPos" ToRole="CmBuilding" />
  13317. <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmPatrolPos" ToRole="CmFloor" />
  13318. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolCoursePos" />
  13319. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolHistoryPos" />
  13320. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmPatrolPos" ToRole="CmSite" />
  13321. </EntityType>
  13322. <Association Name="FK_CmPatrolPos_CmBuilding">
  13323. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
  13324. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  13325. <ReferentialConstraint>
  13326. <Principal Role="CmBuilding">
  13327. <PropertyRef Name="SiteId" />
  13328. <PropertyRef Name="BuildingId" />
  13329. </Principal>
  13330. <Dependent Role="CmPatrolPos">
  13331. <PropertyRef Name="SiteId" />
  13332. <PropertyRef Name="BuildingId" />
  13333. </Dependent>
  13334. </ReferentialConstraint>
  13335. </Association>
  13336. <Association Name="FK_CmPatrolPos_CmFloor">
  13337. <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="1" />
  13338. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  13339. <ReferentialConstraint>
  13340. <Principal Role="CmFloor">
  13341. <PropertyRef Name="SiteId" />
  13342. <PropertyRef Name="BuildingId" />
  13343. <PropertyRef Name="FloorId" />
  13344. </Principal>
  13345. <Dependent Role="CmPatrolPos">
  13346. <PropertyRef Name="SiteId" />
  13347. <PropertyRef Name="BuildingId" />
  13348. <PropertyRef Name="FloorId" />
  13349. </Dependent>
  13350. </ReferentialConstraint>
  13351. </Association>
  13352. <EntityType Name="CmPatrolCourse">
  13353. <Key>
  13354. <PropertyRef Name="SiteId" />
  13355. <PropertyRef Name="PatrolCourseId" />
  13356. </Key>
  13357. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13358. <Property Name="PatrolCourseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13359. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  13360. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolCoursePos" />
  13361. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolPlan" />
  13362. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmPatrolCourse" ToRole="CmSite" />
  13363. </EntityType>
  13364. <EntityType Name="CmPatrolCoursePos">
  13365. <Key>
  13366. <PropertyRef Name="SiteId" />
  13367. <PropertyRef Name="PatrolCourseId" />
  13368. <PropertyRef Name="PosId" />
  13369. <PropertyRef Name="BuildingId" />
  13370. <PropertyRef Name="FloorId" />
  13371. </Key>
  13372. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13373. <Property Name="PatrolCourseId" Type="Int32" Nullable="false" />
  13374. <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="None" />
  13375. <Property Name="CourseOrder" Type="Int32" Nullable="false" />
  13376. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCoursePos" ToRole="CmPatrolCourse" />
  13377. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  13378. <Property Name="FloorId" Type="Int32" Nullable="false" />
  13379. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolCoursePos" ToRole="CmPatrolPos" />
  13380. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmPatrolCoursePos" ToRole="CmSite" />
  13381. </EntityType>
  13382. <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
  13383. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
  13384. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  13385. <ReferentialConstraint>
  13386. <Principal Role="CmPatrolCourse">
  13387. <PropertyRef Name="SiteId" />
  13388. <PropertyRef Name="PatrolCourseId" />
  13389. </Principal>
  13390. <Dependent Role="CmPatrolCoursePos">
  13391. <PropertyRef Name="SiteId" />
  13392. <PropertyRef Name="PatrolCourseId" />
  13393. </Dependent>
  13394. </ReferentialConstraint>
  13395. </Association>
  13396. <Association Name="FK_CmPatrolCoursePos_CmPatrolPos">
  13397. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
  13398. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  13399. <ReferentialConstraint>
  13400. <Principal Role="CmPatrolPos">
  13401. <PropertyRef Name="SiteId" />
  13402. <PropertyRef Name="PosId" />
  13403. </Principal>
  13404. <Dependent Role="CmPatrolCoursePos">
  13405. <PropertyRef Name="SiteId" />
  13406. <PropertyRef Name="PosId" />
  13407. </Dependent>
  13408. </ReferentialConstraint>
  13409. </Association>
  13410. <EntityType Name="CmPatrolPlan">
  13411. <Key>
  13412. <PropertyRef Name="SiteId" />
  13413. <PropertyRef Name="PatrolPlanId" />
  13414. </Key>
  13415. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13416. <Property Name="PatrolPlanId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13417. <Property Name="GroupId" Type="Int32" Nullable="false" />
  13418. <Property Name="CourseId" Type="Int32" Nullable="false" />
  13419. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
  13420. <Property Name="PlanDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
  13421. <Property Name="term" Type="Int32" Nullable="false" />
  13422. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolPlan" ToRole="CmPatrolCourse" />
  13423. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolPlan" ToRole="CmPatrolGroup" />
  13424. <Property Name="inDate" Type="DateTime" Precision="3" />
  13425. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolPlan" ToRole="CmPatrolSchedule" />
  13426. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmPatrolPlan" ToRole="CmSite" />
  13427. </EntityType>
  13428. <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
  13429. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
  13430. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  13431. <ReferentialConstraint>
  13432. <Principal Role="CmPatrolCourse">
  13433. <PropertyRef Name="SiteId" />
  13434. <PropertyRef Name="PatrolCourseId" />
  13435. </Principal>
  13436. <Dependent Role="CmPatrolPlan">
  13437. <PropertyRef Name="SiteId" />
  13438. <PropertyRef Name="CourseId" />
  13439. </Dependent>
  13440. </ReferentialConstraint>
  13441. </Association>
  13442. <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
  13443. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
  13444. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  13445. <ReferentialConstraint>
  13446. <Principal Role="CmPatrolGroup">
  13447. <PropertyRef Name="SiteId" />
  13448. <PropertyRef Name="PatrolGroupId" />
  13449. </Principal>
  13450. <Dependent Role="CmPatrolPlan">
  13451. <PropertyRef Name="SiteId" />
  13452. <PropertyRef Name="GroupId" />
  13453. </Dependent>
  13454. </ReferentialConstraint>
  13455. </Association>
  13456. <EntityType Name="CmPatrolHistoryPos">
  13457. <Key>
  13458. <PropertyRef Name="mId" />
  13459. </Key>
  13460. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13461. <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" />
  13462. <Property Name="PosId" Type="Int32" Nullable="false" />
  13463. <Property Name="PatrolTime" Type="DateTime" Nullable="false" Precision="3" />
  13464. <Property Name="term" Type="Int32" />
  13465. <Property Name="resultType" Type="Int32" Nullable="false" />
  13466. <Property Name="mId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13467. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolPos" />
  13468. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolType" />
  13469. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmPatrolHistoryPos" ToRole="CmSite" />
  13470. </EntityType>
  13471. <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
  13472. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
  13473. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  13474. <ReferentialConstraint>
  13475. <Principal Role="CmPatrolPos">
  13476. <PropertyRef Name="SiteId" />
  13477. <PropertyRef Name="PosId" />
  13478. </Principal>
  13479. <Dependent Role="CmPatrolHistoryPos">
  13480. <PropertyRef Name="SiteId" />
  13481. <PropertyRef Name="PosId" />
  13482. </Dependent>
  13483. </ReferentialConstraint>
  13484. </Association>
  13485. <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
  13486. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
  13487. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  13488. <ReferentialConstraint>
  13489. <Principal Role="CmPatrolType">
  13490. <PropertyRef Name="SiteId" />
  13491. <PropertyRef Name="PatrolTypeId" />
  13492. </Principal>
  13493. <Dependent Role="CmPatrolHistoryPos">
  13494. <PropertyRef Name="SiteId" />
  13495. <PropertyRef Name="resultType" />
  13496. </Dependent>
  13497. </ReferentialConstraint>
  13498. </Association>
  13499. <EntityType Name="BemsPeakInfo">
  13500. <Key>
  13501. <PropertyRef Name="SiteId" />
  13502. </Key>
  13503. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13504. <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13505. <Property Name="MaxPeakValue" Type="Double" Nullable="false" />
  13506. <Property Name="MinDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13507. <Property Name="MinPeakValue" Type="Double" Nullable="false" />
  13508. <Property Name="todayMaxPeakValue" Type="Double" Nullable="false" />
  13509. <Property Name="todayMinPeakValue" Type="Double" Nullable="false" />
  13510. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="BemsPeakInfo" ToRole="CmSite" />
  13511. </EntityType>
  13512. <EntityType Name="BemsPeakHistory">
  13513. <Key>
  13514. <PropertyRef Name="SiteId" />
  13515. <PropertyRef Name="CreatedDateTime" />
  13516. </Key>
  13517. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13518. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13519. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  13520. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="BemsPeakHistory" ToRole="CmSite" />
  13521. </EntityType>
  13522. <EntityType Name="CmPatrolSchedule">
  13523. <Key>
  13524. <PropertyRef Name="SiteId" />
  13525. <PropertyRef Name="ScheduleId" />
  13526. </Key>
  13527. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13528. <Property Name="ScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  13529. <Property Name="PlanId" Type="Int32" Nullable="false" />
  13530. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
  13531. <Property Name="ScheduleDesc" Type="String" MaxLength="128" FixedLength="false" Unicode="false" />
  13532. <Property Name="inDate" Type="DateTime" Precision="3" />
  13533. <Property Name="patrolDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13534. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolSchedule" ToRole="CmPatrolPlan" />
  13535. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmPatrolSchedule" ToRole="CmSite" />
  13536. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolSchedule" ToRole="CmPatrolHistory" />
  13537. </EntityType>
  13538. <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
  13539. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="1" />
  13540. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
  13541. <ReferentialConstraint>
  13542. <Principal Role="CmPatrolPlan">
  13543. <PropertyRef Name="SiteId" />
  13544. <PropertyRef Name="PatrolPlanId" />
  13545. </Principal>
  13546. <Dependent Role="CmPatrolSchedule">
  13547. <PropertyRef Name="SiteId" />
  13548. <PropertyRef Name="PlanId" />
  13549. </Dependent>
  13550. </ReferentialConstraint>
  13551. </Association>
  13552. <EntityType Name="BemsNoticePriceBase">
  13553. <Key>
  13554. <PropertyRef Name="SiteId" />
  13555. <PropertyRef Name="FuelTypeId" />
  13556. <PropertyRef Name="ApplyDate" />
  13557. <PropertyRef Name="ContractType" />
  13558. </Key>
  13559. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13560. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  13561. <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
  13562. <Property Name="ContractType" Type="Int16" Nullable="false" />
  13563. <Property Name="PrimaryPrice" Type="Int32" />
  13564. <Property Name="SecondaryPrice" Type="Int32" />
  13565. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceContractType" />
  13566. <NavigationProperty Name="BemsNoticePriceDetail" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceDetail" />
  13567. </EntityType>
  13568. <EntityType Name="BemsNoticePriceContractType">
  13569. <Key>
  13570. <PropertyRef Name="FuelTypeId" />
  13571. <PropertyRef Name="ContractType" />
  13572. </Key>
  13573. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  13574. <Property Name="ContractType" Type="Int16" Nullable="false" />
  13575. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  13576. <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="BemsNoticePriceBase" />
  13577. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsNoticePriceContractType" ToRole="BemsFuelType" />
  13578. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="CmFacility" />
  13579. </EntityType>
  13580. <EntityType Name="BemsNoticePriceDetail">
  13581. <Key>
  13582. <PropertyRef Name="SiteId" />
  13583. <PropertyRef Name="FuelTypeId" />
  13584. <PropertyRef Name="ApplyDate" />
  13585. <PropertyRef Name="ContractType" />
  13586. <PropertyRef Name="DataId" />
  13587. </Key>
  13588. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13589. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  13590. <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
  13591. <Property Name="ContractType" Type="Int16" Nullable="false" />
  13592. <Property Name="DataId" Type="Int16" Nullable="false" />
  13593. <Property Name="P01" Type="Double" />
  13594. <Property Name="P02" Type="Double" />
  13595. <Property Name="P03" Type="Double" />
  13596. <Property Name="P04" Type="Double" />
  13597. <Property Name="P05" Type="Double" />
  13598. <Property Name="P06" Type="Double" />
  13599. <Property Name="P07" Type="Double" />
  13600. <Property Name="P08" Type="Double" />
  13601. <Property Name="P09" Type="Double" />
  13602. <Property Name="P10" Type="Double" />
  13603. <Property Name="P11" Type="Double" />
  13604. <Property Name="P12" Type="Double" />
  13605. <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceDetail" ToRole="BemsNoticePriceBase" />
  13606. </EntityType>
  13607. <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  13608. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="1" />
  13609. <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="*" />
  13610. <ReferentialConstraint>
  13611. <Principal Role="BemsNoticePriceContractType">
  13612. <PropertyRef Name="FuelTypeId" />
  13613. <PropertyRef Name="ContractType" />
  13614. </Principal>
  13615. <Dependent Role="BemsNoticePriceBase">
  13616. <PropertyRef Name="FuelTypeId" />
  13617. <PropertyRef Name="ContractType" />
  13618. </Dependent>
  13619. </ReferentialConstraint>
  13620. </Association>
  13621. <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  13622. <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="1" />
  13623. <End Type="iBemsModel.BemsNoticePriceDetail" Role="BemsNoticePriceDetail" Multiplicity="*" />
  13624. <ReferentialConstraint>
  13625. <Principal Role="BemsNoticePriceBase">
  13626. <PropertyRef Name="SiteId" />
  13627. <PropertyRef Name="FuelTypeId" />
  13628. <PropertyRef Name="ApplyDate" />
  13629. <PropertyRef Name="ContractType" />
  13630. </Principal>
  13631. <Dependent Role="BemsNoticePriceDetail">
  13632. <PropertyRef Name="SiteId" />
  13633. <PropertyRef Name="FuelTypeId" />
  13634. <PropertyRef Name="ApplyDate" />
  13635. <PropertyRef Name="ContractType" />
  13636. </Dependent>
  13637. </ReferentialConstraint>
  13638. </Association>
  13639. <EntityType Name="BemsPeakFacility">
  13640. <Key>
  13641. <PropertyRef Name="SiteId" />
  13642. <PropertyRef Name="MaxDateTime" />
  13643. <PropertyRef Name="FacilityCode" />
  13644. </Key>
  13645. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13646. <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
  13647. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  13648. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="BemsPeakFacility" ToRole="CmFacility" />
  13649. </EntityType>
  13650. <EntityType Name="CmSite">
  13651. <Key>
  13652. <PropertyRef Name="SiteId" />
  13653. </Key>
  13654. <Property Name="SiteId" Type="Int32" Nullable="false" />
  13655. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  13656. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  13657. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  13658. <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  13659. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  13660. <Property Name="PhoneNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13661. <Property Name="URL" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  13662. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  13663. <Property Name="IsUse" Type="Boolean" />
  13664. <Property Name="SortOrderNo" Type="Int32" />
  13665. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  13666. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13667. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  13668. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13669. <Property Name="IsControlSchedule" Type="Boolean" />
  13670. <Property Name="ScheduleCheckHour" Type="Int32" />
  13671. <Property Name="MaxPeak" Type="Double" />
  13672. <Property Name="lat" Type="Double" />
  13673. <Property Name="lng" Type="Double" />
  13674. <NavigationProperty Name="BemsPeakHistory" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="CmSite" ToRole="BemsPeakHistory" />
  13675. <NavigationProperty Name="BemsPeakInfo" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="CmSite" ToRole="BemsPeakInfo" />
  13676. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmSite" ToRole="CmBuilding" />
  13677. <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmSite" ToRole="CmCompany" />
  13678. <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmSite" ToRole="CmFacilityTempSet" />
  13679. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmSite" ToRole="CmFile" />
  13680. <NavigationProperty Name="CmHoliday" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmSite" ToRole="CmHoliday" />
  13681. <NavigationProperty Name="CmHoliday1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmSite" ToRole="CmHoliday" />
  13682. <NavigationProperty Name="CmHolidayCustom" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmSite" ToRole="CmHolidayCustom" />
  13683. <NavigationProperty Name="CmHolidayCustom1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmSite" ToRole="CmHolidayCustom" />
  13684. <NavigationProperty Name="CmHolidayWeekend" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmSite" ToRole="CmHolidayWeekend" />
  13685. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmSite" ToRole="CmPatrolCourse" />
  13686. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmSite" ToRole="CmPatrolCoursePos" />
  13687. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmSite" ToRole="CmPatrolGroup" />
  13688. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmSite" ToRole="CmPatrolHistoryPos" />
  13689. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmSite" ToRole="CmPatrolPlan" />
  13690. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmSite" ToRole="CmPatrolPos" />
  13691. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmSite" ToRole="CmPatrolSchedule" />
  13692. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmSite" ToRole="CmPatrolType" />
  13693. <NavigationProperty Name="CmPosition" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmSite" ToRole="CmPosition" />
  13694. <NavigationProperty Name="CmPosition1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmSite" ToRole="CmPosition" />
  13695. <NavigationProperty Name="CmUserGroup" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmSite" ToRole="CmUserGroup" />
  13696. <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
  13697. <NavigationProperty Name="FmsDrawingCodeType" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
  13698. <NavigationProperty Name="FmsDrawing" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="CmSite" ToRole="FmsDrawing" />
  13699. <NavigationProperty Name="FmsDrawingCodeGroup1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
  13700. <NavigationProperty Name="FmsDrawingCodeType1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
  13701. <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="CmSite" ToRole="FmsFacilityCodeClass" />
  13702. <NavigationProperty Name="FmsLicense" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="CmSite" ToRole="FmsLicense" />
  13703. <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="CmSite" ToRole="FmsMaterialCarriedForward" />
  13704. <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeClass" />
  13705. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeLocation" />
  13706. <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeType" />
  13707. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseOrder" />
  13708. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseRequest" />
  13709. <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="CmSite" ToRole="FmsMaterialStored" />
  13710. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="CmSite" ToRole="FmsMaterialTradeCompany" />
  13711. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="CmSite" ToRole="FmsMaterialWarehouse" />
  13712. <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCauseClass" />
  13713. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCycleUnit" />
  13714. <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeEmergency" />
  13715. <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeHolidayWorkType" />
  13716. <NavigationProperty Name="FmsWorkCodeLegalInspectionAgency" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeLegalInspectionAgency" />
  13717. <NavigationProperty Name="FmsWorkOrder" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="CmSite" ToRole="FmsWorkOrder" />
  13718. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="CmSite" ToRole="FmsWorkRequest" />
  13719. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmSite" ToRole="CmZoneTempHumiSet" />
  13720. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="CmSite" ToRole="FmsMaterial" />
  13721. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="CmSite" ToRole="FmsMaterialRelease" />
  13722. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="CmSite" ToRole="FmsReport" />
  13723. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmSite" ToRole="CmPatrolHistory" />
  13724. <Property Name="controlSchedule" Type="Boolean" />
  13725. <NavigationProperty Name="CmMenu" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmSite" ToRole="CmMenu" />
  13726. <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="CmSite" ToRole="BemsChartInfo" />
  13727. <Property Name="BuildingSize" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  13728. <Property Name="GrossArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13729. <Property Name="BuildingArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13730. <Property Name="FloorAreaRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13731. <Property Name="BuildingCoverageRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13732. <Property Name="MainUse" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  13733. <Property Name="CompletionDate" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13734. <Property Name="Standard" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13735. <Property Name="MainUseIndex" Type="Int32" />
  13736. <Property Name="HDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13737. <Property Name="CDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  13738. <NavigationProperty Name="BemsPeopleIncrease" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="CmSite" ToRole="BemsPeopleIncrease" />
  13739. <NavigationProperty Name="BemsRentalRate" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="CmSite" ToRole="BemsRentalRate" />
  13740. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="CmSite" ToRole="BemsSitePrice" />
  13741. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="CmSite" ToRole="BemsSitePriceHistory" />
  13742. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="CmSite" ToRole="BemsAlarmSetting" />
  13743. <NavigationProperty Name="BemsEnergyConfigPercentMonth" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="CmSite" ToRole="BemsEnergyConfigPercentMonth" />
  13744. <NavigationProperty Name="BemsEnergyConfigPercentWeek" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="CmSite" ToRole="BemsEnergyConfigPercentWeek" />
  13745. <NavigationProperty Name="BemsEnergyDailyRegression" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="CmSite" ToRole="BemsEnergyDailyRegression" />
  13746. </EntityType>
  13747. <Association Name="FK_BemsPeakHIstory_CmSite">
  13748. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13749. <End Type="iBemsModel.BemsPeakHistory" Role="BemsPeakHistory" Multiplicity="*" />
  13750. <ReferentialConstraint>
  13751. <Principal Role="CmSite">
  13752. <PropertyRef Name="SiteId" />
  13753. </Principal>
  13754. <Dependent Role="BemsPeakHistory">
  13755. <PropertyRef Name="SiteId" />
  13756. </Dependent>
  13757. </ReferentialConstraint>
  13758. </Association>
  13759. <Association Name="FK_BemsPeakInfo_CmSite">
  13760. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13761. <End Type="iBemsModel.BemsPeakInfo" Role="BemsPeakInfo" Multiplicity="0..1" />
  13762. <ReferentialConstraint>
  13763. <Principal Role="CmSite">
  13764. <PropertyRef Name="SiteId" />
  13765. </Principal>
  13766. <Dependent Role="BemsPeakInfo">
  13767. <PropertyRef Name="SiteId" />
  13768. </Dependent>
  13769. </ReferentialConstraint>
  13770. </Association>
  13771. <Association Name="FK__CmBuildin__SiteI__3BFFE745">
  13772. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13773. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="*" />
  13774. <ReferentialConstraint>
  13775. <Principal Role="CmSite">
  13776. <PropertyRef Name="SiteId" />
  13777. </Principal>
  13778. <Dependent Role="CmBuilding">
  13779. <PropertyRef Name="SiteId" />
  13780. </Dependent>
  13781. </ReferentialConstraint>
  13782. </Association>
  13783. <Association Name="FK__CmCompany__SiteI__336AA144">
  13784. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13785. <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="*" />
  13786. <ReferentialConstraint>
  13787. <Principal Role="CmSite">
  13788. <PropertyRef Name="SiteId" />
  13789. </Principal>
  13790. <Dependent Role="CmCompany">
  13791. <PropertyRef Name="SiteId" />
  13792. </Dependent>
  13793. </ReferentialConstraint>
  13794. </Association>
  13795. <Association Name="FK_CmFacilityTempSet_CmSite">
  13796. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13797. <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="*" />
  13798. <ReferentialConstraint>
  13799. <Principal Role="CmSite">
  13800. <PropertyRef Name="SiteId" />
  13801. </Principal>
  13802. <Dependent Role="CmFacilityTempSet">
  13803. <PropertyRef Name="SiteId" />
  13804. </Dependent>
  13805. </ReferentialConstraint>
  13806. </Association>
  13807. <Association Name="FK__CmFile__SiteId__2759D01A">
  13808. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13809. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="*" />
  13810. <ReferentialConstraint>
  13811. <Principal Role="CmSite">
  13812. <PropertyRef Name="SiteId" />
  13813. </Principal>
  13814. <Dependent Role="CmFile">
  13815. <PropertyRef Name="SiteId" />
  13816. </Dependent>
  13817. </ReferentialConstraint>
  13818. </Association>
  13819. <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
  13820. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13821. <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
  13822. <ReferentialConstraint>
  13823. <Principal Role="CmSite">
  13824. <PropertyRef Name="SiteId" />
  13825. </Principal>
  13826. <Dependent Role="CmHoliday">
  13827. <PropertyRef Name="SiteId" />
  13828. </Dependent>
  13829. </ReferentialConstraint>
  13830. </Association>
  13831. <Association Name="FK__CmHoliday__SiteI__65AC084E">
  13832. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13833. <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
  13834. <ReferentialConstraint>
  13835. <Principal Role="CmSite">
  13836. <PropertyRef Name="SiteId" />
  13837. </Principal>
  13838. <Dependent Role="CmHoliday">
  13839. <PropertyRef Name="SiteId" />
  13840. </Dependent>
  13841. </ReferentialConstraint>
  13842. </Association>
  13843. <Association Name="FK__CmHoliday__SiteI__10766AC2">
  13844. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13845. <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
  13846. <ReferentialConstraint>
  13847. <Principal Role="CmSite">
  13848. <PropertyRef Name="SiteId" />
  13849. </Principal>
  13850. <Dependent Role="CmHolidayCustom">
  13851. <PropertyRef Name="SiteId" />
  13852. </Dependent>
  13853. </ReferentialConstraint>
  13854. </Association>
  13855. <Association Name="FK__CmHoliday__SiteI__66A02C87">
  13856. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13857. <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
  13858. <ReferentialConstraint>
  13859. <Principal Role="CmSite">
  13860. <PropertyRef Name="SiteId" />
  13861. </Principal>
  13862. <Dependent Role="CmHolidayCustom">
  13863. <PropertyRef Name="SiteId" />
  13864. </Dependent>
  13865. </ReferentialConstraint>
  13866. </Association>
  13867. <Association Name="FK__CmHoliday__SiteI__0D99FE17">
  13868. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13869. <End Type="iBemsModel.CmHolidayWeekend" Role="CmHolidayWeekend" Multiplicity="0..1" />
  13870. <ReferentialConstraint>
  13871. <Principal Role="CmSite">
  13872. <PropertyRef Name="SiteId" />
  13873. </Principal>
  13874. <Dependent Role="CmHolidayWeekend">
  13875. <PropertyRef Name="SiteId" />
  13876. </Dependent>
  13877. </ReferentialConstraint>
  13878. </Association>
  13879. <Association Name="FK_CmPatrolCourse_CmSite">
  13880. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13881. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="*" />
  13882. <ReferentialConstraint>
  13883. <Principal Role="CmSite">
  13884. <PropertyRef Name="SiteId" />
  13885. </Principal>
  13886. <Dependent Role="CmPatrolCourse">
  13887. <PropertyRef Name="SiteId" />
  13888. </Dependent>
  13889. </ReferentialConstraint>
  13890. </Association>
  13891. <Association Name="FK_CmPatrolCoursePos_CmSite">
  13892. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13893. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  13894. <ReferentialConstraint>
  13895. <Principal Role="CmSite">
  13896. <PropertyRef Name="SiteId" />
  13897. </Principal>
  13898. <Dependent Role="CmPatrolCoursePos">
  13899. <PropertyRef Name="SiteId" />
  13900. </Dependent>
  13901. </ReferentialConstraint>
  13902. </Association>
  13903. <Association Name="FK_CmPatrolGroup_CmSite">
  13904. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13905. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="*" />
  13906. <ReferentialConstraint>
  13907. <Principal Role="CmSite">
  13908. <PropertyRef Name="SiteId" />
  13909. </Principal>
  13910. <Dependent Role="CmPatrolGroup">
  13911. <PropertyRef Name="SiteId" />
  13912. </Dependent>
  13913. </ReferentialConstraint>
  13914. </Association>
  13915. <Association Name="FK_CmPatrolHistoryPos_CmSite">
  13916. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13917. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  13918. <ReferentialConstraint>
  13919. <Principal Role="CmSite">
  13920. <PropertyRef Name="SiteId" />
  13921. </Principal>
  13922. <Dependent Role="CmPatrolHistoryPos">
  13923. <PropertyRef Name="SiteId" />
  13924. </Dependent>
  13925. </ReferentialConstraint>
  13926. </Association>
  13927. <Association Name="FK_CmPatrolPlan_CmSite">
  13928. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13929. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  13930. <ReferentialConstraint>
  13931. <Principal Role="CmSite">
  13932. <PropertyRef Name="SiteId" />
  13933. </Principal>
  13934. <Dependent Role="CmPatrolPlan">
  13935. <PropertyRef Name="SiteId" />
  13936. </Dependent>
  13937. </ReferentialConstraint>
  13938. </Association>
  13939. <Association Name="FK_CmPatrolPos_CmSite">
  13940. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13941. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  13942. <ReferentialConstraint>
  13943. <Principal Role="CmSite">
  13944. <PropertyRef Name="SiteId" />
  13945. </Principal>
  13946. <Dependent Role="CmPatrolPos">
  13947. <PropertyRef Name="SiteId" />
  13948. </Dependent>
  13949. </ReferentialConstraint>
  13950. </Association>
  13951. <Association Name="FK_CmPatrolSchedule_CmSite">
  13952. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13953. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
  13954. <ReferentialConstraint>
  13955. <Principal Role="CmSite">
  13956. <PropertyRef Name="SiteId" />
  13957. </Principal>
  13958. <Dependent Role="CmPatrolSchedule">
  13959. <PropertyRef Name="SiteId" />
  13960. </Dependent>
  13961. </ReferentialConstraint>
  13962. </Association>
  13963. <Association Name="FK_CmPatrolType_CmSite">
  13964. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13965. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="*" />
  13966. <ReferentialConstraint>
  13967. <Principal Role="CmSite">
  13968. <PropertyRef Name="SiteId" />
  13969. </Principal>
  13970. <Dependent Role="CmPatrolType">
  13971. <PropertyRef Name="SiteId" />
  13972. </Dependent>
  13973. </ReferentialConstraint>
  13974. </Association>
  13975. <Association Name="FK__CmPositio__SiteI__6A70BD6B">
  13976. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13977. <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
  13978. <ReferentialConstraint>
  13979. <Principal Role="CmSite">
  13980. <PropertyRef Name="SiteId" />
  13981. </Principal>
  13982. <Dependent Role="CmPosition">
  13983. <PropertyRef Name="SiteId" />
  13984. </Dependent>
  13985. </ReferentialConstraint>
  13986. </Association>
  13987. <Association Name="FK__CmUserPos__SiteI__44952D46">
  13988. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  13989. <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
  13990. <ReferentialConstraint>
  13991. <Principal Role="CmSite">
  13992. <PropertyRef Name="SiteId" />
  13993. </Principal>
  13994. <Dependent Role="CmPosition">
  13995. <PropertyRef Name="SiteId" />
  13996. </Dependent>
  13997. </ReferentialConstraint>
  13998. </Association>
  13999. <Association Name="FK__CmUserGro__SiteI__53D770D6">
  14000. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14001. <End Type="iBemsModel.CmUserGroup" Role="CmUserGroup" Multiplicity="*" />
  14002. <ReferentialConstraint>
  14003. <Principal Role="CmSite">
  14004. <PropertyRef Name="SiteId" />
  14005. </Principal>
  14006. <Dependent Role="CmUserGroup">
  14007. <PropertyRef Name="SiteId" />
  14008. </Dependent>
  14009. </ReferentialConstraint>
  14010. </Association>
  14011. <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
  14012. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14013. <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
  14014. <ReferentialConstraint>
  14015. <Principal Role="CmSite">
  14016. <PropertyRef Name="SiteId" />
  14017. </Principal>
  14018. <Dependent Role="FmsDrawingCodeGroup">
  14019. <PropertyRef Name="SiteId" />
  14020. </Dependent>
  14021. </ReferentialConstraint>
  14022. </Association>
  14023. <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
  14024. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14025. <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
  14026. <ReferentialConstraint>
  14027. <Principal Role="CmSite">
  14028. <PropertyRef Name="SiteId" />
  14029. </Principal>
  14030. <Dependent Role="FmsDrawingCodeType">
  14031. <PropertyRef Name="SiteId" />
  14032. </Dependent>
  14033. </ReferentialConstraint>
  14034. </Association>
  14035. <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
  14036. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14037. <End Type="iBemsModel.FmsDrawing" Role="FmsDrawing" Multiplicity="*" />
  14038. <ReferentialConstraint>
  14039. <Principal Role="CmSite">
  14040. <PropertyRef Name="SiteId" />
  14041. </Principal>
  14042. <Dependent Role="FmsDrawing">
  14043. <PropertyRef Name="SiteId" />
  14044. </Dependent>
  14045. </ReferentialConstraint>
  14046. </Association>
  14047. <Association Name="FK__FmsDrawin__SiteI__6F357288">
  14048. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14049. <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
  14050. <ReferentialConstraint>
  14051. <Principal Role="CmSite">
  14052. <PropertyRef Name="SiteId" />
  14053. </Principal>
  14054. <Dependent Role="FmsDrawingCodeGroup">
  14055. <PropertyRef Name="SiteId" />
  14056. </Dependent>
  14057. </ReferentialConstraint>
  14058. </Association>
  14059. <Association Name="FK__FmsDrawin__SiteI__702996C1">
  14060. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14061. <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
  14062. <ReferentialConstraint>
  14063. <Principal Role="CmSite">
  14064. <PropertyRef Name="SiteId" />
  14065. </Principal>
  14066. <Dependent Role="FmsDrawingCodeType">
  14067. <PropertyRef Name="SiteId" />
  14068. </Dependent>
  14069. </ReferentialConstraint>
  14070. </Association>
  14071. <Association Name="FK__FmsFacilityCodeClass__CmSite">
  14072. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1">
  14073. <OnDelete Action="Cascade" />
  14074. </End>
  14075. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="*" />
  14076. <ReferentialConstraint>
  14077. <Principal Role="CmSite">
  14078. <PropertyRef Name="SiteId" />
  14079. </Principal>
  14080. <Dependent Role="FmsFacilityCodeClass">
  14081. <PropertyRef Name="SiteId" />
  14082. </Dependent>
  14083. </ReferentialConstraint>
  14084. </Association>
  14085. <Association Name="FK__FmsLicense__CmSite">
  14086. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14087. <End Type="iBemsModel.FmsLicense" Role="FmsLicense" Multiplicity="*" />
  14088. <ReferentialConstraint>
  14089. <Principal Role="CmSite">
  14090. <PropertyRef Name="SiteId" />
  14091. </Principal>
  14092. <Dependent Role="FmsLicense">
  14093. <PropertyRef Name="SiteId" />
  14094. </Dependent>
  14095. </ReferentialConstraint>
  14096. </Association>
  14097. <Association Name="FK__FmsMaterialCarriedForward__CmSite">
  14098. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14099. <End Type="iBemsModel.FmsMaterialCarriedForward" Role="FmsMaterialCarriedForward" Multiplicity="*" />
  14100. <ReferentialConstraint>
  14101. <Principal Role="CmSite">
  14102. <PropertyRef Name="SiteId" />
  14103. </Principal>
  14104. <Dependent Role="FmsMaterialCarriedForward">
  14105. <PropertyRef Name="SiteId" />
  14106. </Dependent>
  14107. </ReferentialConstraint>
  14108. </Association>
  14109. <Association Name="FK__FmsMaterialCodeClass__CmSite">
  14110. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14111. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="*" />
  14112. <ReferentialConstraint>
  14113. <Principal Role="CmSite">
  14114. <PropertyRef Name="SiteId" />
  14115. </Principal>
  14116. <Dependent Role="FmsMaterialCodeClass">
  14117. <PropertyRef Name="SiteId" />
  14118. </Dependent>
  14119. </ReferentialConstraint>
  14120. </Association>
  14121. <Association Name="FK__FmsMaterialCodeLocation__CmSite">
  14122. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14123. <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="*" />
  14124. <ReferentialConstraint>
  14125. <Principal Role="CmSite">
  14126. <PropertyRef Name="SiteId" />
  14127. </Principal>
  14128. <Dependent Role="FmsMaterialCodeLocation">
  14129. <PropertyRef Name="SiteId" />
  14130. </Dependent>
  14131. </ReferentialConstraint>
  14132. </Association>
  14133. <Association Name="FK__FmsMaterialCodeType__CmSite">
  14134. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14135. <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="*" />
  14136. <ReferentialConstraint>
  14137. <Principal Role="CmSite">
  14138. <PropertyRef Name="SiteId" />
  14139. </Principal>
  14140. <Dependent Role="FmsMaterialCodeType">
  14141. <PropertyRef Name="SiteId" />
  14142. </Dependent>
  14143. </ReferentialConstraint>
  14144. </Association>
  14145. <Association Name="FK__FmsMaterialOrder__CmSite">
  14146. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14147. <End Type="iBemsModel.FmsMaterialPurchaseOrder" Role="FmsMaterialPurchaseOrder" Multiplicity="*" />
  14148. <ReferentialConstraint>
  14149. <Principal Role="CmSite">
  14150. <PropertyRef Name="SiteId" />
  14151. </Principal>
  14152. <Dependent Role="FmsMaterialPurchaseOrder">
  14153. <PropertyRef Name="SiteId" />
  14154. </Dependent>
  14155. </ReferentialConstraint>
  14156. </Association>
  14157. <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
  14158. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14159. <End Type="iBemsModel.FmsMaterialPurchaseRequest" Role="FmsMaterialPurchaseRequest" Multiplicity="*" />
  14160. <ReferentialConstraint>
  14161. <Principal Role="CmSite">
  14162. <PropertyRef Name="SiteId" />
  14163. </Principal>
  14164. <Dependent Role="FmsMaterialPurchaseRequest">
  14165. <PropertyRef Name="SiteId" />
  14166. </Dependent>
  14167. </ReferentialConstraint>
  14168. </Association>
  14169. <Association Name="FK__FmsMaterialStored__CmSite">
  14170. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14171. <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
  14172. <ReferentialConstraint>
  14173. <Principal Role="CmSite">
  14174. <PropertyRef Name="SiteId" />
  14175. </Principal>
  14176. <Dependent Role="FmsMaterialStored">
  14177. <PropertyRef Name="SiteId" />
  14178. </Dependent>
  14179. </ReferentialConstraint>
  14180. </Association>
  14181. <Association Name="FK__FmsMaterialTradeCompany__CmSite">
  14182. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14183. <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="*" />
  14184. <ReferentialConstraint>
  14185. <Principal Role="CmSite">
  14186. <PropertyRef Name="SiteId" />
  14187. </Principal>
  14188. <Dependent Role="FmsMaterialTradeCompany">
  14189. <PropertyRef Name="SiteId" />
  14190. </Dependent>
  14191. </ReferentialConstraint>
  14192. </Association>
  14193. <Association Name="FK__FmsMaterialWarehouse__CmSite">
  14194. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14195. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="*" />
  14196. <ReferentialConstraint>
  14197. <Principal Role="CmSite">
  14198. <PropertyRef Name="SiteId" />
  14199. </Principal>
  14200. <Dependent Role="FmsMaterialWarehouse">
  14201. <PropertyRef Name="SiteId" />
  14202. </Dependent>
  14203. </ReferentialConstraint>
  14204. </Association>
  14205. <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
  14206. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14207. <End Type="iBemsModel.FmsWorkCodeCauseClass" Role="FmsWorkCodeCauseClass" Multiplicity="*" />
  14208. <ReferentialConstraint>
  14209. <Principal Role="CmSite">
  14210. <PropertyRef Name="SiteId" />
  14211. </Principal>
  14212. <Dependent Role="FmsWorkCodeCauseClass">
  14213. <PropertyRef Name="SiteId" />
  14214. </Dependent>
  14215. </ReferentialConstraint>
  14216. </Association>
  14217. <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
  14218. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14219. <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="*" />
  14220. <ReferentialConstraint>
  14221. <Principal Role="CmSite">
  14222. <PropertyRef Name="SiteId" />
  14223. </Principal>
  14224. <Dependent Role="FmsWorkCodeCycleUnit">
  14225. <PropertyRef Name="SiteId" />
  14226. </Dependent>
  14227. </ReferentialConstraint>
  14228. </Association>
  14229. <Association Name="FK__FmsWorkCodeEmergency__CmSite">
  14230. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14231. <End Type="iBemsModel.FmsWorkCodeEmergency" Role="FmsWorkCodeEmergency" Multiplicity="*" />
  14232. <ReferentialConstraint>
  14233. <Principal Role="CmSite">
  14234. <PropertyRef Name="SiteId" />
  14235. </Principal>
  14236. <Dependent Role="FmsWorkCodeEmergency">
  14237. <PropertyRef Name="SiteId" />
  14238. </Dependent>
  14239. </ReferentialConstraint>
  14240. </Association>
  14241. <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
  14242. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14243. <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="*" />
  14244. <ReferentialConstraint>
  14245. <Principal Role="CmSite">
  14246. <PropertyRef Name="SiteId" />
  14247. </Principal>
  14248. <Dependent Role="FmsWorkCodeHolidayWorkType">
  14249. <PropertyRef Name="SiteId" />
  14250. </Dependent>
  14251. </ReferentialConstraint>
  14252. </Association>
  14253. <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  14254. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14255. <End Type="iBemsModel.FmsWorkCodeLegalInspectionAgency" Role="FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
  14256. <ReferentialConstraint>
  14257. <Principal Role="CmSite">
  14258. <PropertyRef Name="SiteId" />
  14259. </Principal>
  14260. <Dependent Role="FmsWorkCodeLegalInspectionAgency">
  14261. <PropertyRef Name="SiteId" />
  14262. </Dependent>
  14263. </ReferentialConstraint>
  14264. </Association>
  14265. <Association Name="FK__FmsWorkOrder__CmSite">
  14266. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14267. <End Type="iBemsModel.FmsWorkOrder" Role="FmsWorkOrder" Multiplicity="*" />
  14268. <ReferentialConstraint>
  14269. <Principal Role="CmSite">
  14270. <PropertyRef Name="SiteId" />
  14271. </Principal>
  14272. <Dependent Role="FmsWorkOrder">
  14273. <PropertyRef Name="SiteId" />
  14274. </Dependent>
  14275. </ReferentialConstraint>
  14276. </Association>
  14277. <Association Name="FK__FmsWorkRequest__CmSite">
  14278. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14279. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  14280. <ReferentialConstraint>
  14281. <Principal Role="CmSite">
  14282. <PropertyRef Name="SiteId" />
  14283. </Principal>
  14284. <Dependent Role="FmsWorkRequest">
  14285. <PropertyRef Name="SiteId" />
  14286. </Dependent>
  14287. </ReferentialConstraint>
  14288. </Association>
  14289. <Association Name="FK_CmZoneTempHumiSet_CmSite">
  14290. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14291. <End Type="iBemsModel.CmZoneTempHumiSet" Role="CmZoneTempHumiSet" Multiplicity="*" />
  14292. <ReferentialConstraint>
  14293. <Principal Role="CmSite">
  14294. <PropertyRef Name="SiteId" />
  14295. </Principal>
  14296. <Dependent Role="CmZoneTempHumiSet">
  14297. <PropertyRef Name="SiteId" />
  14298. </Dependent>
  14299. </ReferentialConstraint>
  14300. </Association>
  14301. <Association Name="FK_FmsMaterial_CmSite">
  14302. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14303. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  14304. <ReferentialConstraint>
  14305. <Principal Role="CmSite">
  14306. <PropertyRef Name="SiteId" />
  14307. </Principal>
  14308. <Dependent Role="FmsMaterial">
  14309. <PropertyRef Name="SiteId" />
  14310. </Dependent>
  14311. </ReferentialConstraint>
  14312. </Association>
  14313. <Association Name="FK_FmsMaterialRelease_CmSite">
  14314. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14315. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  14316. <ReferentialConstraint>
  14317. <Principal Role="CmSite">
  14318. <PropertyRef Name="SiteId" />
  14319. </Principal>
  14320. <Dependent Role="FmsMaterialRelease">
  14321. <PropertyRef Name="SiteId" />
  14322. </Dependent>
  14323. </ReferentialConstraint>
  14324. </Association>
  14325. <EntityType Name="FmsReport">
  14326. <Key>
  14327. <PropertyRef Name="SiteId" />
  14328. <PropertyRef Name="RId" />
  14329. </Key>
  14330. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14331. <Property Name="RId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  14332. <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  14333. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  14334. <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  14335. <Property Name="FileId" Type="Int32" />
  14336. <Property Name="MakeDate" Type="DateTime" Nullable="false" Precision="3" />
  14337. <Property Name="ConfirmUserId1" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  14338. <Property Name="ConfirmUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  14339. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  14340. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="FmsReport" ToRole="CmBusinessField" />
  14341. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="FmsReport" ToRole="CmFile" />
  14342. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="FmsReport" ToRole="CmSite" />
  14343. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="FmsReport" ToRole="CmUser" />
  14344. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="FmsReport" ToRole="CmUser" />
  14345. <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="FmsReport" ToRole="CmUser" />
  14346. </EntityType>
  14347. <Association Name="FK_FmsReport_CmBusinessField">
  14348. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  14349. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14350. <ReferentialConstraint>
  14351. <Principal Role="CmBusinessField">
  14352. <PropertyRef Name="SiteId" />
  14353. <PropertyRef Name="BusinessFieldId" />
  14354. </Principal>
  14355. <Dependent Role="FmsReport">
  14356. <PropertyRef Name="SiteId" />
  14357. <PropertyRef Name="BusinessFieldId" />
  14358. </Dependent>
  14359. </ReferentialConstraint>
  14360. </Association>
  14361. <Association Name="FK_FmsReport_CmFile">
  14362. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  14363. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14364. <ReferentialConstraint>
  14365. <Principal Role="CmFile">
  14366. <PropertyRef Name="SiteId" />
  14367. <PropertyRef Name="FileId" />
  14368. </Principal>
  14369. <Dependent Role="FmsReport">
  14370. <PropertyRef Name="SiteId" />
  14371. <PropertyRef Name="FileId" />
  14372. </Dependent>
  14373. </ReferentialConstraint>
  14374. </Association>
  14375. <Association Name="FK_FmsReport_CmSite">
  14376. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14377. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14378. <ReferentialConstraint>
  14379. <Principal Role="CmSite">
  14380. <PropertyRef Name="SiteId" />
  14381. </Principal>
  14382. <Dependent Role="FmsReport">
  14383. <PropertyRef Name="SiteId" />
  14384. </Dependent>
  14385. </ReferentialConstraint>
  14386. </Association>
  14387. <Association Name="FK_FmsReport_CmUser">
  14388. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  14389. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14390. <ReferentialConstraint>
  14391. <Principal Role="CmUser">
  14392. <PropertyRef Name="SiteId" />
  14393. <PropertyRef Name="UserId" />
  14394. </Principal>
  14395. <Dependent Role="FmsReport">
  14396. <PropertyRef Name="SiteId" />
  14397. <PropertyRef Name="RegisterUserId" />
  14398. </Dependent>
  14399. </ReferentialConstraint>
  14400. </Association>
  14401. <Association Name="FK_FmsReport_CmUser1">
  14402. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  14403. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14404. <ReferentialConstraint>
  14405. <Principal Role="CmUser">
  14406. <PropertyRef Name="SiteId" />
  14407. <PropertyRef Name="UserId" />
  14408. </Principal>
  14409. <Dependent Role="FmsReport">
  14410. <PropertyRef Name="SiteId" />
  14411. <PropertyRef Name="ConfirmUserId1" />
  14412. </Dependent>
  14413. </ReferentialConstraint>
  14414. </Association>
  14415. <Association Name="FK_FmsReport_CmUser2">
  14416. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  14417. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  14418. <ReferentialConstraint>
  14419. <Principal Role="CmUser">
  14420. <PropertyRef Name="SiteId" />
  14421. <PropertyRef Name="UserId" />
  14422. </Principal>
  14423. <Dependent Role="FmsReport">
  14424. <PropertyRef Name="SiteId" />
  14425. <PropertyRef Name="ConfirmUserId2" />
  14426. </Dependent>
  14427. </ReferentialConstraint>
  14428. </Association>
  14429. <EntityType Name="CmServiceEnergyCalcMonth">
  14430. <Key>
  14431. <PropertyRef Name="SiteId" />
  14432. <PropertyRef Name="calDate" />
  14433. <PropertyRef Name="ServiceTypeId" />
  14434. </Key>
  14435. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14436. <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
  14437. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  14438. <Property Name="Value" Type="Double" />
  14439. </EntityType>
  14440. <EntityType Name="CmServiceEnergyCalcDay">
  14441. <Key>
  14442. <PropertyRef Name="SiteId" />
  14443. <PropertyRef Name="calDate" />
  14444. <PropertyRef Name="ServiceTypeId" />
  14445. </Key>
  14446. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14447. <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
  14448. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  14449. <Property Name="Value" Type="Double" />
  14450. </EntityType>
  14451. <EntityType Name="CmPatrolHistory">
  14452. <Key>
  14453. <PropertyRef Name="PatrolHistoryId" />
  14454. </Key>
  14455. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14456. <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  14457. <Property Name="ScheduleId" Type="Int32" Nullable="false" />
  14458. <Property Name="startDate" Type="DateTime" Nullable="false" Precision="3" />
  14459. <Property Name="endDate" Type="DateTime" Precision="3" />
  14460. <Property Name="resultTypeId" Type="Int32" Nullable="false" />
  14461. <Property Name="resultDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
  14462. <Property Name="resultPosCnt" Type="Int32" />
  14463. <Property Name="resultNormalCnt" Type="Int32" />
  14464. <Property Name="resultAbnormalCnt" Type="Int32" />
  14465. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolHistory" ToRole="CmPatrolSchedule" />
  14466. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolHistory" ToRole="CmPatrolType" />
  14467. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmPatrolHistory" ToRole="CmSite" />
  14468. </EntityType>
  14469. <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
  14470. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="1" />
  14471. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  14472. <ReferentialConstraint>
  14473. <Principal Role="CmPatrolSchedule">
  14474. <PropertyRef Name="SiteId" />
  14475. <PropertyRef Name="ScheduleId" />
  14476. </Principal>
  14477. <Dependent Role="CmPatrolHistory">
  14478. <PropertyRef Name="SiteId" />
  14479. <PropertyRef Name="ScheduleId" />
  14480. </Dependent>
  14481. </ReferentialConstraint>
  14482. </Association>
  14483. <Association Name="FK_CmPatrolHistory_CmPatrolType">
  14484. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
  14485. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  14486. <ReferentialConstraint>
  14487. <Principal Role="CmPatrolType">
  14488. <PropertyRef Name="SiteId" />
  14489. <PropertyRef Name="PatrolTypeId" />
  14490. </Principal>
  14491. <Dependent Role="CmPatrolHistory">
  14492. <PropertyRef Name="SiteId" />
  14493. <PropertyRef Name="resultTypeId" />
  14494. </Dependent>
  14495. </ReferentialConstraint>
  14496. </Association>
  14497. <Association Name="FK_CmPatrolHistory_CmSite">
  14498. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14499. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  14500. <ReferentialConstraint>
  14501. <Principal Role="CmSite">
  14502. <PropertyRef Name="SiteId" />
  14503. </Principal>
  14504. <Dependent Role="CmPatrolHistory">
  14505. <PropertyRef Name="SiteId" />
  14506. </Dependent>
  14507. </ReferentialConstraint>
  14508. </Association>
  14509. <EntityType Name="BemsReportFormat">
  14510. <Key>
  14511. <PropertyRef Name="ReportFormatId" />
  14512. <PropertyRef Name="parts" />
  14513. </Key>
  14514. <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
  14515. <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  14516. <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  14517. <Property Name="parts" Type="Int32" Nullable="false" />
  14518. </EntityType>
  14519. <EntityType Name="FmsWorkSchedule">
  14520. <Key>
  14521. <PropertyRef Name="SiteId" />
  14522. <PropertyRef Name="WorkScheduleId" />
  14523. </Key>
  14524. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14525. <Property Name="WorkScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  14526. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  14527. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  14528. <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
  14529. <Property Name="InspectionAgencyId" Type="Int32" />
  14530. <Property Name="CycleSize" Type="Int32" Nullable="false" />
  14531. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  14532. <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
  14533. <Property Name="WorkDueDate" Type="DateTime" Nullable="false" Precision="3" />
  14534. <Property Name="UpdateUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  14535. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  14536. <Property Name="IsAutoOrder" Type="Boolean" Nullable="false" />
  14537. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  14538. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK__FmsWorkSchedule__CmBusinessField" FromRole="FmsWorkSchedule" ToRole="CmBusinessField" />
  14539. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__FmsWorkSchedule__CmUser" FromRole="FmsWorkSchedule" ToRole="CmUser" />
  14540. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeCycleUnit" />
  14541. <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeHolidayWorkType" />
  14542. <NavigationProperty Name="FmsWorkCodeType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeType" />
  14543. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkRequest" />
  14544. <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkScheduleToFacility" />
  14545. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="FmsWorkSchedule" ToRole="CmPartner" />
  14546. </EntityType>
  14547. <Association Name="FK__FmsWorkSchedule__CmBusinessField">
  14548. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  14549. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14550. <ReferentialConstraint>
  14551. <Principal Role="CmBusinessField">
  14552. <PropertyRef Name="SiteId" />
  14553. <PropertyRef Name="BusinessFieldId" />
  14554. </Principal>
  14555. <Dependent Role="FmsWorkSchedule">
  14556. <PropertyRef Name="SiteId" />
  14557. <PropertyRef Name="BusinessFieldId" />
  14558. </Dependent>
  14559. </ReferentialConstraint>
  14560. </Association>
  14561. <Association Name="FK__FmsWorkSchedule__CmUser">
  14562. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  14563. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14564. <ReferentialConstraint>
  14565. <Principal Role="CmUser">
  14566. <PropertyRef Name="SiteId" />
  14567. <PropertyRef Name="UserId" />
  14568. </Principal>
  14569. <Dependent Role="FmsWorkSchedule">
  14570. <PropertyRef Name="SiteId" />
  14571. <PropertyRef Name="UpdateUserId" />
  14572. </Dependent>
  14573. </ReferentialConstraint>
  14574. </Association>
  14575. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  14576. <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="1" />
  14577. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14578. <ReferentialConstraint>
  14579. <Principal Role="FmsWorkCodeCycleUnit">
  14580. <PropertyRef Name="SiteId" />
  14581. <PropertyRef Name="CycleUnitId" />
  14582. </Principal>
  14583. <Dependent Role="FmsWorkSchedule">
  14584. <PropertyRef Name="SiteId" />
  14585. <PropertyRef Name="CycleUnitId" />
  14586. </Dependent>
  14587. </ReferentialConstraint>
  14588. </Association>
  14589. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  14590. <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="1" />
  14591. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14592. <ReferentialConstraint>
  14593. <Principal Role="FmsWorkCodeHolidayWorkType">
  14594. <PropertyRef Name="SiteId" />
  14595. <PropertyRef Name="HolidayWorkTypeId" />
  14596. </Principal>
  14597. <Dependent Role="FmsWorkSchedule">
  14598. <PropertyRef Name="SiteId" />
  14599. <PropertyRef Name="HolidayWorkTypeId" />
  14600. </Dependent>
  14601. </ReferentialConstraint>
  14602. </Association>
  14603. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  14604. <End Type="iBemsModel.FmsWorkCodeType" Role="FmsWorkCodeType" Multiplicity="1" />
  14605. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  14606. <ReferentialConstraint>
  14607. <Principal Role="FmsWorkCodeType">
  14608. <PropertyRef Name="WorkTypeId" />
  14609. </Principal>
  14610. <Dependent Role="FmsWorkSchedule">
  14611. <PropertyRef Name="WorkTypeId" />
  14612. </Dependent>
  14613. </ReferentialConstraint>
  14614. </Association>
  14615. <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
  14616. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="0..1" />
  14617. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  14618. <ReferentialConstraint>
  14619. <Principal Role="FmsWorkSchedule">
  14620. <PropertyRef Name="SiteId" />
  14621. <PropertyRef Name="WorkScheduleId" />
  14622. </Principal>
  14623. <Dependent Role="FmsWorkRequest">
  14624. <PropertyRef Name="SiteId" />
  14625. <PropertyRef Name="WorkScheduleId" />
  14626. </Dependent>
  14627. </ReferentialConstraint>
  14628. </Association>
  14629. <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  14630. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="1" />
  14631. <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
  14632. <ReferentialConstraint>
  14633. <Principal Role="FmsWorkSchedule">
  14634. <PropertyRef Name="SiteId" />
  14635. <PropertyRef Name="WorkScheduleId" />
  14636. </Principal>
  14637. <Dependent Role="FmsWorkScheduleToFacility">
  14638. <PropertyRef Name="SiteId" />
  14639. <PropertyRef Name="WorkScheduleId" />
  14640. </Dependent>
  14641. </ReferentialConstraint>
  14642. </Association>
  14643. <EntityType Name="CmMenu">
  14644. <Key>
  14645. <PropertyRef Name="SiteId" />
  14646. <PropertyRef Name="MenuId" />
  14647. </Key>
  14648. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14649. <Property Name="MenuId" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  14650. <Property Name="Used" Type="Boolean" />
  14651. <Property Name="MenuPath" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  14652. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14653. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmMenu" ToRole="CmSite" />
  14654. </EntityType>
  14655. <Association Name="FK_FmsWorkResultCheckItem_CmFile">
  14656. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  14657. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  14658. <ReferentialConstraint>
  14659. <Principal Role="CmFile">
  14660. <PropertyRef Name="SiteId" />
  14661. <PropertyRef Name="FileId" />
  14662. </Principal>
  14663. <Dependent Role="FmsWorkResultCheckItem">
  14664. <PropertyRef Name="SiteId" />
  14665. <PropertyRef Name="FileId1" />
  14666. </Dependent>
  14667. </ReferentialConstraint>
  14668. </Association>
  14669. <Association Name="FK_FmsWorkResultCheckItem_CmFile1">
  14670. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  14671. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  14672. <ReferentialConstraint>
  14673. <Principal Role="CmFile">
  14674. <PropertyRef Name="SiteId" />
  14675. <PropertyRef Name="FileId" />
  14676. </Principal>
  14677. <Dependent Role="FmsWorkResultCheckItem">
  14678. <PropertyRef Name="SiteId" />
  14679. <PropertyRef Name="FileId2" />
  14680. </Dependent>
  14681. </ReferentialConstraint>
  14682. </Association>
  14683. <Association Name="FK_CmMenu_CmSite">
  14684. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14685. <End Type="iBemsModel.CmMenu" Role="CmMenu" Multiplicity="*" />
  14686. <ReferentialConstraint>
  14687. <Principal Role="CmSite">
  14688. <PropertyRef Name="SiteId" />
  14689. </Principal>
  14690. <Dependent Role="CmMenu">
  14691. <PropertyRef Name="SiteId" />
  14692. </Dependent>
  14693. </ReferentialConstraint>
  14694. </Association>
  14695. <EntityType Name="BemsChartInfo">
  14696. <Key>
  14697. <PropertyRef Name="SiteId" />
  14698. <PropertyRef Name="FacilityTypeId" />
  14699. <PropertyRef Name="ChartId" />
  14700. </Key>
  14701. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14702. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  14703. <Property Name="ChartId" Type="Int32" Nullable="false" />
  14704. <Property Name="LAxTitle" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  14705. <Property Name="RAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14706. <Property Name="XAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14707. <Property Name="XSFmId" Type="Int32" />
  14708. <Property Name="XSType" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14709. <Property Name="LSFmId1" Type="Int32" Nullable="false" />
  14710. <Property Name="LSName1" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  14711. <Property Name="LSType1" Type="String" Nullable="false" MaxLength="16" FixedLength="false" Unicode="true" />
  14712. <Property Name="LSFmId2" Type="Int32" />
  14713. <Property Name="LSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14714. <Property Name="LSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14715. <Property Name="LSFmId3" Type="Int32" />
  14716. <Property Name="LSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14717. <Property Name="LSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14718. <Property Name="LSFmId4" Type="Int32" />
  14719. <Property Name="LSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14720. <Property Name="LSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14721. <Property Name="RSFmId1" Type="Int32" />
  14722. <Property Name="RSName1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14723. <Property Name="RSType1" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14724. <Property Name="RSFmId2" Type="Int32" />
  14725. <Property Name="RSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14726. <Property Name="RSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14727. <Property Name="RSFmId3" Type="Int32" />
  14728. <Property Name="RSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14729. <Property Name="RSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14730. <Property Name="RSFmId4" Type="Int32" />
  14731. <Property Name="RSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14732. <Property Name="RSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  14733. <Property Name="Title" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  14734. <Property Name="UseX" Type="Boolean" />
  14735. <Property Name="UseLAxMinMax" Type="Boolean" />
  14736. <Property Name="UseRAxMinMax" Type="Boolean" />
  14737. <Property Name="UseXAxMinMax" Type="Boolean" />
  14738. <Property Name="LAxMin" Type="Double" />
  14739. <Property Name="LAxMax" Type="Double" />
  14740. <Property Name="RAxMin" Type="Double" />
  14741. <Property Name="RAxMax" Type="Double" />
  14742. <Property Name="XAxMin" Type="Double" />
  14743. <Property Name="XAxMax" Type="Double" />
  14744. <Property Name="Palette" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  14745. <Property Name="UseChart" Type="Boolean" />
  14746. <Property Name="UseLCTLine" Type="Boolean" Nullable="false" />
  14747. <Property Name="LCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14748. <Property Name="LCTLineValue" Type="Double" />
  14749. <Property Name="UseRCTLine" Type="Boolean" Nullable="false" />
  14750. <Property Name="RCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  14751. <Property Name="RCTLineValue" Type="Double" />
  14752. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsChartInfo" ToRole="BemsFacilityType" />
  14753. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="BemsChartInfo" ToRole="CmSite" />
  14754. </EntityType>
  14755. <Association Name="FK_BemsChartInfo_BemsFacilityType">
  14756. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  14757. <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
  14758. <ReferentialConstraint>
  14759. <Principal Role="BemsFacilityType">
  14760. <PropertyRef Name="FacilityTypeId" />
  14761. </Principal>
  14762. <Dependent Role="BemsChartInfo">
  14763. <PropertyRef Name="FacilityTypeId" />
  14764. </Dependent>
  14765. </ReferentialConstraint>
  14766. </Association>
  14767. <Association Name="FK_BemsChartInfo_CmSite">
  14768. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  14769. <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
  14770. <ReferentialConstraint>
  14771. <Principal Role="CmSite">
  14772. <PropertyRef Name="SiteId" />
  14773. </Principal>
  14774. <Dependent Role="BemsChartInfo">
  14775. <PropertyRef Name="SiteId" />
  14776. </Dependent>
  14777. </ReferentialConstraint>
  14778. </Association>
  14779. <EntityType Name="BemsPeopleIncrease">
  14780. <Key>
  14781. <PropertyRef Name="Date" />
  14782. <PropertyRef Name="SiteId" />
  14783. </Key>
  14784. <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
  14785. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14786. <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14787. <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14788. <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14789. <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14790. <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14791. <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14792. <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14793. <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14794. <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14795. <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14796. <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14797. <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  14798. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="BemsPeopleIncrease" ToRole="CmSite" />
  14799. </EntityType>
  14800. <EntityType Name="BemsPriceCode">
  14801. <Key>
  14802. <PropertyRef Name="PriceCode" />
  14803. </Key>
  14804. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  14805. <Property Name="PriceCodeDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  14806. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  14807. <Property Name="Unit" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
  14808. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePrice" />
  14809. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePriceHistory" />
  14810. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsPriceCode" ToRole="BemsFuelType" />
  14811. </EntityType>
  14812. <EntityType Name="BemsPriceFormula">
  14813. <Key>
  14814. <PropertyRef Name="SiteId" />
  14815. <PropertyRef Name="PriceTypeId" />
  14816. <PropertyRef Name="FacilityTypeId" />
  14817. <PropertyRef Name="FormulaId" />
  14818. <PropertyRef Name="FacilityCode" />
  14819. </Key>
  14820. <Property Name="SiteId" Type="Int32" Nullable="false" />
  14821. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  14822. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  14823. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  14824. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  14825. <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="true" />
  14826. <NavigationProperty Name="BemsFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsPriceFormula" ToRole="BemsFormula" />
  14827. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceFormula" ToRole="BemsPriceType" />
  14828. </EntityType>
  14829. <EntityType Name="BemsPriceMeta">
  14830. <Key>
  14831. <PropertyRef Name="PriceTypeId" />
  14832. <PropertyRef Name="PublishDate" />
  14833. </Key>
  14834. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  14835. <Property Name="PublishDate" Type="DateTime" Nullable="false" Precision="3" />
  14836. <Property Name="BasePrice" Type="Int32" />
  14837. <Property Name="C01_00" Type="Double" />
  14838. <Property Name="C01_01" Type="Double" />
  14839. <Property Name="C01_02" Type="Double" />
  14840. <Property Name="C01_03" Type="Double" />
  14841. <Property Name="C01_04" Type="Double" />
  14842. <Property Name="C01_05" Type="Double" />
  14843. <Property Name="C01_06" Type="Double" />
  14844. <Property Name="C01_07" Type="Double" />
  14845. <Property Name="C01_08" Type="Double" />
  14846. <Property Name="C01_09" Type="Double" />
  14847. <Property Name="C01_10" Type="Double" />
  14848. <Property Name="C01_11" Type="Double" />
  14849. <Property Name="C01_12" Type="Double" />
  14850. <Property Name="C01_13" Type="Double" />
  14851. <Property Name="C01_14" Type="Double" />
  14852. <Property Name="C01_15" Type="Double" />
  14853. <Property Name="C01_16" Type="Double" />
  14854. <Property Name="C01_17" Type="Double" />
  14855. <Property Name="C01_18" Type="Double" />
  14856. <Property Name="C01_19" Type="Double" />
  14857. <Property Name="C01_20" Type="Double" />
  14858. <Property Name="C01_21" Type="Double" />
  14859. <Property Name="C01_22" Type="Double" />
  14860. <Property Name="C01_23" Type="Double" />
  14861. <Property Name="C02_00" Type="Double" />
  14862. <Property Name="C02_01" Type="Double" />
  14863. <Property Name="C02_02" Type="Double" />
  14864. <Property Name="C02_03" Type="Double" />
  14865. <Property Name="C02_04" Type="Double" />
  14866. <Property Name="C02_05" Type="Double" />
  14867. <Property Name="C02_06" Type="Double" />
  14868. <Property Name="C02_07" Type="Double" />
  14869. <Property Name="C02_08" Type="Double" />
  14870. <Property Name="C02_09" Type="Double" />
  14871. <Property Name="C02_10" Type="Double" />
  14872. <Property Name="C02_11" Type="Double" />
  14873. <Property Name="C02_12" Type="Double" />
  14874. <Property Name="C02_13" Type="Double" />
  14875. <Property Name="C02_14" Type="Double" />
  14876. <Property Name="C02_15" Type="Double" />
  14877. <Property Name="C02_16" Type="Double" />
  14878. <Property Name="C02_17" Type="Double" />
  14879. <Property Name="C02_18" Type="Double" />
  14880. <Property Name="C02_19" Type="Double" />
  14881. <Property Name="C02_20" Type="Double" />
  14882. <Property Name="C02_21" Type="Double" />
  14883. <Property Name="C02_22" Type="Double" />
  14884. <Property Name="C02_23" Type="Double" />
  14885. <Property Name="C03_00" Type="Double" />
  14886. <Property Name="C03_01" Type="Double" />
  14887. <Property Name="C03_02" Type="Double" />
  14888. <Property Name="C03_03" Type="Double" />
  14889. <Property Name="C03_04" Type="Double" />
  14890. <Property Name="C03_05" Type="Double" />
  14891. <Property Name="C03_06" Type="Double" />
  14892. <Property Name="C03_07" Type="Double" />
  14893. <Property Name="C03_08" Type="Double" />
  14894. <Property Name="C03_09" Type="Double" />
  14895. <Property Name="C03_10" Type="Double" />
  14896. <Property Name="C03_11" Type="Double" />
  14897. <Property Name="C03_12" Type="Double" />
  14898. <Property Name="C03_13" Type="Double" />
  14899. <Property Name="C03_14" Type="Double" />
  14900. <Property Name="C03_15" Type="Double" />
  14901. <Property Name="C03_16" Type="Double" />
  14902. <Property Name="C03_17" Type="Double" />
  14903. <Property Name="C03_18" Type="Double" />
  14904. <Property Name="C03_19" Type="Double" />
  14905. <Property Name="C03_20" Type="Double" />
  14906. <Property Name="C03_21" Type="Double" />
  14907. <Property Name="C03_22" Type="Double" />
  14908. <Property Name="C03_23" Type="Double" />
  14909. <Property Name="C04_00" Type="Double" />
  14910. <Property Name="C04_01" Type="Double" />
  14911. <Property Name="C04_02" Type="Double" />
  14912. <Property Name="C04_03" Type="Double" />
  14913. <Property Name="C04_04" Type="Double" />
  14914. <Property Name="C04_05" Type="Double" />
  14915. <Property Name="C04_06" Type="Double" />
  14916. <Property Name="C04_07" Type="Double" />
  14917. <Property Name="C04_08" Type="Double" />
  14918. <Property Name="C04_09" Type="Double" />
  14919. <Property Name="C04_10" Type="Double" />
  14920. <Property Name="C04_11" Type="Double" />
  14921. <Property Name="C04_12" Type="Double" />
  14922. <Property Name="C04_13" Type="Double" />
  14923. <Property Name="C04_14" Type="Double" />
  14924. <Property Name="C04_15" Type="Double" />
  14925. <Property Name="C04_16" Type="Double" />
  14926. <Property Name="C04_17" Type="Double" />
  14927. <Property Name="C04_18" Type="Double" />
  14928. <Property Name="C04_19" Type="Double" />
  14929. <Property Name="C04_20" Type="Double" />
  14930. <Property Name="C04_21" Type="Double" />
  14931. <Property Name="C04_22" Type="Double" />
  14932. <Property Name="C04_23" Type="Double" />
  14933. <Property Name="C05_00" Type="Double" />
  14934. <Property Name="C05_01" Type="Double" />
  14935. <Property Name="C05_02" Type="Double" />
  14936. <Property Name="C05_03" Type="Double" />
  14937. <Property Name="C05_04" Type="Double" />
  14938. <Property Name="C05_05" Type="Double" />
  14939. <Property Name="C05_06" Type="Double" />
  14940. <Property Name="C05_07" Type="Double" />
  14941. <Property Name="C05_08" Type="Double" />
  14942. <Property Name="C05_09" Type="Double" />
  14943. <Property Name="C05_10" Type="Double" />
  14944. <Property Name="C05_11" Type="Double" />
  14945. <Property Name="C05_12" Type="Double" />
  14946. <Property Name="C05_13" Type="Double" />
  14947. <Property Name="C05_14" Type="Double" />
  14948. <Property Name="C05_15" Type="Double" />
  14949. <Property Name="C05_16" Type="Double" />
  14950. <Property Name="C05_17" Type="Double" />
  14951. <Property Name="C05_18" Type="Double" />
  14952. <Property Name="C05_19" Type="Double" />
  14953. <Property Name="C05_20" Type="Double" />
  14954. <Property Name="C05_21" Type="Double" />
  14955. <Property Name="C05_22" Type="Double" />
  14956. <Property Name="C05_23" Type="Double" />
  14957. <Property Name="C06_00" Type="Double" />
  14958. <Property Name="C06_01" Type="Double" />
  14959. <Property Name="C06_02" Type="Double" />
  14960. <Property Name="C06_03" Type="Double" />
  14961. <Property Name="C06_04" Type="Double" />
  14962. <Property Name="C06_05" Type="Double" />
  14963. <Property Name="C06_06" Type="Double" />
  14964. <Property Name="C06_07" Type="Double" />
  14965. <Property Name="C06_08" Type="Double" />
  14966. <Property Name="C06_09" Type="Double" />
  14967. <Property Name="C06_10" Type="Double" />
  14968. <Property Name="C06_11" Type="Double" />
  14969. <Property Name="C06_12" Type="Double" />
  14970. <Property Name="C06_13" Type="Double" />
  14971. <Property Name="C06_14" Type="Double" />
  14972. <Property Name="C06_15" Type="Double" />
  14973. <Property Name="C06_16" Type="Double" />
  14974. <Property Name="C06_17" Type="Double" />
  14975. <Property Name="C06_18" Type="Double" />
  14976. <Property Name="C06_19" Type="Double" />
  14977. <Property Name="C06_20" Type="Double" />
  14978. <Property Name="C06_21" Type="Double" />
  14979. <Property Name="C06_22" Type="Double" />
  14980. <Property Name="C06_23" Type="Double" />
  14981. <Property Name="C07_00" Type="Double" />
  14982. <Property Name="C07_01" Type="Double" />
  14983. <Property Name="C07_02" Type="Double" />
  14984. <Property Name="C07_03" Type="Double" />
  14985. <Property Name="C07_04" Type="Double" />
  14986. <Property Name="C07_05" Type="Double" />
  14987. <Property Name="C07_06" Type="Double" />
  14988. <Property Name="C07_07" Type="Double" />
  14989. <Property Name="C07_08" Type="Double" />
  14990. <Property Name="C07_09" Type="Double" />
  14991. <Property Name="C07_10" Type="Double" />
  14992. <Property Name="C07_11" Type="Double" />
  14993. <Property Name="C07_12" Type="Double" />
  14994. <Property Name="C07_13" Type="Double" />
  14995. <Property Name="C07_14" Type="Double" />
  14996. <Property Name="C07_15" Type="Double" />
  14997. <Property Name="C07_16" Type="Double" />
  14998. <Property Name="C07_17" Type="Double" />
  14999. <Property Name="C07_18" Type="Double" />
  15000. <Property Name="C07_19" Type="Double" />
  15001. <Property Name="C07_20" Type="Double" />
  15002. <Property Name="C07_21" Type="Double" />
  15003. <Property Name="C07_22" Type="Double" />
  15004. <Property Name="C07_23" Type="Double" />
  15005. <Property Name="C08_00" Type="Double" />
  15006. <Property Name="C08_01" Type="Double" />
  15007. <Property Name="C08_02" Type="Double" />
  15008. <Property Name="C08_03" Type="Double" />
  15009. <Property Name="C08_04" Type="Double" />
  15010. <Property Name="C08_05" Type="Double" />
  15011. <Property Name="C08_06" Type="Double" />
  15012. <Property Name="C08_07" Type="Double" />
  15013. <Property Name="C08_08" Type="Double" />
  15014. <Property Name="C08_09" Type="Double" />
  15015. <Property Name="C08_10" Type="Double" />
  15016. <Property Name="C08_11" Type="Double" />
  15017. <Property Name="C08_12" Type="Double" />
  15018. <Property Name="C08_13" Type="Double" />
  15019. <Property Name="C08_14" Type="Double" />
  15020. <Property Name="C08_15" Type="Double" />
  15021. <Property Name="C08_16" Type="Double" />
  15022. <Property Name="C08_17" Type="Double" />
  15023. <Property Name="C08_18" Type="Double" />
  15024. <Property Name="C08_19" Type="Double" />
  15025. <Property Name="C08_20" Type="Double" />
  15026. <Property Name="C08_21" Type="Double" />
  15027. <Property Name="C08_22" Type="Double" />
  15028. <Property Name="C08_23" Type="Double" />
  15029. <Property Name="C09_00" Type="Double" />
  15030. <Property Name="C09_01" Type="Double" />
  15031. <Property Name="C09_02" Type="Double" />
  15032. <Property Name="C09_03" Type="Double" />
  15033. <Property Name="C09_04" Type="Double" />
  15034. <Property Name="C09_05" Type="Double" />
  15035. <Property Name="C09_06" Type="Double" />
  15036. <Property Name="C09_07" Type="Double" />
  15037. <Property Name="C09_08" Type="Double" />
  15038. <Property Name="C09_09" Type="Double" />
  15039. <Property Name="C09_10" Type="Double" />
  15040. <Property Name="C09_11" Type="Double" />
  15041. <Property Name="C09_12" Type="Double" />
  15042. <Property Name="C09_13" Type="Double" />
  15043. <Property Name="C09_14" Type="Double" />
  15044. <Property Name="C09_15" Type="Double" />
  15045. <Property Name="C09_16" Type="Double" />
  15046. <Property Name="C09_17" Type="Double" />
  15047. <Property Name="C09_18" Type="Double" />
  15048. <Property Name="C09_19" Type="Double" />
  15049. <Property Name="C09_20" Type="Double" />
  15050. <Property Name="C09_21" Type="Double" />
  15051. <Property Name="C09_22" Type="Double" />
  15052. <Property Name="C09_23" Type="Double" />
  15053. <Property Name="C10_00" Type="Double" />
  15054. <Property Name="C10_01" Type="Double" />
  15055. <Property Name="C10_02" Type="Double" />
  15056. <Property Name="C10_03" Type="Double" />
  15057. <Property Name="C10_04" Type="Double" />
  15058. <Property Name="C10_05" Type="Double" />
  15059. <Property Name="C10_06" Type="Double" />
  15060. <Property Name="C10_07" Type="Double" />
  15061. <Property Name="C10_08" Type="Double" />
  15062. <Property Name="C10_09" Type="Double" />
  15063. <Property Name="C10_10" Type="Double" />
  15064. <Property Name="C10_11" Type="Double" />
  15065. <Property Name="C10_12" Type="Double" />
  15066. <Property Name="C10_13" Type="Double" />
  15067. <Property Name="C10_14" Type="Double" />
  15068. <Property Name="C10_15" Type="Double" />
  15069. <Property Name="C10_16" Type="Double" />
  15070. <Property Name="C10_17" Type="Double" />
  15071. <Property Name="C10_18" Type="Double" />
  15072. <Property Name="C10_19" Type="Double" />
  15073. <Property Name="C10_20" Type="Double" />
  15074. <Property Name="C10_21" Type="Double" />
  15075. <Property Name="C10_22" Type="Double" />
  15076. <Property Name="C10_23" Type="Double" />
  15077. <Property Name="C11_00" Type="Double" />
  15078. <Property Name="C11_01" Type="Double" />
  15079. <Property Name="C11_02" Type="Double" />
  15080. <Property Name="C11_03" Type="Double" />
  15081. <Property Name="C11_04" Type="Double" />
  15082. <Property Name="C11_05" Type="Double" />
  15083. <Property Name="C11_06" Type="Double" />
  15084. <Property Name="C11_07" Type="Double" />
  15085. <Property Name="C11_08" Type="Double" />
  15086. <Property Name="C11_09" Type="Double" />
  15087. <Property Name="C11_10" Type="Double" />
  15088. <Property Name="C11_11" Type="Double" />
  15089. <Property Name="C11_12" Type="Double" />
  15090. <Property Name="C11_13" Type="Double" />
  15091. <Property Name="C11_14" Type="Double" />
  15092. <Property Name="C11_15" Type="Double" />
  15093. <Property Name="C11_16" Type="Double" />
  15094. <Property Name="C11_17" Type="Double" />
  15095. <Property Name="C11_18" Type="Double" />
  15096. <Property Name="C11_19" Type="Double" />
  15097. <Property Name="C11_20" Type="Double" />
  15098. <Property Name="C11_21" Type="Double" />
  15099. <Property Name="C11_22" Type="Double" />
  15100. <Property Name="C11_23" Type="Double" />
  15101. <Property Name="C12_00" Type="Double" />
  15102. <Property Name="C12_01" Type="Double" />
  15103. <Property Name="C12_02" Type="Double" />
  15104. <Property Name="C12_03" Type="Double" />
  15105. <Property Name="C12_04" Type="Double" />
  15106. <Property Name="C12_05" Type="Double" />
  15107. <Property Name="C12_06" Type="Double" />
  15108. <Property Name="C12_07" Type="Double" />
  15109. <Property Name="C12_08" Type="Double" />
  15110. <Property Name="C12_09" Type="Double" />
  15111. <Property Name="C12_10" Type="Double" />
  15112. <Property Name="C12_11" Type="Double" />
  15113. <Property Name="C12_12" Type="Double" />
  15114. <Property Name="C12_13" Type="Double" />
  15115. <Property Name="C12_14" Type="Double" />
  15116. <Property Name="C12_15" Type="Double" />
  15117. <Property Name="C12_16" Type="Double" />
  15118. <Property Name="C12_17" Type="Double" />
  15119. <Property Name="C12_18" Type="Double" />
  15120. <Property Name="C12_19" Type="Double" />
  15121. <Property Name="C12_20" Type="Double" />
  15122. <Property Name="C12_21" Type="Double" />
  15123. <Property Name="C12_22" Type="Double" />
  15124. <Property Name="C12_23" Type="Double" />
  15125. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceMeta" ToRole="BemsPriceType" />
  15126. </EntityType>
  15127. <EntityType Name="BemsPriceType">
  15128. <Key>
  15129. <PropertyRef Name="PriceTypeId" />
  15130. </Key>
  15131. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  15132. <Property Name="PriceTypeIdDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  15133. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15134. <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceFormula" />
  15135. <NavigationProperty Name="BemsPriceMeta" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceMeta" />
  15136. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePriceHistory" />
  15137. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePrice" />
  15138. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsPriceType" ToRole="BemsFuelType" />
  15139. </EntityType>
  15140. <EntityType Name="BemsRentalRate">
  15141. <Key>
  15142. <PropertyRef Name="Date" />
  15143. <PropertyRef Name="SiteId" />
  15144. </Key>
  15145. <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
  15146. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15147. <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15148. <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15149. <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15150. <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15151. <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15152. <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15153. <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15154. <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15155. <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15156. <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15157. <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15158. <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15159. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="BemsRentalRate" ToRole="CmSite" />
  15160. </EntityType>
  15161. <EntityType Name="BemsSitePrice">
  15162. <Key>
  15163. <PropertyRef Name="SiteID" />
  15164. <PropertyRef Name="FuelTypeId" />
  15165. <PropertyRef Name="PriceTypeId" />
  15166. <PropertyRef Name="PriceCode" />
  15167. </Key>
  15168. <Property Name="SiteID" Type="Int32" Nullable="false" />
  15169. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15170. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  15171. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  15172. <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
  15173. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsSitePrice" ToRole="BemsPriceCode" />
  15174. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="BemsSitePrice" ToRole="CmSite" />
  15175. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsSitePrice" ToRole="BemsPriceType" />
  15176. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsSitePrice" ToRole="BemsFuelType" />
  15177. </EntityType>
  15178. <EntityType Name="BemsSitePriceHistory">
  15179. <Key>
  15180. <PropertyRef Name="SiteId" />
  15181. <PropertyRef Name="FuelTypeId" />
  15182. <PropertyRef Name="PriceTypeId" />
  15183. <PropertyRef Name="PriceCode" />
  15184. <PropertyRef Name="PayDate" />
  15185. </Key>
  15186. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15187. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15188. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  15189. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  15190. <Property Name="PriceValue" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  15191. <Property Name="PayDate" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="false" />
  15192. <Property Name="StartDate" Type="DateTime" Precision="3" />
  15193. <Property Name="EndDate" Type="DateTime" Precision="3" />
  15194. <Property Name="PayCharge" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  15195. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsSitePriceHistory" ToRole="BemsPriceCode" />
  15196. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsSitePriceHistory" ToRole="BemsPriceType" />
  15197. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="BemsSitePriceHistory" ToRole="CmSite" />
  15198. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsSitePriceHistory" ToRole="BemsFuelType" />
  15199. </EntityType>
  15200. <Association Name="FK_BemsPriceFormula_BemsFormula">
  15201. <End Type="iBemsModel.BemsFormula" Role="BemsFormula" Multiplicity="1" />
  15202. <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
  15203. <ReferentialConstraint>
  15204. <Principal Role="BemsFormula">
  15205. <PropertyRef Name="SiteId" />
  15206. <PropertyRef Name="FacilityTypeId" />
  15207. <PropertyRef Name="FacilityCode" />
  15208. <PropertyRef Name="FormulaId" />
  15209. </Principal>
  15210. <Dependent Role="BemsPriceFormula">
  15211. <PropertyRef Name="SiteId" />
  15212. <PropertyRef Name="FacilityTypeId" />
  15213. <PropertyRef Name="FacilityCode" />
  15214. <PropertyRef Name="FormulaId" />
  15215. </Dependent>
  15216. </ReferentialConstraint>
  15217. </Association>
  15218. <Association Name="FK_BemsPeopleIncrease_CmSite">
  15219. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15220. <End Type="iBemsModel.BemsPeopleIncrease" Role="BemsPeopleIncrease" Multiplicity="*" />
  15221. <ReferentialConstraint>
  15222. <Principal Role="CmSite">
  15223. <PropertyRef Name="SiteId" />
  15224. </Principal>
  15225. <Dependent Role="BemsPeopleIncrease">
  15226. <PropertyRef Name="SiteId" />
  15227. </Dependent>
  15228. </ReferentialConstraint>
  15229. </Association>
  15230. <Association Name="FK_BemsSitePrice_BemsPriceCode">
  15231. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
  15232. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  15233. <ReferentialConstraint>
  15234. <Principal Role="BemsPriceCode">
  15235. <PropertyRef Name="PriceCode" />
  15236. </Principal>
  15237. <Dependent Role="BemsSitePrice">
  15238. <PropertyRef Name="PriceCode" />
  15239. </Dependent>
  15240. </ReferentialConstraint>
  15241. </Association>
  15242. <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
  15243. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
  15244. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  15245. <ReferentialConstraint>
  15246. <Principal Role="BemsPriceCode">
  15247. <PropertyRef Name="PriceCode" />
  15248. </Principal>
  15249. <Dependent Role="BemsSitePriceHistory">
  15250. <PropertyRef Name="PriceCode" />
  15251. </Dependent>
  15252. </ReferentialConstraint>
  15253. </Association>
  15254. <Association Name="FK_BemsPriceFormula_BemsPriceType">
  15255. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  15256. <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
  15257. <ReferentialConstraint>
  15258. <Principal Role="BemsPriceType">
  15259. <PropertyRef Name="PriceTypeId" />
  15260. </Principal>
  15261. <Dependent Role="BemsPriceFormula">
  15262. <PropertyRef Name="PriceTypeId" />
  15263. </Dependent>
  15264. </ReferentialConstraint>
  15265. </Association>
  15266. <Association Name="FK_BemsPriceMeta_BemsPriceType">
  15267. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  15268. <End Type="iBemsModel.BemsPriceMeta" Role="BemsPriceMeta" Multiplicity="*" />
  15269. <ReferentialConstraint>
  15270. <Principal Role="BemsPriceType">
  15271. <PropertyRef Name="PriceTypeId" />
  15272. </Principal>
  15273. <Dependent Role="BemsPriceMeta">
  15274. <PropertyRef Name="PriceTypeId" />
  15275. </Dependent>
  15276. </ReferentialConstraint>
  15277. </Association>
  15278. <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
  15279. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  15280. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  15281. <ReferentialConstraint>
  15282. <Principal Role="BemsPriceType">
  15283. <PropertyRef Name="PriceTypeId" />
  15284. </Principal>
  15285. <Dependent Role="BemsSitePriceHistory">
  15286. <PropertyRef Name="PriceTypeId" />
  15287. </Dependent>
  15288. </ReferentialConstraint>
  15289. </Association>
  15290. <Association Name="FK_BemsRentalRate_CmSite">
  15291. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15292. <End Type="iBemsModel.BemsRentalRate" Role="BemsRentalRate" Multiplicity="*" />
  15293. <ReferentialConstraint>
  15294. <Principal Role="CmSite">
  15295. <PropertyRef Name="SiteId" />
  15296. </Principal>
  15297. <Dependent Role="BemsRentalRate">
  15298. <PropertyRef Name="SiteId" />
  15299. </Dependent>
  15300. </ReferentialConstraint>
  15301. </Association>
  15302. <Association Name="FK_BemsSitePrice_CmSite1">
  15303. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15304. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  15305. <ReferentialConstraint>
  15306. <Principal Role="CmSite">
  15307. <PropertyRef Name="SiteId" />
  15308. </Principal>
  15309. <Dependent Role="BemsSitePrice">
  15310. <PropertyRef Name="SiteID" />
  15311. </Dependent>
  15312. </ReferentialConstraint>
  15313. </Association>
  15314. <Association Name="FK_BemsSitePriceHistory_CmSite">
  15315. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15316. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  15317. <ReferentialConstraint>
  15318. <Principal Role="CmSite">
  15319. <PropertyRef Name="SiteId" />
  15320. </Principal>
  15321. <Dependent Role="BemsSitePriceHistory">
  15322. <PropertyRef Name="SiteId" />
  15323. </Dependent>
  15324. </ReferentialConstraint>
  15325. </Association>
  15326. <Association Name="FK_BemsSitePrice_BemsPriceType">
  15327. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  15328. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  15329. <ReferentialConstraint>
  15330. <Principal Role="BemsPriceType">
  15331. <PropertyRef Name="PriceTypeId" />
  15332. </Principal>
  15333. <Dependent Role="BemsSitePrice">
  15334. <PropertyRef Name="PriceTypeId" />
  15335. </Dependent>
  15336. </ReferentialConstraint>
  15337. </Association>
  15338. <EntityType Name="BemsMonitoringPointConfig">
  15339. <Key>
  15340. <PropertyRef Name="SiteId" />
  15341. <PropertyRef Name="FacilityCode" />
  15342. <PropertyRef Name="PropertyId" />
  15343. </Key>
  15344. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15345. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15346. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15347. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  15348. <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
  15349. <Property Name="IsSampled" Type="Boolean" Nullable="false" />
  15350. <Property Name="SaveMode" Type="Int32" Nullable="false" />
  15351. <Property Name="ControlPointName" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  15352. <Property Name="IsConverted" Type="Boolean" />
  15353. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsMonitoringPointConfig" ToRole="BemsFacilityType" />
  15354. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPointConfig" ToRole="BemsMonitoringPoint" />
  15355. </EntityType>
  15356. <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
  15357. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  15358. <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="*" />
  15359. <ReferentialConstraint>
  15360. <Principal Role="BemsFacilityType">
  15361. <PropertyRef Name="FacilityTypeId" />
  15362. </Principal>
  15363. <Dependent Role="BemsMonitoringPointConfig">
  15364. <PropertyRef Name="FacilityTypeId" />
  15365. </Dependent>
  15366. </ReferentialConstraint>
  15367. </Association>
  15368. <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  15369. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
  15370. <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="0..1" />
  15371. <ReferentialConstraint>
  15372. <Principal Role="BemsMonitoringPoint">
  15373. <PropertyRef Name="SiteId" />
  15374. <PropertyRef Name="FacilityCode" />
  15375. <PropertyRef Name="PropertyId" />
  15376. </Principal>
  15377. <Dependent Role="BemsMonitoringPointConfig">
  15378. <PropertyRef Name="SiteId" />
  15379. <PropertyRef Name="FacilityCode" />
  15380. <PropertyRef Name="PropertyId" />
  15381. </Dependent>
  15382. </ReferentialConstraint>
  15383. </Association>
  15384. <EntityType Name="BemsAlarmSetting">
  15385. <Key>
  15386. <PropertyRef Name="SiteId" />
  15387. <PropertyRef Name="FacilityTypeId" />
  15388. <PropertyRef Name="FacilityCode" />
  15389. <PropertyRef Name="PropertyId" />
  15390. <PropertyRef Name="FormulaId" />
  15391. </Key>
  15392. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15393. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15394. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15395. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  15396. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  15397. <Property Name="FacilityName" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
  15398. <Property Name="PointName" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  15399. <Property Name="UseUpperLimit" Type="Boolean" Nullable="false" />
  15400. <Property Name="UpperLimit" Type="Double" />
  15401. <Property Name="UseLowerLimit" Type="Boolean" Nullable="false" />
  15402. <Property Name="LowerLimit" Type="Double" />
  15403. <Property Name="UseAlarm" Type="Boolean" Nullable="false" />
  15404. <Property Name="UseSMS" Type="Boolean" Nullable="false" />
  15405. <Property Name="UseEmail" Type="Boolean" Nullable="false" />
  15406. <Property Name="AlarmGroupName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  15407. <Property Name="Content" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  15408. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsAlarmSetting" ToRole="BemsFacilityType" />
  15409. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="BemsAlarmSetting" ToRole="CmSite" />
  15410. <NavigationProperty Name="BemsAlarmLog" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmSetting" ToRole="BemsAlarmLog" />
  15411. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="BemsAlarmSetting" ToRole="CmFacility" />
  15412. </EntityType>
  15413. <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
  15414. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  15415. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  15416. <ReferentialConstraint>
  15417. <Principal Role="BemsFacilityType">
  15418. <PropertyRef Name="FacilityTypeId" />
  15419. </Principal>
  15420. <Dependent Role="BemsAlarmSetting">
  15421. <PropertyRef Name="FacilityTypeId" />
  15422. </Dependent>
  15423. </ReferentialConstraint>
  15424. </Association>
  15425. <Association Name="FK_BemsAlarmSetting_CmSite1">
  15426. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15427. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  15428. <ReferentialConstraint>
  15429. <Principal Role="CmSite">
  15430. <PropertyRef Name="SiteId" />
  15431. </Principal>
  15432. <Dependent Role="BemsAlarmSetting">
  15433. <PropertyRef Name="SiteId" />
  15434. </Dependent>
  15435. </ReferentialConstraint>
  15436. </Association>
  15437. <EntityType Name="BemsAlarmLog">
  15438. <Key>
  15439. <PropertyRef Name="SiteId" />
  15440. <PropertyRef Name="FacilityTypeId" />
  15441. <PropertyRef Name="FacilityCode" />
  15442. <PropertyRef Name="PropertyId" />
  15443. <PropertyRef Name="FormulaId" />
  15444. <PropertyRef Name="CreatedDateTime" />
  15445. </Key>
  15446. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15447. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15448. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15449. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  15450. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  15451. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  15452. <Property Name="CurrentValue" Type="Double" />
  15453. <Property Name="SMSResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
  15454. <Property Name="EmailResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
  15455. <Property Name="Conform" Type="Boolean" />
  15456. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmLog" ToRole="BemsAlarmSetting" />
  15457. </EntityType>
  15458. <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
  15459. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="1" />
  15460. <End Type="iBemsModel.BemsAlarmLog" Role="BemsAlarmLog" Multiplicity="*" />
  15461. <ReferentialConstraint>
  15462. <Principal Role="BemsAlarmSetting">
  15463. <PropertyRef Name="SiteId" />
  15464. <PropertyRef Name="FacilityTypeId" />
  15465. <PropertyRef Name="FacilityCode" />
  15466. <PropertyRef Name="PropertyId" />
  15467. <PropertyRef Name="FormulaId" />
  15468. </Principal>
  15469. <Dependent Role="BemsAlarmLog">
  15470. <PropertyRef Name="SiteId" />
  15471. <PropertyRef Name="FacilityTypeId" />
  15472. <PropertyRef Name="FacilityCode" />
  15473. <PropertyRef Name="PropertyId" />
  15474. <PropertyRef Name="FormulaId" />
  15475. </Dependent>
  15476. </ReferentialConstraint>
  15477. </Association>
  15478. <EntityType Name="BemsAlarmGroup">
  15479. <Key>
  15480. <PropertyRef Name="SiteId" />
  15481. <PropertyRef Name="AlarmGroupId" />
  15482. </Key>
  15483. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15484. <Property Name="AlarmGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  15485. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  15486. </EntityType>
  15487. <EntityType Name="BemsAlarmGroupUser">
  15488. <Key>
  15489. <PropertyRef Name="SiteId" />
  15490. <PropertyRef Name="AlarmGroupId" />
  15491. <PropertyRef Name="UserId" />
  15492. </Key>
  15493. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15494. <Property Name="AlarmGroupId" Type="Int32" Nullable="false" />
  15495. <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  15496. </EntityType>
  15497. <EntityType Name="BemsEnergyCost">
  15498. <Key>
  15499. <PropertyRef Name="SiteId" />
  15500. <PropertyRef Name="FacilityCode" />
  15501. </Key>
  15502. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15503. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15504. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15505. <Property Name="PowerConsumption1" Type="Double" />
  15506. <Property Name="PowerConsumption2" Type="Double" />
  15507. <Property Name="GasConsumption" Type="Double" />
  15508. <Property Name="GasHeatQuantity" Type="Double" />
  15509. <Property Name="PowerPriceTypeId" Type="Int32" />
  15510. <Property Name="GasPriceTypeId" Type="Int32" />
  15511. <Property Name="IsUse" Type="Boolean" />
  15512. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="BemsEnergyCost" ToRole="CmFacility" />
  15513. </EntityType>
  15514. <EntityType Name="BemsEnergyConfigPercentMonth">
  15515. <Key>
  15516. <PropertyRef Name="SiteId" />
  15517. <PropertyRef Name="Year" />
  15518. <PropertyRef Name="Month" />
  15519. </Key>
  15520. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15521. <Property Name="Year" Type="Int32" Nullable="false" />
  15522. <Property Name="Month" Type="Int32" Nullable="false" />
  15523. <Property Name="Electricity" Type="Double" />
  15524. <Property Name="Gas" Type="Double" />
  15525. <Property Name="Water" Type="Double" />
  15526. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="BemsEnergyConfigPercentMonth" ToRole="CmSite" />
  15527. </EntityType>
  15528. <EntityType Name="BemsEnergyConfigPercentWeek">
  15529. <Key>
  15530. <PropertyRef Name="SiteId" />
  15531. <PropertyRef Name="Year" />
  15532. <PropertyRef Name="Week" />
  15533. </Key>
  15534. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15535. <Property Name="Year" Type="Int32" Nullable="false" />
  15536. <Property Name="Week" Type="Int32" Nullable="false" />
  15537. <Property Name="Electricity" Type="Double" />
  15538. <Property Name="Gas" Type="Double" />
  15539. <Property Name="Water" Type="Double" />
  15540. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="BemsEnergyConfigPercentWeek" ToRole="CmSite" />
  15541. </EntityType>
  15542. <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
  15543. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15544. <End Type="iBemsModel.BemsEnergyConfigPercentMonth" Role="BemsEnergyConfigPercentMonth" Multiplicity="*" />
  15545. <ReferentialConstraint>
  15546. <Principal Role="CmSite">
  15547. <PropertyRef Name="SiteId" />
  15548. </Principal>
  15549. <Dependent Role="BemsEnergyConfigPercentMonth">
  15550. <PropertyRef Name="SiteId" />
  15551. </Dependent>
  15552. </ReferentialConstraint>
  15553. </Association>
  15554. <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
  15555. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15556. <End Type="iBemsModel.BemsEnergyConfigPercentWeek" Role="BemsEnergyConfigPercentWeek" Multiplicity="*" />
  15557. <ReferentialConstraint>
  15558. <Principal Role="CmSite">
  15559. <PropertyRef Name="SiteId" />
  15560. </Principal>
  15561. <Dependent Role="BemsEnergyConfigPercentWeek">
  15562. <PropertyRef Name="SiteId" />
  15563. </Dependent>
  15564. </ReferentialConstraint>
  15565. </Association>
  15566. <EntityType Name="BemsEnergyDaily">
  15567. <Key>
  15568. <PropertyRef Name="SiteId" />
  15569. <PropertyRef Name="BuildingId" />
  15570. <PropertyRef Name="ServiceTypeId" />
  15571. <PropertyRef Name="FuelTypeId" />
  15572. <PropertyRef Name="CreatedDate" />
  15573. </Key>
  15574. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15575. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  15576. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  15577. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15578. <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="0" />
  15579. <Property Name="Prediction" Type="Double" />
  15580. <Property Name="Measurement" Type="Double" />
  15581. <Property Name="Goal" Type="Double" />
  15582. <Property Name="Prediction_Regression" Type="Double" />
  15583. <Property Name="MeanT" Type="Double" />
  15584. <Property Name="HDD" Type="Double" />
  15585. <Property Name="CDD" Type="Double" />
  15586. <NavigationProperty Name="BemsServiceType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsEnergyDaily" ToRole="BemsServiceType" />
  15587. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="BemsEnergyDaily" ToRole="CmBuilding" />
  15588. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsEnergyDaily" ToRole="BemsFuelType" />
  15589. </EntityType>
  15590. <Association Name="FK__BemsEnergyDaily__BemsServiceType">
  15591. <End Type="iBemsModel.BemsServiceType" Role="BemsServiceType" Multiplicity="1" />
  15592. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  15593. <ReferentialConstraint>
  15594. <Principal Role="BemsServiceType">
  15595. <PropertyRef Name="ServiceTypeId" />
  15596. </Principal>
  15597. <Dependent Role="BemsEnergyDaily">
  15598. <PropertyRef Name="ServiceTypeId" />
  15599. </Dependent>
  15600. </ReferentialConstraint>
  15601. </Association>
  15602. <Association Name="FK__BemsEnergyDaily__CmBuilding">
  15603. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
  15604. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  15605. <ReferentialConstraint>
  15606. <Principal Role="CmBuilding">
  15607. <PropertyRef Name="SiteId" />
  15608. <PropertyRef Name="BuildingId" />
  15609. </Principal>
  15610. <Dependent Role="BemsEnergyDaily">
  15611. <PropertyRef Name="SiteId" />
  15612. <PropertyRef Name="BuildingId" />
  15613. </Dependent>
  15614. </ReferentialConstraint>
  15615. </Association>
  15616. <EntityType Name="BemsEnergyDailyRegression">
  15617. <Key>
  15618. <PropertyRef Name="SiteId" />
  15619. </Key>
  15620. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15621. <Property Name="Weekday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15622. <Property Name="Weekday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15623. <Property Name="Weekday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15624. <Property Name="Weekday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15625. <Property Name="Weekday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15626. <Property Name="Weekday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15627. <Property Name="Holiday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15628. <Property Name="Holiday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15629. <Property Name="Holiday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15630. <Property Name="Holiday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15631. <Property Name="Holiday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15632. <Property Name="Holiday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  15633. <Property Name="IsRegression" Type="Boolean" />
  15634. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="BemsEnergyDailyRegression" ToRole="CmSite" />
  15635. </EntityType>
  15636. <Association Name="FK_BemsEnergyDailyRegression_CmSite">
  15637. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  15638. <End Type="iBemsModel.BemsEnergyDailyRegression" Role="BemsEnergyDailyRegression" Multiplicity="0..1" />
  15639. <ReferentialConstraint>
  15640. <Principal Role="CmSite">
  15641. <PropertyRef Name="SiteId" />
  15642. </Principal>
  15643. <Dependent Role="BemsEnergyDailyRegression">
  15644. <PropertyRef Name="SiteId" />
  15645. </Dependent>
  15646. </ReferentialConstraint>
  15647. </Association>
  15648. <EntityType Name="WeatherDongNaeForecast">
  15649. <Key>
  15650. <PropertyRef Name="BaseTime" />
  15651. <PropertyRef Name="ForecastTime" />
  15652. </Key>
  15653. <Property Name="BaseTime" Type="DateTime" Nullable="false" Precision="3" />
  15654. <Property Name="nx" Type="Int32" />
  15655. <Property Name="ny" Type="Int32" />
  15656. <Property Name="ForecastTime" Type="DateTime" Nullable="false" Precision="3" />
  15657. <Property Name="POP" Type="Double" />
  15658. <Property Name="PTY" Type="Double" />
  15659. <Property Name="R06" Type="Double" />
  15660. <Property Name="REH" Type="Double" />
  15661. <Property Name="S06" Type="Double" />
  15662. <Property Name="SKY" Type="Double" />
  15663. <Property Name="T3H" Type="Double" />
  15664. <Property Name="TMN" Type="Double" />
  15665. <Property Name="TMX" Type="Double" />
  15666. <Property Name="UUU" Type="Double" />
  15667. <Property Name="VVV" Type="Double" />
  15668. <Property Name="VEC" Type="Double" />
  15669. <Property Name="WSD" Type="Double" />
  15670. <Property Name="Type" Type="Int32" />
  15671. <Property Name="DBTime" Type="DateTime" Precision="3" />
  15672. <Property Name="Version" Type="Int32" />
  15673. </EntityType>
  15674. <EntityType Name="FmsEquipmentRentInfo">
  15675. <Key>
  15676. <PropertyRef Name="SiteId" />
  15677. <PropertyRef Name="EquipmentRentId" />
  15678. </Key>
  15679. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15680. <Property Name="EquipmentRentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  15681. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  15682. <Property Name="RentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  15683. <Property Name="RegisterDate" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
  15684. <Property Name="RentDate" Type="DateTime" Precision="3" />
  15685. <Property Name="ReturnDueDate" Type="DateTime" Precision="3" />
  15686. <Property Name="ReturnFixDate" Type="DateTime" Precision="3" />
  15687. <Property Name="EquipmentStateTypeId" Type="Int16" />
  15688. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  15689. <Property Name="Title" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  15690. <Property Name="RentUser" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  15691. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
  15692. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
  15693. <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentCodeStateType" />
  15694. <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentHistory" />
  15695. </EntityType>
  15696. <Association Name="FK_FmsEquipmentRentInfo_CmUser">
  15697. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  15698. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  15699. <ReferentialConstraint>
  15700. <Principal Role="CmUser">
  15701. <PropertyRef Name="SiteId" />
  15702. <PropertyRef Name="UserId" />
  15703. </Principal>
  15704. <Dependent Role="FmsEquipmentRentInfo">
  15705. <PropertyRef Name="SiteId" />
  15706. <PropertyRef Name="RegisterUserId" />
  15707. </Dependent>
  15708. </ReferentialConstraint>
  15709. </Association>
  15710. <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
  15711. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  15712. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  15713. <ReferentialConstraint>
  15714. <Principal Role="CmUser">
  15715. <PropertyRef Name="SiteId" />
  15716. <PropertyRef Name="UserId" />
  15717. </Principal>
  15718. <Dependent Role="FmsEquipmentRentInfo">
  15719. <PropertyRef Name="SiteId" />
  15720. <PropertyRef Name="RentUserId" />
  15721. </Dependent>
  15722. </ReferentialConstraint>
  15723. </Association>
  15724. <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  15725. <End Type="iBemsModel.FmsEquipmentCodeStateType" Role="FmsEquipmentCodeStateType" Multiplicity="0..1" />
  15726. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  15727. <ReferentialConstraint>
  15728. <Principal Role="FmsEquipmentCodeStateType">
  15729. <PropertyRef Name="EquipmentStateTypeId" />
  15730. </Principal>
  15731. <Dependent Role="FmsEquipmentRentInfo">
  15732. <PropertyRef Name="EquipmentStateTypeId" />
  15733. </Dependent>
  15734. </ReferentialConstraint>
  15735. </Association>
  15736. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  15737. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="0..1">
  15738. <OnDelete Action="Cascade" />
  15739. </End>
  15740. <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
  15741. <ReferentialConstraint>
  15742. <Principal Role="FmsEquipmentRentInfo">
  15743. <PropertyRef Name="SiteId" />
  15744. <PropertyRef Name="EquipmentRentId" />
  15745. </Principal>
  15746. <Dependent Role="FmsEquipmentHistory">
  15747. <PropertyRef Name="SiteId" />
  15748. <PropertyRef Name="EquipmentRentId" />
  15749. </Dependent>
  15750. </ReferentialConstraint>
  15751. </Association>
  15752. <EntityType Name="BemsControlAHUTempConfig">
  15753. <Key>
  15754. <PropertyRef Name="SiteId" />
  15755. <PropertyRef Name="FacilityTypeId" />
  15756. <PropertyRef Name="FacilityCode" />
  15757. </Key>
  15758. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15759. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15760. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  15761. <Property Name="MaxTemperature" Type="Double" Nullable="false" />
  15762. <Property Name="MinTemperature" Type="Double" Nullable="false" />
  15763. </EntityType>
  15764. <EntityType Name="BemsFuelType">
  15765. <Key>
  15766. <PropertyRef Name="FuelTypeId" />
  15767. </Key>
  15768. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  15769. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  15770. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsEnergyDaily" />
  15771. <NavigationProperty Name="BemsFactorCo2" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorCo2" />
  15772. <NavigationProperty Name="BemsFactorToe" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorToe" />
  15773. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPoint" />
  15774. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPointBaseData" />
  15775. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="BemsFuelType" ToRole="CmFacility" />
  15776. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsNoticePriceContractType" />
  15777. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsPriceCode" />
  15778. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsFuelType" ToRole="BemsPriceType" />
  15779. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePrice" />
  15780. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePriceHistory" />
  15781. </EntityType>
  15782. <Association Name="FK__BemsEnergyDaily__BemsFuelType">
  15783. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15784. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  15785. <ReferentialConstraint>
  15786. <Principal Role="BemsFuelType">
  15787. <PropertyRef Name="FuelTypeId" />
  15788. </Principal>
  15789. <Dependent Role="BemsEnergyDaily">
  15790. <PropertyRef Name="FuelTypeId" />
  15791. </Dependent>
  15792. </ReferentialConstraint>
  15793. </Association>
  15794. <Association Name="FK__BemsFactorCo2__BemsFuelType">
  15795. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15796. <End Type="iBemsModel.BemsFactorCo2" Role="BemsFactorCo2" Multiplicity="0..1" />
  15797. <ReferentialConstraint>
  15798. <Principal Role="BemsFuelType">
  15799. <PropertyRef Name="FuelTypeId" />
  15800. </Principal>
  15801. <Dependent Role="BemsFactorCo2">
  15802. <PropertyRef Name="FuelTypeId" />
  15803. </Dependent>
  15804. </ReferentialConstraint>
  15805. </Association>
  15806. <Association Name="FK__BemsFactorToe__BemsFuelType">
  15807. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15808. <End Type="iBemsModel.BemsFactorToe" Role="BemsFactorToe" Multiplicity="0..1" />
  15809. <ReferentialConstraint>
  15810. <Principal Role="BemsFuelType">
  15811. <PropertyRef Name="FuelTypeId" />
  15812. </Principal>
  15813. <Dependent Role="BemsFactorToe">
  15814. <PropertyRef Name="FuelTypeId" />
  15815. </Dependent>
  15816. </ReferentialConstraint>
  15817. </Association>
  15818. <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
  15819. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  15820. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
  15821. <ReferentialConstraint>
  15822. <Principal Role="BemsFuelType">
  15823. <PropertyRef Name="FuelTypeId" />
  15824. </Principal>
  15825. <Dependent Role="BemsMonitoringPoint">
  15826. <PropertyRef Name="FuelTypeId" />
  15827. </Dependent>
  15828. </ReferentialConstraint>
  15829. </Association>
  15830. <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
  15831. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  15832. <End Type="iBemsModel.BemsMonitoringPointBaseData" Role="BemsMonitoringPointBaseData" Multiplicity="*" />
  15833. <ReferentialConstraint>
  15834. <Principal Role="BemsFuelType">
  15835. <PropertyRef Name="FuelTypeId" />
  15836. </Principal>
  15837. <Dependent Role="BemsMonitoringPointBaseData">
  15838. <PropertyRef Name="FuelTypeId" />
  15839. </Dependent>
  15840. </ReferentialConstraint>
  15841. </Association>
  15842. <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
  15843. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15844. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="*" />
  15845. <ReferentialConstraint>
  15846. <Principal Role="BemsFuelType">
  15847. <PropertyRef Name="FuelTypeId" />
  15848. </Principal>
  15849. <Dependent Role="BemsNoticePriceContractType">
  15850. <PropertyRef Name="FuelTypeId" />
  15851. </Dependent>
  15852. </ReferentialConstraint>
  15853. </Association>
  15854. <Association Name="FK_BemsPriceCode_BemsFuelType">
  15855. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15856. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="*" />
  15857. <ReferentialConstraint>
  15858. <Principal Role="BemsFuelType">
  15859. <PropertyRef Name="FuelTypeId" />
  15860. </Principal>
  15861. <Dependent Role="BemsPriceCode">
  15862. <PropertyRef Name="FuelTypeId" />
  15863. </Dependent>
  15864. </ReferentialConstraint>
  15865. </Association>
  15866. <Association Name="FK_BemsPriceType_BemsFuelType1">
  15867. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15868. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="*" />
  15869. <ReferentialConstraint>
  15870. <Principal Role="BemsFuelType">
  15871. <PropertyRef Name="FuelTypeId" />
  15872. </Principal>
  15873. <Dependent Role="BemsPriceType">
  15874. <PropertyRef Name="FuelTypeId" />
  15875. </Dependent>
  15876. </ReferentialConstraint>
  15877. </Association>
  15878. <Association Name="FK_BemsSitePrice_BemsFuelType">
  15879. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15880. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  15881. <ReferentialConstraint>
  15882. <Principal Role="BemsFuelType">
  15883. <PropertyRef Name="FuelTypeId" />
  15884. </Principal>
  15885. <Dependent Role="BemsSitePrice">
  15886. <PropertyRef Name="FuelTypeId" />
  15887. </Dependent>
  15888. </ReferentialConstraint>
  15889. </Association>
  15890. <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
  15891. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  15892. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  15893. <ReferentialConstraint>
  15894. <Principal Role="BemsFuelType">
  15895. <PropertyRef Name="FuelTypeId" />
  15896. </Principal>
  15897. <Dependent Role="BemsSitePriceHistory">
  15898. <PropertyRef Name="FuelTypeId" />
  15899. </Dependent>
  15900. </ReferentialConstraint>
  15901. </Association>
  15902. <EntityType Name="CmFacility">
  15903. <Key>
  15904. <PropertyRef Name="SiteId" />
  15905. <PropertyRef Name="FacilityCode" />
  15906. </Key>
  15907. <Property Name="SiteId" Type="Int32" Nullable="false" />
  15908. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  15909. <Property Name="FacilityCode" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  15910. <Property Name="FirstClassId" Type="Int32" />
  15911. <Property Name="SecondClassId" Type="Int32" />
  15912. <Property Name="ThirdClassId" Type="Int32" />
  15913. <Property Name="DeviceType" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  15914. <Property Name="ParentFacilityCode" Type="Int32" />
  15915. <Property Name="Name" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
  15916. <Property Name="Nickname" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  15917. <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  15918. <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  15919. <Property Name="ManufactureDate" Type="DateTime" Precision="0" />
  15920. <Property Name="ManufactureSerial" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  15921. <Property Name="ManufactureModel" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  15922. <Property Name="Supplier" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  15923. <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  15924. <Property Name="BuildingId" Type="Int32" />
  15925. <Property Name="FloorId" Type="Int32" />
  15926. <Property Name="ZoneId" Type="Int32" />
  15927. <Property Name="InstallDate" Type="DateTime" Precision="0" />
  15928. <Property Name="OperationStartDate" Type="DateTime" Precision="0" />
  15929. <Property Name="FacilityCapacity" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  15930. <Property Name="FacilityCost" Type="Int32" />
  15931. <Property Name="FacilityCount" Type="Int32" />
  15932. <Property Name="FacilitySeviceLifeYear" Type="Int32" />
  15933. <Property Name="FacilityUsage" Type="String" MaxLength="80" FixedLength="false" Unicode="true" />
  15934. <Property Name="RatedPowerConsumption" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  15935. <Property Name="RatedCOP" Type="Double" />
  15936. <Property Name="MainContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  15937. <Property Name="SubContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  15938. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  15939. <Property Name="Reserved1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  15940. <Property Name="Reserved2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  15941. <Property Name="IsUse" Type="Boolean" />
  15942. <Property Name="FileId" Type="Int32" />
  15943. <Property Name="IsVirtualFacility" Type="Boolean" Nullable="false" />
  15944. <Property Name="FuelTypeId" Type="Int16" />
  15945. <Property Name="ContractType" Type="Int16" />
  15946. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="CmFacility" ToRole="BemsAlarmSetting" />
  15947. <NavigationProperty Name="BemsEnergyCost" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="CmFacility" ToRole="BemsEnergyCost" />
  15948. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="CmFacility" ToRole="BemsFacilityType" />
  15949. <NavigationProperty Name="BemsFormulaParameter" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="CmFacility" ToRole="BemsFormulaParameter" />
  15950. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="CmFacility" ToRole="BemsFuelType" />
  15951. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="CmFacility" ToRole="BemsMonitoringPoint" />
  15952. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="CmFacility" ToRole="BemsNoticePriceContractType" />
  15953. <NavigationProperty Name="BemsPeakFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="CmFacility" ToRole="BemsPeakFacility" />
  15954. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmFacility" ToRole="CmBuilding" />
  15955. <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFacility" ToRole="CmFloor" />
  15956. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmFacility" ToRole="CmUser" />
  15957. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmFacility" ToRole="CmUser" />
  15958. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility" ToRole="CmFacility1" />
  15959. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility1" ToRole="CmFacility" />
  15960. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFacility" ToRole="CmFile" />
  15961. <NavigationProperty Name="CmZone" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmFacility" ToRole="CmZone" />
  15962. <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  15963. <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  15964. <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  15965. <NavigationProperty Name="CmFacilityFile" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacility" ToRole="CmFacilityFile" />
  15966. <NavigationProperty Name="FmsFacilityManual" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="CmFacility" ToRole="FmsFacilityManual" />
  15967. <NavigationProperty Name="FmsFacilityOperationItem" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="CmFacility" ToRole="FmsFacilityOperationItem" />
  15968. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultCheckItem" />
  15969. <NavigationProperty Name="FmsWorkResultToFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultToFacility" />
  15970. <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmFacility" ToRole="CmUser" />
  15971. <NavigationProperty Name="CmUser3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmFacility" ToRole="CmUser" />
  15972. <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacility" ToRole="CmFacilityTempSet" />
  15973. <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkOrderToFacility" />
  15974. <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkRequestToFacility" />
  15975. <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkScheduleToFacility" />
  15976. </EntityType>
  15977. <Association Name="FK_BemsAlarmSetting_CmFacility">
  15978. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  15979. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  15980. <ReferentialConstraint>
  15981. <Principal Role="CmFacility">
  15982. <PropertyRef Name="SiteId" />
  15983. <PropertyRef Name="FacilityCode" />
  15984. </Principal>
  15985. <Dependent Role="BemsAlarmSetting">
  15986. <PropertyRef Name="SiteId" />
  15987. <PropertyRef Name="FacilityCode" />
  15988. </Dependent>
  15989. </ReferentialConstraint>
  15990. </Association>
  15991. <Association Name="FK_BemsEnergyCost_CmFacility">
  15992. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  15993. <End Type="iBemsModel.BemsEnergyCost" Role="BemsEnergyCost" Multiplicity="0..1" />
  15994. <ReferentialConstraint>
  15995. <Principal Role="CmFacility">
  15996. <PropertyRef Name="SiteId" />
  15997. <PropertyRef Name="FacilityCode" />
  15998. </Principal>
  15999. <Dependent Role="BemsEnergyCost">
  16000. <PropertyRef Name="SiteId" />
  16001. <PropertyRef Name="FacilityCode" />
  16002. </Dependent>
  16003. </ReferentialConstraint>
  16004. </Association>
  16005. <Association Name="FK__CmFacility__BemsFacilityType">
  16006. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  16007. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16008. <ReferentialConstraint>
  16009. <Principal Role="BemsFacilityType">
  16010. <PropertyRef Name="FacilityTypeId" />
  16011. </Principal>
  16012. <Dependent Role="CmFacility">
  16013. <PropertyRef Name="FacilityTypeId" />
  16014. </Dependent>
  16015. </ReferentialConstraint>
  16016. </Association>
  16017. <Association Name="FK_BemsFormulaParameter_CmFacility">
  16018. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16019. <End Type="iBemsModel.BemsFormulaParameter" Role="BemsFormulaParameter" Multiplicity="*" />
  16020. <ReferentialConstraint>
  16021. <Principal Role="CmFacility">
  16022. <PropertyRef Name="SiteId" />
  16023. <PropertyRef Name="FacilityCode" />
  16024. </Principal>
  16025. <Dependent Role="BemsFormulaParameter">
  16026. <PropertyRef Name="SiteId" />
  16027. <PropertyRef Name="FacilityCode" />
  16028. </Dependent>
  16029. </ReferentialConstraint>
  16030. </Association>
  16031. <Association Name="FK_CmFacility_BemsFuelType">
  16032. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  16033. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16034. <ReferentialConstraint>
  16035. <Principal Role="BemsFuelType">
  16036. <PropertyRef Name="FuelTypeId" />
  16037. </Principal>
  16038. <Dependent Role="CmFacility">
  16039. <PropertyRef Name="FuelTypeId" />
  16040. </Dependent>
  16041. </ReferentialConstraint>
  16042. </Association>
  16043. <Association Name="FK_BemsMonitoringPoint_CmFacility">
  16044. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16045. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
  16046. <ReferentialConstraint>
  16047. <Principal Role="CmFacility">
  16048. <PropertyRef Name="SiteId" />
  16049. <PropertyRef Name="FacilityCode" />
  16050. </Principal>
  16051. <Dependent Role="BemsMonitoringPoint">
  16052. <PropertyRef Name="SiteId" />
  16053. <PropertyRef Name="FacilityCode" />
  16054. </Dependent>
  16055. </ReferentialConstraint>
  16056. </Association>
  16057. <Association Name="FK_CmFacility_BemsNoticePriceContractType">
  16058. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="0..1" />
  16059. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16060. <ReferentialConstraint>
  16061. <Principal Role="BemsNoticePriceContractType">
  16062. <PropertyRef Name="FuelTypeId" />
  16063. <PropertyRef Name="ContractType" />
  16064. </Principal>
  16065. <Dependent Role="CmFacility">
  16066. <PropertyRef Name="FuelTypeId" />
  16067. <PropertyRef Name="ContractType" />
  16068. </Dependent>
  16069. </ReferentialConstraint>
  16070. </Association>
  16071. <Association Name="FK_BemsPeakFacility_CmFacility">
  16072. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16073. <End Type="iBemsModel.BemsPeakFacility" Role="BemsPeakFacility" Multiplicity="*" />
  16074. <ReferentialConstraint>
  16075. <Principal Role="CmFacility">
  16076. <PropertyRef Name="SiteId" />
  16077. <PropertyRef Name="FacilityCode" />
  16078. </Principal>
  16079. <Dependent Role="BemsPeakFacility">
  16080. <PropertyRef Name="SiteId" />
  16081. <PropertyRef Name="FacilityCode" />
  16082. </Dependent>
  16083. </ReferentialConstraint>
  16084. </Association>
  16085. <Association Name="FK__CmFacility__CmBuilding">
  16086. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="0..1" />
  16087. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16088. <ReferentialConstraint>
  16089. <Principal Role="CmBuilding">
  16090. <PropertyRef Name="SiteId" />
  16091. <PropertyRef Name="BuildingId" />
  16092. </Principal>
  16093. <Dependent Role="CmFacility">
  16094. <PropertyRef Name="SiteId" />
  16095. <PropertyRef Name="BuildingId" />
  16096. </Dependent>
  16097. </ReferentialConstraint>
  16098. </Association>
  16099. <Association Name="FK__CmFacility__74444068">
  16100. <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="0..1" />
  16101. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16102. <ReferentialConstraint>
  16103. <Principal Role="CmFloor">
  16104. <PropertyRef Name="SiteId" />
  16105. <PropertyRef Name="BuildingId" />
  16106. <PropertyRef Name="FloorId" />
  16107. </Principal>
  16108. <Dependent Role="CmFacility">
  16109. <PropertyRef Name="SiteId" />
  16110. <PropertyRef Name="BuildingId" />
  16111. <PropertyRef Name="FloorId" />
  16112. </Dependent>
  16113. </ReferentialConstraint>
  16114. </Association>
  16115. <Association Name="FK__CmFacility__753864A1">
  16116. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  16117. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16118. <ReferentialConstraint>
  16119. <Principal Role="CmUser">
  16120. <PropertyRef Name="SiteId" />
  16121. <PropertyRef Name="UserId" />
  16122. </Principal>
  16123. <Dependent Role="CmFacility">
  16124. <PropertyRef Name="SiteId" />
  16125. <PropertyRef Name="MainContactorUserId" />
  16126. </Dependent>
  16127. </ReferentialConstraint>
  16128. </Association>
  16129. <Association Name="FK__CmFacility__762C88DA">
  16130. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  16131. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16132. <ReferentialConstraint>
  16133. <Principal Role="CmUser">
  16134. <PropertyRef Name="SiteId" />
  16135. <PropertyRef Name="UserId" />
  16136. </Principal>
  16137. <Dependent Role="CmFacility">
  16138. <PropertyRef Name="SiteId" />
  16139. <PropertyRef Name="SubContactorUserId" />
  16140. </Dependent>
  16141. </ReferentialConstraint>
  16142. </Association>
  16143. <Association Name="FK__CmFacility__CmFacility">
  16144. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
  16145. <End Type="iBemsModel.CmFacility" Role="CmFacility1" Multiplicity="*" />
  16146. <ReferentialConstraint>
  16147. <Principal Role="CmFacility">
  16148. <PropertyRef Name="SiteId" />
  16149. <PropertyRef Name="FacilityCode" />
  16150. </Principal>
  16151. <Dependent Role="CmFacility1">
  16152. <PropertyRef Name="SiteId" />
  16153. <PropertyRef Name="ParentFacilityCode" />
  16154. </Dependent>
  16155. </ReferentialConstraint>
  16156. </Association>
  16157. <Association Name="FK__CmFacility__CmFile">
  16158. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  16159. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16160. <ReferentialConstraint>
  16161. <Principal Role="CmFile">
  16162. <PropertyRef Name="SiteId" />
  16163. <PropertyRef Name="FileId" />
  16164. </Principal>
  16165. <Dependent Role="CmFacility">
  16166. <PropertyRef Name="SiteId" />
  16167. <PropertyRef Name="FileId" />
  16168. </Dependent>
  16169. </ReferentialConstraint>
  16170. </Association>
  16171. <Association Name="FK__CmFacility__CmZone">
  16172. <End Type="iBemsModel.CmZone" Role="CmZone" Multiplicity="0..1" />
  16173. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16174. <ReferentialConstraint>
  16175. <Principal Role="CmZone">
  16176. <PropertyRef Name="SiteId" />
  16177. <PropertyRef Name="BuildingId" />
  16178. <PropertyRef Name="FloorId" />
  16179. <PropertyRef Name="ZoneId" />
  16180. </Principal>
  16181. <Dependent Role="CmFacility">
  16182. <PropertyRef Name="SiteId" />
  16183. <PropertyRef Name="BuildingId" />
  16184. <PropertyRef Name="FloorId" />
  16185. <PropertyRef Name="ZoneId" />
  16186. </Dependent>
  16187. </ReferentialConstraint>
  16188. </Association>
  16189. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsFirst">
  16190. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  16191. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16192. <ReferentialConstraint>
  16193. <Principal Role="FmsFacilityCodeClass">
  16194. <PropertyRef Name="SiteId" />
  16195. <PropertyRef Name="FacilityClassId" />
  16196. </Principal>
  16197. <Dependent Role="CmFacility">
  16198. <PropertyRef Name="SiteId" />
  16199. <PropertyRef Name="FirstClassId" />
  16200. </Dependent>
  16201. </ReferentialConstraint>
  16202. </Association>
  16203. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsSecond">
  16204. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  16205. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16206. <ReferentialConstraint>
  16207. <Principal Role="FmsFacilityCodeClass">
  16208. <PropertyRef Name="SiteId" />
  16209. <PropertyRef Name="FacilityClassId" />
  16210. </Principal>
  16211. <Dependent Role="CmFacility">
  16212. <PropertyRef Name="SiteId" />
  16213. <PropertyRef Name="SecondClassId" />
  16214. </Dependent>
  16215. </ReferentialConstraint>
  16216. </Association>
  16217. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsThird">
  16218. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  16219. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16220. <ReferentialConstraint>
  16221. <Principal Role="FmsFacilityCodeClass">
  16222. <PropertyRef Name="SiteId" />
  16223. <PropertyRef Name="FacilityClassId" />
  16224. </Principal>
  16225. <Dependent Role="CmFacility">
  16226. <PropertyRef Name="SiteId" />
  16227. <PropertyRef Name="ThirdClassId" />
  16228. </Dependent>
  16229. </ReferentialConstraint>
  16230. </Association>
  16231. <Association Name="FK__CmFacilityFile__7720AD13">
  16232. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16233. <End Type="iBemsModel.CmFacilityFile" Role="CmFacilityFile" Multiplicity="*" />
  16234. <ReferentialConstraint>
  16235. <Principal Role="CmFacility">
  16236. <PropertyRef Name="SiteId" />
  16237. <PropertyRef Name="FacilityCode" />
  16238. </Principal>
  16239. <Dependent Role="CmFacilityFile">
  16240. <PropertyRef Name="SiteId" />
  16241. <PropertyRef Name="FacilityCode" />
  16242. </Dependent>
  16243. </ReferentialConstraint>
  16244. </Association>
  16245. <Association Name="FK__CmFacilityManual__79FD19BE">
  16246. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16247. <End Type="iBemsModel.FmsFacilityManual" Role="FmsFacilityManual" Multiplicity="*" />
  16248. <ReferentialConstraint>
  16249. <Principal Role="CmFacility">
  16250. <PropertyRef Name="SiteId" />
  16251. <PropertyRef Name="FacilityCode" />
  16252. </Principal>
  16253. <Dependent Role="FmsFacilityManual">
  16254. <PropertyRef Name="SiteId" />
  16255. <PropertyRef Name="FacilityCode" />
  16256. </Dependent>
  16257. </ReferentialConstraint>
  16258. </Association>
  16259. <Association Name="FK__FmsFacilityOpera__725BF7F6">
  16260. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16261. <End Type="iBemsModel.FmsFacilityOperationItem" Role="FmsFacilityOperationItem" Multiplicity="0..1" />
  16262. <ReferentialConstraint>
  16263. <Principal Role="CmFacility">
  16264. <PropertyRef Name="SiteId" />
  16265. <PropertyRef Name="FacilityCode" />
  16266. </Principal>
  16267. <Dependent Role="FmsFacilityOperationItem">
  16268. <PropertyRef Name="SiteId" />
  16269. <PropertyRef Name="ItemId" />
  16270. </Dependent>
  16271. </ReferentialConstraint>
  16272. </Association>
  16273. <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
  16274. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
  16275. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  16276. <ReferentialConstraint>
  16277. <Principal Role="CmFacility">
  16278. <PropertyRef Name="SiteId" />
  16279. <PropertyRef Name="FacilityCode" />
  16280. </Principal>
  16281. <Dependent Role="FmsWorkResultCheckItem">
  16282. <PropertyRef Name="SiteId" />
  16283. <PropertyRef Name="FacilityCode" />
  16284. </Dependent>
  16285. </ReferentialConstraint>
  16286. </Association>
  16287. <Association Name="FK__FmsWorkResultToFacility__CmFacility">
  16288. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16289. <End Type="iBemsModel.FmsWorkResultToFacility" Role="FmsWorkResultToFacility" Multiplicity="*" />
  16290. <ReferentialConstraint>
  16291. <Principal Role="CmFacility">
  16292. <PropertyRef Name="SiteId" />
  16293. <PropertyRef Name="FacilityCode" />
  16294. </Principal>
  16295. <Dependent Role="FmsWorkResultToFacility">
  16296. <PropertyRef Name="SiteId" />
  16297. <PropertyRef Name="FacilityCode" />
  16298. </Dependent>
  16299. </ReferentialConstraint>
  16300. </Association>
  16301. <Association Name="FK_CmFacility_CmUser">
  16302. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  16303. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16304. <ReferentialConstraint>
  16305. <Principal Role="CmUser">
  16306. <PropertyRef Name="SiteId" />
  16307. <PropertyRef Name="UserId" />
  16308. </Principal>
  16309. <Dependent Role="CmFacility">
  16310. <PropertyRef Name="SiteId" />
  16311. <PropertyRef Name="MainContactorUserId" />
  16312. </Dependent>
  16313. </ReferentialConstraint>
  16314. </Association>
  16315. <Association Name="FK_CmFacility_CmUser1">
  16316. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  16317. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  16318. <ReferentialConstraint>
  16319. <Principal Role="CmUser">
  16320. <PropertyRef Name="SiteId" />
  16321. <PropertyRef Name="UserId" />
  16322. </Principal>
  16323. <Dependent Role="CmFacility">
  16324. <PropertyRef Name="SiteId" />
  16325. <PropertyRef Name="SubContactorUserId" />
  16326. </Dependent>
  16327. </ReferentialConstraint>
  16328. </Association>
  16329. <Association Name="FK_CmFacilityTempSet_CmFacility">
  16330. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16331. <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="0..1" />
  16332. <ReferentialConstraint>
  16333. <Principal Role="CmFacility">
  16334. <PropertyRef Name="SiteId" />
  16335. <PropertyRef Name="FacilityCode" />
  16336. </Principal>
  16337. <Dependent Role="CmFacilityTempSet">
  16338. <PropertyRef Name="SiteId" />
  16339. <PropertyRef Name="FacilityCode" />
  16340. </Dependent>
  16341. </ReferentialConstraint>
  16342. </Association>
  16343. <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
  16344. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16345. <End Type="iBemsModel.FmsWorkOrderToFacility" Role="FmsWorkOrderToFacility" Multiplicity="*" />
  16346. <ReferentialConstraint>
  16347. <Principal Role="CmFacility">
  16348. <PropertyRef Name="SiteId" />
  16349. <PropertyRef Name="FacilityCode" />
  16350. </Principal>
  16351. <Dependent Role="FmsWorkOrderToFacility">
  16352. <PropertyRef Name="SiteId" />
  16353. <PropertyRef Name="FacilityCode" />
  16354. </Dependent>
  16355. </ReferentialConstraint>
  16356. </Association>
  16357. <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
  16358. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16359. <End Type="iBemsModel.FmsWorkRequestToFacility" Role="FmsWorkRequestToFacility" Multiplicity="*" />
  16360. <ReferentialConstraint>
  16361. <Principal Role="CmFacility">
  16362. <PropertyRef Name="SiteId" />
  16363. <PropertyRef Name="FacilityCode" />
  16364. </Principal>
  16365. <Dependent Role="FmsWorkRequestToFacility">
  16366. <PropertyRef Name="SiteId" />
  16367. <PropertyRef Name="FacilityCode" />
  16368. </Dependent>
  16369. </ReferentialConstraint>
  16370. </Association>
  16371. <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
  16372. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  16373. <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
  16374. <ReferentialConstraint>
  16375. <Principal Role="CmFacility">
  16376. <PropertyRef Name="SiteId" />
  16377. <PropertyRef Name="FacilityCode" />
  16378. </Principal>
  16379. <Dependent Role="FmsWorkScheduleToFacility">
  16380. <PropertyRef Name="SiteId" />
  16381. <PropertyRef Name="FacilityCode" />
  16382. </Dependent>
  16383. </ReferentialConstraint>
  16384. </Association>
  16385. <EntityType Name="BemsMonitoringPointHistory15minRawData">
  16386. <Key>
  16387. <PropertyRef Name="SiteId" />
  16388. <PropertyRef Name="FacilityCode" />
  16389. <PropertyRef Name="PropertyId" />
  16390. <PropertyRef Name="CreatedDateTime" />
  16391. </Key>
  16392. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16393. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  16394. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  16395. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  16396. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16397. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  16398. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsFacilityType" />
  16399. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsMonitoringPoint" />
  16400. </EntityType>
  16401. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  16402. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  16403. <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  16404. <ReferentialConstraint>
  16405. <Principal Role="BemsFacilityType">
  16406. <PropertyRef Name="FacilityTypeId" />
  16407. </Principal>
  16408. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  16409. <PropertyRef Name="FacilityTypeId" />
  16410. </Dependent>
  16411. </ReferentialConstraint>
  16412. </Association>
  16413. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  16414. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
  16415. <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  16416. <ReferentialConstraint>
  16417. <Principal Role="BemsMonitoringPoint">
  16418. <PropertyRef Name="SiteId" />
  16419. <PropertyRef Name="FacilityCode" />
  16420. <PropertyRef Name="PropertyId" />
  16421. </Principal>
  16422. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  16423. <PropertyRef Name="SiteId" />
  16424. <PropertyRef Name="FacilityCode" />
  16425. <PropertyRef Name="PropertyId" />
  16426. </Dependent>
  16427. </ReferentialConstraint>
  16428. </Association>
  16429. <EntityType Name="FmsDailyReport">
  16430. <Key>
  16431. <PropertyRef Name="SiteId" />
  16432. <PropertyRef Name="AddDate" />
  16433. <PropertyRef Name="BusinessFieldId" />
  16434. </Key>
  16435. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16436. <Property Name="DailyReportId" Type="Int32" />
  16437. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  16438. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  16439. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  16440. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="0" />
  16441. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  16442. <Property Name="Datas" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  16443. <Property Name="ApproverUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16444. <Property Name="ApproveDate" Type="DateTime" Precision="0" />
  16445. <Property Name="RegisterDate" Type="DateTime" Precision="0" />
  16446. <Property Name="ApproverUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16447. <Property Name="ApproveDate2" Type="DateTime" Precision="0" />
  16448. <Property Name="ApproverUserId3" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16449. <Property Name="ApproveDate3" Type="DateTime" Precision="0" />
  16450. <Property Name="ApproverUserId4" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16451. <Property Name="ApproveDate4" Type="DateTime" Precision="0" />
  16452. <Property Name="ApproverUserId5" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16453. <Property Name="ApproveDate5" Type="DateTime" Precision="0" />
  16454. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="FmsDailyReport" ToRole="CmBusinessField" />
  16455. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="FmsDailyReport" ToRole="CmUser" />
  16456. </EntityType>
  16457. <Association Name="FK_FmsDailyReport_CmBusinessField">
  16458. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  16459. <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
  16460. <ReferentialConstraint>
  16461. <Principal Role="CmBusinessField">
  16462. <PropertyRef Name="SiteId" />
  16463. <PropertyRef Name="BusinessFieldId" />
  16464. </Principal>
  16465. <Dependent Role="FmsDailyReport">
  16466. <PropertyRef Name="SiteId" />
  16467. <PropertyRef Name="BusinessFieldId" />
  16468. </Dependent>
  16469. </ReferentialConstraint>
  16470. </Association>
  16471. <Association Name="FK_FmsDailyReport_CmUser">
  16472. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  16473. <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
  16474. <ReferentialConstraint>
  16475. <Principal Role="CmUser">
  16476. <PropertyRef Name="SiteId" />
  16477. <PropertyRef Name="UserId" />
  16478. </Principal>
  16479. <Dependent Role="FmsDailyReport">
  16480. <PropertyRef Name="SiteId" />
  16481. <PropertyRef Name="RegisterUserId" />
  16482. </Dependent>
  16483. </ReferentialConstraint>
  16484. </Association>
  16485. <EntityType Name="BemsPeakHistoryDaily">
  16486. <Key>
  16487. <PropertyRef Name="SiteId" />
  16488. <PropertyRef Name="CreatedDateTime" />
  16489. </Key>
  16490. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16491. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  16492. <Property Name="MaxPeakValue" Type="Double" />
  16493. <Property Name="MaxDateTime" Type="DateTime" Precision="3" />
  16494. <Property Name="MinPeakValue" Type="Double" />
  16495. <Property Name="MinDateTime" Type="DateTime" Precision="3" />
  16496. </EntityType>
  16497. <EntityType Name="FmsEquipment">
  16498. <Key>
  16499. <PropertyRef Name="SiteId" />
  16500. <PropertyRef Name="EquipmentId" />
  16501. </Key>
  16502. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16503. <Property Name="EquipmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16504. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  16505. <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" />
  16506. <Property Name="WarehouseId" Type="Int32" />
  16507. <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
  16508. <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16509. <Property Name="AddDate" Type="DateTime" Precision="3" />
  16510. <Property Name="UpdateDate" Type="DateTime" Precision="3" />
  16511. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  16512. <Property Name="SupplierName" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  16513. <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16514. <Property Name="ImageFileId" Type="Int32" />
  16515. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="FmsEquipment" ToRole="CmUser" />
  16516. <NavigationProperty Name="FmsEquipmentCodeType" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipment" ToRole="FmsEquipmentCodeType" />
  16517. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsEquipment" ToRole="FmsMaterialWarehouse" />
  16518. <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipment" ToRole="FmsEquipmentHistory" />
  16519. </EntityType>
  16520. <Association Name="FK_FmsEquipment_CmUser">
  16521. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  16522. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  16523. <ReferentialConstraint>
  16524. <Principal Role="CmUser">
  16525. <PropertyRef Name="SiteId" />
  16526. <PropertyRef Name="UserId" />
  16527. </Principal>
  16528. <Dependent Role="FmsEquipment">
  16529. <PropertyRef Name="SiteId" />
  16530. <PropertyRef Name="RegisterUserId" />
  16531. </Dependent>
  16532. </ReferentialConstraint>
  16533. </Association>
  16534. <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
  16535. <End Type="iBemsModel.FmsEquipmentCodeType" Role="FmsEquipmentCodeType" Multiplicity="1" />
  16536. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  16537. <ReferentialConstraint>
  16538. <Principal Role="FmsEquipmentCodeType">
  16539. <PropertyRef Name="SiteId" />
  16540. <PropertyRef Name="EquipmentTypeId" />
  16541. </Principal>
  16542. <Dependent Role="FmsEquipment">
  16543. <PropertyRef Name="SiteId" />
  16544. <PropertyRef Name="EquipmentTypeId" />
  16545. </Dependent>
  16546. </ReferentialConstraint>
  16547. </Association>
  16548. <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
  16549. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
  16550. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  16551. <ReferentialConstraint>
  16552. <Principal Role="FmsMaterialWarehouse">
  16553. <PropertyRef Name="SiteId" />
  16554. <PropertyRef Name="WarehouseId" />
  16555. </Principal>
  16556. <Dependent Role="FmsEquipment">
  16557. <PropertyRef Name="SiteId" />
  16558. <PropertyRef Name="WarehouseId" />
  16559. </Dependent>
  16560. </ReferentialConstraint>
  16561. </Association>
  16562. <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
  16563. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="1" />
  16564. <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
  16565. <ReferentialConstraint>
  16566. <Principal Role="FmsEquipment">
  16567. <PropertyRef Name="SiteId" />
  16568. <PropertyRef Name="EquipmentId" />
  16569. </Principal>
  16570. <Dependent Role="FmsEquipmentHistory">
  16571. <PropertyRef Name="SiteId" />
  16572. <PropertyRef Name="EquipmentId" />
  16573. </Dependent>
  16574. </ReferentialConstraint>
  16575. </Association>
  16576. <EntityType Name="CmAlarmAdmin">
  16577. <Key>
  16578. <PropertyRef Name="SiteId" />
  16579. </Key>
  16580. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16581. <Property Name="UserCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16582. <Property Name="DeptCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16583. <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16584. <Property Name="EmailAddress" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16585. <Property Name="EmailPassword" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16586. </EntityType>
  16587. <EntityType Name="BemsFloorStatus">
  16588. <Key>
  16589. <PropertyRef Name="SiteId" />
  16590. <PropertyRef Name="FloorId" />
  16591. <PropertyRef Name="FloorName" />
  16592. <PropertyRef Name="ImageFileId" />
  16593. <PropertyRef Name="Xvalue" />
  16594. <PropertyRef Name="Yvalue" />
  16595. <PropertyRef Name="PropertyId" />
  16596. </Key>
  16597. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16598. <Property Name="FloorId" Type="Int32" Nullable="false" />
  16599. <Property Name="FloorName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16600. <Property Name="ImageFileId" Type="Int32" Nullable="false" />
  16601. <Property Name="Xvalue" Type="Int32" Nullable="false" />
  16602. <Property Name="Yvalue" Type="Int32" Nullable="false" />
  16603. <Property Name="ZoneId" Type="Int32" />
  16604. <Property Name="ServiceTypeId" Type="Int32" />
  16605. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  16606. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  16607. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  16608. <Property Name="FacilityName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  16609. </EntityType>
  16610. <EntityType Name="BemsReportHistory">
  16611. <Key>
  16612. <PropertyRef Name="Seq" />
  16613. <PropertyRef Name="DateTime" />
  16614. <PropertyRef Name="ReportFormatId" />
  16615. <PropertyRef Name="parts" />
  16616. </Key>
  16617. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16618. <Property Name="Seq" Type="Int32" Nullable="false" />
  16619. <Property Name="DateTime" Type="DateTime" Nullable="false" Precision="3" />
  16620. <Property Name="ReportName" Type="String" Nullable="false" MaxLength="200" FixedLength="false" Unicode="false" />
  16621. <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
  16622. <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  16623. <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  16624. <Property Name="Writer" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  16625. <Property Name="Confirm1" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  16626. <Property Name="Confirm2" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  16627. <Property Name="parts" Type="Int32" Nullable="false" />
  16628. <Property Name="FileName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  16629. </EntityType>
  16630. <EntityType Name="CmPartner">
  16631. <Key>
  16632. <PropertyRef Name="SiteId" />
  16633. <PropertyRef Name="PartnerId" />
  16634. </Key>
  16635. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16636. <Property Name="PartnerId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16637. <Property Name="PartnerTypeId" Type="Int32" Nullable="false" />
  16638. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16639. <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16640. <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16641. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16642. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16643. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16644. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16645. <Property Name="AddressZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  16646. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  16647. <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  16648. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  16649. <Property Name="HomepageUri" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  16650. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  16651. <Property Name="IsUse" Type="Boolean" />
  16652. <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartner" ToRole="CmPartnerType" />
  16653. <NavigationProperty Name="FmsConstruction" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="CmPartner" ToRole="FmsConstruction" />
  16654. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="CmPartner" ToRole="FmsWorkRequest" />
  16655. <NavigationProperty Name="FmsWorkSchedule" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="CmPartner" ToRole="FmsWorkSchedule" />
  16656. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="CmPartner" ToRole="FmsContract" />
  16657. </EntityType>
  16658. <EntityType Name="CmPartnerType">
  16659. <Key>
  16660. <PropertyRef Name="PartnerTypeId" />
  16661. </Key>
  16662. <Property Name="PartnerTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16663. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16664. <Property Name="IsUse" Type="Boolean" />
  16665. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartnerType" ToRole="CmPartner" />
  16666. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="CmPartnerType" ToRole="FmsContract" />
  16667. </EntityType>
  16668. <Association Name="FK_CmPartnerType_CmPartner">
  16669. <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="1" />
  16670. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="*" />
  16671. <ReferentialConstraint>
  16672. <Principal Role="CmPartnerType">
  16673. <PropertyRef Name="PartnerTypeId" />
  16674. </Principal>
  16675. <Dependent Role="CmPartner">
  16676. <PropertyRef Name="PartnerTypeId" />
  16677. </Dependent>
  16678. </ReferentialConstraint>
  16679. </Association>
  16680. <Association Name="FK_FmsConstruction_CmPartner">
  16681. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="1" />
  16682. <End Type="iBemsModel.FmsConstruction" Role="FmsConstruction" Multiplicity="*" />
  16683. <ReferentialConstraint>
  16684. <Principal Role="CmPartner">
  16685. <PropertyRef Name="SiteId" />
  16686. <PropertyRef Name="PartnerId" />
  16687. </Principal>
  16688. <Dependent Role="FmsConstruction">
  16689. <PropertyRef Name="SiteId" />
  16690. <PropertyRef Name="PartnerId" />
  16691. </Dependent>
  16692. </ReferentialConstraint>
  16693. </Association>
  16694. <Association Name="FK_FmsWorkRequest_CmPartner">
  16695. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  16696. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  16697. <ReferentialConstraint>
  16698. <Principal Role="CmPartner">
  16699. <PropertyRef Name="SiteId" />
  16700. <PropertyRef Name="PartnerId" />
  16701. </Principal>
  16702. <Dependent Role="FmsWorkRequest">
  16703. <PropertyRef Name="SiteId" />
  16704. <PropertyRef Name="InspectionAgencyId" />
  16705. </Dependent>
  16706. </ReferentialConstraint>
  16707. </Association>
  16708. <Association Name="FK_FmsWorkSchedule_CmPartner">
  16709. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  16710. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  16711. <ReferentialConstraint>
  16712. <Principal Role="CmPartner">
  16713. <PropertyRef Name="SiteId" />
  16714. <PropertyRef Name="PartnerId" />
  16715. </Principal>
  16716. <Dependent Role="FmsWorkSchedule">
  16717. <PropertyRef Name="SiteId" />
  16718. <PropertyRef Name="InspectionAgencyId" />
  16719. </Dependent>
  16720. </ReferentialConstraint>
  16721. </Association>
  16722. <EntityType Name="FmsContract">
  16723. <Key>
  16724. <PropertyRef Name="SiteId" />
  16725. <PropertyRef Name="ContractId" />
  16726. </Key>
  16727. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16728. <Property Name="ContractId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  16729. <Property Name="Name" Type="String" Nullable="false" MaxLength="256" FixedLength="false" Unicode="true" />
  16730. <Property Name="PartnerTypeId" Type="Int32" />
  16731. <Property Name="PartnerId" Type="Int32" />
  16732. <Property Name="ContractDate" Type="DateTime" Precision="3" />
  16733. <Property Name="StartDate" Type="DateTime" Precision="3" />
  16734. <Property Name="EndDate" Type="DateTime" Precision="3" />
  16735. <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  16736. <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  16737. <Property Name="CommitmentMan" Type="Int16" />
  16738. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  16739. <Property Name="ContractClassId" Type="Int32" />
  16740. <Property Name="ContractTypeId" Type="Int32" />
  16741. <Property Name="ContractMethodId" Type="Int32" />
  16742. <Property Name="PaymentTypeId" Type="Int32" />
  16743. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="FmsContract" ToRole="CmPartner" />
  16744. <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="FmsContract" ToRole="CmPartnerType" />
  16745. <NavigationProperty Name="FmsContractClass" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContract" ToRole="FmsContractClass" />
  16746. <NavigationProperty Name="FmsContractMethod" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContract" ToRole="FmsContractMethod" />
  16747. <NavigationProperty Name="FmsContractType" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContract" ToRole="FmsContractType" />
  16748. <NavigationProperty Name="FmsPaymentType" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsContract" ToRole="FmsPaymentType" />
  16749. </EntityType>
  16750. <Association Name="FK_FmsContract_CmPartner">
  16751. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  16752. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16753. <ReferentialConstraint>
  16754. <Principal Role="CmPartner">
  16755. <PropertyRef Name="SiteId" />
  16756. <PropertyRef Name="PartnerId" />
  16757. </Principal>
  16758. <Dependent Role="FmsContract">
  16759. <PropertyRef Name="SiteId" />
  16760. <PropertyRef Name="PartnerId" />
  16761. </Dependent>
  16762. </ReferentialConstraint>
  16763. </Association>
  16764. <Association Name="FK_FmsContract_CmPartnerType">
  16765. <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="0..1" />
  16766. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16767. <ReferentialConstraint>
  16768. <Principal Role="CmPartnerType">
  16769. <PropertyRef Name="PartnerTypeId" />
  16770. </Principal>
  16771. <Dependent Role="FmsContract">
  16772. <PropertyRef Name="PartnerTypeId" />
  16773. </Dependent>
  16774. </ReferentialConstraint>
  16775. </Association>
  16776. <Association Name="FK_FmsContract_FmsContractClass">
  16777. <End Type="iBemsModel.FmsContractClass" Role="FmsContractClass" Multiplicity="0..1" />
  16778. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16779. <ReferentialConstraint>
  16780. <Principal Role="FmsContractClass">
  16781. <PropertyRef Name="SiteId" />
  16782. <PropertyRef Name="ContractClassId" />
  16783. </Principal>
  16784. <Dependent Role="FmsContract">
  16785. <PropertyRef Name="SiteId" />
  16786. <PropertyRef Name="ContractClassId" />
  16787. </Dependent>
  16788. </ReferentialConstraint>
  16789. </Association>
  16790. <Association Name="FK_FmsContract_FmsContractMethod">
  16791. <End Type="iBemsModel.FmsContractMethod" Role="FmsContractMethod" Multiplicity="0..1" />
  16792. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16793. <ReferentialConstraint>
  16794. <Principal Role="FmsContractMethod">
  16795. <PropertyRef Name="SiteId" />
  16796. <PropertyRef Name="ContractMethodId" />
  16797. </Principal>
  16798. <Dependent Role="FmsContract">
  16799. <PropertyRef Name="SiteId" />
  16800. <PropertyRef Name="ContractMethodId" />
  16801. </Dependent>
  16802. </ReferentialConstraint>
  16803. </Association>
  16804. <Association Name="FK_FmsContract_FmsContractType">
  16805. <End Type="iBemsModel.FmsContractType" Role="FmsContractType" Multiplicity="0..1" />
  16806. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16807. <ReferentialConstraint>
  16808. <Principal Role="FmsContractType">
  16809. <PropertyRef Name="SiteId" />
  16810. <PropertyRef Name="ContractTypeId" />
  16811. </Principal>
  16812. <Dependent Role="FmsContract">
  16813. <PropertyRef Name="SiteId" />
  16814. <PropertyRef Name="ContractTypeId" />
  16815. </Dependent>
  16816. </ReferentialConstraint>
  16817. </Association>
  16818. <Association Name="FK_FmsContract_FmsPaymentType">
  16819. <End Type="iBemsModel.FmsPaymentType" Role="FmsPaymentType" Multiplicity="0..1" />
  16820. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  16821. <ReferentialConstraint>
  16822. <Principal Role="FmsPaymentType">
  16823. <PropertyRef Name="SiteId" />
  16824. <PropertyRef Name="PaymentTypeId" />
  16825. </Principal>
  16826. <Dependent Role="FmsContract">
  16827. <PropertyRef Name="SiteId" />
  16828. <PropertyRef Name="PartnerTypeId" />
  16829. </Dependent>
  16830. </ReferentialConstraint>
  16831. </Association>
  16832. <EntityType Name="BemsFloorPlan">
  16833. <Key>
  16834. <PropertyRef Name="SiteId" />
  16835. <PropertyRef Name="Name" />
  16836. </Key>
  16837. <Property Name="SiteId" Type="Int32" Nullable="false" />
  16838. <Property Name="FloorId" Type="Int32" Nullable="false" />
  16839. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  16840. <Property Name="ImageFileId" Type="Int32" />
  16841. </EntityType>
  16842. </Schema>
  16843. </edmx:ConceptualModels>
  16844. <!-- C-S mapping content -->
  16845. <edmx:Mappings>
  16846. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  16847. <EntityContainerMapping StorageEntityContainer="iBemsModelStoreContainer" CdmEntityContainer="iBemsEntities">
  16848. <EntitySetMapping Name="BemsAnalysisType">
  16849. <EntityTypeMapping TypeName="iBemsModel.BemsAnalysisType">
  16850. <MappingFragment StoreEntitySet="BemsAnalysisType">
  16851. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  16852. <ScalarProperty Name="AnalysisType" ColumnName="AnalysisType" />
  16853. <ScalarProperty Name="Name" ColumnName="Name" />
  16854. </MappingFragment>
  16855. </EntityTypeMapping>
  16856. </EntitySetMapping>
  16857. <EntitySetMapping Name="BemsControlPointHistory">
  16858. <EntityTypeMapping TypeName="iBemsModel.BemsControlPointHistory">
  16859. <MappingFragment StoreEntitySet="BemsControlPointHistory">
  16860. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  16861. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  16862. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  16863. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  16864. <ScalarProperty Name="CreateDateTime" ColumnName="CreateDateTime" />
  16865. <ScalarProperty Name="ControlValue" ColumnName="ControlValue" />
  16866. <ScalarProperty Name="WriteServiceName" ColumnName="WriteServiceName" />
  16867. <ScalarProperty Name="ActionDateTime" ColumnName="ActionDateTime" />
  16868. </MappingFragment>
  16869. </EntityTypeMapping>
  16870. </EntitySetMapping>
  16871. <EntitySetMapping Name="BemsFacilityType">
  16872. <EntityTypeMapping TypeName="iBemsModel.BemsFacilityType">
  16873. <MappingFragment StoreEntitySet="BemsFacilityType">
  16874. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  16875. <ScalarProperty Name="Name" ColumnName="Name" />
  16876. </MappingFragment>
  16877. </EntityTypeMapping>
  16878. </EntitySetMapping>
  16879. <EntitySetMapping Name="BemsFactorCo2">
  16880. <EntityTypeMapping TypeName="iBemsModel.BemsFactorCo2">
  16881. <MappingFragment StoreEntitySet="BemsFactorCo2">
  16882. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  16883. <ScalarProperty Name="Factor" ColumnName="Factor" />
  16884. </MappingFragment>
  16885. </EntityTypeMapping>
  16886. </EntitySetMapping>
  16887. <EntitySetMapping Name="BemsFactorToe">
  16888. <EntityTypeMapping TypeName="iBemsModel.BemsFactorToe">
  16889. <MappingFragment StoreEntitySet="BemsFactorToe">
  16890. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  16891. <ScalarProperty Name="TotalFactor" ColumnName="TotalFactor" />
  16892. <ScalarProperty Name="PureFactor" ColumnName="PureFactor" />
  16893. <ScalarProperty Name="kcal" ColumnName="kcal" />
  16894. </MappingFragment>
  16895. </EntityTypeMapping>
  16896. </EntitySetMapping>
  16897. <EntitySetMapping Name="BemsFormula">
  16898. <EntityTypeMapping TypeName="iBemsModel.BemsFormula">
  16899. <MappingFragment StoreEntitySet="BemsFormula">
  16900. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  16901. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  16902. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  16903. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  16904. <ScalarProperty Name="Formula" ColumnName="Formula" />
  16905. </MappingFragment>
  16906. </EntityTypeMapping>
  16907. </EntitySetMapping>
  16908. <EntitySetMapping Name="BemsFormulaBase">
  16909. <EntityTypeMapping TypeName="iBemsModel.BemsFormulaBase">
  16910. <MappingFragment StoreEntitySet="BemsFormulaBase">
  16911. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  16912. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  16913. <ScalarProperty Name="Name" ColumnName="Name" />
  16914. </MappingFragment>
  16915. </EntityTypeMapping>
  16916. </EntitySetMapping>
  16917. <EntitySetMapping Name="BemsFormulaParameter">
  16918. <EntityTypeMapping TypeName="iBemsModel.BemsFormulaParameter">
  16919. <MappingFragment StoreEntitySet="BemsFormulaParameter">
  16920. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  16921. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  16922. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  16923. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  16924. <ScalarProperty Name="ParameterId" ColumnName="ParameterId" />
  16925. <ScalarProperty Name="ParameterFacilityCode" ColumnName="ParameterFacilityCode" />
  16926. <ScalarProperty Name="ParameterPropertyId" ColumnName="ParameterPropertyId" />
  16927. </MappingFragment>
  16928. </EntityTypeMapping>
  16929. </EntitySetMapping>
  16930. <EntitySetMapping Name="BemsFormulaTable">
  16931. <EntityTypeMapping TypeName="iBemsModel.BemsFormulaTable">
  16932. <MappingFragment StoreEntitySet="BemsFormulaTable">
  16933. <ScalarProperty Name="TableId" ColumnName="TableId" />
  16934. <ScalarProperty Name="FunctionName" ColumnName="FunctionName" />
  16935. <ScalarProperty Name="Description" ColumnName="Description" />
  16936. </MappingFragment>
  16937. </EntityTypeMapping>
  16938. </EntitySetMapping>
  16939. <EntitySetMapping Name="BemsFormulaTableValue">
  16940. <EntityTypeMapping TypeName="iBemsModel.BemsFormulaTableValue">
  16941. <MappingFragment StoreEntitySet="BemsFormulaTableValue">
  16942. <ScalarProperty Name="TableId" ColumnName="TableId" />
  16943. <ScalarProperty Name="XValue" ColumnName="XValue" />
  16944. <ScalarProperty Name="YValue" ColumnName="YValue" />
  16945. </MappingFragment>
  16946. </EntityTypeMapping>
  16947. </EntitySetMapping>
  16948. <EntitySetMapping Name="BemsMonitoringPoint">
  16949. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPoint">
  16950. <MappingFragment StoreEntitySet="BemsMonitoringPoint">
  16951. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  16952. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  16953. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  16954. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  16955. <ScalarProperty Name="ValueType" ColumnName="ValueType" />
  16956. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  16957. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  16958. <ScalarProperty Name="Name" ColumnName="Name" />
  16959. <ScalarProperty Name="Description" ColumnName="Description" />
  16960. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  16961. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  16962. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  16963. </MappingFragment>
  16964. </EntityTypeMapping>
  16965. </EntitySetMapping>
  16966. <EntitySetMapping Name="BemsMonitoringPointBaseData">
  16967. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointBaseData">
  16968. <MappingFragment StoreEntitySet="BemsMonitoringPointBaseData">
  16969. <ScalarProperty Name="IsConverted" ColumnName="IsConverted" />
  16970. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  16971. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  16972. <ScalarProperty Name="ValueType" ColumnName="ValueType" />
  16973. <ScalarProperty Name="IsAccumulated" ColumnName="IsAccumulated" />
  16974. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  16975. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  16976. <ScalarProperty Name="Name" ColumnName="Name" />
  16977. <ScalarProperty Name="Description" ColumnName="Description" />
  16978. <ScalarProperty Name="IsSampled" ColumnName="IsSampled" />
  16979. </MappingFragment>
  16980. </EntityTypeMapping>
  16981. </EntitySetMapping>
  16982. <EntitySetMapping Name="BemsMonitoringPointHistory15min">
  16983. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistory15min">
  16984. <MappingFragment StoreEntitySet="BemsMonitoringPointHistory15min">
  16985. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  16986. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  16987. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  16988. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  16989. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  16990. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  16991. </MappingFragment>
  16992. </EntityTypeMapping>
  16993. </EntitySetMapping>
  16994. <EntitySetMapping Name="BemsMonitoringPointHistoryDaily">
  16995. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistoryDaily">
  16996. <MappingFragment StoreEntitySet="BemsMonitoringPointHistoryDaily">
  16997. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  16998. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  16999. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17000. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17001. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  17002. <ScalarProperty Name="DailyValue" ColumnName="DailyValue" />
  17003. <ScalarProperty Name="MaxValue" ColumnName="MaxValue" />
  17004. <ScalarProperty Name="MinValue" ColumnName="MinValue" />
  17005. </MappingFragment>
  17006. </EntityTypeMapping>
  17007. </EntitySetMapping>
  17008. <EntitySetMapping Name="BemsMonitoringPointHistoryHourly">
  17009. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistoryHourly">
  17010. <MappingFragment StoreEntitySet="BemsMonitoringPointHistoryHourly">
  17011. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17012. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17013. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17014. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17015. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  17016. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  17017. </MappingFragment>
  17018. </EntityTypeMapping>
  17019. </EntitySetMapping>
  17020. <EntitySetMapping Name="BemsMonitoringPointToAnlaysisType">
  17021. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointToAnlaysisType">
  17022. <MappingFragment StoreEntitySet="BemsMonitoringPointToAnlaysisType">
  17023. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17024. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  17025. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17026. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  17027. <ScalarProperty Name="AnalysisType" ColumnName="AnalysisType" />
  17028. </MappingFragment>
  17029. </EntityTypeMapping>
  17030. </EntitySetMapping>
  17031. <EntitySetMapping Name="BemsServiceType">
  17032. <EntityTypeMapping TypeName="iBemsModel.BemsServiceType">
  17033. <MappingFragment StoreEntitySet="BemsServiceType">
  17034. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  17035. <ScalarProperty Name="Name" ColumnName="Name" />
  17036. </MappingFragment>
  17037. </EntityTypeMapping>
  17038. </EntitySetMapping>
  17039. <EntitySetMapping Name="CmAnnouncement">
  17040. <EntityTypeMapping TypeName="iBemsModel.CmAnnouncement">
  17041. <MappingFragment StoreEntitySet="CmAnnouncement">
  17042. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17043. <ScalarProperty Name="AnnouncementId" ColumnName="AnnouncementId" />
  17044. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17045. <ScalarProperty Name="Title" ColumnName="Title" />
  17046. <ScalarProperty Name="Contents" ColumnName="Contents" />
  17047. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  17048. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17049. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  17050. <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
  17051. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17052. <ScalarProperty Name="ReadCount" ColumnName="ReadCount" />
  17053. </MappingFragment>
  17054. </EntityTypeMapping>
  17055. </EntitySetMapping>
  17056. <EntitySetMapping Name="CmBuilding">
  17057. <EntityTypeMapping TypeName="iBemsModel.CmBuilding">
  17058. <MappingFragment StoreEntitySet="CmBuilding">
  17059. <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
  17060. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17061. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17062. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17063. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17064. <ScalarProperty Name="Name" ColumnName="Name" />
  17065. </MappingFragment>
  17066. </EntityTypeMapping>
  17067. </EntitySetMapping>
  17068. <EntitySetMapping Name="CmBusinessField">
  17069. <EntityTypeMapping TypeName="iBemsModel.CmBusinessField">
  17070. <MappingFragment StoreEntitySet="CmBusinessField">
  17071. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17072. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17073. <ScalarProperty Name="Name" ColumnName="Name" />
  17074. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17075. </MappingFragment>
  17076. </EntityTypeMapping>
  17077. </EntitySetMapping>
  17078. <EntitySetMapping Name="CmCompany">
  17079. <EntityTypeMapping TypeName="iBemsModel.CmCompany">
  17080. <MappingFragment StoreEntitySet="CmCompany">
  17081. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17082. <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
  17083. <ScalarProperty Name="CompanyTypeId" ColumnName="CompanyTypeId" />
  17084. <ScalarProperty Name="Name" ColumnName="Name" />
  17085. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  17086. <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
  17087. <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
  17088. <ScalarProperty Name="SalesName" ColumnName="SalesName" />
  17089. <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
  17090. <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
  17091. <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
  17092. <ScalarProperty Name="Address1" ColumnName="Address1" />
  17093. <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
  17094. <ScalarProperty Name="Homepage" ColumnName="Homepage" />
  17095. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17096. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17097. </MappingFragment>
  17098. </EntityTypeMapping>
  17099. </EntitySetMapping>
  17100. <EntitySetMapping Name="CmCompanyType">
  17101. <EntityTypeMapping TypeName="iBemsModel.CmCompanyType">
  17102. <MappingFragment StoreEntitySet="CmCompanyType">
  17103. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17104. <ScalarProperty Name="CompanyTypeId" ColumnName="CompanyTypeId" />
  17105. <ScalarProperty Name="Name" ColumnName="Name" />
  17106. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17107. </MappingFragment>
  17108. </EntityTypeMapping>
  17109. </EntitySetMapping>
  17110. <EntitySetMapping Name="CmDepartment">
  17111. <EntityTypeMapping TypeName="iBemsModel.CmDepartment">
  17112. <MappingFragment StoreEntitySet="CmDepartment">
  17113. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17114. <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
  17115. <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
  17116. <ScalarProperty Name="Name" ColumnName="Name" />
  17117. <ScalarProperty Name="ShortName" ColumnName="ShortName" />
  17118. <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
  17119. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  17120. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17121. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17122. </MappingFragment>
  17123. </EntityTypeMapping>
  17124. </EntitySetMapping>
  17125. <EntitySetMapping Name="CmFacilityFile">
  17126. <EntityTypeMapping TypeName="iBemsModel.CmFacilityFile">
  17127. <MappingFragment StoreEntitySet="CmFacilityFile">
  17128. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17129. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17130. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17131. <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
  17132. <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
  17133. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  17134. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  17135. </MappingFragment>
  17136. </EntityTypeMapping>
  17137. </EntitySetMapping>
  17138. <EntitySetMapping Name="CmFacilityTempSet">
  17139. <EntityTypeMapping TypeName="iBemsModel.CmFacilityTempSet">
  17140. <MappingFragment StoreEntitySet="CmFacilityTempSet">
  17141. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17142. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17143. <ScalarProperty Name="T1" ColumnName="T1" />
  17144. <ScalarProperty Name="T2" ColumnName="T2" />
  17145. <ScalarProperty Name="T3" ColumnName="T3" />
  17146. <ScalarProperty Name="T4" ColumnName="T4" />
  17147. <ScalarProperty Name="T5" ColumnName="T5" />
  17148. <ScalarProperty Name="T6" ColumnName="T6" />
  17149. <ScalarProperty Name="T7" ColumnName="T7" />
  17150. <ScalarProperty Name="T8" ColumnName="T8" />
  17151. <ScalarProperty Name="T9" ColumnName="T9" />
  17152. <ScalarProperty Name="T10" ColumnName="T10" />
  17153. <ScalarProperty Name="T11" ColumnName="T11" />
  17154. <ScalarProperty Name="T12" ColumnName="T12" />
  17155. </MappingFragment>
  17156. </EntityTypeMapping>
  17157. </EntitySetMapping>
  17158. <EntitySetMapping Name="CmFile">
  17159. <EntityTypeMapping TypeName="iBemsModel.CmFile">
  17160. <MappingFragment StoreEntitySet="CmFile">
  17161. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17162. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17163. <ScalarProperty Name="FileCategoryId" ColumnName="FileCategoryId" />
  17164. <ScalarProperty Name="Name" ColumnName="Name" />
  17165. <ScalarProperty Name="FileSize" ColumnName="FileSize" />
  17166. <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
  17167. <ScalarProperty Name="ContentType" ColumnName="ContentType" />
  17168. </MappingFragment>
  17169. </EntityTypeMapping>
  17170. </EntitySetMapping>
  17171. <EntitySetMapping Name="CmFileCategory">
  17172. <EntityTypeMapping TypeName="iBemsModel.CmFileCategory">
  17173. <MappingFragment StoreEntitySet="CmFileCategory">
  17174. <ScalarProperty Name="FileCategoryId" ColumnName="FileCategoryId" />
  17175. <ScalarProperty Name="Name" ColumnName="Name" />
  17176. </MappingFragment>
  17177. </EntityTypeMapping>
  17178. </EntitySetMapping>
  17179. <EntitySetMapping Name="CmFloor">
  17180. <EntityTypeMapping TypeName="iBemsModel.CmFloor">
  17181. <MappingFragment StoreEntitySet="CmFloor">
  17182. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17183. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17184. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  17185. <ScalarProperty Name="Name" ColumnName="Name" />
  17186. </MappingFragment>
  17187. </EntityTypeMapping>
  17188. </EntitySetMapping>
  17189. <EntitySetMapping Name="CmHoliday">
  17190. <EntityTypeMapping TypeName="iBemsModel.CmHoliday">
  17191. <MappingFragment StoreEntitySet="CmHoliday">
  17192. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17193. <ScalarProperty Name="HolidayMonth" ColumnName="HolidayMonth" />
  17194. <ScalarProperty Name="HolidayDay" ColumnName="HolidayDay" />
  17195. <ScalarProperty Name="IsLunar" ColumnName="IsLunar" />
  17196. <ScalarProperty Name="Name" ColumnName="Name" />
  17197. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17198. </MappingFragment>
  17199. </EntityTypeMapping>
  17200. </EntitySetMapping>
  17201. <EntitySetMapping Name="CmHolidayCustom">
  17202. <EntityTypeMapping TypeName="iBemsModel.CmHolidayCustom">
  17203. <MappingFragment StoreEntitySet="CmHolidayCustom">
  17204. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17205. <ScalarProperty Name="HolidayDate" ColumnName="HolidayDate" />
  17206. <ScalarProperty Name="Name" ColumnName="Name" />
  17207. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17208. </MappingFragment>
  17209. </EntityTypeMapping>
  17210. </EntitySetMapping>
  17211. <EntitySetMapping Name="CmPosition">
  17212. <EntityTypeMapping TypeName="iBemsModel.CmPosition">
  17213. <MappingFragment StoreEntitySet="CmPosition">
  17214. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17215. <ScalarProperty Name="PositionId" ColumnName="PositionId" />
  17216. <ScalarProperty Name="Name" ColumnName="Name" />
  17217. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17218. </MappingFragment>
  17219. </EntityTypeMapping>
  17220. </EntitySetMapping>
  17221. <EntitySetMapping Name="CmUser">
  17222. <EntityTypeMapping TypeName="iBemsModel.CmUser">
  17223. <MappingFragment StoreEntitySet="CmUser">
  17224. <ScalarProperty Name="Devicetoken" ColumnName="Devicetoken" />
  17225. <ScalarProperty Name="IsSI" ColumnName="IsSI" />
  17226. <ScalarProperty Name="IsMobile" ColumnName="IsMobile" />
  17227. <ScalarProperty Name="IsScheduleUser" ColumnName="IsScheduleUser" />
  17228. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17229. <ScalarProperty Name="UserId" ColumnName="UserId" />
  17230. <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
  17231. <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
  17232. <ScalarProperty Name="PositionId" ColumnName="PositionId" />
  17233. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17234. <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
  17235. <ScalarProperty Name="Name" ColumnName="Name" />
  17236. <ScalarProperty Name="Passwd" ColumnName="Passwd" />
  17237. <ScalarProperty Name="Birthday" ColumnName="Birthday" />
  17238. <ScalarProperty Name="Lunar" ColumnName="Lunar" />
  17239. <ScalarProperty Name="StateId" ColumnName="StateId" />
  17240. <ScalarProperty Name="EmploymentType" ColumnName="EmploymentType" />
  17241. <ScalarProperty Name="EmploymentStatus" ColumnName="EmploymentStatus" />
  17242. <ScalarProperty Name="OfficePhoneNo" ColumnName="OfficePhoneNo" />
  17243. <ScalarProperty Name="HomePhoneNo" ColumnName="HomePhoneNo" />
  17244. <ScalarProperty Name="MobilePhoneNo" ColumnName="MobilePhoneNo" />
  17245. <ScalarProperty Name="HomeZip1" ColumnName="HomeZip1" />
  17246. <ScalarProperty Name="HomeZip2" ColumnName="HomeZip2" />
  17247. <ScalarProperty Name="HomeAddress1" ColumnName="HomeAddress1" />
  17248. <ScalarProperty Name="HomeAdderss2" ColumnName="HomeAdderss2" />
  17249. <ScalarProperty Name="Email" ColumnName="Email" />
  17250. <ScalarProperty Name="EnterDate" ColumnName="EnterDate" />
  17251. <ScalarProperty Name="RetireDate" ColumnName="RetireDate" />
  17252. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17253. <ScalarProperty Name="Rfcsn" ColumnName="Rfcsn" />
  17254. <ScalarProperty Name="PasswordUpdatedDate" ColumnName="PasswordUpdatedDate" />
  17255. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17256. <ScalarProperty Name="IsBems" ColumnName="IsBems" />
  17257. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17258. <ScalarProperty Name="Certificated" ColumnName="Certificated" />
  17259. </MappingFragment>
  17260. </EntityTypeMapping>
  17261. </EntitySetMapping>
  17262. <EntitySetMapping Name="CmUserGroup">
  17263. <EntityTypeMapping TypeName="iBemsModel.CmUserGroup">
  17264. <MappingFragment StoreEntitySet="CmUserGroup">
  17265. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17266. <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
  17267. <ScalarProperty Name="Name" ColumnName="Name" />
  17268. </MappingFragment>
  17269. </EntityTypeMapping>
  17270. </EntitySetMapping>
  17271. <EntitySetMapping Name="CmUserGroupPermission">
  17272. <EntityTypeMapping TypeName="iBemsModel.CmUserGroupPermission">
  17273. <MappingFragment StoreEntitySet="CmUserGroupPermission">
  17274. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17275. <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
  17276. <ScalarProperty Name="MenuId" ColumnName="MenuId" />
  17277. <ScalarProperty Name="MenuPermission" ColumnName="MenuPermission" />
  17278. </MappingFragment>
  17279. </EntityTypeMapping>
  17280. </EntitySetMapping>
  17281. <EntitySetMapping Name="CmUserLoginHistory">
  17282. <EntityTypeMapping TypeName="iBemsModel.CmUserLoginHistory">
  17283. <MappingFragment StoreEntitySet="CmUserLoginHistory">
  17284. <ScalarProperty Name="LoginHistoryId" ColumnName="LoginHistoryId" />
  17285. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17286. <ScalarProperty Name="UserId" ColumnName="UserId" />
  17287. <ScalarProperty Name="Type" ColumnName="Type" />
  17288. <ScalarProperty Name="TraceTime" ColumnName="TraceTime" />
  17289. <ScalarProperty Name="IpAddress" ColumnName="IpAddress" />
  17290. </MappingFragment>
  17291. </EntityTypeMapping>
  17292. </EntitySetMapping>
  17293. <EntitySetMapping Name="CmUserToLicense">
  17294. <EntityTypeMapping TypeName="iBemsModel.CmUserToLicense">
  17295. <MappingFragment StoreEntitySet="CmUserToLicense">
  17296. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17297. <ScalarProperty Name="UserId" ColumnName="UserId" />
  17298. <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />
  17299. </MappingFragment>
  17300. </EntityTypeMapping>
  17301. </EntitySetMapping>
  17302. <EntitySetMapping Name="CmZone">
  17303. <EntityTypeMapping TypeName="iBemsModel.CmZone">
  17304. <MappingFragment StoreEntitySet="CmZone">
  17305. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17306. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17307. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  17308. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  17309. <ScalarProperty Name="Name" ColumnName="Name" />
  17310. <ScalarProperty Name="Target_temperature" ColumnName="Target_temperature" />
  17311. <ScalarProperty Name="Target_humidity" ColumnName="Target_humidity" />
  17312. </MappingFragment>
  17313. </EntityTypeMapping>
  17314. </EntitySetMapping>
  17315. <EntitySetMapping Name="CmZoneTempHumiSet">
  17316. <EntityTypeMapping TypeName="iBemsModel.CmZoneTempHumiSet">
  17317. <MappingFragment StoreEntitySet="CmZoneTempHumiSet">
  17318. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17319. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  17320. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  17321. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  17322. <ScalarProperty Name="T1" ColumnName="T1" />
  17323. <ScalarProperty Name="T2" ColumnName="T2" />
  17324. <ScalarProperty Name="T3" ColumnName="T3" />
  17325. <ScalarProperty Name="T4" ColumnName="T4" />
  17326. <ScalarProperty Name="T5" ColumnName="T5" />
  17327. <ScalarProperty Name="T6" ColumnName="T6" />
  17328. <ScalarProperty Name="T7" ColumnName="T7" />
  17329. <ScalarProperty Name="T8" ColumnName="T8" />
  17330. <ScalarProperty Name="T9" ColumnName="T9" />
  17331. <ScalarProperty Name="T10" ColumnName="T10" />
  17332. <ScalarProperty Name="T11" ColumnName="T11" />
  17333. <ScalarProperty Name="T12" ColumnName="T12" />
  17334. <ScalarProperty Name="H1" ColumnName="H1" />
  17335. <ScalarProperty Name="H2" ColumnName="H2" />
  17336. <ScalarProperty Name="H3" ColumnName="H3" />
  17337. <ScalarProperty Name="H4" ColumnName="H4" />
  17338. <ScalarProperty Name="H5" ColumnName="H5" />
  17339. <ScalarProperty Name="H6" ColumnName="H6" />
  17340. <ScalarProperty Name="H7" ColumnName="H7" />
  17341. <ScalarProperty Name="H8" ColumnName="H8" />
  17342. <ScalarProperty Name="H9" ColumnName="H9" />
  17343. <ScalarProperty Name="H10" ColumnName="H10" />
  17344. <ScalarProperty Name="H11" ColumnName="H11" />
  17345. <ScalarProperty Name="H12" ColumnName="H12" />
  17346. </MappingFragment>
  17347. </EntityTypeMapping>
  17348. </EntitySetMapping>
  17349. <EntitySetMapping Name="FmsAccident">
  17350. <EntityTypeMapping TypeName="iBemsModel.FmsAccident">
  17351. <MappingFragment StoreEntitySet="FmsAccident">
  17352. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17353. <ScalarProperty Name="AccidentId" ColumnName="AccidentId" />
  17354. <ScalarProperty Name="Name" ColumnName="Name" />
  17355. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  17356. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  17357. <ScalarProperty Name="AccidentTypeId" ColumnName="AccidentTypeId" />
  17358. <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
  17359. <ScalarProperty Name="AccidentLocation" ColumnName="AccidentLocation" />
  17360. <ScalarProperty Name="Reason" ColumnName="Reason" />
  17361. <ScalarProperty Name="Action" ColumnName="Action" />
  17362. <ScalarProperty Name="Damage" ColumnName="Damage" />
  17363. <ScalarProperty Name="Measurement" ColumnName="Measurement" />
  17364. <ScalarProperty Name="FileId1" ColumnName="FileId1" />
  17365. <ScalarProperty Name="FileId2" ColumnName="FileId2" />
  17366. <ScalarProperty Name="FileId3" ColumnName="FileId3" />
  17367. <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
  17368. </MappingFragment>
  17369. </EntityTypeMapping>
  17370. </EntitySetMapping>
  17371. <EntitySetMapping Name="FmsAccidentCodeType">
  17372. <EntityTypeMapping TypeName="iBemsModel.FmsAccidentCodeType">
  17373. <MappingFragment StoreEntitySet="FmsAccidentCodeType">
  17374. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17375. <ScalarProperty Name="AccidentTypeId" ColumnName="AccidentTypeId" />
  17376. <ScalarProperty Name="Name" ColumnName="Name" />
  17377. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17378. </MappingFragment>
  17379. </EntityTypeMapping>
  17380. </EntitySetMapping>
  17381. <EntitySetMapping Name="FmsBudget">
  17382. <EntityTypeMapping TypeName="iBemsModel.FmsBudget">
  17383. <MappingFragment StoreEntitySet="FmsBudget">
  17384. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17385. <ScalarProperty Name="Year" ColumnName="Year" />
  17386. </MappingFragment>
  17387. </EntityTypeMapping>
  17388. </EntitySetMapping>
  17389. <EntitySetMapping Name="FmsBudgetCodeClass">
  17390. <EntityTypeMapping TypeName="iBemsModel.FmsBudgetCodeClass">
  17391. <MappingFragment StoreEntitySet="FmsBudgetCodeClass">
  17392. <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
  17393. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17394. <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
  17395. <ScalarProperty Name="BudgetSeq" ColumnName="BudgetSeq" />
  17396. <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
  17397. <ScalarProperty Name="Depth" ColumnName="Depth" />
  17398. <ScalarProperty Name="Name" ColumnName="Name" />
  17399. <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
  17400. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17401. <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
  17402. <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
  17403. </MappingFragment>
  17404. </EntityTypeMapping>
  17405. </EntitySetMapping>
  17406. <EntitySetMapping Name="FmsCompanyEstimationCodeClass">
  17407. <EntityTypeMapping TypeName="iBemsModel.FmsCompanyEstimationCodeClass">
  17408. <MappingFragment StoreEntitySet="FmsCompanyEstimationCodeClass">
  17409. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17410. <ScalarProperty Name="CompanyEstimationClassId" ColumnName="CompanyEstimationClassId" />
  17411. <ScalarProperty Name="Name" ColumnName="Name" />
  17412. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17413. </MappingFragment>
  17414. </EntityTypeMapping>
  17415. </EntitySetMapping>
  17416. <EntitySetMapping Name="FmsConstruction">
  17417. <EntityTypeMapping TypeName="iBemsModel.FmsConstruction">
  17418. <MappingFragment StoreEntitySet="FmsConstruction">
  17419. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17420. <ScalarProperty Name="ConstructionId" ColumnName="ConstructionId" />
  17421. <ScalarProperty Name="Name" ColumnName="Name" />
  17422. <ScalarProperty Name="ConstructionTypeId" ColumnName="ConstructionTypeId" />
  17423. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  17424. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  17425. <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
  17426. <ScalarProperty Name="ConstructLocation" ColumnName="ConstructLocation" />
  17427. <ScalarProperty Name="OwnerShipName" ColumnName="OwnerShipName" />
  17428. <ScalarProperty Name="CommitmentMan" ColumnName="CommitmentMan" />
  17429. <ScalarProperty Name="OwnerShipPhoneNo" ColumnName="OwnerShipPhoneNo" />
  17430. <ScalarProperty Name="WeldWorkStartTime" ColumnName="WeldWorkStartTime" />
  17431. <ScalarProperty Name="WeldWorkEndTime" ColumnName="WeldWorkEndTime" />
  17432. <ScalarProperty Name="GasWorkStartTime" ColumnName="GasWorkStartTime" />
  17433. <ScalarProperty Name="GasWorkEndTime" ColumnName="GasWorkEndTime" />
  17434. <ScalarProperty Name="PaintWorkStartTime" ColumnName="PaintWorkStartTime" />
  17435. <ScalarProperty Name="PaintWorkEndTime" ColumnName="PaintWorkEndTime" />
  17436. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17437. <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
  17438. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  17439. <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
  17440. <ScalarProperty Name="ConstructionDetail" ColumnName="ConstructionDetail" />
  17441. <ScalarProperty Name="InOutStockName" ColumnName="InOutStockName" />
  17442. <ScalarProperty Name="FileId1" ColumnName="FileId1" />
  17443. <ScalarProperty Name="FileId2" ColumnName="FileId2" />
  17444. <ScalarProperty Name="FileId3" ColumnName="FileId3" />
  17445. </MappingFragment>
  17446. </EntityTypeMapping>
  17447. </EntitySetMapping>
  17448. <EntitySetMapping Name="FmsConstructionCodeProgress">
  17449. <EntityTypeMapping TypeName="iBemsModel.FmsConstructionCodeProgress">
  17450. <MappingFragment StoreEntitySet="FmsConstructionCodeProgress">
  17451. <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
  17452. <ScalarProperty Name="Name" ColumnName="Name" />
  17453. <ScalarProperty Name="Description" ColumnName="Description" />
  17454. </MappingFragment>
  17455. </EntityTypeMapping>
  17456. </EntitySetMapping>
  17457. <EntitySetMapping Name="FmsConstructionCodeType">
  17458. <EntityTypeMapping TypeName="iBemsModel.FmsConstructionCodeType">
  17459. <MappingFragment StoreEntitySet="FmsConstructionCodeType">
  17460. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17461. <ScalarProperty Name="ConstructionTypeId" ColumnName="ConstructionTypeId" />
  17462. <ScalarProperty Name="Name" ColumnName="Name" />
  17463. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17464. </MappingFragment>
  17465. </EntityTypeMapping>
  17466. </EntitySetMapping>
  17467. <EntitySetMapping Name="FmsConstructionEstimation">
  17468. <EntityTypeMapping TypeName="iBemsModel.FmsConstructionEstimation">
  17469. <MappingFragment StoreEntitySet="FmsConstructionEstimation">
  17470. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17471. <ScalarProperty Name="ConstructionId" ColumnName="ConstructionId" />
  17472. <ScalarProperty Name="EstimateDate" ColumnName="EstimateDate" />
  17473. <ScalarProperty Name="EstimateUserId" ColumnName="EstimateUserId" />
  17474. <ScalarProperty Name="Safety01_CleanUp" ColumnName="Safety01_CleanUp" />
  17475. <ScalarProperty Name="Safety02_PersonalProtection" ColumnName="Safety02_PersonalProtection" />
  17476. <ScalarProperty Name="Safety03_FireExtinguisher" ColumnName="Safety03_FireExtinguisher" />
  17477. <ScalarProperty Name="Safety04_HighPlaceWork" ColumnName="Safety04_HighPlaceWork" />
  17478. <ScalarProperty Name="Safety05_Weld" ColumnName="Safety05_Weld" />
  17479. <ScalarProperty Name="Safety06_SurroundingCleanUp" ColumnName="Safety06_SurroundingCleanUp" />
  17480. <ScalarProperty Name="Safety07_SurroundingHealthy" ColumnName="Safety07_SurroundingHealthy" />
  17481. <ScalarProperty Name="Safety08_Noise" ColumnName="Safety08_Noise" />
  17482. <ScalarProperty Name="Safety09_FacilityProtection" ColumnName="Safety09_FacilityProtection" />
  17483. <ScalarProperty Name="Safety10_Waste" ColumnName="Safety10_Waste" />
  17484. <ScalarProperty Name="Safety11_Execution" ColumnName="Safety11_Execution" />
  17485. <ScalarProperty Name="Safety12_Announcement" ColumnName="Safety12_Announcement" />
  17486. <ScalarProperty Name="Ability01_Compliance" ColumnName="Ability01_Compliance" />
  17487. <ScalarProperty Name="Ability02_Fault" ColumnName="Ability02_Fault" />
  17488. <ScalarProperty Name="Ability03_SkillLevel" ColumnName="Ability03_SkillLevel" />
  17489. <ScalarProperty Name="Ability04_ProcessManagement" ColumnName="Ability04_ProcessManagement" />
  17490. <ScalarProperty Name="Ability05_Collaboration" ColumnName="Ability05_Collaboration" />
  17491. <ScalarProperty Name="Service01_Compliance" ColumnName="Service01_Compliance" />
  17492. <ScalarProperty Name="Service02_SkillLevel" ColumnName="Service02_SkillLevel" />
  17493. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17494. <ScalarProperty Name="TotalEstimateScore" ColumnName="TotalEstimateScore" />
  17495. <ScalarProperty Name="SafetyScore" ColumnName="SafetyScore" />
  17496. <ScalarProperty Name="AbilityScore" ColumnName="AbilityScore" />
  17497. <ScalarProperty Name="ServiceScore" ColumnName="ServiceScore" />
  17498. </MappingFragment>
  17499. </EntityTypeMapping>
  17500. </EntitySetMapping>
  17501. <EntitySetMapping Name="FmsContractClass">
  17502. <EntityTypeMapping TypeName="iBemsModel.FmsContractClass">
  17503. <MappingFragment StoreEntitySet="FmsContractClass">
  17504. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17505. <ScalarProperty Name="ContractClassId" ColumnName="ContractClassId" />
  17506. <ScalarProperty Name="Name" ColumnName="Name" />
  17507. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17508. </MappingFragment>
  17509. </EntityTypeMapping>
  17510. </EntitySetMapping>
  17511. <EntitySetMapping Name="FmsContractMethod">
  17512. <EntityTypeMapping TypeName="iBemsModel.FmsContractMethod">
  17513. <MappingFragment StoreEntitySet="FmsContractMethod">
  17514. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17515. <ScalarProperty Name="ContractMethodId" ColumnName="ContractMethodId" />
  17516. <ScalarProperty Name="Name" ColumnName="Name" />
  17517. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17518. </MappingFragment>
  17519. </EntityTypeMapping>
  17520. </EntitySetMapping>
  17521. <EntitySetMapping Name="FmsContractType">
  17522. <EntityTypeMapping TypeName="iBemsModel.FmsContractType">
  17523. <MappingFragment StoreEntitySet="FmsContractType">
  17524. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17525. <ScalarProperty Name="ContractTypeId" ColumnName="ContractTypeId" />
  17526. <ScalarProperty Name="Name" ColumnName="Name" />
  17527. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17528. </MappingFragment>
  17529. </EntityTypeMapping>
  17530. </EntitySetMapping>
  17531. <EntitySetMapping Name="FmsDrawing">
  17532. <EntityTypeMapping TypeName="iBemsModel.FmsDrawing">
  17533. <MappingFragment StoreEntitySet="FmsDrawing">
  17534. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17535. <ScalarProperty Name="DrawingId" ColumnName="DrawingId" />
  17536. <ScalarProperty Name="DrawingNo" ColumnName="DrawingNo" />
  17537. <ScalarProperty Name="DrawingGroupId" ColumnName="DrawingGroupId" />
  17538. <ScalarProperty Name="DrawingTypeId" ColumnName="DrawingTypeId" />
  17539. <ScalarProperty Name="Name" ColumnName="Name" />
  17540. <ScalarProperty Name="Description" ColumnName="Description" />
  17541. </MappingFragment>
  17542. </EntityTypeMapping>
  17543. </EntitySetMapping>
  17544. <EntitySetMapping Name="FmsDrawingCodeGroup">
  17545. <EntityTypeMapping TypeName="iBemsModel.FmsDrawingCodeGroup">
  17546. <MappingFragment StoreEntitySet="FmsDrawingCodeGroup">
  17547. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17548. <ScalarProperty Name="DrawingGroupId" ColumnName="DrawingGroupId" />
  17549. <ScalarProperty Name="Name" ColumnName="Name" />
  17550. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17551. </MappingFragment>
  17552. </EntityTypeMapping>
  17553. </EntitySetMapping>
  17554. <EntitySetMapping Name="FmsDrawingCodeType">
  17555. <EntityTypeMapping TypeName="iBemsModel.FmsDrawingCodeType">
  17556. <MappingFragment StoreEntitySet="FmsDrawingCodeType">
  17557. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17558. <ScalarProperty Name="DrawingTypeId" ColumnName="DrawingTypeId" />
  17559. <ScalarProperty Name="Name" ColumnName="Name" />
  17560. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17561. </MappingFragment>
  17562. </EntityTypeMapping>
  17563. </EntitySetMapping>
  17564. <EntitySetMapping Name="FmsDrawingHistory">
  17565. <EntityTypeMapping TypeName="iBemsModel.FmsDrawingHistory">
  17566. <MappingFragment StoreEntitySet="FmsDrawingHistory">
  17567. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17568. <ScalarProperty Name="DrawingId" ColumnName="DrawingId" />
  17569. <ScalarProperty Name="HistoryId" ColumnName="HistoryId" />
  17570. <ScalarProperty Name="RevisionNo" ColumnName="RevisionNo" />
  17571. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17572. <ScalarProperty Name="Description" ColumnName="Description" />
  17573. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  17574. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  17575. </MappingFragment>
  17576. </EntityTypeMapping>
  17577. </EntitySetMapping>
  17578. <EntitySetMapping Name="FmsEquipmentCodeStateType">
  17579. <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentCodeStateType">
  17580. <MappingFragment StoreEntitySet="FmsEquipmentCodeStateType">
  17581. <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
  17582. <ScalarProperty Name="Name" ColumnName="Name" />
  17583. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17584. </MappingFragment>
  17585. </EntityTypeMapping>
  17586. </EntitySetMapping>
  17587. <EntitySetMapping Name="FmsEquipmentCodeType">
  17588. <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentCodeType">
  17589. <MappingFragment StoreEntitySet="FmsEquipmentCodeType">
  17590. <ScalarProperty Name="Description" ColumnName="Description" />
  17591. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17592. <ScalarProperty Name="EquipmentTypeId" ColumnName="EquipmentTypeId" />
  17593. <ScalarProperty Name="Name" ColumnName="Name" />
  17594. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17595. </MappingFragment>
  17596. </EntityTypeMapping>
  17597. </EntitySetMapping>
  17598. <EntitySetMapping Name="FmsEquipmentHistory">
  17599. <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentHistory">
  17600. <MappingFragment StoreEntitySet="FmsEquipmentHistory">
  17601. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17602. <ScalarProperty Name="EquipmentHistoryId" ColumnName="EquipmentHistoryId" />
  17603. <ScalarProperty Name="EquipmentId" ColumnName="EquipmentId" />
  17604. <ScalarProperty Name="TotalStockCount" ColumnName="TotalStockCount" />
  17605. <ScalarProperty Name="CurrentStockCount" ColumnName="CurrentStockCount" />
  17606. <ScalarProperty Name="RentCount" ColumnName="RentCount" />
  17607. <ScalarProperty Name="CurrentRentCount" ColumnName="CurrentRentCount" />
  17608. <ScalarProperty Name="ReturnCount" ColumnName="ReturnCount" />
  17609. <ScalarProperty Name="LossCount" ColumnName="LossCount" />
  17610. <ScalarProperty Name="StoredCount" ColumnName="StoredCount" />
  17611. <ScalarProperty Name="EquipmentRentId" ColumnName="EquipmentRentId" />
  17612. <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
  17613. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  17614. <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
  17615. <ScalarProperty Name="IsReturned" ColumnName="IsReturned" />
  17616. </MappingFragment>
  17617. </EntityTypeMapping>
  17618. </EntitySetMapping>
  17619. <EntitySetMapping Name="FmsFacilityCheckItem">
  17620. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityCheckItem">
  17621. <MappingFragment StoreEntitySet="FmsFacilityCheckItem">
  17622. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17623. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17624. <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
  17625. <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
  17626. <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
  17627. <ScalarProperty Name="Name" ColumnName="Name" />
  17628. <ScalarProperty Name="IsYesNoResult" ColumnName="IsYesNoResult" />
  17629. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17630. </MappingFragment>
  17631. </EntityTypeMapping>
  17632. </EntitySetMapping>
  17633. <EntitySetMapping Name="FmsFacilityCodeClass">
  17634. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityCodeClass">
  17635. <MappingFragment StoreEntitySet="FmsFacilityCodeClass">
  17636. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17637. <ScalarProperty Name="FacilityClassId" ColumnName="FacilityClassId" />
  17638. <ScalarProperty Name="ParentFacilityClassId" ColumnName="ParentFacilityClassId" />
  17639. <ScalarProperty Name="Depth" ColumnName="Depth" />
  17640. <ScalarProperty Name="Name" ColumnName="Name" />
  17641. <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
  17642. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17643. </MappingFragment>
  17644. </EntityTypeMapping>
  17645. </EntitySetMapping>
  17646. <EntitySetMapping Name="FmsFacilityManual">
  17647. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityManual">
  17648. <MappingFragment StoreEntitySet="FmsFacilityManual">
  17649. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17650. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17651. <ScalarProperty Name="ManualId" ColumnName="ManualId" />
  17652. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17653. <ScalarProperty Name="Name" ColumnName="Name" />
  17654. <ScalarProperty Name="Description" ColumnName="Description" />
  17655. <ScalarProperty Name="Keyword" ColumnName="Keyword" />
  17656. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17657. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17658. </MappingFragment>
  17659. </EntityTypeMapping>
  17660. </EntitySetMapping>
  17661. <EntitySetMapping Name="FmsFacilityOperationItem">
  17662. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityOperationItem">
  17663. <MappingFragment StoreEntitySet="FmsFacilityOperationItem">
  17664. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17665. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  17666. <ScalarProperty Name="ItemId" ColumnName="ItemId" />
  17667. <ScalarProperty Name="Name" ColumnName="Name" />
  17668. <ScalarProperty Name="ResultUnit" ColumnName="ResultUnit" />
  17669. <ScalarProperty Name="PointId" ColumnName="PointId" />
  17670. <ScalarProperty Name="SystemId" ColumnName="SystemId" />
  17671. <ScalarProperty Name="EnergyCode" ColumnName="EnergyCode" />
  17672. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17673. <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
  17674. <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
  17675. <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
  17676. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  17677. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  17678. </MappingFragment>
  17679. </EntityTypeMapping>
  17680. </EntitySetMapping>
  17681. <EntitySetMapping Name="FmsLicense">
  17682. <EntityTypeMapping TypeName="iBemsModel.FmsLicense">
  17683. <MappingFragment StoreEntitySet="FmsLicense">
  17684. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17685. <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />
  17686. <ScalarProperty Name="Name" ColumnName="Name" />
  17687. <ScalarProperty Name="IssuingOffice" ColumnName="IssuingOffice" />
  17688. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17689. <ScalarProperty Name="EducationalInstitute" ColumnName="EducationalInstitute" />
  17690. <ScalarProperty Name="Note" ColumnName="Note" />
  17691. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17692. </MappingFragment>
  17693. </EntityTypeMapping>
  17694. </EntitySetMapping>
  17695. <EntitySetMapping Name="FmsManual">
  17696. <EntityTypeMapping TypeName="iBemsModel.FmsManual">
  17697. <MappingFragment StoreEntitySet="FmsManual">
  17698. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17699. <ScalarProperty Name="ManualId" ColumnName="ManualId" />
  17700. <ScalarProperty Name="ManualNo" ColumnName="ManualNo" />
  17701. <ScalarProperty Name="ManualTypeId" ColumnName="ManualTypeId" />
  17702. <ScalarProperty Name="Name" ColumnName="Name" />
  17703. <ScalarProperty Name="Description" ColumnName="Description" />
  17704. </MappingFragment>
  17705. </EntityTypeMapping>
  17706. </EntitySetMapping>
  17707. <EntitySetMapping Name="FmsManualHistory">
  17708. <EntityTypeMapping TypeName="iBemsModel.FmsManualHistory">
  17709. <MappingFragment StoreEntitySet="FmsManualHistory">
  17710. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17711. <ScalarProperty Name="ManualId" ColumnName="ManualId" />
  17712. <ScalarProperty Name="HistoryId" ColumnName="HistoryId" />
  17713. <ScalarProperty Name="RevisionNo" ColumnName="RevisionNo" />
  17714. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17715. <ScalarProperty Name="Description" ColumnName="Description" />
  17716. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  17717. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  17718. </MappingFragment>
  17719. </EntityTypeMapping>
  17720. </EntitySetMapping>
  17721. <EntitySetMapping Name="FmsManualType">
  17722. <EntityTypeMapping TypeName="iBemsModel.FmsManualType">
  17723. <MappingFragment StoreEntitySet="FmsManualType">
  17724. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17725. <ScalarProperty Name="ManualTypeId" ColumnName="ManualTypeId" />
  17726. <ScalarProperty Name="Name" ColumnName="Name" />
  17727. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17728. </MappingFragment>
  17729. </EntityTypeMapping>
  17730. </EntitySetMapping>
  17731. <EntitySetMapping Name="FmsMaterialCarriedForward">
  17732. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCarriedForward">
  17733. <MappingFragment StoreEntitySet="FmsMaterialCarriedForward">
  17734. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17735. <ScalarProperty Name="ClosedDate" ColumnName="ClosedDate" />
  17736. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17737. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  17738. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  17739. <ScalarProperty Name="StockCount" ColumnName="StockCount" />
  17740. <ScalarProperty Name="StockTotalCost" ColumnName="StockTotalCost" />
  17741. </MappingFragment>
  17742. </EntityTypeMapping>
  17743. </EntitySetMapping>
  17744. <EntitySetMapping Name="FmsMaterialCodeAdjustmentType">
  17745. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeAdjustmentType">
  17746. <MappingFragment StoreEntitySet="FmsMaterialCodeAdjustmentType">
  17747. <ScalarProperty Name="AdjustmentTypeId" ColumnName="AdjustmentTypeId" />
  17748. <ScalarProperty Name="Name" ColumnName="Name" />
  17749. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17750. </MappingFragment>
  17751. </EntityTypeMapping>
  17752. </EntitySetMapping>
  17753. <EntitySetMapping Name="FmsMaterialCodeClass">
  17754. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeClass">
  17755. <MappingFragment StoreEntitySet="FmsMaterialCodeClass">
  17756. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17757. <ScalarProperty Name="MaterialClassId" ColumnName="MaterialClassId" />
  17758. <ScalarProperty Name="ParentMaterialClassId" ColumnName="ParentMaterialClassId" />
  17759. <ScalarProperty Name="Depth" ColumnName="Depth" />
  17760. <ScalarProperty Name="Name" ColumnName="Name" />
  17761. <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
  17762. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17763. </MappingFragment>
  17764. </EntityTypeMapping>
  17765. </EntitySetMapping>
  17766. <EntitySetMapping Name="FmsMaterialCodeLocation">
  17767. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeLocation">
  17768. <MappingFragment StoreEntitySet="FmsMaterialCodeLocation">
  17769. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17770. <ScalarProperty Name="LocationId" ColumnName="LocationId" />
  17771. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17772. <ScalarProperty Name="Name" ColumnName="Name" />
  17773. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17774. </MappingFragment>
  17775. </EntityTypeMapping>
  17776. </EntitySetMapping>
  17777. <EntitySetMapping Name="FmsMaterialCodeProgress">
  17778. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeProgress">
  17779. <MappingFragment StoreEntitySet="FmsMaterialCodeProgress">
  17780. <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
  17781. <ScalarProperty Name="Name" ColumnName="Name" />
  17782. <ScalarProperty Name="Description" ColumnName="Description" />
  17783. </MappingFragment>
  17784. </EntityTypeMapping>
  17785. </EntitySetMapping>
  17786. <EntitySetMapping Name="FmsMaterialCodePurchaseType">
  17787. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodePurchaseType">
  17788. <MappingFragment StoreEntitySet="FmsMaterialCodePurchaseType">
  17789. <ScalarProperty Name="PurchaseTypeId" ColumnName="PurchaseTypeId" />
  17790. <ScalarProperty Name="Name" ColumnName="Name" />
  17791. <ScalarProperty Name="Comment" ColumnName="Comment" />
  17792. </MappingFragment>
  17793. </EntityTypeMapping>
  17794. </EntitySetMapping>
  17795. <EntitySetMapping Name="FmsMaterialCodeReleaseType">
  17796. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeReleaseType">
  17797. <MappingFragment StoreEntitySet="FmsMaterialCodeReleaseType">
  17798. <ScalarProperty Name="ReleaseTypeId" ColumnName="ReleaseTypeId" />
  17799. <ScalarProperty Name="Name" ColumnName="Name" />
  17800. <ScalarProperty Name="Description" ColumnName="Description" />
  17801. </MappingFragment>
  17802. </EntityTypeMapping>
  17803. </EntitySetMapping>
  17804. <EntitySetMapping Name="FmsMaterialCodeType">
  17805. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeType">
  17806. <MappingFragment StoreEntitySet="FmsMaterialCodeType">
  17807. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17808. <ScalarProperty Name="MaterialTypeId" ColumnName="MaterialTypeId" />
  17809. <ScalarProperty Name="Name" ColumnName="Name" />
  17810. <ScalarProperty Name="Nickname" ColumnName="Nickname" />
  17811. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17812. </MappingFragment>
  17813. </EntityTypeMapping>
  17814. </EntitySetMapping>
  17815. <EntitySetMapping Name="FmsMaterialPurchaseOrder">
  17816. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseOrder">
  17817. <MappingFragment StoreEntitySet="FmsMaterialPurchaseOrder">
  17818. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17819. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17820. <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
  17821. <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
  17822. <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
  17823. <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
  17824. <ScalarProperty Name="OrderUserId" ColumnName="OrderUserId" />
  17825. <ScalarProperty Name="Title" ColumnName="Title" />
  17826. <ScalarProperty Name="Reason" ColumnName="Reason" />
  17827. <ScalarProperty Name="StoredDueDate" ColumnName="StoredDueDate" />
  17828. <ScalarProperty Name="FileId" ColumnName="FileId" />
  17829. </MappingFragment>
  17830. </EntityTypeMapping>
  17831. </EntitySetMapping>
  17832. <EntitySetMapping Name="FmsMaterialPurchaseOrderMaterial">
  17833. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseOrderMaterial">
  17834. <MappingFragment StoreEntitySet="FmsMaterialPurchaseOrderMaterial">
  17835. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17836. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17837. <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
  17838. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  17839. <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
  17840. <ScalarProperty Name="UnitCost" ColumnName="UnitCost" />
  17841. </MappingFragment>
  17842. </EntityTypeMapping>
  17843. </EntitySetMapping>
  17844. <EntitySetMapping Name="FmsMaterialPurchaseRequest">
  17845. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseRequest">
  17846. <MappingFragment StoreEntitySet="FmsMaterialPurchaseRequest">
  17847. <ScalarProperty Name="bSameOrder" ColumnName="bSameOrder" />
  17848. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17849. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17850. <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
  17851. <ScalarProperty Name="PurchaseTypeId" ColumnName="PurchaseTypeId" />
  17852. <ScalarProperty Name="RequestDate" ColumnName="RequestDate" />
  17853. <ScalarProperty Name="RequestUserId" ColumnName="RequestUserId" />
  17854. <ScalarProperty Name="PurchaseHopeDate" ColumnName="PurchaseHopeDate" />
  17855. <ScalarProperty Name="Title" ColumnName="Title" />
  17856. <ScalarProperty Name="Reason" ColumnName="Reason" />
  17857. <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
  17858. <ScalarProperty Name="ApprovalDate" ColumnName="ApprovalDate" />
  17859. <ScalarProperty Name="ApprovalUserId" ColumnName="ApprovalUserId" />
  17860. </MappingFragment>
  17861. </EntityTypeMapping>
  17862. </EntitySetMapping>
  17863. <EntitySetMapping Name="FmsMaterialPurchaseRequestMaterial">
  17864. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseRequestMaterial">
  17865. <MappingFragment StoreEntitySet="FmsMaterialPurchaseRequestMaterial">
  17866. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17867. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17868. <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
  17869. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  17870. <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
  17871. </MappingFragment>
  17872. </EntityTypeMapping>
  17873. </EntitySetMapping>
  17874. <EntitySetMapping Name="FmsMaterialStored">
  17875. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialStored">
  17876. <MappingFragment StoreEntitySet="FmsMaterialStored">
  17877. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17878. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17879. <ScalarProperty Name="StoredDate" ColumnName="StoredDate" />
  17880. <ScalarProperty Name="MaterialStoredId" ColumnName="MaterialStoredId" />
  17881. <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
  17882. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  17883. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  17884. <ScalarProperty Name="StoredCount" ColumnName="StoredCount" />
  17885. <ScalarProperty Name="RemainStoredCount" ColumnName="RemainStoredCount" />
  17886. <ScalarProperty Name="UnitCost" ColumnName="UnitCost" />
  17887. <ScalarProperty Name="StockCount" ColumnName="StockCount" />
  17888. <ScalarProperty Name="Note" ColumnName="Note" />
  17889. <ScalarProperty Name="StoredUserId" ColumnName="StoredUserId" />
  17890. <ScalarProperty Name="ApprovalDate" ColumnName="ApprovalDate" />
  17891. <ScalarProperty Name="ApprovalUserId" ColumnName="ApprovalUserId" />
  17892. <ScalarProperty Name="IsApproval" ColumnName="IsApproval" />
  17893. <ScalarProperty Name="LocationInWarehouse" ColumnName="LocationInWarehouse" />
  17894. </MappingFragment>
  17895. </EntityTypeMapping>
  17896. </EntitySetMapping>
  17897. <EntitySetMapping Name="FmsMaterialTradeCompany">
  17898. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialTradeCompany">
  17899. <MappingFragment StoreEntitySet="FmsMaterialTradeCompany">
  17900. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17901. <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
  17902. <ScalarProperty Name="Name" ColumnName="Name" />
  17903. <ScalarProperty Name="RegistrationNo" ColumnName="RegistrationNo" />
  17904. <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
  17905. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  17906. <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
  17907. <ScalarProperty Name="SalesName" ColumnName="SalesName" />
  17908. <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
  17909. <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
  17910. <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
  17911. <ScalarProperty Name="Address1" ColumnName="Address1" />
  17912. <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
  17913. <ScalarProperty Name="HomepageUri" ColumnName="HomepageUri" />
  17914. <ScalarProperty Name="Note" ColumnName="Note" />
  17915. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17916. </MappingFragment>
  17917. </EntityTypeMapping>
  17918. </EntitySetMapping>
  17919. <EntitySetMapping Name="FmsMaterialWarehouse">
  17920. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialWarehouse">
  17921. <MappingFragment StoreEntitySet="FmsMaterialWarehouse">
  17922. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17923. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  17924. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  17925. <ScalarProperty Name="Name" ColumnName="Name" />
  17926. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17927. </MappingFragment>
  17928. </EntityTypeMapping>
  17929. </EntitySetMapping>
  17930. <EntitySetMapping Name="FmsPaymentType">
  17931. <EntityTypeMapping TypeName="iBemsModel.FmsPaymentType">
  17932. <MappingFragment StoreEntitySet="FmsPaymentType">
  17933. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17934. <ScalarProperty Name="PaymentTypeId" ColumnName="PaymentTypeId" />
  17935. <ScalarProperty Name="Name" ColumnName="Name" />
  17936. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17937. </MappingFragment>
  17938. </EntityTypeMapping>
  17939. </EntitySetMapping>
  17940. <EntitySetMapping Name="FmsWorkCodeCauseClass">
  17941. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeCauseClass">
  17942. <MappingFragment StoreEntitySet="FmsWorkCodeCauseClass">
  17943. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17944. <ScalarProperty Name="CauseClassId" ColumnName="CauseClassId" />
  17945. <ScalarProperty Name="ParentId" ColumnName="ParentId" />
  17946. <ScalarProperty Name="Name" ColumnName="Name" />
  17947. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17948. </MappingFragment>
  17949. </EntityTypeMapping>
  17950. </EntitySetMapping>
  17951. <EntitySetMapping Name="FmsWorkCodeCycleUnit">
  17952. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeCycleUnit">
  17953. <MappingFragment StoreEntitySet="FmsWorkCodeCycleUnit">
  17954. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17955. <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
  17956. <ScalarProperty Name="Name" ColumnName="Name" />
  17957. <ScalarProperty Name="Description" ColumnName="Description" />
  17958. </MappingFragment>
  17959. </EntityTypeMapping>
  17960. </EntitySetMapping>
  17961. <EntitySetMapping Name="FmsWorkCodeEmergency">
  17962. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeEmergency">
  17963. <MappingFragment StoreEntitySet="FmsWorkCodeEmergency">
  17964. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17965. <ScalarProperty Name="EmergencyId" ColumnName="EmergencyId" />
  17966. <ScalarProperty Name="Name" ColumnName="Name" />
  17967. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17968. </MappingFragment>
  17969. </EntityTypeMapping>
  17970. </EntitySetMapping>
  17971. <EntitySetMapping Name="FmsWorkCodeHolidayWorkType">
  17972. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeHolidayWorkType">
  17973. <MappingFragment StoreEntitySet="FmsWorkCodeHolidayWorkType">
  17974. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17975. <ScalarProperty Name="HolidayWorkTypeId" ColumnName="HolidayWorkTypeId" />
  17976. <ScalarProperty Name="Name" ColumnName="Name" />
  17977. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17978. </MappingFragment>
  17979. </EntityTypeMapping>
  17980. </EntitySetMapping>
  17981. <EntitySetMapping Name="FmsWorkCodeLegalInspectionAgency">
  17982. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeLegalInspectionAgency">
  17983. <MappingFragment StoreEntitySet="FmsWorkCodeLegalInspectionAgency">
  17984. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  17985. <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
  17986. <ScalarProperty Name="Name" ColumnName="Name" />
  17987. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  17988. </MappingFragment>
  17989. </EntityTypeMapping>
  17990. </EntitySetMapping>
  17991. <EntitySetMapping Name="FmsWorkCodeProgress">
  17992. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeProgress">
  17993. <MappingFragment StoreEntitySet="FmsWorkCodeProgress">
  17994. <ScalarProperty Name="WorkProgressId" ColumnName="WorkProgressId" />
  17995. <ScalarProperty Name="Name" ColumnName="Name" />
  17996. <ScalarProperty Name="Description" ColumnName="Description" />
  17997. </MappingFragment>
  17998. </EntityTypeMapping>
  17999. </EntitySetMapping>
  18000. <EntitySetMapping Name="FmsWorkCodeType">
  18001. <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeType">
  18002. <MappingFragment StoreEntitySet="FmsWorkCodeType">
  18003. <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
  18004. <ScalarProperty Name="Name" ColumnName="Name" />
  18005. <ScalarProperty Name="Description" ColumnName="Description" />
  18006. </MappingFragment>
  18007. </EntityTypeMapping>
  18008. </EntitySetMapping>
  18009. <EntitySetMapping Name="FmsWorkOrder">
  18010. <EntityTypeMapping TypeName="iBemsModel.FmsWorkOrder">
  18011. <MappingFragment StoreEntitySet="FmsWorkOrder">
  18012. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18013. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18014. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18015. <ScalarProperty Name="EmergencyId" ColumnName="EmergencyId" />
  18016. <ScalarProperty Name="OrderUserId" ColumnName="OrderUserId" />
  18017. <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
  18018. <ScalarProperty Name="StartWorkDate" ColumnName="StartWorkDate" />
  18019. <ScalarProperty Name="Title" ColumnName="Title" />
  18020. <ScalarProperty Name="Content" ColumnName="Content" />
  18021. </MappingFragment>
  18022. </EntityTypeMapping>
  18023. </EntitySetMapping>
  18024. <EntitySetMapping Name="FmsWorkOrderToFacility">
  18025. <EntityTypeMapping TypeName="iBemsModel.FmsWorkOrderToFacility">
  18026. <MappingFragment StoreEntitySet="FmsWorkOrderToFacility">
  18027. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18028. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18029. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18030. </MappingFragment>
  18031. </EntityTypeMapping>
  18032. </EntitySetMapping>
  18033. <EntitySetMapping Name="FmsWorkRequest">
  18034. <EntityTypeMapping TypeName="iBemsModel.FmsWorkRequest">
  18035. <MappingFragment StoreEntitySet="FmsWorkRequest">
  18036. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18037. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18038. <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
  18039. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18040. <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
  18041. <ScalarProperty Name="WorkProgressId" ColumnName="WorkProgressId" />
  18042. <ScalarProperty Name="Title" ColumnName="Title" />
  18043. <ScalarProperty Name="Content" ColumnName="Content" />
  18044. <ScalarProperty Name="RequestUserId" ColumnName="RequestUserId" />
  18045. <ScalarProperty Name="RequestDate" ColumnName="RequestDate" />
  18046. <ScalarProperty Name="StartWorkDate" ColumnName="StartWorkDate" />
  18047. <ScalarProperty Name="RejectUserId" ColumnName="RejectUserId" />
  18048. <ScalarProperty Name="RejectDate" ColumnName="RejectDate" />
  18049. <ScalarProperty Name="RejectReason" ColumnName="RejectReason" />
  18050. <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
  18051. </MappingFragment>
  18052. </EntityTypeMapping>
  18053. </EntitySetMapping>
  18054. <EntitySetMapping Name="FmsWorkRequestToFacility">
  18055. <EntityTypeMapping TypeName="iBemsModel.FmsWorkRequestToFacility">
  18056. <MappingFragment StoreEntitySet="FmsWorkRequestToFacility">
  18057. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18058. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18059. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18060. </MappingFragment>
  18061. </EntityTypeMapping>
  18062. </EntitySetMapping>
  18063. <EntitySetMapping Name="FmsWorkResult">
  18064. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResult">
  18065. <MappingFragment StoreEntitySet="FmsWorkResult">
  18066. <ScalarProperty Name="ConfirmDesc" ColumnName="ConfirmDesc" />
  18067. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18068. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18069. <ScalarProperty Name="WorkerUserId" ColumnName="WorkerUserId" />
  18070. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  18071. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  18072. <ScalarProperty Name="CauseClassId" ColumnName="CauseClassId" />
  18073. <ScalarProperty Name="Content" ColumnName="Content" />
  18074. <ScalarProperty Name="ConfirmedDate" ColumnName="ConfirmedDate" />
  18075. <ScalarProperty Name="ConfirmedUserId" ColumnName="ConfirmedUserId" />
  18076. <ScalarProperty Name="IsConfirmed" ColumnName="IsConfirmed" />
  18077. </MappingFragment>
  18078. </EntityTypeMapping>
  18079. </EntitySetMapping>
  18080. <EntitySetMapping Name="FmsWorkResultCheckItem">
  18081. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultCheckItem">
  18082. <MappingFragment StoreEntitySet="FmsWorkResultCheckItem">
  18083. <ScalarProperty Name="FileId2" ColumnName="FileId2" />
  18084. <ScalarProperty Name="FileId1" ColumnName="FileId1" />
  18085. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18086. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18087. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18088. <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
  18089. <ScalarProperty Name="BoolResult" ColumnName="BoolResult" />
  18090. <ScalarProperty Name="TextResult" ColumnName="TextResult" />
  18091. <ScalarProperty Name="CheckDate" ColumnName="CheckDate" />
  18092. </MappingFragment>
  18093. </EntityTypeMapping>
  18094. </EntitySetMapping>
  18095. <EntitySetMapping Name="FmsWorkResultCheckItemMaterial">
  18096. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultCheckItemMaterial">
  18097. <MappingFragment StoreEntitySet="FmsWorkResultCheckItemMaterial">
  18098. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18099. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18100. <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
  18101. <ScalarProperty Name="CheckItemMaterialId" ColumnName="CheckItemMaterialId" />
  18102. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18103. <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
  18104. <ScalarProperty Name="MaterialCode" ColumnName="MaterialCode" />
  18105. <ScalarProperty Name="Name" ColumnName="Name" />
  18106. </MappingFragment>
  18107. </EntityTypeMapping>
  18108. </EntitySetMapping>
  18109. <EntitySetMapping Name="FmsWorkResultFile">
  18110. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultFile">
  18111. <MappingFragment StoreEntitySet="FmsWorkResultFile">
  18112. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18113. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18114. <ScalarProperty Name="FileId" ColumnName="FileId" />
  18115. </MappingFragment>
  18116. </EntityTypeMapping>
  18117. </EntitySetMapping>
  18118. <EntitySetMapping Name="FmsWorkResultLaw">
  18119. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultLaw">
  18120. <MappingFragment StoreEntitySet="FmsWorkResultLaw">
  18121. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18122. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18123. <ScalarProperty Name="CertificationNo" ColumnName="CertificationNo" />
  18124. <ScalarProperty Name="CheckCommission" ColumnName="CheckCommission" />
  18125. <ScalarProperty Name="CheckResult" ColumnName="CheckResult" />
  18126. </MappingFragment>
  18127. </EntityTypeMapping>
  18128. </EntitySetMapping>
  18129. <EntitySetMapping Name="FmsWorkResultToFacility">
  18130. <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultToFacility">
  18131. <MappingFragment StoreEntitySet="FmsWorkResultToFacility">
  18132. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18133. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18134. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18135. </MappingFragment>
  18136. </EntityTypeMapping>
  18137. </EntitySetMapping>
  18138. <EntitySetMapping Name="FmsWorkScheduleToFacility">
  18139. <EntityTypeMapping TypeName="iBemsModel.FmsWorkScheduleToFacility">
  18140. <MappingFragment StoreEntitySet="FmsWorkScheduleToFacility">
  18141. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18142. <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
  18143. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18144. </MappingFragment>
  18145. </EntityTypeMapping>
  18146. </EntitySetMapping>
  18147. <EntitySetMapping Name="sysdiagrams">
  18148. <EntityTypeMapping TypeName="iBemsModel.sysdiagrams">
  18149. <MappingFragment StoreEntitySet="sysdiagrams">
  18150. <ScalarProperty Name="name" ColumnName="name" />
  18151. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  18152. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  18153. <ScalarProperty Name="version" ColumnName="version" />
  18154. <ScalarProperty Name="definition" ColumnName="definition" />
  18155. </MappingFragment>
  18156. </EntityTypeMapping>
  18157. </EntitySetMapping>
  18158. <EntitySetMapping Name="FmsDailyCheckReport">
  18159. <EntityTypeMapping TypeName="iBemsModel.FmsDailyCheckReport">
  18160. <MappingFragment StoreEntitySet="FmsDailyCheckReport">
  18161. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  18162. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  18163. <ScalarProperty Name="Contents" ColumnName="Contents" />
  18164. <ScalarProperty Name="Name" ColumnName="Name" />
  18165. <ScalarProperty Name="DailyCheckReportId" ColumnName="DailyCheckReportId" />
  18166. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18167. </MappingFragment>
  18168. </EntityTypeMapping>
  18169. </EntitySetMapping>
  18170. <EntitySetMapping Name="FmsFacilityOperationReport">
  18171. <EntityTypeMapping TypeName="iBemsModel.FmsFacilityOperationReport">
  18172. <MappingFragment StoreEntitySet="FmsFacilityOperationReport">
  18173. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  18174. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  18175. <ScalarProperty Name="Contents" ColumnName="Contents" />
  18176. <ScalarProperty Name="Name" ColumnName="Name" />
  18177. <ScalarProperty Name="FacilityOperationReportId" ColumnName="FacilityOperationReportId" />
  18178. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18179. </MappingFragment>
  18180. </EntityTypeMapping>
  18181. </EntitySetMapping>
  18182. <EntitySetMapping Name="FmsBudgetDetail">
  18183. <EntityTypeMapping TypeName="iBemsModel.FmsBudgetDetail">
  18184. <MappingFragment StoreEntitySet="FmsBudgetDetail">
  18185. <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
  18186. <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
  18187. <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
  18188. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18189. <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
  18190. <ScalarProperty Name="Name" ColumnName="Name" />
  18191. <ScalarProperty Name="Depth" ColumnName="Depth" />
  18192. <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
  18193. <ScalarProperty Name="BudgetSeq" ColumnName="BudgetSeq" />
  18194. <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
  18195. <ScalarProperty Name="Year" ColumnName="Year" />
  18196. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18197. </MappingFragment>
  18198. </EntityTypeMapping>
  18199. </EntitySetMapping>
  18200. <EntitySetMapping Name="FmsBudgetDetailExecution">
  18201. <EntityTypeMapping TypeName="iBemsModel.FmsBudgetDetailExecution">
  18202. <MappingFragment StoreEntitySet="FmsBudgetDetailExecution">
  18203. <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
  18204. <ScalarProperty Name="YearlyExecution" ColumnName="YearlyExecution" />
  18205. <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
  18206. <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
  18207. <ScalarProperty Name="Month" ColumnName="Month" />
  18208. <ScalarProperty Name="MonthlyExecution" ColumnName="MonthlyExecution" />
  18209. <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
  18210. <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
  18211. <ScalarProperty Name="Year" ColumnName="Year" />
  18212. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18213. </MappingFragment>
  18214. </EntityTypeMapping>
  18215. </EntitySetMapping>
  18216. <EntitySetMapping Name="FmsMonthlyReport">
  18217. <EntityTypeMapping TypeName="iBemsModel.FmsMonthlyReport">
  18218. <MappingFragment StoreEntitySet="FmsMonthlyReport">
  18219. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  18220. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  18221. <ScalarProperty Name="Contents" ColumnName="Contents" />
  18222. <ScalarProperty Name="Name" ColumnName="Name" />
  18223. <ScalarProperty Name="MonthlyReportId" ColumnName="MonthlyReportId" />
  18224. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18225. </MappingFragment>
  18226. </EntityTypeMapping>
  18227. </EntitySetMapping>
  18228. <EntitySetMapping Name="FmsInvestmentCost">
  18229. <EntityTypeMapping TypeName="iBemsModel.FmsInvestmentCost">
  18230. <MappingFragment StoreEntitySet="FmsInvestmentCost">
  18231. <ScalarProperty Name="InsvestmentCost" ColumnName="InsvestmentCost" />
  18232. <ScalarProperty Name="Comment" ColumnName="Comment" />
  18233. <ScalarProperty Name="Name" ColumnName="Name" />
  18234. <ScalarProperty Name="InsvestmentCostId" ColumnName="InsvestmentCostId" />
  18235. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18236. </MappingFragment>
  18237. </EntityTypeMapping>
  18238. </EntitySetMapping>
  18239. <EntitySetMapping Name="CmHolidayWeekend">
  18240. <EntityTypeMapping TypeName="iBemsModel.CmHolidayWeekend">
  18241. <MappingFragment StoreEntitySet="CmHolidayWeekend">
  18242. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18243. <ScalarProperty Name="Sunday" ColumnName="Sunday" />
  18244. <ScalarProperty Name="Saturday" ColumnName="Saturday" />
  18245. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18246. </MappingFragment>
  18247. </EntityTypeMapping>
  18248. </EntitySetMapping>
  18249. <EntitySetMapping Name="FmsMaterial">
  18250. <EntityTypeMapping TypeName="iBemsModel.FmsMaterial">
  18251. <MappingFragment StoreEntitySet="FmsMaterial">
  18252. <ScalarProperty Name="FinalTotalStockAmount" ColumnName="FinalTotalStockAmount" />
  18253. <ScalarProperty Name="FinalStockCount" ColumnName="FinalStockCount" />
  18254. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18255. <ScalarProperty Name="IsDiscontinued" ColumnName="IsDiscontinued" />
  18256. <ScalarProperty Name="Note" ColumnName="Note" />
  18257. <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
  18258. <ScalarProperty Name="FinalPrice" ColumnName="FinalPrice" />
  18259. <ScalarProperty Name="Standard" ColumnName="Standard" />
  18260. <ScalarProperty Name="Manufacturer" ColumnName="Manufacturer" />
  18261. <ScalarProperty Name="ReasonableStockCount" ColumnName="ReasonableStockCount" />
  18262. <ScalarProperty Name="DurableYears" ColumnName="DurableYears" />
  18263. <ScalarProperty Name="Unit" ColumnName="Unit" />
  18264. <ScalarProperty Name="Rfid" ColumnName="Rfid" />
  18265. <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
  18266. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  18267. <ScalarProperty Name="MaterialTypeId" ColumnName="MaterialTypeId" />
  18268. <ScalarProperty Name="LocationId" ColumnName="LocationId" />
  18269. <ScalarProperty Name="ThirdClassId" ColumnName="ThirdClassId" />
  18270. <ScalarProperty Name="SecondClassId" ColumnName="SecondClassId" />
  18271. <ScalarProperty Name="FirstClassId" ColumnName="FirstClassId" />
  18272. <ScalarProperty Name="Name" ColumnName="Name" />
  18273. <ScalarProperty Name="MaterialCode" ColumnName="MaterialCode" />
  18274. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18275. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18276. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18277. </MappingFragment>
  18278. </EntityTypeMapping>
  18279. </EntitySetMapping>
  18280. <EntitySetMapping Name="FmsMaterialRelease">
  18281. <EntityTypeMapping TypeName="iBemsModel.FmsMaterialRelease">
  18282. <MappingFragment StoreEntitySet="FmsMaterialRelease">
  18283. <ScalarProperty Name="StockCountByPoint" ColumnName="StockCountByPoint" />
  18284. <ScalarProperty Name="Comment" ColumnName="Comment" />
  18285. <ScalarProperty Name="IsConfirmed" ColumnName="IsConfirmed" />
  18286. <ScalarProperty Name="ConfirmedDate" ColumnName="ConfirmedDate" />
  18287. <ScalarProperty Name="ConfirmedUserId" ColumnName="ConfirmedUserId" />
  18288. <ScalarProperty Name="AdjustmentUserId" ColumnName="AdjustmentUserId" />
  18289. <ScalarProperty Name="AdjustmentTypeId" ColumnName="AdjustmentTypeId" />
  18290. <ScalarProperty Name="ReleaseTotalCost" ColumnName="ReleaseTotalCost" />
  18291. <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
  18292. <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
  18293. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  18294. <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
  18295. <ScalarProperty Name="ReleaseTypeId" ColumnName="ReleaseTypeId" />
  18296. <ScalarProperty Name="MaterialReleaseId" ColumnName="MaterialReleaseId" />
  18297. <ScalarProperty Name="ReleaseDate" ColumnName="ReleaseDate" />
  18298. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18299. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18300. </MappingFragment>
  18301. </EntityTypeMapping>
  18302. </EntitySetMapping>
  18303. <EntitySetMapping Name="CmPatrolType">
  18304. <EntityTypeMapping TypeName="iBemsModel.CmPatrolType">
  18305. <MappingFragment StoreEntitySet="CmPatrolType">
  18306. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18307. <ScalarProperty Name="Name" ColumnName="Name" />
  18308. <ScalarProperty Name="PatrolTypeId" ColumnName="PatrolTypeId" />
  18309. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18310. </MappingFragment>
  18311. </EntityTypeMapping>
  18312. </EntitySetMapping>
  18313. <EntitySetMapping Name="CmPatrolGroup">
  18314. <EntityTypeMapping TypeName="iBemsModel.CmPatrolGroup">
  18315. <MappingFragment StoreEntitySet="CmPatrolGroup">
  18316. <ScalarProperty Name="Name" ColumnName="Name" />
  18317. <ScalarProperty Name="PatrolGroupId" ColumnName="PatrolGroupId" />
  18318. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18319. </MappingFragment>
  18320. </EntityTypeMapping>
  18321. </EntitySetMapping>
  18322. <EntitySetMapping Name="CmPatrolGroupUser">
  18323. <EntityTypeMapping TypeName="iBemsModel.CmPatrolGroupUser">
  18324. <MappingFragment StoreEntitySet="CmPatrolGroupUser">
  18325. <ScalarProperty Name="UserId" ColumnName="UserId" />
  18326. <ScalarProperty Name="PatrolGroupId" ColumnName="PatrolGroupId" />
  18327. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18328. </MappingFragment>
  18329. </EntityTypeMapping>
  18330. </EntitySetMapping>
  18331. <EntitySetMapping Name="CmPatrolPos">
  18332. <EntityTypeMapping TypeName="iBemsModel.CmPatrolPos">
  18333. <MappingFragment StoreEntitySet="CmPatrolPos">
  18334. <ScalarProperty Name="PosDesc" ColumnName="PosDesc" />
  18335. <ScalarProperty Name="TagId" ColumnName="TagId" />
  18336. <ScalarProperty Name="Name" ColumnName="Name" />
  18337. <ScalarProperty Name="PosId" ColumnName="PosId" />
  18338. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  18339. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  18340. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18341. </MappingFragment>
  18342. </EntityTypeMapping>
  18343. </EntitySetMapping>
  18344. <EntitySetMapping Name="CmPatrolCourse">
  18345. <EntityTypeMapping TypeName="iBemsModel.CmPatrolCourse">
  18346. <MappingFragment StoreEntitySet="CmPatrolCourse">
  18347. <ScalarProperty Name="Name" ColumnName="Name" />
  18348. <ScalarProperty Name="PatrolCourseId" ColumnName="PatrolCourseId" />
  18349. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18350. </MappingFragment>
  18351. </EntityTypeMapping>
  18352. </EntitySetMapping>
  18353. <EntitySetMapping Name="CmPatrolCoursePos">
  18354. <EntityTypeMapping TypeName="iBemsModel.CmPatrolCoursePos">
  18355. <MappingFragment StoreEntitySet="CmPatrolCoursePos">
  18356. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  18357. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  18358. <ScalarProperty Name="CourseOrder" ColumnName="CourseOrder" />
  18359. <ScalarProperty Name="PosId" ColumnName="PosId" />
  18360. <ScalarProperty Name="PatrolCourseId" ColumnName="PatrolCourseId" />
  18361. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18362. </MappingFragment>
  18363. </EntityTypeMapping>
  18364. </EntitySetMapping>
  18365. <EntitySetMapping Name="CmPatrolPlan">
  18366. <EntityTypeMapping TypeName="iBemsModel.CmPatrolPlan">
  18367. <MappingFragment StoreEntitySet="CmPatrolPlan">
  18368. <ScalarProperty Name="inDate" ColumnName="inDate" />
  18369. <ScalarProperty Name="term" ColumnName="term" />
  18370. <ScalarProperty Name="PlanDesc" ColumnName="PlanDesc" />
  18371. <ScalarProperty Name="Name" ColumnName="Name" />
  18372. <ScalarProperty Name="CourseId" ColumnName="CourseId" />
  18373. <ScalarProperty Name="GroupId" ColumnName="GroupId" />
  18374. <ScalarProperty Name="PatrolPlanId" ColumnName="PatrolPlanId" />
  18375. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18376. </MappingFragment>
  18377. </EntityTypeMapping>
  18378. </EntitySetMapping>
  18379. <EntitySetMapping Name="CmPatrolHistoryPos">
  18380. <EntityTypeMapping TypeName="iBemsModel.CmPatrolHistoryPos">
  18381. <MappingFragment StoreEntitySet="CmPatrolHistoryPos">
  18382. <ScalarProperty Name="mId" ColumnName="mId" />
  18383. <ScalarProperty Name="resultType" ColumnName="resultType" />
  18384. <ScalarProperty Name="term" ColumnName="term" />
  18385. <ScalarProperty Name="PatrolTime" ColumnName="PatrolTime" />
  18386. <ScalarProperty Name="PosId" ColumnName="PosId" />
  18387. <ScalarProperty Name="PatrolHistoryId" ColumnName="PatrolHistoryId" />
  18388. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18389. </MappingFragment>
  18390. </EntityTypeMapping>
  18391. </EntitySetMapping>
  18392. <EntitySetMapping Name="BemsPeakInfo">
  18393. <EntityTypeMapping TypeName="iBemsModel.BemsPeakInfo">
  18394. <MappingFragment StoreEntitySet="BemsPeakInfo">
  18395. <ScalarProperty Name="todayMinPeakValue" ColumnName="todayMinPeakValue" />
  18396. <ScalarProperty Name="todayMaxPeakValue" ColumnName="todayMaxPeakValue" />
  18397. <ScalarProperty Name="MinPeakValue" ColumnName="MinPeakValue" />
  18398. <ScalarProperty Name="MinDateTime" ColumnName="MinDateTime" />
  18399. <ScalarProperty Name="MaxPeakValue" ColumnName="MaxPeakValue" />
  18400. <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
  18401. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18402. </MappingFragment>
  18403. </EntityTypeMapping>
  18404. </EntitySetMapping>
  18405. <EntitySetMapping Name="BemsPeakHistory">
  18406. <EntityTypeMapping TypeName="iBemsModel.BemsPeakHistory">
  18407. <MappingFragment StoreEntitySet="BemsPeakHistory">
  18408. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  18409. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  18410. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18411. </MappingFragment>
  18412. </EntityTypeMapping>
  18413. </EntitySetMapping>
  18414. <EntitySetMapping Name="CmPatrolSchedule">
  18415. <EntityTypeMapping TypeName="iBemsModel.CmPatrolSchedule">
  18416. <MappingFragment StoreEntitySet="CmPatrolSchedule">
  18417. <ScalarProperty Name="patrolDateTime" ColumnName="patrolDateTime" />
  18418. <ScalarProperty Name="inDate" ColumnName="inDate" />
  18419. <ScalarProperty Name="ScheduleDesc" ColumnName="ScheduleDesc" />
  18420. <ScalarProperty Name="Name" ColumnName="Name" />
  18421. <ScalarProperty Name="PlanId" ColumnName="PlanId" />
  18422. <ScalarProperty Name="ScheduleId" ColumnName="ScheduleId" />
  18423. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18424. </MappingFragment>
  18425. </EntityTypeMapping>
  18426. </EntitySetMapping>
  18427. <EntitySetMapping Name="BemsNoticePriceBase">
  18428. <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceBase">
  18429. <MappingFragment StoreEntitySet="BemsNoticePriceBase">
  18430. <ScalarProperty Name="SecondaryPrice" ColumnName="SecondaryPrice" />
  18431. <ScalarProperty Name="PrimaryPrice" ColumnName="PrimaryPrice" />
  18432. <ScalarProperty Name="ContractType" ColumnName="ContractType" />
  18433. <ScalarProperty Name="ApplyDate" ColumnName="ApplyDate" />
  18434. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18435. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18436. </MappingFragment>
  18437. </EntityTypeMapping>
  18438. </EntitySetMapping>
  18439. <EntitySetMapping Name="BemsNoticePriceContractType">
  18440. <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceContractType">
  18441. <MappingFragment StoreEntitySet="BemsNoticePriceContractType">
  18442. <ScalarProperty Name="Name" ColumnName="Name" />
  18443. <ScalarProperty Name="ContractType" ColumnName="ContractType" />
  18444. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18445. </MappingFragment>
  18446. </EntityTypeMapping>
  18447. </EntitySetMapping>
  18448. <EntitySetMapping Name="BemsNoticePriceDetail">
  18449. <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceDetail">
  18450. <MappingFragment StoreEntitySet="BemsNoticePriceDetail">
  18451. <ScalarProperty Name="P12" ColumnName="P12" />
  18452. <ScalarProperty Name="P11" ColumnName="P11" />
  18453. <ScalarProperty Name="P10" ColumnName="P10" />
  18454. <ScalarProperty Name="P09" ColumnName="P09" />
  18455. <ScalarProperty Name="P08" ColumnName="P08" />
  18456. <ScalarProperty Name="P07" ColumnName="P07" />
  18457. <ScalarProperty Name="P06" ColumnName="P06" />
  18458. <ScalarProperty Name="P05" ColumnName="P05" />
  18459. <ScalarProperty Name="P04" ColumnName="P04" />
  18460. <ScalarProperty Name="P03" ColumnName="P03" />
  18461. <ScalarProperty Name="P02" ColumnName="P02" />
  18462. <ScalarProperty Name="P01" ColumnName="P01" />
  18463. <ScalarProperty Name="DataId" ColumnName="DataId" />
  18464. <ScalarProperty Name="ContractType" ColumnName="ContractType" />
  18465. <ScalarProperty Name="ApplyDate" ColumnName="ApplyDate" />
  18466. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18467. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18468. </MappingFragment>
  18469. </EntityTypeMapping>
  18470. </EntitySetMapping>
  18471. <EntitySetMapping Name="BemsPeakFacility">
  18472. <EntityTypeMapping TypeName="iBemsModel.BemsPeakFacility">
  18473. <MappingFragment StoreEntitySet="BemsPeakFacility">
  18474. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18475. <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
  18476. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18477. </MappingFragment>
  18478. </EntityTypeMapping>
  18479. </EntitySetMapping>
  18480. <EntitySetMapping Name="CmSite">
  18481. <EntityTypeMapping TypeName="iBemsModel.CmSite">
  18482. <MappingFragment StoreEntitySet="CmSite">
  18483. <ScalarProperty Name="CDD" ColumnName="CDD" />
  18484. <ScalarProperty Name="HDD" ColumnName="HDD" />
  18485. <ScalarProperty Name="MainUseIndex" ColumnName="MainUseIndex" />
  18486. <ScalarProperty Name="Standard" ColumnName="Standard" />
  18487. <ScalarProperty Name="CompletionDate" ColumnName="CompletionDate" />
  18488. <ScalarProperty Name="MainUse" ColumnName="MainUse" />
  18489. <ScalarProperty Name="BuildingCoverageRatio" ColumnName="BuildingCoverageRatio" />
  18490. <ScalarProperty Name="FloorAreaRatio" ColumnName="FloorAreaRatio" />
  18491. <ScalarProperty Name="BuildingArea" ColumnName="BuildingArea" />
  18492. <ScalarProperty Name="GrossArea" ColumnName="GrossArea" />
  18493. <ScalarProperty Name="BuildingSize" ColumnName="BuildingSize" />
  18494. <ScalarProperty Name="controlSchedule" ColumnName="controlSchedule" />
  18495. <ScalarProperty Name="lng" ColumnName="lng" />
  18496. <ScalarProperty Name="lat" ColumnName="lat" />
  18497. <ScalarProperty Name="MaxPeak" ColumnName="MaxPeak" />
  18498. <ScalarProperty Name="ScheduleCheckHour" ColumnName="ScheduleCheckHour" />
  18499. <ScalarProperty Name="IsControlSchedule" ColumnName="IsControlSchedule" />
  18500. <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
  18501. <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
  18502. <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
  18503. <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
  18504. <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
  18505. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  18506. <ScalarProperty Name="Comment" ColumnName="Comment" />
  18507. <ScalarProperty Name="URL" ColumnName="URL" />
  18508. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  18509. <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
  18510. <ScalarProperty Name="Address1" ColumnName="Address1" />
  18511. <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
  18512. <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
  18513. <ScalarProperty Name="Name" ColumnName="Name" />
  18514. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18515. </MappingFragment>
  18516. </EntityTypeMapping>
  18517. </EntitySetMapping>
  18518. <EntitySetMapping Name="FmsReport">
  18519. <EntityTypeMapping TypeName="iBemsModel.FmsReport">
  18520. <MappingFragment StoreEntitySet="FmsReport">
  18521. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  18522. <ScalarProperty Name="ConfirmUserId2" ColumnName="ConfirmUserId2" />
  18523. <ScalarProperty Name="ConfirmUserId1" ColumnName="ConfirmUserId1" />
  18524. <ScalarProperty Name="MakeDate" ColumnName="MakeDate" />
  18525. <ScalarProperty Name="FileId" ColumnName="FileId" />
  18526. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  18527. <ScalarProperty Name="Contents" ColumnName="Contents" />
  18528. <ScalarProperty Name="Title" ColumnName="Title" />
  18529. <ScalarProperty Name="RId" ColumnName="RId" />
  18530. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18531. </MappingFragment>
  18532. </EntityTypeMapping>
  18533. </EntitySetMapping>
  18534. <EntitySetMapping Name="CmServiceEnergyCalcMonth">
  18535. <EntityTypeMapping TypeName="iBemsModel.CmServiceEnergyCalcMonth">
  18536. <MappingFragment StoreEntitySet="CmServiceEnergyCalcMonth">
  18537. <ScalarProperty Name="Value" ColumnName="Value" />
  18538. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  18539. <ScalarProperty Name="calDate" ColumnName="calDate" />
  18540. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18541. </MappingFragment>
  18542. </EntityTypeMapping>
  18543. </EntitySetMapping>
  18544. <EntitySetMapping Name="CmServiceEnergyCalcDay">
  18545. <EntityTypeMapping TypeName="iBemsModel.CmServiceEnergyCalcDay">
  18546. <MappingFragment StoreEntitySet="CmServiceEnergyCalcDay">
  18547. <ScalarProperty Name="Value" ColumnName="Value" />
  18548. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  18549. <ScalarProperty Name="calDate" ColumnName="calDate" />
  18550. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18551. </MappingFragment>
  18552. </EntityTypeMapping>
  18553. </EntitySetMapping>
  18554. <EntitySetMapping Name="CmPatrolHistory">
  18555. <EntityTypeMapping TypeName="iBemsModel.CmPatrolHistory">
  18556. <MappingFragment StoreEntitySet="CmPatrolHistory">
  18557. <ScalarProperty Name="resultAbnormalCnt" ColumnName="resultAbnormalCnt" />
  18558. <ScalarProperty Name="resultNormalCnt" ColumnName="resultNormalCnt" />
  18559. <ScalarProperty Name="resultPosCnt" ColumnName="resultPosCnt" />
  18560. <ScalarProperty Name="resultDesc" ColumnName="resultDesc" />
  18561. <ScalarProperty Name="resultTypeId" ColumnName="resultTypeId" />
  18562. <ScalarProperty Name="endDate" ColumnName="endDate" />
  18563. <ScalarProperty Name="startDate" ColumnName="startDate" />
  18564. <ScalarProperty Name="ScheduleId" ColumnName="ScheduleId" />
  18565. <ScalarProperty Name="PatrolHistoryId" ColumnName="PatrolHistoryId" />
  18566. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18567. </MappingFragment>
  18568. </EntityTypeMapping>
  18569. </EntitySetMapping>
  18570. <EntitySetMapping Name="BemsReportFormat">
  18571. <EntityTypeMapping TypeName="iBemsModel.BemsReportFormat">
  18572. <MappingFragment StoreEntitySet="BemsReportFormat">
  18573. <ScalarProperty Name="parts" ColumnName="parts" />
  18574. <ScalarProperty Name="Content" ColumnName="Content" />
  18575. <ScalarProperty Name="FormatName" ColumnName="FormatName" />
  18576. <ScalarProperty Name="ReportFormatId" ColumnName="ReportFormatId" />
  18577. </MappingFragment>
  18578. </EntityTypeMapping>
  18579. </EntitySetMapping>
  18580. <EntitySetMapping Name="CmMenu">
  18581. <EntityTypeMapping TypeName="iBemsModel.CmMenu">
  18582. <MappingFragment StoreEntitySet="CmMenu">
  18583. <ScalarProperty Name="Name" ColumnName="Name" />
  18584. <ScalarProperty Name="MenuPath" ColumnName="MenuPath" />
  18585. <ScalarProperty Name="Used" ColumnName="Used" />
  18586. <ScalarProperty Name="MenuId" ColumnName="MenuId" />
  18587. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18588. </MappingFragment>
  18589. </EntityTypeMapping>
  18590. </EntitySetMapping>
  18591. <EntitySetMapping Name="BemsPeopleIncrease">
  18592. <EntityTypeMapping TypeName="iBemsModel.BemsPeopleIncrease">
  18593. <MappingFragment StoreEntitySet="BemsPeopleIncrease">
  18594. <ScalarProperty Name="m12" ColumnName="m12" />
  18595. <ScalarProperty Name="m11" ColumnName="m11" />
  18596. <ScalarProperty Name="m10" ColumnName="m10" />
  18597. <ScalarProperty Name="m9" ColumnName="m9" />
  18598. <ScalarProperty Name="m8" ColumnName="m8" />
  18599. <ScalarProperty Name="m7" ColumnName="m7" />
  18600. <ScalarProperty Name="m6" ColumnName="m6" />
  18601. <ScalarProperty Name="m5" ColumnName="m5" />
  18602. <ScalarProperty Name="m4" ColumnName="m4" />
  18603. <ScalarProperty Name="m3" ColumnName="m3" />
  18604. <ScalarProperty Name="m2" ColumnName="m2" />
  18605. <ScalarProperty Name="m1" ColumnName="m1" />
  18606. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18607. <ScalarProperty Name="Date" ColumnName="Date" />
  18608. </MappingFragment>
  18609. </EntityTypeMapping>
  18610. </EntitySetMapping>
  18611. <EntitySetMapping Name="BemsPriceCode">
  18612. <EntityTypeMapping TypeName="iBemsModel.BemsPriceCode">
  18613. <MappingFragment StoreEntitySet="BemsPriceCode">
  18614. <ScalarProperty Name="Unit" ColumnName="Unit" />
  18615. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18616. <ScalarProperty Name="PriceCodeDesc" ColumnName="PriceCodeDesc" />
  18617. <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
  18618. </MappingFragment>
  18619. </EntityTypeMapping>
  18620. </EntitySetMapping>
  18621. <EntitySetMapping Name="BemsPriceFormula">
  18622. <EntityTypeMapping TypeName="iBemsModel.BemsPriceFormula">
  18623. <MappingFragment StoreEntitySet="BemsPriceFormula">
  18624. <ScalarProperty Name="UseYN" ColumnName="UseYN" />
  18625. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  18626. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  18627. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  18628. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  18629. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18630. </MappingFragment>
  18631. </EntityTypeMapping>
  18632. </EntitySetMapping>
  18633. <EntitySetMapping Name="BemsPriceMeta">
  18634. <EntityTypeMapping TypeName="iBemsModel.BemsPriceMeta">
  18635. <MappingFragment StoreEntitySet="BemsPriceMeta">
  18636. <ScalarProperty Name="C12_23" ColumnName="12_23" />
  18637. <ScalarProperty Name="C12_22" ColumnName="12_22" />
  18638. <ScalarProperty Name="C12_21" ColumnName="12_21" />
  18639. <ScalarProperty Name="C12_20" ColumnName="12_20" />
  18640. <ScalarProperty Name="C12_19" ColumnName="12_19" />
  18641. <ScalarProperty Name="C12_18" ColumnName="12_18" />
  18642. <ScalarProperty Name="C12_17" ColumnName="12_17" />
  18643. <ScalarProperty Name="C12_16" ColumnName="12_16" />
  18644. <ScalarProperty Name="C12_15" ColumnName="12_15" />
  18645. <ScalarProperty Name="C12_14" ColumnName="12_14" />
  18646. <ScalarProperty Name="C12_13" ColumnName="12_13" />
  18647. <ScalarProperty Name="C12_12" ColumnName="12_12" />
  18648. <ScalarProperty Name="C12_11" ColumnName="12_11" />
  18649. <ScalarProperty Name="C12_10" ColumnName="12_10" />
  18650. <ScalarProperty Name="C12_09" ColumnName="12_09" />
  18651. <ScalarProperty Name="C12_08" ColumnName="12_08" />
  18652. <ScalarProperty Name="C12_07" ColumnName="12_07" />
  18653. <ScalarProperty Name="C12_06" ColumnName="12_06" />
  18654. <ScalarProperty Name="C12_05" ColumnName="12_05" />
  18655. <ScalarProperty Name="C12_04" ColumnName="12_04" />
  18656. <ScalarProperty Name="C12_03" ColumnName="12_03" />
  18657. <ScalarProperty Name="C12_02" ColumnName="12_02" />
  18658. <ScalarProperty Name="C12_01" ColumnName="12_01" />
  18659. <ScalarProperty Name="C12_00" ColumnName="12_00" />
  18660. <ScalarProperty Name="C11_23" ColumnName="11_23" />
  18661. <ScalarProperty Name="C11_22" ColumnName="11_22" />
  18662. <ScalarProperty Name="C11_21" ColumnName="11_21" />
  18663. <ScalarProperty Name="C11_20" ColumnName="11_20" />
  18664. <ScalarProperty Name="C11_19" ColumnName="11_19" />
  18665. <ScalarProperty Name="C11_18" ColumnName="11_18" />
  18666. <ScalarProperty Name="C11_17" ColumnName="11_17" />
  18667. <ScalarProperty Name="C11_16" ColumnName="11_16" />
  18668. <ScalarProperty Name="C11_15" ColumnName="11_15" />
  18669. <ScalarProperty Name="C11_14" ColumnName="11_14" />
  18670. <ScalarProperty Name="C11_13" ColumnName="11_13" />
  18671. <ScalarProperty Name="C11_12" ColumnName="11_12" />
  18672. <ScalarProperty Name="C11_11" ColumnName="11_11" />
  18673. <ScalarProperty Name="C11_10" ColumnName="11_10" />
  18674. <ScalarProperty Name="C11_09" ColumnName="11_09" />
  18675. <ScalarProperty Name="C11_08" ColumnName="11_08" />
  18676. <ScalarProperty Name="C11_07" ColumnName="11_07" />
  18677. <ScalarProperty Name="C11_06" ColumnName="11_06" />
  18678. <ScalarProperty Name="C11_05" ColumnName="11_05" />
  18679. <ScalarProperty Name="C11_04" ColumnName="11_04" />
  18680. <ScalarProperty Name="C11_03" ColumnName="11_03" />
  18681. <ScalarProperty Name="C11_02" ColumnName="11_02" />
  18682. <ScalarProperty Name="C11_01" ColumnName="11_01" />
  18683. <ScalarProperty Name="C11_00" ColumnName="11_00" />
  18684. <ScalarProperty Name="C10_23" ColumnName="10_23" />
  18685. <ScalarProperty Name="C10_22" ColumnName="10_22" />
  18686. <ScalarProperty Name="C10_21" ColumnName="10_21" />
  18687. <ScalarProperty Name="C10_20" ColumnName="10_20" />
  18688. <ScalarProperty Name="C10_19" ColumnName="10_19" />
  18689. <ScalarProperty Name="C10_18" ColumnName="10_18" />
  18690. <ScalarProperty Name="C10_17" ColumnName="10_17" />
  18691. <ScalarProperty Name="C10_16" ColumnName="10_16" />
  18692. <ScalarProperty Name="C10_15" ColumnName="10_15" />
  18693. <ScalarProperty Name="C10_14" ColumnName="10_14" />
  18694. <ScalarProperty Name="C10_13" ColumnName="10_13" />
  18695. <ScalarProperty Name="C10_12" ColumnName="10_12" />
  18696. <ScalarProperty Name="C10_11" ColumnName="10_11" />
  18697. <ScalarProperty Name="C10_10" ColumnName="10_10" />
  18698. <ScalarProperty Name="C10_09" ColumnName="10_09" />
  18699. <ScalarProperty Name="C10_08" ColumnName="10_08" />
  18700. <ScalarProperty Name="C10_07" ColumnName="10_07" />
  18701. <ScalarProperty Name="C10_06" ColumnName="10_06" />
  18702. <ScalarProperty Name="C10_05" ColumnName="10_05" />
  18703. <ScalarProperty Name="C10_04" ColumnName="10_04" />
  18704. <ScalarProperty Name="C10_03" ColumnName="10_03" />
  18705. <ScalarProperty Name="C10_02" ColumnName="10_02" />
  18706. <ScalarProperty Name="C10_01" ColumnName="10_01" />
  18707. <ScalarProperty Name="C10_00" ColumnName="10_00" />
  18708. <ScalarProperty Name="C09_23" ColumnName="09_23" />
  18709. <ScalarProperty Name="C09_22" ColumnName="09_22" />
  18710. <ScalarProperty Name="C09_21" ColumnName="09_21" />
  18711. <ScalarProperty Name="C09_20" ColumnName="09_20" />
  18712. <ScalarProperty Name="C09_19" ColumnName="09_19" />
  18713. <ScalarProperty Name="C09_18" ColumnName="09_18" />
  18714. <ScalarProperty Name="C09_17" ColumnName="09_17" />
  18715. <ScalarProperty Name="C09_16" ColumnName="09_16" />
  18716. <ScalarProperty Name="C09_15" ColumnName="09_15" />
  18717. <ScalarProperty Name="C09_14" ColumnName="09_14" />
  18718. <ScalarProperty Name="C09_13" ColumnName="09_13" />
  18719. <ScalarProperty Name="C09_12" ColumnName="09_12" />
  18720. <ScalarProperty Name="C09_11" ColumnName="09_11" />
  18721. <ScalarProperty Name="C09_10" ColumnName="09_10" />
  18722. <ScalarProperty Name="C09_09" ColumnName="09_09" />
  18723. <ScalarProperty Name="C09_08" ColumnName="09_08" />
  18724. <ScalarProperty Name="C09_07" ColumnName="09_07" />
  18725. <ScalarProperty Name="C09_06" ColumnName="09_06" />
  18726. <ScalarProperty Name="C09_05" ColumnName="09_05" />
  18727. <ScalarProperty Name="C09_04" ColumnName="09_04" />
  18728. <ScalarProperty Name="C09_03" ColumnName="09_03" />
  18729. <ScalarProperty Name="C09_02" ColumnName="09_02" />
  18730. <ScalarProperty Name="C09_01" ColumnName="09_01" />
  18731. <ScalarProperty Name="C09_00" ColumnName="09_00" />
  18732. <ScalarProperty Name="C08_23" ColumnName="08_23" />
  18733. <ScalarProperty Name="C08_22" ColumnName="08_22" />
  18734. <ScalarProperty Name="C08_21" ColumnName="08_21" />
  18735. <ScalarProperty Name="C08_20" ColumnName="08_20" />
  18736. <ScalarProperty Name="C08_19" ColumnName="08_19" />
  18737. <ScalarProperty Name="C08_18" ColumnName="08_18" />
  18738. <ScalarProperty Name="C08_17" ColumnName="08_17" />
  18739. <ScalarProperty Name="C08_16" ColumnName="08_16" />
  18740. <ScalarProperty Name="C08_15" ColumnName="08_15" />
  18741. <ScalarProperty Name="C08_14" ColumnName="08_14" />
  18742. <ScalarProperty Name="C08_13" ColumnName="08_13" />
  18743. <ScalarProperty Name="C08_12" ColumnName="08_12" />
  18744. <ScalarProperty Name="C08_11" ColumnName="08_11" />
  18745. <ScalarProperty Name="C08_10" ColumnName="08_10" />
  18746. <ScalarProperty Name="C08_09" ColumnName="08_09" />
  18747. <ScalarProperty Name="C08_08" ColumnName="08_08" />
  18748. <ScalarProperty Name="C08_07" ColumnName="08_07" />
  18749. <ScalarProperty Name="C08_06" ColumnName="08_06" />
  18750. <ScalarProperty Name="C08_05" ColumnName="08_05" />
  18751. <ScalarProperty Name="C08_04" ColumnName="08_04" />
  18752. <ScalarProperty Name="C08_03" ColumnName="08_03" />
  18753. <ScalarProperty Name="C08_02" ColumnName="08_02" />
  18754. <ScalarProperty Name="C08_01" ColumnName="08_01" />
  18755. <ScalarProperty Name="C08_00" ColumnName="08_00" />
  18756. <ScalarProperty Name="C07_23" ColumnName="07_23" />
  18757. <ScalarProperty Name="C07_22" ColumnName="07_22" />
  18758. <ScalarProperty Name="C07_21" ColumnName="07_21" />
  18759. <ScalarProperty Name="C07_20" ColumnName="07_20" />
  18760. <ScalarProperty Name="C07_19" ColumnName="07_19" />
  18761. <ScalarProperty Name="C07_18" ColumnName="07_18" />
  18762. <ScalarProperty Name="C07_17" ColumnName="07_17" />
  18763. <ScalarProperty Name="C07_16" ColumnName="07_16" />
  18764. <ScalarProperty Name="C07_15" ColumnName="07_15" />
  18765. <ScalarProperty Name="C07_14" ColumnName="07_14" />
  18766. <ScalarProperty Name="C07_13" ColumnName="07_13" />
  18767. <ScalarProperty Name="C07_12" ColumnName="07_12" />
  18768. <ScalarProperty Name="C07_11" ColumnName="07_11" />
  18769. <ScalarProperty Name="C07_10" ColumnName="07_10" />
  18770. <ScalarProperty Name="C07_09" ColumnName="07_09" />
  18771. <ScalarProperty Name="C07_08" ColumnName="07_08" />
  18772. <ScalarProperty Name="C07_07" ColumnName="07_07" />
  18773. <ScalarProperty Name="C07_06" ColumnName="07_06" />
  18774. <ScalarProperty Name="C07_05" ColumnName="07_05" />
  18775. <ScalarProperty Name="C07_04" ColumnName="07_04" />
  18776. <ScalarProperty Name="C07_03" ColumnName="07_03" />
  18777. <ScalarProperty Name="C07_02" ColumnName="07_02" />
  18778. <ScalarProperty Name="C07_01" ColumnName="07_01" />
  18779. <ScalarProperty Name="C07_00" ColumnName="07_00" />
  18780. <ScalarProperty Name="C06_23" ColumnName="06_23" />
  18781. <ScalarProperty Name="C06_22" ColumnName="06_22" />
  18782. <ScalarProperty Name="C06_21" ColumnName="06_21" />
  18783. <ScalarProperty Name="C06_20" ColumnName="06_20" />
  18784. <ScalarProperty Name="C06_19" ColumnName="06_19" />
  18785. <ScalarProperty Name="C06_18" ColumnName="06_18" />
  18786. <ScalarProperty Name="C06_17" ColumnName="06_17" />
  18787. <ScalarProperty Name="C06_16" ColumnName="06_16" />
  18788. <ScalarProperty Name="C06_15" ColumnName="06_15" />
  18789. <ScalarProperty Name="C06_14" ColumnName="06_14" />
  18790. <ScalarProperty Name="C06_13" ColumnName="06_13" />
  18791. <ScalarProperty Name="C06_12" ColumnName="06_12" />
  18792. <ScalarProperty Name="C06_11" ColumnName="06_11" />
  18793. <ScalarProperty Name="C06_10" ColumnName="06_10" />
  18794. <ScalarProperty Name="C06_09" ColumnName="06_09" />
  18795. <ScalarProperty Name="C06_08" ColumnName="06_08" />
  18796. <ScalarProperty Name="C06_07" ColumnName="06_07" />
  18797. <ScalarProperty Name="C06_06" ColumnName="06_06" />
  18798. <ScalarProperty Name="C06_05" ColumnName="06_05" />
  18799. <ScalarProperty Name="C06_04" ColumnName="06_04" />
  18800. <ScalarProperty Name="C06_03" ColumnName="06_03" />
  18801. <ScalarProperty Name="C06_02" ColumnName="06_02" />
  18802. <ScalarProperty Name="C06_01" ColumnName="06_01" />
  18803. <ScalarProperty Name="C06_00" ColumnName="06_00" />
  18804. <ScalarProperty Name="C05_23" ColumnName="05_23" />
  18805. <ScalarProperty Name="C05_22" ColumnName="05_22" />
  18806. <ScalarProperty Name="C05_21" ColumnName="05_21" />
  18807. <ScalarProperty Name="C05_20" ColumnName="05_20" />
  18808. <ScalarProperty Name="C05_19" ColumnName="05_19" />
  18809. <ScalarProperty Name="C05_18" ColumnName="05_18" />
  18810. <ScalarProperty Name="C05_17" ColumnName="05_17" />
  18811. <ScalarProperty Name="C05_16" ColumnName="05_16" />
  18812. <ScalarProperty Name="C05_15" ColumnName="05_15" />
  18813. <ScalarProperty Name="C05_14" ColumnName="05_14" />
  18814. <ScalarProperty Name="C05_13" ColumnName="05_13" />
  18815. <ScalarProperty Name="C05_12" ColumnName="05_12" />
  18816. <ScalarProperty Name="C05_11" ColumnName="05_11" />
  18817. <ScalarProperty Name="C05_10" ColumnName="05_10" />
  18818. <ScalarProperty Name="C05_09" ColumnName="05_09" />
  18819. <ScalarProperty Name="C05_08" ColumnName="05_08" />
  18820. <ScalarProperty Name="C05_07" ColumnName="05_07" />
  18821. <ScalarProperty Name="C05_06" ColumnName="05_06" />
  18822. <ScalarProperty Name="C05_05" ColumnName="05_05" />
  18823. <ScalarProperty Name="C05_04" ColumnName="05_04" />
  18824. <ScalarProperty Name="C05_03" ColumnName="05_03" />
  18825. <ScalarProperty Name="C05_02" ColumnName="05_02" />
  18826. <ScalarProperty Name="C05_01" ColumnName="05_01" />
  18827. <ScalarProperty Name="C05_00" ColumnName="05_00" />
  18828. <ScalarProperty Name="C04_23" ColumnName="04_23" />
  18829. <ScalarProperty Name="C04_22" ColumnName="04_22" />
  18830. <ScalarProperty Name="C04_21" ColumnName="04_21" />
  18831. <ScalarProperty Name="C04_20" ColumnName="04_20" />
  18832. <ScalarProperty Name="C04_19" ColumnName="04_19" />
  18833. <ScalarProperty Name="C04_18" ColumnName="04_18" />
  18834. <ScalarProperty Name="C04_17" ColumnName="04_17" />
  18835. <ScalarProperty Name="C04_16" ColumnName="04_16" />
  18836. <ScalarProperty Name="C04_15" ColumnName="04_15" />
  18837. <ScalarProperty Name="C04_14" ColumnName="04_14" />
  18838. <ScalarProperty Name="C04_13" ColumnName="04_13" />
  18839. <ScalarProperty Name="C04_12" ColumnName="04_12" />
  18840. <ScalarProperty Name="C04_11" ColumnName="04_11" />
  18841. <ScalarProperty Name="C04_10" ColumnName="04_10" />
  18842. <ScalarProperty Name="C04_09" ColumnName="04_09" />
  18843. <ScalarProperty Name="C04_08" ColumnName="04_08" />
  18844. <ScalarProperty Name="C04_07" ColumnName="04_07" />
  18845. <ScalarProperty Name="C04_06" ColumnName="04_06" />
  18846. <ScalarProperty Name="C04_05" ColumnName="04_05" />
  18847. <ScalarProperty Name="C04_04" ColumnName="04_04" />
  18848. <ScalarProperty Name="C04_03" ColumnName="04_03" />
  18849. <ScalarProperty Name="C04_02" ColumnName="04_02" />
  18850. <ScalarProperty Name="C04_01" ColumnName="04_01" />
  18851. <ScalarProperty Name="C04_00" ColumnName="04_00" />
  18852. <ScalarProperty Name="C03_23" ColumnName="03_23" />
  18853. <ScalarProperty Name="C03_22" ColumnName="03_22" />
  18854. <ScalarProperty Name="C03_21" ColumnName="03_21" />
  18855. <ScalarProperty Name="C03_20" ColumnName="03_20" />
  18856. <ScalarProperty Name="C03_19" ColumnName="03_19" />
  18857. <ScalarProperty Name="C03_18" ColumnName="03_18" />
  18858. <ScalarProperty Name="C03_17" ColumnName="03_17" />
  18859. <ScalarProperty Name="C03_16" ColumnName="03_16" />
  18860. <ScalarProperty Name="C03_15" ColumnName="03_15" />
  18861. <ScalarProperty Name="C03_14" ColumnName="03_14" />
  18862. <ScalarProperty Name="C03_13" ColumnName="03_13" />
  18863. <ScalarProperty Name="C03_12" ColumnName="03_12" />
  18864. <ScalarProperty Name="C03_11" ColumnName="03_11" />
  18865. <ScalarProperty Name="C03_10" ColumnName="03_10" />
  18866. <ScalarProperty Name="C03_09" ColumnName="03_09" />
  18867. <ScalarProperty Name="C03_08" ColumnName="03_08" />
  18868. <ScalarProperty Name="C03_07" ColumnName="03_07" />
  18869. <ScalarProperty Name="C03_06" ColumnName="03_06" />
  18870. <ScalarProperty Name="C03_05" ColumnName="03_05" />
  18871. <ScalarProperty Name="C03_04" ColumnName="03_04" />
  18872. <ScalarProperty Name="C03_03" ColumnName="03_03" />
  18873. <ScalarProperty Name="C03_02" ColumnName="03_02" />
  18874. <ScalarProperty Name="C03_01" ColumnName="03_01" />
  18875. <ScalarProperty Name="C03_00" ColumnName="03_00" />
  18876. <ScalarProperty Name="C02_23" ColumnName="02_23" />
  18877. <ScalarProperty Name="C02_22" ColumnName="02_22" />
  18878. <ScalarProperty Name="C02_21" ColumnName="02_21" />
  18879. <ScalarProperty Name="C02_20" ColumnName="02_20" />
  18880. <ScalarProperty Name="C02_19" ColumnName="02_19" />
  18881. <ScalarProperty Name="C02_18" ColumnName="02_18" />
  18882. <ScalarProperty Name="C02_17" ColumnName="02_17" />
  18883. <ScalarProperty Name="C02_16" ColumnName="02_16" />
  18884. <ScalarProperty Name="C02_15" ColumnName="02_15" />
  18885. <ScalarProperty Name="C02_14" ColumnName="02_14" />
  18886. <ScalarProperty Name="C02_13" ColumnName="02_13" />
  18887. <ScalarProperty Name="C02_12" ColumnName="02_12" />
  18888. <ScalarProperty Name="C02_11" ColumnName="02_11" />
  18889. <ScalarProperty Name="C02_10" ColumnName="02_10" />
  18890. <ScalarProperty Name="C02_09" ColumnName="02_09" />
  18891. <ScalarProperty Name="C02_08" ColumnName="02_08" />
  18892. <ScalarProperty Name="C02_07" ColumnName="02_07" />
  18893. <ScalarProperty Name="C02_06" ColumnName="02_06" />
  18894. <ScalarProperty Name="C02_05" ColumnName="02_05" />
  18895. <ScalarProperty Name="C02_04" ColumnName="02_04" />
  18896. <ScalarProperty Name="C02_03" ColumnName="02_03" />
  18897. <ScalarProperty Name="C02_02" ColumnName="02_02" />
  18898. <ScalarProperty Name="C02_01" ColumnName="02_01" />
  18899. <ScalarProperty Name="C02_00" ColumnName="02_00" />
  18900. <ScalarProperty Name="C01_23" ColumnName="01_23" />
  18901. <ScalarProperty Name="C01_22" ColumnName="01_22" />
  18902. <ScalarProperty Name="C01_21" ColumnName="01_21" />
  18903. <ScalarProperty Name="C01_20" ColumnName="01_20" />
  18904. <ScalarProperty Name="C01_19" ColumnName="01_19" />
  18905. <ScalarProperty Name="C01_18" ColumnName="01_18" />
  18906. <ScalarProperty Name="C01_17" ColumnName="01_17" />
  18907. <ScalarProperty Name="C01_16" ColumnName="01_16" />
  18908. <ScalarProperty Name="C01_15" ColumnName="01_15" />
  18909. <ScalarProperty Name="C01_14" ColumnName="01_14" />
  18910. <ScalarProperty Name="C01_13" ColumnName="01_13" />
  18911. <ScalarProperty Name="C01_12" ColumnName="01_12" />
  18912. <ScalarProperty Name="C01_11" ColumnName="01_11" />
  18913. <ScalarProperty Name="C01_10" ColumnName="01_10" />
  18914. <ScalarProperty Name="C01_09" ColumnName="01_09" />
  18915. <ScalarProperty Name="C01_08" ColumnName="01_08" />
  18916. <ScalarProperty Name="C01_07" ColumnName="01_07" />
  18917. <ScalarProperty Name="C01_06" ColumnName="01_06" />
  18918. <ScalarProperty Name="C01_05" ColumnName="01_05" />
  18919. <ScalarProperty Name="C01_04" ColumnName="01_04" />
  18920. <ScalarProperty Name="C01_03" ColumnName="01_03" />
  18921. <ScalarProperty Name="C01_02" ColumnName="01_02" />
  18922. <ScalarProperty Name="C01_01" ColumnName="01_01" />
  18923. <ScalarProperty Name="C01_00" ColumnName="01_00" />
  18924. <ScalarProperty Name="BasePrice" ColumnName="BasePrice" />
  18925. <ScalarProperty Name="PublishDate" ColumnName="PublishDate" />
  18926. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  18927. </MappingFragment>
  18928. </EntityTypeMapping>
  18929. </EntitySetMapping>
  18930. <EntitySetMapping Name="BemsPriceType">
  18931. <EntityTypeMapping TypeName="iBemsModel.BemsPriceType">
  18932. <MappingFragment StoreEntitySet="BemsPriceType">
  18933. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18934. <ScalarProperty Name="PriceTypeIdDesc" ColumnName="PriceTypeIdDesc" />
  18935. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  18936. </MappingFragment>
  18937. </EntityTypeMapping>
  18938. </EntitySetMapping>
  18939. <EntitySetMapping Name="BemsRentalRate">
  18940. <EntityTypeMapping TypeName="iBemsModel.BemsRentalRate">
  18941. <MappingFragment StoreEntitySet="BemsRentalRate">
  18942. <ScalarProperty Name="m12" ColumnName="m12" />
  18943. <ScalarProperty Name="m11" ColumnName="m11" />
  18944. <ScalarProperty Name="m10" ColumnName="m10" />
  18945. <ScalarProperty Name="m9" ColumnName="m9" />
  18946. <ScalarProperty Name="m8" ColumnName="m8" />
  18947. <ScalarProperty Name="m7" ColumnName="m7" />
  18948. <ScalarProperty Name="m6" ColumnName="m6" />
  18949. <ScalarProperty Name="m5" ColumnName="m5" />
  18950. <ScalarProperty Name="m4" ColumnName="m4" />
  18951. <ScalarProperty Name="m3" ColumnName="m3" />
  18952. <ScalarProperty Name="m2" ColumnName="m2" />
  18953. <ScalarProperty Name="m1" ColumnName="m1" />
  18954. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18955. <ScalarProperty Name="Date" ColumnName="Date" />
  18956. </MappingFragment>
  18957. </EntityTypeMapping>
  18958. </EntitySetMapping>
  18959. <EntitySetMapping Name="BemsSitePrice">
  18960. <EntityTypeMapping TypeName="iBemsModel.BemsSitePrice">
  18961. <MappingFragment StoreEntitySet="BemsSitePrice">
  18962. <ScalarProperty Name="UseYN" ColumnName="UseYN" />
  18963. <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
  18964. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  18965. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18966. <ScalarProperty Name="SiteID" ColumnName="SiteID" />
  18967. </MappingFragment>
  18968. </EntityTypeMapping>
  18969. </EntitySetMapping>
  18970. <EntitySetMapping Name="BemsSitePriceHistory">
  18971. <EntityTypeMapping TypeName="iBemsModel.BemsSitePriceHistory">
  18972. <MappingFragment StoreEntitySet="BemsSitePriceHistory">
  18973. <ScalarProperty Name="PayCharge" ColumnName="PayCharge" />
  18974. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  18975. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  18976. <ScalarProperty Name="PayDate" ColumnName="PayDate" />
  18977. <ScalarProperty Name="PriceValue" ColumnName="PriceValue" />
  18978. <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
  18979. <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
  18980. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  18981. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  18982. </MappingFragment>
  18983. </EntityTypeMapping>
  18984. </EntitySetMapping>
  18985. <EntitySetMapping Name="BemsChartInfo">
  18986. <EntityTypeMapping TypeName="iBemsModel.BemsChartInfo">
  18987. <MappingFragment StoreEntitySet="BemsChartInfo">
  18988. <ScalarProperty Name="RCTLineValue" ColumnName="RCTLineValue" />
  18989. <ScalarProperty Name="RCTLineTitle" ColumnName="RCTLineTitle" />
  18990. <ScalarProperty Name="UseRCTLine" ColumnName="UseRCTLine" />
  18991. <ScalarProperty Name="LCTLineValue" ColumnName="LCTLineValue" />
  18992. <ScalarProperty Name="LCTLineTitle" ColumnName="LCTLineTitle" />
  18993. <ScalarProperty Name="UseLCTLine" ColumnName="UseLCTLine" />
  18994. <ScalarProperty Name="UseChart" ColumnName="UseChart" />
  18995. <ScalarProperty Name="Palette" ColumnName="Palette" />
  18996. <ScalarProperty Name="XAxMax" ColumnName="XAxMax" />
  18997. <ScalarProperty Name="XAxMin" ColumnName="XAxMin" />
  18998. <ScalarProperty Name="RAxMax" ColumnName="RAxMax" />
  18999. <ScalarProperty Name="RAxMin" ColumnName="RAxMin" />
  19000. <ScalarProperty Name="LAxMax" ColumnName="LAxMax" />
  19001. <ScalarProperty Name="LAxMin" ColumnName="LAxMin" />
  19002. <ScalarProperty Name="UseXAxMinMax" ColumnName="UseXAxMinMax" />
  19003. <ScalarProperty Name="UseRAxMinMax" ColumnName="UseRAxMinMax" />
  19004. <ScalarProperty Name="UseLAxMinMax" ColumnName="UseLAxMinMax" />
  19005. <ScalarProperty Name="UseX" ColumnName="UseX" />
  19006. <ScalarProperty Name="Title" ColumnName="Title" />
  19007. <ScalarProperty Name="RSType4" ColumnName="RSType4" />
  19008. <ScalarProperty Name="RSName4" ColumnName="RSName4" />
  19009. <ScalarProperty Name="RSFmId4" ColumnName="RSFmId4" />
  19010. <ScalarProperty Name="RSType3" ColumnName="RSType3" />
  19011. <ScalarProperty Name="RSName3" ColumnName="RSName3" />
  19012. <ScalarProperty Name="RSFmId3" ColumnName="RSFmId3" />
  19013. <ScalarProperty Name="RSType2" ColumnName="RSType2" />
  19014. <ScalarProperty Name="RSName2" ColumnName="RSName2" />
  19015. <ScalarProperty Name="RSFmId2" ColumnName="RSFmId2" />
  19016. <ScalarProperty Name="RSType1" ColumnName="RSType1" />
  19017. <ScalarProperty Name="RSName1" ColumnName="RSName1" />
  19018. <ScalarProperty Name="RSFmId1" ColumnName="RSFmId1" />
  19019. <ScalarProperty Name="LSType4" ColumnName="LSType4" />
  19020. <ScalarProperty Name="LSName4" ColumnName="LSName4" />
  19021. <ScalarProperty Name="LSFmId4" ColumnName="LSFmId4" />
  19022. <ScalarProperty Name="LSType3" ColumnName="LSType3" />
  19023. <ScalarProperty Name="LSName3" ColumnName="LSName3" />
  19024. <ScalarProperty Name="LSFmId3" ColumnName="LSFmId3" />
  19025. <ScalarProperty Name="LSType2" ColumnName="LSType2" />
  19026. <ScalarProperty Name="LSName2" ColumnName="LSName2" />
  19027. <ScalarProperty Name="LSFmId2" ColumnName="LSFmId2" />
  19028. <ScalarProperty Name="LSType1" ColumnName="LSType1" />
  19029. <ScalarProperty Name="LSName1" ColumnName="LSName1" />
  19030. <ScalarProperty Name="LSFmId1" ColumnName="LSFmId1" />
  19031. <ScalarProperty Name="XSType" ColumnName="XSType" />
  19032. <ScalarProperty Name="XSFmId" ColumnName="XSFmId" />
  19033. <ScalarProperty Name="XAxTitle" ColumnName="XAxTitle" />
  19034. <ScalarProperty Name="RAxTitle" ColumnName="RAxTitle" />
  19035. <ScalarProperty Name="LAxTitle" ColumnName="LAxTitle" />
  19036. <ScalarProperty Name="ChartId" ColumnName="ChartId" />
  19037. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19038. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19039. </MappingFragment>
  19040. </EntityTypeMapping>
  19041. </EntitySetMapping>
  19042. <EntitySetMapping Name="FmsWorkSchedule">
  19043. <EntityTypeMapping TypeName="iBemsModel.FmsWorkSchedule">
  19044. <MappingFragment StoreEntitySet="FmsWorkSchedule">
  19045. <ScalarProperty Name="Content" ColumnName="Content" />
  19046. <ScalarProperty Name="IsAutoOrder" ColumnName="IsAutoOrder" />
  19047. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19048. <ScalarProperty Name="UpdateUserId" ColumnName="UpdateUserId" />
  19049. <ScalarProperty Name="WorkDueDate" ColumnName="WorkDueDate" />
  19050. <ScalarProperty Name="HolidayWorkTypeId" ColumnName="HolidayWorkTypeId" />
  19051. <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
  19052. <ScalarProperty Name="CycleSize" ColumnName="CycleSize" />
  19053. <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
  19054. <ScalarProperty Name="Name" ColumnName="Name" />
  19055. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  19056. <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
  19057. <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
  19058. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19059. </MappingFragment>
  19060. </EntityTypeMapping>
  19061. </EntitySetMapping>
  19062. <EntitySetMapping Name="BemsMonitoringPointConfig">
  19063. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointConfig">
  19064. <MappingFragment StoreEntitySet="BemsMonitoringPointConfig">
  19065. <ScalarProperty Name="IsConverted" ColumnName="IsConverted" />
  19066. <ScalarProperty Name="ControlPointName" ColumnName="ControlPointName" />
  19067. <ScalarProperty Name="SaveMode" ColumnName="SaveMode" />
  19068. <ScalarProperty Name="IsSampled" ColumnName="IsSampled" />
  19069. <ScalarProperty Name="IsAccumulated" ColumnName="IsAccumulated" />
  19070. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19071. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19072. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19073. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19074. </MappingFragment>
  19075. </EntityTypeMapping>
  19076. </EntitySetMapping>
  19077. <EntitySetMapping Name="BemsAlarmSetting">
  19078. <EntityTypeMapping TypeName="iBemsModel.BemsAlarmSetting">
  19079. <MappingFragment StoreEntitySet="BemsAlarmSetting">
  19080. <ScalarProperty Name="Content" ColumnName="Content" />
  19081. <ScalarProperty Name="AlarmGroupName" ColumnName="AlarmGroupName" />
  19082. <ScalarProperty Name="UseEmail" ColumnName="UseEmail" />
  19083. <ScalarProperty Name="UseSMS" ColumnName="UseSMS" />
  19084. <ScalarProperty Name="UseAlarm" ColumnName="UseAlarm" />
  19085. <ScalarProperty Name="LowerLimit" ColumnName="LowerLimit" />
  19086. <ScalarProperty Name="UseLowerLimit" ColumnName="UseLowerLimit" />
  19087. <ScalarProperty Name="UpperLimit" ColumnName="UpperLimit" />
  19088. <ScalarProperty Name="UseUpperLimit" ColumnName="UseUpperLimit" />
  19089. <ScalarProperty Name="PointName" ColumnName="PointName" />
  19090. <ScalarProperty Name="FacilityName" ColumnName="FacilityName" />
  19091. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  19092. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19093. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19094. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19095. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19096. </MappingFragment>
  19097. </EntityTypeMapping>
  19098. </EntitySetMapping>
  19099. <EntitySetMapping Name="BemsAlarmLog">
  19100. <EntityTypeMapping TypeName="iBemsModel.BemsAlarmLog">
  19101. <MappingFragment StoreEntitySet="BemsAlarmLog">
  19102. <ScalarProperty Name="Conform" ColumnName="Conform" />
  19103. <ScalarProperty Name="EmailResult" ColumnName="EmailResult" />
  19104. <ScalarProperty Name="SMSResult" ColumnName="SMSResult" />
  19105. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  19106. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19107. <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
  19108. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19109. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19110. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19111. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19112. </MappingFragment>
  19113. </EntityTypeMapping>
  19114. </EntitySetMapping>
  19115. <EntitySetMapping Name="BemsAlarmGroup">
  19116. <EntityTypeMapping TypeName="iBemsModel.BemsAlarmGroup">
  19117. <MappingFragment StoreEntitySet="BemsAlarmGroup">
  19118. <ScalarProperty Name="Name" ColumnName="Name" />
  19119. <ScalarProperty Name="AlarmGroupId" ColumnName="AlarmGroupId" />
  19120. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19121. </MappingFragment>
  19122. </EntityTypeMapping>
  19123. </EntitySetMapping>
  19124. <EntitySetMapping Name="BemsAlarmGroupUser">
  19125. <EntityTypeMapping TypeName="iBemsModel.BemsAlarmGroupUser">
  19126. <MappingFragment StoreEntitySet="BemsAlarmGroupUser">
  19127. <ScalarProperty Name="UserId" ColumnName="UserId" />
  19128. <ScalarProperty Name="AlarmGroupId" ColumnName="AlarmGroupId" />
  19129. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19130. </MappingFragment>
  19131. </EntityTypeMapping>
  19132. </EntitySetMapping>
  19133. <EntitySetMapping Name="BemsEnergyCost">
  19134. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyCost">
  19135. <MappingFragment StoreEntitySet="BemsEnergyCost">
  19136. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19137. <ScalarProperty Name="GasPriceTypeId" ColumnName="GasPriceTypeId" />
  19138. <ScalarProperty Name="PowerPriceTypeId" ColumnName="PowerPriceTypeId" />
  19139. <ScalarProperty Name="GasHeatQuantity" ColumnName="GasHeatQuantity" />
  19140. <ScalarProperty Name="GasConsumption" ColumnName="GasConsumption" />
  19141. <ScalarProperty Name="PowerConsumption2" ColumnName="PowerConsumption2" />
  19142. <ScalarProperty Name="PowerConsumption1" ColumnName="PowerConsumption1" />
  19143. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19144. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19145. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19146. </MappingFragment>
  19147. </EntityTypeMapping>
  19148. </EntitySetMapping>
  19149. <EntitySetMapping Name="BemsEnergyConfigPercentMonth">
  19150. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyConfigPercentMonth">
  19151. <MappingFragment StoreEntitySet="BemsEnergyConfigPercentMonth">
  19152. <ScalarProperty Name="Water" ColumnName="Water" />
  19153. <ScalarProperty Name="Gas" ColumnName="Gas" />
  19154. <ScalarProperty Name="Electricity" ColumnName="Electricity" />
  19155. <ScalarProperty Name="Month" ColumnName="Month" />
  19156. <ScalarProperty Name="Year" ColumnName="Year" />
  19157. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19158. </MappingFragment>
  19159. </EntityTypeMapping>
  19160. </EntitySetMapping>
  19161. <EntitySetMapping Name="BemsEnergyConfigPercentWeek">
  19162. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyConfigPercentWeek">
  19163. <MappingFragment StoreEntitySet="BemsEnergyConfigPercentWeek">
  19164. <ScalarProperty Name="Water" ColumnName="Water" />
  19165. <ScalarProperty Name="Gas" ColumnName="Gas" />
  19166. <ScalarProperty Name="Electricity" ColumnName="Electricity" />
  19167. <ScalarProperty Name="Week" ColumnName="Week" />
  19168. <ScalarProperty Name="Year" ColumnName="Year" />
  19169. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19170. </MappingFragment>
  19171. </EntityTypeMapping>
  19172. </EntitySetMapping>
  19173. <EntitySetMapping Name="BemsEnergyDaily">
  19174. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyDaily">
  19175. <MappingFragment StoreEntitySet="BemsEnergyDaily">
  19176. <ScalarProperty Name="CDD" ColumnName="CDD" />
  19177. <ScalarProperty Name="HDD" ColumnName="HDD" />
  19178. <ScalarProperty Name="MeanT" ColumnName="MeanT" />
  19179. <ScalarProperty Name="Prediction_Regression" ColumnName="Prediction_Regression" />
  19180. <ScalarProperty Name="Goal" ColumnName="Goal" />
  19181. <ScalarProperty Name="Measurement" ColumnName="Measurement" />
  19182. <ScalarProperty Name="Prediction" ColumnName="Prediction" />
  19183. <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
  19184. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19185. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  19186. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  19187. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19188. </MappingFragment>
  19189. </EntityTypeMapping>
  19190. </EntitySetMapping>
  19191. <EntitySetMapping Name="BemsEnergyDailyRegression">
  19192. <EntityTypeMapping TypeName="iBemsModel.BemsEnergyDailyRegression">
  19193. <MappingFragment StoreEntitySet="BemsEnergyDailyRegression">
  19194. <ScalarProperty Name="IsRegression" ColumnName="IsRegression" />
  19195. <ScalarProperty Name="Holiday_Water_Temp" ColumnName="Holiday_Water_Temp" />
  19196. <ScalarProperty Name="Holiday_Water" ColumnName="Holiday_Water" />
  19197. <ScalarProperty Name="Holiday_Gas_Temp" ColumnName="Holiday_Gas_Temp" />
  19198. <ScalarProperty Name="Holiday_Gas" ColumnName="Holiday_Gas" />
  19199. <ScalarProperty Name="Holiday_Power_Temp" ColumnName="Holiday_Power_Temp" />
  19200. <ScalarProperty Name="Holiday_Power" ColumnName="Holiday_Power" />
  19201. <ScalarProperty Name="Weekday_Water_Temp" ColumnName="Weekday_Water_Temp" />
  19202. <ScalarProperty Name="Weekday_Water" ColumnName="Weekday_Water" />
  19203. <ScalarProperty Name="Weekday_Gas_Temp" ColumnName="Weekday_Gas_Temp" />
  19204. <ScalarProperty Name="Weekday_Gas" ColumnName="Weekday_Gas" />
  19205. <ScalarProperty Name="Weekday_Power_Temp" ColumnName="Weekday_Power_Temp" />
  19206. <ScalarProperty Name="Weekday_Power" ColumnName="Weekday_Power" />
  19207. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19208. </MappingFragment>
  19209. </EntityTypeMapping>
  19210. </EntitySetMapping>
  19211. <EntitySetMapping Name="WeatherDongNaeForecast">
  19212. <EntityTypeMapping TypeName="iBemsModel.WeatherDongNaeForecast">
  19213. <MappingFragment StoreEntitySet="WeatherDongNaeForecast">
  19214. <ScalarProperty Name="Version" ColumnName="Version" />
  19215. <ScalarProperty Name="DBTime" ColumnName="DBTime" />
  19216. <ScalarProperty Name="Type" ColumnName="Type" />
  19217. <ScalarProperty Name="WSD" ColumnName="WSD" />
  19218. <ScalarProperty Name="VEC" ColumnName="VEC" />
  19219. <ScalarProperty Name="VVV" ColumnName="VVV" />
  19220. <ScalarProperty Name="UUU" ColumnName="UUU" />
  19221. <ScalarProperty Name="TMX" ColumnName="TMX" />
  19222. <ScalarProperty Name="TMN" ColumnName="TMN" />
  19223. <ScalarProperty Name="T3H" ColumnName="T3H" />
  19224. <ScalarProperty Name="SKY" ColumnName="SKY" />
  19225. <ScalarProperty Name="S06" ColumnName="S06" />
  19226. <ScalarProperty Name="REH" ColumnName="REH" />
  19227. <ScalarProperty Name="R06" ColumnName="R06" />
  19228. <ScalarProperty Name="PTY" ColumnName="PTY" />
  19229. <ScalarProperty Name="POP" ColumnName="POP" />
  19230. <ScalarProperty Name="ForecastTime" ColumnName="ForecastTime" />
  19231. <ScalarProperty Name="ny" ColumnName="ny" />
  19232. <ScalarProperty Name="nx" ColumnName="nx" />
  19233. <ScalarProperty Name="BaseTime" ColumnName="BaseTime" />
  19234. </MappingFragment>
  19235. </EntityTypeMapping>
  19236. </EntitySetMapping>
  19237. <EntitySetMapping Name="FmsEquipmentRentInfo">
  19238. <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentRentInfo">
  19239. <MappingFragment StoreEntitySet="FmsEquipmentRentInfo">
  19240. <ScalarProperty Name="RentUser" ColumnName="RentUser" />
  19241. <ScalarProperty Name="Title" ColumnName="Title" />
  19242. <ScalarProperty Name="Comment" ColumnName="Comment" />
  19243. <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
  19244. <ScalarProperty Name="ReturnFixDate" ColumnName="ReturnFixDate" />
  19245. <ScalarProperty Name="ReturnDueDate" ColumnName="ReturnDueDate" />
  19246. <ScalarProperty Name="RentDate" ColumnName="RentDate" />
  19247. <ScalarProperty Name="RegisterDate" ColumnName="RegisterDate" />
  19248. <ScalarProperty Name="RentUserId" ColumnName="RentUserId" />
  19249. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  19250. <ScalarProperty Name="EquipmentRentId" ColumnName="EquipmentRentId" />
  19251. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19252. </MappingFragment>
  19253. </EntityTypeMapping>
  19254. </EntitySetMapping>
  19255. <EntitySetMapping Name="BemsControlAHUTempConfig">
  19256. <EntityTypeMapping TypeName="iBemsModel.BemsControlAHUTempConfig">
  19257. <MappingFragment StoreEntitySet="BemsControlAHUTempConfig">
  19258. <ScalarProperty Name="MinTemperature" ColumnName="MinTemperature" />
  19259. <ScalarProperty Name="MaxTemperature" ColumnName="MaxTemperature" />
  19260. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19261. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19262. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19263. </MappingFragment>
  19264. </EntityTypeMapping>
  19265. </EntitySetMapping>
  19266. <EntitySetMapping Name="BemsFuelType">
  19267. <EntityTypeMapping TypeName="iBemsModel.BemsFuelType">
  19268. <MappingFragment StoreEntitySet="BemsFuelType">
  19269. <ScalarProperty Name="Name" ColumnName="Name" />
  19270. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19271. </MappingFragment>
  19272. </EntityTypeMapping>
  19273. </EntitySetMapping>
  19274. <EntitySetMapping Name="CmFacility">
  19275. <EntityTypeMapping TypeName="iBemsModel.CmFacility">
  19276. <MappingFragment StoreEntitySet="CmFacility">
  19277. <ScalarProperty Name="ContractType" ColumnName="ContractType" />
  19278. <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
  19279. <ScalarProperty Name="IsVirtualFacility" ColumnName="IsVirtualFacility" />
  19280. <ScalarProperty Name="FileId" ColumnName="FileId" />
  19281. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19282. <ScalarProperty Name="Reserved2" ColumnName="Reserved2" />
  19283. <ScalarProperty Name="Reserved1" ColumnName="Reserved1" />
  19284. <ScalarProperty Name="Note" ColumnName="Note" />
  19285. <ScalarProperty Name="SubContactorUserId" ColumnName="SubContactorUserId" />
  19286. <ScalarProperty Name="MainContactorUserId" ColumnName="MainContactorUserId" />
  19287. <ScalarProperty Name="RatedCOP" ColumnName="RatedCOP" />
  19288. <ScalarProperty Name="RatedPowerConsumption" ColumnName="RatedPowerConsumption" />
  19289. <ScalarProperty Name="FacilityUsage" ColumnName="FacilityUsage" />
  19290. <ScalarProperty Name="FacilitySeviceLifeYear" ColumnName="FacilitySeviceLifeYear" />
  19291. <ScalarProperty Name="FacilityCount" ColumnName="FacilityCount" />
  19292. <ScalarProperty Name="FacilityCost" ColumnName="FacilityCost" />
  19293. <ScalarProperty Name="FacilityCapacity" ColumnName="FacilityCapacity" />
  19294. <ScalarProperty Name="OperationStartDate" ColumnName="OperationStartDate" />
  19295. <ScalarProperty Name="InstallDate" ColumnName="InstallDate" />
  19296. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  19297. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  19298. <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
  19299. <ScalarProperty Name="SupplierPhoneNo" ColumnName="SupplierPhoneNo" />
  19300. <ScalarProperty Name="Supplier" ColumnName="Supplier" />
  19301. <ScalarProperty Name="ManufactureModel" ColumnName="ManufactureModel" />
  19302. <ScalarProperty Name="ManufactureSerial" ColumnName="ManufactureSerial" />
  19303. <ScalarProperty Name="ManufactureDate" ColumnName="ManufactureDate" />
  19304. <ScalarProperty Name="Manufacturer" ColumnName="Manufacturer" />
  19305. <ScalarProperty Name="Rfid" ColumnName="Rfid" />
  19306. <ScalarProperty Name="Nickname" ColumnName="Nickname" />
  19307. <ScalarProperty Name="Name" ColumnName="Name" />
  19308. <ScalarProperty Name="ParentFacilityCode" ColumnName="ParentFacilityCode" />
  19309. <ScalarProperty Name="DeviceType" ColumnName="DeviceType" />
  19310. <ScalarProperty Name="ThirdClassId" ColumnName="ThirdClassId" />
  19311. <ScalarProperty Name="SecondClassId" ColumnName="SecondClassId" />
  19312. <ScalarProperty Name="FirstClassId" ColumnName="FirstClassId" />
  19313. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19314. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19315. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19316. </MappingFragment>
  19317. </EntityTypeMapping>
  19318. </EntitySetMapping>
  19319. <EntitySetMapping Name="BemsMonitoringPointHistory15minRawData">
  19320. <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistory15minRawData">
  19321. <MappingFragment StoreEntitySet="BemsMonitoringPointHistory15minRawData">
  19322. <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
  19323. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19324. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19325. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19326. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19327. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19328. </MappingFragment>
  19329. </EntityTypeMapping>
  19330. </EntitySetMapping>
  19331. <EntitySetMapping Name="FmsDailyReport">
  19332. <EntityTypeMapping TypeName="iBemsModel.FmsDailyReport">
  19333. <MappingFragment StoreEntitySet="FmsDailyReport">
  19334. <ScalarProperty Name="ApproveDate5" ColumnName="ApproveDate5" />
  19335. <ScalarProperty Name="ApproverUserId5" ColumnName="ApproverUserId5" />
  19336. <ScalarProperty Name="ApproveDate4" ColumnName="ApproveDate4" />
  19337. <ScalarProperty Name="ApproverUserId4" ColumnName="ApproverUserId4" />
  19338. <ScalarProperty Name="ApproveDate3" ColumnName="ApproveDate3" />
  19339. <ScalarProperty Name="ApproverUserId3" ColumnName="ApproverUserId3" />
  19340. <ScalarProperty Name="ApproveDate2" ColumnName="ApproveDate2" />
  19341. <ScalarProperty Name="ApproverUserId2" ColumnName="ApproverUserId2" />
  19342. <ScalarProperty Name="RegisterDate" ColumnName="RegisterDate" />
  19343. <ScalarProperty Name="ApproveDate" ColumnName="ApproveDate" />
  19344. <ScalarProperty Name="ApproverUserId" ColumnName="ApproverUserId" />
  19345. <ScalarProperty Name="Datas" ColumnName="Datas" />
  19346. <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
  19347. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  19348. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  19349. <ScalarProperty Name="Contents" ColumnName="Contents" />
  19350. <ScalarProperty Name="Name" ColumnName="Name" />
  19351. <ScalarProperty Name="DailyReportId" ColumnName="DailyReportId" />
  19352. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19353. </MappingFragment>
  19354. </EntityTypeMapping>
  19355. </EntitySetMapping>
  19356. <EntitySetMapping Name="BemsPeakHistoryDaily">
  19357. <EntityTypeMapping TypeName="iBemsModel.BemsPeakHistoryDaily">
  19358. <MappingFragment StoreEntitySet="BemsPeakHistoryDaily">
  19359. <ScalarProperty Name="MinDateTime" ColumnName="MinDateTime" />
  19360. <ScalarProperty Name="MinPeakValue" ColumnName="MinPeakValue" />
  19361. <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
  19362. <ScalarProperty Name="MaxPeakValue" ColumnName="MaxPeakValue" />
  19363. <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
  19364. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19365. </MappingFragment>
  19366. </EntityTypeMapping>
  19367. </EntitySetMapping>
  19368. <EntitySetMapping Name="FmsEquipment">
  19369. <EntityTypeMapping TypeName="iBemsModel.FmsEquipment">
  19370. <MappingFragment StoreEntitySet="FmsEquipment">
  19371. <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
  19372. <ScalarProperty Name="SupplierPhoneNo" ColumnName="SupplierPhoneNo" />
  19373. <ScalarProperty Name="SupplierName" ColumnName="SupplierName" />
  19374. <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
  19375. <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
  19376. <ScalarProperty Name="AddDate" ColumnName="AddDate" />
  19377. <ScalarProperty Name="Standard" ColumnName="Standard" />
  19378. <ScalarProperty Name="Unit" ColumnName="Unit" />
  19379. <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
  19380. <ScalarProperty Name="EquipmentTypeId" ColumnName="EquipmentTypeId" />
  19381. <ScalarProperty Name="Name" ColumnName="Name" />
  19382. <ScalarProperty Name="EquipmentId" ColumnName="EquipmentId" />
  19383. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19384. </MappingFragment>
  19385. </EntityTypeMapping>
  19386. </EntitySetMapping>
  19387. <EntitySetMapping Name="CmAlarmAdmin">
  19388. <EntityTypeMapping TypeName="iBemsModel.CmAlarmAdmin">
  19389. <MappingFragment StoreEntitySet="CmAlarmAdmin">
  19390. <ScalarProperty Name="EmailPassword" ColumnName="EmailPassword" />
  19391. <ScalarProperty Name="EmailAddress" ColumnName="EmailAddress" />
  19392. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  19393. <ScalarProperty Name="DeptCode" ColumnName="DeptCode" />
  19394. <ScalarProperty Name="UserCode" ColumnName="UserCode" />
  19395. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19396. </MappingFragment>
  19397. </EntityTypeMapping>
  19398. </EntitySetMapping>
  19399. <EntitySetMapping Name="BemsFloorStatus">
  19400. <EntityTypeMapping TypeName="iBemsModel.BemsFloorStatus">
  19401. <MappingFragment StoreEntitySet="BemsFloorStatus">
  19402. <ScalarProperty Name="FacilityName" ColumnName="FacilityName" />
  19403. <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
  19404. <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
  19405. <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
  19406. <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
  19407. <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
  19408. <ScalarProperty Name="Yvalue" ColumnName="Yvalue" />
  19409. <ScalarProperty Name="Xvalue" ColumnName="Xvalue" />
  19410. <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
  19411. <ScalarProperty Name="FloorName" ColumnName="FloorName" />
  19412. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  19413. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19414. </MappingFragment>
  19415. </EntityTypeMapping>
  19416. </EntitySetMapping>
  19417. <EntitySetMapping Name="BemsReportHistory">
  19418. <EntityTypeMapping TypeName="iBemsModel.BemsReportHistory">
  19419. <MappingFragment StoreEntitySet="BemsReportHistory">
  19420. <ScalarProperty Name="FileName" ColumnName="FileName" />
  19421. <ScalarProperty Name="parts" ColumnName="parts" />
  19422. <ScalarProperty Name="Confirm2" ColumnName="Confirm2" />
  19423. <ScalarProperty Name="Confirm1" ColumnName="Confirm1" />
  19424. <ScalarProperty Name="Writer" ColumnName="Writer" />
  19425. <ScalarProperty Name="Content" ColumnName="Content" />
  19426. <ScalarProperty Name="FormatName" ColumnName="FormatName" />
  19427. <ScalarProperty Name="ReportFormatId" ColumnName="ReportFormatId" />
  19428. <ScalarProperty Name="ReportName" ColumnName="ReportName" />
  19429. <ScalarProperty Name="DateTime" ColumnName="DateTime" />
  19430. <ScalarProperty Name="Seq" ColumnName="Seq" />
  19431. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19432. </MappingFragment>
  19433. </EntityTypeMapping>
  19434. </EntitySetMapping>
  19435. <EntitySetMapping Name="CmPartner">
  19436. <EntityTypeMapping TypeName="iBemsModel.CmPartner">
  19437. <MappingFragment StoreEntitySet="CmPartner">
  19438. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19439. <ScalarProperty Name="Note" ColumnName="Note" />
  19440. <ScalarProperty Name="HomepageUri" ColumnName="HomepageUri" />
  19441. <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
  19442. <ScalarProperty Name="Address1" ColumnName="Address1" />
  19443. <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
  19444. <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
  19445. <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
  19446. <ScalarProperty Name="SalesName" ColumnName="SalesName" />
  19447. <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
  19448. <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
  19449. <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
  19450. <ScalarProperty Name="RegistrationNo" ColumnName="RegistrationNo" />
  19451. <ScalarProperty Name="Name" ColumnName="Name" />
  19452. <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
  19453. <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
  19454. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19455. </MappingFragment>
  19456. </EntityTypeMapping>
  19457. </EntitySetMapping>
  19458. <EntitySetMapping Name="CmPartnerType">
  19459. <EntityTypeMapping TypeName="iBemsModel.CmPartnerType">
  19460. <MappingFragment StoreEntitySet="CmPartnerType">
  19461. <ScalarProperty Name="IsUse" ColumnName="IsUse" />
  19462. <ScalarProperty Name="Name" ColumnName="Name" />
  19463. <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
  19464. </MappingFragment>
  19465. </EntityTypeMapping>
  19466. </EntitySetMapping>
  19467. <EntitySetMapping Name="FmsContract">
  19468. <EntityTypeMapping TypeName="iBemsModel.FmsContract">
  19469. <MappingFragment StoreEntitySet="FmsContract">
  19470. <ScalarProperty Name="PaymentTypeId" ColumnName="PaymentTypeId" />
  19471. <ScalarProperty Name="ContractMethodId" ColumnName="ContractMethodId" />
  19472. <ScalarProperty Name="ContractTypeId" ColumnName="ContractTypeId" />
  19473. <ScalarProperty Name="ContractClassId" ColumnName="ContractClassId" />
  19474. <ScalarProperty Name="Comment" ColumnName="Comment" />
  19475. <ScalarProperty Name="CommitmentMan" ColumnName="CommitmentMan" />
  19476. <ScalarProperty Name="OwnerShipPhoneNo" ColumnName="OwnerShipPhoneNo" />
  19477. <ScalarProperty Name="OwnerShipName" ColumnName="OwnerShipName" />
  19478. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  19479. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  19480. <ScalarProperty Name="ContractDate" ColumnName="ContractDate" />
  19481. <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
  19482. <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
  19483. <ScalarProperty Name="Name" ColumnName="Name" />
  19484. <ScalarProperty Name="ContractId" ColumnName="ContractId" />
  19485. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19486. </MappingFragment>
  19487. </EntityTypeMapping>
  19488. </EntitySetMapping>
  19489. <EntitySetMapping Name="BemsFloorPlan">
  19490. <EntityTypeMapping TypeName="iBemsModel.BemsFloorPlan">
  19491. <MappingFragment StoreEntitySet="BemsFloorPlan">
  19492. <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
  19493. <ScalarProperty Name="Name" ColumnName="Name" />
  19494. <ScalarProperty Name="FloorId" ColumnName="FloorId" />
  19495. <ScalarProperty Name="SiteId" ColumnName="SiteId" />
  19496. </MappingFragment>
  19497. </EntityTypeMapping>
  19498. </EntitySetMapping>
  19499. </EntityContainerMapping>
  19500. </Mapping>
  19501. </edmx:Mappings>
  19502. </edmx:Runtime>
  19503. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  19504. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  19505. <Connection>
  19506. <DesignerInfoPropertySet>
  19507. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  19508. </DesignerInfoPropertySet>
  19509. </Connection>
  19510. <Options>
  19511. <DesignerInfoPropertySet>
  19512. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  19513. <DesignerProperty Name="EnablePluralization" Value="false" />
  19514. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  19515. <DesignerProperty Name="UseLegacyProvider" Value="true" />
  19516. <DesignerProperty Name="CodeGenerationStrategy" Value="없음" />
  19517. </DesignerInfoPropertySet>
  19518. </Options>
  19519. <!-- Diagram content (shape and connector positions) -->
  19520. <Diagrams></Diagrams>
  19521. </Designer>
  19522. </edmx:Edmx>