12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984 |
- <?xml version="1.0" encoding="utf-8"?>
- <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">
- <EntityType Name="BemsAnalysisType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnalysisType" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="AnalysisType" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsAnalysisType" ToRole="BemsMonitoringPointToAnlaysisType" />
- </EntityType>
- <EntityType Name="BemsControlPointHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreateDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreateDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ControlValue" Type="Double" Nullable="false" />
- <Property Name="WriteServiceName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="ActionDateTime" Type="DateTime" Precision="3" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsControlPointHistory" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsControlPointHistory" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <EntityType Name="BemsFacilityType">
- <Key>
- <PropertyRef Name="FacilityTypeId" />
- </Key>
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsControlPointHistory" />
- <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointBaseData" />
- <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15min" />
- <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryDaily" />
- <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryHourly" />
- <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointToAnlaysisType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsChartInfo" />
- <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointConfig" />
- <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsAlarmSetting" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="BemsFacilityType" ToRole="CmFacility" />
- <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15minRawData" />
- </EntityType>
- <EntityType Name="BemsFactorCo2">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- </Key>
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="Factor" Type="Double" Nullable="false" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFactorCo2" ToRole="BemsFuelType" />
- </EntityType>
- <EntityType Name="BemsFactorToe">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- </Key>
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="TotalFactor" Type="Double" Nullable="false" />
- <Property Name="PureFactor" Type="Double" Nullable="false" />
- <Property Name="kcal" Type="Double" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFactorToe" ToRole="BemsFuelType" />
- </EntityType>
- <EntityType Name="BemsFormula">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="FormulaId" Type="Int32" Nullable="false" />
- <Property Name="Formula" Type="String" MaxLength="120" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="BemsFormulaBase" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormula" ToRole="BemsFormulaBase" />
- <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormula" ToRole="BemsFormulaParameter" />
- <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsFormula" ToRole="BemsPriceFormula" />
- </EntityType>
- <EntityType Name="BemsFormulaBase">
- <Key>
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FormulaId" />
- </Key>
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FormulaId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormulaBase" ToRole="BemsFormula" />
- </EntityType>
- <EntityType Name="BemsFormulaParameter">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- <PropertyRef Name="ParameterId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="FormulaId" Type="Int32" Nullable="false" />
- <Property Name="ParameterId" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="ParameterFacilityCode" Type="Int32" Nullable="false" />
- <Property Name="ParameterPropertyId" Type="Int32" Nullable="false" />
- <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormulaParameter" ToRole="BemsFormula" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsFormulaParameter" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="BemsFormulaParameter" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="BemsFormulaTable">
- <Key>
- <PropertyRef Name="TableId" />
- </Key>
- <Property Name="TableId" Type="Int32" Nullable="false" />
- <Property Name="FunctionName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="BemsFormulaTableValue" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTable" ToRole="BemsFormulaTableValue" />
- </EntityType>
- <EntityType Name="BemsFormulaTableValue">
- <Key>
- <PropertyRef Name="TableId" />
- <PropertyRef Name="XValue" />
- </Key>
- <Property Name="TableId" Type="Int32" Nullable="false" />
- <Property Name="XValue" Type="Double" Nullable="false" />
- <Property Name="YValue" Type="Double" Nullable="false" />
- <NavigationProperty Name="BemsFormulaTable" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTableValue" ToRole="BemsFormulaTable" />
- </EntityType>
- <EntityType Name="BemsMonitoringPoint">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="ValueType" Type="Int32" Nullable="false" />
- <Property Name="ServiceTypeId" Type="Int16" />
- <Property Name="FuelTypeId" Type="Int16" />
- <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Name="BuildingId" Type="Int32" />
- <Property Name="FloorId" Type="Int32" />
- <Property Name="ZoneId" Type="Int32" />
- <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsControlPointHistory" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsMonitoringPoint" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsFormulaParameter" />
- <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointToAnlaysisType" />
- <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsMonitoringPoint" ToRole="BemsServiceType" />
- <NavigationProperty Name="CmBuilding" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="BemsMonitoringPoint" ToRole="CmBuilding" />
- <NavigationProperty Name="CmFloor" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="BemsMonitoringPoint" ToRole="CmFloor" />
- <NavigationProperty Name="CmZone" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="BemsMonitoringPoint" ToRole="CmZone" />
- <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15min" />
- <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryDaily" />
- <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryHourly" />
- <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointConfig" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsMonitoringPoint" ToRole="BemsFuelType" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="BemsMonitoringPoint" ToRole="CmFacility" />
- <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15minRawData" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointBaseData">
- <Key>
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="ValueType" Type="Int32" Nullable="false" />
- <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
- <Property Name="ServiceTypeId" Type="Int16" />
- <Property Name="FuelTypeId" Type="Int16" />
- <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Name="IsSampled" Type="Boolean" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsServiceType" />
- <Property Name="IsConverted" Type="Boolean" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFuelType" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistory15min">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CurrentValue" Type="Double" Nullable="false" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistoryDaily">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="DailyValue" Type="Double" Nullable="false" />
- <Property Name="MaxValue" Type="Double" />
- <Property Name="MinValue" Type="Double" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistoryHourly">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CurrentValue" Type="Double" Nullable="false" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointToAnlaysisType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="AnalysisType" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="AnalysisType" Type="Int32" Nullable="false" />
- <NavigationProperty Name="BemsAnalysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsAnalysisType" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <EntityType Name="BemsServiceType">
- <Key>
- <PropertyRef Name="ServiceTypeId" />
- </Key>
- <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPointBaseData" />
- <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsEnergyDaily" />
- </EntityType>
- <EntityType Name="CmAnnouncement">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnnouncementId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="AnnouncementId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="ReadCount" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmAnnouncement" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmAnnouncement" ToRole="CmFile" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmAnnouncement" ToRole="CmUser" />
- </EntityType>
- <EntityType Name="CmBuilding">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="CmBuilding" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmBuilding" ToRole="CmFloor" />
- <NavigationProperty Name="CmZone" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmBuilding" ToRole="CmZone" />
- <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmBuilding" ToRole="CmZoneTempHumiSet" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="SortOrderNo" Type="Int32" />
- <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmBuilding" ToRole="CmPatrolPos" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmBuilding" ToRole="CmSite" />
- <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="CmBuilding" ToRole="BemsEnergyDaily" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmBuilding" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmBusinessField">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmBusinessField" ToRole="CmAnnouncement" />
- <NavigationProperty Name="FmsFacilityManual" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="CmBusinessField" ToRole="FmsFacilityManual" />
- <NavigationProperty Name="FmsLicense" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsLicense" />
- <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCarriedForward" />
- <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCodeLocation" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseRequest" />
- <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialWarehouse" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmBusinessField" ToRole="CmUser" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterial" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialRelease" />
- <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsReport" />
- <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsDailyReport" />
- </EntityType>
- <EntityType Name="CmCompany">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="CompanyTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
- <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
- <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Homepage" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmCompanyType" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompany" ToRole="CmCompanyType" />
- <NavigationProperty Name="CmDepartment" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmCompany" ToRole="CmDepartment" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmCompany" ToRole="CmUser" />
- <NavigationProperty Name="FmsAccident" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="CmCompany" ToRole="FmsAccident" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmCompany" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmCompanyType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CompanyTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompanyType" ToRole="CmCompany" />
- </EntityType>
- <EntityType Name="CmDepartment">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CompanyId" Type="Int32" Nullable="false" />
- <Property Name="DepartmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ShortName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="FaxNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmDepartment" ToRole="CmCompany" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmDepartment" ToRole="CmUser" />
- <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="CmDepartment" ToRole="FmsAccident" />
- </EntityType>
- <EntityType Name="CmFacilityFile">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="InsertedDate" Type="DateTime" Precision="3" />
- <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
- <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFacilityFile" ToRole="CmFile" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacilityFile" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmFacilityTempSet">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="T1" Type="Double" Nullable="false" />
- <Property Name="T2" Type="Double" Nullable="false" />
- <Property Name="T3" Type="Double" Nullable="false" />
- <Property Name="T4" Type="Double" Nullable="false" />
- <Property Name="T5" Type="Double" Nullable="false" />
- <Property Name="T6" Type="Double" Nullable="false" />
- <Property Name="T7" Type="Double" Nullable="false" />
- <Property Name="T8" Type="Double" Nullable="false" />
- <Property Name="T9" Type="Double" Nullable="false" />
- <Property Name="T10" Type="Double" Nullable="false" />
- <Property Name="T11" Type="Double" Nullable="false" />
- <Property Name="T12" Type="Double" Nullable="false" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmFacilityTempSet" ToRole="CmSite" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacilityTempSet" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmFile" m:HasStream="true" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="FileSize" Type="Int32" />
- <Property Name="CreatedDate" Type="DateTime" Precision="3" />
- <Property Name="ContentType" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmFile" ToRole="CmAnnouncement" />
- <NavigationProperty Name="CmFacilityFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFile" ToRole="CmFacilityFile" />
- <NavigationProperty Name="CmFileCategory" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFile" ToRole="CmFileCategory" />
- <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="CmFile" ToRole="FmsDrawingHistory" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="CmFile" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="CmFile" ToRole="FmsWorkResultFile" />
- <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="CmFile" ToRole="FmsAccident" />
- <NavigationProperty Name="FmsAccident1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="CmFile" ToRole="FmsAccident" />
- <NavigationProperty Name="FmsAccident2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="CmFile" ToRole="FmsAccident" />
- <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="CmFile" ToRole="FmsConstruction" />
- <NavigationProperty Name="FmsConstruction1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="CmFile" ToRole="FmsConstruction" />
- <NavigationProperty Name="FmsConstruction2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="CmFile" ToRole="FmsConstruction" />
- <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="CmFile" ToRole="FmsManualHistory" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="CmFile" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmFile" ToRole="CmSite" />
- <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="CmFile" ToRole="FmsReport" />
- <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
- <NavigationProperty Name="FmsWorkResultCheckItem1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFile" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmFileCategory">
- <Key>
- <PropertyRef Name="FileCategoryId" />
- </Key>
- <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFileCategory" ToRole="CmFile" />
- </EntityType>
- <EntityType Name="CmFloor">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="CmFloor" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmFloor" ToRole="CmBuilding" />
- <NavigationProperty Name="CmZone" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmFloor" ToRole="CmZone" />
- <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmFloor" ToRole="CmZoneTempHumiSet" />
- <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmFloor" ToRole="CmPatrolPos" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFloor" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmHoliday">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayMonth" />
- <PropertyRef Name="HolidayDay" />
- <PropertyRef Name="IsLunar" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="HolidayMonth" Type="Int16" Nullable="false" />
- <Property Name="HolidayDay" Type="Int16" Nullable="false" />
- <Property Name="IsLunar" Type="Boolean" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmHoliday" ToRole="CmSite" />
- <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmHoliday" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmHolidayCustom">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayDate" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="HolidayDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmHolidayCustom" ToRole="CmSite" />
- <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmHolidayCustom" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmPosition">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PositionId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PositionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmPosition" ToRole="CmUser" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmPosition" ToRole="CmSite" />
- <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmPosition" ToRole="CmSite" />
- <Property Name="Position" Type="Int32" />
- </EntityType>
- <EntityType Name="CmUser">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="CompanyId" Type="Int32" />
- <Property Name="DepartmentId" Type="Int32" />
- <Property Name="PositionId" Type="Int32" />
- <Property Name="BusinessFieldId" Type="Int32" />
- <Property Name="UserGroupId" Type="Int32" />
- <Property Name="Name" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Passwd" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Birthday" Type="DateTime" Precision="3" />
- <Property Name="Lunar" Type="Boolean" />
- <Property Name="StateId" Type="Int32" />
- <Property Name="EmploymentType" Type="Int32" />
- <Property Name="EmploymentStatus" Type="Int32" />
- <Property Name="OfficePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="HomePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="MobilePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="HomeZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
- <Property Name="HomeZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
- <Property Name="HomeAddress1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="HomeAdderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="EnterDate" Type="DateTime" Precision="3" />
- <Property Name="RetireDate" Type="DateTime" Precision="3" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Rfcsn" Type="String" MaxLength="30" FixedLength="false" Unicode="true" />
- <Property Name="PasswordUpdatedDate" Type="DateTime" Precision="3" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="IsBems" Type="Boolean" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="Certificated" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmUser" ToRole="CmAnnouncement" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmUser" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmCompany" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmUser" ToRole="CmCompany" />
- <NavigationProperty Name="CmDepartment" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmUser" ToRole="CmDepartment" />
- <NavigationProperty Name="CmPosition" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmUser" ToRole="CmPosition" />
- <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUser" ToRole="CmUserToLicense" />
- <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="CmUser" ToRole="FmsDrawingHistory" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="CmUser" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
- <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="FmsMaterialStored1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="CmUser" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkRequest1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
- <NavigationProperty Name="FmsWorkResult1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmUser" FromRole="CmUser" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="CmUserGroup" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUser" ToRole="CmUserGroup" />
- <NavigationProperty Name="CmUserLoginHistory" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUser" ToRole="CmUserLoginHistory" />
- <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="CmUser" ToRole="FmsConstructionEstimation" />
- <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="CmUser" ToRole="FmsManualHistory" />
- <NavigationProperty Name="FmsDailyCheckReport" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="CmUser" ToRole="FmsDailyCheckReport" />
- <NavigationProperty Name="FmsFacilityOperationReport" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="CmUser" ToRole="FmsFacilityOperationReport" />
- <Property Name="IsScheduleUser" Type="Boolean" />
- <NavigationProperty Name="FmsMonthlyReport" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="CmUser" ToRole="FmsMonthlyReport" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="CmUser" ToRole="FmsMaterialRelease" />
- <NavigationProperty Name="FmsMaterialRelease1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="CmUser" ToRole="FmsMaterialRelease" />
- <Property Name="IsSI" Type="Boolean" Nullable="true" />
- <Property Name="IsMobile" Type="Boolean" Nullable="true" />
- <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmUser" ToRole="CmPatrolGroupUser" />
- <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="CmUser" ToRole="FmsReport" />
- <NavigationProperty Name="FmsReport1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="CmUser" ToRole="FmsReport" />
- <NavigationProperty Name="FmsReport2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="CmUser" ToRole="FmsReport" />
- <Property Name="Devicetoken" Type="String" MaxLength="500" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
- <NavigationProperty Name="FmsEquipmentRentInfo1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmUser" ToRole="CmFacility" />
- <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmUser" ToRole="CmFacility" />
- <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmUser" ToRole="CmFacility" />
- <NavigationProperty Name="CmFacility3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmUser" ToRole="CmFacility" />
- <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="CmUser" ToRole="FmsDailyReport" />
- <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="CmUser" ToRole="FmsEquipment" />
- </EntityType>
- <EntityType Name="CmUserGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="UserGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUserGroup" ToRole="CmUser" />
- <NavigationProperty Name="CmUserGroupPermission" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroup" ToRole="CmUserGroupPermission" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmUserGroup" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmUserGroupPermission">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- <PropertyRef Name="MenuId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="UserGroupId" Type="Int32" Nullable="false" />
- <Property Name="MenuId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="MenuPermission" Type="Int16" />
- <NavigationProperty Name="CmUserGroup" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroupPermission" ToRole="CmUserGroup" />
- </EntityType>
- <EntityType Name="CmUserLoginHistory">
- <Key>
- <PropertyRef Name="LoginHistoryId" />
- </Key>
- <Property Name="LoginHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Type" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="TraceTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="IpAddress" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUserLoginHistory" ToRole="CmUser" />
- </EntityType>
- <EntityType Name="CmUserToLicense">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- <PropertyRef Name="LicenseId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="LicenseId" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUserToLicense" ToRole="CmUser" />
- <NavigationProperty Name="FmsLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="CmUserToLicense" ToRole="FmsLicense" />
- </EntityType>
- <EntityType Name="CmZone">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" />
- <Property Name="ZoneId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Target_temperature" Type="Double" />
- <Property Name="Target_humidity" Type="Int16" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="CmZone" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmZone" ToRole="CmBuilding" />
- <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmZone" ToRole="CmFloor" />
- <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZone" ToRole="CmZoneTempHumiSet" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmZone" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmZoneTempHumiSet">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" />
- <Property Name="ZoneId" Type="Int32" Nullable="false" />
- <Property Name="T1" Type="Double" Nullable="false" />
- <Property Name="T2" Type="Double" Nullable="false" />
- <Property Name="T3" Type="Double" Nullable="false" />
- <Property Name="T4" Type="Double" Nullable="false" />
- <Property Name="T5" Type="Double" Nullable="false" />
- <Property Name="T6" Type="Double" Nullable="false" />
- <Property Name="T7" Type="Double" Nullable="false" />
- <Property Name="T8" Type="Double" Nullable="false" />
- <Property Name="T9" Type="Double" Nullable="false" />
- <Property Name="T10" Type="Double" Nullable="false" />
- <Property Name="T11" Type="Double" Nullable="false" />
- <Property Name="T12" Type="Double" Nullable="false" />
- <Property Name="H1" Type="Int16" Nullable="false" />
- <Property Name="H2" Type="Int16" Nullable="false" />
- <Property Name="H3" Type="Int16" Nullable="false" />
- <Property Name="H4" Type="Int16" Nullable="false" />
- <Property Name="H5" Type="Int16" Nullable="false" />
- <Property Name="H6" Type="Int16" Nullable="false" />
- <Property Name="H7" Type="Int16" Nullable="false" />
- <Property Name="H8" Type="Int16" Nullable="false" />
- <Property Name="H9" Type="Int16" Nullable="false" />
- <Property Name="H10" Type="Int16" Nullable="false" />
- <Property Name="H11" Type="Int16" Nullable="false" />
- <Property Name="H12" Type="Int16" Nullable="false" />
- <NavigationProperty Name="CmBuilding" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmZoneTempHumiSet" ToRole="CmBuilding" />
- <NavigationProperty Name="CmFloor" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmZoneTempHumiSet" ToRole="CmFloor" />
- <NavigationProperty Name="CmZone" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZoneTempHumiSet" ToRole="CmZone" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmZoneTempHumiSet" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsAccident">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="AccidentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="StartDate" Type="DateTime" Precision="3" />
- <Property Name="EndDate" Type="DateTime" Precision="3" />
- <Property Name="AccidentTypeId" Type="Int32" Nullable="false" />
- <Property Name="DepartmentId" Type="Int32" />
- <Property Name="AccidentLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Name="Reason" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Action" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Damage" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Measurement" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="FileId1" Type="Int32" />
- <Property Name="FileId2" Type="Int32" />
- <Property Name="FileId3" Type="Int32" />
- <Property Name="CompanyId" Type="Int32" />
- <NavigationProperty Name="CmDepartment" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="FmsAccident" ToRole="CmDepartment" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="FmsAccident" ToRole="CmFile" />
- <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="FmsAccident" ToRole="CmFile" />
- <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="FmsAccident" ToRole="CmFile" />
- <NavigationProperty Name="FmsAccidentCodeType" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccident" ToRole="FmsAccidentCodeType" />
- <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="FmsAccident" ToRole="CmCompany" />
- </EntityType>
- <EntityType Name="FmsAccidentCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="AccidentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccidentCodeType" ToRole="FmsAccident" />
- </EntityType>
- <EntityType Name="FmsBudget">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Year" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudget" ToRole="FmsBudgetDetail" />
- </EntityType>
- <EntityType Name="FmsBudgetCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BudgetClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BudgetClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="BudgetSeq" Type="String" MaxLength="6" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ParentBudgetClassId" Type="Int32" />
- <Property Name="Depth" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="YearlyBudget" Type="Double" />
- <Property Name="MonthlyBudget" Type="Double" />
- <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetCodeClass" ToRole="FmsBudgetDetail" />
- <Property Name="RootBudgetClassId" Type="Int32" />
- </EntityType>
- <EntityType Name="FmsCompanyEstimationCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyEstimationClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CompanyEstimationClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- </EntityType>
- <EntityType Name="FmsConstruction">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ConstructionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
- <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="PartnerId" Type="Int32" Nullable="false" />
- <Property Name="ConstructLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="CommitmentMan" Type="Int16" />
- <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="WeldWorkStartTime" Type="DateTime" Precision="3" />
- <Property Name="WeldWorkEndTime" Type="DateTime" Precision="3" />
- <Property Name="GasWorkStartTime" Type="DateTime" Precision="3" />
- <Property Name="GasWorkEndTime" Type="DateTime" Precision="3" />
- <Property Name="PaintWorkStartTime" Type="DateTime" Precision="3" />
- <Property Name="PaintWorkEndTime" Type="DateTime" Precision="3" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="ProgressId" Type="Int16" Nullable="false" />
- <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ConstructionDetail" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="InOutStockName" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="FileId1" Type="Int32" />
- <Property Name="FileId2" Type="Int32" />
- <Property Name="FileId3" Type="Int32" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="FmsConstruction" ToRole="CmFile" />
- <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="FmsConstruction" ToRole="CmFile" />
- <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="FmsConstruction" ToRole="CmFile" />
- <NavigationProperty Name="FmsConstructionCodeProgress" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstruction" ToRole="FmsConstructionCodeProgress" />
- <NavigationProperty Name="FmsConstructionCodeType" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstruction" ToRole="FmsConstructionCodeType" />
- <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstruction" ToRole="FmsConstructionEstimation" />
- <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="FmsConstruction" ToRole="CmPartner" />
- </EntityType>
- <EntityType Name="FmsConstructionCodeProgress">
- <Key>
- <PropertyRef Name="ProgressId" />
- </Key>
- <Property Name="ProgressId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstructionCodeProgress" ToRole="FmsConstruction" />
- </EntityType>
- <EntityType Name="FmsConstructionCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstructionCodeType" ToRole="FmsConstruction" />
- </EntityType>
- <EntityType Name="FmsConstructionEstimation">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ConstructionId" Type="Int32" Nullable="false" />
- <Property Name="EstimateDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="EstimateUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Safety01_CleanUp" Type="Boolean" />
- <Property Name="Safety02_PersonalProtection" Type="Boolean" />
- <Property Name="Safety03_FireExtinguisher" Type="Boolean" />
- <Property Name="Safety04_HighPlaceWork" Type="Boolean" />
- <Property Name="Safety05_Weld" Type="Boolean" />
- <Property Name="Safety06_SurroundingCleanUp" Type="Boolean" />
- <Property Name="Safety07_SurroundingHealthy" Type="Boolean" />
- <Property Name="Safety08_Noise" Type="Boolean" />
- <Property Name="Safety09_FacilityProtection" Type="Boolean" />
- <Property Name="Safety10_Waste" Type="Boolean" />
- <Property Name="Safety11_Execution" Type="Boolean" />
- <Property Name="Safety12_Announcement" Type="Boolean" />
- <Property Name="Ability01_Compliance" Type="Boolean" />
- <Property Name="Ability02_Fault" Type="Boolean" />
- <Property Name="Ability03_SkillLevel" Type="Boolean" />
- <Property Name="Ability04_ProcessManagement" Type="Boolean" />
- <Property Name="Ability05_Collaboration" Type="Boolean" />
- <Property Name="Service01_Compliance" Type="Boolean" />
- <Property Name="Service02_SkillLevel" Type="Boolean" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="TotalEstimateScore" Type="Double" />
- <Property Name="SafetyScore" Type="Double" />
- <Property Name="AbilityScore" Type="Double" />
- <Property Name="ServiceScore" Type="Double" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="FmsConstructionEstimation" ToRole="CmUser" />
- <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstructionEstimation" ToRole="FmsConstruction" />
- </EntityType>
- <EntityType Name="FmsContractClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ContractClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContractClass" ToRole="FmsContract" />
- </EntityType>
- <EntityType Name="FmsContractMethod">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractMethodId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ContractMethodId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContractMethod" ToRole="FmsContract" />
- </EntityType>
- <EntityType Name="FmsContractType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ContractTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContractType" ToRole="FmsContract" />
- </EntityType>
- <EntityType Name="FmsDrawing">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="DrawingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="DrawingNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="DrawingGroupId" Type="Int32" Nullable="false" />
- <Property Name="DrawingTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawing" ToRole="FmsDrawingCodeGroup" />
- <NavigationProperty Name="FmsDrawingCodeType" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawing" ToRole="FmsDrawingCodeType" />
- <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawing" ToRole="FmsDrawingHistory" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="FmsDrawing" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsDrawingCodeGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingGroupId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="DrawingGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawingCodeGroup" ToRole="FmsDrawing" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
- <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsDrawingCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="DrawingTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawingCodeType" ToRole="FmsDrawing" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
- <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsDrawingHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- <PropertyRef Name="HistoryId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="DrawingId" Type="Int32" Nullable="false" />
- <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="RevisionNo" Type="Int32" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
- <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
- <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="FmsDrawingHistory" ToRole="CmFile" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="FmsDrawingHistory" ToRole="CmUser" />
- <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawingHistory" ToRole="FmsDrawing" />
- </EntityType>
- <EntityType Name="FmsEquipmentCodeStateType">
- <Key>
- <PropertyRef Name="EquipmentStateTypeId" />
- </Key>
- <Property Name="EquipmentStateTypeId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsEquipmentHistory" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentHistory" />
- <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentRentInfo" />
- </EntityType>
- <EntityType Name="FmsEquipmentCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipmentCodeType" ToRole="FmsEquipment" />
- </EntityType>
- <EntityType Name="FmsEquipmentHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentHistoryId" />
- <PropertyRef Name="EquipmentId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="EquipmentHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="EquipmentId" Type="Int32" Nullable="false" />
- <Property Name="TotalStockCount" Type="Int32" />
- <Property Name="CurrentStockCount" Type="Int32" />
- <Property Name="RentCount" Type="Int32" />
- <Property Name="CurrentRentCount" Type="Int32" />
- <Property Name="ReturnCount" Type="Int32" />
- <Property Name="LossCount" Type="Int32" />
- <Property Name="StoredCount" Type="Int32" />
- <Property Name="EquipmentRentId" Type="Int32" />
- <Property Name="EquipmentStateTypeId" Type="Int16" />
- <Property Name="AddDate" Type="DateTime" Precision="3" />
- <Property Name="UpdateDate" Type="DateTime" Precision="3" />
- <Property Name="IsReturned" Type="Boolean" />
- <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentCodeStateType" />
- <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentRentInfo" />
- <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipmentHistory" ToRole="FmsEquipment" />
- </EntityType>
- <EntityType Name="FmsFacilityCheckItem">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="CheckItemId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
- <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsYesNoResult" Type="Boolean" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeCycleUnit" />
- <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeType" />
- <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkResultCheckItem" />
- </EntityType>
- <EntityType Name="FmsFacilityCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ParentFacilityClassId" Type="Int32" />
- <Property Name="Depth" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Abbreviation" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass" ToRole="FmsFacilityCodeClass1" />
- <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass1" ToRole="FmsFacilityCodeClass" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="FmsFacilityCodeClass" ToRole="CmSite" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
- <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
- <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsFacilityManual">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="ManualId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Description" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Keyword" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="FmsFacilityManual" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="FmsFacilityManual" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsFacilityOperationItem">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ItemId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="ItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="ResultUnit" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="PointId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="SystemId" Type="Int32" />
- <Property Name="EnergyCode" Type="Boolean" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="SortOrderNo" Type="Int32" />
- <Property Name="InsertedDate" Type="DateTime" Precision="3" />
- <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
- <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="FmsFacilityOperationItem" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsLicense">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LicenseId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="LicenseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IssuingOffice" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" />
- <Property Name="EducationalInstitute" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
- <Property Name="Note" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="FmsLicense" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="FmsLicense" ToRole="CmUserToLicense" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="FmsLicense" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsManual">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ManualNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ManualTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsManualType" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManual" ToRole="FmsManualType" />
- <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManual" ToRole="FmsManualHistory" />
- </EntityType>
- <EntityType Name="FmsManualHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- <PropertyRef Name="HistoryId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ManualId" Type="Int32" Nullable="false" />
- <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="RevisionNo" Type="Int32" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
- <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
- <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="FmsManualHistory" ToRole="CmFile" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="FmsManualHistory" ToRole="CmUser" />
- <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManualHistory" ToRole="FmsManual" />
- </EntityType>
- <EntityType Name="FmsManualType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ManualTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManualType" ToRole="FmsManual" />
- </EntityType>
- <EntityType Name="FmsMaterialCarriedForward">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ClosedDate" />
- <PropertyRef Name="BusinessFieldId" />
- <PropertyRef Name="WarehouseId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ClosedDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="WarehouseId" Type="Int32" Nullable="false" />
- <Property Name="MaterialId" Type="Int32" Nullable="false" />
- <Property Name="StockCount" Type="Int32" Nullable="false" />
- <Property Name="StockTotalCost" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="FmsMaterialCarriedForward" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="FmsMaterialCarriedForward" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeAdjustmentType">
- <Key>
- <PropertyRef Name="AdjustmentTypeId" />
- </Key>
- <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialCodeAdjustmentType" ToRole="FmsMaterialRelease" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="MaterialClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ParentMaterialClassId" Type="Int32" />
- <Property Name="Depth" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterialCodeClass1" />
- <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass1" ToRole="FmsMaterialCodeClass" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
- <NavigationProperty Name="FmsMaterial1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
- <NavigationProperty Name="FmsMaterial2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="FmsMaterialCodeClass" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeLocation">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LocationId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="LocationId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="FmsMaterialCodeLocation" ToRole="CmBusinessField" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterialCodeLocation" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="FmsMaterialCodeLocation" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeProgress">
- <Key>
- <PropertyRef Name="ProgressId" />
- </Key>
- <Property Name="ProgressId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialCodeProgress" ToRole="FmsMaterialPurchaseRequest" />
- </EntityType>
- <EntityType Name="FmsMaterialCodePurchaseType">
- <Key>
- <PropertyRef Name="PurchaseTypeId" />
- </Key>
- <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialCodePurchaseType" ToRole="FmsMaterialPurchaseRequest" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeReleaseType">
- <Key>
- <PropertyRef Name="ReleaseTypeId" />
- </Key>
- <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialCodeReleaseType" ToRole="FmsMaterialRelease" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="MaterialTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Nickname" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterialCodeType" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="FmsMaterialCodeType" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseOrder">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
- <Property Name="TradeCompanyId" Type="Int32" />
- <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
- <Property Name="StoredDueDate" Type="DateTime" Precision="3" />
- <Property Name="FileId" Type="Int32" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="FmsMaterialPurchaseOrder" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="FmsMaterialPurchaseOrder" ToRole="CmFile" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="FmsMaterialPurchaseOrder" ToRole="CmUser" />
- <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialTradeCompany" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseRequest" />
- <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseOrderMaterial" />
- <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="FmsMaterialPurchaseOrder" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseOrderMaterial">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" />
- <Property Name="MaterialId" Type="Int32" Nullable="false" />
- <Property Name="MaterialCount" Type="Int32" Nullable="false" />
- <Property Name="UnitCost" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterial" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseRequest">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" />
- <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="PurchaseHopeDate" Type="DateTime" Precision="3" />
- <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ProgressId" Type="Int16" Nullable="false" />
- <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
- <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="FmsMaterialPurchaseRequest" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
- <NavigationProperty Name="FmsMaterialCodeProgress" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodeProgress" />
- <NavigationProperty Name="FmsMaterialCodePurchaseType" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodePurchaseType" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseRequestMaterial" />
- <Property Name="bSameOrder" Type="Boolean" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="FmsMaterialPurchaseRequest" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseRequestMaterial">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
- <Property Name="MaterialId" Type="Int32" Nullable="false" />
- <Property Name="MaterialCount" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterialPurchaseRequest" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterial" />
- </EntityType>
- <EntityType Name="FmsMaterialStored">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialStoredId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="StoredDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="MaterialStoredId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="PurchaseOrderId" Type="Int32" />
- <Property Name="WarehouseId" Type="Int32" Nullable="false" />
- <Property Name="MaterialId" Type="Int32" Nullable="false" />
- <Property Name="StoredCount" Type="Int32" Nullable="false" />
- <Property Name="RemainStoredCount" Type="Int32" Nullable="false" />
- <Property Name="UnitCost" Type="Int32" Nullable="false" />
- <Property Name="StockCount" Type="Int32" Nullable="false" />
- <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="StoredUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
- <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="IsApproval" Type="Boolean" Nullable="false" />
- <Property Name="LocationInWarehouse" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="FmsMaterialStored" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialStored" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialStored" ToRole="FmsMaterialWarehouse" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterialStored" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="FmsMaterialStored" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialTradeCompany">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="TradeCompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="RepresentativeName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
- <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
- <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="HomepageUri" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
- <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="FmsMaterialTradeCompany" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialWarehouse">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="WarehouseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="FmsMaterialWarehouse" ToRole="CmBusinessField" />
- <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="FmsMaterialWarehouse" ToRole="CmSite" />
- <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsEquipment" />
- </EntityType>
- <EntityType Name="FmsPaymentType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PaymentTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PaymentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsPaymentType" ToRole="FmsContract" />
- </EntityType>
- <EntityType Name="FmsWorkCodeCauseClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CauseClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CauseClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ParentId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkCodeCauseClass" ToRole="FmsWorkResult" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="FmsWorkCodeCauseClass" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsWorkCodeCycleUnit">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsFacilityCheckItem" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="FmsWorkCodeCycleUnit" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsWorkCodeEmergency">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EmergencyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="EmergencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkCodeEmergency" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="FmsWorkCodeEmergency" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsWorkCodeHolidayWorkType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayWorkTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkCodeHolidayWorkType" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="FmsWorkCodeHolidayWorkType" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsWorkCodeLegalInspectionAgency">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InspectionAgencyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="InspectionAgencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="FmsWorkCodeLegalInspectionAgency" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsWorkCodeProgress">
- <Key>
- <PropertyRef Name="WorkProgressId" />
- </Key>
- <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkCodeProgress" ToRole="FmsWorkRequest" />
- </EntityType>
- <EntityType Name="FmsWorkCodeType">
- <Key>
- <PropertyRef Name="WorkTypeId" />
- </Key>
- <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsFacilityCheckItem" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkSchedule" />
- </EntityType>
- <EntityType Name="FmsWorkOrder">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="EmergencyId" Type="Int32" />
- <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Content" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="FmsWorkOrder" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="FmsWorkOrder" ToRole="CmUser" />
- <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkOrder" ToRole="FmsWorkCodeEmergency" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkOrder" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkOrderToFacility" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkResult" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="FmsWorkOrder" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsWorkOrderToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrderToFacility" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="FmsWorkOrderToFacility" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsWorkRequest">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="WorkScheduleId" Type="Int32" />
- <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
- <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="RejectUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="RejectDate" Type="DateTime" Precision="3" />
- <Property Name="RejectReason" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
- <Property Name="InspectionAgencyId" Type="Int32" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="FmsWorkRequest" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
- <NavigationProperty Name="FmsWorkCodeProgress" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeProgress" />
- <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeType" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkRequest" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkRequestToFacility" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkResult" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="FmsWorkRequest" ToRole="CmSite" />
- <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="FmsWorkRequest" ToRole="CmPartner" />
- </EntityType>
- <EntityType Name="FmsWorkRequestToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequestToFacility" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="FmsWorkRequestToFacility" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsWorkResult">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="WorkerUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CauseClassId" Type="Int32" />
- <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
- <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
- <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkResult" ToRole="FmsWorkCodeCauseClass" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkResult" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItem" />
- <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultFile" />
- <NavigationProperty Name="FmsWorkResultLaw" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultLaw" />
- <NavigationProperty Name="FmsWorkResultToFacility" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkResultToFacility" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsMaterialRelease" />
- <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItemMaterial" />
- <Property Name="ConfirmDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="FmsWorkResultCheckItem">
- <Key>
- <PropertyRef Name="CheckItemId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" />
- <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="BoolResult" Type="Boolean" />
- <Property Name="TextResult" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="CheckDate" Type="DateTime" Nullable="false" Precision="3" />
- <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsFacilityCheckItem" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResult" />
- <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResultCheckItemMaterial" />
- <Property Name="FileId1" Type="Int32" />
- <Property Name="FileId2" Type="Int32" />
- <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
- <NavigationProperty Name="CmFile1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="FmsWorkResultCheckItem" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsWorkResultCheckItemMaterial">
- <Key>
- <PropertyRef Name="CheckItemMaterialId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="CheckItemId" Type="Int32" Nullable="false" />
- <Property Name="CheckItemMaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="MaterialId" Type="Int32" Nullable="false" />
- <Property Name="MaterialCount" Type="Int32" Nullable="false" />
- <Property Name="MaterialCode" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResultCheckItem" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsMaterial" />
- <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResult" />
- </EntityType>
- <EntityType Name="FmsWorkResultFile">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="FileId" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="FmsWorkResultFile" ToRole="CmFile" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResultFile" ToRole="FmsWorkResult" />
- </EntityType>
- <EntityType Name="FmsWorkResultLaw">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="CertificationNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="CheckCommission" Type="Decimal" Precision="10" Scale="0" />
- <Property Name="CheckResult" Type="Boolean" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResultLaw" ToRole="FmsWorkResult" />
- </EntityType>
- <EntityType Name="FmsWorkResultToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResultToFacility" ToRole="FmsWorkResult" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="FmsWorkResultToFacility" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsWorkScheduleToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkScheduleId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkScheduleToFacility" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="FmsWorkScheduleToFacility" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="principal_id" Type="Int32" Nullable="false" />
- <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="version" Type="Int32" />
- <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
- </EntityType>
- <Association Name="FK__BemsMonitoringPo__1372D2FE">
- <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
- <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsAnalysisType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnalysisType" />
- </Principal>
- <Dependent Role="BemsMonitoringPointToAnlaysisType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnalysisType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsControlPointHistory">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsControlPointHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointBaseData">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistory15min">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistoryDaily">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistoryHourly">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointToAnlaysisType">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFormula__BemsFormulaBase">
- <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
- <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFormulaBase">
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FormulaId" />
- </Principal>
- <Dependent Role="BemsFormula">
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FormulaId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFormulaParameter__BemsFormula">
- <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
- <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFormula">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Principal>
- <Dependent Role="BemsFormulaParameter">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFormulaParameter__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsFormulaParameter">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ParameterFacilityCode" />
- <PropertyRef Name="ParameterPropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
- <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
- <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFormulaTable">
- <PropertyRef Name="TableId" />
- </Principal>
- <Dependent Role="BemsFormulaTableValue">
- <PropertyRef Name="TableId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPo__155B1B70">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointToAnlaysisType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
- <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsServiceType">
- <PropertyRef Name="ServiceTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="ServiceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__CmBuilding">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__CmFloor">
- <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__CmZone">
- <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistory15min">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistoryDaily">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistoryHourly">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
- <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
- <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsServiceType">
- <PropertyRef Name="ServiceTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointBaseData">
- <PropertyRef Name="ServiceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmAnnouncement_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="CmAnnouncement">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmAnnouncement_CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="CmAnnouncement">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmAnnouncement_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmAnnouncement">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFloor__3CF40B7E">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
- <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmZone__CmBuilding">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
- <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
- <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmZoneTempHumiSet">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacilityManual__7BE56230">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsFacilityManual">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsLicense__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
- <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsLicense">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialCarriedForward">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeLocation">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialOrder__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialStored__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmCompany__345EC57D">
- <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
- <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmCompanyType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyTypeId" />
- </Principal>
- <Dependent Role="CmCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmDepartment__3552E9B6">
- <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
- <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Principal>
- <Dependent Role="CmDepartment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmCompany">
- <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmDepartment">
- <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmDepartment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_CmDepartment">
- <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmDepartment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacilityFile__CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
- <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="CmFacilityFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFile__CmFileCategory">
- <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFileCategory">
- <PropertyRef Name="FileCategoryId" />
- </Principal>
- <Dependent Role="CmFile">
- <PropertyRef Name="FileCategoryId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawingHistor__04DA9AE4">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsDrawingHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultFile__CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
- <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsWorkResultFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_CmFile1">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId1" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_CmFile2">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId2" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_CmFile3">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId3" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_CmFile1">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId1" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_CmFile2">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId2" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_CmFile3">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId3" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsManualHistory_CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsManualHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmLocation__3DE82FB7">
- <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
- <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmZoneTempHumiSet_CmFloor">
- <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
- <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="CmZoneTempHumiSet">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmPosition">
- <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPosition">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PositionId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PositionId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserToLicense__CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmUserToLicense">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawingHistory__CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsDrawingHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UpdatedUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialOrder__CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="OrderUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RequestUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ApprovalUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="StoredUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ApprovalUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="OrderUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RequestUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RejectUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkerUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConfirmedUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmUserGroup">
- <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUserGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUserLoginHistory_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmUserLoginHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstructionEstimation_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsConstructionEstimation">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EstimateUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsManualHistory_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsManualHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UpdatedUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserGroupPermission__CmUserGroup">
- <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUserGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Principal>
- <Dependent Role="CmUserGroupPermission">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserToLicense__FmsLicense">
- <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
- <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsLicense">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LicenseId" />
- </Principal>
- <Dependent Role="CmUserToLicense">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LicenseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmZoneTempHumiSet_CmZone">
- <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
- <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Principal>
- <Dependent Role="CmZoneTempHumiSet">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_FmsAccidentCodeType">
- <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsAccidentCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentTypeId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
- <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsConstructionCodeProgress">
- <PropertyRef Name="ProgressId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="ProgressId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
- <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsConstructionCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionTypeId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
- <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Principal>
- <Dependent Role="FmsConstructionEstimation">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawing__6E565CE8">
- <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
- <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsDrawingCodeGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingGroupId" />
- </Principal>
- <Dependent Role="FmsDrawing">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingGroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawing__6F4A8121">
- <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
- <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsDrawingCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingTypeId" />
- </Principal>
- <Dependent Role="FmsDrawing">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawingHistor__7132C993">
- <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1" />
- <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsDrawing">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- </Principal>
- <Dependent Role="FmsDrawingHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
- <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
- <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipmentCodeStateType">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Principal>
- <Dependent Role="FmsEquipmentHistory">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
- <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
- <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeCycleUnit">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Principal>
- <Dependent Role="FmsFacilityCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
- <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeType">
- <PropertyRef Name="WorkTypeId" />
- </Principal>
- <Dependent Role="FmsFacilityCheckItem">
- <PropertyRef Name="WorkTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
- <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
- <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsFacilityCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="CheckItemId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="CheckItemId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
- <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
- <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsFacilityCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityClassId" />
- </Principal>
- <Dependent Role="FmsFacilityCodeClass1">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ParentFacilityClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsManual_FmsManualType">
- <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
- <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsManualType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualTypeId" />
- </Principal>
- <Dependent Role="FmsManual">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsManualHistory_FmsManual">
- <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
- <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsManual">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- </Principal>
- <Dependent Role="FmsManualHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
- <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeClass1">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ParentMaterialClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
- <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeProgress">
- <PropertyRef Name="ProgressId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="ProgressId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
- <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodePurchaseType">
- <PropertyRef Name="PurchaseTypeId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="PurchaseTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
- <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialTradeCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrderMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequestMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
- <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeCauseClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CauseClassId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CauseClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
- <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeEmergency">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EmergencyId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EmergencyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
- <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeProgress">
- <PropertyRef Name="WorkProgressId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="WorkProgressId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeType">
- <PropertyRef Name="WorkTypeId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="WorkTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkOrderToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__FmsWorkOrder">
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkRequestToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__FmsWorkRequest">
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
- <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
- <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultLaw">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
- <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResultCheckItem">
- <PropertyRef Name="CheckItemId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItemMaterial">
- <PropertyRef Name="CheckItemId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="iBemsEntities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" />
- <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" />
- <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" />
- <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" />
- <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" />
- <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" />
- <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" />
- <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" />
- <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" />
- <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" />
- <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" />
- <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" />
- <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" />
- <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" />
- <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" />
- <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" />
- <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" />
- <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" />
- <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" />
- <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" />
- <EntitySet Name="CmCompany" EntityType="Self.CmCompany" />
- <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" />
- <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" />
- <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" />
- <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" />
- <EntitySet Name="CmFile" EntityType="Self.CmFile" />
- <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" />
- <EntitySet Name="CmFloor" EntityType="Self.CmFloor" />
- <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" />
- <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" />
- <EntitySet Name="CmPosition" EntityType="Self.CmPosition" />
- <EntitySet Name="CmUser" EntityType="Self.CmUser" />
- <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" />
- <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" />
- <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" />
- <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" />
- <EntitySet Name="CmZone" EntityType="Self.CmZone" />
- <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" />
- <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" />
- <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" />
- <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" />
- <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" />
- <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" />
- <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" />
- <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" />
- <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" />
- <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" />
- <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" />
- <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" />
- <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" />
- <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" />
- <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" />
- <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" />
- <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" />
- <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" />
- <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" />
- <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" />
- <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" />
- <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" />
- <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" />
- <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" />
- <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" />
- <EntitySet Name="FmsManual" EntityType="Self.FmsManual" />
- <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" />
- <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" />
- <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" />
- <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" />
- <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" />
- <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" />
- <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" />
- <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" />
- <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" />
- <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" />
- <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" />
- <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" />
- <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" />
- <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" />
- <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" />
- <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" />
- <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" />
- <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" />
- <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" />
- <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" />
- <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" />
- <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" />
- <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" />
- <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" />
- <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" />
- <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" />
- <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" />
- <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" />
- <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" />
- <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" />
- <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" />
- <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" />
- <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" />
- <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" />
- <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" />
- <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
- <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
- <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
- <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
- <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
- <End Role="BemsFormula" EntitySet="BemsFormula" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
- <End Role="BemsFormula" EntitySet="BemsFormula" />
- <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFormulaParameter__BemsMonitoringPoint" Association="Self.FK__BemsFormulaParameter__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
- <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
- <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
- <End Role="BemsServiceType" EntitySet="BemsServiceType" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
- <End Role="CmZone" EntitySet="CmZone" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
- <End Role="BemsServiceType" EntitySet="BemsServiceType" />
- <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
- </AssociationSet>
- <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
- </AssociationSet>
- <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
- </AssociationSet>
- <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmFloor" EntitySet="CmFloor" />
- </AssociationSet>
- <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmZone" EntitySet="CmZone" />
- </AssociationSet>
- <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsLicense" EntitySet="FmsLicense" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
- <End Role="CmCompanyType" EntitySet="CmCompanyType" />
- <End Role="CmCompany" EntitySet="CmCompany" />
- </AssociationSet>
- <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
- <End Role="CmCompany" EntitySet="CmCompany" />
- <End Role="CmDepartment" EntitySet="CmDepartment" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
- <End Role="CmCompany" EntitySet="CmCompany" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
- <End Role="CmDepartment" EntitySet="CmDepartment" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
- <End Role="CmDepartment" EntitySet="CmDepartment" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
- <End Role="CmFileCategory" EntitySet="CmFileCategory" />
- <End Role="CmFile" EntitySet="CmFile" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="CmZone" EntitySet="CmZone" />
- </AssociationSet>
- <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
- <End Role="CmPosition" EntitySet="CmPosition" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
- <End Role="CmUserGroup" EntitySet="CmUserGroup" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
- <End Role="CmUserGroup" EntitySet="CmUserGroup" />
- <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
- <End Role="FmsLicense" EntitySet="FmsLicense" />
- <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
- </AssociationSet>
- <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
- <End Role="CmZone" EntitySet="CmZone" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
- <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
- <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
- <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
- <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
- <End Role="FmsDrawing" EntitySet="FmsDrawing" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
- <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
- <End Role="FmsDrawing" EntitySet="FmsDrawing" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
- <End Role="FmsDrawing" EntitySet="FmsDrawing" />
- <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
- <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
- <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
- <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
- <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
- <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
- <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
- <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
- <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
- <End Role="FmsManualType" EntitySet="FmsManualType" />
- <End Role="FmsManual" EntitySet="FmsManual" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
- <End Role="FmsManual" EntitySet="FmsManual" />
- <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
- <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
- <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
- <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
- <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
- <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
- <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
- </AssociationSet>
- <EntitySet Name="FmsDailyCheckReport" EntityType="iBemsModel.FmsDailyCheckReport" />
- <EntitySet Name="FmsFacilityOperationReport" EntityType="iBemsModel.FmsFacilityOperationReport" />
- <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="iBemsModel.FK_FmsDailyCheckReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="iBemsModel.FK_FmsFacilityOperationReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
- </AssociationSet>
- <EntitySet Name="FmsBudgetDetail" EntityType="iBemsModel.FmsBudgetDetail" />
- <EntitySet Name="FmsBudgetDetailExecution" EntityType="iBemsModel.FmsBudgetDetailExecution" />
- <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudget">
- <End Role="FmsBudget" EntitySet="FmsBudget" />
- <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass">
- <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
- <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
- <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
- <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
- </AssociationSet>
- <EntitySet Name="FmsMonthlyReport" EntityType="iBemsModel.FmsMonthlyReport" />
- <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="iBemsModel.FK_FmsMonthlyReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
- </AssociationSet>
- <EntitySet Name="FmsInvestmentCost" EntityType="iBemsModel.FmsInvestmentCost" />
- <EntitySet Name="CmHolidayWeekend" EntityType="iBemsModel.CmHolidayWeekend" />
- <AssociationSet Name="FK_FmsAccident_CmCompany" Association="iBemsModel.FK_FmsAccident_CmCompany">
- <End Role="CmCompany" EntitySet="CmCompany" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <EntitySet Name="FmsMaterial" EntityType="iBemsModel.FmsMaterial" />
- <EntitySet Name="FmsMaterialRelease" EntityType="iBemsModel.FmsMaterialRelease" />
- <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="iBemsModel.FK_FmsMaterial_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="iBemsModel.FK_FmsMaterialRelease_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_CmFile" Association="iBemsModel.FK_FmsMaterial_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="iBemsModel.FK_FmsMaterialRelease_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="iBemsModel.FK_FmsMaterialRelease_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation">
- <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType">
- <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany">
- <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="iBemsModel.FK_FmsMaterialStored_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
- <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
- <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
- </AssociationSet>
- <EntitySet Name="CmPatrolType" EntityType="iBemsModel.CmPatrolType" />
- <EntitySet Name="CmPatrolGroup" EntityType="iBemsModel.CmPatrolGroup" />
- <EntitySet Name="CmPatrolGroupUser" EntityType="iBemsModel.CmPatrolGroupUser" />
- <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup">
- <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
- <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="iBemsModel.FK_CmPatrolGroupUser_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
- </AssociationSet>
- <EntitySet Name="CmPatrolPos" EntityType="iBemsModel.CmPatrolPos" />
- <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="iBemsModel.FK_CmPatrolPos_CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="iBemsModel.FK_CmPatrolPos_CmFloor">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- </AssociationSet>
- <EntitySet Name="CmPatrolCourse" EntityType="iBemsModel.CmPatrolCourse" />
- <EntitySet Name="CmPatrolCoursePos" EntityType="iBemsModel.CmPatrolCoursePos" />
- <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse">
- <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
- <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos">
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
- </AssociationSet>
- <EntitySet Name="CmPatrolPlan" EntityType="iBemsModel.CmPatrolPlan" />
- <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse">
- <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup">
- <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- </AssociationSet>
- <EntitySet Name="CmPatrolHistoryPos" EntityType="iBemsModel.CmPatrolHistoryPos" />
- <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos">
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType">
- <End Role="CmPatrolType" EntitySet="CmPatrolType" />
- <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
- </AssociationSet>
- <EntitySet Name="BemsPeakInfo" EntityType="iBemsModel.BemsPeakInfo" />
- <EntitySet Name="BemsPeakHistory" EntityType="iBemsModel.BemsPeakHistory" />
- <EntitySet Name="CmPatrolSchedule" EntityType="iBemsModel.CmPatrolSchedule" />
- <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan">
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
- </AssociationSet>
- <EntitySet Name="BemsNoticePriceBase" EntityType="iBemsModel.BemsNoticePriceBase" />
- <EntitySet Name="BemsNoticePriceContractType" EntityType="iBemsModel.BemsNoticePriceContractType" />
- <EntitySet Name="BemsNoticePriceDetail" EntityType="iBemsModel.BemsNoticePriceDetail" />
- <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
- <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
- <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
- <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
- <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
- </AssociationSet>
- <EntitySet Name="BemsPeakFacility" EntityType="iBemsModel.BemsPeakFacility" />
- <EntitySet Name="CmSite" EntityType="iBemsModel.CmSite" />
- <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="iBemsModel.FK_BemsPeakHIstory_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="iBemsModel.FK_BemsPeakInfo_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
- </AssociationSet>
- <AssociationSet Name="FK__CmBuildin__SiteI__3BFFE745" Association="iBemsModel.FK__CmBuildin__SiteI__3BFFE745">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- </AssociationSet>
- <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="iBemsModel.FK__CmCompany__SiteI__336AA144">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmCompany" EntitySet="CmCompany" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="iBemsModel.FK_CmFacilityTempSet_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="iBemsModel.FK__CmFile__SiteId__2759D01A">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmFile" EntitySet="CmFile" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHoliday" EntitySet="CmHoliday" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="iBemsModel.FK__CmHoliday__SiteI__65AC084E">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHoliday" EntitySet="CmHoliday" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="iBemsModel.FK__CmHoliday__SiteI__10766AC2">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="iBemsModel.FK__CmHoliday__SiteI__66A02C87">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="iBemsModel.FK__CmHoliday__SiteI__0D99FE17">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="iBemsModel.FK_CmPatrolCourse_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="iBemsModel.FK_CmPatrolCoursePos_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="iBemsModel.FK_CmPatrolGroup_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="iBemsModel.FK_CmPatrolHistoryPos_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="iBemsModel.FK_CmPatrolPlan_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="iBemsModel.FK_CmPatrolPos_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="iBemsModel.FK_CmPatrolSchedule_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolType_CmSite" Association="iBemsModel.FK_CmPatrolType_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolType" EntitySet="CmPatrolType" />
- </AssociationSet>
- <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="iBemsModel.FK__CmPositio__SiteI__6A70BD6B">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPosition" EntitySet="CmPosition" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="iBemsModel.FK__CmUserPos__SiteI__44952D46">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPosition" EntitySet="CmPosition" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="iBemsModel.FK__CmUserGro__SiteI__53D770D6">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmUserGroup" EntitySet="CmUserGroup" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawing" EntitySet="FmsDrawing" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="iBemsModel.FK__FmsDrawin__SiteI__6F357288">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="iBemsModel.FK__FmsDrawin__SiteI__702996C1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="iBemsModel.FK__FmsFacilityCodeClass__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsLicense__CmSite" Association="iBemsModel.FK__FmsLicense__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsLicense" EntitySet="FmsLicense" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="iBemsModel.FK__FmsMaterialCarriedForward__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="iBemsModel.FK__FmsMaterialCodeClass__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="iBemsModel.FK__FmsMaterialCodeLocation__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="iBemsModel.FK__FmsMaterialCodeType__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="iBemsModel.FK__FmsMaterialOrder__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="iBemsModel.FK__FmsMaterialStored__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="iBemsModel.FK__FmsMaterialTradeCompany__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="iBemsModel.FK__FmsMaterialWarehouse__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="iBemsModel.FK__FmsWorkCodeEmergency__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="iBemsModel.FK__FmsWorkOrder__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="iBemsModel.FK__FmsWorkRequest__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="iBemsModel.FK_CmZoneTempHumiSet_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_CmSite" Association="iBemsModel.FK_FmsMaterial_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="iBemsModel.FK_FmsMaterialRelease_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <EntitySet Name="FmsReport" EntityType="iBemsModel.FmsReport" />
- <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="iBemsModel.FK_FmsReport_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmFile" Association="iBemsModel.FK_FmsReport_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmSite" Association="iBemsModel.FK_FmsReport_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmUser" Association="iBemsModel.FK_FmsReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmUser1" Association="iBemsModel.FK_FmsReport_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmUser2" Association="iBemsModel.FK_FmsReport_CmUser2">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="iBemsModel.CmServiceEnergyCalcMonth" />
- <EntitySet Name="CmServiceEnergyCalcDay" EntityType="iBemsModel.CmServiceEnergyCalcDay" />
- <EntitySet Name="CmPatrolHistory" EntityType="iBemsModel.CmPatrolHistory" />
- <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule">
- <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
- <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolType">
- <End Role="CmPatrolType" EntitySet="CmPatrolType" />
- <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="iBemsModel.FK_CmPatrolHistory_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
- </AssociationSet>
- <EntitySet Name="CmMenu" EntityType="iBemsModel.CmMenu" />
- <EntitySet Name="BemsChartInfo" EntityType="iBemsModel.BemsChartInfo" />
- <EntitySet Name="BemsReportFormat" EntityType="iBemsModel.BemsReportFormat" />
- <EntitySet Name="FmsWorkSchedule" EntityType="iBemsModel.FmsWorkSchedule" />
- <AssociationSet Name="FK_CmMenu_CmSite" Association="iBemsModel.FK_CmMenu_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmMenu" EntitySet="CmMenu" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="iBemsModel.FK_BemsChartInfo_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="iBemsModel.FK__FmsWorkSchedule__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="iBemsModel.FK__FmsWorkSchedule__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
- <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
- <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule">
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile1" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="iBemsModel.FK_BemsChartInfo_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
- </AssociationSet>
- <EntitySet Name="BemsPeopleIncrease" EntityType="iBemsModel.BemsPeopleIncrease" />
- <EntitySet Name="BemsPriceCode" EntityType="iBemsModel.BemsPriceCode" />
- <EntitySet Name="BemsPriceFormula" EntityType="iBemsModel.BemsPriceFormula" />
- <EntitySet Name="BemsPriceMeta" EntityType="iBemsModel.BemsPriceMeta" />
- <EntitySet Name="BemsPriceType" EntityType="iBemsModel.BemsPriceType" />
- <EntitySet Name="BemsRentalRate" EntityType="iBemsModel.BemsRentalRate" />
- <EntitySet Name="BemsSitePrice" EntityType="iBemsModel.BemsSitePrice" />
- <EntitySet Name="BemsSitePriceHistory" EntityType="iBemsModel.BemsSitePriceHistory" />
- <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="iBemsModel.FK_BemsPriceFormula_BemsFormula">
- <End Role="BemsFormula" EntitySet="BemsFormula" />
- <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="iBemsModel.FK_BemsPeopleIncrease_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="iBemsModel.FK_BemsSitePrice_BemsPriceCode">
- <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode">
- <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="iBemsModel.FK_BemsPriceFormula_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="iBemsModel.FK_BemsPriceMeta_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="iBemsModel.FK_BemsRentalRate_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="iBemsModel.FK_BemsSitePrice_CmSite1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="iBemsModel.FK_BemsSitePriceHistory_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="iBemsModel.FK_BemsSitePrice_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <EntitySet Name="BemsMonitoringPointConfig" EntityType="iBemsModel.BemsMonitoringPointConfig" />
- <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
- </AssociationSet>
- <EntitySet Name="BemsAlarmSetting" EntityType="iBemsModel.BemsAlarmSetting" />
- <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="iBemsModel.FK_BemsAlarmSetting_CmSite1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- </AssociationSet>
- <EntitySet Name="BemsAlarmLog" EntityType="iBemsModel.BemsAlarmLog" />
- <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting">
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
- </AssociationSet>
- <EntitySet Name="BemsAlarmGroup" EntityType="iBemsModel.BemsAlarmGroup" />
- <EntitySet Name="BemsAlarmGroupUser" EntityType="iBemsModel.BemsAlarmGroupUser" />
- <EntitySet Name="BemsEnergyCost" EntityType="iBemsModel.BemsEnergyCost" />
- <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="iBemsModel.BemsEnergyConfigPercentMonth" />
- <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="iBemsModel.BemsEnergyConfigPercentWeek" />
- <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
- </AssociationSet>
- <EntitySet Name="BemsEnergyDaily" EntityType="iBemsModel.BemsEnergyDaily" />
- <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="iBemsModel.FK__BemsEnergyDaily__BemsServiceType">
- <End Role="BemsServiceType" EntitySet="BemsServiceType" />
- <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="iBemsModel.FK__BemsEnergyDaily__CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
- </AssociationSet>
- <EntitySet Name="BemsEnergyDailyRegression" EntityType="iBemsModel.BemsEnergyDailyRegression" />
- <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="iBemsModel.FK_BemsEnergyDailyRegression_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
- </AssociationSet>
- <EntitySet Name="WeatherDongNaeForecast" EntityType="iBemsModel.WeatherDongNaeForecast" />
- <EntitySet Name="FmsEquipmentRentInfo" EntityType="iBemsModel.FmsEquipmentRentInfo" />
- <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
- <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
- </AssociationSet>
- <EntitySet Name="BemsControlAHUTempConfig" EntityType="iBemsModel.BemsControlAHUTempConfig" />
- <EntitySet Name="BemsFuelType" EntityType="iBemsModel.BemsFuelType" />
- <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="iBemsModel.FK__BemsEnergyDaily__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="iBemsModel.FK__BemsFactorCo2__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="iBemsModel.FK__BemsFactorToe__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="iBemsModel.FK_BemsPriceCode_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="iBemsModel.FK_BemsPriceType_BemsFuelType1">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="iBemsModel.FK_BemsSitePrice_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <EntitySet Name="CmFacility" EntityType="iBemsModel.CmFacility" />
- <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="iBemsModel.FK_BemsAlarmSetting_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="iBemsModel.FK_BemsEnergyCost_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__BemsFacilityType" Association="iBemsModel.FK__CmFacility__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="iBemsModel.FK_BemsFormulaParameter_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacility_BemsFuelType" Association="iBemsModel.FK_CmFacility_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="iBemsModel.FK_BemsMonitoringPoint_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacility_BemsNoticePriceContractType" Association="iBemsModel.FK_CmFacility_BemsNoticePriceContractType">
- <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="iBemsModel.FK_BemsPeakFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__CmBuilding" Association="iBemsModel.FK__CmFacility__CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__74444068" Association="iBemsModel.FK__CmFacility__74444068">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__753864A1" Association="iBemsModel.FK__CmFacility__753864A1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__762C88DA" Association="iBemsModel.FK__CmFacility__762C88DA">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__CmFacility" Association="iBemsModel.FK__CmFacility__CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="CmFacility1" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__CmFile" Association="iBemsModel.FK__CmFacility__CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__CmZone" Association="iBemsModel.FK__CmFacility__CmZone">
- <End Role="CmZone" EntitySet="CmZone" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsFirst" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst">
- <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsSecond" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond">
- <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsThird" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird">
- <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="iBemsModel.FK__CmFacilityFile__7720AD13">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="iBemsModel.FK__CmFacilityManual__79FD19BE">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="iBemsModel.FK__FmsFacilityOpera__725BF7F6">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="iBemsModel.FK__FmsWorkResultToFacility__CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacility_CmUser" Association="iBemsModel.FK_CmFacility_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacility_CmUser1" Association="iBemsModel.FK_CmFacility_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="iBemsModel.FK_CmFacilityTempSet_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
- </AssociationSet>
- <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="iBemsModel.BemsMonitoringPointHistory15minRawData" />
- <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
- </AssociationSet>
- <EntitySet Name="FmsDailyReport" EntityType="iBemsModel.FmsDailyReport" />
- <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="iBemsModel.FK_FmsDailyReport_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="iBemsModel.FK_FmsDailyReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
- </AssociationSet>
- <EntitySet Name="BemsPeakHistoryDaily" EntityType="iBemsModel.BemsPeakHistoryDaily" />
- <EntitySet Name="FmsEquipment" EntityType="iBemsModel.FmsEquipment" />
- <AssociationSet Name="FK_FmsEquipment_CmUser" Association="iBemsModel.FK_FmsEquipment_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType">
- <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment">
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
- </AssociationSet>
- <EntitySet Name="CmAlarmAdmin" EntityType="iBemsModel.CmAlarmAdmin" />
- <EntitySet Name="BemsFloorStatus" EntityType="iBemsModel.BemsFloorStatus" />
- <EntitySet Name="BemsReportHistory" EntityType="iBemsModel.BemsReportHistory" />
- <EntitySet Name="CmPartner" EntityType="iBemsModel.CmPartner" />
- <EntitySet Name="CmPartnerType" EntityType="iBemsModel.CmPartnerType" />
- <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="iBemsModel.FK_CmPartnerType_CmPartner">
- <End Role="CmPartnerType" EntitySet="CmPartnerType" />
- <End Role="CmPartner" EntitySet="CmPartner" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="iBemsModel.FK_FmsConstruction_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="iBemsModel.FK_FmsWorkRequest_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="iBemsModel.FK_FmsWorkSchedule_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <EntitySet Name="FmsContract" EntityType="iBemsModel.FmsContract" />
- <AssociationSet Name="FK_FmsContract_CmPartner" Association="iBemsModel.FK_FmsContract_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="iBemsModel.FK_FmsContract_CmPartnerType">
- <End Role="CmPartnerType" EntitySet="CmPartnerType" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="iBemsModel.FK_FmsContract_FmsContractClass">
- <End Role="FmsContractClass" EntitySet="FmsContractClass" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="iBemsModel.FK_FmsContract_FmsContractMethod">
- <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsContractType" Association="iBemsModel.FK_FmsContract_FmsContractType">
- <End Role="FmsContractType" EntitySet="FmsContractType" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="iBemsModel.FK_FmsContract_FmsPaymentType">
- <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingDayAhead" />
- <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingHourAhead" />
- <EntitySet Name="BemsFloorPlan" EntityType="iBemsModel.BemsFloorPlan" />
- <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="iBemsModel.BemsMonitoringPointWeatherForecasted" />
- <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="iBemsModel.BemsIceThermalStorageSimulation" />
- <EntitySet Name="BemsConfigData" EntityType="iBemsModel.BemsConfigData" />
- </EntityContainer>
- <EntityType Name="FmsDailyCheckReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DailyCheckReportId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="DailyCheckReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="FmsDailyCheckReport" ToRole="CmUser" />
- </EntityType>
- <EntityType Name="FmsFacilityOperationReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityOperationReportId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityOperationReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="FmsFacilityOperationReport" ToRole="CmUser" />
- </EntityType>
- <Association Name="FK_FmsDailyCheckReport_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsDailyCheckReport" Role="FmsDailyCheckReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsDailyCheckReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsFacilityOperationReport_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsFacilityOperationReport" Role="FmsFacilityOperationReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsFacilityOperationReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsBudgetDetail">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="BudgetClassId" />
- <PropertyRef Name="ParentBudgetClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Year" Type="Int32" Nullable="false" />
- <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
- <Property Name="BudgetSeq" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="true" />
- <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
- <Property Name="Depth" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
- <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="YearlyBudget" Type="Double" Nullable="false" />
- <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
- <NavigationProperty Name="FmsBudget" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudgetDetail" ToRole="FmsBudget" />
- <NavigationProperty Name="FmsBudgetCodeClass" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetDetail" ToRole="FmsBudgetCodeClass" />
- <NavigationProperty Name="FmsBudgetDetailExecution" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetail" ToRole="FmsBudgetDetailExecution" />
- <Property Name="RootBudgetClassId" Type="Int32" />
- </EntityType>
- <EntityType Name="FmsBudgetDetailExecution">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="BudgetClassId" />
- <PropertyRef Name="ParentBudgetClassId" />
- <PropertyRef Name="Month" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Year" Type="Int32" Nullable="false" />
- <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
- <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
- <Property Name="MonthlyExecution" Type="Double" Nullable="false" />
- <Property Name="Month" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetailExecution" ToRole="FmsBudgetDetail" />
- <Property Name="YearlyBudget" Type="Double" Nullable="false" />
- <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
- <Property Name="YearlyExecution" Type="Double" Nullable="false" />
- <Property Name="RootBudgetClassId" Type="Int32" />
- </EntityType>
- <Association Name="FK_FmsBudgetDetail_FmsBudget">
- <End Type="iBemsModel.FmsBudget" Role="FmsBudget" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsBudget">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- </Principal>
- <Dependent Role="FmsBudgetDetail">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
- <End Type="iBemsModel.FmsBudgetCodeClass" Role="FmsBudgetCodeClass" Multiplicity="1" />
- <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsBudgetCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BudgetClassId" />
- </Principal>
- <Dependent Role="FmsBudgetDetail">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BudgetClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
- <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="1" />
- <End Type="iBemsModel.FmsBudgetDetailExecution" Role="FmsBudgetDetailExecution" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsBudgetDetail">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="BudgetClassId" />
- <PropertyRef Name="ParentBudgetClassId" />
- </Principal>
- <Dependent Role="FmsBudgetDetailExecution">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="BudgetClassId" />
- <PropertyRef Name="ParentBudgetClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsMonthlyReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MonthlyReportId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="MonthlyReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="FmsMonthlyReport" ToRole="CmUser" />
- </EntityType>
- <Association Name="FK_FmsMonthlyReport_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsMonthlyReport" Role="FmsMonthlyReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMonthlyReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsInvestmentCost">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InsvestmentCostId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="InsvestmentCostId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="InsvestmentCost" Type="Double" Nullable="false" />
- </EntityType>
- <EntityType Name="CmHolidayWeekend">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Saturday" Type="Boolean" Nullable="false" />
- <Property Name="Sunday" Type="Boolean" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmHolidayWeekend" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_FmsAccident_CmCompany">
- <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsAccident" Role="FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsMaterial">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="MaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="MaterialCode" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
- <Property Name="FirstClassId" Type="Int32" />
- <Property Name="SecondClassId" Type="Int32" />
- <Property Name="ThirdClassId" Type="Int32" />
- <Property Name="LocationId" Type="Int32" />
- <Property Name="MaterialTypeId" Type="Int32" />
- <Property Name="WarehouseId" Type="Int32" />
- <Property Name="TradeCompanyId" Type="Int32" />
- <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
- <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
- <Property Name="DurableYears" Type="Int16" />
- <Property Name="ReasonableStockCount" Type="Int16" />
- <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="FinalPrice" Type="Int32" />
- <Property Name="ImageFileId" Type="Int32" />
- <Property Name="Note" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
- <Property Name="IsDiscontinued" Type="Boolean" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <Property Name="FinalStockCount" Type="Int32" Nullable="false" />
- <Property Name="FinalTotalStockAmount" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="FmsMaterial" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="FmsMaterial" ToRole="CmFile" />
- <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
- <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
- <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
- <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterial" ToRole="FmsMaterialCodeLocation" />
- <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterial" ToRole="FmsMaterialCodeType" />
- <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterial" ToRole="FmsMaterialTradeCompany" />
- <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterial" ToRole="FmsMaterialWarehouse" />
- <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseOrderMaterial" />
- <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseRequestMaterial" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialRelease" />
- <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsWorkResultCheckItemMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="FmsMaterial" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialRelease">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialReleaseId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="ReleaseDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="MaterialReleaseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" />
- <Property Name="WarehouseId" Type="Int32" />
- <Property Name="MaterialId" Type="Int32" />
- <Property Name="MaterialCount" Type="Int32" />
- <Property Name="ReleaseTotalCost" Type="Int32" />
- <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
- <Property Name="AdjustmentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
- <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="FmsMaterialRelease" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="FmsMaterialRelease" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="FmsMaterialRelease" ToRole="CmUser" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterialRelease" ToRole="FmsMaterial" />
- <NavigationProperty Name="FmsMaterialCodeAdjustmentType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeAdjustmentType" />
- <NavigationProperty Name="FmsMaterialCodeReleaseType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeReleaseType" />
- <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsMaterialRelease" ToRole="FmsWorkResult" />
- <Property Name="StockCountByPoint" Type="Int32" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="FmsMaterialRelease" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_FmsMaterial_CmBusinessField">
- <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_CmBusinessField">
- <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_CmFile">
- <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ImageFileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConfirmedUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_CmUser1">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AdjustmentUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
- <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FirstClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
- <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="SecondClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
- <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ThirdClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
- <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeLocation">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LocationId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LocationId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
- <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialTypeId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
- <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialTradeCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
- <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialPurchaseOrderMaterial" Role="FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrderMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialPurchaseRequestMaterial" Role="FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequestMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_FmsMaterial">
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialStored_FmsMaterial">
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItemMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
- <End Type="iBemsModel.FmsMaterialCodeAdjustmentType" Role="FmsMaterialCodeAdjustmentType" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeAdjustmentType">
- <PropertyRef Name="AdjustmentTypeId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="AdjustmentTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
- <End Type="iBemsModel.FmsMaterialCodeReleaseType" Role="FmsMaterialCodeReleaseType" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeReleaseType">
- <PropertyRef Name="ReleaseTypeId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="ReleaseTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
- <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
- <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItemMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmPatrolType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistoryPos" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmPatrolType" ToRole="CmSite" />
- <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistory" />
- </EntityType>
- <EntityType Name="CmPatrolGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolGroupUser" />
- <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolPlan" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmPatrolGroup" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmPatrolGroupUser">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- <PropertyRef Name="UserId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolGroupId" Type="Int32" Nullable="false" />
- <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroupUser" ToRole="CmPatrolGroup" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmPatrolGroupUser" ToRole="CmUser" />
- </EntityType>
- <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
- <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- </Principal>
- <Dependent Role="CmPatrolGroupUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolGroupUser_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmPatrolGroupUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmPatrolPos">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" />
- <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="TagId" Type="String" MaxLength="32" FixedLength="false" Unicode="true" />
- <Property Name="PosDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmPatrolPos" ToRole="CmBuilding" />
- <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmPatrolPos" ToRole="CmFloor" />
- <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolCoursePos" />
- <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolHistoryPos" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmPatrolPos" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_CmPatrolPos_CmBuilding">
- <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPos_CmFloor">
- <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmPatrolCourse">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolCourseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolCoursePos" />
- <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolPlan" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmPatrolCourse" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmPatrolCoursePos">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- <PropertyRef Name="PosId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolCourseId" Type="Int32" Nullable="false" />
- <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="None" />
- <Property Name="CourseOrder" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCoursePos" ToRole="CmPatrolCourse" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolCoursePos" ToRole="CmPatrolPos" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmPatrolCoursePos" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
- <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolCourse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- </Principal>
- <Dependent Role="CmPatrolCoursePos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolCoursePos_CmPatrolPos">
- <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Principal>
- <Dependent Role="CmPatrolCoursePos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmPatrolPlan">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolPlanId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolPlanId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="GroupId" Type="Int32" Nullable="false" />
- <Property Name="CourseId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
- <Property Name="PlanDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
- <Property Name="term" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolPlan" ToRole="CmPatrolCourse" />
- <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolPlan" ToRole="CmPatrolGroup" />
- <Property Name="inDate" Type="DateTime" Precision="3" />
- <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolPlan" ToRole="CmPatrolSchedule" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmPatrolPlan" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
- <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolCourse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- </Principal>
- <Dependent Role="CmPatrolPlan">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CourseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
- <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- </Principal>
- <Dependent Role="CmPatrolPlan">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="GroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmPatrolHistoryPos">
- <Key>
- <PropertyRef Name="mId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" />
- <Property Name="PosId" Type="Int32" Nullable="false" />
- <Property Name="PatrolTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="term" Type="Int32" />
- <Property Name="resultType" Type="Int32" Nullable="false" />
- <Property Name="mId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolPos" />
- <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolType" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmPatrolHistoryPos" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
- <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Principal>
- <Dependent Role="CmPatrolHistoryPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
- <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolTypeId" />
- </Principal>
- <Dependent Role="CmPatrolHistoryPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="resultType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsPeakInfo">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="MaxPeakValue" Type="Double" Nullable="false" />
- <Property Name="MinDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="MinPeakValue" Type="Double" Nullable="false" />
- <Property Name="todayMaxPeakValue" Type="Double" Nullable="false" />
- <Property Name="todayMinPeakValue" Type="Double" Nullable="false" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="BemsPeakInfo" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="BemsPeakHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CurrentValue" Type="Double" Nullable="false" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="BemsPeakHistory" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmPatrolSchedule">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ScheduleId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="PlanId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
- <Property Name="ScheduleDesc" Type="String" MaxLength="128" FixedLength="false" Unicode="false" />
- <Property Name="inDate" Type="DateTime" Precision="3" />
- <Property Name="patrolDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolSchedule" ToRole="CmPatrolPlan" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmPatrolSchedule" ToRole="CmSite" />
- <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolSchedule" ToRole="CmPatrolHistory" />
- </EntityType>
- <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
- <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolPlan">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolPlanId" />
- </Principal>
- <Dependent Role="CmPatrolSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PlanId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsNoticePriceBase">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ApplyDate" />
- <PropertyRef Name="ContractType" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="ContractType" Type="Int16" Nullable="false" />
- <Property Name="PrimaryPrice" Type="Int32" />
- <Property Name="SecondaryPrice" Type="Int32" />
- <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceContractType" />
- <NavigationProperty Name="BemsNoticePriceDetail" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceDetail" />
- </EntityType>
- <EntityType Name="BemsNoticePriceContractType">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Key>
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="ContractType" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="BemsNoticePriceBase" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsNoticePriceContractType" ToRole="BemsFuelType" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="BemsNoticePriceDetail">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ApplyDate" />
- <PropertyRef Name="ContractType" />
- <PropertyRef Name="DataId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="ContractType" Type="Int16" Nullable="false" />
- <Property Name="DataId" Type="Int16" Nullable="false" />
- <Property Name="P01" Type="Double" />
- <Property Name="P02" Type="Double" />
- <Property Name="P03" Type="Double" />
- <Property Name="P04" Type="Double" />
- <Property Name="P05" Type="Double" />
- <Property Name="P06" Type="Double" />
- <Property Name="P07" Type="Double" />
- <Property Name="P08" Type="Double" />
- <Property Name="P09" Type="Double" />
- <Property Name="P10" Type="Double" />
- <Property Name="P11" Type="Double" />
- <Property Name="P12" Type="Double" />
- <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceDetail" ToRole="BemsNoticePriceBase" />
- </EntityType>
- <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
- <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="1" />
- <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsNoticePriceContractType">
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Principal>
- <Dependent Role="BemsNoticePriceBase">
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
- <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="1" />
- <End Type="iBemsModel.BemsNoticePriceDetail" Role="BemsNoticePriceDetail" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsNoticePriceBase">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ApplyDate" />
- <PropertyRef Name="ContractType" />
- </Principal>
- <Dependent Role="BemsNoticePriceDetail">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ApplyDate" />
- <PropertyRef Name="ContractType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsPeakFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaxDateTime" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="BemsPeakFacility" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmSite">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
- <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
- <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="PhoneNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="URL" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="SortOrderNo" Type="Int32" />
- <Property Name="InsertedDate" Type="DateTime" Precision="3" />
- <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
- <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="IsControlSchedule" Type="Boolean" />
- <Property Name="ScheduleCheckHour" Type="Int32" />
- <Property Name="MaxPeak" Type="Double" />
- <Property Name="lat" Type="Double" />
- <Property Name="lng" Type="Double" />
- <NavigationProperty Name="BemsPeakHistory" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="CmSite" ToRole="BemsPeakHistory" />
- <NavigationProperty Name="BemsPeakInfo" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="CmSite" ToRole="BemsPeakInfo" />
- <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmSite" ToRole="CmBuilding" />
- <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmSite" ToRole="CmCompany" />
- <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmSite" ToRole="CmFacilityTempSet" />
- <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmSite" ToRole="CmFile" />
- <NavigationProperty Name="CmHoliday" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmSite" ToRole="CmHoliday" />
- <NavigationProperty Name="CmHoliday1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmSite" ToRole="CmHoliday" />
- <NavigationProperty Name="CmHolidayCustom" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmSite" ToRole="CmHolidayCustom" />
- <NavigationProperty Name="CmHolidayCustom1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmSite" ToRole="CmHolidayCustom" />
- <NavigationProperty Name="CmHolidayWeekend" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmSite" ToRole="CmHolidayWeekend" />
- <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmSite" ToRole="CmPatrolCourse" />
- <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmSite" ToRole="CmPatrolCoursePos" />
- <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmSite" ToRole="CmPatrolGroup" />
- <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmSite" ToRole="CmPatrolHistoryPos" />
- <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmSite" ToRole="CmPatrolPlan" />
- <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmSite" ToRole="CmPatrolPos" />
- <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmSite" ToRole="CmPatrolSchedule" />
- <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmSite" ToRole="CmPatrolType" />
- <NavigationProperty Name="CmPosition" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmSite" ToRole="CmPosition" />
- <NavigationProperty Name="CmPosition1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmSite" ToRole="CmPosition" />
- <NavigationProperty Name="CmUserGroup" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmSite" ToRole="CmUserGroup" />
- <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
- <NavigationProperty Name="FmsDrawingCodeType" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
- <NavigationProperty Name="FmsDrawing" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="CmSite" ToRole="FmsDrawing" />
- <NavigationProperty Name="FmsDrawingCodeGroup1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
- <NavigationProperty Name="FmsDrawingCodeType1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
- <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="CmSite" ToRole="FmsFacilityCodeClass" />
- <NavigationProperty Name="FmsLicense" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="CmSite" ToRole="FmsLicense" />
- <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="CmSite" ToRole="FmsMaterialCarriedForward" />
- <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeClass" />
- <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeLocation" />
- <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeType" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseRequest" />
- <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="CmSite" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="CmSite" ToRole="FmsMaterialTradeCompany" />
- <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="CmSite" ToRole="FmsMaterialWarehouse" />
- <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCauseClass" />
- <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCycleUnit" />
- <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeEmergency" />
- <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeHolidayWorkType" />
- <NavigationProperty Name="FmsWorkCodeLegalInspectionAgency" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeLegalInspectionAgency" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="CmSite" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="CmSite" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="CmZoneTempHumiSet" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmSite" ToRole="CmZoneTempHumiSet" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="CmSite" ToRole="FmsMaterial" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="CmSite" ToRole="FmsMaterialRelease" />
- <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="CmSite" ToRole="FmsReport" />
- <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmSite" ToRole="CmPatrolHistory" />
- <Property Name="controlSchedule" Type="Boolean" />
- <NavigationProperty Name="CmMenu" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmSite" ToRole="CmMenu" />
- <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="CmSite" ToRole="BemsChartInfo" />
- <Property Name="BuildingSize" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="GrossArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="BuildingArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="FloorAreaRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="BuildingCoverageRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="MainUse" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
- <Property Name="CompletionDate" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="Standard" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="MainUseIndex" Type="Int32" />
- <Property Name="HDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="CDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsPeopleIncrease" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="CmSite" ToRole="BemsPeopleIncrease" />
- <NavigationProperty Name="BemsRentalRate" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="CmSite" ToRole="BemsRentalRate" />
- <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="CmSite" ToRole="BemsSitePrice" />
- <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="CmSite" ToRole="BemsSitePriceHistory" />
- <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="CmSite" ToRole="BemsAlarmSetting" />
- <NavigationProperty Name="BemsEnergyConfigPercentMonth" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="CmSite" ToRole="BemsEnergyConfigPercentMonth" />
- <NavigationProperty Name="BemsEnergyConfigPercentWeek" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="CmSite" ToRole="BemsEnergyConfigPercentWeek" />
- <NavigationProperty Name="BemsEnergyDailyRegression" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="CmSite" ToRole="BemsEnergyDailyRegression" />
- </EntityType>
- <Association Name="FK_BemsPeakHIstory_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsPeakHistory" Role="BemsPeakHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsPeakHistory">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPeakInfo_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsPeakInfo" Role="BemsPeakInfo" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsPeakInfo">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmBuildin__SiteI__3BFFE745">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmCompany__SiteI__336AA144">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmCompany">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacilityTempSet_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmFacilityTempSet">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFile__SiteId__2759D01A">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmFile">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHoliday">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__65AC084E">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHoliday">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__10766AC2">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHolidayCustom">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__66A02C87">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHolidayCustom">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__0D99FE17">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmHolidayWeekend" Role="CmHolidayWeekend" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHolidayWeekend">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolCourse_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolCourse">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolCoursePos_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolCoursePos">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolGroup_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolGroup">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistoryPos_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolHistoryPos">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPlan_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolPlan">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPos_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolSchedule_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolSchedule">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolType_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmPositio__SiteI__6A70BD6B">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPosition">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserPos__SiteI__44952D46">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPosition">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserGro__SiteI__53D770D6">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmUserGroup" Role="CmUserGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmUserGroup">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawingCodeGroup">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawingCodeType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsDrawing" Role="FmsDrawing" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawing">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__6F357288">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawingCodeGroup">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__702996C1">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawingCodeType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityCodeClass__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsFacilityCodeClass">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsLicense__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsLicense" Role="FmsLicense" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsLicense">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCarriedForward__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialCarriedForward" Role="FmsMaterialCarriedForward" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCarriedForward">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeClass__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeLocation__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeLocation">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeType__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialOrder__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialPurchaseOrder" Role="FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialPurchaseRequest" Role="FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialStored__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialTradeCompany__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialTradeCompany">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialWarehouse__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkCodeCauseClass" Role="FmsWorkCodeCauseClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeCauseClass">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeCycleUnit">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeEmergency__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkCodeEmergency" Role="FmsWorkCodeEmergency" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeEmergency">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeHolidayWorkType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkCodeLegalInspectionAgency" Role="FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeLegalInspectionAgency">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkOrder" Role="FmsWorkOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmZoneTempHumiSet_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmZoneTempHumiSet" Role="CmZoneTempHumiSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmZoneTempHumiSet">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="RId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="MakeDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ConfirmUserId1" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ConfirmUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="FmsReport" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="FmsReport" ToRole="CmFile" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="FmsReport" ToRole="CmSite" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="FmsReport" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="FmsReport" ToRole="CmUser" />
- <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="FmsReport" ToRole="CmUser" />
- </EntityType>
- <Association Name="FK_FmsReport_CmBusinessField">
- <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
- <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmFile">
- <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmUser1">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConfirmUserId1" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmUser2">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConfirmUserId2" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmServiceEnergyCalcMonth">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="calDate" />
- <PropertyRef Name="ServiceTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
- <Property Name="Value" Type="Double" />
- </EntityType>
- <EntityType Name="CmServiceEnergyCalcDay">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="calDate" />
- <PropertyRef Name="ServiceTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
- <Property Name="Value" Type="Double" />
- </EntityType>
- <EntityType Name="CmPatrolHistory">
- <Key>
- <PropertyRef Name="PatrolHistoryId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ScheduleId" Type="Int32" Nullable="false" />
- <Property Name="startDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="endDate" Type="DateTime" Precision="3" />
- <Property Name="resultTypeId" Type="Int32" Nullable="false" />
- <Property Name="resultDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
- <Property Name="resultPosCnt" Type="Int32" />
- <Property Name="resultNormalCnt" Type="Int32" />
- <Property Name="resultAbnormalCnt" Type="Int32" />
- <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolHistory" ToRole="CmPatrolSchedule" />
- <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolHistory" ToRole="CmPatrolType" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmPatrolHistory" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
- <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ScheduleId" />
- </Principal>
- <Dependent Role="CmPatrolHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ScheduleId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistory_CmPatrolType">
- <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolTypeId" />
- </Principal>
- <Dependent Role="CmPatrolHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="resultTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistory_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolHistory">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsReportFormat">
- <Key>
- <PropertyRef Name="ReportFormatId" />
- <PropertyRef Name="parts" />
- </Key>
- <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
- <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
- <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
- <Property Name="parts" Type="Int32" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsWorkSchedule">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="InspectionAgencyId" Type="Int32" />
- <Property Name="CycleSize" Type="Int32" Nullable="false" />
- <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
- <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
- <Property Name="WorkDueDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="UpdateUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <Property Name="IsAutoOrder" Type="Boolean" Nullable="false" />
- <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK__FmsWorkSchedule__CmBusinessField" FromRole="FmsWorkSchedule" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__FmsWorkSchedule__CmUser" FromRole="FmsWorkSchedule" ToRole="CmUser" />
- <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeCycleUnit" />
- <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeHolidayWorkType" />
- <NavigationProperty Name="FmsWorkCodeType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeType" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkScheduleToFacility" />
- <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="FmsWorkSchedule" ToRole="CmPartner" />
- </EntityType>
- <Association Name="FK__FmsWorkSchedule__CmBusinessField">
- <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkSchedule__CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UpdateUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
- <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeCycleUnit">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
- <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeHolidayWorkType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayWorkTypeId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayWorkTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
- <End Type="iBemsModel.FmsWorkCodeType" Role="FmsWorkCodeType" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeType">
- <PropertyRef Name="WorkTypeId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="WorkTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Principal>
- <Dependent Role="FmsWorkScheduleToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmMenu">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MenuId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="MenuId" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Used" Type="Boolean" />
- <Property Name="MenuPath" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmMenu" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_FmsWorkResultCheckItem_CmFile">
- <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId1" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkResultCheckItem_CmFile1">
- <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId2" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmMenu_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmMenu" Role="CmMenu" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmMenu">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsChartInfo">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="ChartId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="ChartId" Type="Int32" Nullable="false" />
- <Property Name="LAxTitle" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="RAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="XAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="XSFmId" Type="Int32" />
- <Property Name="XSType" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="LSFmId1" Type="Int32" Nullable="false" />
- <Property Name="LSName1" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="LSType1" Type="String" Nullable="false" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="LSFmId2" Type="Int32" />
- <Property Name="LSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="LSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="LSFmId3" Type="Int32" />
- <Property Name="LSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="LSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="LSFmId4" Type="Int32" />
- <Property Name="LSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="LSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="RSFmId1" Type="Int32" />
- <Property Name="RSName1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="RSType1" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="RSFmId2" Type="Int32" />
- <Property Name="RSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="RSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="RSFmId3" Type="Int32" />
- <Property Name="RSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="RSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="RSFmId4" Type="Int32" />
- <Property Name="RSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="RSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="Title" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="UseX" Type="Boolean" />
- <Property Name="UseLAxMinMax" Type="Boolean" />
- <Property Name="UseRAxMinMax" Type="Boolean" />
- <Property Name="UseXAxMinMax" Type="Boolean" />
- <Property Name="LAxMin" Type="Double" />
- <Property Name="LAxMax" Type="Double" />
- <Property Name="RAxMin" Type="Double" />
- <Property Name="RAxMax" Type="Double" />
- <Property Name="XAxMin" Type="Double" />
- <Property Name="XAxMax" Type="Double" />
- <Property Name="Palette" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
- <Property Name="UseChart" Type="Boolean" />
- <Property Name="UseLCTLine" Type="Boolean" Nullable="false" />
- <Property Name="LCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="LCTLineValue" Type="Double" />
- <Property Name="UseRCTLine" Type="Boolean" Nullable="false" />
- <Property Name="RCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="RCTLineValue" Type="Double" />
- <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsChartInfo" ToRole="BemsFacilityType" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="BemsChartInfo" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_BemsChartInfo_BemsFacilityType">
- <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
- <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsChartInfo">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsChartInfo_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsChartInfo">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsPeopleIncrease">
- <Key>
- <PropertyRef Name="Date" />
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="BemsPeopleIncrease" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="BemsPriceCode">
- <Key>
- <PropertyRef Name="PriceCode" />
- </Key>
- <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
- <Property Name="PriceCodeDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="Unit" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePrice" />
- <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePriceHistory" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsPriceCode" ToRole="BemsFuelType" />
- </EntityType>
- <EntityType Name="BemsPriceFormula">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FormulaId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FormulaId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsPriceFormula" ToRole="BemsFormula" />
- <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceFormula" ToRole="BemsPriceType" />
- </EntityType>
- <EntityType Name="BemsPriceMeta">
- <Key>
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="PublishDate" />
- </Key>
- <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
- <Property Name="PublishDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="BasePrice" Type="Int32" />
- <Property Name="C01_00" Type="Double" />
- <Property Name="C01_01" Type="Double" />
- <Property Name="C01_02" Type="Double" />
- <Property Name="C01_03" Type="Double" />
- <Property Name="C01_04" Type="Double" />
- <Property Name="C01_05" Type="Double" />
- <Property Name="C01_06" Type="Double" />
- <Property Name="C01_07" Type="Double" />
- <Property Name="C01_08" Type="Double" />
- <Property Name="C01_09" Type="Double" />
- <Property Name="C01_10" Type="Double" />
- <Property Name="C01_11" Type="Double" />
- <Property Name="C01_12" Type="Double" />
- <Property Name="C01_13" Type="Double" />
- <Property Name="C01_14" Type="Double" />
- <Property Name="C01_15" Type="Double" />
- <Property Name="C01_16" Type="Double" />
- <Property Name="C01_17" Type="Double" />
- <Property Name="C01_18" Type="Double" />
- <Property Name="C01_19" Type="Double" />
- <Property Name="C01_20" Type="Double" />
- <Property Name="C01_21" Type="Double" />
- <Property Name="C01_22" Type="Double" />
- <Property Name="C01_23" Type="Double" />
- <Property Name="C02_00" Type="Double" />
- <Property Name="C02_01" Type="Double" />
- <Property Name="C02_02" Type="Double" />
- <Property Name="C02_03" Type="Double" />
- <Property Name="C02_04" Type="Double" />
- <Property Name="C02_05" Type="Double" />
- <Property Name="C02_06" Type="Double" />
- <Property Name="C02_07" Type="Double" />
- <Property Name="C02_08" Type="Double" />
- <Property Name="C02_09" Type="Double" />
- <Property Name="C02_10" Type="Double" />
- <Property Name="C02_11" Type="Double" />
- <Property Name="C02_12" Type="Double" />
- <Property Name="C02_13" Type="Double" />
- <Property Name="C02_14" Type="Double" />
- <Property Name="C02_15" Type="Double" />
- <Property Name="C02_16" Type="Double" />
- <Property Name="C02_17" Type="Double" />
- <Property Name="C02_18" Type="Double" />
- <Property Name="C02_19" Type="Double" />
- <Property Name="C02_20" Type="Double" />
- <Property Name="C02_21" Type="Double" />
- <Property Name="C02_22" Type="Double" />
- <Property Name="C02_23" Type="Double" />
- <Property Name="C03_00" Type="Double" />
- <Property Name="C03_01" Type="Double" />
- <Property Name="C03_02" Type="Double" />
- <Property Name="C03_03" Type="Double" />
- <Property Name="C03_04" Type="Double" />
- <Property Name="C03_05" Type="Double" />
- <Property Name="C03_06" Type="Double" />
- <Property Name="C03_07" Type="Double" />
- <Property Name="C03_08" Type="Double" />
- <Property Name="C03_09" Type="Double" />
- <Property Name="C03_10" Type="Double" />
- <Property Name="C03_11" Type="Double" />
- <Property Name="C03_12" Type="Double" />
- <Property Name="C03_13" Type="Double" />
- <Property Name="C03_14" Type="Double" />
- <Property Name="C03_15" Type="Double" />
- <Property Name="C03_16" Type="Double" />
- <Property Name="C03_17" Type="Double" />
- <Property Name="C03_18" Type="Double" />
- <Property Name="C03_19" Type="Double" />
- <Property Name="C03_20" Type="Double" />
- <Property Name="C03_21" Type="Double" />
- <Property Name="C03_22" Type="Double" />
- <Property Name="C03_23" Type="Double" />
- <Property Name="C04_00" Type="Double" />
- <Property Name="C04_01" Type="Double" />
- <Property Name="C04_02" Type="Double" />
- <Property Name="C04_03" Type="Double" />
- <Property Name="C04_04" Type="Double" />
- <Property Name="C04_05" Type="Double" />
- <Property Name="C04_06" Type="Double" />
- <Property Name="C04_07" Type="Double" />
- <Property Name="C04_08" Type="Double" />
- <Property Name="C04_09" Type="Double" />
- <Property Name="C04_10" Type="Double" />
- <Property Name="C04_11" Type="Double" />
- <Property Name="C04_12" Type="Double" />
- <Property Name="C04_13" Type="Double" />
- <Property Name="C04_14" Type="Double" />
- <Property Name="C04_15" Type="Double" />
- <Property Name="C04_16" Type="Double" />
- <Property Name="C04_17" Type="Double" />
- <Property Name="C04_18" Type="Double" />
- <Property Name="C04_19" Type="Double" />
- <Property Name="C04_20" Type="Double" />
- <Property Name="C04_21" Type="Double" />
- <Property Name="C04_22" Type="Double" />
- <Property Name="C04_23" Type="Double" />
- <Property Name="C05_00" Type="Double" />
- <Property Name="C05_01" Type="Double" />
- <Property Name="C05_02" Type="Double" />
- <Property Name="C05_03" Type="Double" />
- <Property Name="C05_04" Type="Double" />
- <Property Name="C05_05" Type="Double" />
- <Property Name="C05_06" Type="Double" />
- <Property Name="C05_07" Type="Double" />
- <Property Name="C05_08" Type="Double" />
- <Property Name="C05_09" Type="Double" />
- <Property Name="C05_10" Type="Double" />
- <Property Name="C05_11" Type="Double" />
- <Property Name="C05_12" Type="Double" />
- <Property Name="C05_13" Type="Double" />
- <Property Name="C05_14" Type="Double" />
- <Property Name="C05_15" Type="Double" />
- <Property Name="C05_16" Type="Double" />
- <Property Name="C05_17" Type="Double" />
- <Property Name="C05_18" Type="Double" />
- <Property Name="C05_19" Type="Double" />
- <Property Name="C05_20" Type="Double" />
- <Property Name="C05_21" Type="Double" />
- <Property Name="C05_22" Type="Double" />
- <Property Name="C05_23" Type="Double" />
- <Property Name="C06_00" Type="Double" />
- <Property Name="C06_01" Type="Double" />
- <Property Name="C06_02" Type="Double" />
- <Property Name="C06_03" Type="Double" />
- <Property Name="C06_04" Type="Double" />
- <Property Name="C06_05" Type="Double" />
- <Property Name="C06_06" Type="Double" />
- <Property Name="C06_07" Type="Double" />
- <Property Name="C06_08" Type="Double" />
- <Property Name="C06_09" Type="Double" />
- <Property Name="C06_10" Type="Double" />
- <Property Name="C06_11" Type="Double" />
- <Property Name="C06_12" Type="Double" />
- <Property Name="C06_13" Type="Double" />
- <Property Name="C06_14" Type="Double" />
- <Property Name="C06_15" Type="Double" />
- <Property Name="C06_16" Type="Double" />
- <Property Name="C06_17" Type="Double" />
- <Property Name="C06_18" Type="Double" />
- <Property Name="C06_19" Type="Double" />
- <Property Name="C06_20" Type="Double" />
- <Property Name="C06_21" Type="Double" />
- <Property Name="C06_22" Type="Double" />
- <Property Name="C06_23" Type="Double" />
- <Property Name="C07_00" Type="Double" />
- <Property Name="C07_01" Type="Double" />
- <Property Name="C07_02" Type="Double" />
- <Property Name="C07_03" Type="Double" />
- <Property Name="C07_04" Type="Double" />
- <Property Name="C07_05" Type="Double" />
- <Property Name="C07_06" Type="Double" />
- <Property Name="C07_07" Type="Double" />
- <Property Name="C07_08" Type="Double" />
- <Property Name="C07_09" Type="Double" />
- <Property Name="C07_10" Type="Double" />
- <Property Name="C07_11" Type="Double" />
- <Property Name="C07_12" Type="Double" />
- <Property Name="C07_13" Type="Double" />
- <Property Name="C07_14" Type="Double" />
- <Property Name="C07_15" Type="Double" />
- <Property Name="C07_16" Type="Double" />
- <Property Name="C07_17" Type="Double" />
- <Property Name="C07_18" Type="Double" />
- <Property Name="C07_19" Type="Double" />
- <Property Name="C07_20" Type="Double" />
- <Property Name="C07_21" Type="Double" />
- <Property Name="C07_22" Type="Double" />
- <Property Name="C07_23" Type="Double" />
- <Property Name="C08_00" Type="Double" />
- <Property Name="C08_01" Type="Double" />
- <Property Name="C08_02" Type="Double" />
- <Property Name="C08_03" Type="Double" />
- <Property Name="C08_04" Type="Double" />
- <Property Name="C08_05" Type="Double" />
- <Property Name="C08_06" Type="Double" />
- <Property Name="C08_07" Type="Double" />
- <Property Name="C08_08" Type="Double" />
- <Property Name="C08_09" Type="Double" />
- <Property Name="C08_10" Type="Double" />
- <Property Name="C08_11" Type="Double" />
- <Property Name="C08_12" Type="Double" />
- <Property Name="C08_13" Type="Double" />
- <Property Name="C08_14" Type="Double" />
- <Property Name="C08_15" Type="Double" />
- <Property Name="C08_16" Type="Double" />
- <Property Name="C08_17" Type="Double" />
- <Property Name="C08_18" Type="Double" />
- <Property Name="C08_19" Type="Double" />
- <Property Name="C08_20" Type="Double" />
- <Property Name="C08_21" Type="Double" />
- <Property Name="C08_22" Type="Double" />
- <Property Name="C08_23" Type="Double" />
- <Property Name="C09_00" Type="Double" />
- <Property Name="C09_01" Type="Double" />
- <Property Name="C09_02" Type="Double" />
- <Property Name="C09_03" Type="Double" />
- <Property Name="C09_04" Type="Double" />
- <Property Name="C09_05" Type="Double" />
- <Property Name="C09_06" Type="Double" />
- <Property Name="C09_07" Type="Double" />
- <Property Name="C09_08" Type="Double" />
- <Property Name="C09_09" Type="Double" />
- <Property Name="C09_10" Type="Double" />
- <Property Name="C09_11" Type="Double" />
- <Property Name="C09_12" Type="Double" />
- <Property Name="C09_13" Type="Double" />
- <Property Name="C09_14" Type="Double" />
- <Property Name="C09_15" Type="Double" />
- <Property Name="C09_16" Type="Double" />
- <Property Name="C09_17" Type="Double" />
- <Property Name="C09_18" Type="Double" />
- <Property Name="C09_19" Type="Double" />
- <Property Name="C09_20" Type="Double" />
- <Property Name="C09_21" Type="Double" />
- <Property Name="C09_22" Type="Double" />
- <Property Name="C09_23" Type="Double" />
- <Property Name="C10_00" Type="Double" />
- <Property Name="C10_01" Type="Double" />
- <Property Name="C10_02" Type="Double" />
- <Property Name="C10_03" Type="Double" />
- <Property Name="C10_04" Type="Double" />
- <Property Name="C10_05" Type="Double" />
- <Property Name="C10_06" Type="Double" />
- <Property Name="C10_07" Type="Double" />
- <Property Name="C10_08" Type="Double" />
- <Property Name="C10_09" Type="Double" />
- <Property Name="C10_10" Type="Double" />
- <Property Name="C10_11" Type="Double" />
- <Property Name="C10_12" Type="Double" />
- <Property Name="C10_13" Type="Double" />
- <Property Name="C10_14" Type="Double" />
- <Property Name="C10_15" Type="Double" />
- <Property Name="C10_16" Type="Double" />
- <Property Name="C10_17" Type="Double" />
- <Property Name="C10_18" Type="Double" />
- <Property Name="C10_19" Type="Double" />
- <Property Name="C10_20" Type="Double" />
- <Property Name="C10_21" Type="Double" />
- <Property Name="C10_22" Type="Double" />
- <Property Name="C10_23" Type="Double" />
- <Property Name="C11_00" Type="Double" />
- <Property Name="C11_01" Type="Double" />
- <Property Name="C11_02" Type="Double" />
- <Property Name="C11_03" Type="Double" />
- <Property Name="C11_04" Type="Double" />
- <Property Name="C11_05" Type="Double" />
- <Property Name="C11_06" Type="Double" />
- <Property Name="C11_07" Type="Double" />
- <Property Name="C11_08" Type="Double" />
- <Property Name="C11_09" Type="Double" />
- <Property Name="C11_10" Type="Double" />
- <Property Name="C11_11" Type="Double" />
- <Property Name="C11_12" Type="Double" />
- <Property Name="C11_13" Type="Double" />
- <Property Name="C11_14" Type="Double" />
- <Property Name="C11_15" Type="Double" />
- <Property Name="C11_16" Type="Double" />
- <Property Name="C11_17" Type="Double" />
- <Property Name="C11_18" Type="Double" />
- <Property Name="C11_19" Type="Double" />
- <Property Name="C11_20" Type="Double" />
- <Property Name="C11_21" Type="Double" />
- <Property Name="C11_22" Type="Double" />
- <Property Name="C11_23" Type="Double" />
- <Property Name="C12_00" Type="Double" />
- <Property Name="C12_01" Type="Double" />
- <Property Name="C12_02" Type="Double" />
- <Property Name="C12_03" Type="Double" />
- <Property Name="C12_04" Type="Double" />
- <Property Name="C12_05" Type="Double" />
- <Property Name="C12_06" Type="Double" />
- <Property Name="C12_07" Type="Double" />
- <Property Name="C12_08" Type="Double" />
- <Property Name="C12_09" Type="Double" />
- <Property Name="C12_10" Type="Double" />
- <Property Name="C12_11" Type="Double" />
- <Property Name="C12_12" Type="Double" />
- <Property Name="C12_13" Type="Double" />
- <Property Name="C12_14" Type="Double" />
- <Property Name="C12_15" Type="Double" />
- <Property Name="C12_16" Type="Double" />
- <Property Name="C12_17" Type="Double" />
- <Property Name="C12_18" Type="Double" />
- <Property Name="C12_19" Type="Double" />
- <Property Name="C12_20" Type="Double" />
- <Property Name="C12_21" Type="Double" />
- <Property Name="C12_22" Type="Double" />
- <Property Name="C12_23" Type="Double" />
- <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceMeta" ToRole="BemsPriceType" />
- </EntityType>
- <EntityType Name="BemsPriceType">
- <Key>
- <PropertyRef Name="PriceTypeId" />
- </Key>
- <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
- <Property Name="PriceTypeIdDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceFormula" />
- <NavigationProperty Name="BemsPriceMeta" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceMeta" />
- <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePriceHistory" />
- <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePrice" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsPriceType" ToRole="BemsFuelType" />
- </EntityType>
- <EntityType Name="BemsRentalRate">
- <Key>
- <PropertyRef Name="Date" />
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="BemsRentalRate" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="BemsSitePrice">
- <Key>
- <PropertyRef Name="SiteID" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="PriceCode" />
- </Key>
- <Property Name="SiteID" Type="Int32" Nullable="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
- <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
- <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsSitePrice" ToRole="BemsPriceCode" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="BemsSitePrice" ToRole="CmSite" />
- <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsSitePrice" ToRole="BemsPriceType" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsSitePrice" ToRole="BemsFuelType" />
- </EntityType>
- <EntityType Name="BemsSitePriceHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="PriceCode" />
- <PropertyRef Name="PayDate" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
- <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
- <Property Name="PriceValue" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
- <Property Name="PayDate" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="false" />
- <Property Name="StartDate" Type="DateTime" Precision="3" />
- <Property Name="EndDate" Type="DateTime" Precision="3" />
- <Property Name="PayCharge" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsSitePriceHistory" ToRole="BemsPriceCode" />
- <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsSitePriceHistory" ToRole="BemsPriceType" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="BemsSitePriceHistory" ToRole="CmSite" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsSitePriceHistory" ToRole="BemsFuelType" />
- </EntityType>
- <Association Name="FK_BemsPriceFormula_BemsFormula">
- <End Type="iBemsModel.BemsFormula" Role="BemsFormula" Multiplicity="1" />
- <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFormula">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Principal>
- <Dependent Role="BemsPriceFormula">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPeopleIncrease_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsPeopleIncrease" Role="BemsPeopleIncrease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsPeopleIncrease">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_BemsPriceCode">
- <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceCode">
- <PropertyRef Name="PriceCode" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="PriceCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
- <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceCode">
- <PropertyRef Name="PriceCode" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="PriceCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceFormula_BemsPriceType">
- <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
- <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsPriceFormula">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceMeta_BemsPriceType">
- <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
- <End Type="iBemsModel.BemsPriceMeta" Role="BemsPriceMeta" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsPriceMeta">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
- <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsRentalRate_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsRentalRate" Role="BemsRentalRate" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsRentalRate">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_CmSite1">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="SiteID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_BemsPriceType">
- <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsMonitoringPointConfig">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
- <Property Name="IsSampled" Type="Boolean" Nullable="false" />
- <Property Name="SaveMode" Type="Int32" Nullable="false" />
- <Property Name="ControlPointName" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
- <Property Name="IsConverted" Type="Boolean" />
- <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsMonitoringPointConfig" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPointConfig" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
- <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
- <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointConfig">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
- <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
- <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointConfig">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsAlarmSetting">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="FormulaId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="FormulaId" Type="Int32" Nullable="false" />
- <Property Name="FacilityName" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
- <Property Name="PointName" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="UseUpperLimit" Type="Boolean" Nullable="false" />
- <Property Name="UpperLimit" Type="Double" />
- <Property Name="UseLowerLimit" Type="Boolean" Nullable="false" />
- <Property Name="LowerLimit" Type="Double" />
- <Property Name="UseAlarm" Type="Boolean" Nullable="false" />
- <Property Name="UseSMS" Type="Boolean" Nullable="false" />
- <Property Name="UseEmail" Type="Boolean" Nullable="false" />
- <Property Name="AlarmGroupName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Content" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsAlarmSetting" ToRole="BemsFacilityType" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="BemsAlarmSetting" ToRole="CmSite" />
- <NavigationProperty Name="BemsAlarmLog" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmSetting" ToRole="BemsAlarmLog" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="BemsAlarmSetting" ToRole="CmFacility" />
- </EntityType>
- <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
- <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
- <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsAlarmSetting">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsAlarmSetting_CmSite1">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsAlarmSetting">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsAlarmLog">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="FormulaId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="FormulaId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CurrentValue" Type="Double" />
- <Property Name="SMSResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
- <Property Name="EmailResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
- <Property Name="Conform" Type="Boolean" />
- <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmLog" ToRole="BemsAlarmSetting" />
- </EntityType>
- <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
- <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="1" />
- <End Type="iBemsModel.BemsAlarmLog" Role="BemsAlarmLog" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsAlarmSetting">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="FormulaId" />
- </Principal>
- <Dependent Role="BemsAlarmLog">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="FormulaId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsAlarmGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AlarmGroupId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="AlarmGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="BemsAlarmGroupUser">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AlarmGroupId" />
- <PropertyRef Name="UserId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="AlarmGroupId" Type="Int32" Nullable="false" />
- <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="BemsEnergyCost">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PowerConsumption1" Type="Double" />
- <Property Name="PowerConsumption2" Type="Double" />
- <Property Name="GasConsumption" Type="Double" />
- <Property Name="GasHeatQuantity" Type="Double" />
- <Property Name="PowerPriceTypeId" Type="Int32" />
- <Property Name="GasPriceTypeId" Type="Int32" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="BemsEnergyCost" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="BemsEnergyConfigPercentMonth">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="Month" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Year" Type="Int32" Nullable="false" />
- <Property Name="Month" Type="Int32" Nullable="false" />
- <Property Name="Electricity" Type="Double" />
- <Property Name="Gas" Type="Double" />
- <Property Name="Water" Type="Double" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="BemsEnergyConfigPercentMonth" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="BemsEnergyConfigPercentWeek">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="Week" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Year" Type="Int32" Nullable="false" />
- <Property Name="Week" Type="Int32" Nullable="false" />
- <Property Name="Electricity" Type="Double" />
- <Property Name="Gas" Type="Double" />
- <Property Name="Water" Type="Double" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="BemsEnergyConfigPercentWeek" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyConfigPercentMonth" Role="BemsEnergyConfigPercentMonth" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsEnergyConfigPercentMonth">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyConfigPercentWeek" Role="BemsEnergyConfigPercentWeek" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsEnergyConfigPercentWeek">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsEnergyDaily">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="ServiceTypeId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="CreatedDate" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" />
- <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="Prediction" Type="Double" />
- <Property Name="Measurement" Type="Double" />
- <Property Name="Goal" Type="Double" />
- <Property Name="Prediction_Regression" Type="Double" />
- <Property Name="MeanT" Type="Double" />
- <Property Name="HDD" Type="Double" />
- <Property Name="CDD" Type="Double" />
- <NavigationProperty Name="BemsServiceType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsEnergyDaily" ToRole="BemsServiceType" />
- <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="BemsEnergyDaily" ToRole="CmBuilding" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsEnergyDaily" ToRole="BemsFuelType" />
- </EntityType>
- <Association Name="FK__BemsEnergyDaily__BemsServiceType">
- <End Type="iBemsModel.BemsServiceType" Role="BemsServiceType" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsServiceType">
- <PropertyRef Name="ServiceTypeId" />
- </Principal>
- <Dependent Role="BemsEnergyDaily">
- <PropertyRef Name="ServiceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsEnergyDaily__CmBuilding">
- <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="BemsEnergyDaily">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsEnergyDailyRegression">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Weekday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Weekday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Weekday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Weekday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Weekday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Weekday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Holiday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Holiday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Holiday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Holiday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Holiday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Holiday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="IsRegression" Type="Boolean" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="BemsEnergyDailyRegression" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_BemsEnergyDailyRegression_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyDailyRegression" Role="BemsEnergyDailyRegression" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsEnergyDailyRegression">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="WeatherDongNaeForecast">
- <Key>
- <PropertyRef Name="BaseTime" />
- <PropertyRef Name="ForecastTime" />
- </Key>
- <Property Name="BaseTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="nx" Type="Int32" />
- <Property Name="ny" Type="Int32" />
- <Property Name="ForecastTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="POP" Type="Double" />
- <Property Name="PTY" Type="Double" />
- <Property Name="R06" Type="Double" />
- <Property Name="REH" Type="Double" />
- <Property Name="S06" Type="Double" />
- <Property Name="SKY" Type="Double" />
- <Property Name="T3H" Type="Double" />
- <Property Name="TMN" Type="Double" />
- <Property Name="TMX" Type="Double" />
- <Property Name="UUU" Type="Double" />
- <Property Name="VVV" Type="Double" />
- <Property Name="VEC" Type="Double" />
- <Property Name="WSD" Type="Double" />
- <Property Name="Type" Type="Int32" />
- <Property Name="DBTime" Type="DateTime" Precision="3" />
- <Property Name="Version" Type="Int32" />
- </EntityType>
- <EntityType Name="FmsEquipmentRentInfo">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentRentId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="EquipmentRentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="RentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="RegisterDate" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
- <Property Name="RentDate" Type="DateTime" Precision="3" />
- <Property Name="ReturnDueDate" Type="DateTime" Precision="3" />
- <Property Name="ReturnFixDate" Type="DateTime" Precision="3" />
- <Property Name="EquipmentStateTypeId" Type="Int16" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Title" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Name="RentUser" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
- <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentCodeStateType" />
- <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentHistory" />
- </EntityType>
- <Association Name="FK_FmsEquipmentRentInfo_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsEquipmentRentInfo">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsEquipmentRentInfo">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RentUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
- <End Type="iBemsModel.FmsEquipmentCodeStateType" Role="FmsEquipmentCodeStateType" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipmentCodeStateType">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Principal>
- <Dependent Role="FmsEquipmentRentInfo">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
- <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="0..1">
- <OnDelete Action="Cascade" />
- </End>
- <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipmentRentInfo">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentRentId" />
- </Principal>
- <Dependent Role="FmsEquipmentHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentRentId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsControlAHUTempConfig">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="MaxTemperature" Type="Double" Nullable="false" />
- <Property Name="MinTemperature" Type="Double" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFuelType">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- </Key>
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsEnergyDaily" />
- <NavigationProperty Name="BemsFactorCo2" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorCo2" />
- <NavigationProperty Name="BemsFactorToe" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorToe" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPointBaseData" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="BemsFuelType" ToRole="CmFacility" />
- <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsNoticePriceContractType" />
- <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsPriceCode" />
- <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsFuelType" ToRole="BemsPriceType" />
- <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePrice" />
- <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePriceHistory" />
- </EntityType>
- <Association Name="FK__BemsEnergyDaily__BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsEnergyDaily">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFactorCo2__BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsFactorCo2" Role="BemsFactorCo2" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsFactorCo2">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFactorToe__BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsFactorToe" Role="BemsFactorToe" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsFactorToe">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
- <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
- <End Type="iBemsModel.BemsMonitoringPointBaseData" Role="BemsMonitoringPointBaseData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointBaseData">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsNoticePriceContractType">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceCode_BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsPriceCode">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceType_BemsFuelType1">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsPriceType">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="FirstClassId" Type="Int32" />
- <Property Name="SecondClassId" Type="Int32" />
- <Property Name="ThirdClassId" Type="Int32" />
- <Property Name="DeviceType" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <Property Name="ParentFacilityCode" Type="Int32" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
- <Property Name="Nickname" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
- <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="ManufactureDate" Type="DateTime" Precision="0" />
- <Property Name="ManufactureSerial" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="ManufactureModel" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="Supplier" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="BuildingId" Type="Int32" />
- <Property Name="FloorId" Type="Int32" />
- <Property Name="ZoneId" Type="Int32" />
- <Property Name="InstallDate" Type="DateTime" Precision="0" />
- <Property Name="OperationStartDate" Type="DateTime" Precision="0" />
- <Property Name="FacilityCapacity" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="FacilityCost" Type="Int32" />
- <Property Name="FacilityCount" Type="Int32" />
- <Property Name="FacilitySeviceLifeYear" Type="Int32" />
- <Property Name="FacilityUsage" Type="String" MaxLength="80" FixedLength="false" Unicode="true" />
- <Property Name="RatedPowerConsumption" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="RatedCOP" Type="Double" />
- <Property Name="MainContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="SubContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Reserved1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="Reserved2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="IsVirtualFacility" Type="Boolean" Nullable="false" />
- <Property Name="FuelTypeId" Type="Int16" />
- <Property Name="ContractType" Type="Int16" />
- <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="CmFacility" ToRole="BemsAlarmSetting" />
- <NavigationProperty Name="BemsEnergyCost" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="CmFacility" ToRole="BemsEnergyCost" />
- <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="CmFacility" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsFormulaParameter" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="CmFacility" ToRole="BemsFormulaParameter" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="CmFacility" ToRole="BemsFuelType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="CmFacility" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="CmFacility" ToRole="BemsNoticePriceContractType" />
- <NavigationProperty Name="BemsPeakFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="CmFacility" ToRole="BemsPeakFacility" />
- <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmFacility" ToRole="CmBuilding" />
- <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFacility" ToRole="CmFloor" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmFacility" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmFacility" ToRole="CmUser" />
- <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility" ToRole="CmFacility1" />
- <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility1" ToRole="CmFacility" />
- <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFacility" ToRole="CmFile" />
- <NavigationProperty Name="CmZone" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmFacility" ToRole="CmZone" />
- <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
- <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
- <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
- <NavigationProperty Name="CmFacilityFile" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacility" ToRole="CmFacilityFile" />
- <NavigationProperty Name="FmsFacilityManual" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="CmFacility" ToRole="FmsFacilityManual" />
- <NavigationProperty Name="FmsFacilityOperationItem" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="CmFacility" ToRole="FmsFacilityOperationItem" />
- <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultCheckItem" />
- <NavigationProperty Name="FmsWorkResultToFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultToFacility" />
- <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmFacility" ToRole="CmUser" />
- <NavigationProperty Name="CmUser3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmFacility" ToRole="CmUser" />
- <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacility" ToRole="CmFacilityTempSet" />
- <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkOrderToFacility" />
- <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkRequestToFacility" />
- <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkScheduleToFacility" />
- </EntityType>
- <Association Name="FK_BemsAlarmSetting_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsAlarmSetting">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsEnergyCost_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyCost" Role="BemsEnergyCost" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsEnergyCost">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__BemsFacilityType">
- <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsFormulaParameter_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.BemsFormulaParameter" Role="BemsFormulaParameter" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsFormulaParameter">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacility_BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsMonitoringPoint_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacility_BemsNoticePriceContractType">
- <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsNoticePriceContractType">
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPeakFacility_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.BemsPeakFacility" Role="BemsPeakFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsPeakFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__CmBuilding">
- <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__74444068">
- <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__753864A1">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MainContactorUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__762C88DA">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="SubContactorUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility1" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="CmFacility1">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ParentFacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__CmFile">
- <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__CmZone">
- <End Type="iBemsModel.CmZone" Role="CmZone" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__FmsFacilityCodeClassAsFirst">
- <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsFacilityCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityClassId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FirstClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__FmsFacilityCodeClassAsSecond">
- <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsFacilityCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityClassId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="SecondClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__FmsFacilityCodeClassAsThird">
- <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsFacilityCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityClassId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ThirdClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacilityFile__7720AD13">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.CmFacilityFile" Role="CmFacilityFile" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="CmFacilityFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacilityManual__79FD19BE">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.FmsFacilityManual" Role="FmsFacilityManual" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsFacilityManual">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityOpera__725BF7F6">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.FmsFacilityOperationItem" Role="FmsFacilityOperationItem" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsFacilityOperationItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ItemId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultToFacility__CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkResultToFacility" Role="FmsWorkResultToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkResultToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacility_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MainContactorUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacility_CmUser1">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="SubContactorUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacilityTempSet_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="CmFacilityTempSet">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkOrderToFacility" Role="FmsWorkOrderToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkOrderToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkRequestToFacility" Role="FmsWorkRequestToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkRequestToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkScheduleToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsMonitoringPointHistory15minRawData">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CurrentValue" Type="Double" Nullable="false" />
- <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
- <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
- <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistory15minRawData">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
- <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
- <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistory15minRawData">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsDailyReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AddDate" />
- <PropertyRef Name="BusinessFieldId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="DailyReportId" Type="Int32" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="Datas" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
- <Property Name="ApproverUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ApproveDate" Type="DateTime" Precision="0" />
- <Property Name="RegisterDate" Type="DateTime" Precision="0" />
- <Property Name="ApproverUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ApproveDate2" Type="DateTime" Precision="0" />
- <Property Name="ApproverUserId3" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ApproveDate3" Type="DateTime" Precision="0" />
- <Property Name="ApproverUserId4" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ApproveDate4" Type="DateTime" Precision="0" />
- <Property Name="ApproverUserId5" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ApproveDate5" Type="DateTime" Precision="0" />
- <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="FmsDailyReport" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="FmsDailyReport" ToRole="CmUser" />
- </EntityType>
- <Association Name="FK_FmsDailyReport_CmBusinessField">
- <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
- <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsDailyReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsDailyReport_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsDailyReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsPeakHistoryDaily">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="MaxPeakValue" Type="Double" />
- <Property Name="MaxDateTime" Type="DateTime" Precision="3" />
- <Property Name="MinPeakValue" Type="Double" />
- <Property Name="MinDateTime" Type="DateTime" Precision="3" />
- </EntityType>
- <EntityType Name="FmsEquipment">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="EquipmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
- <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" />
- <Property Name="WarehouseId" Type="Int32" />
- <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
- <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="AddDate" Type="DateTime" Precision="3" />
- <Property Name="UpdateDate" Type="DateTime" Precision="3" />
- <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="SupplierName" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="ImageFileId" Type="Int32" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="FmsEquipment" ToRole="CmUser" />
- <NavigationProperty Name="FmsEquipmentCodeType" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipment" ToRole="FmsEquipmentCodeType" />
- <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsEquipment" ToRole="FmsMaterialWarehouse" />
- <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipment" ToRole="FmsEquipmentHistory" />
- </EntityType>
- <Association Name="FK_FmsEquipment_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsEquipment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
- <End Type="iBemsModel.FmsEquipmentCodeType" Role="FmsEquipmentCodeType" Multiplicity="1" />
- <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipmentCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentTypeId" />
- </Principal>
- <Dependent Role="FmsEquipment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
- <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Principal>
- <Dependent Role="FmsEquipment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
- <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="1" />
- <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentId" />
- </Principal>
- <Dependent Role="FmsEquipmentHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmAlarmAdmin">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="UserCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="DeptCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="EmailAddress" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="EmailPassword" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="BemsFloorStatus">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="FloorName" />
- <PropertyRef Name="ImageFileId" />
- <PropertyRef Name="Xvalue" />
- <PropertyRef Name="Yvalue" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" />
- <Property Name="FloorName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="ImageFileId" Type="Int32" Nullable="false" />
- <Property Name="Xvalue" Type="Int32" Nullable="false" />
- <Property Name="Yvalue" Type="Int32" Nullable="false" />
- <Property Name="ZoneId" Type="Int32" />
- <Property Name="ServiceTypeId" Type="Int32" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="FacilityName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="BemsReportHistory">
- <Key>
- <PropertyRef Name="Seq" />
- <PropertyRef Name="DateTime" />
- <PropertyRef Name="ReportFormatId" />
- <PropertyRef Name="parts" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Seq" Type="Int32" Nullable="false" />
- <Property Name="DateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ReportName" Type="String" Nullable="false" MaxLength="200" FixedLength="false" Unicode="false" />
- <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
- <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
- <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
- <Property Name="Writer" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
- <Property Name="Confirm1" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
- <Property Name="Confirm2" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
- <Property Name="parts" Type="Int32" Nullable="false" />
- <Property Name="FileName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="CmPartner">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PartnerId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="PartnerTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="AddressZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
- <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
- <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="HomepageUri" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartner" ToRole="CmPartnerType" />
- <NavigationProperty Name="FmsConstruction" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="CmPartner" ToRole="FmsConstruction" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="CmPartner" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="CmPartner" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="CmPartner" ToRole="FmsContract" />
- </EntityType>
- <EntityType Name="CmPartnerType">
- <Key>
- <PropertyRef Name="PartnerTypeId" />
- </Key>
- <Property Name="PartnerTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartnerType" ToRole="CmPartner" />
- <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="CmPartnerType" ToRole="FmsContract" />
- </EntityType>
- <Association Name="FK_CmPartnerType_CmPartner">
- <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="1" />
- <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartnerType">
- <PropertyRef Name="PartnerTypeId" />
- </Principal>
- <Dependent Role="CmPartner">
- <PropertyRef Name="PartnerTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_CmPartner">
- <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="1" />
- <End Type="iBemsModel.FmsConstruction" Role="FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartner">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkRequest_CmPartner">
- <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartner">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InspectionAgencyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkSchedule_CmPartner">
- <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartner">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InspectionAgencyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsContract">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ContractId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Name="PartnerTypeId" Type="Int32" />
- <Property Name="PartnerId" Type="Int32" />
- <Property Name="ContractDate" Type="DateTime" Precision="3" />
- <Property Name="StartDate" Type="DateTime" Precision="3" />
- <Property Name="EndDate" Type="DateTime" Precision="3" />
- <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="CommitmentMan" Type="Int16" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="ContractClassId" Type="Int32" />
- <Property Name="ContractTypeId" Type="Int32" />
- <Property Name="ContractMethodId" Type="Int32" />
- <Property Name="PaymentTypeId" Type="Int32" />
- <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="FmsContract" ToRole="CmPartner" />
- <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="FmsContract" ToRole="CmPartnerType" />
- <NavigationProperty Name="FmsContractClass" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContract" ToRole="FmsContractClass" />
- <NavigationProperty Name="FmsContractMethod" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContract" ToRole="FmsContractMethod" />
- <NavigationProperty Name="FmsContractType" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContract" ToRole="FmsContractType" />
- <NavigationProperty Name="FmsPaymentType" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsContract" ToRole="FmsPaymentType" />
- </EntityType>
- <Association Name="FK_FmsContract_CmPartner">
- <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartner">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_CmPartnerType">
- <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartnerType">
- <PropertyRef Name="PartnerTypeId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="PartnerTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_FmsContractClass">
- <End Type="iBemsModel.FmsContractClass" Role="FmsContractClass" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsContractClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractClassId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_FmsContractMethod">
- <End Type="iBemsModel.FmsContractMethod" Role="FmsContractMethod" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsContractMethod">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractMethodId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractMethodId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_FmsContractType">
- <End Type="iBemsModel.FmsContractType" Role="FmsContractType" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsContractType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractTypeId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_FmsPaymentType">
- <End Type="iBemsModel.FmsPaymentType" Role="FmsPaymentType" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsPaymentType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PaymentTypeId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsMonitoringPointForecastingDayAhead">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- <PropertyRef Name="TargetDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ForecastedValue" Type="Double" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointForecastingHourAhead">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- <PropertyRef Name="TargetDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ForecastedValue" Type="Double" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFloorPlan">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Name" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="ImageFileId" Type="Int32" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointWeatherForecasted">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CreatedDateTime" />
- <PropertyRef Name="Category" />
- <PropertyRef Name="BaseDateTime" />
- <PropertyRef Name="ForecastedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="Category" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="BaseDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ForecastedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ForecastedValue" Type="Double" Nullable="false" />
- <Property Name="nx" Type="Int32" Nullable="false" />
- <Property Name="ny" Type="Int32" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsIceThermalStorageSimulation">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- <PropertyRef Name="TargetDateTime" />
- <PropertyRef Name="SimulationCase" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="SimulationValue" Type="Double" />
- <Property Name="SimulationCase" Type="Int32" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsConfigData">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="LoadDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="LoadDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="LoadDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="LoadDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="TargetDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="TargetDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="TargetDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="TargetDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- </EntityType>
- </Schema>
|