0790fed0b4d51a126ddba809872f95553ddd19be.svn-base 379 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Schema Namespace="iBemsModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2008" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  3. <EntityType Name="BemsAlarmGroup">
  4. <Key>
  5. <PropertyRef Name="SiteId" />
  6. <PropertyRef Name="AlarmGroupId" />
  7. </Key>
  8. <Property Name="SiteId" Type="int" Nullable="false" />
  9. <Property Name="AlarmGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  10. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  11. </EntityType>
  12. <EntityType Name="BemsAlarmGroupUser">
  13. <Key>
  14. <PropertyRef Name="SiteId" />
  15. <PropertyRef Name="AlarmGroupId" />
  16. <PropertyRef Name="UserId" />
  17. </Key>
  18. <Property Name="SiteId" Type="int" Nullable="false" />
  19. <Property Name="AlarmGroupId" Type="int" Nullable="false" />
  20. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  21. </EntityType>
  22. <EntityType Name="BemsAlarmLog">
  23. <Key>
  24. <PropertyRef Name="SiteId" />
  25. <PropertyRef Name="FacilityTypeId" />
  26. <PropertyRef Name="FacilityCode" />
  27. <PropertyRef Name="PropertyId" />
  28. <PropertyRef Name="FormulaId" />
  29. <PropertyRef Name="CreatedDateTime" />
  30. </Key>
  31. <Property Name="SiteId" Type="int" Nullable="false" />
  32. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  33. <Property Name="FacilityCode" Type="int" Nullable="false" />
  34. <Property Name="PropertyId" Type="int" Nullable="false" />
  35. <Property Name="FormulaId" Type="int" Nullable="false" />
  36. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  37. <Property Name="CurrentValue" Type="float" />
  38. <Property Name="SMSResult" Type="nvarchar" MaxLength="2" />
  39. <Property Name="EmailResult" Type="nvarchar" MaxLength="2" />
  40. <Property Name="Conform" Type="bit" />
  41. </EntityType>
  42. <EntityType Name="BemsAlarmSetting">
  43. <Key>
  44. <PropertyRef Name="SiteId" />
  45. <PropertyRef Name="FacilityTypeId" />
  46. <PropertyRef Name="FacilityCode" />
  47. <PropertyRef Name="PropertyId" />
  48. <PropertyRef Name="FormulaId" />
  49. </Key>
  50. <Property Name="SiteId" Type="int" Nullable="false" />
  51. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  52. <Property Name="FacilityCode" Type="int" Nullable="false" />
  53. <Property Name="PropertyId" Type="int" Nullable="false" />
  54. <Property Name="FormulaId" Type="int" Nullable="false" />
  55. <Property Name="FacilityName" Type="nvarchar" MaxLength="80" Nullable="false" />
  56. <Property Name="PointName" Type="nvarchar" MaxLength="64" Nullable="false" />
  57. <Property Name="UseUpperLimit" Type="bit" Nullable="false" />
  58. <Property Name="UpperLimit" Type="float" />
  59. <Property Name="UseLowerLimit" Type="bit" Nullable="false" />
  60. <Property Name="LowerLimit" Type="float" />
  61. <Property Name="UseAlarm" Type="bit" Nullable="false" />
  62. <Property Name="UseSMS" Type="bit" Nullable="false" />
  63. <Property Name="UseEmail" Type="bit" Nullable="false" />
  64. <Property Name="AlarmGroupName" Type="nvarchar" MaxLength="50" Nullable="false" />
  65. <Property Name="Content" Type="nvarchar" MaxLength="1000" />
  66. </EntityType>
  67. <EntityType Name="BemsAnalysisType">
  68. <Key>
  69. <PropertyRef Name="SiteId" />
  70. <PropertyRef Name="AnalysisType" />
  71. </Key>
  72. <Property Name="SiteId" Type="int" Nullable="false" />
  73. <Property Name="AnalysisType" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  74. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  75. </EntityType>
  76. <EntityType Name="BemsChartInfo">
  77. <Key>
  78. <PropertyRef Name="SiteId" />
  79. <PropertyRef Name="FacilityTypeId" />
  80. <PropertyRef Name="ChartId" />
  81. </Key>
  82. <Property Name="SiteId" Type="int" Nullable="false" />
  83. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  84. <Property Name="ChartId" Type="int" Nullable="false" />
  85. <Property Name="LAxTitle" Type="nvarchar" MaxLength="64" Nullable="false" />
  86. <Property Name="RAxTitle" Type="nvarchar" MaxLength="64" />
  87. <Property Name="XAxTitle" Type="nvarchar" MaxLength="64" />
  88. <Property Name="XSFmId" Type="int" />
  89. <Property Name="XSType" Type="nvarchar" MaxLength="16" />
  90. <Property Name="LSFmId1" Type="int" Nullable="false" />
  91. <Property Name="LSName1" Type="nvarchar" MaxLength="64" Nullable="false" />
  92. <Property Name="LSType1" Type="nvarchar" MaxLength="16" Nullable="false" />
  93. <Property Name="LSFmId2" Type="int" />
  94. <Property Name="LSName2" Type="nvarchar" MaxLength="64" />
  95. <Property Name="LSType2" Type="nvarchar" MaxLength="16" />
  96. <Property Name="LSFmId3" Type="int" />
  97. <Property Name="LSName3" Type="nvarchar" MaxLength="64" />
  98. <Property Name="LSType3" Type="nvarchar" MaxLength="16" />
  99. <Property Name="LSFmId4" Type="int" />
  100. <Property Name="LSName4" Type="nvarchar" MaxLength="64" />
  101. <Property Name="LSType4" Type="nvarchar" MaxLength="16" />
  102. <Property Name="RSFmId1" Type="int" />
  103. <Property Name="RSName1" Type="nvarchar" MaxLength="64" />
  104. <Property Name="RSType1" Type="nvarchar" MaxLength="16" />
  105. <Property Name="RSFmId2" Type="int" />
  106. <Property Name="RSName2" Type="nvarchar" MaxLength="64" />
  107. <Property Name="RSType2" Type="nvarchar" MaxLength="16" />
  108. <Property Name="RSFmId3" Type="int" />
  109. <Property Name="RSName3" Type="nvarchar" MaxLength="64" />
  110. <Property Name="RSType3" Type="nvarchar" MaxLength="16" />
  111. <Property Name="RSFmId4" Type="int" />
  112. <Property Name="RSName4" Type="nvarchar" MaxLength="64" />
  113. <Property Name="RSType4" Type="nvarchar" MaxLength="16" />
  114. <Property Name="Title" Type="nvarchar" MaxLength="64" Nullable="false" />
  115. <Property Name="UseX" Type="bit" />
  116. <Property Name="UseLAxMinMax" Type="bit" />
  117. <Property Name="UseRAxMinMax" Type="bit" />
  118. <Property Name="UseXAxMinMax" Type="bit" />
  119. <Property Name="LAxMin" Type="float" />
  120. <Property Name="LAxMax" Type="float" />
  121. <Property Name="RAxMin" Type="float" />
  122. <Property Name="RAxMax" Type="float" />
  123. <Property Name="XAxMin" Type="float" />
  124. <Property Name="XAxMax" Type="float" />
  125. <Property Name="Palette" Type="nvarchar" MaxLength="32" Nullable="false" />
  126. <Property Name="UseChart" Type="bit" />
  127. <Property Name="UseLCTLine" Type="bit" Nullable="false" />
  128. <Property Name="LCTLineTitle" Type="nvarchar" MaxLength="64" />
  129. <Property Name="LCTLineValue" Type="float" />
  130. <Property Name="UseRCTLine" Type="bit" Nullable="false" />
  131. <Property Name="RCTLineTitle" Type="nvarchar" MaxLength="64" />
  132. <Property Name="RCTLineValue" Type="float" />
  133. </EntityType>
  134. <EntityType Name="BemsConfigData">
  135. <Key>
  136. <PropertyRef Name="SiteId" />
  137. </Key>
  138. <Property Name="SiteId" Type="int" Nullable="false" />
  139. <Property Name="LoadDBIP" Type="nvarchar" MaxLength="50" Nullable="false" />
  140. <Property Name="LoadDBUserID" Type="nvarchar" MaxLength="50" Nullable="false" />
  141. <Property Name="LoadDBUserPW" Type="nvarchar" MaxLength="50" Nullable="false" />
  142. <Property Name="LoadDBName" Type="nvarchar" MaxLength="50" Nullable="false" />
  143. <Property Name="TargetDBIP" Type="nvarchar" MaxLength="50" Nullable="false" />
  144. <Property Name="TargetDBUserID" Type="nvarchar" MaxLength="50" Nullable="false" />
  145. <Property Name="TargetDBUserPW" Type="nvarchar" MaxLength="50" Nullable="false" />
  146. <Property Name="TargetDBName" Type="nvarchar" MaxLength="50" Nullable="false" />
  147. </EntityType>
  148. <EntityType Name="BemsControlAHUTempConfig">
  149. <Key>
  150. <PropertyRef Name="SiteId" />
  151. <PropertyRef Name="FacilityTypeId" />
  152. <PropertyRef Name="FacilityCode" />
  153. </Key>
  154. <Property Name="SiteId" Type="int" Nullable="false" />
  155. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  156. <Property Name="FacilityCode" Type="int" Nullable="false" />
  157. <Property Name="MaxTemperature" Type="float" Nullable="false" />
  158. <Property Name="MinTemperature" Type="float" Nullable="false" />
  159. </EntityType>
  160. <EntityType Name="BemsControlPointHistory">
  161. <Key>
  162. <PropertyRef Name="SiteId" />
  163. <PropertyRef Name="FacilityCode" />
  164. <PropertyRef Name="PropertyId" />
  165. <PropertyRef Name="CreateDateTime" />
  166. </Key>
  167. <Property Name="SiteId" Type="int" Nullable="false" />
  168. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  169. <Property Name="FacilityCode" Type="int" Nullable="false" />
  170. <Property Name="PropertyId" Type="int" Nullable="false" />
  171. <Property Name="CreateDateTime" Type="datetime" Nullable="false" />
  172. <Property Name="ControlValue" Type="float" Nullable="false" />
  173. <Property Name="WriteServiceName" Type="nvarchar" MaxLength="64" />
  174. <Property Name="ActionDateTime" Type="datetime" />
  175. </EntityType>
  176. <EntityType Name="BemsEnergyConfigPercentMonth">
  177. <Key>
  178. <PropertyRef Name="SiteId" />
  179. <PropertyRef Name="Year" />
  180. <PropertyRef Name="Month" />
  181. </Key>
  182. <Property Name="SiteId" Type="int" Nullable="false" />
  183. <Property Name="Year" Type="int" Nullable="false" />
  184. <Property Name="Month" Type="int" Nullable="false" />
  185. <Property Name="Electricity" Type="float" />
  186. <Property Name="Gas" Type="float" />
  187. <Property Name="Water" Type="float" />
  188. </EntityType>
  189. <EntityType Name="BemsEnergyConfigPercentWeek">
  190. <Key>
  191. <PropertyRef Name="SiteId" />
  192. <PropertyRef Name="Year" />
  193. <PropertyRef Name="Week" />
  194. </Key>
  195. <Property Name="SiteId" Type="int" Nullable="false" />
  196. <Property Name="Year" Type="int" Nullable="false" />
  197. <Property Name="Week" Type="int" Nullable="false" />
  198. <Property Name="Electricity" Type="float" />
  199. <Property Name="Gas" Type="float" />
  200. <Property Name="Water" Type="float" />
  201. </EntityType>
  202. <EntityType Name="BemsEnergyCost">
  203. <Key>
  204. <PropertyRef Name="SiteId" />
  205. <PropertyRef Name="FacilityCode" />
  206. </Key>
  207. <Property Name="SiteId" Type="int" Nullable="false" />
  208. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  209. <Property Name="FacilityCode" Type="int" Nullable="false" />
  210. <Property Name="PowerConsumption1" Type="float" />
  211. <Property Name="PowerConsumption2" Type="float" />
  212. <Property Name="GasConsumption" Type="float" />
  213. <Property Name="GasHeatQuantity" Type="float" />
  214. <Property Name="PowerPriceTypeId" Type="int" />
  215. <Property Name="GasPriceTypeId" Type="int" />
  216. <Property Name="IsUse" Type="bit" />
  217. </EntityType>
  218. <EntityType Name="BemsEnergyDaily">
  219. <Key>
  220. <PropertyRef Name="SiteId" />
  221. <PropertyRef Name="BuildingId" />
  222. <PropertyRef Name="ServiceTypeId" />
  223. <PropertyRef Name="FuelTypeId" />
  224. <PropertyRef Name="CreatedDate" />
  225. </Key>
  226. <Property Name="SiteId" Type="int" Nullable="false" />
  227. <Property Name="BuildingId" Type="int" Nullable="false" />
  228. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  229. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  230. <Property Name="CreatedDate" Type="date" Nullable="false" />
  231. <Property Name="Prediction" Type="float" />
  232. <Property Name="Measurement" Type="float" />
  233. <Property Name="Goal" Type="float" />
  234. <Property Name="Prediction_Regression" Type="float" />
  235. <Property Name="MeanT" Type="float" />
  236. <Property Name="HDD" Type="float" />
  237. <Property Name="CDD" Type="float" />
  238. </EntityType>
  239. <EntityType Name="BemsEnergyDailyRegression">
  240. <Key>
  241. <PropertyRef Name="SiteId" />
  242. </Key>
  243. <Property Name="SiteId" Type="int" Nullable="false" />
  244. <Property Name="Weekday_Power" Type="nvarchar" MaxLength="50" />
  245. <Property Name="Weekday_Power_Temp" Type="nvarchar" MaxLength="50" />
  246. <Property Name="Weekday_Gas" Type="nvarchar" MaxLength="50" />
  247. <Property Name="Weekday_Gas_Temp" Type="nvarchar" MaxLength="50" />
  248. <Property Name="Weekday_Water" Type="nvarchar" MaxLength="50" />
  249. <Property Name="Weekday_Water_Temp" Type="nvarchar" MaxLength="50" />
  250. <Property Name="Holiday_Power" Type="nvarchar" MaxLength="50" />
  251. <Property Name="Holiday_Power_Temp" Type="nvarchar" MaxLength="50" />
  252. <Property Name="Holiday_Gas" Type="nvarchar" MaxLength="50" />
  253. <Property Name="Holiday_Gas_Temp" Type="nvarchar" MaxLength="50" />
  254. <Property Name="Holiday_Water" Type="nvarchar" MaxLength="50" />
  255. <Property Name="Holiday_Water_Temp" Type="nvarchar" MaxLength="50" />
  256. <Property Name="IsRegression" Type="bit" />
  257. </EntityType>
  258. <EntityType Name="BemsFacilityType">
  259. <Key>
  260. <PropertyRef Name="FacilityTypeId" />
  261. </Key>
  262. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  263. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  264. </EntityType>
  265. <EntityType Name="BemsFactorCo2">
  266. <Key>
  267. <PropertyRef Name="FuelTypeId" />
  268. </Key>
  269. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  270. <Property Name="Factor" Type="float" Nullable="false" />
  271. </EntityType>
  272. <EntityType Name="BemsFactorToe">
  273. <Key>
  274. <PropertyRef Name="FuelTypeId" />
  275. </Key>
  276. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  277. <Property Name="TotalFactor" Type="float" Nullable="false" />
  278. <Property Name="PureFactor" Type="float" Nullable="false" />
  279. <Property Name="kcal" Type="float" />
  280. </EntityType>
  281. <EntityType Name="BemsFloorPlan">
  282. <Key>
  283. <PropertyRef Name="SiteId" />
  284. <PropertyRef Name="Name" />
  285. </Key>
  286. <Property Name="SiteId" Type="int" Nullable="false" />
  287. <Property Name="FloorId" Type="int" Nullable="false" />
  288. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  289. <Property Name="ImageFileId" Type="int" />
  290. </EntityType>
  291. <EntityType Name="BemsFloorStatus">
  292. <Key>
  293. <PropertyRef Name="SiteId" />
  294. <PropertyRef Name="FloorId" />
  295. <PropertyRef Name="FloorName" />
  296. <PropertyRef Name="ImageFileId" />
  297. <PropertyRef Name="Xvalue" />
  298. <PropertyRef Name="Yvalue" />
  299. <PropertyRef Name="PropertyId" />
  300. </Key>
  301. <Property Name="SiteId" Type="int" Nullable="false" />
  302. <Property Name="FloorId" Type="int" Nullable="false" />
  303. <Property Name="FloorName" Type="nvarchar" MaxLength="50" Nullable="false" />
  304. <Property Name="ImageFileId" Type="int" Nullable="false" />
  305. <Property Name="Xvalue" Type="int" Nullable="false" />
  306. <Property Name="Yvalue" Type="int" Nullable="false" />
  307. <Property Name="ZoneId" Type="int" />
  308. <Property Name="ServiceTypeId" Type="int" />
  309. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  310. <Property Name="FacilityCode" Type="int" Nullable="false" />
  311. <Property Name="PropertyId" Type="int" Nullable="false" />
  312. <Property Name="FacilityName" Type="nvarchar" MaxLength="64" />
  313. </EntityType>
  314. <EntityType Name="BemsFormula">
  315. <Key>
  316. <PropertyRef Name="SiteId" />
  317. <PropertyRef Name="FacilityTypeId" />
  318. <PropertyRef Name="FacilityCode" />
  319. <PropertyRef Name="FormulaId" />
  320. </Key>
  321. <Property Name="SiteId" Type="int" Nullable="false" />
  322. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  323. <Property Name="FacilityCode" Type="int" Nullable="false" />
  324. <Property Name="FormulaId" Type="int" Nullable="false" />
  325. <Property Name="Formula" Type="nvarchar" MaxLength="120" Nullable="false" />
  326. </EntityType>
  327. <EntityType Name="BemsFormulaBase">
  328. <Key>
  329. <PropertyRef Name="FacilityTypeId" />
  330. <PropertyRef Name="FormulaId" />
  331. </Key>
  332. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  333. <Property Name="FormulaId" Type="int" Nullable="false" />
  334. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  335. </EntityType>
  336. <EntityType Name="BemsFormulaParameter">
  337. <Key>
  338. <PropertyRef Name="SiteId" />
  339. <PropertyRef Name="FacilityCode" />
  340. <PropertyRef Name="FormulaId" />
  341. <PropertyRef Name="ParameterId" />
  342. </Key>
  343. <Property Name="SiteId" Type="int" Nullable="false" />
  344. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  345. <Property Name="FacilityCode" Type="int" Nullable="false" />
  346. <Property Name="FormulaId" Type="int" Nullable="false" />
  347. <Property Name="ParameterId" Type="nchar" MaxLength="1" Nullable="false" />
  348. <Property Name="ParameterFacilityCode" Type="int" Nullable="false" />
  349. <Property Name="ParameterPropertyId" Type="int" Nullable="false" />
  350. </EntityType>
  351. <EntityType Name="BemsFormulaTable">
  352. <Key>
  353. <PropertyRef Name="TableId" />
  354. </Key>
  355. <Property Name="TableId" Type="int" Nullable="false" />
  356. <Property Name="FunctionName" Type="nvarchar" MaxLength="20" Nullable="false" />
  357. <Property Name="Description" Type="nvarchar" MaxLength="80" Nullable="false" />
  358. </EntityType>
  359. <EntityType Name="BemsFormulaTableValue">
  360. <Key>
  361. <PropertyRef Name="TableId" />
  362. <PropertyRef Name="XValue" />
  363. </Key>
  364. <Property Name="TableId" Type="int" Nullable="false" />
  365. <Property Name="XValue" Type="float" Nullable="false" />
  366. <Property Name="YValue" Type="float" Nullable="false" />
  367. </EntityType>
  368. <EntityType Name="BemsFuelType">
  369. <Key>
  370. <PropertyRef Name="FuelTypeId" />
  371. </Key>
  372. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  373. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  374. </EntityType>
  375. <EntityType Name="BemsIceThermalStorageSimulation">
  376. <Key>
  377. <PropertyRef Name="SiteId" />
  378. <PropertyRef Name="FacilityCode" />
  379. <PropertyRef Name="PropertyId" />
  380. <PropertyRef Name="CreatedDateTime" />
  381. <PropertyRef Name="TargetDateTime" />
  382. <PropertyRef Name="SimulationCase" />
  383. </Key>
  384. <Property Name="SiteId" Type="int" Nullable="false" />
  385. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  386. <Property Name="FacilityCode" Type="int" Nullable="false" />
  387. <Property Name="PropertyId" Type="int" Nullable="false" />
  388. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  389. <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
  390. <Property Name="SimulationValue" Type="float" />
  391. <Property Name="SimulationCase" Type="int" Nullable="false" />
  392. </EntityType>
  393. <EntityType Name="BemsMonitoringPoint">
  394. <Key>
  395. <PropertyRef Name="SiteId" />
  396. <PropertyRef Name="FacilityCode" />
  397. <PropertyRef Name="PropertyId" />
  398. </Key>
  399. <Property Name="SiteId" Type="int" Nullable="false" />
  400. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  401. <Property Name="FacilityCode" Type="int" Nullable="false" />
  402. <Property Name="PropertyId" Type="int" Nullable="false" />
  403. <Property Name="ValueType" Type="int" Nullable="false" />
  404. <Property Name="ServiceTypeId" Type="smallint" />
  405. <Property Name="FuelTypeId" Type="smallint" />
  406. <Property Name="Name" Type="nvarchar" MaxLength="64" />
  407. <Property Name="Description" Type="nvarchar" MaxLength="256" />
  408. <Property Name="BuildingId" Type="int" />
  409. <Property Name="FloorId" Type="int" />
  410. <Property Name="ZoneId" Type="int" />
  411. </EntityType>
  412. <EntityType Name="BemsMonitoringPointBaseData">
  413. <Key>
  414. <PropertyRef Name="FacilityTypeId" />
  415. <PropertyRef Name="PropertyId" />
  416. </Key>
  417. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  418. <Property Name="PropertyId" Type="int" Nullable="false" />
  419. <Property Name="ValueType" Type="int" Nullable="false" />
  420. <Property Name="IsAccumulated" Type="bit" Nullable="false" />
  421. <Property Name="ServiceTypeId" Type="smallint" />
  422. <Property Name="FuelTypeId" Type="smallint" />
  423. <Property Name="Name" Type="nvarchar" MaxLength="64" />
  424. <Property Name="Description" Type="nvarchar" MaxLength="256" />
  425. <Property Name="IsSampled" Type="bit" />
  426. <Property Name="IsConverted" Type="bit" />
  427. </EntityType>
  428. <EntityType Name="BemsMonitoringPointConfig">
  429. <Key>
  430. <PropertyRef Name="SiteId" />
  431. <PropertyRef Name="FacilityCode" />
  432. <PropertyRef Name="PropertyId" />
  433. </Key>
  434. <Property Name="SiteId" Type="int" Nullable="false" />
  435. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  436. <Property Name="FacilityCode" Type="int" Nullable="false" />
  437. <Property Name="PropertyId" Type="int" Nullable="false" />
  438. <Property Name="IsAccumulated" Type="bit" Nullable="false" />
  439. <Property Name="IsSampled" Type="bit" Nullable="false" />
  440. <Property Name="SaveMode" Type="int" Nullable="false" />
  441. <Property Name="ControlPointName" Type="nvarchar" MaxLength="200" />
  442. <Property Name="IsConverted" Type="bit" />
  443. </EntityType>
  444. <EntityType Name="BemsMonitoringPointForecastingDayAhead">
  445. <Key>
  446. <PropertyRef Name="SiteId" />
  447. <PropertyRef Name="FacilityCode" />
  448. <PropertyRef Name="PropertyId" />
  449. <PropertyRef Name="CreatedDateTime" />
  450. <PropertyRef Name="TargetDateTime" />
  451. </Key>
  452. <Property Name="SiteId" Type="int" Nullable="false" />
  453. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  454. <Property Name="FacilityCode" Type="int" Nullable="false" />
  455. <Property Name="PropertyId" Type="int" Nullable="false" />
  456. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  457. <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
  458. <Property Name="ForecastedValue" Type="float" Nullable="false" />
  459. </EntityType>
  460. <EntityType Name="BemsMonitoringPointForecastingHourAhead">
  461. <Key>
  462. <PropertyRef Name="SiteId" />
  463. <PropertyRef Name="FacilityCode" />
  464. <PropertyRef Name="PropertyId" />
  465. <PropertyRef Name="CreatedDateTime" />
  466. <PropertyRef Name="TargetDateTime" />
  467. </Key>
  468. <Property Name="SiteId" Type="int" Nullable="false" />
  469. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  470. <Property Name="FacilityCode" Type="int" Nullable="false" />
  471. <Property Name="PropertyId" Type="int" Nullable="false" />
  472. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  473. <Property Name="TargetDateTime" Type="datetime" Nullable="false" />
  474. <Property Name="ForecastedValue" Type="float" Nullable="false" />
  475. </EntityType>
  476. <EntityType Name="BemsMonitoringPointHistory15min">
  477. <Key>
  478. <PropertyRef Name="SiteId" />
  479. <PropertyRef Name="FacilityCode" />
  480. <PropertyRef Name="PropertyId" />
  481. <PropertyRef Name="CreatedDateTime" />
  482. </Key>
  483. <Property Name="SiteId" Type="int" Nullable="false" />
  484. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  485. <Property Name="FacilityCode" Type="int" Nullable="false" />
  486. <Property Name="PropertyId" Type="int" Nullable="false" />
  487. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  488. <Property Name="CurrentValue" Type="float" Nullable="false" />
  489. </EntityType>
  490. <EntityType Name="BemsMonitoringPointHistory15minRawData">
  491. <Key>
  492. <PropertyRef Name="SiteId" />
  493. <PropertyRef Name="FacilityCode" />
  494. <PropertyRef Name="PropertyId" />
  495. <PropertyRef Name="CreatedDateTime" />
  496. </Key>
  497. <Property Name="SiteId" Type="int" Nullable="false" />
  498. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  499. <Property Name="FacilityCode" Type="int" Nullable="false" />
  500. <Property Name="PropertyId" Type="int" Nullable="false" />
  501. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  502. <Property Name="CurrentValue" Type="float" Nullable="false" />
  503. </EntityType>
  504. <EntityType Name="BemsMonitoringPointHistoryDaily">
  505. <Key>
  506. <PropertyRef Name="SiteId" />
  507. <PropertyRef Name="FacilityCode" />
  508. <PropertyRef Name="PropertyId" />
  509. <PropertyRef Name="CreatedDateTime" />
  510. </Key>
  511. <Property Name="SiteId" Type="int" Nullable="false" />
  512. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  513. <Property Name="FacilityCode" Type="int" Nullable="false" />
  514. <Property Name="PropertyId" Type="int" Nullable="false" />
  515. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  516. <Property Name="DailyValue" Type="float" Nullable="false" />
  517. <Property Name="MaxValue" Type="float" />
  518. <Property Name="MinValue" Type="float" />
  519. </EntityType>
  520. <EntityType Name="BemsMonitoringPointHistoryHourly">
  521. <Key>
  522. <PropertyRef Name="SiteId" />
  523. <PropertyRef Name="FacilityCode" />
  524. <PropertyRef Name="PropertyId" />
  525. <PropertyRef Name="CreatedDateTime" />
  526. </Key>
  527. <Property Name="SiteId" Type="int" Nullable="false" />
  528. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  529. <Property Name="FacilityCode" Type="int" Nullable="false" />
  530. <Property Name="PropertyId" Type="int" Nullable="false" />
  531. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  532. <Property Name="CurrentValue" Type="float" Nullable="false" />
  533. </EntityType>
  534. <EntityType Name="BemsMonitoringPointToAnlaysisType">
  535. <Key>
  536. <PropertyRef Name="SiteId" />
  537. <PropertyRef Name="FacilityTypeId" />
  538. <PropertyRef Name="FacilityCode" />
  539. <PropertyRef Name="PropertyId" />
  540. <PropertyRef Name="AnalysisType" />
  541. </Key>
  542. <Property Name="SiteId" Type="int" Nullable="false" />
  543. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  544. <Property Name="FacilityCode" Type="int" Nullable="false" />
  545. <Property Name="PropertyId" Type="int" Nullable="false" />
  546. <Property Name="AnalysisType" Type="int" Nullable="false" />
  547. </EntityType>
  548. <EntityType Name="BemsMonitoringPointWeatherForecasted">
  549. <Key>
  550. <PropertyRef Name="SiteId" />
  551. <PropertyRef Name="CreatedDateTime" />
  552. <PropertyRef Name="Category" />
  553. <PropertyRef Name="BaseDateTime" />
  554. <PropertyRef Name="ForecastedDateTime" />
  555. </Key>
  556. <Property Name="SiteId" Type="int" Nullable="false" />
  557. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  558. <Property Name="Category" Type="nvarchar" MaxLength="50" Nullable="false" />
  559. <Property Name="BaseDateTime" Type="datetime" Nullable="false" />
  560. <Property Name="ForecastedDateTime" Type="datetime" Nullable="false" />
  561. <Property Name="ForecastedValue" Type="float" Nullable="false" />
  562. <Property Name="nx" Type="int" Nullable="false" />
  563. <Property Name="ny" Type="int" Nullable="false" />
  564. </EntityType>
  565. <EntityType Name="BemsNoticePriceBase">
  566. <Key>
  567. <PropertyRef Name="SiteId" />
  568. <PropertyRef Name="FuelTypeId" />
  569. <PropertyRef Name="ApplyDate" />
  570. <PropertyRef Name="ContractType" />
  571. </Key>
  572. <Property Name="SiteId" Type="int" Nullable="false" />
  573. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  574. <Property Name="ApplyDate" Type="date" Nullable="false" />
  575. <Property Name="ContractType" Type="smallint" Nullable="false" />
  576. <Property Name="PrimaryPrice" Type="int" />
  577. <Property Name="SecondaryPrice" Type="int" />
  578. </EntityType>
  579. <EntityType Name="BemsNoticePriceContractType">
  580. <Key>
  581. <PropertyRef Name="FuelTypeId" />
  582. <PropertyRef Name="ContractType" />
  583. </Key>
  584. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  585. <Property Name="ContractType" Type="smallint" Nullable="false" />
  586. <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
  587. </EntityType>
  588. <EntityType Name="BemsNoticePriceDetail">
  589. <Key>
  590. <PropertyRef Name="SiteId" />
  591. <PropertyRef Name="FuelTypeId" />
  592. <PropertyRef Name="ApplyDate" />
  593. <PropertyRef Name="ContractType" />
  594. <PropertyRef Name="DataId" />
  595. </Key>
  596. <Property Name="SiteId" Type="int" Nullable="false" />
  597. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  598. <Property Name="ApplyDate" Type="date" Nullable="false" />
  599. <Property Name="ContractType" Type="smallint" Nullable="false" />
  600. <Property Name="DataId" Type="smallint" Nullable="false" />
  601. <Property Name="P01" Type="float" />
  602. <Property Name="P02" Type="float" />
  603. <Property Name="P03" Type="float" />
  604. <Property Name="P04" Type="float" />
  605. <Property Name="P05" Type="float" />
  606. <Property Name="P06" Type="float" />
  607. <Property Name="P07" Type="float" />
  608. <Property Name="P08" Type="float" />
  609. <Property Name="P09" Type="float" />
  610. <Property Name="P10" Type="float" />
  611. <Property Name="P11" Type="float" />
  612. <Property Name="P12" Type="float" />
  613. </EntityType>
  614. <EntityType Name="BemsPeakFacility">
  615. <Key>
  616. <PropertyRef Name="SiteId" />
  617. <PropertyRef Name="MaxDateTime" />
  618. <PropertyRef Name="FacilityCode" />
  619. </Key>
  620. <Property Name="SiteId" Type="int" Nullable="false" />
  621. <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
  622. <Property Name="FacilityCode" Type="int" Nullable="false" />
  623. </EntityType>
  624. <EntityType Name="BemsPeakHistory">
  625. <Key>
  626. <PropertyRef Name="SiteId" />
  627. <PropertyRef Name="CreatedDateTime" />
  628. </Key>
  629. <Property Name="SiteId" Type="int" Nullable="false" />
  630. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  631. <Property Name="CurrentValue" Type="float" Nullable="false" />
  632. </EntityType>
  633. <EntityType Name="BemsPeakHistoryDaily">
  634. <Key>
  635. <PropertyRef Name="SiteId" />
  636. <PropertyRef Name="CreatedDateTime" />
  637. </Key>
  638. <Property Name="SiteId" Type="int" Nullable="false" />
  639. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  640. <Property Name="MaxPeakValue" Type="float" />
  641. <Property Name="MaxDateTime" Type="datetime" />
  642. <Property Name="MinPeakValue" Type="float" />
  643. <Property Name="MinDateTime" Type="datetime" />
  644. </EntityType>
  645. <EntityType Name="BemsPeakInfo">
  646. <Key>
  647. <PropertyRef Name="SiteId" />
  648. </Key>
  649. <Property Name="SiteId" Type="int" Nullable="false" />
  650. <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
  651. <Property Name="MaxPeakValue" Type="float" Nullable="false" />
  652. <Property Name="MinDateTime" Type="datetime" Nullable="false" />
  653. <Property Name="MinPeakValue" Type="float" Nullable="false" />
  654. <Property Name="todayMaxPeakValue" Type="float" Nullable="false" />
  655. <Property Name="todayMinPeakValue" Type="float" Nullable="false" />
  656. </EntityType>
  657. <EntityType Name="BemsPeopleIncrease">
  658. <Key>
  659. <PropertyRef Name="Date" />
  660. <PropertyRef Name="SiteId" />
  661. </Key>
  662. <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
  663. <Property Name="SiteId" Type="int" Nullable="false" />
  664. <Property Name="m1" Type="nvarchar" MaxLength="50" />
  665. <Property Name="m2" Type="nvarchar" MaxLength="50" />
  666. <Property Name="m3" Type="nvarchar" MaxLength="50" />
  667. <Property Name="m4" Type="nvarchar" MaxLength="50" />
  668. <Property Name="m5" Type="nvarchar" MaxLength="50" />
  669. <Property Name="m6" Type="nvarchar" MaxLength="50" />
  670. <Property Name="m7" Type="nvarchar" MaxLength="50" />
  671. <Property Name="m8" Type="nvarchar" MaxLength="50" />
  672. <Property Name="m9" Type="nvarchar" MaxLength="50" />
  673. <Property Name="m10" Type="nvarchar" MaxLength="50" />
  674. <Property Name="m11" Type="nvarchar" MaxLength="50" />
  675. <Property Name="m12" Type="nvarchar" MaxLength="50" />
  676. </EntityType>
  677. <EntityType Name="BemsPriceCode">
  678. <Key>
  679. <PropertyRef Name="PriceCode" />
  680. </Key>
  681. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  682. <Property Name="PriceCodeDesc" Type="varchar" MaxLength="200" />
  683. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  684. <Property Name="Unit" Type="varchar" MaxLength="20" />
  685. </EntityType>
  686. <EntityType Name="BemsPriceFormula">
  687. <Key>
  688. <PropertyRef Name="SiteId" />
  689. <PropertyRef Name="PriceTypeId" />
  690. <PropertyRef Name="FacilityTypeId" />
  691. <PropertyRef Name="FormulaId" />
  692. <PropertyRef Name="FacilityCode" />
  693. </Key>
  694. <Property Name="SiteId" Type="int" Nullable="false" />
  695. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  696. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  697. <Property Name="FormulaId" Type="int" Nullable="false" />
  698. <Property Name="FacilityCode" Type="int" Nullable="false" />
  699. <Property Name="UseYN" Type="nvarchar" MaxLength="1" Nullable="false" />
  700. </EntityType>
  701. <EntityType Name="BemsPriceMeta">
  702. <Key>
  703. <PropertyRef Name="PriceTypeId" />
  704. <PropertyRef Name="PublishDate" />
  705. </Key>
  706. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  707. <Property Name="PublishDate" Type="datetime" Nullable="false" />
  708. <Property Name="BasePrice" Type="int" />
  709. <Property Name="01_00" Type="float" />
  710. <Property Name="01_01" Type="float" />
  711. <Property Name="01_02" Type="float" />
  712. <Property Name="01_03" Type="float" />
  713. <Property Name="01_04" Type="float" />
  714. <Property Name="01_05" Type="float" />
  715. <Property Name="01_06" Type="float" />
  716. <Property Name="01_07" Type="float" />
  717. <Property Name="01_08" Type="float" />
  718. <Property Name="01_09" Type="float" />
  719. <Property Name="01_10" Type="float" />
  720. <Property Name="01_11" Type="float" />
  721. <Property Name="01_12" Type="float" />
  722. <Property Name="01_13" Type="float" />
  723. <Property Name="01_14" Type="float" />
  724. <Property Name="01_15" Type="float" />
  725. <Property Name="01_16" Type="float" />
  726. <Property Name="01_17" Type="float" />
  727. <Property Name="01_18" Type="float" />
  728. <Property Name="01_19" Type="float" />
  729. <Property Name="01_20" Type="float" />
  730. <Property Name="01_21" Type="float" />
  731. <Property Name="01_22" Type="float" />
  732. <Property Name="01_23" Type="float" />
  733. <Property Name="02_00" Type="float" />
  734. <Property Name="02_01" Type="float" />
  735. <Property Name="02_02" Type="float" />
  736. <Property Name="02_03" Type="float" />
  737. <Property Name="02_04" Type="float" />
  738. <Property Name="02_05" Type="float" />
  739. <Property Name="02_06" Type="float" />
  740. <Property Name="02_07" Type="float" />
  741. <Property Name="02_08" Type="float" />
  742. <Property Name="02_09" Type="float" />
  743. <Property Name="02_10" Type="float" />
  744. <Property Name="02_11" Type="float" />
  745. <Property Name="02_12" Type="float" />
  746. <Property Name="02_13" Type="float" />
  747. <Property Name="02_14" Type="float" />
  748. <Property Name="02_15" Type="float" />
  749. <Property Name="02_16" Type="float" />
  750. <Property Name="02_17" Type="float" />
  751. <Property Name="02_18" Type="float" />
  752. <Property Name="02_19" Type="float" />
  753. <Property Name="02_20" Type="float" />
  754. <Property Name="02_21" Type="float" />
  755. <Property Name="02_22" Type="float" />
  756. <Property Name="02_23" Type="float" />
  757. <Property Name="03_00" Type="float" />
  758. <Property Name="03_01" Type="float" />
  759. <Property Name="03_02" Type="float" />
  760. <Property Name="03_03" Type="float" />
  761. <Property Name="03_04" Type="float" />
  762. <Property Name="03_05" Type="float" />
  763. <Property Name="03_06" Type="float" />
  764. <Property Name="03_07" Type="float" />
  765. <Property Name="03_08" Type="float" />
  766. <Property Name="03_09" Type="float" />
  767. <Property Name="03_10" Type="float" />
  768. <Property Name="03_11" Type="float" />
  769. <Property Name="03_12" Type="float" />
  770. <Property Name="03_13" Type="float" />
  771. <Property Name="03_14" Type="float" />
  772. <Property Name="03_15" Type="float" />
  773. <Property Name="03_16" Type="float" />
  774. <Property Name="03_17" Type="float" />
  775. <Property Name="03_18" Type="float" />
  776. <Property Name="03_19" Type="float" />
  777. <Property Name="03_20" Type="float" />
  778. <Property Name="03_21" Type="float" />
  779. <Property Name="03_22" Type="float" />
  780. <Property Name="03_23" Type="float" />
  781. <Property Name="04_00" Type="float" />
  782. <Property Name="04_01" Type="float" />
  783. <Property Name="04_02" Type="float" />
  784. <Property Name="04_03" Type="float" />
  785. <Property Name="04_04" Type="float" />
  786. <Property Name="04_05" Type="float" />
  787. <Property Name="04_06" Type="float" />
  788. <Property Name="04_07" Type="float" />
  789. <Property Name="04_08" Type="float" />
  790. <Property Name="04_09" Type="float" />
  791. <Property Name="04_10" Type="float" />
  792. <Property Name="04_11" Type="float" />
  793. <Property Name="04_12" Type="float" />
  794. <Property Name="04_13" Type="float" />
  795. <Property Name="04_14" Type="float" />
  796. <Property Name="04_15" Type="float" />
  797. <Property Name="04_16" Type="float" />
  798. <Property Name="04_17" Type="float" />
  799. <Property Name="04_18" Type="float" />
  800. <Property Name="04_19" Type="float" />
  801. <Property Name="04_20" Type="float" />
  802. <Property Name="04_21" Type="float" />
  803. <Property Name="04_22" Type="float" />
  804. <Property Name="04_23" Type="float" />
  805. <Property Name="05_00" Type="float" />
  806. <Property Name="05_01" Type="float" />
  807. <Property Name="05_02" Type="float" />
  808. <Property Name="05_03" Type="float" />
  809. <Property Name="05_04" Type="float" />
  810. <Property Name="05_05" Type="float" />
  811. <Property Name="05_06" Type="float" />
  812. <Property Name="05_07" Type="float" />
  813. <Property Name="05_08" Type="float" />
  814. <Property Name="05_09" Type="float" />
  815. <Property Name="05_10" Type="float" />
  816. <Property Name="05_11" Type="float" />
  817. <Property Name="05_12" Type="float" />
  818. <Property Name="05_13" Type="float" />
  819. <Property Name="05_14" Type="float" />
  820. <Property Name="05_15" Type="float" />
  821. <Property Name="05_16" Type="float" />
  822. <Property Name="05_17" Type="float" />
  823. <Property Name="05_18" Type="float" />
  824. <Property Name="05_19" Type="float" />
  825. <Property Name="05_20" Type="float" />
  826. <Property Name="05_21" Type="float" />
  827. <Property Name="05_22" Type="float" />
  828. <Property Name="05_23" Type="float" />
  829. <Property Name="06_00" Type="float" />
  830. <Property Name="06_01" Type="float" />
  831. <Property Name="06_02" Type="float" />
  832. <Property Name="06_03" Type="float" />
  833. <Property Name="06_04" Type="float" />
  834. <Property Name="06_05" Type="float" />
  835. <Property Name="06_06" Type="float" />
  836. <Property Name="06_07" Type="float" />
  837. <Property Name="06_08" Type="float" />
  838. <Property Name="06_09" Type="float" />
  839. <Property Name="06_10" Type="float" />
  840. <Property Name="06_11" Type="float" />
  841. <Property Name="06_12" Type="float" />
  842. <Property Name="06_13" Type="float" />
  843. <Property Name="06_14" Type="float" />
  844. <Property Name="06_15" Type="float" />
  845. <Property Name="06_16" Type="float" />
  846. <Property Name="06_17" Type="float" />
  847. <Property Name="06_18" Type="float" />
  848. <Property Name="06_19" Type="float" />
  849. <Property Name="06_20" Type="float" />
  850. <Property Name="06_21" Type="float" />
  851. <Property Name="06_22" Type="float" />
  852. <Property Name="06_23" Type="float" />
  853. <Property Name="07_00" Type="float" />
  854. <Property Name="07_01" Type="float" />
  855. <Property Name="07_02" Type="float" />
  856. <Property Name="07_03" Type="float" />
  857. <Property Name="07_04" Type="float" />
  858. <Property Name="07_05" Type="float" />
  859. <Property Name="07_06" Type="float" />
  860. <Property Name="07_07" Type="float" />
  861. <Property Name="07_08" Type="float" />
  862. <Property Name="07_09" Type="float" />
  863. <Property Name="07_10" Type="float" />
  864. <Property Name="07_11" Type="float" />
  865. <Property Name="07_12" Type="float" />
  866. <Property Name="07_13" Type="float" />
  867. <Property Name="07_14" Type="float" />
  868. <Property Name="07_15" Type="float" />
  869. <Property Name="07_16" Type="float" />
  870. <Property Name="07_17" Type="float" />
  871. <Property Name="07_18" Type="float" />
  872. <Property Name="07_19" Type="float" />
  873. <Property Name="07_20" Type="float" />
  874. <Property Name="07_21" Type="float" />
  875. <Property Name="07_22" Type="float" />
  876. <Property Name="07_23" Type="float" />
  877. <Property Name="08_00" Type="float" />
  878. <Property Name="08_01" Type="float" />
  879. <Property Name="08_02" Type="float" />
  880. <Property Name="08_03" Type="float" />
  881. <Property Name="08_04" Type="float" />
  882. <Property Name="08_05" Type="float" />
  883. <Property Name="08_06" Type="float" />
  884. <Property Name="08_07" Type="float" />
  885. <Property Name="08_08" Type="float" />
  886. <Property Name="08_09" Type="float" />
  887. <Property Name="08_10" Type="float" />
  888. <Property Name="08_11" Type="float" />
  889. <Property Name="08_12" Type="float" />
  890. <Property Name="08_13" Type="float" />
  891. <Property Name="08_14" Type="float" />
  892. <Property Name="08_15" Type="float" />
  893. <Property Name="08_16" Type="float" />
  894. <Property Name="08_17" Type="float" />
  895. <Property Name="08_18" Type="float" />
  896. <Property Name="08_19" Type="float" />
  897. <Property Name="08_20" Type="float" />
  898. <Property Name="08_21" Type="float" />
  899. <Property Name="08_22" Type="float" />
  900. <Property Name="08_23" Type="float" />
  901. <Property Name="09_00" Type="float" />
  902. <Property Name="09_01" Type="float" />
  903. <Property Name="09_02" Type="float" />
  904. <Property Name="09_03" Type="float" />
  905. <Property Name="09_04" Type="float" />
  906. <Property Name="09_05" Type="float" />
  907. <Property Name="09_06" Type="float" />
  908. <Property Name="09_07" Type="float" />
  909. <Property Name="09_08" Type="float" />
  910. <Property Name="09_09" Type="float" />
  911. <Property Name="09_10" Type="float" />
  912. <Property Name="09_11" Type="float" />
  913. <Property Name="09_12" Type="float" />
  914. <Property Name="09_13" Type="float" />
  915. <Property Name="09_14" Type="float" />
  916. <Property Name="09_15" Type="float" />
  917. <Property Name="09_16" Type="float" />
  918. <Property Name="09_17" Type="float" />
  919. <Property Name="09_18" Type="float" />
  920. <Property Name="09_19" Type="float" />
  921. <Property Name="09_20" Type="float" />
  922. <Property Name="09_21" Type="float" />
  923. <Property Name="09_22" Type="float" />
  924. <Property Name="09_23" Type="float" />
  925. <Property Name="10_00" Type="float" />
  926. <Property Name="10_01" Type="float" />
  927. <Property Name="10_02" Type="float" />
  928. <Property Name="10_03" Type="float" />
  929. <Property Name="10_04" Type="float" />
  930. <Property Name="10_05" Type="float" />
  931. <Property Name="10_06" Type="float" />
  932. <Property Name="10_07" Type="float" />
  933. <Property Name="10_08" Type="float" />
  934. <Property Name="10_09" Type="float" />
  935. <Property Name="10_10" Type="float" />
  936. <Property Name="10_11" Type="float" />
  937. <Property Name="10_12" Type="float" />
  938. <Property Name="10_13" Type="float" />
  939. <Property Name="10_14" Type="float" />
  940. <Property Name="10_15" Type="float" />
  941. <Property Name="10_16" Type="float" />
  942. <Property Name="10_17" Type="float" />
  943. <Property Name="10_18" Type="float" />
  944. <Property Name="10_19" Type="float" />
  945. <Property Name="10_20" Type="float" />
  946. <Property Name="10_21" Type="float" />
  947. <Property Name="10_22" Type="float" />
  948. <Property Name="10_23" Type="float" />
  949. <Property Name="11_00" Type="float" />
  950. <Property Name="11_01" Type="float" />
  951. <Property Name="11_02" Type="float" />
  952. <Property Name="11_03" Type="float" />
  953. <Property Name="11_04" Type="float" />
  954. <Property Name="11_05" Type="float" />
  955. <Property Name="11_06" Type="float" />
  956. <Property Name="11_07" Type="float" />
  957. <Property Name="11_08" Type="float" />
  958. <Property Name="11_09" Type="float" />
  959. <Property Name="11_10" Type="float" />
  960. <Property Name="11_11" Type="float" />
  961. <Property Name="11_12" Type="float" />
  962. <Property Name="11_13" Type="float" />
  963. <Property Name="11_14" Type="float" />
  964. <Property Name="11_15" Type="float" />
  965. <Property Name="11_16" Type="float" />
  966. <Property Name="11_17" Type="float" />
  967. <Property Name="11_18" Type="float" />
  968. <Property Name="11_19" Type="float" />
  969. <Property Name="11_20" Type="float" />
  970. <Property Name="11_21" Type="float" />
  971. <Property Name="11_22" Type="float" />
  972. <Property Name="11_23" Type="float" />
  973. <Property Name="12_00" Type="float" />
  974. <Property Name="12_01" Type="float" />
  975. <Property Name="12_02" Type="float" />
  976. <Property Name="12_03" Type="float" />
  977. <Property Name="12_04" Type="float" />
  978. <Property Name="12_05" Type="float" />
  979. <Property Name="12_06" Type="float" />
  980. <Property Name="12_07" Type="float" />
  981. <Property Name="12_08" Type="float" />
  982. <Property Name="12_09" Type="float" />
  983. <Property Name="12_10" Type="float" />
  984. <Property Name="12_11" Type="float" />
  985. <Property Name="12_12" Type="float" />
  986. <Property Name="12_13" Type="float" />
  987. <Property Name="12_14" Type="float" />
  988. <Property Name="12_15" Type="float" />
  989. <Property Name="12_16" Type="float" />
  990. <Property Name="12_17" Type="float" />
  991. <Property Name="12_18" Type="float" />
  992. <Property Name="12_19" Type="float" />
  993. <Property Name="12_20" Type="float" />
  994. <Property Name="12_21" Type="float" />
  995. <Property Name="12_22" Type="float" />
  996. <Property Name="12_23" Type="float" />
  997. </EntityType>
  998. <EntityType Name="BemsPriceType">
  999. <Key>
  1000. <PropertyRef Name="PriceTypeId" />
  1001. </Key>
  1002. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1003. <Property Name="PriceTypeIdDesc" Type="varchar" MaxLength="200" />
  1004. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1005. </EntityType>
  1006. <EntityType Name="BemsRentalRate">
  1007. <Key>
  1008. <PropertyRef Name="Date" />
  1009. <PropertyRef Name="SiteId" />
  1010. </Key>
  1011. <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
  1012. <Property Name="SiteId" Type="int" Nullable="false" />
  1013. <Property Name="m1" Type="nvarchar" MaxLength="50" />
  1014. <Property Name="m2" Type="nvarchar" MaxLength="50" />
  1015. <Property Name="m3" Type="nvarchar" MaxLength="50" />
  1016. <Property Name="m4" Type="nvarchar" MaxLength="50" />
  1017. <Property Name="m5" Type="nvarchar" MaxLength="50" />
  1018. <Property Name="m6" Type="nvarchar" MaxLength="50" />
  1019. <Property Name="m7" Type="nvarchar" MaxLength="50" />
  1020. <Property Name="m8" Type="nvarchar" MaxLength="50" />
  1021. <Property Name="m9" Type="nvarchar" MaxLength="50" />
  1022. <Property Name="m10" Type="nvarchar" MaxLength="50" />
  1023. <Property Name="m11" Type="nvarchar" MaxLength="50" />
  1024. <Property Name="m12" Type="nvarchar" MaxLength="50" />
  1025. </EntityType>
  1026. <EntityType Name="BemsReportFormat">
  1027. <Key>
  1028. <PropertyRef Name="ReportFormatId" />
  1029. <PropertyRef Name="parts" />
  1030. </Key>
  1031. <Property Name="ReportFormatId" Type="int" Nullable="false" />
  1032. <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
  1033. <Property Name="Content" Type="varchar(max)" />
  1034. <Property Name="parts" Type="int" Nullable="false" />
  1035. </EntityType>
  1036. <EntityType Name="BemsReportHistory">
  1037. <Key>
  1038. <PropertyRef Name="Seq" />
  1039. <PropertyRef Name="DateTime" />
  1040. <PropertyRef Name="ReportFormatId" />
  1041. <PropertyRef Name="parts" />
  1042. </Key>
  1043. <Property Name="SiteId" Type="int" Nullable="false" />
  1044. <Property Name="Seq" Type="int" Nullable="false" />
  1045. <Property Name="DateTime" Type="datetime" Nullable="false" />
  1046. <Property Name="ReportName" Type="varchar" MaxLength="200" Nullable="false" />
  1047. <Property Name="ReportFormatId" Type="int" Nullable="false" />
  1048. <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
  1049. <Property Name="Content" Type="varchar(max)" />
  1050. <Property Name="Writer" Type="varchar" MaxLength="50" />
  1051. <Property Name="Confirm1" Type="varchar" MaxLength="50" />
  1052. <Property Name="Confirm2" Type="varchar" MaxLength="50" />
  1053. <Property Name="parts" Type="int" Nullable="false" />
  1054. <Property Name="FileName" Type="nvarchar" MaxLength="100" />
  1055. </EntityType>
  1056. <EntityType Name="BemsServiceType">
  1057. <Key>
  1058. <PropertyRef Name="ServiceTypeId" />
  1059. </Key>
  1060. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1061. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  1062. </EntityType>
  1063. <EntityType Name="BemsSitePrice">
  1064. <Key>
  1065. <PropertyRef Name="SiteID" />
  1066. <PropertyRef Name="FuelTypeId" />
  1067. <PropertyRef Name="PriceTypeId" />
  1068. <PropertyRef Name="PriceCode" />
  1069. </Key>
  1070. <Property Name="SiteID" Type="int" Nullable="false" />
  1071. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1072. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1073. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  1074. <Property Name="UseYN" Type="varchar" MaxLength="1" Nullable="false" />
  1075. </EntityType>
  1076. <EntityType Name="BemsSitePriceHistory">
  1077. <Key>
  1078. <PropertyRef Name="SiteId" />
  1079. <PropertyRef Name="FuelTypeId" />
  1080. <PropertyRef Name="PriceTypeId" />
  1081. <PropertyRef Name="PriceCode" />
  1082. <PropertyRef Name="PayDate" />
  1083. </Key>
  1084. <Property Name="SiteId" Type="int" Nullable="false" />
  1085. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1086. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1087. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  1088. <Property Name="PriceValue" Type="varchar" MaxLength="200" />
  1089. <Property Name="PayDate" Type="varchar" MaxLength="6" Nullable="false" />
  1090. <Property Name="StartDate" Type="datetime" />
  1091. <Property Name="EndDate" Type="datetime" />
  1092. <Property Name="PayCharge" Type="varchar" MaxLength="200" />
  1093. </EntityType>
  1094. <EntityType Name="CmAlarmAdmin">
  1095. <Key>
  1096. <PropertyRef Name="SiteId" />
  1097. </Key>
  1098. <Property Name="SiteId" Type="int" Nullable="false" />
  1099. <Property Name="UserCode" Type="nvarchar" MaxLength="50" />
  1100. <Property Name="DeptCode" Type="nvarchar" MaxLength="50" />
  1101. <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
  1102. <Property Name="EmailAddress" Type="nvarchar" MaxLength="50" />
  1103. <Property Name="EmailPassword" Type="nvarchar" MaxLength="50" />
  1104. </EntityType>
  1105. <EntityType Name="CmAnnouncement">
  1106. <Key>
  1107. <PropertyRef Name="SiteId" />
  1108. <PropertyRef Name="AnnouncementId" />
  1109. </Key>
  1110. <Property Name="SiteId" Type="int" Nullable="false" />
  1111. <Property Name="AnnouncementId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1112. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  1113. <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
  1114. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  1115. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1116. <Property Name="FileId" Type="int" />
  1117. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1118. <Property Name="UpdateDate" Type="datetime" Nullable="false" />
  1119. <Property Name="IsUse" Type="bit" />
  1120. <Property Name="ReadCount" Type="int" Nullable="false" />
  1121. </EntityType>
  1122. <EntityType Name="CmBuilding">
  1123. <Key>
  1124. <PropertyRef Name="SiteId" />
  1125. <PropertyRef Name="BuildingId" />
  1126. </Key>
  1127. <Property Name="SiteId" Type="int" Nullable="false" />
  1128. <Property Name="BuildingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1129. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1130. <Property Name="FileId" Type="int" />
  1131. <Property Name="IsUse" Type="bit" />
  1132. <Property Name="SortOrderNo" Type="int" />
  1133. </EntityType>
  1134. <EntityType Name="CmBusinessField">
  1135. <Key>
  1136. <PropertyRef Name="SiteId" />
  1137. <PropertyRef Name="BusinessFieldId" />
  1138. </Key>
  1139. <Property Name="SiteId" Type="int" Nullable="false" />
  1140. <Property Name="BusinessFieldId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1141. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1142. <Property Name="IsUse" Type="bit" />
  1143. </EntityType>
  1144. <EntityType Name="CmCompany">
  1145. <Key>
  1146. <PropertyRef Name="SiteId" />
  1147. <PropertyRef Name="CompanyId" />
  1148. </Key>
  1149. <Property Name="SiteId" Type="int" Nullable="false" />
  1150. <Property Name="CompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1151. <Property Name="CompanyTypeId" Type="int" Nullable="false" />
  1152. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1153. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1154. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  1155. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" Nullable="false" />
  1156. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  1157. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  1158. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  1159. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1160. <Property Name="Address1" Type="nvarchar" MaxLength="50" />
  1161. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1162. <Property Name="Homepage" Type="nvarchar" MaxLength="100" />
  1163. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1164. <Property Name="IsUse" Type="bit" />
  1165. </EntityType>
  1166. <EntityType Name="CmCompanyType">
  1167. <Key>
  1168. <PropertyRef Name="SiteId" />
  1169. <PropertyRef Name="CompanyTypeId" />
  1170. </Key>
  1171. <Property Name="SiteId" Type="int" Nullable="false" />
  1172. <Property Name="CompanyTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1173. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1174. <Property Name="IsUse" Type="bit" />
  1175. </EntityType>
  1176. <EntityType Name="CmDepartment">
  1177. <Key>
  1178. <PropertyRef Name="SiteId" />
  1179. <PropertyRef Name="CompanyId" />
  1180. <PropertyRef Name="DepartmentId" />
  1181. </Key>
  1182. <Property Name="SiteId" Type="int" Nullable="false" />
  1183. <Property Name="CompanyId" Type="int" Nullable="false" />
  1184. <Property Name="DepartmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1185. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1186. <Property Name="ShortName" Type="nvarchar" MaxLength="50" />
  1187. <Property Name="FaxNo" Type="nvarchar" MaxLength="50" />
  1188. <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
  1189. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1190. <Property Name="IsUse" Type="bit" />
  1191. </EntityType>
  1192. <EntityType Name="CmFacility">
  1193. <Key>
  1194. <PropertyRef Name="SiteId" />
  1195. <PropertyRef Name="FacilityCode" />
  1196. </Key>
  1197. <Property Name="SiteId" Type="int" Nullable="false" />
  1198. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  1199. <Property Name="FacilityCode" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1200. <Property Name="FirstClassId" Type="int" />
  1201. <Property Name="SecondClassId" Type="int" />
  1202. <Property Name="ThirdClassId" Type="int" />
  1203. <Property Name="DeviceType" Type="nvarchar" MaxLength="48" />
  1204. <Property Name="ParentFacilityCode" Type="int" />
  1205. <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
  1206. <Property Name="Nickname" Type="nvarchar" MaxLength="40" />
  1207. <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
  1208. <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
  1209. <Property Name="ManufactureDate" Type="date" />
  1210. <Property Name="ManufactureSerial" Type="nvarchar" MaxLength="20" />
  1211. <Property Name="ManufactureModel" Type="nvarchar" MaxLength="40" />
  1212. <Property Name="Supplier" Type="nvarchar" MaxLength="40" />
  1213. <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
  1214. <Property Name="BuildingId" Type="int" />
  1215. <Property Name="FloorId" Type="int" />
  1216. <Property Name="ZoneId" Type="int" />
  1217. <Property Name="InstallDate" Type="date" />
  1218. <Property Name="OperationStartDate" Type="date" />
  1219. <Property Name="FacilityCapacity" Type="nvarchar" MaxLength="40" />
  1220. <Property Name="FacilityCost" Type="int" />
  1221. <Property Name="FacilityCount" Type="int" />
  1222. <Property Name="FacilitySeviceLifeYear" Type="int" />
  1223. <Property Name="FacilityUsage" Type="nvarchar" MaxLength="80" />
  1224. <Property Name="RatedPowerConsumption" Type="nvarchar" MaxLength="40" />
  1225. <Property Name="RatedCOP" Type="float" />
  1226. <Property Name="MainContactorUserId" Type="nvarchar" MaxLength="24" />
  1227. <Property Name="SubContactorUserId" Type="nvarchar" MaxLength="24" />
  1228. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  1229. <Property Name="Reserved1" Type="nvarchar" MaxLength="64" />
  1230. <Property Name="Reserved2" Type="nvarchar" MaxLength="64" />
  1231. <Property Name="IsUse" Type="bit" />
  1232. <Property Name="FileId" Type="int" />
  1233. <Property Name="IsVirtualFacility" Type="bit" Nullable="false" />
  1234. <Property Name="FuelTypeId" Type="smallint" />
  1235. <Property Name="ContractType" Type="smallint" />
  1236. </EntityType>
  1237. <EntityType Name="CmFacilityFile">
  1238. <Key>
  1239. <PropertyRef Name="SiteId" />
  1240. <PropertyRef Name="FileId" />
  1241. </Key>
  1242. <Property Name="SiteId" Type="int" Nullable="false" />
  1243. <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1244. <Property Name="FacilityCode" Type="int" Nullable="false" />
  1245. <Property Name="InsertedDate" Type="datetime" />
  1246. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  1247. <Property Name="UpdatedDate" Type="datetime" />
  1248. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1249. </EntityType>
  1250. <EntityType Name="CmFacilityTempSet">
  1251. <Key>
  1252. <PropertyRef Name="SiteId" />
  1253. <PropertyRef Name="FacilityCode" />
  1254. </Key>
  1255. <Property Name="SiteId" Type="int" Nullable="false" />
  1256. <Property Name="FacilityCode" Type="int" Nullable="false" />
  1257. <Property Name="T1" Type="float" Nullable="false" />
  1258. <Property Name="T2" Type="float" Nullable="false" />
  1259. <Property Name="T3" Type="float" Nullable="false" />
  1260. <Property Name="T4" Type="float" Nullable="false" />
  1261. <Property Name="T5" Type="float" Nullable="false" />
  1262. <Property Name="T6" Type="float" Nullable="false" />
  1263. <Property Name="T7" Type="float" Nullable="false" />
  1264. <Property Name="T8" Type="float" Nullable="false" />
  1265. <Property Name="T9" Type="float" Nullable="false" />
  1266. <Property Name="T10" Type="float" Nullable="false" />
  1267. <Property Name="T11" Type="float" Nullable="false" />
  1268. <Property Name="T12" Type="float" Nullable="false" />
  1269. </EntityType>
  1270. <EntityType Name="CmFile">
  1271. <Key>
  1272. <PropertyRef Name="SiteId" />
  1273. <PropertyRef Name="FileId" />
  1274. </Key>
  1275. <Property Name="SiteId" Type="int" Nullable="false" />
  1276. <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1277. <Property Name="FileCategoryId" Type="int" Nullable="false" />
  1278. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1279. <Property Name="FileSize" Type="int" />
  1280. <Property Name="CreatedDate" Type="datetime" />
  1281. <Property Name="ContentType" Type="nvarchar" MaxLength="128" />
  1282. </EntityType>
  1283. <EntityType Name="CmFileCategory">
  1284. <Key>
  1285. <PropertyRef Name="FileCategoryId" />
  1286. </Key>
  1287. <Property Name="FileCategoryId" Type="int" Nullable="false" />
  1288. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1289. </EntityType>
  1290. <EntityType Name="CmFloor">
  1291. <Key>
  1292. <PropertyRef Name="SiteId" />
  1293. <PropertyRef Name="BuildingId" />
  1294. <PropertyRef Name="FloorId" />
  1295. </Key>
  1296. <Property Name="SiteId" Type="int" Nullable="false" />
  1297. <Property Name="BuildingId" Type="int" Nullable="false" />
  1298. <Property Name="FloorId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1299. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1300. </EntityType>
  1301. <EntityType Name="CmHoliday">
  1302. <Key>
  1303. <PropertyRef Name="SiteId" />
  1304. <PropertyRef Name="HolidayMonth" />
  1305. <PropertyRef Name="HolidayDay" />
  1306. <PropertyRef Name="IsLunar" />
  1307. </Key>
  1308. <Property Name="SiteId" Type="int" Nullable="false" />
  1309. <Property Name="HolidayMonth" Type="smallint" Nullable="false" />
  1310. <Property Name="HolidayDay" Type="smallint" Nullable="false" />
  1311. <Property Name="IsLunar" Type="bit" Nullable="false" />
  1312. <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
  1313. <Property Name="IsUse" Type="bit" />
  1314. </EntityType>
  1315. <EntityType Name="CmHolidayCustom">
  1316. <Key>
  1317. <PropertyRef Name="SiteId" />
  1318. <PropertyRef Name="HolidayDate" />
  1319. </Key>
  1320. <Property Name="SiteId" Type="int" Nullable="false" />
  1321. <Property Name="HolidayDate" Type="datetime" Nullable="false" />
  1322. <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
  1323. <Property Name="IsUse" Type="bit" />
  1324. </EntityType>
  1325. <EntityType Name="CmHolidayWeekend">
  1326. <Key>
  1327. <PropertyRef Name="SiteId" />
  1328. </Key>
  1329. <Property Name="SiteId" Type="int" Nullable="false" />
  1330. <Property Name="Saturday" Type="bit" Nullable="false" />
  1331. <Property Name="Sunday" Type="bit" Nullable="false" />
  1332. <Property Name="IsUse" Type="bit" />
  1333. </EntityType>
  1334. <EntityType Name="CmMenu">
  1335. <Key>
  1336. <PropertyRef Name="SiteId" />
  1337. <PropertyRef Name="MenuId" />
  1338. </Key>
  1339. <Property Name="SiteId" Type="int" Nullable="false" />
  1340. <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
  1341. <Property Name="Used" Type="bit" />
  1342. <Property Name="MenuPath" Type="nvarchar" MaxLength="255" />
  1343. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  1344. </EntityType>
  1345. <EntityType Name="CmPartner">
  1346. <Key>
  1347. <PropertyRef Name="SiteId" />
  1348. <PropertyRef Name="PartnerId" />
  1349. </Key>
  1350. <Property Name="SiteId" Type="int" Nullable="false" />
  1351. <Property Name="PartnerId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1352. <Property Name="PartnerTypeId" Type="int" Nullable="false" />
  1353. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1354. <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" />
  1355. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" />
  1356. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
  1357. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  1358. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  1359. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  1360. <Property Name="AddressZip1" Type="nchar" MaxLength="3" />
  1361. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1362. <Property Name="Address1" Type="nvarchar" MaxLength="50" />
  1363. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1364. <Property Name="HomepageUri" Type="nvarchar" MaxLength="100" />
  1365. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  1366. <Property Name="IsUse" Type="bit" />
  1367. </EntityType>
  1368. <EntityType Name="CmPartnerType">
  1369. <Key>
  1370. <PropertyRef Name="PartnerTypeId" />
  1371. </Key>
  1372. <Property Name="PartnerTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1373. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1374. <Property Name="IsUse" Type="bit" />
  1375. </EntityType>
  1376. <EntityType Name="CmPatrolCourse">
  1377. <Key>
  1378. <PropertyRef Name="SiteId" />
  1379. <PropertyRef Name="PatrolCourseId" />
  1380. </Key>
  1381. <Property Name="SiteId" Type="int" Nullable="false" />
  1382. <Property Name="PatrolCourseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1383. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1384. </EntityType>
  1385. <EntityType Name="CmPatrolCoursePos">
  1386. <Key>
  1387. <PropertyRef Name="SiteId" />
  1388. <PropertyRef Name="PatrolCourseId" />
  1389. <PropertyRef Name="BuildingId" />
  1390. <PropertyRef Name="FloorId" />
  1391. <PropertyRef Name="PosId" />
  1392. </Key>
  1393. <Property Name="SiteId" Type="int" Nullable="false" />
  1394. <Property Name="PatrolCourseId" Type="int" Nullable="false" />
  1395. <Property Name="BuildingId" Type="int" Nullable="false" />
  1396. <Property Name="FloorId" Type="int" Nullable="false" />
  1397. <Property Name="PosId" Type="int" Nullable="false" />
  1398. <Property Name="CourseOrder" Type="int" Nullable="false" />
  1399. </EntityType>
  1400. <EntityType Name="CmPatrolGroup">
  1401. <Key>
  1402. <PropertyRef Name="SiteId" />
  1403. <PropertyRef Name="PatrolGroupId" />
  1404. </Key>
  1405. <Property Name="SiteId" Type="int" Nullable="false" />
  1406. <Property Name="PatrolGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1407. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1408. </EntityType>
  1409. <EntityType Name="CmPatrolGroupUser">
  1410. <Key>
  1411. <PropertyRef Name="SiteId" />
  1412. <PropertyRef Name="PatrolGroupId" />
  1413. <PropertyRef Name="UserId" />
  1414. </Key>
  1415. <Property Name="SiteId" Type="int" Nullable="false" />
  1416. <Property Name="PatrolGroupId" Type="int" Nullable="false" />
  1417. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1418. </EntityType>
  1419. <EntityType Name="CmPatrolHistory">
  1420. <Key>
  1421. <PropertyRef Name="PatrolHistoryId" />
  1422. </Key>
  1423. <Property Name="SiteId" Type="int" Nullable="false" />
  1424. <Property Name="PatrolHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1425. <Property Name="ScheduleId" Type="int" Nullable="false" />
  1426. <Property Name="startDate" Type="datetime" Nullable="false" />
  1427. <Property Name="endDate" Type="datetime" />
  1428. <Property Name="resultTypeId" Type="int" Nullable="false" />
  1429. <Property Name="resultDesc" Type="varchar" MaxLength="1024" />
  1430. <Property Name="resultPosCnt" Type="int" />
  1431. <Property Name="resultNormalCnt" Type="int" />
  1432. <Property Name="resultAbnormalCnt" Type="int" />
  1433. </EntityType>
  1434. <EntityType Name="CmPatrolHistoryPos">
  1435. <Key>
  1436. <PropertyRef Name="mId" />
  1437. </Key>
  1438. <Property Name="SiteId" Type="int" Nullable="false" />
  1439. <Property Name="PatrolHistoryId" Type="int" Nullable="false" />
  1440. <Property Name="PosId" Type="int" Nullable="false" />
  1441. <Property Name="PatrolTime" Type="datetime" Nullable="false" />
  1442. <Property Name="term" Type="int" />
  1443. <Property Name="resultType" Type="int" Nullable="false" />
  1444. <Property Name="mId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1445. </EntityType>
  1446. <EntityType Name="CmPatrolPlan">
  1447. <Key>
  1448. <PropertyRef Name="SiteId" />
  1449. <PropertyRef Name="PatrolPlanId" />
  1450. </Key>
  1451. <Property Name="SiteId" Type="int" Nullable="false" />
  1452. <Property Name="PatrolPlanId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1453. <Property Name="GroupId" Type="int" Nullable="false" />
  1454. <Property Name="CourseId" Type="int" Nullable="false" />
  1455. <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
  1456. <Property Name="PlanDesc" Type="varchar" MaxLength="1024" />
  1457. <Property Name="term" Type="int" Nullable="false" />
  1458. <Property Name="inDate" Type="datetime" />
  1459. </EntityType>
  1460. <EntityType Name="CmPatrolPos">
  1461. <Key>
  1462. <PropertyRef Name="SiteId" />
  1463. <PropertyRef Name="PosId" />
  1464. </Key>
  1465. <Property Name="SiteId" Type="int" Nullable="false" />
  1466. <Property Name="BuildingId" Type="int" Nullable="false" />
  1467. <Property Name="FloorId" Type="int" Nullable="false" />
  1468. <Property Name="PosId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1469. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1470. <Property Name="TagId" Type="nvarchar" MaxLength="32" />
  1471. <Property Name="PosDesc" Type="nvarchar" MaxLength="1024" />
  1472. </EntityType>
  1473. <EntityType Name="CmPatrolSchedule">
  1474. <Key>
  1475. <PropertyRef Name="SiteId" />
  1476. <PropertyRef Name="ScheduleId" />
  1477. </Key>
  1478. <Property Name="SiteId" Type="int" Nullable="false" />
  1479. <Property Name="ScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1480. <Property Name="PlanId" Type="int" Nullable="false" />
  1481. <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
  1482. <Property Name="ScheduleDesc" Type="varchar" MaxLength="128" />
  1483. <Property Name="inDate" Type="datetime" />
  1484. <Property Name="patrolDateTime" Type="datetime" Nullable="false" />
  1485. </EntityType>
  1486. <EntityType Name="CmPatrolType">
  1487. <Key>
  1488. <PropertyRef Name="SiteId" />
  1489. <PropertyRef Name="PatrolTypeId" />
  1490. </Key>
  1491. <Property Name="SiteId" Type="int" Nullable="false" />
  1492. <Property Name="PatrolTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1493. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1494. <Property Name="IsUse" Type="bit" />
  1495. </EntityType>
  1496. <EntityType Name="CmPosition">
  1497. <Key>
  1498. <PropertyRef Name="SiteId" />
  1499. <PropertyRef Name="PositionId" />
  1500. </Key>
  1501. <Property Name="SiteId" Type="int" Nullable="false" />
  1502. <Property Name="PositionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1503. <Property Name="Name" Type="nvarchar" MaxLength="40" Nullable="false" />
  1504. <Property Name="IsUse" Type="bit" />
  1505. <Property Name="Position" Type="int" />
  1506. </EntityType>
  1507. <EntityType Name="CmServiceEnergyCalcDay">
  1508. <Key>
  1509. <PropertyRef Name="SiteId" />
  1510. <PropertyRef Name="calDate" />
  1511. <PropertyRef Name="ServiceTypeId" />
  1512. </Key>
  1513. <Property Name="SiteId" Type="int" Nullable="false" />
  1514. <Property Name="calDate" Type="datetime" Nullable="false" />
  1515. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1516. <Property Name="Value" Type="float" />
  1517. </EntityType>
  1518. <EntityType Name="CmServiceEnergyCalcMonth">
  1519. <Key>
  1520. <PropertyRef Name="SiteId" />
  1521. <PropertyRef Name="calDate" />
  1522. <PropertyRef Name="ServiceTypeId" />
  1523. </Key>
  1524. <Property Name="SiteId" Type="int" Nullable="false" />
  1525. <Property Name="calDate" Type="datetime" Nullable="false" />
  1526. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1527. <Property Name="Value" Type="float" />
  1528. </EntityType>
  1529. <EntityType Name="CmSite">
  1530. <Key>
  1531. <PropertyRef Name="SiteId" />
  1532. </Key>
  1533. <Property Name="SiteId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1534. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1535. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  1536. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1537. <Property Name="Address1" Type="nvarchar" MaxLength="100" />
  1538. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1539. <Property Name="PhoneNo" Type="nvarchar" MaxLength="24" />
  1540. <Property Name="URL" Type="nvarchar" MaxLength="100" />
  1541. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1542. <Property Name="IsUse" Type="bit" />
  1543. <Property Name="SortOrderNo" Type="int" />
  1544. <Property Name="InsertedDate" Type="datetime" />
  1545. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  1546. <Property Name="UpdatedDate" Type="datetime" />
  1547. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1548. <Property Name="IsControlSchedule" Type="bit" />
  1549. <Property Name="ScheduleCheckHour" Type="int" />
  1550. <Property Name="MaxPeak" Type="float" />
  1551. <Property Name="lat" Type="float" />
  1552. <Property Name="lng" Type="float" />
  1553. <Property Name="controlSchedule" Type="bit" />
  1554. <Property Name="HDD" Type="nvarchar" MaxLength="24" />
  1555. <Property Name="CDD" Type="nvarchar" MaxLength="24" />
  1556. <Property Name="BuildingSize" Type="nvarchar" MaxLength="50" />
  1557. <Property Name="GrossArea" Type="nvarchar" MaxLength="24" />
  1558. <Property Name="BuildingArea" Type="nvarchar" MaxLength="24" />
  1559. <Property Name="FloorAreaRatio" Type="nvarchar" MaxLength="24" />
  1560. <Property Name="BuildingCoverageRatio" Type="nvarchar" MaxLength="24" />
  1561. <Property Name="MainUse" Type="nvarchar" MaxLength="10" />
  1562. <Property Name="CompletionDate" Type="nvarchar" MaxLength="24" />
  1563. <Property Name="Standard" Type="nvarchar" MaxLength="24" />
  1564. <Property Name="MainUseIndex" Type="int" />
  1565. </EntityType>
  1566. <EntityType Name="CmUser">
  1567. <Key>
  1568. <PropertyRef Name="SiteId" />
  1569. <PropertyRef Name="UserId" />
  1570. </Key>
  1571. <Property Name="SiteId" Type="int" Nullable="false" />
  1572. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1573. <Property Name="CompanyId" Type="int" />
  1574. <Property Name="DepartmentId" Type="int" />
  1575. <Property Name="PositionId" Type="int" />
  1576. <Property Name="BusinessFieldId" Type="int" />
  1577. <Property Name="UserGroupId" Type="int" />
  1578. <Property Name="Name" Type="nvarchar" MaxLength="30" Nullable="false" />
  1579. <Property Name="Passwd" Type="nvarchar" MaxLength="30" Nullable="false" />
  1580. <Property Name="Birthday" Type="datetime" />
  1581. <Property Name="Lunar" Type="bit" />
  1582. <Property Name="StateId" Type="int" />
  1583. <Property Name="EmploymentType" Type="int" />
  1584. <Property Name="EmploymentStatus" Type="int" />
  1585. <Property Name="OfficePhoneNo" Type="nvarchar" MaxLength="50" />
  1586. <Property Name="HomePhoneNo" Type="nvarchar" MaxLength="50" />
  1587. <Property Name="MobilePhoneNo" Type="nvarchar" MaxLength="50" />
  1588. <Property Name="HomeZip1" Type="char" MaxLength="3" />
  1589. <Property Name="HomeZip2" Type="char" MaxLength="3" />
  1590. <Property Name="HomeAddress1" Type="nvarchar" MaxLength="50" />
  1591. <Property Name="HomeAdderss2" Type="nvarchar" MaxLength="100" />
  1592. <Property Name="Email" Type="nvarchar" MaxLength="50" />
  1593. <Property Name="EnterDate" Type="datetime" />
  1594. <Property Name="RetireDate" Type="datetime" />
  1595. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1596. <Property Name="Rfcsn" Type="nvarchar" MaxLength="30" />
  1597. <Property Name="PasswordUpdatedDate" Type="datetime" />
  1598. <Property Name="FileId" Type="int" />
  1599. <Property Name="IsBems" Type="bit" />
  1600. <Property Name="IsUse" Type="bit" />
  1601. <Property Name="IsScheduleUser" Type="bit" />
  1602. <Property Name="Certificated" Type="nvarchar" MaxLength="512" />
  1603. <Property Name="IsSI" Type="bit" />
  1604. <Property Name="IsMobile" Type="bit" />
  1605. <Property Name="Devicetoken" Type="nvarchar" MaxLength="500" />
  1606. </EntityType>
  1607. <EntityType Name="CmUserGroup">
  1608. <Key>
  1609. <PropertyRef Name="SiteId" />
  1610. <PropertyRef Name="UserGroupId" />
  1611. </Key>
  1612. <Property Name="SiteId" Type="int" Nullable="false" />
  1613. <Property Name="UserGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1614. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1615. </EntityType>
  1616. <EntityType Name="CmUserGroupPermission">
  1617. <Key>
  1618. <PropertyRef Name="SiteId" />
  1619. <PropertyRef Name="UserGroupId" />
  1620. <PropertyRef Name="MenuId" />
  1621. </Key>
  1622. <Property Name="SiteId" Type="int" Nullable="false" />
  1623. <Property Name="UserGroupId" Type="int" Nullable="false" />
  1624. <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
  1625. <Property Name="MenuPermission" Type="smallint" />
  1626. </EntityType>
  1627. <EntityType Name="CmUserLoginHistory">
  1628. <Key>
  1629. <PropertyRef Name="LoginHistoryId" />
  1630. </Key>
  1631. <Property Name="LoginHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1632. <Property Name="SiteId" Type="int" Nullable="false" />
  1633. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1634. <Property Name="Type" Type="nvarchar" MaxLength="10" Nullable="false" />
  1635. <Property Name="TraceTime" Type="datetime" Nullable="false" />
  1636. <Property Name="IpAddress" Type="nvarchar" MaxLength="16" />
  1637. </EntityType>
  1638. <EntityType Name="CmUserToLicense">
  1639. <Key>
  1640. <PropertyRef Name="SiteId" />
  1641. <PropertyRef Name="UserId" />
  1642. <PropertyRef Name="LicenseId" />
  1643. </Key>
  1644. <Property Name="SiteId" Type="int" Nullable="false" />
  1645. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1646. <Property Name="LicenseId" Type="int" Nullable="false" />
  1647. </EntityType>
  1648. <EntityType Name="CmZone">
  1649. <Key>
  1650. <PropertyRef Name="SiteId" />
  1651. <PropertyRef Name="BuildingId" />
  1652. <PropertyRef Name="FloorId" />
  1653. <PropertyRef Name="ZoneId" />
  1654. </Key>
  1655. <Property Name="SiteId" Type="int" Nullable="false" />
  1656. <Property Name="BuildingId" Type="int" Nullable="false" />
  1657. <Property Name="FloorId" Type="int" Nullable="false" />
  1658. <Property Name="ZoneId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1659. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1660. <Property Name="Target_temperature" Type="float" />
  1661. <Property Name="Target_humidity" Type="smallint" />
  1662. </EntityType>
  1663. <EntityType Name="CmZoneTempHumiSet">
  1664. <Key>
  1665. <PropertyRef Name="SiteId" />
  1666. <PropertyRef Name="BuildingId" />
  1667. <PropertyRef Name="FloorId" />
  1668. <PropertyRef Name="ZoneId" />
  1669. </Key>
  1670. <Property Name="SiteId" Type="int" Nullable="false" />
  1671. <Property Name="BuildingId" Type="int" Nullable="false" />
  1672. <Property Name="FloorId" Type="int" Nullable="false" />
  1673. <Property Name="ZoneId" Type="int" Nullable="false" />
  1674. <Property Name="T1" Type="float" Nullable="false" />
  1675. <Property Name="T2" Type="float" Nullable="false" />
  1676. <Property Name="T3" Type="float" Nullable="false" />
  1677. <Property Name="T4" Type="float" Nullable="false" />
  1678. <Property Name="T5" Type="float" Nullable="false" />
  1679. <Property Name="T6" Type="float" Nullable="false" />
  1680. <Property Name="T7" Type="float" Nullable="false" />
  1681. <Property Name="T8" Type="float" Nullable="false" />
  1682. <Property Name="T9" Type="float" Nullable="false" />
  1683. <Property Name="T10" Type="float" Nullable="false" />
  1684. <Property Name="T11" Type="float" Nullable="false" />
  1685. <Property Name="T12" Type="float" Nullable="false" />
  1686. <Property Name="H1" Type="smallint" Nullable="false" />
  1687. <Property Name="H2" Type="smallint" Nullable="false" />
  1688. <Property Name="H3" Type="smallint" Nullable="false" />
  1689. <Property Name="H4" Type="smallint" Nullable="false" />
  1690. <Property Name="H5" Type="smallint" Nullable="false" />
  1691. <Property Name="H6" Type="smallint" Nullable="false" />
  1692. <Property Name="H7" Type="smallint" Nullable="false" />
  1693. <Property Name="H8" Type="smallint" Nullable="false" />
  1694. <Property Name="H9" Type="smallint" Nullable="false" />
  1695. <Property Name="H10" Type="smallint" Nullable="false" />
  1696. <Property Name="H11" Type="smallint" Nullable="false" />
  1697. <Property Name="H12" Type="smallint" Nullable="false" />
  1698. </EntityType>
  1699. <EntityType Name="FmsAccident">
  1700. <Key>
  1701. <PropertyRef Name="SiteId" />
  1702. <PropertyRef Name="AccidentId" />
  1703. </Key>
  1704. <Property Name="SiteId" Type="int" Nullable="false" />
  1705. <Property Name="AccidentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1706. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1707. <Property Name="StartDate" Type="datetime" />
  1708. <Property Name="EndDate" Type="datetime" />
  1709. <Property Name="AccidentTypeId" Type="int" Nullable="false" />
  1710. <Property Name="DepartmentId" Type="int" />
  1711. <Property Name="AccidentLocation" Type="nvarchar" MaxLength="256" />
  1712. <Property Name="Reason" Type="nvarchar" MaxLength="1024" />
  1713. <Property Name="Action" Type="nvarchar" MaxLength="1024" />
  1714. <Property Name="Damage" Type="nvarchar" MaxLength="1024" />
  1715. <Property Name="Measurement" Type="nvarchar" MaxLength="1024" />
  1716. <Property Name="FileId1" Type="int" />
  1717. <Property Name="FileId2" Type="int" />
  1718. <Property Name="FileId3" Type="int" />
  1719. <Property Name="CompanyId" Type="int" />
  1720. </EntityType>
  1721. <EntityType Name="FmsAccidentCodeType">
  1722. <Key>
  1723. <PropertyRef Name="SiteId" />
  1724. <PropertyRef Name="AccidentTypeId" />
  1725. </Key>
  1726. <Property Name="SiteId" Type="int" Nullable="false" />
  1727. <Property Name="AccidentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1728. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1729. <Property Name="IsUse" Type="bit" Nullable="false" />
  1730. </EntityType>
  1731. <EntityType Name="FmsBudget">
  1732. <Key>
  1733. <PropertyRef Name="SiteId" />
  1734. <PropertyRef Name="Year" />
  1735. </Key>
  1736. <Property Name="SiteId" Type="int" Nullable="false" />
  1737. <Property Name="Year" Type="int" Nullable="false" />
  1738. </EntityType>
  1739. <EntityType Name="FmsBudgetCodeClass">
  1740. <Key>
  1741. <PropertyRef Name="SiteId" />
  1742. <PropertyRef Name="BudgetClassId" />
  1743. </Key>
  1744. <Property Name="SiteId" Type="int" Nullable="false" />
  1745. <Property Name="BudgetClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1746. <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
  1747. <Property Name="RootBudgetClassId" Type="int" />
  1748. <Property Name="ParentBudgetClassId" Type="int" />
  1749. <Property Name="Depth" Type="int" Nullable="false" />
  1750. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1751. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  1752. <Property Name="IsUse" Type="bit" />
  1753. <Property Name="YearlyBudget" Type="float" />
  1754. <Property Name="MonthlyBudget" Type="float" />
  1755. </EntityType>
  1756. <EntityType Name="FmsBudgetDetail">
  1757. <Key>
  1758. <PropertyRef Name="SiteId" />
  1759. <PropertyRef Name="Year" />
  1760. <PropertyRef Name="BudgetClassId" />
  1761. <PropertyRef Name="ParentBudgetClassId" />
  1762. </Key>
  1763. <Property Name="SiteId" Type="int" Nullable="false" />
  1764. <Property Name="Year" Type="int" Nullable="false" />
  1765. <Property Name="BudgetClassId" Type="int" Nullable="false" />
  1766. <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
  1767. <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
  1768. <Property Name="RootBudgetClassId" Type="int" />
  1769. <Property Name="Depth" Type="int" Nullable="false" />
  1770. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1771. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  1772. <Property Name="IsUse" Type="bit" />
  1773. <Property Name="YearlyBudget" Type="float" Nullable="false" />
  1774. <Property Name="MonthlyBudget" Type="float" Nullable="false" />
  1775. </EntityType>
  1776. <EntityType Name="FmsBudgetDetailExecution">
  1777. <Key>
  1778. <PropertyRef Name="SiteId" />
  1779. <PropertyRef Name="Year" />
  1780. <PropertyRef Name="BudgetClassId" />
  1781. <PropertyRef Name="ParentBudgetClassId" />
  1782. <PropertyRef Name="Month" />
  1783. </Key>
  1784. <Property Name="SiteId" Type="int" Nullable="false" />
  1785. <Property Name="Year" Type="int" Nullable="false" />
  1786. <Property Name="BudgetClassId" Type="int" Nullable="false" />
  1787. <Property Name="RootBudgetClassId" Type="int" />
  1788. <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
  1789. <Property Name="Month" Type="int" Nullable="false" />
  1790. <Property Name="YearlyBudget" Type="float" Nullable="false" />
  1791. <Property Name="MonthlyBudget" Type="float" Nullable="false" />
  1792. <Property Name="YearlyExecution" Type="float" Nullable="false" />
  1793. <Property Name="MonthlyExecution" Type="float" Nullable="false" />
  1794. </EntityType>
  1795. <EntityType Name="FmsCompanyEstimationCodeClass">
  1796. <Key>
  1797. <PropertyRef Name="SiteId" />
  1798. <PropertyRef Name="CompanyEstimationClassId" />
  1799. </Key>
  1800. <Property Name="SiteId" Type="int" Nullable="false" />
  1801. <Property Name="CompanyEstimationClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1802. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1803. <Property Name="IsUse" Type="bit" />
  1804. </EntityType>
  1805. <EntityType Name="FmsConstruction">
  1806. <Key>
  1807. <PropertyRef Name="SiteId" />
  1808. <PropertyRef Name="ConstructionId" />
  1809. </Key>
  1810. <Property Name="SiteId" Type="int" Nullable="false" />
  1811. <Property Name="ConstructionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1812. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1813. <Property Name="ConstructionTypeId" Type="int" Nullable="false" />
  1814. <Property Name="StartDate" Type="datetime" Nullable="false" />
  1815. <Property Name="EndDate" Type="datetime" Nullable="false" />
  1816. <Property Name="PartnerId" Type="int" Nullable="false" />
  1817. <Property Name="ConstructLocation" Type="nvarchar" MaxLength="256" Nullable="false" />
  1818. <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" Nullable="false" />
  1819. <Property Name="CommitmentMan" Type="smallint" />
  1820. <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1821. <Property Name="WeldWorkStartTime" Type="datetime" />
  1822. <Property Name="WeldWorkEndTime" Type="datetime" />
  1823. <Property Name="GasWorkStartTime" Type="datetime" />
  1824. <Property Name="GasWorkEndTime" Type="datetime" />
  1825. <Property Name="PaintWorkStartTime" Type="datetime" />
  1826. <Property Name="PaintWorkEndTime" Type="datetime" />
  1827. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1828. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  1829. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1830. <Property Name="UpdateDate" Type="datetime" Nullable="false" />
  1831. <Property Name="ConstructionDetail" Type="nvarchar" MaxLength="1024" />
  1832. <Property Name="InOutStockName" Type="nvarchar" MaxLength="1024" />
  1833. <Property Name="FileId1" Type="int" />
  1834. <Property Name="FileId2" Type="int" />
  1835. <Property Name="FileId3" Type="int" />
  1836. </EntityType>
  1837. <EntityType Name="FmsConstructionCodeProgress">
  1838. <Key>
  1839. <PropertyRef Name="ProgressId" />
  1840. </Key>
  1841. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  1842. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1843. <Property Name="Description" Type="nvarchar" MaxLength="100" />
  1844. </EntityType>
  1845. <EntityType Name="FmsConstructionCodeType">
  1846. <Key>
  1847. <PropertyRef Name="SiteId" />
  1848. <PropertyRef Name="ConstructionTypeId" />
  1849. </Key>
  1850. <Property Name="SiteId" Type="int" Nullable="false" />
  1851. <Property Name="ConstructionTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1852. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1853. <Property Name="IsUse" Type="bit" Nullable="false" />
  1854. </EntityType>
  1855. <EntityType Name="FmsConstructionEstimation">
  1856. <Key>
  1857. <PropertyRef Name="SiteId" />
  1858. <PropertyRef Name="ConstructionId" />
  1859. </Key>
  1860. <Property Name="SiteId" Type="int" Nullable="false" />
  1861. <Property Name="ConstructionId" Type="int" Nullable="false" />
  1862. <Property Name="EstimateDate" Type="datetime" Nullable="false" />
  1863. <Property Name="EstimateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1864. <Property Name="Safety01_CleanUp" Type="bit" />
  1865. <Property Name="Safety02_PersonalProtection" Type="bit" />
  1866. <Property Name="Safety03_FireExtinguisher" Type="bit" />
  1867. <Property Name="Safety04_HighPlaceWork" Type="bit" />
  1868. <Property Name="Safety05_Weld" Type="bit" />
  1869. <Property Name="Safety06_SurroundingCleanUp" Type="bit" />
  1870. <Property Name="Safety07_SurroundingHealthy" Type="bit" />
  1871. <Property Name="Safety08_Noise" Type="bit" />
  1872. <Property Name="Safety09_FacilityProtection" Type="bit" />
  1873. <Property Name="Safety10_Waste" Type="bit" />
  1874. <Property Name="Safety11_Execution" Type="bit" />
  1875. <Property Name="Safety12_Announcement" Type="bit" />
  1876. <Property Name="Ability01_Compliance" Type="bit" />
  1877. <Property Name="Ability02_Fault" Type="bit" />
  1878. <Property Name="Ability03_SkillLevel" Type="bit" />
  1879. <Property Name="Ability04_ProcessManagement" Type="bit" />
  1880. <Property Name="Ability05_Collaboration" Type="bit" />
  1881. <Property Name="Service01_Compliance" Type="bit" />
  1882. <Property Name="Service02_SkillLevel" Type="bit" />
  1883. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1884. <Property Name="TotalEstimateScore" Type="float" />
  1885. <Property Name="SafetyScore" Type="float" />
  1886. <Property Name="AbilityScore" Type="float" />
  1887. <Property Name="ServiceScore" Type="float" />
  1888. </EntityType>
  1889. <EntityType Name="FmsContract">
  1890. <Key>
  1891. <PropertyRef Name="SiteId" />
  1892. <PropertyRef Name="ContractId" />
  1893. </Key>
  1894. <Property Name="SiteId" Type="int" Nullable="false" />
  1895. <Property Name="ContractId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1896. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1897. <Property Name="PartnerTypeId" Type="int" />
  1898. <Property Name="PartnerId" Type="int" />
  1899. <Property Name="ContractDate" Type="datetime" />
  1900. <Property Name="StartDate" Type="datetime" />
  1901. <Property Name="EndDate" Type="datetime" />
  1902. <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" />
  1903. <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" />
  1904. <Property Name="CommitmentMan" Type="smallint" />
  1905. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1906. <Property Name="ContractClassId" Type="int" />
  1907. <Property Name="ContractTypeId" Type="int" />
  1908. <Property Name="ContractMethodId" Type="int" />
  1909. <Property Name="PaymentTypeId" Type="int" />
  1910. </EntityType>
  1911. <EntityType Name="FmsContractClass">
  1912. <Key>
  1913. <PropertyRef Name="SiteId" />
  1914. <PropertyRef Name="ContractClassId" />
  1915. </Key>
  1916. <Property Name="SiteId" Type="int" Nullable="false" />
  1917. <Property Name="ContractClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1918. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1919. <Property Name="IsUse" Type="bit" />
  1920. </EntityType>
  1921. <EntityType Name="FmsContractMethod">
  1922. <Key>
  1923. <PropertyRef Name="SiteId" />
  1924. <PropertyRef Name="ContractMethodId" />
  1925. </Key>
  1926. <Property Name="SiteId" Type="int" Nullable="false" />
  1927. <Property Name="ContractMethodId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1928. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1929. <Property Name="IsUse" Type="bit" />
  1930. </EntityType>
  1931. <EntityType Name="FmsContractType">
  1932. <Key>
  1933. <PropertyRef Name="SiteId" />
  1934. <PropertyRef Name="ContractTypeId" />
  1935. </Key>
  1936. <Property Name="SiteId" Type="int" Nullable="false" />
  1937. <Property Name="ContractTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1938. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1939. <Property Name="IsUse" Type="bit" />
  1940. </EntityType>
  1941. <EntityType Name="FmsDailyCheckReport">
  1942. <Key>
  1943. <PropertyRef Name="SiteId" />
  1944. <PropertyRef Name="DailyCheckReportId" />
  1945. </Key>
  1946. <Property Name="SiteId" Type="int" Nullable="false" />
  1947. <Property Name="DailyCheckReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1948. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  1949. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  1950. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1951. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1952. </EntityType>
  1953. <EntityType Name="FmsDailyReport">
  1954. <Key>
  1955. <PropertyRef Name="SiteId" />
  1956. <PropertyRef Name="AddDate" />
  1957. <PropertyRef Name="BusinessFieldId" />
  1958. </Key>
  1959. <Property Name="SiteId" Type="int" Nullable="false" />
  1960. <Property Name="DailyReportId" Type="int" />
  1961. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  1962. <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
  1963. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1964. <Property Name="AddDate" Type="date" Nullable="false" />
  1965. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  1966. <Property Name="Datas" Type="varchar(max)" />
  1967. <Property Name="ApproverUserId" Type="nvarchar" MaxLength="24" />
  1968. <Property Name="ApproveDate" Type="date" />
  1969. <Property Name="RegisterDate" Type="date" />
  1970. <Property Name="ApproverUserId2" Type="nvarchar" MaxLength="24" />
  1971. <Property Name="ApproveDate2" Type="date" />
  1972. <Property Name="ApproverUserId3" Type="nvarchar" MaxLength="24" />
  1973. <Property Name="ApproveDate3" Type="date" />
  1974. <Property Name="ApproverUserId4" Type="nvarchar" MaxLength="24" />
  1975. <Property Name="ApproveDate4" Type="date" />
  1976. <Property Name="ApproverUserId5" Type="nvarchar" MaxLength="24" />
  1977. <Property Name="ApproveDate5" Type="date" />
  1978. </EntityType>
  1979. <EntityType Name="FmsDrawing">
  1980. <Key>
  1981. <PropertyRef Name="SiteId" />
  1982. <PropertyRef Name="DrawingId" />
  1983. </Key>
  1984. <Property Name="SiteId" Type="int" Nullable="false" />
  1985. <Property Name="DrawingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1986. <Property Name="DrawingNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1987. <Property Name="DrawingGroupId" Type="int" Nullable="false" />
  1988. <Property Name="DrawingTypeId" Type="int" Nullable="false" />
  1989. <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
  1990. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  1991. </EntityType>
  1992. <EntityType Name="FmsDrawingCodeGroup">
  1993. <Key>
  1994. <PropertyRef Name="SiteId" />
  1995. <PropertyRef Name="DrawingGroupId" />
  1996. </Key>
  1997. <Property Name="SiteId" Type="int" Nullable="false" />
  1998. <Property Name="DrawingGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1999. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2000. <Property Name="IsUse" Type="bit" />
  2001. </EntityType>
  2002. <EntityType Name="FmsDrawingCodeType">
  2003. <Key>
  2004. <PropertyRef Name="SiteId" />
  2005. <PropertyRef Name="DrawingTypeId" />
  2006. </Key>
  2007. <Property Name="SiteId" Type="int" Nullable="false" />
  2008. <Property Name="DrawingTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2009. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2010. <Property Name="IsUse" Type="bit" />
  2011. </EntityType>
  2012. <EntityType Name="FmsDrawingHistory">
  2013. <Key>
  2014. <PropertyRef Name="SiteId" />
  2015. <PropertyRef Name="DrawingId" />
  2016. <PropertyRef Name="HistoryId" />
  2017. </Key>
  2018. <Property Name="SiteId" Type="int" Nullable="false" />
  2019. <Property Name="DrawingId" Type="int" Nullable="false" />
  2020. <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2021. <Property Name="RevisionNo" Type="int" />
  2022. <Property Name="FileId" Type="int" />
  2023. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2024. <Property Name="UpdatedDate" Type="datetime" />
  2025. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2026. </EntityType>
  2027. <EntityType Name="FmsEquipment">
  2028. <Key>
  2029. <PropertyRef Name="SiteId" />
  2030. <PropertyRef Name="EquipmentId" />
  2031. </Key>
  2032. <Property Name="SiteId" Type="int" Nullable="false" />
  2033. <Property Name="EquipmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2034. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2035. <Property Name="EquipmentTypeId" Type="int" Nullable="false" />
  2036. <Property Name="WarehouseId" Type="int" />
  2037. <Property Name="Unit" Type="nvarchar" MaxLength="12" />
  2038. <Property Name="Standard" Type="nvarchar" MaxLength="20" />
  2039. <Property Name="AddDate" Type="datetime" />
  2040. <Property Name="UpdateDate" Type="datetime" />
  2041. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2042. <Property Name="SupplierName" Type="nvarchar" MaxLength="256" />
  2043. <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
  2044. <Property Name="ImageFileId" Type="int" />
  2045. </EntityType>
  2046. <EntityType Name="FmsEquipmentCodeStateType">
  2047. <Key>
  2048. <PropertyRef Name="EquipmentStateTypeId" />
  2049. </Key>
  2050. <Property Name="EquipmentStateTypeId" Type="smallint" Nullable="false" />
  2051. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2052. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2053. </EntityType>
  2054. <EntityType Name="FmsEquipmentCodeType">
  2055. <Key>
  2056. <PropertyRef Name="SiteId" />
  2057. <PropertyRef Name="EquipmentTypeId" />
  2058. </Key>
  2059. <Property Name="SiteId" Type="int" Nullable="false" />
  2060. <Property Name="EquipmentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2061. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2062. <Property Name="IsUse" Type="bit" Nullable="false" />
  2063. <Property Name="Description" Type="nvarchar" MaxLength="255" />
  2064. </EntityType>
  2065. <EntityType Name="FmsEquipmentHistory">
  2066. <Key>
  2067. <PropertyRef Name="SiteId" />
  2068. <PropertyRef Name="EquipmentHistoryId" />
  2069. <PropertyRef Name="EquipmentId" />
  2070. </Key>
  2071. <Property Name="SiteId" Type="int" Nullable="false" />
  2072. <Property Name="EquipmentHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2073. <Property Name="EquipmentId" Type="int" Nullable="false" />
  2074. <Property Name="TotalStockCount" Type="int" />
  2075. <Property Name="CurrentStockCount" Type="int" />
  2076. <Property Name="RentCount" Type="int" />
  2077. <Property Name="CurrentRentCount" Type="int" />
  2078. <Property Name="ReturnCount" Type="int" />
  2079. <Property Name="LossCount" Type="int" />
  2080. <Property Name="StoredCount" Type="int" />
  2081. <Property Name="EquipmentRentId" Type="int" />
  2082. <Property Name="EquipmentStateTypeId" Type="smallint" />
  2083. <Property Name="AddDate" Type="datetime" />
  2084. <Property Name="UpdateDate" Type="datetime" />
  2085. <Property Name="IsReturned" Type="bit" />
  2086. </EntityType>
  2087. <EntityType Name="FmsEquipmentRentInfo">
  2088. <Key>
  2089. <PropertyRef Name="SiteId" />
  2090. <PropertyRef Name="EquipmentRentId" />
  2091. </Key>
  2092. <Property Name="SiteId" Type="int" Nullable="false" />
  2093. <Property Name="EquipmentRentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2094. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2095. <Property Name="RentUserId" Type="nvarchar" MaxLength="24" />
  2096. <Property Name="RegisterDate" Type="nchar" MaxLength="10" />
  2097. <Property Name="RentDate" Type="datetime" />
  2098. <Property Name="ReturnDueDate" Type="datetime" />
  2099. <Property Name="ReturnFixDate" Type="datetime" />
  2100. <Property Name="EquipmentStateTypeId" Type="smallint" />
  2101. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2102. <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
  2103. <Property Name="RentUser" Type="nvarchar" MaxLength="128" />
  2104. </EntityType>
  2105. <EntityType Name="FmsFacilityCheckItem">
  2106. <Key>
  2107. <PropertyRef Name="SiteId" />
  2108. <PropertyRef Name="FacilityCode" />
  2109. <PropertyRef Name="CheckItemId" />
  2110. </Key>
  2111. <Property Name="SiteId" Type="int" Nullable="false" />
  2112. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2113. <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2114. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2115. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2116. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  2117. <Property Name="IsYesNoResult" Type="bit" Nullable="false" />
  2118. <Property Name="IsUse" Type="bit" />
  2119. </EntityType>
  2120. <EntityType Name="FmsFacilityCodeClass">
  2121. <Key>
  2122. <PropertyRef Name="SiteId" />
  2123. <PropertyRef Name="FacilityClassId" />
  2124. </Key>
  2125. <Property Name="SiteId" Type="int" Nullable="false" />
  2126. <Property Name="FacilityClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2127. <Property Name="ParentFacilityClassId" Type="int" />
  2128. <Property Name="Depth" Type="int" Nullable="false" />
  2129. <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
  2130. <Property Name="Abbreviation" Type="nvarchar" MaxLength="40" />
  2131. <Property Name="IsUse" Type="bit" />
  2132. </EntityType>
  2133. <EntityType Name="FmsFacilityManual">
  2134. <Key>
  2135. <PropertyRef Name="SiteId" />
  2136. <PropertyRef Name="FacilityCode" />
  2137. <PropertyRef Name="ManualId" />
  2138. </Key>
  2139. <Property Name="SiteId" Type="int" Nullable="false" />
  2140. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2141. <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2142. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2143. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  2144. <Property Name="Description" Type="nvarchar" MaxLength="1024" />
  2145. <Property Name="Keyword" Type="nvarchar" MaxLength="100" />
  2146. <Property Name="FileId" Type="int" />
  2147. <Property Name="IsUse" Type="bit" />
  2148. </EntityType>
  2149. <EntityType Name="FmsFacilityOperationItem">
  2150. <Key>
  2151. <PropertyRef Name="SiteId" />
  2152. <PropertyRef Name="ItemId" />
  2153. </Key>
  2154. <Property Name="SiteId" Type="int" Nullable="false" />
  2155. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2156. <Property Name="ItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2157. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  2158. <Property Name="ResultUnit" Type="nvarchar" MaxLength="10" Nullable="false" />
  2159. <Property Name="PointId" Type="nvarchar" MaxLength="50" />
  2160. <Property Name="SystemId" Type="int" />
  2161. <Property Name="EnergyCode" Type="bit" />
  2162. <Property Name="IsUse" Type="bit" />
  2163. <Property Name="SortOrderNo" Type="int" />
  2164. <Property Name="InsertedDate" Type="datetime" />
  2165. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  2166. <Property Name="UpdatedDate" Type="datetime" />
  2167. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2168. </EntityType>
  2169. <EntityType Name="FmsFacilityOperationReport">
  2170. <Key>
  2171. <PropertyRef Name="SiteId" />
  2172. <PropertyRef Name="FacilityOperationReportId" />
  2173. </Key>
  2174. <Property Name="SiteId" Type="int" Nullable="false" />
  2175. <Property Name="FacilityOperationReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2176. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2177. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  2178. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2179. <Property Name="AddDate" Type="datetime" Nullable="false" />
  2180. </EntityType>
  2181. <EntityType Name="FmsInvestmentCost">
  2182. <Key>
  2183. <PropertyRef Name="SiteId" />
  2184. <PropertyRef Name="InsvestmentCostId" />
  2185. </Key>
  2186. <Property Name="SiteId" Type="int" Nullable="false" />
  2187. <Property Name="InsvestmentCostId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2188. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  2189. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2190. <Property Name="InsvestmentCost" Type="float" Nullable="false" />
  2191. </EntityType>
  2192. <EntityType Name="FmsLicense">
  2193. <Key>
  2194. <PropertyRef Name="SiteId" />
  2195. <PropertyRef Name="LicenseId" />
  2196. </Key>
  2197. <Property Name="SiteId" Type="int" Nullable="false" />
  2198. <Property Name="LicenseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2199. <Property Name="Name" Type="nvarchar" MaxLength="52" Nullable="false" />
  2200. <Property Name="IssuingOffice" Type="nvarchar" MaxLength="52" Nullable="false" />
  2201. <Property Name="BusinessFieldId" Type="int" />
  2202. <Property Name="EducationalInstitute" Type="nvarchar" MaxLength="52" />
  2203. <Property Name="Note" Type="nvarchar" MaxLength="256" />
  2204. <Property Name="IsUse" Type="bit" />
  2205. </EntityType>
  2206. <EntityType Name="FmsManual">
  2207. <Key>
  2208. <PropertyRef Name="SiteId" />
  2209. <PropertyRef Name="ManualId" />
  2210. </Key>
  2211. <Property Name="SiteId" Type="int" Nullable="false" />
  2212. <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2213. <Property Name="ManualNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  2214. <Property Name="ManualTypeId" Type="int" Nullable="false" />
  2215. <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
  2216. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2217. </EntityType>
  2218. <EntityType Name="FmsManualHistory">
  2219. <Key>
  2220. <PropertyRef Name="SiteId" />
  2221. <PropertyRef Name="ManualId" />
  2222. <PropertyRef Name="HistoryId" />
  2223. </Key>
  2224. <Property Name="SiteId" Type="int" Nullable="false" />
  2225. <Property Name="ManualId" Type="int" Nullable="false" />
  2226. <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2227. <Property Name="RevisionNo" Type="int" />
  2228. <Property Name="FileId" Type="int" />
  2229. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2230. <Property Name="UpdatedDate" Type="datetime" />
  2231. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2232. </EntityType>
  2233. <EntityType Name="FmsManualType">
  2234. <Key>
  2235. <PropertyRef Name="SiteId" />
  2236. <PropertyRef Name="ManualTypeId" />
  2237. </Key>
  2238. <Property Name="SiteId" Type="int" Nullable="false" />
  2239. <Property Name="ManualTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2240. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2241. <Property Name="IsUse" Type="bit" />
  2242. </EntityType>
  2243. <EntityType Name="FmsMaterial">
  2244. <Key>
  2245. <PropertyRef Name="SiteId" />
  2246. <PropertyRef Name="MaterialId" />
  2247. </Key>
  2248. <Property Name="SiteId" Type="int" Nullable="false" />
  2249. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2250. <Property Name="MaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2251. <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" Nullable="false" />
  2252. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2253. <Property Name="FirstClassId" Type="int" />
  2254. <Property Name="SecondClassId" Type="int" />
  2255. <Property Name="ThirdClassId" Type="int" />
  2256. <Property Name="LocationId" Type="int" />
  2257. <Property Name="MaterialTypeId" Type="int" />
  2258. <Property Name="WarehouseId" Type="int" />
  2259. <Property Name="TradeCompanyId" Type="int" />
  2260. <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
  2261. <Property Name="Unit" Type="nvarchar" MaxLength="12" />
  2262. <Property Name="DurableYears" Type="smallint" />
  2263. <Property Name="ReasonableStockCount" Type="smallint" />
  2264. <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
  2265. <Property Name="Standard" Type="nvarchar" MaxLength="20" />
  2266. <Property Name="FinalPrice" Type="int" />
  2267. <Property Name="ImageFileId" Type="int" />
  2268. <Property Name="Note" Type="nvarchar" MaxLength="512" />
  2269. <Property Name="IsDiscontinued" Type="bit" />
  2270. <Property Name="IsUse" Type="bit" Nullable="false" />
  2271. <Property Name="FinalStockCount" Type="int" Nullable="false" />
  2272. <Property Name="FinalTotalStockAmount" Type="int" Nullable="false" />
  2273. </EntityType>
  2274. <EntityType Name="FmsMaterialCarriedForward">
  2275. <Key>
  2276. <PropertyRef Name="SiteId" />
  2277. <PropertyRef Name="ClosedDate" />
  2278. <PropertyRef Name="BusinessFieldId" />
  2279. <PropertyRef Name="WarehouseId" />
  2280. <PropertyRef Name="MaterialId" />
  2281. </Key>
  2282. <Property Name="SiteId" Type="int" Nullable="false" />
  2283. <Property Name="ClosedDate" Type="datetime" Nullable="false" />
  2284. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2285. <Property Name="WarehouseId" Type="int" Nullable="false" />
  2286. <Property Name="MaterialId" Type="int" Nullable="false" />
  2287. <Property Name="StockCount" Type="int" Nullable="false" />
  2288. <Property Name="StockTotalCost" Type="int" Nullable="false" />
  2289. </EntityType>
  2290. <EntityType Name="FmsMaterialCodeAdjustmentType">
  2291. <Key>
  2292. <PropertyRef Name="AdjustmentTypeId" />
  2293. </Key>
  2294. <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
  2295. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2296. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2297. </EntityType>
  2298. <EntityType Name="FmsMaterialCodeClass">
  2299. <Key>
  2300. <PropertyRef Name="SiteId" />
  2301. <PropertyRef Name="MaterialClassId" />
  2302. </Key>
  2303. <Property Name="SiteId" Type="int" Nullable="false" />
  2304. <Property Name="MaterialClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2305. <Property Name="ParentMaterialClassId" Type="int" />
  2306. <Property Name="Depth" Type="int" Nullable="false" />
  2307. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  2308. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  2309. <Property Name="IsUse" Type="bit" />
  2310. </EntityType>
  2311. <EntityType Name="FmsMaterialCodeLocation">
  2312. <Key>
  2313. <PropertyRef Name="SiteId" />
  2314. <PropertyRef Name="LocationId" />
  2315. </Key>
  2316. <Property Name="SiteId" Type="int" Nullable="false" />
  2317. <Property Name="LocationId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2318. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2319. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2320. <Property Name="IsUse" Type="bit" Nullable="false" />
  2321. </EntityType>
  2322. <EntityType Name="FmsMaterialCodeProgress">
  2323. <Key>
  2324. <PropertyRef Name="ProgressId" />
  2325. </Key>
  2326. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  2327. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2328. <Property Name="Description" Type="nvarchar" MaxLength="100" />
  2329. </EntityType>
  2330. <EntityType Name="FmsMaterialCodePurchaseType">
  2331. <Key>
  2332. <PropertyRef Name="PurchaseTypeId" />
  2333. </Key>
  2334. <Property Name="PurchaseTypeId" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
  2335. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2336. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2337. </EntityType>
  2338. <EntityType Name="FmsMaterialCodeReleaseType">
  2339. <Key>
  2340. <PropertyRef Name="ReleaseTypeId" />
  2341. </Key>
  2342. <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
  2343. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2344. <Property Name="Description" Type="nvarchar" MaxLength="255" />
  2345. </EntityType>
  2346. <EntityType Name="FmsMaterialCodeType">
  2347. <Key>
  2348. <PropertyRef Name="SiteId" />
  2349. <PropertyRef Name="MaterialTypeId" />
  2350. </Key>
  2351. <Property Name="SiteId" Type="int" Nullable="false" />
  2352. <Property Name="MaterialTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2353. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2354. <Property Name="Nickname" Type="nvarchar" MaxLength="24" Nullable="false" />
  2355. <Property Name="IsUse" Type="bit" Nullable="false" />
  2356. </EntityType>
  2357. <EntityType Name="FmsMaterialPurchaseOrder">
  2358. <Key>
  2359. <PropertyRef Name="SiteId" />
  2360. <PropertyRef Name="PurchaseOrderId" />
  2361. </Key>
  2362. <Property Name="SiteId" Type="int" Nullable="false" />
  2363. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2364. <Property Name="PurchaseOrderId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2365. <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
  2366. <Property Name="TradeCompanyId" Type="int" />
  2367. <Property Name="OrderDate" Type="datetime" Nullable="false" />
  2368. <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2369. <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
  2370. <Property Name="Reason" Type="nvarchar" MaxLength="2000" />
  2371. <Property Name="StoredDueDate" Type="datetime" />
  2372. <Property Name="FileId" Type="int" />
  2373. </EntityType>
  2374. <EntityType Name="FmsMaterialPurchaseOrderMaterial">
  2375. <Key>
  2376. <PropertyRef Name="SiteId" />
  2377. <PropertyRef Name="PurchaseOrderId" />
  2378. <PropertyRef Name="MaterialId" />
  2379. </Key>
  2380. <Property Name="SiteId" Type="int" Nullable="false" />
  2381. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2382. <Property Name="PurchaseOrderId" Type="int" Nullable="false" />
  2383. <Property Name="MaterialId" Type="int" Nullable="false" />
  2384. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2385. <Property Name="UnitCost" Type="int" Nullable="false" />
  2386. </EntityType>
  2387. <EntityType Name="FmsMaterialPurchaseRequest">
  2388. <Key>
  2389. <PropertyRef Name="SiteId" />
  2390. <PropertyRef Name="PurchaseRequestId" />
  2391. </Key>
  2392. <Property Name="SiteId" Type="int" Nullable="false" />
  2393. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2394. <Property Name="PurchaseRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2395. <Property Name="PurchaseTypeId" Type="smallint" Nullable="false" />
  2396. <Property Name="RequestDate" Type="datetime" Nullable="false" />
  2397. <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2398. <Property Name="PurchaseHopeDate" Type="datetime" />
  2399. <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
  2400. <Property Name="Reason" Type="nvarchar" MaxLength="2000" Nullable="false" />
  2401. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  2402. <Property Name="ApprovalDate" Type="datetime" />
  2403. <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
  2404. <Property Name="bSameOrder" Type="bit" />
  2405. </EntityType>
  2406. <EntityType Name="FmsMaterialPurchaseRequestMaterial">
  2407. <Key>
  2408. <PropertyRef Name="SiteId" />
  2409. <PropertyRef Name="PurchaseRequestId" />
  2410. <PropertyRef Name="MaterialId" />
  2411. </Key>
  2412. <Property Name="SiteId" Type="int" Nullable="false" />
  2413. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2414. <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
  2415. <Property Name="MaterialId" Type="int" Nullable="false" />
  2416. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2417. </EntityType>
  2418. <EntityType Name="FmsMaterialRelease">
  2419. <Key>
  2420. <PropertyRef Name="SiteId" />
  2421. <PropertyRef Name="MaterialReleaseId" />
  2422. </Key>
  2423. <Property Name="SiteId" Type="int" Nullable="false" />
  2424. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2425. <Property Name="ReleaseDate" Type="datetime" Nullable="false" />
  2426. <Property Name="MaterialReleaseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2427. <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
  2428. <Property Name="WorkRequestId" Type="int" />
  2429. <Property Name="WarehouseId" Type="int" />
  2430. <Property Name="MaterialId" Type="int" />
  2431. <Property Name="MaterialCount" Type="int" />
  2432. <Property Name="StockCountByPoint" Type="int" />
  2433. <Property Name="ReleaseTotalCost" Type="int" />
  2434. <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
  2435. <Property Name="AdjustmentUserId" Type="nvarchar" MaxLength="24" />
  2436. <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
  2437. <Property Name="ConfirmedDate" Type="datetime" />
  2438. <Property Name="IsConfirmed" Type="bit" Nullable="false" />
  2439. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2440. </EntityType>
  2441. <EntityType Name="FmsMaterialStored">
  2442. <Key>
  2443. <PropertyRef Name="SiteId" />
  2444. <PropertyRef Name="MaterialStoredId" />
  2445. </Key>
  2446. <Property Name="SiteId" Type="int" Nullable="false" />
  2447. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2448. <Property Name="StoredDate" Type="datetime" Nullable="false" />
  2449. <Property Name="MaterialStoredId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2450. <Property Name="PurchaseOrderId" Type="int" />
  2451. <Property Name="WarehouseId" Type="int" Nullable="false" />
  2452. <Property Name="MaterialId" Type="int" Nullable="false" />
  2453. <Property Name="StoredCount" Type="int" Nullable="false" />
  2454. <Property Name="RemainStoredCount" Type="int" Nullable="false" />
  2455. <Property Name="UnitCost" Type="int" Nullable="false" />
  2456. <Property Name="StockCount" Type="int" Nullable="false" />
  2457. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  2458. <Property Name="StoredUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2459. <Property Name="ApprovalDate" Type="datetime" />
  2460. <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
  2461. <Property Name="IsApproval" Type="bit" Nullable="false" />
  2462. <Property Name="LocationInWarehouse" Type="nvarchar" MaxLength="100" />
  2463. </EntityType>
  2464. <EntityType Name="FmsMaterialTradeCompany">
  2465. <Key>
  2466. <PropertyRef Name="SiteId" />
  2467. <PropertyRef Name="TradeCompanyId" />
  2468. </Key>
  2469. <Property Name="SiteId" Type="int" Nullable="false" />
  2470. <Property Name="TradeCompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2471. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2472. <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" Nullable="false" />
  2473. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="24" />
  2474. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
  2475. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  2476. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  2477. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  2478. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  2479. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  2480. <Property Name="Address1" Type="nvarchar" MaxLength="100" />
  2481. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  2482. <Property Name="HomepageUri" Type="nvarchar" MaxLength="200" />
  2483. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  2484. <Property Name="IsUse" Type="bit" Nullable="false" />
  2485. </EntityType>
  2486. <EntityType Name="FmsMaterialWarehouse">
  2487. <Key>
  2488. <PropertyRef Name="SiteId" />
  2489. <PropertyRef Name="WarehouseId" />
  2490. </Key>
  2491. <Property Name="SiteId" Type="int" Nullable="false" />
  2492. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2493. <Property Name="WarehouseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2494. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2495. <Property Name="IsUse" Type="bit" Nullable="false" />
  2496. </EntityType>
  2497. <EntityType Name="FmsMonthlyReport">
  2498. <Key>
  2499. <PropertyRef Name="SiteId" />
  2500. <PropertyRef Name="MonthlyReportId" />
  2501. </Key>
  2502. <Property Name="SiteId" Type="int" Nullable="false" />
  2503. <Property Name="MonthlyReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2504. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2505. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  2506. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2507. <Property Name="AddDate" Type="datetime" Nullable="false" />
  2508. </EntityType>
  2509. <EntityType Name="FmsPaymentType">
  2510. <Key>
  2511. <PropertyRef Name="SiteId" />
  2512. <PropertyRef Name="PaymentTypeId" />
  2513. </Key>
  2514. <Property Name="SiteId" Type="int" Nullable="false" />
  2515. <Property Name="PaymentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2516. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2517. <Property Name="IsUse" Type="bit" />
  2518. </EntityType>
  2519. <EntityType Name="FmsReport">
  2520. <Key>
  2521. <PropertyRef Name="SiteId" />
  2522. <PropertyRef Name="RId" />
  2523. </Key>
  2524. <Property Name="SiteId" Type="int" Nullable="false" />
  2525. <Property Name="RId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2526. <Property Name="Title" Type="nvarchar" MaxLength="128" />
  2527. <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
  2528. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" />
  2529. <Property Name="FileId" Type="int" />
  2530. <Property Name="MakeDate" Type="datetime" Nullable="false" />
  2531. <Property Name="ConfirmUserId1" Type="nvarchar" MaxLength="24" />
  2532. <Property Name="ConfirmUserId2" Type="nvarchar" MaxLength="24" />
  2533. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2534. </EntityType>
  2535. <EntityType Name="FmsWorkCodeCauseClass">
  2536. <Key>
  2537. <PropertyRef Name="SiteId" />
  2538. <PropertyRef Name="CauseClassId" />
  2539. </Key>
  2540. <Property Name="SiteId" Type="int" Nullable="false" />
  2541. <Property Name="CauseClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2542. <Property Name="ParentId" Type="int" Nullable="false" />
  2543. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2544. <Property Name="IsUse" Type="bit" />
  2545. </EntityType>
  2546. <EntityType Name="FmsWorkCodeCycleUnit">
  2547. <Key>
  2548. <PropertyRef Name="SiteId" />
  2549. <PropertyRef Name="CycleUnitId" />
  2550. </Key>
  2551. <Property Name="SiteId" Type="int" Nullable="false" />
  2552. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2553. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2554. <Property Name="Description" Type="nvarchar" MaxLength="200" />
  2555. </EntityType>
  2556. <EntityType Name="FmsWorkCodeEmergency">
  2557. <Key>
  2558. <PropertyRef Name="SiteId" />
  2559. <PropertyRef Name="EmergencyId" />
  2560. </Key>
  2561. <Property Name="SiteId" Type="int" Nullable="false" />
  2562. <Property Name="EmergencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2563. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  2564. <Property Name="IsUse" Type="bit" />
  2565. </EntityType>
  2566. <EntityType Name="FmsWorkCodeHolidayWorkType">
  2567. <Key>
  2568. <PropertyRef Name="SiteId" />
  2569. <PropertyRef Name="HolidayWorkTypeId" />
  2570. </Key>
  2571. <Property Name="SiteId" Type="int" Nullable="false" />
  2572. <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
  2573. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  2574. <Property Name="IsUse" Type="bit" />
  2575. </EntityType>
  2576. <EntityType Name="FmsWorkCodeLegalInspectionAgency">
  2577. <Key>
  2578. <PropertyRef Name="SiteId" />
  2579. <PropertyRef Name="InspectionAgencyId" />
  2580. </Key>
  2581. <Property Name="SiteId" Type="int" Nullable="false" />
  2582. <Property Name="InspectionAgencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2583. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2584. <Property Name="IsUse" Type="bit" />
  2585. </EntityType>
  2586. <EntityType Name="FmsWorkCodeProgress">
  2587. <Key>
  2588. <PropertyRef Name="WorkProgressId" />
  2589. </Key>
  2590. <Property Name="WorkProgressId" Type="int" Nullable="false" />
  2591. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2592. <Property Name="Description" Type="nvarchar" MaxLength="512" />
  2593. </EntityType>
  2594. <EntityType Name="FmsWorkCodeType">
  2595. <Key>
  2596. <PropertyRef Name="WorkTypeId" />
  2597. </Key>
  2598. <Property Name="WorkTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2599. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2600. <Property Name="Description" Type="nvarchar" MaxLength="512" />
  2601. </EntityType>
  2602. <EntityType Name="FmsWorkOrder">
  2603. <Key>
  2604. <PropertyRef Name="SiteId" />
  2605. <PropertyRef Name="WorkRequestId" />
  2606. </Key>
  2607. <Property Name="SiteId" Type="int" Nullable="false" />
  2608. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2609. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2610. <Property Name="EmergencyId" Type="int" />
  2611. <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2612. <Property Name="OrderDate" Type="datetime" Nullable="false" />
  2613. <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
  2614. <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
  2615. <Property Name="Content" Type="nvarchar" MaxLength="2000" />
  2616. </EntityType>
  2617. <EntityType Name="FmsWorkOrderToFacility">
  2618. <Key>
  2619. <PropertyRef Name="SiteId" />
  2620. <PropertyRef Name="WorkRequestId" />
  2621. <PropertyRef Name="FacilityCode" />
  2622. </Key>
  2623. <Property Name="SiteId" Type="int" Nullable="false" />
  2624. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2625. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2626. </EntityType>
  2627. <EntityType Name="FmsWorkRequest">
  2628. <Key>
  2629. <PropertyRef Name="SiteId" />
  2630. <PropertyRef Name="WorkRequestId" />
  2631. </Key>
  2632. <Property Name="SiteId" Type="int" Nullable="false" />
  2633. <Property Name="WorkRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2634. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2635. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2636. <Property Name="WorkScheduleId" Type="int" />
  2637. <Property Name="WorkProgressId" Type="int" Nullable="false" />
  2638. <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
  2639. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2640. <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" />
  2641. <Property Name="RequestDate" Type="datetime" Nullable="false" />
  2642. <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
  2643. <Property Name="RejectUserId" Type="nvarchar" MaxLength="24" />
  2644. <Property Name="RejectDate" Type="datetime" />
  2645. <Property Name="RejectReason" Type="nvarchar" MaxLength="512" />
  2646. <Property Name="InspectionAgencyId" Type="int" />
  2647. </EntityType>
  2648. <EntityType Name="FmsWorkRequestToFacility">
  2649. <Key>
  2650. <PropertyRef Name="SiteId" />
  2651. <PropertyRef Name="WorkRequestId" />
  2652. <PropertyRef Name="FacilityCode" />
  2653. </Key>
  2654. <Property Name="SiteId" Type="int" Nullable="false" />
  2655. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2656. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2657. </EntityType>
  2658. <EntityType Name="FmsWorkResult">
  2659. <Key>
  2660. <PropertyRef Name="SiteId" />
  2661. <PropertyRef Name="WorkRequestId" />
  2662. </Key>
  2663. <Property Name="SiteId" Type="int" Nullable="false" />
  2664. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2665. <Property Name="WorkerUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2666. <Property Name="StartDate" Type="datetime" Nullable="false" />
  2667. <Property Name="EndDate" Type="datetime" Nullable="false" />
  2668. <Property Name="CauseClassId" Type="int" />
  2669. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2670. <Property Name="ConfirmedDate" Type="datetime" />
  2671. <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
  2672. <Property Name="IsConfirmed" Type="bit" Nullable="false" />
  2673. <Property Name="ConfirmDesc" Type="nvarchar" MaxLength="1024" />
  2674. </EntityType>
  2675. <EntityType Name="FmsWorkResultCheckItem">
  2676. <Key>
  2677. <PropertyRef Name="CheckItemId" />
  2678. </Key>
  2679. <Property Name="SiteId" Type="int" Nullable="false" />
  2680. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2681. <Property Name="FacilityCode" Type="int" />
  2682. <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2683. <Property Name="BoolResult" Type="bit" />
  2684. <Property Name="TextResult" Type="nvarchar" MaxLength="1024" />
  2685. <Property Name="CheckDate" Type="datetime" Nullable="false" />
  2686. <Property Name="FileId1" Type="int" />
  2687. <Property Name="FileId2" Type="int" />
  2688. </EntityType>
  2689. <EntityType Name="FmsWorkResultCheckItemMaterial">
  2690. <Key>
  2691. <PropertyRef Name="CheckItemMaterialId" />
  2692. </Key>
  2693. <Property Name="SiteId" Type="int" Nullable="false" />
  2694. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2695. <Property Name="CheckItemId" Type="int" Nullable="false" />
  2696. <Property Name="CheckItemMaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2697. <Property Name="MaterialId" Type="int" Nullable="false" />
  2698. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2699. <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" />
  2700. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  2701. </EntityType>
  2702. <EntityType Name="FmsWorkResultFile">
  2703. <Key>
  2704. <PropertyRef Name="SiteId" />
  2705. <PropertyRef Name="WorkRequestId" />
  2706. </Key>
  2707. <Property Name="SiteId" Type="int" Nullable="false" />
  2708. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2709. <Property Name="FileId" Type="int" Nullable="false" />
  2710. </EntityType>
  2711. <EntityType Name="FmsWorkResultLaw">
  2712. <Key>
  2713. <PropertyRef Name="SiteId" />
  2714. <PropertyRef Name="WorkRequestId" />
  2715. </Key>
  2716. <Property Name="SiteId" Type="int" Nullable="false" />
  2717. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2718. <Property Name="CertificationNo" Type="nvarchar" MaxLength="50" />
  2719. <Property Name="CheckCommission" Type="numeric" Precision="10" Scale="0" />
  2720. <Property Name="CheckResult" Type="bit" />
  2721. </EntityType>
  2722. <EntityType Name="FmsWorkResultToFacility">
  2723. <Key>
  2724. <PropertyRef Name="SiteId" />
  2725. <PropertyRef Name="WorkRequestId" />
  2726. <PropertyRef Name="FacilityCode" />
  2727. </Key>
  2728. <Property Name="SiteId" Type="int" Nullable="false" />
  2729. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2730. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2731. </EntityType>
  2732. <EntityType Name="FmsWorkSchedule">
  2733. <Key>
  2734. <PropertyRef Name="SiteId" />
  2735. <PropertyRef Name="WorkScheduleId" />
  2736. </Key>
  2737. <Property Name="SiteId" Type="int" Nullable="false" />
  2738. <Property Name="WorkScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2739. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2740. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2741. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  2742. <Property Name="InspectionAgencyId" Type="int" />
  2743. <Property Name="CycleSize" Type="int" Nullable="false" />
  2744. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2745. <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
  2746. <Property Name="WorkDueDate" Type="datetime" Nullable="false" />
  2747. <Property Name="UpdateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2748. <Property Name="IsUse" Type="bit" Nullable="false" />
  2749. <Property Name="IsAutoOrder" Type="bit" Nullable="false" />
  2750. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2751. </EntityType>
  2752. <EntityType Name="FmsWorkScheduleToFacility">
  2753. <Key>
  2754. <PropertyRef Name="SiteId" />
  2755. <PropertyRef Name="WorkScheduleId" />
  2756. <PropertyRef Name="FacilityCode" />
  2757. </Key>
  2758. <Property Name="SiteId" Type="int" Nullable="false" />
  2759. <Property Name="WorkScheduleId" Type="int" Nullable="false" />
  2760. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2761. </EntityType>
  2762. <EntityType Name="sysdiagrams">
  2763. <Key>
  2764. <PropertyRef Name="diagram_id" />
  2765. </Key>
  2766. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2767. <Property Name="principal_id" Type="int" Nullable="false" />
  2768. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2769. <Property Name="version" Type="int" />
  2770. <Property Name="definition" Type="varbinary(max)" />
  2771. </EntityType>
  2772. <EntityType Name="WeatherDongNaeForecast">
  2773. <Key>
  2774. <PropertyRef Name="BaseTime" />
  2775. <PropertyRef Name="ForecastTime" />
  2776. </Key>
  2777. <Property Name="BaseTime" Type="datetime" Nullable="false" />
  2778. <Property Name="nx" Type="int" />
  2779. <Property Name="ny" Type="int" />
  2780. <Property Name="ForecastTime" Type="datetime" Nullable="false" />
  2781. <Property Name="POP" Type="float" />
  2782. <Property Name="PTY" Type="float" />
  2783. <Property Name="R06" Type="float" />
  2784. <Property Name="REH" Type="float" />
  2785. <Property Name="S06" Type="float" />
  2786. <Property Name="SKY" Type="float" />
  2787. <Property Name="T3H" Type="float" />
  2788. <Property Name="TMN" Type="float" />
  2789. <Property Name="TMX" Type="float" />
  2790. <Property Name="UUU" Type="float" />
  2791. <Property Name="VVV" Type="float" />
  2792. <Property Name="VEC" Type="float" />
  2793. <Property Name="WSD" Type="float" />
  2794. <Property Name="Type" Type="int" />
  2795. <Property Name="DBTime" Type="datetime" />
  2796. <Property Name="Version" Type="int" />
  2797. </EntityType>
  2798. <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
  2799. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  2800. <End Role="BemsEnergyConfigPercentMonth" Type="Self.BemsEnergyConfigPercentMonth" Multiplicity="*" />
  2801. <ReferentialConstraint>
  2802. <Principal Role="CmSite">
  2803. <PropertyRef Name="SiteId" />
  2804. </Principal>
  2805. <Dependent Role="BemsEnergyConfigPercentMonth">
  2806. <PropertyRef Name="SiteId" />
  2807. </Dependent>
  2808. </ReferentialConstraint>
  2809. </Association>
  2810. <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
  2811. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  2812. <End Role="BemsEnergyConfigPercentWeek" Type="Self.BemsEnergyConfigPercentWeek" Multiplicity="*" />
  2813. <ReferentialConstraint>
  2814. <Principal Role="CmSite">
  2815. <PropertyRef Name="SiteId" />
  2816. </Principal>
  2817. <Dependent Role="BemsEnergyConfigPercentWeek">
  2818. <PropertyRef Name="SiteId" />
  2819. </Dependent>
  2820. </ReferentialConstraint>
  2821. </Association>
  2822. <Association Name="FK__BemsEnergyDaily__BemsFuelType">
  2823. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2824. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2825. <ReferentialConstraint>
  2826. <Principal Role="BemsFuelType">
  2827. <PropertyRef Name="FuelTypeId" />
  2828. </Principal>
  2829. <Dependent Role="BemsEnergyDaily">
  2830. <PropertyRef Name="FuelTypeId" />
  2831. </Dependent>
  2832. </ReferentialConstraint>
  2833. </Association>
  2834. <Association Name="FK__BemsEnergyDaily__BemsServiceType">
  2835. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="1" />
  2836. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2837. <ReferentialConstraint>
  2838. <Principal Role="BemsServiceType">
  2839. <PropertyRef Name="ServiceTypeId" />
  2840. </Principal>
  2841. <Dependent Role="BemsEnergyDaily">
  2842. <PropertyRef Name="ServiceTypeId" />
  2843. </Dependent>
  2844. </ReferentialConstraint>
  2845. </Association>
  2846. <Association Name="FK__BemsEnergyDaily__CmBuilding">
  2847. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  2848. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2849. <ReferentialConstraint>
  2850. <Principal Role="CmBuilding">
  2851. <PropertyRef Name="SiteId" />
  2852. <PropertyRef Name="BuildingId" />
  2853. </Principal>
  2854. <Dependent Role="BemsEnergyDaily">
  2855. <PropertyRef Name="SiteId" />
  2856. <PropertyRef Name="BuildingId" />
  2857. </Dependent>
  2858. </ReferentialConstraint>
  2859. </Association>
  2860. <Association Name="FK__BemsFactorCo2__BemsFuelType">
  2861. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2862. <End Role="BemsFactorCo2" Type="Self.BemsFactorCo2" Multiplicity="0..1" />
  2863. <ReferentialConstraint>
  2864. <Principal Role="BemsFuelType">
  2865. <PropertyRef Name="FuelTypeId" />
  2866. </Principal>
  2867. <Dependent Role="BemsFactorCo2">
  2868. <PropertyRef Name="FuelTypeId" />
  2869. </Dependent>
  2870. </ReferentialConstraint>
  2871. </Association>
  2872. <Association Name="FK__BemsFactorToe__BemsFuelType">
  2873. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2874. <End Role="BemsFactorToe" Type="Self.BemsFactorToe" Multiplicity="0..1" />
  2875. <ReferentialConstraint>
  2876. <Principal Role="BemsFuelType">
  2877. <PropertyRef Name="FuelTypeId" />
  2878. </Principal>
  2879. <Dependent Role="BemsFactorToe">
  2880. <PropertyRef Name="FuelTypeId" />
  2881. </Dependent>
  2882. </ReferentialConstraint>
  2883. </Association>
  2884. <Association Name="FK__BemsFormula__BemsFormulaBase">
  2885. <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
  2886. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
  2887. <ReferentialConstraint>
  2888. <Principal Role="BemsFormulaBase">
  2889. <PropertyRef Name="FacilityTypeId" />
  2890. <PropertyRef Name="FormulaId" />
  2891. </Principal>
  2892. <Dependent Role="BemsFormula">
  2893. <PropertyRef Name="FacilityTypeId" />
  2894. <PropertyRef Name="FormulaId" />
  2895. </Dependent>
  2896. </ReferentialConstraint>
  2897. </Association>
  2898. <Association Name="FK__BemsFormulaParameter__BemsFormula">
  2899. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  2900. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  2901. <ReferentialConstraint>
  2902. <Principal Role="BemsFormula">
  2903. <PropertyRef Name="SiteId" />
  2904. <PropertyRef Name="FacilityTypeId" />
  2905. <PropertyRef Name="FacilityCode" />
  2906. <PropertyRef Name="FormulaId" />
  2907. </Principal>
  2908. <Dependent Role="BemsFormulaParameter">
  2909. <PropertyRef Name="SiteId" />
  2910. <PropertyRef Name="FacilityTypeId" />
  2911. <PropertyRef Name="FacilityCode" />
  2912. <PropertyRef Name="FormulaId" />
  2913. </Dependent>
  2914. </ReferentialConstraint>
  2915. </Association>
  2916. <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
  2917. <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
  2918. <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
  2919. <ReferentialConstraint>
  2920. <Principal Role="BemsFormulaTable">
  2921. <PropertyRef Name="TableId" />
  2922. </Principal>
  2923. <Dependent Role="BemsFormulaTableValue">
  2924. <PropertyRef Name="TableId" />
  2925. </Dependent>
  2926. </ReferentialConstraint>
  2927. </Association>
  2928. <Association Name="FK__BemsMonitoringPo__1372D2FE">
  2929. <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
  2930. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  2931. <ReferentialConstraint>
  2932. <Principal Role="BemsAnalysisType">
  2933. <PropertyRef Name="SiteId" />
  2934. <PropertyRef Name="AnalysisType" />
  2935. </Principal>
  2936. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  2937. <PropertyRef Name="SiteId" />
  2938. <PropertyRef Name="AnalysisType" />
  2939. </Dependent>
  2940. </ReferentialConstraint>
  2941. </Association>
  2942. <Association Name="FK__BemsMonitoringPo__155B1B70">
  2943. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  2944. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  2945. <ReferentialConstraint>
  2946. <Principal Role="BemsMonitoringPoint">
  2947. <PropertyRef Name="SiteId" />
  2948. <PropertyRef Name="FacilityCode" />
  2949. <PropertyRef Name="PropertyId" />
  2950. </Principal>
  2951. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  2952. <PropertyRef Name="SiteId" />
  2953. <PropertyRef Name="FacilityCode" />
  2954. <PropertyRef Name="PropertyId" />
  2955. </Dependent>
  2956. </ReferentialConstraint>
  2957. </Association>
  2958. <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
  2959. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
  2960. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2961. <ReferentialConstraint>
  2962. <Principal Role="BemsFuelType">
  2963. <PropertyRef Name="FuelTypeId" />
  2964. </Principal>
  2965. <Dependent Role="BemsMonitoringPoint">
  2966. <PropertyRef Name="FuelTypeId" />
  2967. </Dependent>
  2968. </ReferentialConstraint>
  2969. </Association>
  2970. <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
  2971. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  2972. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2973. <ReferentialConstraint>
  2974. <Principal Role="BemsServiceType">
  2975. <PropertyRef Name="ServiceTypeId" />
  2976. </Principal>
  2977. <Dependent Role="BemsMonitoringPoint">
  2978. <PropertyRef Name="ServiceTypeId" />
  2979. </Dependent>
  2980. </ReferentialConstraint>
  2981. </Association>
  2982. <Association Name="FK__BemsMonitoringPoint__CmBuilding">
  2983. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
  2984. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2985. <ReferentialConstraint>
  2986. <Principal Role="CmBuilding">
  2987. <PropertyRef Name="SiteId" />
  2988. <PropertyRef Name="BuildingId" />
  2989. </Principal>
  2990. <Dependent Role="BemsMonitoringPoint">
  2991. <PropertyRef Name="SiteId" />
  2992. <PropertyRef Name="BuildingId" />
  2993. </Dependent>
  2994. </ReferentialConstraint>
  2995. </Association>
  2996. <Association Name="FK__BemsMonitoringPoint__CmFloor">
  2997. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
  2998. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2999. <ReferentialConstraint>
  3000. <Principal Role="CmFloor">
  3001. <PropertyRef Name="SiteId" />
  3002. <PropertyRef Name="BuildingId" />
  3003. <PropertyRef Name="FloorId" />
  3004. </Principal>
  3005. <Dependent Role="BemsMonitoringPoint">
  3006. <PropertyRef Name="SiteId" />
  3007. <PropertyRef Name="BuildingId" />
  3008. <PropertyRef Name="FloorId" />
  3009. </Dependent>
  3010. </ReferentialConstraint>
  3011. </Association>
  3012. <Association Name="FK__BemsMonitoringPoint__CmZone">
  3013. <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
  3014. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  3015. <ReferentialConstraint>
  3016. <Principal Role="CmZone">
  3017. <PropertyRef Name="SiteId" />
  3018. <PropertyRef Name="BuildingId" />
  3019. <PropertyRef Name="FloorId" />
  3020. <PropertyRef Name="ZoneId" />
  3021. </Principal>
  3022. <Dependent Role="BemsMonitoringPoint">
  3023. <PropertyRef Name="SiteId" />
  3024. <PropertyRef Name="BuildingId" />
  3025. <PropertyRef Name="FloorId" />
  3026. <PropertyRef Name="ZoneId" />
  3027. </Dependent>
  3028. </ReferentialConstraint>
  3029. </Association>
  3030. <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
  3031. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3032. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  3033. <ReferentialConstraint>
  3034. <Principal Role="BemsFacilityType">
  3035. <PropertyRef Name="FacilityTypeId" />
  3036. </Principal>
  3037. <Dependent Role="BemsMonitoringPointBaseData">
  3038. <PropertyRef Name="FacilityTypeId" />
  3039. </Dependent>
  3040. </ReferentialConstraint>
  3041. </Association>
  3042. <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
  3043. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
  3044. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  3045. <ReferentialConstraint>
  3046. <Principal Role="BemsFuelType">
  3047. <PropertyRef Name="FuelTypeId" />
  3048. </Principal>
  3049. <Dependent Role="BemsMonitoringPointBaseData">
  3050. <PropertyRef Name="FuelTypeId" />
  3051. </Dependent>
  3052. </ReferentialConstraint>
  3053. </Association>
  3054. <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
  3055. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  3056. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  3057. <ReferentialConstraint>
  3058. <Principal Role="BemsServiceType">
  3059. <PropertyRef Name="ServiceTypeId" />
  3060. </Principal>
  3061. <Dependent Role="BemsMonitoringPointBaseData">
  3062. <PropertyRef Name="ServiceTypeId" />
  3063. </Dependent>
  3064. </ReferentialConstraint>
  3065. </Association>
  3066. <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  3067. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3068. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  3069. <ReferentialConstraint>
  3070. <Principal Role="BemsFacilityType">
  3071. <PropertyRef Name="FacilityTypeId" />
  3072. </Principal>
  3073. <Dependent Role="BemsMonitoringPointHistory15min">
  3074. <PropertyRef Name="FacilityTypeId" />
  3075. </Dependent>
  3076. </ReferentialConstraint>
  3077. </Association>
  3078. <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  3079. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3080. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  3081. <ReferentialConstraint>
  3082. <Principal Role="BemsMonitoringPoint">
  3083. <PropertyRef Name="SiteId" />
  3084. <PropertyRef Name="FacilityCode" />
  3085. <PropertyRef Name="PropertyId" />
  3086. </Principal>
  3087. <Dependent Role="BemsMonitoringPointHistory15min">
  3088. <PropertyRef Name="SiteId" />
  3089. <PropertyRef Name="FacilityCode" />
  3090. <PropertyRef Name="PropertyId" />
  3091. </Dependent>
  3092. </ReferentialConstraint>
  3093. </Association>
  3094. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  3095. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3096. <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  3097. <ReferentialConstraint>
  3098. <Principal Role="BemsFacilityType">
  3099. <PropertyRef Name="FacilityTypeId" />
  3100. </Principal>
  3101. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  3102. <PropertyRef Name="FacilityTypeId" />
  3103. </Dependent>
  3104. </ReferentialConstraint>
  3105. </Association>
  3106. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  3107. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3108. <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  3109. <ReferentialConstraint>
  3110. <Principal Role="BemsMonitoringPoint">
  3111. <PropertyRef Name="SiteId" />
  3112. <PropertyRef Name="FacilityCode" />
  3113. <PropertyRef Name="PropertyId" />
  3114. </Principal>
  3115. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  3116. <PropertyRef Name="SiteId" />
  3117. <PropertyRef Name="FacilityCode" />
  3118. <PropertyRef Name="PropertyId" />
  3119. </Dependent>
  3120. </ReferentialConstraint>
  3121. </Association>
  3122. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  3123. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3124. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  3125. <ReferentialConstraint>
  3126. <Principal Role="BemsFacilityType">
  3127. <PropertyRef Name="FacilityTypeId" />
  3128. </Principal>
  3129. <Dependent Role="BemsMonitoringPointHistoryDaily">
  3130. <PropertyRef Name="FacilityTypeId" />
  3131. </Dependent>
  3132. </ReferentialConstraint>
  3133. </Association>
  3134. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  3135. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3136. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  3137. <ReferentialConstraint>
  3138. <Principal Role="BemsMonitoringPoint">
  3139. <PropertyRef Name="SiteId" />
  3140. <PropertyRef Name="FacilityCode" />
  3141. <PropertyRef Name="PropertyId" />
  3142. </Principal>
  3143. <Dependent Role="BemsMonitoringPointHistoryDaily">
  3144. <PropertyRef Name="SiteId" />
  3145. <PropertyRef Name="FacilityCode" />
  3146. <PropertyRef Name="PropertyId" />
  3147. </Dependent>
  3148. </ReferentialConstraint>
  3149. </Association>
  3150. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  3151. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3152. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  3153. <ReferentialConstraint>
  3154. <Principal Role="BemsFacilityType">
  3155. <PropertyRef Name="FacilityTypeId" />
  3156. </Principal>
  3157. <Dependent Role="BemsMonitoringPointHistoryHourly">
  3158. <PropertyRef Name="FacilityTypeId" />
  3159. </Dependent>
  3160. </ReferentialConstraint>
  3161. </Association>
  3162. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  3163. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3164. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  3165. <ReferentialConstraint>
  3166. <Principal Role="BemsMonitoringPoint">
  3167. <PropertyRef Name="SiteId" />
  3168. <PropertyRef Name="FacilityCode" />
  3169. <PropertyRef Name="PropertyId" />
  3170. </Principal>
  3171. <Dependent Role="BemsMonitoringPointHistoryHourly">
  3172. <PropertyRef Name="SiteId" />
  3173. <PropertyRef Name="FacilityCode" />
  3174. <PropertyRef Name="PropertyId" />
  3175. </Dependent>
  3176. </ReferentialConstraint>
  3177. </Association>
  3178. <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  3179. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3180. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  3181. <ReferentialConstraint>
  3182. <Principal Role="BemsFacilityType">
  3183. <PropertyRef Name="FacilityTypeId" />
  3184. </Principal>
  3185. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  3186. <PropertyRef Name="FacilityTypeId" />
  3187. </Dependent>
  3188. </ReferentialConstraint>
  3189. </Association>
  3190. <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  3191. <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="1" />
  3192. <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="*" />
  3193. <ReferentialConstraint>
  3194. <Principal Role="BemsNoticePriceContractType">
  3195. <PropertyRef Name="FuelTypeId" />
  3196. <PropertyRef Name="ContractType" />
  3197. </Principal>
  3198. <Dependent Role="BemsNoticePriceBase">
  3199. <PropertyRef Name="FuelTypeId" />
  3200. <PropertyRef Name="ContractType" />
  3201. </Dependent>
  3202. </ReferentialConstraint>
  3203. </Association>
  3204. <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
  3205. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  3206. <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="*" />
  3207. <ReferentialConstraint>
  3208. <Principal Role="BemsFuelType">
  3209. <PropertyRef Name="FuelTypeId" />
  3210. </Principal>
  3211. <Dependent Role="BemsNoticePriceContractType">
  3212. <PropertyRef Name="FuelTypeId" />
  3213. </Dependent>
  3214. </ReferentialConstraint>
  3215. </Association>
  3216. <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  3217. <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="1" />
  3218. <End Role="BemsNoticePriceDetail" Type="Self.BemsNoticePriceDetail" Multiplicity="*" />
  3219. <ReferentialConstraint>
  3220. <Principal Role="BemsNoticePriceBase">
  3221. <PropertyRef Name="SiteId" />
  3222. <PropertyRef Name="FuelTypeId" />
  3223. <PropertyRef Name="ApplyDate" />
  3224. <PropertyRef Name="ContractType" />
  3225. </Principal>
  3226. <Dependent Role="BemsNoticePriceDetail">
  3227. <PropertyRef Name="SiteId" />
  3228. <PropertyRef Name="FuelTypeId" />
  3229. <PropertyRef Name="ApplyDate" />
  3230. <PropertyRef Name="ContractType" />
  3231. </Dependent>
  3232. </ReferentialConstraint>
  3233. </Association>
  3234. <Association Name="FK__CmCompany__345EC57D">
  3235. <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
  3236. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  3237. <ReferentialConstraint>
  3238. <Principal Role="CmCompanyType">
  3239. <PropertyRef Name="SiteId" />
  3240. <PropertyRef Name="CompanyTypeId" />
  3241. </Principal>
  3242. <Dependent Role="CmCompany">
  3243. <PropertyRef Name="SiteId" />
  3244. <PropertyRef Name="CompanyTypeId" />
  3245. </Dependent>
  3246. </ReferentialConstraint>
  3247. </Association>
  3248. <Association Name="FK__CmCompany__SiteI__336AA144">
  3249. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3250. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  3251. <ReferentialConstraint>
  3252. <Principal Role="CmSite">
  3253. <PropertyRef Name="SiteId" />
  3254. </Principal>
  3255. <Dependent Role="CmCompany">
  3256. <PropertyRef Name="SiteId" />
  3257. </Dependent>
  3258. </ReferentialConstraint>
  3259. </Association>
  3260. <Association Name="FK__CmDepartment__3552E9B6">
  3261. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
  3262. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
  3263. <ReferentialConstraint>
  3264. <Principal Role="CmCompany">
  3265. <PropertyRef Name="SiteId" />
  3266. <PropertyRef Name="CompanyId" />
  3267. </Principal>
  3268. <Dependent Role="CmDepartment">
  3269. <PropertyRef Name="SiteId" />
  3270. <PropertyRef Name="CompanyId" />
  3271. </Dependent>
  3272. </ReferentialConstraint>
  3273. </Association>
  3274. <Association Name="FK__CmFacility__CmFacility">
  3275. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
  3276. <End Role="CmFacility1" Type="Self.CmFacility" Multiplicity="*" />
  3277. <ReferentialConstraint>
  3278. <Principal Role="CmFacility">
  3279. <PropertyRef Name="SiteId" />
  3280. <PropertyRef Name="FacilityCode" />
  3281. </Principal>
  3282. <Dependent Role="CmFacility1">
  3283. <PropertyRef Name="SiteId" />
  3284. <PropertyRef Name="ParentFacilityCode" />
  3285. </Dependent>
  3286. </ReferentialConstraint>
  3287. </Association>
  3288. <Association Name="FK__CmFacilityFile__7720AD13">
  3289. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3290. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="*" />
  3291. <ReferentialConstraint>
  3292. <Principal Role="CmFacility">
  3293. <PropertyRef Name="SiteId" />
  3294. <PropertyRef Name="FacilityCode" />
  3295. </Principal>
  3296. <Dependent Role="CmFacilityFile">
  3297. <PropertyRef Name="SiteId" />
  3298. <PropertyRef Name="FacilityCode" />
  3299. </Dependent>
  3300. </ReferentialConstraint>
  3301. </Association>
  3302. <Association Name="FK__CmFacilityFile__CmFile">
  3303. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  3304. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
  3305. <ReferentialConstraint>
  3306. <Principal Role="CmFile">
  3307. <PropertyRef Name="SiteId" />
  3308. <PropertyRef Name="FileId" />
  3309. </Principal>
  3310. <Dependent Role="CmFacilityFile">
  3311. <PropertyRef Name="SiteId" />
  3312. <PropertyRef Name="FileId" />
  3313. </Dependent>
  3314. </ReferentialConstraint>
  3315. </Association>
  3316. <Association Name="FK__CmFacilityManual__79FD19BE">
  3317. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3318. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  3319. <ReferentialConstraint>
  3320. <Principal Role="CmFacility">
  3321. <PropertyRef Name="SiteId" />
  3322. <PropertyRef Name="FacilityCode" />
  3323. </Principal>
  3324. <Dependent Role="FmsFacilityManual">
  3325. <PropertyRef Name="SiteId" />
  3326. <PropertyRef Name="FacilityCode" />
  3327. </Dependent>
  3328. </ReferentialConstraint>
  3329. </Association>
  3330. <Association Name="FK__CmFacilityManual__7BE56230">
  3331. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3332. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  3333. <ReferentialConstraint>
  3334. <Principal Role="CmBusinessField">
  3335. <PropertyRef Name="SiteId" />
  3336. <PropertyRef Name="BusinessFieldId" />
  3337. </Principal>
  3338. <Dependent Role="FmsFacilityManual">
  3339. <PropertyRef Name="SiteId" />
  3340. <PropertyRef Name="BusinessFieldId" />
  3341. </Dependent>
  3342. </ReferentialConstraint>
  3343. </Association>
  3344. <Association Name="FK__CmFile__CmFileCategory">
  3345. <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
  3346. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  3347. <ReferentialConstraint>
  3348. <Principal Role="CmFileCategory">
  3349. <PropertyRef Name="FileCategoryId" />
  3350. </Principal>
  3351. <Dependent Role="CmFile">
  3352. <PropertyRef Name="FileCategoryId" />
  3353. </Dependent>
  3354. </ReferentialConstraint>
  3355. </Association>
  3356. <Association Name="FK__CmFile__SiteId__2759D01A">
  3357. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3358. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  3359. <ReferentialConstraint>
  3360. <Principal Role="CmSite">
  3361. <PropertyRef Name="SiteId" />
  3362. </Principal>
  3363. <Dependent Role="CmFile">
  3364. <PropertyRef Name="SiteId" />
  3365. </Dependent>
  3366. </ReferentialConstraint>
  3367. </Association>
  3368. <Association Name="FK__CmFloor__3CF40B7E">
  3369. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  3370. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
  3371. <ReferentialConstraint>
  3372. <Principal Role="CmBuilding">
  3373. <PropertyRef Name="SiteId" />
  3374. <PropertyRef Name="BuildingId" />
  3375. </Principal>
  3376. <Dependent Role="CmFloor">
  3377. <PropertyRef Name="SiteId" />
  3378. <PropertyRef Name="BuildingId" />
  3379. </Dependent>
  3380. </ReferentialConstraint>
  3381. </Association>
  3382. <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
  3383. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3384. <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
  3385. <ReferentialConstraint>
  3386. <Principal Role="CmSite">
  3387. <PropertyRef Name="SiteId" />
  3388. </Principal>
  3389. <Dependent Role="CmHoliday">
  3390. <PropertyRef Name="SiteId" />
  3391. </Dependent>
  3392. </ReferentialConstraint>
  3393. </Association>
  3394. <Association Name="FK__CmHoliday__SiteI__0D99FE17">
  3395. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3396. <End Role="CmHolidayWeekend" Type="Self.CmHolidayWeekend" Multiplicity="0..1" />
  3397. <ReferentialConstraint>
  3398. <Principal Role="CmSite">
  3399. <PropertyRef Name="SiteId" />
  3400. </Principal>
  3401. <Dependent Role="CmHolidayWeekend">
  3402. <PropertyRef Name="SiteId" />
  3403. </Dependent>
  3404. </ReferentialConstraint>
  3405. </Association>
  3406. <Association Name="FK__CmHoliday__SiteI__10766AC2">
  3407. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3408. <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
  3409. <ReferentialConstraint>
  3410. <Principal Role="CmSite">
  3411. <PropertyRef Name="SiteId" />
  3412. </Principal>
  3413. <Dependent Role="CmHolidayCustom">
  3414. <PropertyRef Name="SiteId" />
  3415. </Dependent>
  3416. </ReferentialConstraint>
  3417. </Association>
  3418. <Association Name="FK__CmHoliday__SiteI__65AC084E">
  3419. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3420. <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
  3421. <ReferentialConstraint>
  3422. <Principal Role="CmSite">
  3423. <PropertyRef Name="SiteId" />
  3424. </Principal>
  3425. <Dependent Role="CmHoliday">
  3426. <PropertyRef Name="SiteId" />
  3427. </Dependent>
  3428. </ReferentialConstraint>
  3429. </Association>
  3430. <Association Name="FK__CmHoliday__SiteI__66A02C87">
  3431. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3432. <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
  3433. <ReferentialConstraint>
  3434. <Principal Role="CmSite">
  3435. <PropertyRef Name="SiteId" />
  3436. </Principal>
  3437. <Dependent Role="CmHolidayCustom">
  3438. <PropertyRef Name="SiteId" />
  3439. </Dependent>
  3440. </ReferentialConstraint>
  3441. </Association>
  3442. <Association Name="FK__CmLocation__3DE82FB7">
  3443. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  3444. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  3445. <ReferentialConstraint>
  3446. <Principal Role="CmFloor">
  3447. <PropertyRef Name="SiteId" />
  3448. <PropertyRef Name="BuildingId" />
  3449. <PropertyRef Name="FloorId" />
  3450. </Principal>
  3451. <Dependent Role="CmZone">
  3452. <PropertyRef Name="SiteId" />
  3453. <PropertyRef Name="BuildingId" />
  3454. <PropertyRef Name="FloorId" />
  3455. </Dependent>
  3456. </ReferentialConstraint>
  3457. </Association>
  3458. <Association Name="FK__CmPositio__SiteI__6A70BD6B">
  3459. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3460. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
  3461. <ReferentialConstraint>
  3462. <Principal Role="CmSite">
  3463. <PropertyRef Name="SiteId" />
  3464. </Principal>
  3465. <Dependent Role="CmPosition">
  3466. <PropertyRef Name="SiteId" />
  3467. </Dependent>
  3468. </ReferentialConstraint>
  3469. </Association>
  3470. <Association Name="FK__CmUserGro__SiteI__53D770D6">
  3471. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3472. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="*" />
  3473. <ReferentialConstraint>
  3474. <Principal Role="CmSite">
  3475. <PropertyRef Name="SiteId" />
  3476. </Principal>
  3477. <Dependent Role="CmUserGroup">
  3478. <PropertyRef Name="SiteId" />
  3479. </Dependent>
  3480. </ReferentialConstraint>
  3481. </Association>
  3482. <Association Name="FK__CmUserGroupPermission__CmUserGroup">
  3483. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
  3484. <OnDelete Action="Cascade" />
  3485. </End>
  3486. <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
  3487. <ReferentialConstraint>
  3488. <Principal Role="CmUserGroup">
  3489. <PropertyRef Name="SiteId" />
  3490. <PropertyRef Name="UserGroupId" />
  3491. </Principal>
  3492. <Dependent Role="CmUserGroupPermission">
  3493. <PropertyRef Name="SiteId" />
  3494. <PropertyRef Name="UserGroupId" />
  3495. </Dependent>
  3496. </ReferentialConstraint>
  3497. </Association>
  3498. <Association Name="FK__CmUserPos__SiteI__44952D46">
  3499. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3500. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
  3501. <ReferentialConstraint>
  3502. <Principal Role="CmSite">
  3503. <PropertyRef Name="SiteId" />
  3504. </Principal>
  3505. <Dependent Role="CmPosition">
  3506. <PropertyRef Name="SiteId" />
  3507. </Dependent>
  3508. </ReferentialConstraint>
  3509. </Association>
  3510. <Association Name="FK__CmUserToLicense__CmUser">
  3511. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3512. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  3513. <ReferentialConstraint>
  3514. <Principal Role="CmUser">
  3515. <PropertyRef Name="SiteId" />
  3516. <PropertyRef Name="UserId" />
  3517. </Principal>
  3518. <Dependent Role="CmUserToLicense">
  3519. <PropertyRef Name="SiteId" />
  3520. <PropertyRef Name="UserId" />
  3521. </Dependent>
  3522. </ReferentialConstraint>
  3523. </Association>
  3524. <Association Name="FK__CmUserToLicense__FmsLicense">
  3525. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
  3526. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  3527. <ReferentialConstraint>
  3528. <Principal Role="FmsLicense">
  3529. <PropertyRef Name="SiteId" />
  3530. <PropertyRef Name="LicenseId" />
  3531. </Principal>
  3532. <Dependent Role="CmUserToLicense">
  3533. <PropertyRef Name="SiteId" />
  3534. <PropertyRef Name="LicenseId" />
  3535. </Dependent>
  3536. </ReferentialConstraint>
  3537. </Association>
  3538. <Association Name="FK__CmZone__CmBuilding">
  3539. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  3540. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  3541. <ReferentialConstraint>
  3542. <Principal Role="CmBuilding">
  3543. <PropertyRef Name="SiteId" />
  3544. <PropertyRef Name="BuildingId" />
  3545. </Principal>
  3546. <Dependent Role="CmZone">
  3547. <PropertyRef Name="SiteId" />
  3548. <PropertyRef Name="BuildingId" />
  3549. </Dependent>
  3550. </ReferentialConstraint>
  3551. </Association>
  3552. <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
  3553. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3554. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
  3555. <ReferentialConstraint>
  3556. <Principal Role="CmSite">
  3557. <PropertyRef Name="SiteId" />
  3558. </Principal>
  3559. <Dependent Role="FmsDrawingCodeGroup">
  3560. <PropertyRef Name="SiteId" />
  3561. </Dependent>
  3562. </ReferentialConstraint>
  3563. </Association>
  3564. <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
  3565. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3566. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
  3567. <ReferentialConstraint>
  3568. <Principal Role="CmSite">
  3569. <PropertyRef Name="SiteId" />
  3570. </Principal>
  3571. <Dependent Role="FmsDrawingCodeType">
  3572. <PropertyRef Name="SiteId" />
  3573. </Dependent>
  3574. </ReferentialConstraint>
  3575. </Association>
  3576. <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
  3577. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3578. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3579. <ReferentialConstraint>
  3580. <Principal Role="CmSite">
  3581. <PropertyRef Name="SiteId" />
  3582. </Principal>
  3583. <Dependent Role="FmsDrawing">
  3584. <PropertyRef Name="SiteId" />
  3585. </Dependent>
  3586. </ReferentialConstraint>
  3587. </Association>
  3588. <Association Name="FK__FmsDrawin__SiteI__6F357288">
  3589. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3590. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
  3591. <ReferentialConstraint>
  3592. <Principal Role="CmSite">
  3593. <PropertyRef Name="SiteId" />
  3594. </Principal>
  3595. <Dependent Role="FmsDrawingCodeGroup">
  3596. <PropertyRef Name="SiteId" />
  3597. </Dependent>
  3598. </ReferentialConstraint>
  3599. </Association>
  3600. <Association Name="FK__FmsDrawin__SiteI__702996C1">
  3601. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3602. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
  3603. <ReferentialConstraint>
  3604. <Principal Role="CmSite">
  3605. <PropertyRef Name="SiteId" />
  3606. </Principal>
  3607. <Dependent Role="FmsDrawingCodeType">
  3608. <PropertyRef Name="SiteId" />
  3609. </Dependent>
  3610. </ReferentialConstraint>
  3611. </Association>
  3612. <Association Name="FK__FmsDrawing__6E565CE8">
  3613. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
  3614. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3615. <ReferentialConstraint>
  3616. <Principal Role="FmsDrawingCodeGroup">
  3617. <PropertyRef Name="SiteId" />
  3618. <PropertyRef Name="DrawingGroupId" />
  3619. </Principal>
  3620. <Dependent Role="FmsDrawing">
  3621. <PropertyRef Name="SiteId" />
  3622. <PropertyRef Name="DrawingGroupId" />
  3623. </Dependent>
  3624. </ReferentialConstraint>
  3625. </Association>
  3626. <Association Name="FK__FmsDrawing__6F4A8121">
  3627. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
  3628. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3629. <ReferentialConstraint>
  3630. <Principal Role="FmsDrawingCodeType">
  3631. <PropertyRef Name="SiteId" />
  3632. <PropertyRef Name="DrawingTypeId" />
  3633. </Principal>
  3634. <Dependent Role="FmsDrawing">
  3635. <PropertyRef Name="SiteId" />
  3636. <PropertyRef Name="DrawingTypeId" />
  3637. </Dependent>
  3638. </ReferentialConstraint>
  3639. </Association>
  3640. <Association Name="FK__FmsDrawingHistor__04DA9AE4">
  3641. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  3642. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3643. <ReferentialConstraint>
  3644. <Principal Role="CmFile">
  3645. <PropertyRef Name="SiteId" />
  3646. <PropertyRef Name="FileId" />
  3647. </Principal>
  3648. <Dependent Role="FmsDrawingHistory">
  3649. <PropertyRef Name="SiteId" />
  3650. <PropertyRef Name="FileId" />
  3651. </Dependent>
  3652. </ReferentialConstraint>
  3653. </Association>
  3654. <Association Name="FK__FmsDrawingHistor__7132C993">
  3655. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1">
  3656. <OnDelete Action="Cascade" />
  3657. </End>
  3658. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3659. <ReferentialConstraint>
  3660. <Principal Role="FmsDrawing">
  3661. <PropertyRef Name="SiteId" />
  3662. <PropertyRef Name="DrawingId" />
  3663. </Principal>
  3664. <Dependent Role="FmsDrawingHistory">
  3665. <PropertyRef Name="SiteId" />
  3666. <PropertyRef Name="DrawingId" />
  3667. </Dependent>
  3668. </ReferentialConstraint>
  3669. </Association>
  3670. <Association Name="FK__FmsDrawingHistory__CmUser">
  3671. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  3672. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3673. <ReferentialConstraint>
  3674. <Principal Role="CmUser">
  3675. <PropertyRef Name="SiteId" />
  3676. <PropertyRef Name="UserId" />
  3677. </Principal>
  3678. <Dependent Role="FmsDrawingHistory">
  3679. <PropertyRef Name="SiteId" />
  3680. <PropertyRef Name="UpdatedUserId" />
  3681. </Dependent>
  3682. </ReferentialConstraint>
  3683. </Association>
  3684. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  3685. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  3686. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  3687. <ReferentialConstraint>
  3688. <Principal Role="FmsWorkCodeCycleUnit">
  3689. <PropertyRef Name="SiteId" />
  3690. <PropertyRef Name="CycleUnitId" />
  3691. </Principal>
  3692. <Dependent Role="FmsFacilityCheckItem">
  3693. <PropertyRef Name="SiteId" />
  3694. <PropertyRef Name="CycleUnitId" />
  3695. </Dependent>
  3696. </ReferentialConstraint>
  3697. </Association>
  3698. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  3699. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  3700. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  3701. <ReferentialConstraint>
  3702. <Principal Role="FmsWorkCodeType">
  3703. <PropertyRef Name="WorkTypeId" />
  3704. </Principal>
  3705. <Dependent Role="FmsFacilityCheckItem">
  3706. <PropertyRef Name="WorkTypeId" />
  3707. </Dependent>
  3708. </ReferentialConstraint>
  3709. </Association>
  3710. <Association Name="FK__FmsFacilityCodeClass__CmSite">
  3711. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1">
  3712. <OnDelete Action="Cascade" />
  3713. </End>
  3714. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  3715. <ReferentialConstraint>
  3716. <Principal Role="CmSite">
  3717. <PropertyRef Name="SiteId" />
  3718. </Principal>
  3719. <Dependent Role="FmsFacilityCodeClass">
  3720. <PropertyRef Name="SiteId" />
  3721. </Dependent>
  3722. </ReferentialConstraint>
  3723. </Association>
  3724. <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  3725. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
  3726. <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  3727. <ReferentialConstraint>
  3728. <Principal Role="FmsFacilityCodeClass">
  3729. <PropertyRef Name="SiteId" />
  3730. <PropertyRef Name="FacilityClassId" />
  3731. </Principal>
  3732. <Dependent Role="FmsFacilityCodeClass1">
  3733. <PropertyRef Name="SiteId" />
  3734. <PropertyRef Name="ParentFacilityClassId" />
  3735. </Dependent>
  3736. </ReferentialConstraint>
  3737. </Association>
  3738. <Association Name="FK__FmsFacilityOpera__725BF7F6">
  3739. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3740. <End Role="FmsFacilityOperationItem" Type="Self.FmsFacilityOperationItem" Multiplicity="0..1" />
  3741. <ReferentialConstraint>
  3742. <Principal Role="CmFacility">
  3743. <PropertyRef Name="SiteId" />
  3744. <PropertyRef Name="FacilityCode" />
  3745. </Principal>
  3746. <Dependent Role="FmsFacilityOperationItem">
  3747. <PropertyRef Name="SiteId" />
  3748. <PropertyRef Name="ItemId" />
  3749. </Dependent>
  3750. </ReferentialConstraint>
  3751. </Association>
  3752. <Association Name="FK__FmsLicense__CmBusinessField">
  3753. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  3754. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  3755. <ReferentialConstraint>
  3756. <Principal Role="CmBusinessField">
  3757. <PropertyRef Name="SiteId" />
  3758. <PropertyRef Name="BusinessFieldId" />
  3759. </Principal>
  3760. <Dependent Role="FmsLicense">
  3761. <PropertyRef Name="SiteId" />
  3762. <PropertyRef Name="BusinessFieldId" />
  3763. </Dependent>
  3764. </ReferentialConstraint>
  3765. </Association>
  3766. <Association Name="FK__FmsLicense__CmSite">
  3767. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3768. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  3769. <ReferentialConstraint>
  3770. <Principal Role="CmSite">
  3771. <PropertyRef Name="SiteId" />
  3772. </Principal>
  3773. <Dependent Role="FmsLicense">
  3774. <PropertyRef Name="SiteId" />
  3775. </Dependent>
  3776. </ReferentialConstraint>
  3777. </Association>
  3778. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  3779. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3780. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3781. <ReferentialConstraint>
  3782. <Principal Role="FmsMaterialCodeClass">
  3783. <PropertyRef Name="SiteId" />
  3784. <PropertyRef Name="MaterialClassId" />
  3785. </Principal>
  3786. <Dependent Role="FmsMaterial">
  3787. <PropertyRef Name="SiteId" />
  3788. <PropertyRef Name="FirstClassId" />
  3789. </Dependent>
  3790. </ReferentialConstraint>
  3791. </Association>
  3792. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  3793. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3794. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3795. <ReferentialConstraint>
  3796. <Principal Role="FmsMaterialCodeClass">
  3797. <PropertyRef Name="SiteId" />
  3798. <PropertyRef Name="MaterialClassId" />
  3799. </Principal>
  3800. <Dependent Role="FmsMaterial">
  3801. <PropertyRef Name="SiteId" />
  3802. <PropertyRef Name="SecondClassId" />
  3803. </Dependent>
  3804. </ReferentialConstraint>
  3805. </Association>
  3806. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  3807. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3808. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3809. <ReferentialConstraint>
  3810. <Principal Role="FmsMaterialCodeClass">
  3811. <PropertyRef Name="SiteId" />
  3812. <PropertyRef Name="MaterialClassId" />
  3813. </Principal>
  3814. <Dependent Role="FmsMaterial">
  3815. <PropertyRef Name="SiteId" />
  3816. <PropertyRef Name="ThirdClassId" />
  3817. </Dependent>
  3818. </ReferentialConstraint>
  3819. </Association>
  3820. <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
  3821. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3822. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  3823. <ReferentialConstraint>
  3824. <Principal Role="CmBusinessField">
  3825. <PropertyRef Name="SiteId" />
  3826. <PropertyRef Name="BusinessFieldId" />
  3827. </Principal>
  3828. <Dependent Role="FmsMaterialCarriedForward">
  3829. <PropertyRef Name="SiteId" />
  3830. <PropertyRef Name="BusinessFieldId" />
  3831. </Dependent>
  3832. </ReferentialConstraint>
  3833. </Association>
  3834. <Association Name="FK__FmsMaterialCarriedForward__CmSite">
  3835. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3836. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  3837. <ReferentialConstraint>
  3838. <Principal Role="CmSite">
  3839. <PropertyRef Name="SiteId" />
  3840. </Principal>
  3841. <Dependent Role="FmsMaterialCarriedForward">
  3842. <PropertyRef Name="SiteId" />
  3843. </Dependent>
  3844. </ReferentialConstraint>
  3845. </Association>
  3846. <Association Name="FK__FmsMaterialCodeClass__CmSite">
  3847. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3848. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3849. <ReferentialConstraint>
  3850. <Principal Role="CmSite">
  3851. <PropertyRef Name="SiteId" />
  3852. </Principal>
  3853. <Dependent Role="FmsMaterialCodeClass">
  3854. <PropertyRef Name="SiteId" />
  3855. </Dependent>
  3856. </ReferentialConstraint>
  3857. </Association>
  3858. <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  3859. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3860. <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3861. <ReferentialConstraint>
  3862. <Principal Role="FmsMaterialCodeClass">
  3863. <PropertyRef Name="SiteId" />
  3864. <PropertyRef Name="MaterialClassId" />
  3865. </Principal>
  3866. <Dependent Role="FmsMaterialCodeClass1">
  3867. <PropertyRef Name="SiteId" />
  3868. <PropertyRef Name="ParentMaterialClassId" />
  3869. </Dependent>
  3870. </ReferentialConstraint>
  3871. </Association>
  3872. <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
  3873. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3874. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  3875. <ReferentialConstraint>
  3876. <Principal Role="CmBusinessField">
  3877. <PropertyRef Name="SiteId" />
  3878. <PropertyRef Name="BusinessFieldId" />
  3879. </Principal>
  3880. <Dependent Role="FmsMaterialCodeLocation">
  3881. <PropertyRef Name="SiteId" />
  3882. <PropertyRef Name="BusinessFieldId" />
  3883. </Dependent>
  3884. </ReferentialConstraint>
  3885. </Association>
  3886. <Association Name="FK__FmsMaterialCodeLocation__CmSite">
  3887. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3888. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  3889. <ReferentialConstraint>
  3890. <Principal Role="CmSite">
  3891. <PropertyRef Name="SiteId" />
  3892. </Principal>
  3893. <Dependent Role="FmsMaterialCodeLocation">
  3894. <PropertyRef Name="SiteId" />
  3895. </Dependent>
  3896. </ReferentialConstraint>
  3897. </Association>
  3898. <Association Name="FK__FmsMaterialCodeType__CmSite">
  3899. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3900. <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="*" />
  3901. <ReferentialConstraint>
  3902. <Principal Role="CmSite">
  3903. <PropertyRef Name="SiteId" />
  3904. </Principal>
  3905. <Dependent Role="FmsMaterialCodeType">
  3906. <PropertyRef Name="SiteId" />
  3907. </Dependent>
  3908. </ReferentialConstraint>
  3909. </Association>
  3910. <Association Name="FK__FmsMaterialOrder__CmBusinessField">
  3911. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3912. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3913. <ReferentialConstraint>
  3914. <Principal Role="CmBusinessField">
  3915. <PropertyRef Name="SiteId" />
  3916. <PropertyRef Name="BusinessFieldId" />
  3917. </Principal>
  3918. <Dependent Role="FmsMaterialPurchaseOrder">
  3919. <PropertyRef Name="SiteId" />
  3920. <PropertyRef Name="BusinessFieldId" />
  3921. </Dependent>
  3922. </ReferentialConstraint>
  3923. </Association>
  3924. <Association Name="FK__FmsMaterialOrder__CmSite">
  3925. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3926. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3927. <ReferentialConstraint>
  3928. <Principal Role="CmSite">
  3929. <PropertyRef Name="SiteId" />
  3930. </Principal>
  3931. <Dependent Role="FmsMaterialPurchaseOrder">
  3932. <PropertyRef Name="SiteId" />
  3933. </Dependent>
  3934. </ReferentialConstraint>
  3935. </Association>
  3936. <Association Name="FK__FmsMaterialOrder__CmUser">
  3937. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3938. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3939. <ReferentialConstraint>
  3940. <Principal Role="CmUser">
  3941. <PropertyRef Name="SiteId" />
  3942. <PropertyRef Name="UserId" />
  3943. </Principal>
  3944. <Dependent Role="FmsMaterialPurchaseOrder">
  3945. <PropertyRef Name="SiteId" />
  3946. <PropertyRef Name="OrderUserId" />
  3947. </Dependent>
  3948. </ReferentialConstraint>
  3949. </Association>
  3950. <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
  3951. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  3952. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3953. <ReferentialConstraint>
  3954. <Principal Role="CmFile">
  3955. <PropertyRef Name="SiteId" />
  3956. <PropertyRef Name="FileId" />
  3957. </Principal>
  3958. <Dependent Role="FmsMaterialPurchaseOrder">
  3959. <PropertyRef Name="SiteId" />
  3960. <PropertyRef Name="FileId" />
  3961. </Dependent>
  3962. </ReferentialConstraint>
  3963. </Association>
  3964. <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  3965. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  3966. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3967. <ReferentialConstraint>
  3968. <Principal Role="FmsMaterialTradeCompany">
  3969. <PropertyRef Name="SiteId" />
  3970. <PropertyRef Name="TradeCompanyId" />
  3971. </Principal>
  3972. <Dependent Role="FmsMaterialPurchaseOrder">
  3973. <PropertyRef Name="SiteId" />
  3974. <PropertyRef Name="TradeCompanyId" />
  3975. </Dependent>
  3976. </ReferentialConstraint>
  3977. </Association>
  3978. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  3979. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3980. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3981. <ReferentialConstraint>
  3982. <Principal Role="CmUser">
  3983. <PropertyRef Name="SiteId" />
  3984. <PropertyRef Name="UserId" />
  3985. </Principal>
  3986. <Dependent Role="FmsMaterialPurchaseRequest">
  3987. <PropertyRef Name="SiteId" />
  3988. <PropertyRef Name="RequestUserId" />
  3989. </Dependent>
  3990. </ReferentialConstraint>
  3991. </Association>
  3992. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  3993. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  3994. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3995. <ReferentialConstraint>
  3996. <Principal Role="CmUser">
  3997. <PropertyRef Name="SiteId" />
  3998. <PropertyRef Name="UserId" />
  3999. </Principal>
  4000. <Dependent Role="FmsMaterialPurchaseRequest">
  4001. <PropertyRef Name="SiteId" />
  4002. <PropertyRef Name="ApprovalUserId" />
  4003. </Dependent>
  4004. </ReferentialConstraint>
  4005. </Association>
  4006. <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
  4007. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4008. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4009. <ReferentialConstraint>
  4010. <Principal Role="CmBusinessField">
  4011. <PropertyRef Name="SiteId" />
  4012. <PropertyRef Name="BusinessFieldId" />
  4013. </Principal>
  4014. <Dependent Role="FmsMaterialPurchaseRequest">
  4015. <PropertyRef Name="SiteId" />
  4016. <PropertyRef Name="BusinessFieldId" />
  4017. </Dependent>
  4018. </ReferentialConstraint>
  4019. </Association>
  4020. <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
  4021. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4022. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4023. <ReferentialConstraint>
  4024. <Principal Role="CmSite">
  4025. <PropertyRef Name="SiteId" />
  4026. </Principal>
  4027. <Dependent Role="FmsMaterialPurchaseRequest">
  4028. <PropertyRef Name="SiteId" />
  4029. </Dependent>
  4030. </ReferentialConstraint>
  4031. </Association>
  4032. <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  4033. <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
  4034. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  4035. <ReferentialConstraint>
  4036. <Principal Role="FmsMaterialCodeProgress">
  4037. <PropertyRef Name="ProgressId" />
  4038. </Principal>
  4039. <Dependent Role="FmsMaterialPurchaseRequest">
  4040. <PropertyRef Name="ProgressId" />
  4041. </Dependent>
  4042. </ReferentialConstraint>
  4043. </Association>
  4044. <Association Name="FK__FmsMaterialStored__CmBusinessField">
  4045. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4046. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4047. <ReferentialConstraint>
  4048. <Principal Role="CmBusinessField">
  4049. <PropertyRef Name="SiteId" />
  4050. <PropertyRef Name="BusinessFieldId" />
  4051. </Principal>
  4052. <Dependent Role="FmsMaterialStored">
  4053. <PropertyRef Name="SiteId" />
  4054. <PropertyRef Name="BusinessFieldId" />
  4055. </Dependent>
  4056. </ReferentialConstraint>
  4057. </Association>
  4058. <Association Name="FK__FmsMaterialStored__CmSite">
  4059. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4060. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4061. <ReferentialConstraint>
  4062. <Principal Role="CmSite">
  4063. <PropertyRef Name="SiteId" />
  4064. </Principal>
  4065. <Dependent Role="FmsMaterialStored">
  4066. <PropertyRef Name="SiteId" />
  4067. </Dependent>
  4068. </ReferentialConstraint>
  4069. </Association>
  4070. <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
  4071. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4072. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4073. <ReferentialConstraint>
  4074. <Principal Role="CmUser">
  4075. <PropertyRef Name="SiteId" />
  4076. <PropertyRef Name="UserId" />
  4077. </Principal>
  4078. <Dependent Role="FmsMaterialStored">
  4079. <PropertyRef Name="SiteId" />
  4080. <PropertyRef Name="StoredUserId" />
  4081. </Dependent>
  4082. </ReferentialConstraint>
  4083. </Association>
  4084. <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  4085. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4086. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4087. <ReferentialConstraint>
  4088. <Principal Role="CmUser">
  4089. <PropertyRef Name="SiteId" />
  4090. <PropertyRef Name="UserId" />
  4091. </Principal>
  4092. <Dependent Role="FmsMaterialStored">
  4093. <PropertyRef Name="SiteId" />
  4094. <PropertyRef Name="ApprovalUserId" />
  4095. </Dependent>
  4096. </ReferentialConstraint>
  4097. </Association>
  4098. <Association Name="FK__FmsMaterialTradeCompany__CmSite">
  4099. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4100. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="*" />
  4101. <ReferentialConstraint>
  4102. <Principal Role="CmSite">
  4103. <PropertyRef Name="SiteId" />
  4104. </Principal>
  4105. <Dependent Role="FmsMaterialTradeCompany">
  4106. <PropertyRef Name="SiteId" />
  4107. </Dependent>
  4108. </ReferentialConstraint>
  4109. </Association>
  4110. <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
  4111. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4112. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  4113. <ReferentialConstraint>
  4114. <Principal Role="CmBusinessField">
  4115. <PropertyRef Name="SiteId" />
  4116. <PropertyRef Name="BusinessFieldId" />
  4117. </Principal>
  4118. <Dependent Role="FmsMaterialWarehouse">
  4119. <PropertyRef Name="SiteId" />
  4120. <PropertyRef Name="BusinessFieldId" />
  4121. </Dependent>
  4122. </ReferentialConstraint>
  4123. </Association>
  4124. <Association Name="FK__FmsMaterialWarehouse__CmSite">
  4125. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4126. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  4127. <ReferentialConstraint>
  4128. <Principal Role="CmSite">
  4129. <PropertyRef Name="SiteId" />
  4130. </Principal>
  4131. <Dependent Role="FmsMaterialWarehouse">
  4132. <PropertyRef Name="SiteId" />
  4133. </Dependent>
  4134. </ReferentialConstraint>
  4135. </Association>
  4136. <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
  4137. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4138. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="*" />
  4139. <ReferentialConstraint>
  4140. <Principal Role="CmSite">
  4141. <PropertyRef Name="SiteId" />
  4142. </Principal>
  4143. <Dependent Role="FmsWorkCodeCauseClass">
  4144. <PropertyRef Name="SiteId" />
  4145. </Dependent>
  4146. </ReferentialConstraint>
  4147. </Association>
  4148. <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
  4149. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4150. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="*" />
  4151. <ReferentialConstraint>
  4152. <Principal Role="CmSite">
  4153. <PropertyRef Name="SiteId" />
  4154. </Principal>
  4155. <Dependent Role="FmsWorkCodeCycleUnit">
  4156. <PropertyRef Name="SiteId" />
  4157. </Dependent>
  4158. </ReferentialConstraint>
  4159. </Association>
  4160. <Association Name="FK__FmsWorkCodeEmergency__CmSite">
  4161. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4162. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="*" />
  4163. <ReferentialConstraint>
  4164. <Principal Role="CmSite">
  4165. <PropertyRef Name="SiteId" />
  4166. </Principal>
  4167. <Dependent Role="FmsWorkCodeEmergency">
  4168. <PropertyRef Name="SiteId" />
  4169. </Dependent>
  4170. </ReferentialConstraint>
  4171. </Association>
  4172. <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
  4173. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4174. <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="*" />
  4175. <ReferentialConstraint>
  4176. <Principal Role="CmSite">
  4177. <PropertyRef Name="SiteId" />
  4178. </Principal>
  4179. <Dependent Role="FmsWorkCodeHolidayWorkType">
  4180. <PropertyRef Name="SiteId" />
  4181. </Dependent>
  4182. </ReferentialConstraint>
  4183. </Association>
  4184. <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  4185. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4186. <End Role="FmsWorkCodeLegalInspectionAgency" Type="Self.FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
  4187. <ReferentialConstraint>
  4188. <Principal Role="CmSite">
  4189. <PropertyRef Name="SiteId" />
  4190. </Principal>
  4191. <Dependent Role="FmsWorkCodeLegalInspectionAgency">
  4192. <PropertyRef Name="SiteId" />
  4193. </Dependent>
  4194. </ReferentialConstraint>
  4195. </Association>
  4196. <Association Name="FK__FmsWorkOrder__CmBusinessField">
  4197. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4198. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4199. <ReferentialConstraint>
  4200. <Principal Role="CmBusinessField">
  4201. <PropertyRef Name="SiteId" />
  4202. <PropertyRef Name="BusinessFieldId" />
  4203. </Principal>
  4204. <Dependent Role="FmsWorkOrder">
  4205. <PropertyRef Name="SiteId" />
  4206. <PropertyRef Name="BusinessFieldId" />
  4207. </Dependent>
  4208. </ReferentialConstraint>
  4209. </Association>
  4210. <Association Name="FK__FmsWorkOrder__CmSite">
  4211. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4212. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4213. <ReferentialConstraint>
  4214. <Principal Role="CmSite">
  4215. <PropertyRef Name="SiteId" />
  4216. </Principal>
  4217. <Dependent Role="FmsWorkOrder">
  4218. <PropertyRef Name="SiteId" />
  4219. </Dependent>
  4220. </ReferentialConstraint>
  4221. </Association>
  4222. <Association Name="FK__FmsWorkOrder__CmUser">
  4223. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4224. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4225. <ReferentialConstraint>
  4226. <Principal Role="CmUser">
  4227. <PropertyRef Name="SiteId" />
  4228. <PropertyRef Name="UserId" />
  4229. </Principal>
  4230. <Dependent Role="FmsWorkOrder">
  4231. <PropertyRef Name="SiteId" />
  4232. <PropertyRef Name="OrderUserId" />
  4233. </Dependent>
  4234. </ReferentialConstraint>
  4235. </Association>
  4236. <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
  4237. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
  4238. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4239. <ReferentialConstraint>
  4240. <Principal Role="FmsWorkCodeEmergency">
  4241. <PropertyRef Name="SiteId" />
  4242. <PropertyRef Name="EmergencyId" />
  4243. </Principal>
  4244. <Dependent Role="FmsWorkOrder">
  4245. <PropertyRef Name="SiteId" />
  4246. <PropertyRef Name="EmergencyId" />
  4247. </Dependent>
  4248. </ReferentialConstraint>
  4249. </Association>
  4250. <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
  4251. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  4252. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
  4253. <ReferentialConstraint>
  4254. <Principal Role="FmsWorkRequest">
  4255. <PropertyRef Name="SiteId" />
  4256. <PropertyRef Name="WorkRequestId" />
  4257. </Principal>
  4258. <Dependent Role="FmsWorkOrder">
  4259. <PropertyRef Name="SiteId" />
  4260. <PropertyRef Name="WorkRequestId" />
  4261. </Dependent>
  4262. </ReferentialConstraint>
  4263. </Association>
  4264. <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
  4265. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
  4266. <OnDelete Action="Cascade" />
  4267. </End>
  4268. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  4269. <ReferentialConstraint>
  4270. <Principal Role="FmsWorkOrder">
  4271. <PropertyRef Name="SiteId" />
  4272. <PropertyRef Name="WorkRequestId" />
  4273. </Principal>
  4274. <Dependent Role="FmsWorkOrderToFacility">
  4275. <PropertyRef Name="SiteId" />
  4276. <PropertyRef Name="WorkRequestId" />
  4277. </Dependent>
  4278. </ReferentialConstraint>
  4279. </Association>
  4280. <Association Name="FK__FmsWorkRequest__CmBusinessField">
  4281. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4282. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4283. <ReferentialConstraint>
  4284. <Principal Role="CmBusinessField">
  4285. <PropertyRef Name="SiteId" />
  4286. <PropertyRef Name="BusinessFieldId" />
  4287. </Principal>
  4288. <Dependent Role="FmsWorkRequest">
  4289. <PropertyRef Name="SiteId" />
  4290. <PropertyRef Name="BusinessFieldId" />
  4291. </Dependent>
  4292. </ReferentialConstraint>
  4293. </Association>
  4294. <Association Name="FK__FmsWorkRequest__CmSite">
  4295. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4296. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4297. <ReferentialConstraint>
  4298. <Principal Role="CmSite">
  4299. <PropertyRef Name="SiteId" />
  4300. </Principal>
  4301. <Dependent Role="FmsWorkRequest">
  4302. <PropertyRef Name="SiteId" />
  4303. </Dependent>
  4304. </ReferentialConstraint>
  4305. </Association>
  4306. <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
  4307. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4308. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4309. <ReferentialConstraint>
  4310. <Principal Role="CmUser">
  4311. <PropertyRef Name="SiteId" />
  4312. <PropertyRef Name="UserId" />
  4313. </Principal>
  4314. <Dependent Role="FmsWorkRequest">
  4315. <PropertyRef Name="SiteId" />
  4316. <PropertyRef Name="RequestUserId" />
  4317. </Dependent>
  4318. </ReferentialConstraint>
  4319. </Association>
  4320. <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  4321. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4322. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4323. <ReferentialConstraint>
  4324. <Principal Role="CmUser">
  4325. <PropertyRef Name="SiteId" />
  4326. <PropertyRef Name="UserId" />
  4327. </Principal>
  4328. <Dependent Role="FmsWorkRequest">
  4329. <PropertyRef Name="SiteId" />
  4330. <PropertyRef Name="RejectUserId" />
  4331. </Dependent>
  4332. </ReferentialConstraint>
  4333. </Association>
  4334. <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
  4335. <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
  4336. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4337. <ReferentialConstraint>
  4338. <Principal Role="FmsWorkCodeProgress">
  4339. <PropertyRef Name="WorkProgressId" />
  4340. </Principal>
  4341. <Dependent Role="FmsWorkRequest">
  4342. <PropertyRef Name="WorkProgressId" />
  4343. </Dependent>
  4344. </ReferentialConstraint>
  4345. </Association>
  4346. <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
  4347. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  4348. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4349. <ReferentialConstraint>
  4350. <Principal Role="FmsWorkCodeType">
  4351. <PropertyRef Name="WorkTypeId" />
  4352. </Principal>
  4353. <Dependent Role="FmsWorkRequest">
  4354. <PropertyRef Name="WorkTypeId" />
  4355. </Dependent>
  4356. </ReferentialConstraint>
  4357. </Association>
  4358. <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
  4359. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="0..1" />
  4360. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4361. <ReferentialConstraint>
  4362. <Principal Role="FmsWorkSchedule">
  4363. <PropertyRef Name="SiteId" />
  4364. <PropertyRef Name="WorkScheduleId" />
  4365. </Principal>
  4366. <Dependent Role="FmsWorkRequest">
  4367. <PropertyRef Name="SiteId" />
  4368. <PropertyRef Name="WorkScheduleId" />
  4369. </Dependent>
  4370. </ReferentialConstraint>
  4371. </Association>
  4372. <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
  4373. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
  4374. <OnDelete Action="Cascade" />
  4375. </End>
  4376. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  4377. <ReferentialConstraint>
  4378. <Principal Role="FmsWorkRequest">
  4379. <PropertyRef Name="SiteId" />
  4380. <PropertyRef Name="WorkRequestId" />
  4381. </Principal>
  4382. <Dependent Role="FmsWorkRequestToFacility">
  4383. <PropertyRef Name="SiteId" />
  4384. <PropertyRef Name="WorkRequestId" />
  4385. </Dependent>
  4386. </ReferentialConstraint>
  4387. </Association>
  4388. <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
  4389. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4390. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4391. <ReferentialConstraint>
  4392. <Principal Role="CmUser">
  4393. <PropertyRef Name="SiteId" />
  4394. <PropertyRef Name="UserId" />
  4395. </Principal>
  4396. <Dependent Role="FmsWorkResult">
  4397. <PropertyRef Name="SiteId" />
  4398. <PropertyRef Name="WorkerUserId" />
  4399. </Dependent>
  4400. </ReferentialConstraint>
  4401. </Association>
  4402. <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  4403. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4404. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4405. <ReferentialConstraint>
  4406. <Principal Role="CmUser">
  4407. <PropertyRef Name="SiteId" />
  4408. <PropertyRef Name="UserId" />
  4409. </Principal>
  4410. <Dependent Role="FmsWorkResult">
  4411. <PropertyRef Name="SiteId" />
  4412. <PropertyRef Name="ConfirmedUserId" />
  4413. </Dependent>
  4414. </ReferentialConstraint>
  4415. </Association>
  4416. <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
  4417. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
  4418. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4419. <ReferentialConstraint>
  4420. <Principal Role="FmsWorkCodeCauseClass">
  4421. <PropertyRef Name="SiteId" />
  4422. <PropertyRef Name="CauseClassId" />
  4423. </Principal>
  4424. <Dependent Role="FmsWorkResult">
  4425. <PropertyRef Name="SiteId" />
  4426. <PropertyRef Name="CauseClassId" />
  4427. </Dependent>
  4428. </ReferentialConstraint>
  4429. </Association>
  4430. <Association Name="FK__FmsWorkResult__FmsWorkOrder">
  4431. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
  4432. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  4433. <ReferentialConstraint>
  4434. <Principal Role="FmsWorkOrder">
  4435. <PropertyRef Name="SiteId" />
  4436. <PropertyRef Name="WorkRequestId" />
  4437. </Principal>
  4438. <Dependent Role="FmsWorkResult">
  4439. <PropertyRef Name="SiteId" />
  4440. <PropertyRef Name="WorkRequestId" />
  4441. </Dependent>
  4442. </ReferentialConstraint>
  4443. </Association>
  4444. <Association Name="FK__FmsWorkResult__FmsWorkRequest">
  4445. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  4446. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  4447. <ReferentialConstraint>
  4448. <Principal Role="FmsWorkRequest">
  4449. <PropertyRef Name="SiteId" />
  4450. <PropertyRef Name="WorkRequestId" />
  4451. </Principal>
  4452. <Dependent Role="FmsWorkResult">
  4453. <PropertyRef Name="SiteId" />
  4454. <PropertyRef Name="WorkRequestId" />
  4455. </Dependent>
  4456. </ReferentialConstraint>
  4457. </Association>
  4458. <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
  4459. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
  4460. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4461. <ReferentialConstraint>
  4462. <Principal Role="CmFacility">
  4463. <PropertyRef Name="SiteId" />
  4464. <PropertyRef Name="FacilityCode" />
  4465. </Principal>
  4466. <Dependent Role="FmsWorkResultCheckItem">
  4467. <PropertyRef Name="SiteId" />
  4468. <PropertyRef Name="FacilityCode" />
  4469. </Dependent>
  4470. </ReferentialConstraint>
  4471. </Association>
  4472. <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  4473. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
  4474. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4475. <ReferentialConstraint>
  4476. <Principal Role="FmsFacilityCheckItem">
  4477. <PropertyRef Name="SiteId" />
  4478. <PropertyRef Name="FacilityCode" />
  4479. <PropertyRef Name="CheckItemId" />
  4480. </Principal>
  4481. <Dependent Role="FmsWorkResultCheckItem">
  4482. <PropertyRef Name="SiteId" />
  4483. <PropertyRef Name="FacilityCode" />
  4484. <PropertyRef Name="CheckItemId" />
  4485. </Dependent>
  4486. </ReferentialConstraint>
  4487. </Association>
  4488. <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
  4489. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  4490. <OnDelete Action="Cascade" />
  4491. </End>
  4492. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4493. <ReferentialConstraint>
  4494. <Principal Role="FmsWorkResult">
  4495. <PropertyRef Name="SiteId" />
  4496. <PropertyRef Name="WorkRequestId" />
  4497. </Principal>
  4498. <Dependent Role="FmsWorkResultCheckItem">
  4499. <PropertyRef Name="SiteId" />
  4500. <PropertyRef Name="WorkRequestId" />
  4501. </Dependent>
  4502. </ReferentialConstraint>
  4503. </Association>
  4504. <Association Name="FK__FmsWorkResultFile__CmFile">
  4505. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  4506. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
  4507. <ReferentialConstraint>
  4508. <Principal Role="CmFile">
  4509. <PropertyRef Name="SiteId" />
  4510. <PropertyRef Name="FileId" />
  4511. </Principal>
  4512. <Dependent Role="FmsWorkResultFile">
  4513. <PropertyRef Name="SiteId" />
  4514. <PropertyRef Name="FileId" />
  4515. </Dependent>
  4516. </ReferentialConstraint>
  4517. </Association>
  4518. <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
  4519. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  4520. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
  4521. <ReferentialConstraint>
  4522. <Principal Role="FmsWorkResult">
  4523. <PropertyRef Name="SiteId" />
  4524. <PropertyRef Name="WorkRequestId" />
  4525. </Principal>
  4526. <Dependent Role="FmsWorkResultFile">
  4527. <PropertyRef Name="SiteId" />
  4528. <PropertyRef Name="WorkRequestId" />
  4529. </Dependent>
  4530. </ReferentialConstraint>
  4531. </Association>
  4532. <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
  4533. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  4534. <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
  4535. <ReferentialConstraint>
  4536. <Principal Role="FmsWorkResult">
  4537. <PropertyRef Name="SiteId" />
  4538. <PropertyRef Name="WorkRequestId" />
  4539. </Principal>
  4540. <Dependent Role="FmsWorkResultLaw">
  4541. <PropertyRef Name="SiteId" />
  4542. <PropertyRef Name="WorkRequestId" />
  4543. </Dependent>
  4544. </ReferentialConstraint>
  4545. </Association>
  4546. <Association Name="FK__FmsWorkResultToFacility__CmFacility">
  4547. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4548. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  4549. <ReferentialConstraint>
  4550. <Principal Role="CmFacility">
  4551. <PropertyRef Name="SiteId" />
  4552. <PropertyRef Name="FacilityCode" />
  4553. </Principal>
  4554. <Dependent Role="FmsWorkResultToFacility">
  4555. <PropertyRef Name="SiteId" />
  4556. <PropertyRef Name="FacilityCode" />
  4557. </Dependent>
  4558. </ReferentialConstraint>
  4559. </Association>
  4560. <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
  4561. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  4562. <OnDelete Action="Cascade" />
  4563. </End>
  4564. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  4565. <ReferentialConstraint>
  4566. <Principal Role="FmsWorkResult">
  4567. <PropertyRef Name="SiteId" />
  4568. <PropertyRef Name="WorkRequestId" />
  4569. </Principal>
  4570. <Dependent Role="FmsWorkResultToFacility">
  4571. <PropertyRef Name="SiteId" />
  4572. <PropertyRef Name="WorkRequestId" />
  4573. </Dependent>
  4574. </ReferentialConstraint>
  4575. </Association>
  4576. <Association Name="FK__FmsWorkSchedule__CmBusinessField">
  4577. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4578. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4579. <ReferentialConstraint>
  4580. <Principal Role="CmBusinessField">
  4581. <PropertyRef Name="SiteId" />
  4582. <PropertyRef Name="BusinessFieldId" />
  4583. </Principal>
  4584. <Dependent Role="FmsWorkSchedule">
  4585. <PropertyRef Name="SiteId" />
  4586. <PropertyRef Name="BusinessFieldId" />
  4587. </Dependent>
  4588. </ReferentialConstraint>
  4589. </Association>
  4590. <Association Name="FK__FmsWorkSchedule__CmUser">
  4591. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4592. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4593. <ReferentialConstraint>
  4594. <Principal Role="CmUser">
  4595. <PropertyRef Name="SiteId" />
  4596. <PropertyRef Name="UserId" />
  4597. </Principal>
  4598. <Dependent Role="FmsWorkSchedule">
  4599. <PropertyRef Name="SiteId" />
  4600. <PropertyRef Name="UpdateUserId" />
  4601. </Dependent>
  4602. </ReferentialConstraint>
  4603. </Association>
  4604. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  4605. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  4606. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4607. <ReferentialConstraint>
  4608. <Principal Role="FmsWorkCodeCycleUnit">
  4609. <PropertyRef Name="SiteId" />
  4610. <PropertyRef Name="CycleUnitId" />
  4611. </Principal>
  4612. <Dependent Role="FmsWorkSchedule">
  4613. <PropertyRef Name="SiteId" />
  4614. <PropertyRef Name="CycleUnitId" />
  4615. </Dependent>
  4616. </ReferentialConstraint>
  4617. </Association>
  4618. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  4619. <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="1" />
  4620. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4621. <ReferentialConstraint>
  4622. <Principal Role="FmsWorkCodeHolidayWorkType">
  4623. <PropertyRef Name="SiteId" />
  4624. <PropertyRef Name="HolidayWorkTypeId" />
  4625. </Principal>
  4626. <Dependent Role="FmsWorkSchedule">
  4627. <PropertyRef Name="SiteId" />
  4628. <PropertyRef Name="HolidayWorkTypeId" />
  4629. </Dependent>
  4630. </ReferentialConstraint>
  4631. </Association>
  4632. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  4633. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  4634. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4635. <ReferentialConstraint>
  4636. <Principal Role="FmsWorkCodeType">
  4637. <PropertyRef Name="WorkTypeId" />
  4638. </Principal>
  4639. <Dependent Role="FmsWorkSchedule">
  4640. <PropertyRef Name="WorkTypeId" />
  4641. </Dependent>
  4642. </ReferentialConstraint>
  4643. </Association>
  4644. <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  4645. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="1" />
  4646. <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
  4647. <ReferentialConstraint>
  4648. <Principal Role="FmsWorkSchedule">
  4649. <PropertyRef Name="SiteId" />
  4650. <PropertyRef Name="WorkScheduleId" />
  4651. </Principal>
  4652. <Dependent Role="FmsWorkScheduleToFacility">
  4653. <PropertyRef Name="SiteId" />
  4654. <PropertyRef Name="WorkScheduleId" />
  4655. </Dependent>
  4656. </ReferentialConstraint>
  4657. </Association>
  4658. <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
  4659. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="1" />
  4660. <End Role="BemsAlarmLog" Type="Self.BemsAlarmLog" Multiplicity="*" />
  4661. <ReferentialConstraint>
  4662. <Principal Role="BemsAlarmSetting">
  4663. <PropertyRef Name="SiteId" />
  4664. <PropertyRef Name="FacilityTypeId" />
  4665. <PropertyRef Name="FacilityCode" />
  4666. <PropertyRef Name="PropertyId" />
  4667. <PropertyRef Name="FormulaId" />
  4668. </Principal>
  4669. <Dependent Role="BemsAlarmLog">
  4670. <PropertyRef Name="SiteId" />
  4671. <PropertyRef Name="FacilityTypeId" />
  4672. <PropertyRef Name="FacilityCode" />
  4673. <PropertyRef Name="PropertyId" />
  4674. <PropertyRef Name="FormulaId" />
  4675. </Dependent>
  4676. </ReferentialConstraint>
  4677. </Association>
  4678. <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
  4679. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4680. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4681. <ReferentialConstraint>
  4682. <Principal Role="BemsFacilityType">
  4683. <PropertyRef Name="FacilityTypeId" />
  4684. </Principal>
  4685. <Dependent Role="BemsAlarmSetting">
  4686. <PropertyRef Name="FacilityTypeId" />
  4687. </Dependent>
  4688. </ReferentialConstraint>
  4689. </Association>
  4690. <Association Name="FK_BemsAlarmSetting_CmFacility">
  4691. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4692. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4693. <ReferentialConstraint>
  4694. <Principal Role="CmFacility">
  4695. <PropertyRef Name="SiteId" />
  4696. <PropertyRef Name="FacilityCode" />
  4697. </Principal>
  4698. <Dependent Role="BemsAlarmSetting">
  4699. <PropertyRef Name="SiteId" />
  4700. <PropertyRef Name="FacilityCode" />
  4701. </Dependent>
  4702. </ReferentialConstraint>
  4703. </Association>
  4704. <Association Name="FK_BemsAlarmSetting_CmSite1">
  4705. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4706. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4707. <ReferentialConstraint>
  4708. <Principal Role="CmSite">
  4709. <PropertyRef Name="SiteId" />
  4710. </Principal>
  4711. <Dependent Role="BemsAlarmSetting">
  4712. <PropertyRef Name="SiteId" />
  4713. </Dependent>
  4714. </ReferentialConstraint>
  4715. </Association>
  4716. <Association Name="FK_BemsChartInfo_BemsFacilityType">
  4717. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4718. <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
  4719. <ReferentialConstraint>
  4720. <Principal Role="BemsFacilityType">
  4721. <PropertyRef Name="FacilityTypeId" />
  4722. </Principal>
  4723. <Dependent Role="BemsChartInfo">
  4724. <PropertyRef Name="FacilityTypeId" />
  4725. </Dependent>
  4726. </ReferentialConstraint>
  4727. </Association>
  4728. <Association Name="FK_BemsChartInfo_CmSite">
  4729. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4730. <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
  4731. <ReferentialConstraint>
  4732. <Principal Role="CmSite">
  4733. <PropertyRef Name="SiteId" />
  4734. </Principal>
  4735. <Dependent Role="BemsChartInfo">
  4736. <PropertyRef Name="SiteId" />
  4737. </Dependent>
  4738. </ReferentialConstraint>
  4739. </Association>
  4740. <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
  4741. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4742. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  4743. <ReferentialConstraint>
  4744. <Principal Role="BemsFacilityType">
  4745. <PropertyRef Name="FacilityTypeId" />
  4746. </Principal>
  4747. <Dependent Role="BemsControlPointHistory">
  4748. <PropertyRef Name="FacilityTypeId" />
  4749. </Dependent>
  4750. </ReferentialConstraint>
  4751. </Association>
  4752. <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
  4753. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  4754. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  4755. <ReferentialConstraint>
  4756. <Principal Role="BemsMonitoringPoint">
  4757. <PropertyRef Name="SiteId" />
  4758. <PropertyRef Name="FacilityCode" />
  4759. <PropertyRef Name="PropertyId" />
  4760. </Principal>
  4761. <Dependent Role="BemsControlPointHistory">
  4762. <PropertyRef Name="SiteId" />
  4763. <PropertyRef Name="FacilityCode" />
  4764. <PropertyRef Name="PropertyId" />
  4765. </Dependent>
  4766. </ReferentialConstraint>
  4767. </Association>
  4768. <Association Name="FK_BemsEnergyCost_CmFacility">
  4769. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4770. <End Role="BemsEnergyCost" Type="Self.BemsEnergyCost" Multiplicity="0..1" />
  4771. <ReferentialConstraint>
  4772. <Principal Role="CmFacility">
  4773. <PropertyRef Name="SiteId" />
  4774. <PropertyRef Name="FacilityCode" />
  4775. </Principal>
  4776. <Dependent Role="BemsEnergyCost">
  4777. <PropertyRef Name="SiteId" />
  4778. <PropertyRef Name="FacilityCode" />
  4779. </Dependent>
  4780. </ReferentialConstraint>
  4781. </Association>
  4782. <Association Name="FK_BemsEnergyDailyRegression_CmSite">
  4783. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4784. <End Role="BemsEnergyDailyRegression" Type="Self.BemsEnergyDailyRegression" Multiplicity="0..1" />
  4785. <ReferentialConstraint>
  4786. <Principal Role="CmSite">
  4787. <PropertyRef Name="SiteId" />
  4788. </Principal>
  4789. <Dependent Role="BemsEnergyDailyRegression">
  4790. <PropertyRef Name="SiteId" />
  4791. </Dependent>
  4792. </ReferentialConstraint>
  4793. </Association>
  4794. <Association Name="FK_BemsFormulaParameter_CmFacility">
  4795. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4796. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  4797. <ReferentialConstraint>
  4798. <Principal Role="CmFacility">
  4799. <PropertyRef Name="SiteId" />
  4800. <PropertyRef Name="FacilityCode" />
  4801. </Principal>
  4802. <Dependent Role="BemsFormulaParameter">
  4803. <PropertyRef Name="SiteId" />
  4804. <PropertyRef Name="FacilityCode" />
  4805. </Dependent>
  4806. </ReferentialConstraint>
  4807. </Association>
  4808. <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
  4809. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4810. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  4811. <ReferentialConstraint>
  4812. <Principal Role="BemsFacilityType">
  4813. <PropertyRef Name="FacilityTypeId" />
  4814. </Principal>
  4815. <Dependent Role="BemsMonitoringPoint">
  4816. <PropertyRef Name="FacilityTypeId" />
  4817. </Dependent>
  4818. </ReferentialConstraint>
  4819. </Association>
  4820. <Association Name="FK_BemsMonitoringPoint_CmFacility">
  4821. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4822. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  4823. <ReferentialConstraint>
  4824. <Principal Role="CmFacility">
  4825. <PropertyRef Name="SiteId" />
  4826. <PropertyRef Name="FacilityCode" />
  4827. </Principal>
  4828. <Dependent Role="BemsMonitoringPoint">
  4829. <PropertyRef Name="SiteId" />
  4830. <PropertyRef Name="FacilityCode" />
  4831. </Dependent>
  4832. </ReferentialConstraint>
  4833. </Association>
  4834. <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
  4835. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4836. <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="*" />
  4837. <ReferentialConstraint>
  4838. <Principal Role="BemsFacilityType">
  4839. <PropertyRef Name="FacilityTypeId" />
  4840. </Principal>
  4841. <Dependent Role="BemsMonitoringPointConfig">
  4842. <PropertyRef Name="FacilityTypeId" />
  4843. </Dependent>
  4844. </ReferentialConstraint>
  4845. </Association>
  4846. <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  4847. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  4848. <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="0..1" />
  4849. <ReferentialConstraint>
  4850. <Principal Role="BemsMonitoringPoint">
  4851. <PropertyRef Name="SiteId" />
  4852. <PropertyRef Name="FacilityCode" />
  4853. <PropertyRef Name="PropertyId" />
  4854. </Principal>
  4855. <Dependent Role="BemsMonitoringPointConfig">
  4856. <PropertyRef Name="SiteId" />
  4857. <PropertyRef Name="FacilityCode" />
  4858. <PropertyRef Name="PropertyId" />
  4859. </Dependent>
  4860. </ReferentialConstraint>
  4861. </Association>
  4862. <Association Name="FK_BemsPeakFacility_CmFacility">
  4863. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4864. <End Role="BemsPeakFacility" Type="Self.BemsPeakFacility" Multiplicity="*" />
  4865. <ReferentialConstraint>
  4866. <Principal Role="CmFacility">
  4867. <PropertyRef Name="SiteId" />
  4868. <PropertyRef Name="FacilityCode" />
  4869. </Principal>
  4870. <Dependent Role="BemsPeakFacility">
  4871. <PropertyRef Name="SiteId" />
  4872. <PropertyRef Name="FacilityCode" />
  4873. </Dependent>
  4874. </ReferentialConstraint>
  4875. </Association>
  4876. <Association Name="FK_BemsPeakHIstory_CmSite">
  4877. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4878. <End Role="BemsPeakHistory" Type="Self.BemsPeakHistory" Multiplicity="*" />
  4879. <ReferentialConstraint>
  4880. <Principal Role="CmSite">
  4881. <PropertyRef Name="SiteId" />
  4882. </Principal>
  4883. <Dependent Role="BemsPeakHistory">
  4884. <PropertyRef Name="SiteId" />
  4885. </Dependent>
  4886. </ReferentialConstraint>
  4887. </Association>
  4888. <Association Name="FK_BemsPeakInfo_CmSite">
  4889. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4890. <End Role="BemsPeakInfo" Type="Self.BemsPeakInfo" Multiplicity="0..1" />
  4891. <ReferentialConstraint>
  4892. <Principal Role="CmSite">
  4893. <PropertyRef Name="SiteId" />
  4894. </Principal>
  4895. <Dependent Role="BemsPeakInfo">
  4896. <PropertyRef Name="SiteId" />
  4897. </Dependent>
  4898. </ReferentialConstraint>
  4899. </Association>
  4900. <Association Name="FK_BemsPeopleIncrease_CmSite">
  4901. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4902. <End Role="BemsPeopleIncrease" Type="Self.BemsPeopleIncrease" Multiplicity="*" />
  4903. <ReferentialConstraint>
  4904. <Principal Role="CmSite">
  4905. <PropertyRef Name="SiteId" />
  4906. </Principal>
  4907. <Dependent Role="BemsPeopleIncrease">
  4908. <PropertyRef Name="SiteId" />
  4909. </Dependent>
  4910. </ReferentialConstraint>
  4911. </Association>
  4912. <Association Name="FK_BemsPriceCode_BemsFuelType">
  4913. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4914. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="*" />
  4915. <ReferentialConstraint>
  4916. <Principal Role="BemsFuelType">
  4917. <PropertyRef Name="FuelTypeId" />
  4918. </Principal>
  4919. <Dependent Role="BemsPriceCode">
  4920. <PropertyRef Name="FuelTypeId" />
  4921. </Dependent>
  4922. </ReferentialConstraint>
  4923. </Association>
  4924. <Association Name="FK_BemsPriceFormula_BemsFormula">
  4925. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  4926. <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
  4927. <ReferentialConstraint>
  4928. <Principal Role="BemsFormula">
  4929. <PropertyRef Name="SiteId" />
  4930. <PropertyRef Name="FacilityTypeId" />
  4931. <PropertyRef Name="FacilityCode" />
  4932. <PropertyRef Name="FormulaId" />
  4933. </Principal>
  4934. <Dependent Role="BemsPriceFormula">
  4935. <PropertyRef Name="SiteId" />
  4936. <PropertyRef Name="FacilityTypeId" />
  4937. <PropertyRef Name="FacilityCode" />
  4938. <PropertyRef Name="FormulaId" />
  4939. </Dependent>
  4940. </ReferentialConstraint>
  4941. </Association>
  4942. <Association Name="FK_BemsPriceFormula_BemsPriceType">
  4943. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4944. <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
  4945. <ReferentialConstraint>
  4946. <Principal Role="BemsPriceType">
  4947. <PropertyRef Name="PriceTypeId" />
  4948. </Principal>
  4949. <Dependent Role="BemsPriceFormula">
  4950. <PropertyRef Name="PriceTypeId" />
  4951. </Dependent>
  4952. </ReferentialConstraint>
  4953. </Association>
  4954. <Association Name="FK_BemsPriceMeta_BemsPriceType">
  4955. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4956. <End Role="BemsPriceMeta" Type="Self.BemsPriceMeta" Multiplicity="*" />
  4957. <ReferentialConstraint>
  4958. <Principal Role="BemsPriceType">
  4959. <PropertyRef Name="PriceTypeId" />
  4960. </Principal>
  4961. <Dependent Role="BemsPriceMeta">
  4962. <PropertyRef Name="PriceTypeId" />
  4963. </Dependent>
  4964. </ReferentialConstraint>
  4965. </Association>
  4966. <Association Name="FK_BemsPriceType_BemsFuelType1">
  4967. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4968. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="*" />
  4969. <ReferentialConstraint>
  4970. <Principal Role="BemsFuelType">
  4971. <PropertyRef Name="FuelTypeId" />
  4972. </Principal>
  4973. <Dependent Role="BemsPriceType">
  4974. <PropertyRef Name="FuelTypeId" />
  4975. </Dependent>
  4976. </ReferentialConstraint>
  4977. </Association>
  4978. <Association Name="FK_BemsRentalRate_CmSite">
  4979. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4980. <End Role="BemsRentalRate" Type="Self.BemsRentalRate" Multiplicity="*" />
  4981. <ReferentialConstraint>
  4982. <Principal Role="CmSite">
  4983. <PropertyRef Name="SiteId" />
  4984. </Principal>
  4985. <Dependent Role="BemsRentalRate">
  4986. <PropertyRef Name="SiteId" />
  4987. </Dependent>
  4988. </ReferentialConstraint>
  4989. </Association>
  4990. <Association Name="FK_BemsSitePrice_BemsFuelType">
  4991. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4992. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  4993. <ReferentialConstraint>
  4994. <Principal Role="BemsFuelType">
  4995. <PropertyRef Name="FuelTypeId" />
  4996. </Principal>
  4997. <Dependent Role="BemsSitePrice">
  4998. <PropertyRef Name="FuelTypeId" />
  4999. </Dependent>
  5000. </ReferentialConstraint>
  5001. </Association>
  5002. <Association Name="FK_BemsSitePrice_BemsPriceCode">
  5003. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
  5004. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  5005. <ReferentialConstraint>
  5006. <Principal Role="BemsPriceCode">
  5007. <PropertyRef Name="PriceCode" />
  5008. </Principal>
  5009. <Dependent Role="BemsSitePrice">
  5010. <PropertyRef Name="PriceCode" />
  5011. </Dependent>
  5012. </ReferentialConstraint>
  5013. </Association>
  5014. <Association Name="FK_BemsSitePrice_BemsPriceType">
  5015. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  5016. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  5017. <ReferentialConstraint>
  5018. <Principal Role="BemsPriceType">
  5019. <PropertyRef Name="PriceTypeId" />
  5020. </Principal>
  5021. <Dependent Role="BemsSitePrice">
  5022. <PropertyRef Name="PriceTypeId" />
  5023. </Dependent>
  5024. </ReferentialConstraint>
  5025. </Association>
  5026. <Association Name="FK_BemsSitePrice_CmSite1">
  5027. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5028. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  5029. <ReferentialConstraint>
  5030. <Principal Role="CmSite">
  5031. <PropertyRef Name="SiteId" />
  5032. </Principal>
  5033. <Dependent Role="BemsSitePrice">
  5034. <PropertyRef Name="SiteID" />
  5035. </Dependent>
  5036. </ReferentialConstraint>
  5037. </Association>
  5038. <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
  5039. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  5040. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5041. <ReferentialConstraint>
  5042. <Principal Role="BemsFuelType">
  5043. <PropertyRef Name="FuelTypeId" />
  5044. </Principal>
  5045. <Dependent Role="BemsSitePriceHistory">
  5046. <PropertyRef Name="FuelTypeId" />
  5047. </Dependent>
  5048. </ReferentialConstraint>
  5049. </Association>
  5050. <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
  5051. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
  5052. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5053. <ReferentialConstraint>
  5054. <Principal Role="BemsPriceCode">
  5055. <PropertyRef Name="PriceCode" />
  5056. </Principal>
  5057. <Dependent Role="BemsSitePriceHistory">
  5058. <PropertyRef Name="PriceCode" />
  5059. </Dependent>
  5060. </ReferentialConstraint>
  5061. </Association>
  5062. <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
  5063. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  5064. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5065. <ReferentialConstraint>
  5066. <Principal Role="BemsPriceType">
  5067. <PropertyRef Name="PriceTypeId" />
  5068. </Principal>
  5069. <Dependent Role="BemsSitePriceHistory">
  5070. <PropertyRef Name="PriceTypeId" />
  5071. </Dependent>
  5072. </ReferentialConstraint>
  5073. </Association>
  5074. <Association Name="FK_BemsSitePriceHistory_CmSite">
  5075. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5076. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  5077. <ReferentialConstraint>
  5078. <Principal Role="CmSite">
  5079. <PropertyRef Name="SiteId" />
  5080. </Principal>
  5081. <Dependent Role="BemsSitePriceHistory">
  5082. <PropertyRef Name="SiteId" />
  5083. </Dependent>
  5084. </ReferentialConstraint>
  5085. </Association>
  5086. <Association Name="FK_CmAnnouncement_CmBusinessField">
  5087. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  5088. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5089. <ReferentialConstraint>
  5090. <Principal Role="CmBusinessField">
  5091. <PropertyRef Name="SiteId" />
  5092. <PropertyRef Name="BusinessFieldId" />
  5093. </Principal>
  5094. <Dependent Role="CmAnnouncement">
  5095. <PropertyRef Name="SiteId" />
  5096. <PropertyRef Name="BusinessFieldId" />
  5097. </Dependent>
  5098. </ReferentialConstraint>
  5099. </Association>
  5100. <Association Name="FK_CmAnnouncement_CmFile">
  5101. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5102. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5103. <ReferentialConstraint>
  5104. <Principal Role="CmFile">
  5105. <PropertyRef Name="SiteId" />
  5106. <PropertyRef Name="FileId" />
  5107. </Principal>
  5108. <Dependent Role="CmAnnouncement">
  5109. <PropertyRef Name="SiteId" />
  5110. <PropertyRef Name="FileId" />
  5111. </Dependent>
  5112. </ReferentialConstraint>
  5113. </Association>
  5114. <Association Name="FK_CmAnnouncement_CmUser">
  5115. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5116. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5117. <ReferentialConstraint>
  5118. <Principal Role="CmUser">
  5119. <PropertyRef Name="SiteId" />
  5120. <PropertyRef Name="UserId" />
  5121. </Principal>
  5122. <Dependent Role="CmAnnouncement">
  5123. <PropertyRef Name="SiteId" />
  5124. <PropertyRef Name="RegisterUserId" />
  5125. </Dependent>
  5126. </ReferentialConstraint>
  5127. </Association>
  5128. <Association Name="FK_CmFacilityTempSet_CmFacility">
  5129. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  5130. <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="0..1" />
  5131. <ReferentialConstraint>
  5132. <Principal Role="CmFacility">
  5133. <PropertyRef Name="SiteId" />
  5134. <PropertyRef Name="FacilityCode" />
  5135. </Principal>
  5136. <Dependent Role="CmFacilityTempSet">
  5137. <PropertyRef Name="SiteId" />
  5138. <PropertyRef Name="FacilityCode" />
  5139. </Dependent>
  5140. </ReferentialConstraint>
  5141. </Association>
  5142. <Association Name="FK_CmFacilityTempSet_CmSite">
  5143. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5144. <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="*" />
  5145. <ReferentialConstraint>
  5146. <Principal Role="CmSite">
  5147. <PropertyRef Name="SiteId" />
  5148. </Principal>
  5149. <Dependent Role="CmFacilityTempSet">
  5150. <PropertyRef Name="SiteId" />
  5151. </Dependent>
  5152. </ReferentialConstraint>
  5153. </Association>
  5154. <Association Name="FK_CmMenu_CmSite">
  5155. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5156. <End Role="CmMenu" Type="Self.CmMenu" Multiplicity="*" />
  5157. <ReferentialConstraint>
  5158. <Principal Role="CmSite">
  5159. <PropertyRef Name="SiteId" />
  5160. </Principal>
  5161. <Dependent Role="CmMenu">
  5162. <PropertyRef Name="SiteId" />
  5163. </Dependent>
  5164. </ReferentialConstraint>
  5165. </Association>
  5166. <Association Name="FK_CmPartnerType_CmPartner">
  5167. <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="1" />
  5168. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="*" />
  5169. <ReferentialConstraint>
  5170. <Principal Role="CmPartnerType">
  5171. <PropertyRef Name="PartnerTypeId" />
  5172. </Principal>
  5173. <Dependent Role="CmPartner">
  5174. <PropertyRef Name="PartnerTypeId" />
  5175. </Dependent>
  5176. </ReferentialConstraint>
  5177. </Association>
  5178. <Association Name="FK_CmPatrolCourse_CmSite">
  5179. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5180. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="*" />
  5181. <ReferentialConstraint>
  5182. <Principal Role="CmSite">
  5183. <PropertyRef Name="SiteId" />
  5184. </Principal>
  5185. <Dependent Role="CmPatrolCourse">
  5186. <PropertyRef Name="SiteId" />
  5187. </Dependent>
  5188. </ReferentialConstraint>
  5189. </Association>
  5190. <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
  5191. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
  5192. <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
  5193. <ReferentialConstraint>
  5194. <Principal Role="CmPatrolCourse">
  5195. <PropertyRef Name="SiteId" />
  5196. <PropertyRef Name="PatrolCourseId" />
  5197. </Principal>
  5198. <Dependent Role="CmPatrolCoursePos">
  5199. <PropertyRef Name="SiteId" />
  5200. <PropertyRef Name="PatrolCourseId" />
  5201. </Dependent>
  5202. </ReferentialConstraint>
  5203. </Association>
  5204. <Association Name="FK_CmPatrolCoursePos_CmSite">
  5205. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5206. <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
  5207. <ReferentialConstraint>
  5208. <Principal Role="CmSite">
  5209. <PropertyRef Name="SiteId" />
  5210. </Principal>
  5211. <Dependent Role="CmPatrolCoursePos">
  5212. <PropertyRef Name="SiteId" />
  5213. </Dependent>
  5214. </ReferentialConstraint>
  5215. </Association>
  5216. <Association Name="FK_CmPatrolGroup_CmSite">
  5217. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5218. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="*" />
  5219. <ReferentialConstraint>
  5220. <Principal Role="CmSite">
  5221. <PropertyRef Name="SiteId" />
  5222. </Principal>
  5223. <Dependent Role="CmPatrolGroup">
  5224. <PropertyRef Name="SiteId" />
  5225. </Dependent>
  5226. </ReferentialConstraint>
  5227. </Association>
  5228. <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
  5229. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
  5230. <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
  5231. <ReferentialConstraint>
  5232. <Principal Role="CmPatrolGroup">
  5233. <PropertyRef Name="SiteId" />
  5234. <PropertyRef Name="PatrolGroupId" />
  5235. </Principal>
  5236. <Dependent Role="CmPatrolGroupUser">
  5237. <PropertyRef Name="SiteId" />
  5238. <PropertyRef Name="PatrolGroupId" />
  5239. </Dependent>
  5240. </ReferentialConstraint>
  5241. </Association>
  5242. <Association Name="FK_CmPatrolGroupUser_CmUser">
  5243. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5244. <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
  5245. <ReferentialConstraint>
  5246. <Principal Role="CmUser">
  5247. <PropertyRef Name="SiteId" />
  5248. <PropertyRef Name="UserId" />
  5249. </Principal>
  5250. <Dependent Role="CmPatrolGroupUser">
  5251. <PropertyRef Name="SiteId" />
  5252. <PropertyRef Name="UserId" />
  5253. </Dependent>
  5254. </ReferentialConstraint>
  5255. </Association>
  5256. <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
  5257. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="1" />
  5258. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5259. <ReferentialConstraint>
  5260. <Principal Role="CmPatrolSchedule">
  5261. <PropertyRef Name="SiteId" />
  5262. <PropertyRef Name="ScheduleId" />
  5263. </Principal>
  5264. <Dependent Role="CmPatrolHistory">
  5265. <PropertyRef Name="SiteId" />
  5266. <PropertyRef Name="ScheduleId" />
  5267. </Dependent>
  5268. </ReferentialConstraint>
  5269. </Association>
  5270. <Association Name="FK_CmPatrolHistory_CmPatrolType">
  5271. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
  5272. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5273. <ReferentialConstraint>
  5274. <Principal Role="CmPatrolType">
  5275. <PropertyRef Name="SiteId" />
  5276. <PropertyRef Name="PatrolTypeId" />
  5277. </Principal>
  5278. <Dependent Role="CmPatrolHistory">
  5279. <PropertyRef Name="SiteId" />
  5280. <PropertyRef Name="resultTypeId" />
  5281. </Dependent>
  5282. </ReferentialConstraint>
  5283. </Association>
  5284. <Association Name="FK_CmPatrolHistory_CmSite">
  5285. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5286. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5287. <ReferentialConstraint>
  5288. <Principal Role="CmSite">
  5289. <PropertyRef Name="SiteId" />
  5290. </Principal>
  5291. <Dependent Role="CmPatrolHistory">
  5292. <PropertyRef Name="SiteId" />
  5293. </Dependent>
  5294. </ReferentialConstraint>
  5295. </Association>
  5296. <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
  5297. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="1" />
  5298. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5299. <ReferentialConstraint>
  5300. <Principal Role="CmPatrolPos">
  5301. <PropertyRef Name="SiteId" />
  5302. <PropertyRef Name="PosId" />
  5303. </Principal>
  5304. <Dependent Role="CmPatrolHistoryPos">
  5305. <PropertyRef Name="SiteId" />
  5306. <PropertyRef Name="PosId" />
  5307. </Dependent>
  5308. </ReferentialConstraint>
  5309. </Association>
  5310. <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
  5311. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
  5312. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5313. <ReferentialConstraint>
  5314. <Principal Role="CmPatrolType">
  5315. <PropertyRef Name="SiteId" />
  5316. <PropertyRef Name="PatrolTypeId" />
  5317. </Principal>
  5318. <Dependent Role="CmPatrolHistoryPos">
  5319. <PropertyRef Name="SiteId" />
  5320. <PropertyRef Name="resultType" />
  5321. </Dependent>
  5322. </ReferentialConstraint>
  5323. </Association>
  5324. <Association Name="FK_CmPatrolHistoryPos_CmSite">
  5325. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5326. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5327. <ReferentialConstraint>
  5328. <Principal Role="CmSite">
  5329. <PropertyRef Name="SiteId" />
  5330. </Principal>
  5331. <Dependent Role="CmPatrolHistoryPos">
  5332. <PropertyRef Name="SiteId" />
  5333. </Dependent>
  5334. </ReferentialConstraint>
  5335. </Association>
  5336. <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
  5337. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
  5338. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5339. <ReferentialConstraint>
  5340. <Principal Role="CmPatrolCourse">
  5341. <PropertyRef Name="SiteId" />
  5342. <PropertyRef Name="PatrolCourseId" />
  5343. </Principal>
  5344. <Dependent Role="CmPatrolPlan">
  5345. <PropertyRef Name="SiteId" />
  5346. <PropertyRef Name="CourseId" />
  5347. </Dependent>
  5348. </ReferentialConstraint>
  5349. </Association>
  5350. <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
  5351. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
  5352. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5353. <ReferentialConstraint>
  5354. <Principal Role="CmPatrolGroup">
  5355. <PropertyRef Name="SiteId" />
  5356. <PropertyRef Name="PatrolGroupId" />
  5357. </Principal>
  5358. <Dependent Role="CmPatrolPlan">
  5359. <PropertyRef Name="SiteId" />
  5360. <PropertyRef Name="GroupId" />
  5361. </Dependent>
  5362. </ReferentialConstraint>
  5363. </Association>
  5364. <Association Name="FK_CmPatrolPlan_CmSite">
  5365. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5366. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5367. <ReferentialConstraint>
  5368. <Principal Role="CmSite">
  5369. <PropertyRef Name="SiteId" />
  5370. </Principal>
  5371. <Dependent Role="CmPatrolPlan">
  5372. <PropertyRef Name="SiteId" />
  5373. </Dependent>
  5374. </ReferentialConstraint>
  5375. </Association>
  5376. <Association Name="FK_CmPatrolPos_CmBuilding">
  5377. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  5378. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5379. <ReferentialConstraint>
  5380. <Principal Role="CmBuilding">
  5381. <PropertyRef Name="SiteId" />
  5382. <PropertyRef Name="BuildingId" />
  5383. </Principal>
  5384. <Dependent Role="CmPatrolPos">
  5385. <PropertyRef Name="SiteId" />
  5386. <PropertyRef Name="BuildingId" />
  5387. </Dependent>
  5388. </ReferentialConstraint>
  5389. </Association>
  5390. <Association Name="FK_CmPatrolPos_CmFloor">
  5391. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  5392. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5393. <ReferentialConstraint>
  5394. <Principal Role="CmFloor">
  5395. <PropertyRef Name="SiteId" />
  5396. <PropertyRef Name="BuildingId" />
  5397. <PropertyRef Name="FloorId" />
  5398. </Principal>
  5399. <Dependent Role="CmPatrolPos">
  5400. <PropertyRef Name="SiteId" />
  5401. <PropertyRef Name="BuildingId" />
  5402. <PropertyRef Name="FloorId" />
  5403. </Dependent>
  5404. </ReferentialConstraint>
  5405. </Association>
  5406. <Association Name="FK_CmPatrolPos_CmSite">
  5407. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5408. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5409. <ReferentialConstraint>
  5410. <Principal Role="CmSite">
  5411. <PropertyRef Name="SiteId" />
  5412. </Principal>
  5413. <Dependent Role="CmPatrolPos">
  5414. <PropertyRef Name="SiteId" />
  5415. </Dependent>
  5416. </ReferentialConstraint>
  5417. </Association>
  5418. <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
  5419. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="1" />
  5420. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
  5421. <ReferentialConstraint>
  5422. <Principal Role="CmPatrolPlan">
  5423. <PropertyRef Name="SiteId" />
  5424. <PropertyRef Name="PatrolPlanId" />
  5425. </Principal>
  5426. <Dependent Role="CmPatrolSchedule">
  5427. <PropertyRef Name="SiteId" />
  5428. <PropertyRef Name="PlanId" />
  5429. </Dependent>
  5430. </ReferentialConstraint>
  5431. </Association>
  5432. <Association Name="FK_CmPatrolSchedule_CmSite">
  5433. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5434. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
  5435. <ReferentialConstraint>
  5436. <Principal Role="CmSite">
  5437. <PropertyRef Name="SiteId" />
  5438. </Principal>
  5439. <Dependent Role="CmPatrolSchedule">
  5440. <PropertyRef Name="SiteId" />
  5441. </Dependent>
  5442. </ReferentialConstraint>
  5443. </Association>
  5444. <Association Name="FK_CmPatrolType_CmSite">
  5445. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5446. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="*" />
  5447. <ReferentialConstraint>
  5448. <Principal Role="CmSite">
  5449. <PropertyRef Name="SiteId" />
  5450. </Principal>
  5451. <Dependent Role="CmPatrolType">
  5452. <PropertyRef Name="SiteId" />
  5453. </Dependent>
  5454. </ReferentialConstraint>
  5455. </Association>
  5456. <Association Name="FK_CmUser_CmBusinessField">
  5457. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  5458. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5459. <ReferentialConstraint>
  5460. <Principal Role="CmBusinessField">
  5461. <PropertyRef Name="SiteId" />
  5462. <PropertyRef Name="BusinessFieldId" />
  5463. </Principal>
  5464. <Dependent Role="CmUser">
  5465. <PropertyRef Name="SiteId" />
  5466. <PropertyRef Name="BusinessFieldId" />
  5467. </Dependent>
  5468. </ReferentialConstraint>
  5469. </Association>
  5470. <Association Name="FK_CmUser_CmCompany">
  5471. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  5472. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5473. <ReferentialConstraint>
  5474. <Principal Role="CmCompany">
  5475. <PropertyRef Name="SiteId" />
  5476. <PropertyRef Name="CompanyId" />
  5477. </Principal>
  5478. <Dependent Role="CmUser">
  5479. <PropertyRef Name="SiteId" />
  5480. <PropertyRef Name="CompanyId" />
  5481. </Dependent>
  5482. </ReferentialConstraint>
  5483. </Association>
  5484. <Association Name="FK_CmUser_CmDepartment">
  5485. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  5486. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5487. <ReferentialConstraint>
  5488. <Principal Role="CmDepartment">
  5489. <PropertyRef Name="SiteId" />
  5490. <PropertyRef Name="CompanyId" />
  5491. <PropertyRef Name="DepartmentId" />
  5492. </Principal>
  5493. <Dependent Role="CmUser">
  5494. <PropertyRef Name="SiteId" />
  5495. <PropertyRef Name="CompanyId" />
  5496. <PropertyRef Name="DepartmentId" />
  5497. </Dependent>
  5498. </ReferentialConstraint>
  5499. </Association>
  5500. <Association Name="FK_CmUser_CmPosition">
  5501. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
  5502. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5503. <ReferentialConstraint>
  5504. <Principal Role="CmPosition">
  5505. <PropertyRef Name="SiteId" />
  5506. <PropertyRef Name="PositionId" />
  5507. </Principal>
  5508. <Dependent Role="CmUser">
  5509. <PropertyRef Name="SiteId" />
  5510. <PropertyRef Name="PositionId" />
  5511. </Dependent>
  5512. </ReferentialConstraint>
  5513. </Association>
  5514. <Association Name="FK_CmUser_CmUserGroup">
  5515. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
  5516. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5517. <ReferentialConstraint>
  5518. <Principal Role="CmUserGroup">
  5519. <PropertyRef Name="SiteId" />
  5520. <PropertyRef Name="UserGroupId" />
  5521. </Principal>
  5522. <Dependent Role="CmUser">
  5523. <PropertyRef Name="SiteId" />
  5524. <PropertyRef Name="UserGroupId" />
  5525. </Dependent>
  5526. </ReferentialConstraint>
  5527. </Association>
  5528. <Association Name="FK_CmUserLoginHistory_CmUser">
  5529. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5530. <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
  5531. <ReferentialConstraint>
  5532. <Principal Role="CmUser">
  5533. <PropertyRef Name="SiteId" />
  5534. <PropertyRef Name="UserId" />
  5535. </Principal>
  5536. <Dependent Role="CmUserLoginHistory">
  5537. <PropertyRef Name="SiteId" />
  5538. <PropertyRef Name="UserId" />
  5539. </Dependent>
  5540. </ReferentialConstraint>
  5541. </Association>
  5542. <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
  5543. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  5544. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5545. <ReferentialConstraint>
  5546. <Principal Role="CmBuilding">
  5547. <PropertyRef Name="SiteId" />
  5548. <PropertyRef Name="BuildingId" />
  5549. </Principal>
  5550. <Dependent Role="CmZoneTempHumiSet">
  5551. <PropertyRef Name="SiteId" />
  5552. <PropertyRef Name="BuildingId" />
  5553. </Dependent>
  5554. </ReferentialConstraint>
  5555. </Association>
  5556. <Association Name="FK_CmZoneTempHumiSet_CmFloor">
  5557. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  5558. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5559. <ReferentialConstraint>
  5560. <Principal Role="CmFloor">
  5561. <PropertyRef Name="SiteId" />
  5562. <PropertyRef Name="BuildingId" />
  5563. <PropertyRef Name="FloorId" />
  5564. </Principal>
  5565. <Dependent Role="CmZoneTempHumiSet">
  5566. <PropertyRef Name="SiteId" />
  5567. <PropertyRef Name="BuildingId" />
  5568. <PropertyRef Name="FloorId" />
  5569. </Dependent>
  5570. </ReferentialConstraint>
  5571. </Association>
  5572. <Association Name="FK_CmZoneTempHumiSet_CmSite">
  5573. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5574. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5575. <ReferentialConstraint>
  5576. <Principal Role="CmSite">
  5577. <PropertyRef Name="SiteId" />
  5578. </Principal>
  5579. <Dependent Role="CmZoneTempHumiSet">
  5580. <PropertyRef Name="SiteId" />
  5581. </Dependent>
  5582. </ReferentialConstraint>
  5583. </Association>
  5584. <Association Name="FK_CmZoneTempHumiSet_CmZone">
  5585. <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
  5586. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
  5587. <ReferentialConstraint>
  5588. <Principal Role="CmZone">
  5589. <PropertyRef Name="SiteId" />
  5590. <PropertyRef Name="BuildingId" />
  5591. <PropertyRef Name="FloorId" />
  5592. <PropertyRef Name="ZoneId" />
  5593. </Principal>
  5594. <Dependent Role="CmZoneTempHumiSet">
  5595. <PropertyRef Name="SiteId" />
  5596. <PropertyRef Name="BuildingId" />
  5597. <PropertyRef Name="FloorId" />
  5598. <PropertyRef Name="ZoneId" />
  5599. </Dependent>
  5600. </ReferentialConstraint>
  5601. </Association>
  5602. <Association Name="FK_FmsAccident_CmCompany">
  5603. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  5604. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5605. <ReferentialConstraint>
  5606. <Principal Role="CmCompany">
  5607. <PropertyRef Name="SiteId" />
  5608. <PropertyRef Name="CompanyId" />
  5609. </Principal>
  5610. <Dependent Role="FmsAccident">
  5611. <PropertyRef Name="SiteId" />
  5612. <PropertyRef Name="CompanyId" />
  5613. </Dependent>
  5614. </ReferentialConstraint>
  5615. </Association>
  5616. <Association Name="FK_FmsAccident_CmDepartment">
  5617. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  5618. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5619. <ReferentialConstraint>
  5620. <Principal Role="CmDepartment">
  5621. <PropertyRef Name="SiteId" />
  5622. <PropertyRef Name="CompanyId" />
  5623. <PropertyRef Name="DepartmentId" />
  5624. </Principal>
  5625. <Dependent Role="FmsAccident">
  5626. <PropertyRef Name="SiteId" />
  5627. <PropertyRef Name="CompanyId" />
  5628. <PropertyRef Name="DepartmentId" />
  5629. </Dependent>
  5630. </ReferentialConstraint>
  5631. </Association>
  5632. <Association Name="FK_FmsAccident_CmFile1">
  5633. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5634. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5635. <ReferentialConstraint>
  5636. <Principal Role="CmFile">
  5637. <PropertyRef Name="SiteId" />
  5638. <PropertyRef Name="FileId" />
  5639. </Principal>
  5640. <Dependent Role="FmsAccident">
  5641. <PropertyRef Name="SiteId" />
  5642. <PropertyRef Name="FileId1" />
  5643. </Dependent>
  5644. </ReferentialConstraint>
  5645. </Association>
  5646. <Association Name="FK_FmsAccident_CmFile2">
  5647. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5648. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5649. <ReferentialConstraint>
  5650. <Principal Role="CmFile">
  5651. <PropertyRef Name="SiteId" />
  5652. <PropertyRef Name="FileId" />
  5653. </Principal>
  5654. <Dependent Role="FmsAccident">
  5655. <PropertyRef Name="SiteId" />
  5656. <PropertyRef Name="FileId2" />
  5657. </Dependent>
  5658. </ReferentialConstraint>
  5659. </Association>
  5660. <Association Name="FK_FmsAccident_CmFile3">
  5661. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5662. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5663. <ReferentialConstraint>
  5664. <Principal Role="CmFile">
  5665. <PropertyRef Name="SiteId" />
  5666. <PropertyRef Name="FileId" />
  5667. </Principal>
  5668. <Dependent Role="FmsAccident">
  5669. <PropertyRef Name="SiteId" />
  5670. <PropertyRef Name="FileId3" />
  5671. </Dependent>
  5672. </ReferentialConstraint>
  5673. </Association>
  5674. <Association Name="FK_FmsAccident_FmsAccidentCodeType">
  5675. <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
  5676. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5677. <ReferentialConstraint>
  5678. <Principal Role="FmsAccidentCodeType">
  5679. <PropertyRef Name="SiteId" />
  5680. <PropertyRef Name="AccidentTypeId" />
  5681. </Principal>
  5682. <Dependent Role="FmsAccident">
  5683. <PropertyRef Name="SiteId" />
  5684. <PropertyRef Name="AccidentTypeId" />
  5685. </Dependent>
  5686. </ReferentialConstraint>
  5687. </Association>
  5688. <Association Name="FK_FmsBudgetDetail_FmsBudget">
  5689. <End Role="FmsBudget" Type="Self.FmsBudget" Multiplicity="1">
  5690. <OnDelete Action="Cascade" />
  5691. </End>
  5692. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
  5693. <ReferentialConstraint>
  5694. <Principal Role="FmsBudget">
  5695. <PropertyRef Name="SiteId" />
  5696. <PropertyRef Name="Year" />
  5697. </Principal>
  5698. <Dependent Role="FmsBudgetDetail">
  5699. <PropertyRef Name="SiteId" />
  5700. <PropertyRef Name="Year" />
  5701. </Dependent>
  5702. </ReferentialConstraint>
  5703. </Association>
  5704. <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
  5705. <End Role="FmsBudgetCodeClass" Type="Self.FmsBudgetCodeClass" Multiplicity="1" />
  5706. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
  5707. <ReferentialConstraint>
  5708. <Principal Role="FmsBudgetCodeClass">
  5709. <PropertyRef Name="SiteId" />
  5710. <PropertyRef Name="BudgetClassId" />
  5711. </Principal>
  5712. <Dependent Role="FmsBudgetDetail">
  5713. <PropertyRef Name="SiteId" />
  5714. <PropertyRef Name="BudgetClassId" />
  5715. </Dependent>
  5716. </ReferentialConstraint>
  5717. </Association>
  5718. <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  5719. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="1" />
  5720. <End Role="FmsBudgetDetailExecution" Type="Self.FmsBudgetDetailExecution" Multiplicity="*" />
  5721. <ReferentialConstraint>
  5722. <Principal Role="FmsBudgetDetail">
  5723. <PropertyRef Name="SiteId" />
  5724. <PropertyRef Name="Year" />
  5725. <PropertyRef Name="BudgetClassId" />
  5726. <PropertyRef Name="ParentBudgetClassId" />
  5727. </Principal>
  5728. <Dependent Role="FmsBudgetDetailExecution">
  5729. <PropertyRef Name="SiteId" />
  5730. <PropertyRef Name="Year" />
  5731. <PropertyRef Name="BudgetClassId" />
  5732. <PropertyRef Name="ParentBudgetClassId" />
  5733. </Dependent>
  5734. </ReferentialConstraint>
  5735. </Association>
  5736. <Association Name="FK_FmsConstruction_CmFile1">
  5737. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5738. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5739. <ReferentialConstraint>
  5740. <Principal Role="CmFile">
  5741. <PropertyRef Name="SiteId" />
  5742. <PropertyRef Name="FileId" />
  5743. </Principal>
  5744. <Dependent Role="FmsConstruction">
  5745. <PropertyRef Name="SiteId" />
  5746. <PropertyRef Name="FileId1" />
  5747. </Dependent>
  5748. </ReferentialConstraint>
  5749. </Association>
  5750. <Association Name="FK_FmsConstruction_CmFile2">
  5751. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5752. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5753. <ReferentialConstraint>
  5754. <Principal Role="CmFile">
  5755. <PropertyRef Name="SiteId" />
  5756. <PropertyRef Name="FileId" />
  5757. </Principal>
  5758. <Dependent Role="FmsConstruction">
  5759. <PropertyRef Name="SiteId" />
  5760. <PropertyRef Name="FileId2" />
  5761. </Dependent>
  5762. </ReferentialConstraint>
  5763. </Association>
  5764. <Association Name="FK_FmsConstruction_CmFile3">
  5765. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5766. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5767. <ReferentialConstraint>
  5768. <Principal Role="CmFile">
  5769. <PropertyRef Name="SiteId" />
  5770. <PropertyRef Name="FileId" />
  5771. </Principal>
  5772. <Dependent Role="FmsConstruction">
  5773. <PropertyRef Name="SiteId" />
  5774. <PropertyRef Name="FileId3" />
  5775. </Dependent>
  5776. </ReferentialConstraint>
  5777. </Association>
  5778. <Association Name="FK_FmsConstruction_CmPartner">
  5779. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="1" />
  5780. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5781. <ReferentialConstraint>
  5782. <Principal Role="CmPartner">
  5783. <PropertyRef Name="SiteId" />
  5784. <PropertyRef Name="PartnerId" />
  5785. </Principal>
  5786. <Dependent Role="FmsConstruction">
  5787. <PropertyRef Name="SiteId" />
  5788. <PropertyRef Name="PartnerId" />
  5789. </Dependent>
  5790. </ReferentialConstraint>
  5791. </Association>
  5792. <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
  5793. <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
  5794. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5795. <ReferentialConstraint>
  5796. <Principal Role="FmsConstructionCodeProgress">
  5797. <PropertyRef Name="ProgressId" />
  5798. </Principal>
  5799. <Dependent Role="FmsConstruction">
  5800. <PropertyRef Name="ProgressId" />
  5801. </Dependent>
  5802. </ReferentialConstraint>
  5803. </Association>
  5804. <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
  5805. <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
  5806. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5807. <ReferentialConstraint>
  5808. <Principal Role="FmsConstructionCodeType">
  5809. <PropertyRef Name="SiteId" />
  5810. <PropertyRef Name="ConstructionTypeId" />
  5811. </Principal>
  5812. <Dependent Role="FmsConstruction">
  5813. <PropertyRef Name="SiteId" />
  5814. <PropertyRef Name="ConstructionTypeId" />
  5815. </Dependent>
  5816. </ReferentialConstraint>
  5817. </Association>
  5818. <Association Name="FK_FmsConstructionEstimation_CmUser">
  5819. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5820. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
  5821. <ReferentialConstraint>
  5822. <Principal Role="CmUser">
  5823. <PropertyRef Name="SiteId" />
  5824. <PropertyRef Name="UserId" />
  5825. </Principal>
  5826. <Dependent Role="FmsConstructionEstimation">
  5827. <PropertyRef Name="SiteId" />
  5828. <PropertyRef Name="EstimateUserId" />
  5829. </Dependent>
  5830. </ReferentialConstraint>
  5831. </Association>
  5832. <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
  5833. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
  5834. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
  5835. <ReferentialConstraint>
  5836. <Principal Role="FmsConstruction">
  5837. <PropertyRef Name="SiteId" />
  5838. <PropertyRef Name="ConstructionId" />
  5839. </Principal>
  5840. <Dependent Role="FmsConstructionEstimation">
  5841. <PropertyRef Name="SiteId" />
  5842. <PropertyRef Name="ConstructionId" />
  5843. </Dependent>
  5844. </ReferentialConstraint>
  5845. </Association>
  5846. <Association Name="FK_FmsContract_CmPartner">
  5847. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  5848. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5849. <ReferentialConstraint>
  5850. <Principal Role="CmPartner">
  5851. <PropertyRef Name="SiteId" />
  5852. <PropertyRef Name="PartnerId" />
  5853. </Principal>
  5854. <Dependent Role="FmsContract">
  5855. <PropertyRef Name="SiteId" />
  5856. <PropertyRef Name="PartnerId" />
  5857. </Dependent>
  5858. </ReferentialConstraint>
  5859. </Association>
  5860. <Association Name="FK_FmsContract_CmPartnerType">
  5861. <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="0..1" />
  5862. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5863. <ReferentialConstraint>
  5864. <Principal Role="CmPartnerType">
  5865. <PropertyRef Name="PartnerTypeId" />
  5866. </Principal>
  5867. <Dependent Role="FmsContract">
  5868. <PropertyRef Name="PartnerTypeId" />
  5869. </Dependent>
  5870. </ReferentialConstraint>
  5871. </Association>
  5872. <Association Name="FK_FmsContract_FmsContractClass">
  5873. <End Role="FmsContractClass" Type="Self.FmsContractClass" Multiplicity="0..1" />
  5874. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5875. <ReferentialConstraint>
  5876. <Principal Role="FmsContractClass">
  5877. <PropertyRef Name="SiteId" />
  5878. <PropertyRef Name="ContractClassId" />
  5879. </Principal>
  5880. <Dependent Role="FmsContract">
  5881. <PropertyRef Name="SiteId" />
  5882. <PropertyRef Name="ContractClassId" />
  5883. </Dependent>
  5884. </ReferentialConstraint>
  5885. </Association>
  5886. <Association Name="FK_FmsContract_FmsContractMethod">
  5887. <End Role="FmsContractMethod" Type="Self.FmsContractMethod" Multiplicity="0..1" />
  5888. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5889. <ReferentialConstraint>
  5890. <Principal Role="FmsContractMethod">
  5891. <PropertyRef Name="SiteId" />
  5892. <PropertyRef Name="ContractMethodId" />
  5893. </Principal>
  5894. <Dependent Role="FmsContract">
  5895. <PropertyRef Name="SiteId" />
  5896. <PropertyRef Name="ContractMethodId" />
  5897. </Dependent>
  5898. </ReferentialConstraint>
  5899. </Association>
  5900. <Association Name="FK_FmsContract_FmsContractType">
  5901. <End Role="FmsContractType" Type="Self.FmsContractType" Multiplicity="0..1" />
  5902. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5903. <ReferentialConstraint>
  5904. <Principal Role="FmsContractType">
  5905. <PropertyRef Name="SiteId" />
  5906. <PropertyRef Name="ContractTypeId" />
  5907. </Principal>
  5908. <Dependent Role="FmsContract">
  5909. <PropertyRef Name="SiteId" />
  5910. <PropertyRef Name="ContractTypeId" />
  5911. </Dependent>
  5912. </ReferentialConstraint>
  5913. </Association>
  5914. <Association Name="FK_FmsContract_FmsPaymentType">
  5915. <End Role="FmsPaymentType" Type="Self.FmsPaymentType" Multiplicity="0..1" />
  5916. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5917. <ReferentialConstraint>
  5918. <Principal Role="FmsPaymentType">
  5919. <PropertyRef Name="SiteId" />
  5920. <PropertyRef Name="PaymentTypeId" />
  5921. </Principal>
  5922. <Dependent Role="FmsContract">
  5923. <PropertyRef Name="SiteId" />
  5924. <PropertyRef Name="PartnerTypeId" />
  5925. </Dependent>
  5926. </ReferentialConstraint>
  5927. </Association>
  5928. <Association Name="FK_FmsDailyCheckReport_CmUser">
  5929. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5930. <End Role="FmsDailyCheckReport" Type="Self.FmsDailyCheckReport" Multiplicity="*" />
  5931. <ReferentialConstraint>
  5932. <Principal Role="CmUser">
  5933. <PropertyRef Name="SiteId" />
  5934. <PropertyRef Name="UserId" />
  5935. </Principal>
  5936. <Dependent Role="FmsDailyCheckReport">
  5937. <PropertyRef Name="SiteId" />
  5938. <PropertyRef Name="RegisterUserId" />
  5939. </Dependent>
  5940. </ReferentialConstraint>
  5941. </Association>
  5942. <Association Name="FK_FmsDailyReport_CmBusinessField">
  5943. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  5944. <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
  5945. <ReferentialConstraint>
  5946. <Principal Role="CmBusinessField">
  5947. <PropertyRef Name="SiteId" />
  5948. <PropertyRef Name="BusinessFieldId" />
  5949. </Principal>
  5950. <Dependent Role="FmsDailyReport">
  5951. <PropertyRef Name="SiteId" />
  5952. <PropertyRef Name="BusinessFieldId" />
  5953. </Dependent>
  5954. </ReferentialConstraint>
  5955. </Association>
  5956. <Association Name="FK_FmsDailyReport_CmUser">
  5957. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5958. <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
  5959. <ReferentialConstraint>
  5960. <Principal Role="CmUser">
  5961. <PropertyRef Name="SiteId" />
  5962. <PropertyRef Name="UserId" />
  5963. </Principal>
  5964. <Dependent Role="FmsDailyReport">
  5965. <PropertyRef Name="SiteId" />
  5966. <PropertyRef Name="RegisterUserId" />
  5967. </Dependent>
  5968. </ReferentialConstraint>
  5969. </Association>
  5970. <Association Name="FK_FmsEquipment_CmUser">
  5971. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5972. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5973. <ReferentialConstraint>
  5974. <Principal Role="CmUser">
  5975. <PropertyRef Name="SiteId" />
  5976. <PropertyRef Name="UserId" />
  5977. </Principal>
  5978. <Dependent Role="FmsEquipment">
  5979. <PropertyRef Name="SiteId" />
  5980. <PropertyRef Name="RegisterUserId" />
  5981. </Dependent>
  5982. </ReferentialConstraint>
  5983. </Association>
  5984. <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
  5985. <End Role="FmsEquipmentCodeType" Type="Self.FmsEquipmentCodeType" Multiplicity="1" />
  5986. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5987. <ReferentialConstraint>
  5988. <Principal Role="FmsEquipmentCodeType">
  5989. <PropertyRef Name="SiteId" />
  5990. <PropertyRef Name="EquipmentTypeId" />
  5991. </Principal>
  5992. <Dependent Role="FmsEquipment">
  5993. <PropertyRef Name="SiteId" />
  5994. <PropertyRef Name="EquipmentTypeId" />
  5995. </Dependent>
  5996. </ReferentialConstraint>
  5997. </Association>
  5998. <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
  5999. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
  6000. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  6001. <ReferentialConstraint>
  6002. <Principal Role="FmsMaterialWarehouse">
  6003. <PropertyRef Name="SiteId" />
  6004. <PropertyRef Name="WarehouseId" />
  6005. </Principal>
  6006. <Dependent Role="FmsEquipment">
  6007. <PropertyRef Name="SiteId" />
  6008. <PropertyRef Name="WarehouseId" />
  6009. </Dependent>
  6010. </ReferentialConstraint>
  6011. </Association>
  6012. <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
  6013. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="1" />
  6014. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  6015. <ReferentialConstraint>
  6016. <Principal Role="FmsEquipment">
  6017. <PropertyRef Name="SiteId" />
  6018. <PropertyRef Name="EquipmentId" />
  6019. </Principal>
  6020. <Dependent Role="FmsEquipmentHistory">
  6021. <PropertyRef Name="SiteId" />
  6022. <PropertyRef Name="EquipmentId" />
  6023. </Dependent>
  6024. </ReferentialConstraint>
  6025. </Association>
  6026. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  6027. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  6028. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  6029. <ReferentialConstraint>
  6030. <Principal Role="FmsEquipmentCodeStateType">
  6031. <PropertyRef Name="EquipmentStateTypeId" />
  6032. </Principal>
  6033. <Dependent Role="FmsEquipmentHistory">
  6034. <PropertyRef Name="EquipmentStateTypeId" />
  6035. </Dependent>
  6036. </ReferentialConstraint>
  6037. </Association>
  6038. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  6039. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="0..1">
  6040. <OnDelete Action="Cascade" />
  6041. </End>
  6042. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  6043. <ReferentialConstraint>
  6044. <Principal Role="FmsEquipmentRentInfo">
  6045. <PropertyRef Name="SiteId" />
  6046. <PropertyRef Name="EquipmentRentId" />
  6047. </Principal>
  6048. <Dependent Role="FmsEquipmentHistory">
  6049. <PropertyRef Name="SiteId" />
  6050. <PropertyRef Name="EquipmentRentId" />
  6051. </Dependent>
  6052. </ReferentialConstraint>
  6053. </Association>
  6054. <Association Name="FK_FmsEquipmentRentInfo_CmUser">
  6055. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6056. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6057. <ReferentialConstraint>
  6058. <Principal Role="CmUser">
  6059. <PropertyRef Name="SiteId" />
  6060. <PropertyRef Name="UserId" />
  6061. </Principal>
  6062. <Dependent Role="FmsEquipmentRentInfo">
  6063. <PropertyRef Name="SiteId" />
  6064. <PropertyRef Name="RegisterUserId" />
  6065. </Dependent>
  6066. </ReferentialConstraint>
  6067. </Association>
  6068. <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
  6069. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6070. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6071. <ReferentialConstraint>
  6072. <Principal Role="CmUser">
  6073. <PropertyRef Name="SiteId" />
  6074. <PropertyRef Name="UserId" />
  6075. </Principal>
  6076. <Dependent Role="FmsEquipmentRentInfo">
  6077. <PropertyRef Name="SiteId" />
  6078. <PropertyRef Name="RentUserId" />
  6079. </Dependent>
  6080. </ReferentialConstraint>
  6081. </Association>
  6082. <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  6083. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  6084. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6085. <ReferentialConstraint>
  6086. <Principal Role="FmsEquipmentCodeStateType">
  6087. <PropertyRef Name="EquipmentStateTypeId" />
  6088. </Principal>
  6089. <Dependent Role="FmsEquipmentRentInfo">
  6090. <PropertyRef Name="EquipmentStateTypeId" />
  6091. </Dependent>
  6092. </ReferentialConstraint>
  6093. </Association>
  6094. <Association Name="FK_FmsFacilityOperationReport_CmUser">
  6095. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6096. <End Role="FmsFacilityOperationReport" Type="Self.FmsFacilityOperationReport" Multiplicity="*" />
  6097. <ReferentialConstraint>
  6098. <Principal Role="CmUser">
  6099. <PropertyRef Name="SiteId" />
  6100. <PropertyRef Name="UserId" />
  6101. </Principal>
  6102. <Dependent Role="FmsFacilityOperationReport">
  6103. <PropertyRef Name="SiteId" />
  6104. <PropertyRef Name="RegisterUserId" />
  6105. </Dependent>
  6106. </ReferentialConstraint>
  6107. </Association>
  6108. <Association Name="FK_FmsManual_FmsManualType">
  6109. <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
  6110. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
  6111. <ReferentialConstraint>
  6112. <Principal Role="FmsManualType">
  6113. <PropertyRef Name="SiteId" />
  6114. <PropertyRef Name="ManualTypeId" />
  6115. </Principal>
  6116. <Dependent Role="FmsManual">
  6117. <PropertyRef Name="SiteId" />
  6118. <PropertyRef Name="ManualTypeId" />
  6119. </Dependent>
  6120. </ReferentialConstraint>
  6121. </Association>
  6122. <Association Name="FK_FmsManualHistory_CmFile">
  6123. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6124. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6125. <ReferentialConstraint>
  6126. <Principal Role="CmFile">
  6127. <PropertyRef Name="SiteId" />
  6128. <PropertyRef Name="FileId" />
  6129. </Principal>
  6130. <Dependent Role="FmsManualHistory">
  6131. <PropertyRef Name="SiteId" />
  6132. <PropertyRef Name="FileId" />
  6133. </Dependent>
  6134. </ReferentialConstraint>
  6135. </Association>
  6136. <Association Name="FK_FmsManualHistory_CmUser">
  6137. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6138. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6139. <ReferentialConstraint>
  6140. <Principal Role="CmUser">
  6141. <PropertyRef Name="SiteId" />
  6142. <PropertyRef Name="UserId" />
  6143. </Principal>
  6144. <Dependent Role="FmsManualHistory">
  6145. <PropertyRef Name="SiteId" />
  6146. <PropertyRef Name="UpdatedUserId" />
  6147. </Dependent>
  6148. </ReferentialConstraint>
  6149. </Association>
  6150. <Association Name="FK_FmsManualHistory_FmsManual">
  6151. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
  6152. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6153. <ReferentialConstraint>
  6154. <Principal Role="FmsManual">
  6155. <PropertyRef Name="SiteId" />
  6156. <PropertyRef Name="ManualId" />
  6157. </Principal>
  6158. <Dependent Role="FmsManualHistory">
  6159. <PropertyRef Name="SiteId" />
  6160. <PropertyRef Name="ManualId" />
  6161. </Dependent>
  6162. </ReferentialConstraint>
  6163. </Association>
  6164. <Association Name="FK_FmsMaterial_CmBusinessField">
  6165. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6166. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6167. <ReferentialConstraint>
  6168. <Principal Role="CmBusinessField">
  6169. <PropertyRef Name="SiteId" />
  6170. <PropertyRef Name="BusinessFieldId" />
  6171. </Principal>
  6172. <Dependent Role="FmsMaterial">
  6173. <PropertyRef Name="SiteId" />
  6174. <PropertyRef Name="BusinessFieldId" />
  6175. </Dependent>
  6176. </ReferentialConstraint>
  6177. </Association>
  6178. <Association Name="FK_FmsMaterial_CmFile">
  6179. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6180. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6181. <ReferentialConstraint>
  6182. <Principal Role="CmFile">
  6183. <PropertyRef Name="SiteId" />
  6184. <PropertyRef Name="FileId" />
  6185. </Principal>
  6186. <Dependent Role="FmsMaterial">
  6187. <PropertyRef Name="SiteId" />
  6188. <PropertyRef Name="ImageFileId" />
  6189. </Dependent>
  6190. </ReferentialConstraint>
  6191. </Association>
  6192. <Association Name="FK_FmsMaterial_CmSite">
  6193. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6194. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6195. <ReferentialConstraint>
  6196. <Principal Role="CmSite">
  6197. <PropertyRef Name="SiteId" />
  6198. </Principal>
  6199. <Dependent Role="FmsMaterial">
  6200. <PropertyRef Name="SiteId" />
  6201. </Dependent>
  6202. </ReferentialConstraint>
  6203. </Association>
  6204. <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
  6205. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="0..1" />
  6206. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6207. <ReferentialConstraint>
  6208. <Principal Role="FmsMaterialCodeLocation">
  6209. <PropertyRef Name="SiteId" />
  6210. <PropertyRef Name="LocationId" />
  6211. </Principal>
  6212. <Dependent Role="FmsMaterial">
  6213. <PropertyRef Name="SiteId" />
  6214. <PropertyRef Name="LocationId" />
  6215. </Dependent>
  6216. </ReferentialConstraint>
  6217. </Association>
  6218. <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
  6219. <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="0..1" />
  6220. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6221. <ReferentialConstraint>
  6222. <Principal Role="FmsMaterialCodeType">
  6223. <PropertyRef Name="SiteId" />
  6224. <PropertyRef Name="MaterialTypeId" />
  6225. </Principal>
  6226. <Dependent Role="FmsMaterial">
  6227. <PropertyRef Name="SiteId" />
  6228. <PropertyRef Name="MaterialTypeId" />
  6229. </Dependent>
  6230. </ReferentialConstraint>
  6231. </Association>
  6232. <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
  6233. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  6234. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6235. <ReferentialConstraint>
  6236. <Principal Role="FmsMaterialTradeCompany">
  6237. <PropertyRef Name="SiteId" />
  6238. <PropertyRef Name="TradeCompanyId" />
  6239. </Principal>
  6240. <Dependent Role="FmsMaterial">
  6241. <PropertyRef Name="SiteId" />
  6242. <PropertyRef Name="TradeCompanyId" />
  6243. </Dependent>
  6244. </ReferentialConstraint>
  6245. </Association>
  6246. <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
  6247. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
  6248. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6249. <ReferentialConstraint>
  6250. <Principal Role="FmsMaterialWarehouse">
  6251. <PropertyRef Name="SiteId" />
  6252. <PropertyRef Name="WarehouseId" />
  6253. </Principal>
  6254. <Dependent Role="FmsMaterial">
  6255. <PropertyRef Name="SiteId" />
  6256. <PropertyRef Name="WarehouseId" />
  6257. </Dependent>
  6258. </ReferentialConstraint>
  6259. </Association>
  6260. <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  6261. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
  6262. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  6263. <ReferentialConstraint>
  6264. <Principal Role="FmsMaterialPurchaseRequest">
  6265. <PropertyRef Name="SiteId" />
  6266. <PropertyRef Name="PurchaseRequestId" />
  6267. </Principal>
  6268. <Dependent Role="FmsMaterialPurchaseOrder">
  6269. <PropertyRef Name="SiteId" />
  6270. <PropertyRef Name="PurchaseRequestId" />
  6271. </Dependent>
  6272. </ReferentialConstraint>
  6273. </Association>
  6274. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  6275. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6276. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  6277. <ReferentialConstraint>
  6278. <Principal Role="FmsMaterial">
  6279. <PropertyRef Name="SiteId" />
  6280. <PropertyRef Name="MaterialId" />
  6281. </Principal>
  6282. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  6283. <PropertyRef Name="SiteId" />
  6284. <PropertyRef Name="MaterialId" />
  6285. </Dependent>
  6286. </ReferentialConstraint>
  6287. </Association>
  6288. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  6289. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
  6290. <OnDelete Action="Cascade" />
  6291. </End>
  6292. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  6293. <ReferentialConstraint>
  6294. <Principal Role="FmsMaterialPurchaseOrder">
  6295. <PropertyRef Name="SiteId" />
  6296. <PropertyRef Name="PurchaseOrderId" />
  6297. </Principal>
  6298. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  6299. <PropertyRef Name="SiteId" />
  6300. <PropertyRef Name="PurchaseOrderId" />
  6301. </Dependent>
  6302. </ReferentialConstraint>
  6303. </Association>
  6304. <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  6305. <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
  6306. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  6307. <ReferentialConstraint>
  6308. <Principal Role="FmsMaterialCodePurchaseType">
  6309. <PropertyRef Name="PurchaseTypeId" />
  6310. </Principal>
  6311. <Dependent Role="FmsMaterialPurchaseRequest">
  6312. <PropertyRef Name="PurchaseTypeId" />
  6313. </Dependent>
  6314. </ReferentialConstraint>
  6315. </Association>
  6316. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  6317. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6318. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  6319. <ReferentialConstraint>
  6320. <Principal Role="FmsMaterial">
  6321. <PropertyRef Name="SiteId" />
  6322. <PropertyRef Name="MaterialId" />
  6323. </Principal>
  6324. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  6325. <PropertyRef Name="SiteId" />
  6326. <PropertyRef Name="MaterialId" />
  6327. </Dependent>
  6328. </ReferentialConstraint>
  6329. </Association>
  6330. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  6331. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
  6332. <OnDelete Action="Cascade" />
  6333. </End>
  6334. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  6335. <ReferentialConstraint>
  6336. <Principal Role="FmsMaterialPurchaseRequest">
  6337. <PropertyRef Name="SiteId" />
  6338. <PropertyRef Name="PurchaseRequestId" />
  6339. </Principal>
  6340. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  6341. <PropertyRef Name="SiteId" />
  6342. <PropertyRef Name="PurchaseRequestId" />
  6343. </Dependent>
  6344. </ReferentialConstraint>
  6345. </Association>
  6346. <Association Name="FK_FmsMaterialRelease_CmBusinessField">
  6347. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6348. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6349. <ReferentialConstraint>
  6350. <Principal Role="CmBusinessField">
  6351. <PropertyRef Name="SiteId" />
  6352. <PropertyRef Name="BusinessFieldId" />
  6353. </Principal>
  6354. <Dependent Role="FmsMaterialRelease">
  6355. <PropertyRef Name="SiteId" />
  6356. <PropertyRef Name="BusinessFieldId" />
  6357. </Dependent>
  6358. </ReferentialConstraint>
  6359. </Association>
  6360. <Association Name="FK_FmsMaterialRelease_CmSite">
  6361. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6362. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6363. <ReferentialConstraint>
  6364. <Principal Role="CmSite">
  6365. <PropertyRef Name="SiteId" />
  6366. </Principal>
  6367. <Dependent Role="FmsMaterialRelease">
  6368. <PropertyRef Name="SiteId" />
  6369. </Dependent>
  6370. </ReferentialConstraint>
  6371. </Association>
  6372. <Association Name="FK_FmsMaterialRelease_CmUser">
  6373. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6374. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6375. <ReferentialConstraint>
  6376. <Principal Role="CmUser">
  6377. <PropertyRef Name="SiteId" />
  6378. <PropertyRef Name="UserId" />
  6379. </Principal>
  6380. <Dependent Role="FmsMaterialRelease">
  6381. <PropertyRef Name="SiteId" />
  6382. <PropertyRef Name="ConfirmedUserId" />
  6383. </Dependent>
  6384. </ReferentialConstraint>
  6385. </Association>
  6386. <Association Name="FK_FmsMaterialRelease_CmUser1">
  6387. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6388. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6389. <ReferentialConstraint>
  6390. <Principal Role="CmUser">
  6391. <PropertyRef Name="SiteId" />
  6392. <PropertyRef Name="UserId" />
  6393. </Principal>
  6394. <Dependent Role="FmsMaterialRelease">
  6395. <PropertyRef Name="SiteId" />
  6396. <PropertyRef Name="AdjustmentUserId" />
  6397. </Dependent>
  6398. </ReferentialConstraint>
  6399. </Association>
  6400. <Association Name="FK_FmsMaterialRelease_FmsMaterial">
  6401. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="0..1" />
  6402. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6403. <ReferentialConstraint>
  6404. <Principal Role="FmsMaterial">
  6405. <PropertyRef Name="SiteId" />
  6406. <PropertyRef Name="MaterialId" />
  6407. </Principal>
  6408. <Dependent Role="FmsMaterialRelease">
  6409. <PropertyRef Name="SiteId" />
  6410. <PropertyRef Name="MaterialId" />
  6411. </Dependent>
  6412. </ReferentialConstraint>
  6413. </Association>
  6414. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  6415. <End Role="FmsMaterialCodeAdjustmentType" Type="Self.FmsMaterialCodeAdjustmentType" Multiplicity="1" />
  6416. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6417. <ReferentialConstraint>
  6418. <Principal Role="FmsMaterialCodeAdjustmentType">
  6419. <PropertyRef Name="AdjustmentTypeId" />
  6420. </Principal>
  6421. <Dependent Role="FmsMaterialRelease">
  6422. <PropertyRef Name="AdjustmentTypeId" />
  6423. </Dependent>
  6424. </ReferentialConstraint>
  6425. </Association>
  6426. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  6427. <End Role="FmsMaterialCodeReleaseType" Type="Self.FmsMaterialCodeReleaseType" Multiplicity="1" />
  6428. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6429. <ReferentialConstraint>
  6430. <Principal Role="FmsMaterialCodeReleaseType">
  6431. <PropertyRef Name="ReleaseTypeId" />
  6432. </Principal>
  6433. <Dependent Role="FmsMaterialRelease">
  6434. <PropertyRef Name="ReleaseTypeId" />
  6435. </Dependent>
  6436. </ReferentialConstraint>
  6437. </Association>
  6438. <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
  6439. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  6440. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6441. <ReferentialConstraint>
  6442. <Principal Role="FmsWorkResult">
  6443. <PropertyRef Name="SiteId" />
  6444. <PropertyRef Name="WorkRequestId" />
  6445. </Principal>
  6446. <Dependent Role="FmsMaterialRelease">
  6447. <PropertyRef Name="SiteId" />
  6448. <PropertyRef Name="WorkRequestId" />
  6449. </Dependent>
  6450. </ReferentialConstraint>
  6451. </Association>
  6452. <Association Name="FK_FmsMaterialStored_FmsMaterial">
  6453. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6454. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6455. <ReferentialConstraint>
  6456. <Principal Role="FmsMaterial">
  6457. <PropertyRef Name="SiteId" />
  6458. <PropertyRef Name="MaterialId" />
  6459. </Principal>
  6460. <Dependent Role="FmsMaterialStored">
  6461. <PropertyRef Name="SiteId" />
  6462. <PropertyRef Name="MaterialId" />
  6463. </Dependent>
  6464. </ReferentialConstraint>
  6465. </Association>
  6466. <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  6467. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
  6468. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6469. <ReferentialConstraint>
  6470. <Principal Role="FmsMaterialPurchaseOrder">
  6471. <PropertyRef Name="SiteId" />
  6472. <PropertyRef Name="PurchaseOrderId" />
  6473. </Principal>
  6474. <Dependent Role="FmsMaterialStored">
  6475. <PropertyRef Name="SiteId" />
  6476. <PropertyRef Name="PurchaseOrderId" />
  6477. </Dependent>
  6478. </ReferentialConstraint>
  6479. </Association>
  6480. <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
  6481. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
  6482. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6483. <ReferentialConstraint>
  6484. <Principal Role="FmsMaterialWarehouse">
  6485. <PropertyRef Name="SiteId" />
  6486. <PropertyRef Name="WarehouseId" />
  6487. </Principal>
  6488. <Dependent Role="FmsMaterialStored">
  6489. <PropertyRef Name="SiteId" />
  6490. <PropertyRef Name="WarehouseId" />
  6491. </Dependent>
  6492. </ReferentialConstraint>
  6493. </Association>
  6494. <Association Name="FK_FmsMonthlyReport_CmUser">
  6495. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6496. <End Role="FmsMonthlyReport" Type="Self.FmsMonthlyReport" Multiplicity="*" />
  6497. <ReferentialConstraint>
  6498. <Principal Role="CmUser">
  6499. <PropertyRef Name="SiteId" />
  6500. <PropertyRef Name="UserId" />
  6501. </Principal>
  6502. <Dependent Role="FmsMonthlyReport">
  6503. <PropertyRef Name="SiteId" />
  6504. <PropertyRef Name="RegisterUserId" />
  6505. </Dependent>
  6506. </ReferentialConstraint>
  6507. </Association>
  6508. <Association Name="FK_FmsReport_CmBusinessField">
  6509. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6510. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6511. <ReferentialConstraint>
  6512. <Principal Role="CmBusinessField">
  6513. <PropertyRef Name="SiteId" />
  6514. <PropertyRef Name="BusinessFieldId" />
  6515. </Principal>
  6516. <Dependent Role="FmsReport">
  6517. <PropertyRef Name="SiteId" />
  6518. <PropertyRef Name="BusinessFieldId" />
  6519. </Dependent>
  6520. </ReferentialConstraint>
  6521. </Association>
  6522. <Association Name="FK_FmsReport_CmFile">
  6523. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6524. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6525. <ReferentialConstraint>
  6526. <Principal Role="CmFile">
  6527. <PropertyRef Name="SiteId" />
  6528. <PropertyRef Name="FileId" />
  6529. </Principal>
  6530. <Dependent Role="FmsReport">
  6531. <PropertyRef Name="SiteId" />
  6532. <PropertyRef Name="FileId" />
  6533. </Dependent>
  6534. </ReferentialConstraint>
  6535. </Association>
  6536. <Association Name="FK_FmsReport_CmSite">
  6537. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6538. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6539. <ReferentialConstraint>
  6540. <Principal Role="CmSite">
  6541. <PropertyRef Name="SiteId" />
  6542. </Principal>
  6543. <Dependent Role="FmsReport">
  6544. <PropertyRef Name="SiteId" />
  6545. </Dependent>
  6546. </ReferentialConstraint>
  6547. </Association>
  6548. <Association Name="FK_FmsReport_CmUser">
  6549. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6550. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6551. <ReferentialConstraint>
  6552. <Principal Role="CmUser">
  6553. <PropertyRef Name="SiteId" />
  6554. <PropertyRef Name="UserId" />
  6555. </Principal>
  6556. <Dependent Role="FmsReport">
  6557. <PropertyRef Name="SiteId" />
  6558. <PropertyRef Name="RegisterUserId" />
  6559. </Dependent>
  6560. </ReferentialConstraint>
  6561. </Association>
  6562. <Association Name="FK_FmsReport_CmUser1">
  6563. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6564. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6565. <ReferentialConstraint>
  6566. <Principal Role="CmUser">
  6567. <PropertyRef Name="SiteId" />
  6568. <PropertyRef Name="UserId" />
  6569. </Principal>
  6570. <Dependent Role="FmsReport">
  6571. <PropertyRef Name="SiteId" />
  6572. <PropertyRef Name="ConfirmUserId1" />
  6573. </Dependent>
  6574. </ReferentialConstraint>
  6575. </Association>
  6576. <Association Name="FK_FmsReport_CmUser2">
  6577. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6578. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6579. <ReferentialConstraint>
  6580. <Principal Role="CmUser">
  6581. <PropertyRef Name="SiteId" />
  6582. <PropertyRef Name="UserId" />
  6583. </Principal>
  6584. <Dependent Role="FmsReport">
  6585. <PropertyRef Name="SiteId" />
  6586. <PropertyRef Name="ConfirmUserId2" />
  6587. </Dependent>
  6588. </ReferentialConstraint>
  6589. </Association>
  6590. <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
  6591. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6592. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  6593. <ReferentialConstraint>
  6594. <Principal Role="CmFacility">
  6595. <PropertyRef Name="SiteId" />
  6596. <PropertyRef Name="FacilityCode" />
  6597. </Principal>
  6598. <Dependent Role="FmsWorkOrderToFacility">
  6599. <PropertyRef Name="SiteId" />
  6600. <PropertyRef Name="FacilityCode" />
  6601. </Dependent>
  6602. </ReferentialConstraint>
  6603. </Association>
  6604. <Association Name="FK_FmsWorkRequest_CmPartner">
  6605. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  6606. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  6607. <ReferentialConstraint>
  6608. <Principal Role="CmPartner">
  6609. <PropertyRef Name="SiteId" />
  6610. <PropertyRef Name="PartnerId" />
  6611. </Principal>
  6612. <Dependent Role="FmsWorkRequest">
  6613. <PropertyRef Name="SiteId" />
  6614. <PropertyRef Name="InspectionAgencyId" />
  6615. </Dependent>
  6616. </ReferentialConstraint>
  6617. </Association>
  6618. <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
  6619. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6620. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  6621. <ReferentialConstraint>
  6622. <Principal Role="CmFacility">
  6623. <PropertyRef Name="SiteId" />
  6624. <PropertyRef Name="FacilityCode" />
  6625. </Principal>
  6626. <Dependent Role="FmsWorkRequestToFacility">
  6627. <PropertyRef Name="SiteId" />
  6628. <PropertyRef Name="FacilityCode" />
  6629. </Dependent>
  6630. </ReferentialConstraint>
  6631. </Association>
  6632. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  6633. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6634. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6635. <ReferentialConstraint>
  6636. <Principal Role="FmsMaterial">
  6637. <PropertyRef Name="SiteId" />
  6638. <PropertyRef Name="MaterialId" />
  6639. </Principal>
  6640. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6641. <PropertyRef Name="SiteId" />
  6642. <PropertyRef Name="MaterialId" />
  6643. </Dependent>
  6644. </ReferentialConstraint>
  6645. </Association>
  6646. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  6647. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  6648. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6649. <ReferentialConstraint>
  6650. <Principal Role="FmsWorkResult">
  6651. <PropertyRef Name="SiteId" />
  6652. <PropertyRef Name="WorkRequestId" />
  6653. </Principal>
  6654. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6655. <PropertyRef Name="SiteId" />
  6656. <PropertyRef Name="WorkRequestId" />
  6657. </Dependent>
  6658. </ReferentialConstraint>
  6659. </Association>
  6660. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  6661. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1" />
  6662. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6663. <ReferentialConstraint>
  6664. <Principal Role="FmsWorkResultCheckItem">
  6665. <PropertyRef Name="CheckItemId" />
  6666. </Principal>
  6667. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6668. <PropertyRef Name="CheckItemId" />
  6669. </Dependent>
  6670. </ReferentialConstraint>
  6671. </Association>
  6672. <Association Name="FK_FmsWorkSchedule_CmPartner">
  6673. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  6674. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  6675. <ReferentialConstraint>
  6676. <Principal Role="CmPartner">
  6677. <PropertyRef Name="SiteId" />
  6678. <PropertyRef Name="PartnerId" />
  6679. </Principal>
  6680. <Dependent Role="FmsWorkSchedule">
  6681. <PropertyRef Name="SiteId" />
  6682. <PropertyRef Name="InspectionAgencyId" />
  6683. </Dependent>
  6684. </ReferentialConstraint>
  6685. </Association>
  6686. <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
  6687. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6688. <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
  6689. <ReferentialConstraint>
  6690. <Principal Role="CmFacility">
  6691. <PropertyRef Name="SiteId" />
  6692. <PropertyRef Name="FacilityCode" />
  6693. </Principal>
  6694. <Dependent Role="FmsWorkScheduleToFacility">
  6695. <PropertyRef Name="SiteId" />
  6696. <PropertyRef Name="FacilityCode" />
  6697. </Dependent>
  6698. </ReferentialConstraint>
  6699. </Association>
  6700. <EntityContainer Name="iBemsModelStoreContainer">
  6701. <EntitySet Name="BemsAlarmGroup" EntityType="Self.BemsAlarmGroup" Schema="dbo" store:Type="Tables" />
  6702. <EntitySet Name="BemsAlarmGroupUser" EntityType="Self.BemsAlarmGroupUser" Schema="dbo" store:Type="Tables" />
  6703. <EntitySet Name="BemsAlarmLog" EntityType="Self.BemsAlarmLog" Schema="dbo" store:Type="Tables" />
  6704. <EntitySet Name="BemsAlarmSetting" EntityType="Self.BemsAlarmSetting" Schema="dbo" store:Type="Tables" />
  6705. <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" Schema="dbo" store:Type="Tables" />
  6706. <EntitySet Name="BemsChartInfo" EntityType="Self.BemsChartInfo" Schema="dbo" store:Type="Tables" />
  6707. <EntitySet Name="BemsConfigData" EntityType="Self.BemsConfigData" Schema="dbo" store:Type="Tables" />
  6708. <EntitySet Name="BemsControlAHUTempConfig" EntityType="Self.BemsControlAHUTempConfig" Schema="dbo" store:Type="Tables" />
  6709. <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" Schema="dbo" store:Type="Tables" />
  6710. <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="Self.BemsEnergyConfigPercentMonth" Schema="dbo" store:Type="Tables" />
  6711. <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="Self.BemsEnergyConfigPercentWeek" Schema="dbo" store:Type="Tables" />
  6712. <EntitySet Name="BemsEnergyCost" EntityType="Self.BemsEnergyCost" Schema="dbo" store:Type="Tables" />
  6713. <EntitySet Name="BemsEnergyDaily" EntityType="Self.BemsEnergyDaily" Schema="dbo" store:Type="Tables" />
  6714. <EntitySet Name="BemsEnergyDailyRegression" EntityType="Self.BemsEnergyDailyRegression" Schema="dbo" store:Type="Tables" />
  6715. <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" Schema="dbo" store:Type="Tables" />
  6716. <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" Schema="dbo" store:Type="Tables" />
  6717. <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" Schema="dbo" store:Type="Tables" />
  6718. <EntitySet Name="BemsFloorPlan" EntityType="Self.BemsFloorPlan" Schema="dbo" store:Type="Tables" />
  6719. <EntitySet Name="BemsFloorStatus" EntityType="Self.BemsFloorStatus" Schema="dbo" store:Type="Tables" />
  6720. <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" Schema="dbo" store:Type="Tables" />
  6721. <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" Schema="dbo" store:Type="Tables" />
  6722. <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" Schema="dbo" store:Type="Tables" />
  6723. <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" Schema="dbo" store:Type="Tables" />
  6724. <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" Schema="dbo" store:Type="Tables" />
  6725. <EntitySet Name="BemsFuelType" EntityType="Self.BemsFuelType" Schema="dbo" store:Type="Tables" />
  6726. <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="Self.BemsIceThermalStorageSimulation" Schema="dbo" store:Type="Tables" />
  6727. <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" Schema="dbo" store:Type="Tables" />
  6728. <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" Schema="dbo" store:Type="Tables" />
  6729. <EntitySet Name="BemsMonitoringPointConfig" EntityType="Self.BemsMonitoringPointConfig" Schema="dbo" store:Type="Tables" />
  6730. <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="Self.BemsMonitoringPointForecastingDayAhead" Schema="dbo" store:Type="Tables" />
  6731. <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="Self.BemsMonitoringPointForecastingHourAhead" Schema="dbo" store:Type="Tables" />
  6732. <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" Schema="dbo" store:Type="Tables" />
  6733. <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="Self.BemsMonitoringPointHistory15minRawData" Schema="dbo" store:Type="Tables" />
  6734. <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" Schema="dbo" store:Type="Tables" />
  6735. <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" Schema="dbo" store:Type="Tables" />
  6736. <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" Schema="dbo" store:Type="Tables" />
  6737. <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="Self.BemsMonitoringPointWeatherForecasted" Schema="dbo" store:Type="Tables" />
  6738. <EntitySet Name="BemsNoticePriceBase" EntityType="Self.BemsNoticePriceBase" Schema="dbo" store:Type="Tables" />
  6739. <EntitySet Name="BemsNoticePriceContractType" EntityType="Self.BemsNoticePriceContractType" Schema="dbo" store:Type="Tables" />
  6740. <EntitySet Name="BemsNoticePriceDetail" EntityType="Self.BemsNoticePriceDetail" Schema="dbo" store:Type="Tables" />
  6741. <EntitySet Name="BemsPeakFacility" EntityType="Self.BemsPeakFacility" Schema="dbo" store:Type="Tables" />
  6742. <EntitySet Name="BemsPeakHistory" EntityType="Self.BemsPeakHistory" Schema="dbo" store:Type="Tables" />
  6743. <EntitySet Name="BemsPeakHistoryDaily" EntityType="Self.BemsPeakHistoryDaily" Schema="dbo" store:Type="Tables" />
  6744. <EntitySet Name="BemsPeakInfo" EntityType="Self.BemsPeakInfo" Schema="dbo" store:Type="Tables" />
  6745. <EntitySet Name="BemsPeopleIncrease" EntityType="Self.BemsPeopleIncrease" Schema="dbo" store:Type="Tables" />
  6746. <EntitySet Name="BemsPriceCode" EntityType="Self.BemsPriceCode" Schema="dbo" store:Type="Tables" />
  6747. <EntitySet Name="BemsPriceFormula" EntityType="Self.BemsPriceFormula" Schema="dbo" store:Type="Tables" />
  6748. <EntitySet Name="BemsPriceMeta" EntityType="Self.BemsPriceMeta" Schema="dbo" store:Type="Tables" />
  6749. <EntitySet Name="BemsPriceType" EntityType="Self.BemsPriceType" Schema="dbo" store:Type="Tables" />
  6750. <EntitySet Name="BemsRentalRate" EntityType="Self.BemsRentalRate" Schema="dbo" store:Type="Tables" />
  6751. <EntitySet Name="BemsReportFormat" EntityType="Self.BemsReportFormat" Schema="dbo" store:Type="Tables" />
  6752. <EntitySet Name="BemsReportHistory" EntityType="Self.BemsReportHistory" Schema="dbo" store:Type="Tables" />
  6753. <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" Schema="dbo" store:Type="Tables" />
  6754. <EntitySet Name="BemsSitePrice" EntityType="Self.BemsSitePrice" Schema="dbo" store:Type="Tables" />
  6755. <EntitySet Name="BemsSitePriceHistory" EntityType="Self.BemsSitePriceHistory" Schema="dbo" store:Type="Tables" />
  6756. <EntitySet Name="CmAlarmAdmin" EntityType="Self.CmAlarmAdmin" Schema="dbo" store:Type="Tables" />
  6757. <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" Schema="dbo" store:Type="Tables" />
  6758. <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" Schema="dbo" store:Type="Tables" />
  6759. <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" Schema="dbo" store:Type="Tables" />
  6760. <EntitySet Name="CmCompany" EntityType="Self.CmCompany" Schema="dbo" store:Type="Tables" />
  6761. <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" Schema="dbo" store:Type="Tables" />
  6762. <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" Schema="dbo" store:Type="Tables" />
  6763. <EntitySet Name="CmFacility" EntityType="Self.CmFacility" Schema="dbo" store:Type="Tables" />
  6764. <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" Schema="dbo" store:Type="Tables" />
  6765. <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" Schema="dbo" store:Type="Tables" />
  6766. <EntitySet Name="CmFile" EntityType="Self.CmFile" Schema="dbo" store:Type="Tables" />
  6767. <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" Schema="dbo" store:Type="Tables" />
  6768. <EntitySet Name="CmFloor" EntityType="Self.CmFloor" Schema="dbo" store:Type="Tables" />
  6769. <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" Schema="dbo" store:Type="Tables" />
  6770. <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" Schema="dbo" store:Type="Tables" />
  6771. <EntitySet Name="CmHolidayWeekend" EntityType="Self.CmHolidayWeekend" Schema="dbo" store:Type="Tables" />
  6772. <EntitySet Name="CmMenu" EntityType="Self.CmMenu" Schema="dbo" store:Type="Tables" />
  6773. <EntitySet Name="CmPartner" EntityType="Self.CmPartner" Schema="dbo" store:Type="Tables" />
  6774. <EntitySet Name="CmPartnerType" EntityType="Self.CmPartnerType" Schema="dbo" store:Type="Tables" />
  6775. <EntitySet Name="CmPatrolCourse" EntityType="Self.CmPatrolCourse" Schema="dbo" store:Type="Tables" />
  6776. <EntitySet Name="CmPatrolCoursePos" EntityType="Self.CmPatrolCoursePos" Schema="dbo" store:Type="Tables" />
  6777. <EntitySet Name="CmPatrolGroup" EntityType="Self.CmPatrolGroup" Schema="dbo" store:Type="Tables" />
  6778. <EntitySet Name="CmPatrolGroupUser" EntityType="Self.CmPatrolGroupUser" Schema="dbo" store:Type="Tables" />
  6779. <EntitySet Name="CmPatrolHistory" EntityType="Self.CmPatrolHistory" Schema="dbo" store:Type="Tables" />
  6780. <EntitySet Name="CmPatrolHistoryPos" EntityType="Self.CmPatrolHistoryPos" Schema="dbo" store:Type="Tables" />
  6781. <EntitySet Name="CmPatrolPlan" EntityType="Self.CmPatrolPlan" Schema="dbo" store:Type="Tables" />
  6782. <EntitySet Name="CmPatrolPos" EntityType="Self.CmPatrolPos" Schema="dbo" store:Type="Tables" />
  6783. <EntitySet Name="CmPatrolSchedule" EntityType="Self.CmPatrolSchedule" Schema="dbo" store:Type="Tables" />
  6784. <EntitySet Name="CmPatrolType" EntityType="Self.CmPatrolType" Schema="dbo" store:Type="Tables" />
  6785. <EntitySet Name="CmPosition" EntityType="Self.CmPosition" Schema="dbo" store:Type="Tables" />
  6786. <EntitySet Name="CmServiceEnergyCalcDay" EntityType="Self.CmServiceEnergyCalcDay" Schema="dbo" store:Type="Tables" />
  6787. <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="Self.CmServiceEnergyCalcMonth" Schema="dbo" store:Type="Tables" />
  6788. <EntitySet Name="CmSite" EntityType="Self.CmSite" Schema="dbo" store:Type="Tables" />
  6789. <EntitySet Name="CmUser" EntityType="Self.CmUser" Schema="dbo" store:Type="Tables" />
  6790. <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" Schema="dbo" store:Type="Tables" />
  6791. <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" Schema="dbo" store:Type="Tables" />
  6792. <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" Schema="dbo" store:Type="Tables" />
  6793. <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" Schema="dbo" store:Type="Tables" />
  6794. <EntitySet Name="CmZone" EntityType="Self.CmZone" Schema="dbo" store:Type="Tables" />
  6795. <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" Schema="dbo" store:Type="Tables" />
  6796. <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" Schema="dbo" store:Type="Tables" />
  6797. <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" Schema="dbo" store:Type="Tables" />
  6798. <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" Schema="dbo" store:Type="Tables" />
  6799. <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" Schema="dbo" store:Type="Tables" />
  6800. <EntitySet Name="FmsBudgetDetail" EntityType="Self.FmsBudgetDetail" Schema="dbo" store:Type="Tables" />
  6801. <EntitySet Name="FmsBudgetDetailExecution" EntityType="Self.FmsBudgetDetailExecution" Schema="dbo" store:Type="Tables" />
  6802. <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" Schema="dbo" store:Type="Tables" />
  6803. <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" Schema="dbo" store:Type="Tables" />
  6804. <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" Schema="dbo" store:Type="Tables" />
  6805. <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" Schema="dbo" store:Type="Tables" />
  6806. <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" Schema="dbo" store:Type="Tables" />
  6807. <EntitySet Name="FmsContract" EntityType="Self.FmsContract" Schema="dbo" store:Type="Tables" />
  6808. <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" Schema="dbo" store:Type="Tables" />
  6809. <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" Schema="dbo" store:Type="Tables" />
  6810. <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" Schema="dbo" store:Type="Tables" />
  6811. <EntitySet Name="FmsDailyCheckReport" EntityType="Self.FmsDailyCheckReport" Schema="dbo" store:Type="Tables" />
  6812. <EntitySet Name="FmsDailyReport" EntityType="Self.FmsDailyReport" Schema="dbo" store:Type="Tables" />
  6813. <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" Schema="dbo" store:Type="Tables" />
  6814. <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" Schema="dbo" store:Type="Tables" />
  6815. <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" Schema="dbo" store:Type="Tables" />
  6816. <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" Schema="dbo" store:Type="Tables" />
  6817. <EntitySet Name="FmsEquipment" EntityType="Self.FmsEquipment" Schema="dbo" store:Type="Tables" />
  6818. <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" Schema="dbo" store:Type="Tables" />
  6819. <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" Schema="dbo" store:Type="Tables" />
  6820. <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" Schema="dbo" store:Type="Tables" />
  6821. <EntitySet Name="FmsEquipmentRentInfo" EntityType="Self.FmsEquipmentRentInfo" Schema="dbo" store:Type="Tables" />
  6822. <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" Schema="dbo" store:Type="Tables" />
  6823. <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" Schema="dbo" store:Type="Tables" />
  6824. <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" Schema="dbo" store:Type="Tables" />
  6825. <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" Schema="dbo" store:Type="Tables" />
  6826. <EntitySet Name="FmsFacilityOperationReport" EntityType="Self.FmsFacilityOperationReport" Schema="dbo" store:Type="Tables" />
  6827. <EntitySet Name="FmsInvestmentCost" EntityType="Self.FmsInvestmentCost" Schema="dbo" store:Type="Tables" />
  6828. <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" Schema="dbo" store:Type="Tables" />
  6829. <EntitySet Name="FmsManual" EntityType="Self.FmsManual" Schema="dbo" store:Type="Tables" />
  6830. <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" Schema="dbo" store:Type="Tables" />
  6831. <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" Schema="dbo" store:Type="Tables" />
  6832. <EntitySet Name="FmsMaterial" EntityType="Self.FmsMaterial" Schema="dbo" store:Type="Tables" />
  6833. <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" Schema="dbo" store:Type="Tables" />
  6834. <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" Schema="dbo" store:Type="Tables" />
  6835. <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" Schema="dbo" store:Type="Tables" />
  6836. <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" Schema="dbo" store:Type="Tables" />
  6837. <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" Schema="dbo" store:Type="Tables" />
  6838. <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" Schema="dbo" store:Type="Tables" />
  6839. <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" Schema="dbo" store:Type="Tables" />
  6840. <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" Schema="dbo" store:Type="Tables" />
  6841. <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" Schema="dbo" store:Type="Tables" />
  6842. <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" Schema="dbo" store:Type="Tables" />
  6843. <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" Schema="dbo" store:Type="Tables" />
  6844. <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" Schema="dbo" store:Type="Tables" />
  6845. <EntitySet Name="FmsMaterialRelease" EntityType="Self.FmsMaterialRelease" Schema="dbo" store:Type="Tables" />
  6846. <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" Schema="dbo" store:Type="Tables" />
  6847. <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" Schema="dbo" store:Type="Tables" />
  6848. <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" Schema="dbo" store:Type="Tables" />
  6849. <EntitySet Name="FmsMonthlyReport" EntityType="Self.FmsMonthlyReport" Schema="dbo" store:Type="Tables" />
  6850. <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" Schema="dbo" store:Type="Tables" />
  6851. <EntitySet Name="FmsReport" EntityType="Self.FmsReport" Schema="dbo" store:Type="Tables" />
  6852. <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" Schema="dbo" store:Type="Tables" />
  6853. <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" Schema="dbo" store:Type="Tables" />
  6854. <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" Schema="dbo" store:Type="Tables" />
  6855. <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" Schema="dbo" store:Type="Tables" />
  6856. <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" Schema="dbo" store:Type="Tables" />
  6857. <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" Schema="dbo" store:Type="Tables" />
  6858. <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" Schema="dbo" store:Type="Tables" />
  6859. <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" Schema="dbo" store:Type="Tables" />
  6860. <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" Schema="dbo" store:Type="Tables" />
  6861. <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" Schema="dbo" store:Type="Tables" />
  6862. <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" Schema="dbo" store:Type="Tables" />
  6863. <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" Schema="dbo" store:Type="Tables" />
  6864. <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" Schema="dbo" store:Type="Tables" />
  6865. <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" Schema="dbo" store:Type="Tables" />
  6866. <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" Schema="dbo" store:Type="Tables" />
  6867. <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" Schema="dbo" store:Type="Tables" />
  6868. <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" Schema="dbo" store:Type="Tables" />
  6869. <EntitySet Name="FmsWorkSchedule" EntityType="Self.FmsWorkSchedule" Schema="dbo" store:Type="Tables" />
  6870. <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" Schema="dbo" store:Type="Tables" />
  6871. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  6872. <EntitySet Name="WeatherDongNaeForecast" EntityType="Self.WeatherDongNaeForecast" Schema="dbo" store:Type="Tables" />
  6873. <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="Self.FK__BemsEnerg__SiteI__7954A4F6">
  6874. <End Role="CmSite" EntitySet="CmSite" />
  6875. <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
  6876. </AssociationSet>
  6877. <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="Self.FK__BemsEnerg__SiteI__7C3111A1">
  6878. <End Role="CmSite" EntitySet="CmSite" />
  6879. <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
  6880. </AssociationSet>
  6881. <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="Self.FK__BemsEnergyDaily__BemsFuelType">
  6882. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6883. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6884. </AssociationSet>
  6885. <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="Self.FK__BemsEnergyDaily__BemsServiceType">
  6886. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6887. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6888. </AssociationSet>
  6889. <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="Self.FK__BemsEnergyDaily__CmBuilding">
  6890. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6891. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6892. </AssociationSet>
  6893. <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="Self.FK__BemsFactorCo2__BemsFuelType">
  6894. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6895. <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
  6896. </AssociationSet>
  6897. <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="Self.FK__BemsFactorToe__BemsFuelType">
  6898. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6899. <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
  6900. </AssociationSet>
  6901. <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
  6902. <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
  6903. <End Role="BemsFormula" EntitySet="BemsFormula" />
  6904. </AssociationSet>
  6905. <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
  6906. <End Role="BemsFormula" EntitySet="BemsFormula" />
  6907. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  6908. </AssociationSet>
  6909. <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
  6910. <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
  6911. <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
  6912. </AssociationSet>
  6913. <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
  6914. <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
  6915. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6916. </AssociationSet>
  6917. <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
  6918. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6919. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6920. </AssociationSet>
  6921. <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="Self.FK__BemsMonitoringPoint__BemsFuelType">
  6922. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6923. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6924. </AssociationSet>
  6925. <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
  6926. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6927. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6928. </AssociationSet>
  6929. <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
  6930. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6931. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6932. </AssociationSet>
  6933. <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
  6934. <End Role="CmFloor" EntitySet="CmFloor" />
  6935. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6936. </AssociationSet>
  6937. <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
  6938. <End Role="CmZone" EntitySet="CmZone" />
  6939. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6940. </AssociationSet>
  6941. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
  6942. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6943. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6944. </AssociationSet>
  6945. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFuelType">
  6946. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6947. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6948. </AssociationSet>
  6949. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
  6950. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6951. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6952. </AssociationSet>
  6953. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  6954. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6955. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  6956. </AssociationSet>
  6957. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  6958. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6959. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  6960. </AssociationSet>
  6961. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  6962. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6963. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  6964. </AssociationSet>
  6965. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  6966. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6967. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  6968. </AssociationSet>
  6969. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  6970. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6971. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  6972. </AssociationSet>
  6973. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  6974. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6975. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  6976. </AssociationSet>
  6977. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  6978. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6979. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  6980. </AssociationSet>
  6981. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  6982. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6983. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  6984. </AssociationSet>
  6985. <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  6986. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6987. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6988. </AssociationSet>
  6989. <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="Self.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  6990. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  6991. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  6992. </AssociationSet>
  6993. <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="Self.FK__BemsNoticePriceContractType__BemsFuelType">
  6994. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6995. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  6996. </AssociationSet>
  6997. <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="Self.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  6998. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  6999. <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
  7000. </AssociationSet>
  7001. <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
  7002. <End Role="CmCompanyType" EntitySet="CmCompanyType" />
  7003. <End Role="CmCompany" EntitySet="CmCompany" />
  7004. </AssociationSet>
  7005. <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="Self.FK__CmCompany__SiteI__336AA144">
  7006. <End Role="CmSite" EntitySet="CmSite" />
  7007. <End Role="CmCompany" EntitySet="CmCompany" />
  7008. </AssociationSet>
  7009. <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
  7010. <End Role="CmCompany" EntitySet="CmCompany" />
  7011. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7012. </AssociationSet>
  7013. <AssociationSet Name="FK__CmFacility__CmFacility" Association="Self.FK__CmFacility__CmFacility">
  7014. <End Role="CmFacility" EntitySet="CmFacility" />
  7015. <End Role="CmFacility1" EntitySet="CmFacility" />
  7016. </AssociationSet>
  7017. <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="Self.FK__CmFacilityFile__7720AD13">
  7018. <End Role="CmFacility" EntitySet="CmFacility" />
  7019. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  7020. </AssociationSet>
  7021. <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
  7022. <End Role="CmFile" EntitySet="CmFile" />
  7023. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  7024. </AssociationSet>
  7025. <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="Self.FK__CmFacilityManual__79FD19BE">
  7026. <End Role="CmFacility" EntitySet="CmFacility" />
  7027. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  7028. </AssociationSet>
  7029. <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
  7030. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7031. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  7032. </AssociationSet>
  7033. <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
  7034. <End Role="CmFileCategory" EntitySet="CmFileCategory" />
  7035. <End Role="CmFile" EntitySet="CmFile" />
  7036. </AssociationSet>
  7037. <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="Self.FK__CmFile__SiteId__2759D01A">
  7038. <End Role="CmSite" EntitySet="CmSite" />
  7039. <End Role="CmFile" EntitySet="CmFile" />
  7040. </AssociationSet>
  7041. <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
  7042. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7043. <End Role="CmFloor" EntitySet="CmFloor" />
  7044. </AssociationSet>
  7045. <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="Self.FK__CmHoliday__SiteI__0BB1B5A5">
  7046. <End Role="CmSite" EntitySet="CmSite" />
  7047. <End Role="CmHoliday" EntitySet="CmHoliday" />
  7048. </AssociationSet>
  7049. <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="Self.FK__CmHoliday__SiteI__0D99FE17">
  7050. <End Role="CmSite" EntitySet="CmSite" />
  7051. <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
  7052. </AssociationSet>
  7053. <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="Self.FK__CmHoliday__SiteI__10766AC2">
  7054. <End Role="CmSite" EntitySet="CmSite" />
  7055. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  7056. </AssociationSet>
  7057. <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="Self.FK__CmHoliday__SiteI__65AC084E">
  7058. <End Role="CmSite" EntitySet="CmSite" />
  7059. <End Role="CmHoliday" EntitySet="CmHoliday" />
  7060. </AssociationSet>
  7061. <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="Self.FK__CmHoliday__SiteI__66A02C87">
  7062. <End Role="CmSite" EntitySet="CmSite" />
  7063. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  7064. </AssociationSet>
  7065. <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
  7066. <End Role="CmFloor" EntitySet="CmFloor" />
  7067. <End Role="CmZone" EntitySet="CmZone" />
  7068. </AssociationSet>
  7069. <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="Self.FK__CmPositio__SiteI__6A70BD6B">
  7070. <End Role="CmSite" EntitySet="CmSite" />
  7071. <End Role="CmPosition" EntitySet="CmPosition" />
  7072. </AssociationSet>
  7073. <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="Self.FK__CmUserGro__SiteI__53D770D6">
  7074. <End Role="CmSite" EntitySet="CmSite" />
  7075. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7076. </AssociationSet>
  7077. <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
  7078. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7079. <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
  7080. </AssociationSet>
  7081. <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="Self.FK__CmUserPos__SiteI__44952D46">
  7082. <End Role="CmSite" EntitySet="CmSite" />
  7083. <End Role="CmPosition" EntitySet="CmPosition" />
  7084. </AssociationSet>
  7085. <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
  7086. <End Role="CmUser" EntitySet="CmUser" />
  7087. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  7088. </AssociationSet>
  7089. <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
  7090. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7091. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  7092. </AssociationSet>
  7093. <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
  7094. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7095. <End Role="CmZone" EntitySet="CmZone" />
  7096. </AssociationSet>
  7097. <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="Self.FK__FmsDrawin__SiteI__6B79F03D">
  7098. <End Role="CmSite" EntitySet="CmSite" />
  7099. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7100. </AssociationSet>
  7101. <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="Self.FK__FmsDrawin__SiteI__6C6E1476">
  7102. <End Role="CmSite" EntitySet="CmSite" />
  7103. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7104. </AssociationSet>
  7105. <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="Self.FK__FmsDrawin__SiteI__6D6238AF">
  7106. <End Role="CmSite" EntitySet="CmSite" />
  7107. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7108. </AssociationSet>
  7109. <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="Self.FK__FmsDrawin__SiteI__6F357288">
  7110. <End Role="CmSite" EntitySet="CmSite" />
  7111. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7112. </AssociationSet>
  7113. <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="Self.FK__FmsDrawin__SiteI__702996C1">
  7114. <End Role="CmSite" EntitySet="CmSite" />
  7115. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7116. </AssociationSet>
  7117. <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
  7118. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7119. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7120. </AssociationSet>
  7121. <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
  7122. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7123. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7124. </AssociationSet>
  7125. <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
  7126. <End Role="CmFile" EntitySet="CmFile" />
  7127. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7128. </AssociationSet>
  7129. <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
  7130. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7131. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7132. </AssociationSet>
  7133. <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
  7134. <End Role="CmUser" EntitySet="CmUser" />
  7135. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7136. </AssociationSet>
  7137. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  7138. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7139. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7140. </AssociationSet>
  7141. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  7142. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7143. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7144. </AssociationSet>
  7145. <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="Self.FK__FmsFacilityCodeClass__CmSite">
  7146. <End Role="CmSite" EntitySet="CmSite" />
  7147. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  7148. </AssociationSet>
  7149. <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  7150. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  7151. <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
  7152. </AssociationSet>
  7153. <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="Self.FK__FmsFacilityOpera__725BF7F6">
  7154. <End Role="CmFacility" EntitySet="CmFacility" />
  7155. <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
  7156. </AssociationSet>
  7157. <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
  7158. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7159. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7160. </AssociationSet>
  7161. <AssociationSet Name="FK__FmsLicense__CmSite" Association="Self.FK__FmsLicense__CmSite">
  7162. <End Role="CmSite" EntitySet="CmSite" />
  7163. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7164. </AssociationSet>
  7165. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  7166. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7167. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7168. </AssociationSet>
  7169. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  7170. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7171. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7172. </AssociationSet>
  7173. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  7174. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7175. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7176. </AssociationSet>
  7177. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
  7178. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7179. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  7180. </AssociationSet>
  7181. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="Self.FK__FmsMaterialCarriedForward__CmSite">
  7182. <End Role="CmSite" EntitySet="CmSite" />
  7183. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  7184. </AssociationSet>
  7185. <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="Self.FK__FmsMaterialCodeClass__CmSite">
  7186. <End Role="CmSite" EntitySet="CmSite" />
  7187. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7188. </AssociationSet>
  7189. <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  7190. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7191. <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
  7192. </AssociationSet>
  7193. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
  7194. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7195. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7196. </AssociationSet>
  7197. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="Self.FK__FmsMaterialCodeLocation__CmSite">
  7198. <End Role="CmSite" EntitySet="CmSite" />
  7199. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7200. </AssociationSet>
  7201. <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="Self.FK__FmsMaterialCodeType__CmSite">
  7202. <End Role="CmSite" EntitySet="CmSite" />
  7203. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  7204. </AssociationSet>
  7205. <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
  7206. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7207. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7208. </AssociationSet>
  7209. <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="Self.FK__FmsMaterialOrder__CmSite">
  7210. <End Role="CmSite" EntitySet="CmSite" />
  7211. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7212. </AssociationSet>
  7213. <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
  7214. <End Role="CmUser" EntitySet="CmUser" />
  7215. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7216. </AssociationSet>
  7217. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
  7218. <End Role="CmFile" EntitySet="CmFile" />
  7219. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7220. </AssociationSet>
  7221. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  7222. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7223. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7224. </AssociationSet>
  7225. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  7226. <End Role="CmUser" EntitySet="CmUser" />
  7227. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7228. </AssociationSet>
  7229. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  7230. <End Role="CmUser" EntitySet="CmUser" />
  7231. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7232. </AssociationSet>
  7233. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
  7234. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7235. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7236. </AssociationSet>
  7237. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="Self.FK__FmsMaterialPurchasingRequest__CmSite">
  7238. <End Role="CmSite" EntitySet="CmSite" />
  7239. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7240. </AssociationSet>
  7241. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  7242. <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
  7243. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7244. </AssociationSet>
  7245. <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
  7246. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7247. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7248. </AssociationSet>
  7249. <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="Self.FK__FmsMaterialStored__CmSite">
  7250. <End Role="CmSite" EntitySet="CmSite" />
  7251. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7252. </AssociationSet>
  7253. <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
  7254. <End Role="CmUser" EntitySet="CmUser" />
  7255. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7256. </AssociationSet>
  7257. <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  7258. <End Role="CmUser" EntitySet="CmUser" />
  7259. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7260. </AssociationSet>
  7261. <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="Self.FK__FmsMaterialTradeCompany__CmSite">
  7262. <End Role="CmSite" EntitySet="CmSite" />
  7263. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7264. </AssociationSet>
  7265. <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
  7266. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7267. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7268. </AssociationSet>
  7269. <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="Self.FK__FmsMaterialWarehouse__CmSite">
  7270. <End Role="CmSite" EntitySet="CmSite" />
  7271. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7272. </AssociationSet>
  7273. <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="Self.FK__FmsWorkCodeCauseClass__CmSite">
  7274. <End Role="CmSite" EntitySet="CmSite" />
  7275. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  7276. </AssociationSet>
  7277. <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="Self.FK__FmsWorkCodeCycleUnit__CmSite">
  7278. <End Role="CmSite" EntitySet="CmSite" />
  7279. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7280. </AssociationSet>
  7281. <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="Self.FK__FmsWorkCodeEmergency__CmSite">
  7282. <End Role="CmSite" EntitySet="CmSite" />
  7283. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  7284. </AssociationSet>
  7285. <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="Self.FK__FmsWorkCodeHolidayWorkType__CmSite">
  7286. <End Role="CmSite" EntitySet="CmSite" />
  7287. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  7288. </AssociationSet>
  7289. <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="Self.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  7290. <End Role="CmSite" EntitySet="CmSite" />
  7291. <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
  7292. </AssociationSet>
  7293. <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
  7294. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7295. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7296. </AssociationSet>
  7297. <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="Self.FK__FmsWorkOrder__CmSite">
  7298. <End Role="CmSite" EntitySet="CmSite" />
  7299. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7300. </AssociationSet>
  7301. <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
  7302. <End Role="CmUser" EntitySet="CmUser" />
  7303. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7304. </AssociationSet>
  7305. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
  7306. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  7307. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7308. </AssociationSet>
  7309. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
  7310. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7311. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7312. </AssociationSet>
  7313. <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
  7314. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7315. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  7316. </AssociationSet>
  7317. <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
  7318. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7319. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7320. </AssociationSet>
  7321. <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="Self.FK__FmsWorkRequest__CmSite">
  7322. <End Role="CmSite" EntitySet="CmSite" />
  7323. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7324. </AssociationSet>
  7325. <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
  7326. <End Role="CmUser" EntitySet="CmUser" />
  7327. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7328. </AssociationSet>
  7329. <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  7330. <End Role="CmUser" EntitySet="CmUser" />
  7331. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7332. </AssociationSet>
  7333. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
  7334. <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
  7335. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7336. </AssociationSet>
  7337. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
  7338. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7339. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7340. </AssociationSet>
  7341. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="Self.FK__FmsWorkRequest__FmsWorkSchedule">
  7342. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7343. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7344. </AssociationSet>
  7345. <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
  7346. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7347. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  7348. </AssociationSet>
  7349. <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
  7350. <End Role="CmUser" EntitySet="CmUser" />
  7351. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7352. </AssociationSet>
  7353. <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  7354. <End Role="CmUser" EntitySet="CmUser" />
  7355. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7356. </AssociationSet>
  7357. <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
  7358. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  7359. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7360. </AssociationSet>
  7361. <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
  7362. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7363. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7364. </AssociationSet>
  7365. <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
  7366. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7367. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7368. </AssociationSet>
  7369. <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="Self.FK__FmsWorkResultCheckItem__CmFacility">
  7370. <End Role="CmFacility" EntitySet="CmFacility" />
  7371. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7372. </AssociationSet>
  7373. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  7374. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7375. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7376. </AssociationSet>
  7377. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
  7378. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7379. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7380. </AssociationSet>
  7381. <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
  7382. <End Role="CmFile" EntitySet="CmFile" />
  7383. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  7384. </AssociationSet>
  7385. <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
  7386. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7387. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  7388. </AssociationSet>
  7389. <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
  7390. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7391. <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
  7392. </AssociationSet>
  7393. <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="Self.FK__FmsWorkResultToFacility__CmFacility">
  7394. <End Role="CmFacility" EntitySet="CmFacility" />
  7395. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  7396. </AssociationSet>
  7397. <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
  7398. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7399. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  7400. </AssociationSet>
  7401. <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="Self.FK__FmsWorkSchedule__CmBusinessField">
  7402. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7403. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7404. </AssociationSet>
  7405. <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="Self.FK__FmsWorkSchedule__CmUser">
  7406. <End Role="CmUser" EntitySet="CmUser" />
  7407. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7408. </AssociationSet>
  7409. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  7410. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7411. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7412. </AssociationSet>
  7413. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  7414. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  7415. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7416. </AssociationSet>
  7417. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  7418. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7419. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7420. </AssociationSet>
  7421. <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  7422. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7423. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  7424. </AssociationSet>
  7425. <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="Self.FK_BemsAlarmLog_BemsAlarmSetting">
  7426. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7427. <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
  7428. </AssociationSet>
  7429. <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="Self.FK_BemsAlarmSetting_BemsFacilityType">
  7430. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7431. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7432. </AssociationSet>
  7433. <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="Self.FK_BemsAlarmSetting_CmFacility">
  7434. <End Role="CmFacility" EntitySet="CmFacility" />
  7435. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7436. </AssociationSet>
  7437. <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="Self.FK_BemsAlarmSetting_CmSite1">
  7438. <End Role="CmSite" EntitySet="CmSite" />
  7439. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7440. </AssociationSet>
  7441. <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="Self.FK_BemsChartInfo_BemsFacilityType">
  7442. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7443. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  7444. </AssociationSet>
  7445. <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="Self.FK_BemsChartInfo_CmSite">
  7446. <End Role="CmSite" EntitySet="CmSite" />
  7447. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  7448. </AssociationSet>
  7449. <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
  7450. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7451. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  7452. </AssociationSet>
  7453. <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
  7454. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7455. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  7456. </AssociationSet>
  7457. <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="Self.FK_BemsEnergyCost_CmFacility">
  7458. <End Role="CmFacility" EntitySet="CmFacility" />
  7459. <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
  7460. </AssociationSet>
  7461. <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="Self.FK_BemsEnergyDailyRegression_CmSite">
  7462. <End Role="CmSite" EntitySet="CmSite" />
  7463. <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
  7464. </AssociationSet>
  7465. <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="Self.FK_BemsFormulaParameter_CmFacility">
  7466. <End Role="CmFacility" EntitySet="CmFacility" />
  7467. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  7468. </AssociationSet>
  7469. <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
  7470. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7471. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7472. </AssociationSet>
  7473. <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="Self.FK_BemsMonitoringPoint_CmFacility">
  7474. <End Role="CmFacility" EntitySet="CmFacility" />
  7475. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7476. </AssociationSet>
  7477. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="Self.FK_BemsMonitoringPointConfig_BemsFacilityType1">
  7478. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7479. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  7480. </AssociationSet>
  7481. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="Self.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  7482. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7483. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  7484. </AssociationSet>
  7485. <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="Self.FK_BemsPeakFacility_CmFacility">
  7486. <End Role="CmFacility" EntitySet="CmFacility" />
  7487. <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
  7488. </AssociationSet>
  7489. <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="Self.FK_BemsPeakHIstory_CmSite">
  7490. <End Role="CmSite" EntitySet="CmSite" />
  7491. <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
  7492. </AssociationSet>
  7493. <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="Self.FK_BemsPeakInfo_CmSite">
  7494. <End Role="CmSite" EntitySet="CmSite" />
  7495. <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
  7496. </AssociationSet>
  7497. <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="Self.FK_BemsPeopleIncrease_CmSite">
  7498. <End Role="CmSite" EntitySet="CmSite" />
  7499. <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
  7500. </AssociationSet>
  7501. <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="Self.FK_BemsPriceCode_BemsFuelType">
  7502. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7503. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7504. </AssociationSet>
  7505. <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="Self.FK_BemsPriceFormula_BemsFormula">
  7506. <End Role="BemsFormula" EntitySet="BemsFormula" />
  7507. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  7508. </AssociationSet>
  7509. <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="Self.FK_BemsPriceFormula_BemsPriceType">
  7510. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7511. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  7512. </AssociationSet>
  7513. <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="Self.FK_BemsPriceMeta_BemsPriceType">
  7514. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7515. <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
  7516. </AssociationSet>
  7517. <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="Self.FK_BemsPriceType_BemsFuelType1">
  7518. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7519. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7520. </AssociationSet>
  7521. <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="Self.FK_BemsRentalRate_CmSite">
  7522. <End Role="CmSite" EntitySet="CmSite" />
  7523. <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
  7524. </AssociationSet>
  7525. <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="Self.FK_BemsSitePrice_BemsFuelType">
  7526. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7527. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7528. </AssociationSet>
  7529. <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="Self.FK_BemsSitePrice_BemsPriceCode">
  7530. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7531. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7532. </AssociationSet>
  7533. <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="Self.FK_BemsSitePrice_BemsPriceType">
  7534. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7535. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7536. </AssociationSet>
  7537. <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="Self.FK_BemsSitePrice_CmSite1">
  7538. <End Role="CmSite" EntitySet="CmSite" />
  7539. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7540. </AssociationSet>
  7541. <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="Self.FK_BemsSitePriceHistory_BemsFuelType">
  7542. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7543. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7544. </AssociationSet>
  7545. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="Self.FK_BemsSitePriceHistory_BemsPriceCode">
  7546. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7547. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7548. </AssociationSet>
  7549. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="Self.FK_BemsSitePriceHistory_BemsPriceType">
  7550. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7551. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7552. </AssociationSet>
  7553. <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="Self.FK_BemsSitePriceHistory_CmSite">
  7554. <End Role="CmSite" EntitySet="CmSite" />
  7555. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7556. </AssociationSet>
  7557. <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
  7558. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7559. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7560. </AssociationSet>
  7561. <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
  7562. <End Role="CmFile" EntitySet="CmFile" />
  7563. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7564. </AssociationSet>
  7565. <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
  7566. <End Role="CmUser" EntitySet="CmUser" />
  7567. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7568. </AssociationSet>
  7569. <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="Self.FK_CmFacilityTempSet_CmFacility">
  7570. <End Role="CmFacility" EntitySet="CmFacility" />
  7571. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  7572. </AssociationSet>
  7573. <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="Self.FK_CmFacilityTempSet_CmSite">
  7574. <End Role="CmSite" EntitySet="CmSite" />
  7575. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  7576. </AssociationSet>
  7577. <AssociationSet Name="FK_CmMenu_CmSite" Association="Self.FK_CmMenu_CmSite">
  7578. <End Role="CmSite" EntitySet="CmSite" />
  7579. <End Role="CmMenu" EntitySet="CmMenu" />
  7580. </AssociationSet>
  7581. <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="Self.FK_CmPartnerType_CmPartner">
  7582. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  7583. <End Role="CmPartner" EntitySet="CmPartner" />
  7584. </AssociationSet>
  7585. <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="Self.FK_CmPatrolCourse_CmSite">
  7586. <End Role="CmSite" EntitySet="CmSite" />
  7587. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7588. </AssociationSet>
  7589. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="Self.FK_CmPatrolCoursePos_CmPatrolCourse">
  7590. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7591. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  7592. </AssociationSet>
  7593. <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="Self.FK_CmPatrolCoursePos_CmSite">
  7594. <End Role="CmSite" EntitySet="CmSite" />
  7595. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  7596. </AssociationSet>
  7597. <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="Self.FK_CmPatrolGroup_CmSite">
  7598. <End Role="CmSite" EntitySet="CmSite" />
  7599. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7600. </AssociationSet>
  7601. <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="Self.FK_CmPatrolGroupUser_CmPatrolGroup">
  7602. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7603. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  7604. </AssociationSet>
  7605. <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="Self.FK_CmPatrolGroupUser_CmUser">
  7606. <End Role="CmUser" EntitySet="CmUser" />
  7607. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  7608. </AssociationSet>
  7609. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="Self.FK_CmPatrolHistory_CmPatrolSchedule">
  7610. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7611. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7612. </AssociationSet>
  7613. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="Self.FK_CmPatrolHistory_CmPatrolType">
  7614. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7615. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7616. </AssociationSet>
  7617. <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="Self.FK_CmPatrolHistory_CmSite">
  7618. <End Role="CmSite" EntitySet="CmSite" />
  7619. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7620. </AssociationSet>
  7621. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="Self.FK_CmPatrolHistoryPos_CmPatrolPos">
  7622. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7623. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7624. </AssociationSet>
  7625. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="Self.FK_CmPatrolHistoryPos_CmPatrolType">
  7626. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7627. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7628. </AssociationSet>
  7629. <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="Self.FK_CmPatrolHistoryPos_CmSite">
  7630. <End Role="CmSite" EntitySet="CmSite" />
  7631. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7632. </AssociationSet>
  7633. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="Self.FK_CmPatrolPlan_CmPatrolCourse">
  7634. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7635. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7636. </AssociationSet>
  7637. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="Self.FK_CmPatrolPlan_CmPatrolGroup">
  7638. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7639. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7640. </AssociationSet>
  7641. <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="Self.FK_CmPatrolPlan_CmSite">
  7642. <End Role="CmSite" EntitySet="CmSite" />
  7643. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7644. </AssociationSet>
  7645. <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="Self.FK_CmPatrolPos_CmBuilding">
  7646. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7647. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7648. </AssociationSet>
  7649. <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="Self.FK_CmPatrolPos_CmFloor">
  7650. <End Role="CmFloor" EntitySet="CmFloor" />
  7651. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7652. </AssociationSet>
  7653. <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="Self.FK_CmPatrolPos_CmSite">
  7654. <End Role="CmSite" EntitySet="CmSite" />
  7655. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7656. </AssociationSet>
  7657. <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="Self.FK_CmPatrolSchedule_CmPatrolPlan">
  7658. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7659. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7660. </AssociationSet>
  7661. <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="Self.FK_CmPatrolSchedule_CmSite">
  7662. <End Role="CmSite" EntitySet="CmSite" />
  7663. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7664. </AssociationSet>
  7665. <AssociationSet Name="FK_CmPatrolType_CmSite" Association="Self.FK_CmPatrolType_CmSite">
  7666. <End Role="CmSite" EntitySet="CmSite" />
  7667. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7668. </AssociationSet>
  7669. <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
  7670. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7671. <End Role="CmUser" EntitySet="CmUser" />
  7672. </AssociationSet>
  7673. <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
  7674. <End Role="CmCompany" EntitySet="CmCompany" />
  7675. <End Role="CmUser" EntitySet="CmUser" />
  7676. </AssociationSet>
  7677. <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
  7678. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7679. <End Role="CmUser" EntitySet="CmUser" />
  7680. </AssociationSet>
  7681. <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
  7682. <End Role="CmPosition" EntitySet="CmPosition" />
  7683. <End Role="CmUser" EntitySet="CmUser" />
  7684. </AssociationSet>
  7685. <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
  7686. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7687. <End Role="CmUser" EntitySet="CmUser" />
  7688. </AssociationSet>
  7689. <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
  7690. <End Role="CmUser" EntitySet="CmUser" />
  7691. <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
  7692. </AssociationSet>
  7693. <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
  7694. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7695. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7696. </AssociationSet>
  7697. <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
  7698. <End Role="CmFloor" EntitySet="CmFloor" />
  7699. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7700. </AssociationSet>
  7701. <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="Self.FK_CmZoneTempHumiSet_CmSite">
  7702. <End Role="CmSite" EntitySet="CmSite" />
  7703. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7704. </AssociationSet>
  7705. <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
  7706. <End Role="CmZone" EntitySet="CmZone" />
  7707. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7708. </AssociationSet>
  7709. <AssociationSet Name="FK_FmsAccident_CmCompany" Association="Self.FK_FmsAccident_CmCompany">
  7710. <End Role="CmCompany" EntitySet="CmCompany" />
  7711. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7712. </AssociationSet>
  7713. <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
  7714. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7715. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7716. </AssociationSet>
  7717. <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
  7718. <End Role="CmFile" EntitySet="CmFile" />
  7719. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7720. </AssociationSet>
  7721. <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
  7722. <End Role="CmFile" EntitySet="CmFile" />
  7723. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7724. </AssociationSet>
  7725. <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
  7726. <End Role="CmFile" EntitySet="CmFile" />
  7727. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7728. </AssociationSet>
  7729. <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
  7730. <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
  7731. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7732. </AssociationSet>
  7733. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="Self.FK_FmsBudgetDetail_FmsBudget">
  7734. <End Role="FmsBudget" EntitySet="FmsBudget" />
  7735. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7736. </AssociationSet>
  7737. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="Self.FK_FmsBudgetDetail_FmsBudgetCodeClass">
  7738. <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
  7739. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7740. </AssociationSet>
  7741. <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="Self.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  7742. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7743. <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
  7744. </AssociationSet>
  7745. <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
  7746. <End Role="CmFile" EntitySet="CmFile" />
  7747. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7748. </AssociationSet>
  7749. <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
  7750. <End Role="CmFile" EntitySet="CmFile" />
  7751. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7752. </AssociationSet>
  7753. <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
  7754. <End Role="CmFile" EntitySet="CmFile" />
  7755. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7756. </AssociationSet>
  7757. <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="Self.FK_FmsConstruction_CmPartner">
  7758. <End Role="CmPartner" EntitySet="CmPartner" />
  7759. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7760. </AssociationSet>
  7761. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
  7762. <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
  7763. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7764. </AssociationSet>
  7765. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
  7766. <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
  7767. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7768. </AssociationSet>
  7769. <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
  7770. <End Role="CmUser" EntitySet="CmUser" />
  7771. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  7772. </AssociationSet>
  7773. <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
  7774. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7775. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  7776. </AssociationSet>
  7777. <AssociationSet Name="FK_FmsContract_CmPartner" Association="Self.FK_FmsContract_CmPartner">
  7778. <End Role="CmPartner" EntitySet="CmPartner" />
  7779. <End Role="FmsContract" EntitySet="FmsContract" />
  7780. </AssociationSet>
  7781. <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="Self.FK_FmsContract_CmPartnerType">
  7782. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  7783. <End Role="FmsContract" EntitySet="FmsContract" />
  7784. </AssociationSet>
  7785. <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="Self.FK_FmsContract_FmsContractClass">
  7786. <End Role="FmsContractClass" EntitySet="FmsContractClass" />
  7787. <End Role="FmsContract" EntitySet="FmsContract" />
  7788. </AssociationSet>
  7789. <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="Self.FK_FmsContract_FmsContractMethod">
  7790. <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
  7791. <End Role="FmsContract" EntitySet="FmsContract" />
  7792. </AssociationSet>
  7793. <AssociationSet Name="FK_FmsContract_FmsContractType" Association="Self.FK_FmsContract_FmsContractType">
  7794. <End Role="FmsContractType" EntitySet="FmsContractType" />
  7795. <End Role="FmsContract" EntitySet="FmsContract" />
  7796. </AssociationSet>
  7797. <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="Self.FK_FmsContract_FmsPaymentType">
  7798. <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
  7799. <End Role="FmsContract" EntitySet="FmsContract" />
  7800. </AssociationSet>
  7801. <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="Self.FK_FmsDailyCheckReport_CmUser">
  7802. <End Role="CmUser" EntitySet="CmUser" />
  7803. <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
  7804. </AssociationSet>
  7805. <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="Self.FK_FmsDailyReport_CmBusinessField">
  7806. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7807. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  7808. </AssociationSet>
  7809. <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="Self.FK_FmsDailyReport_CmUser">
  7810. <End Role="CmUser" EntitySet="CmUser" />
  7811. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  7812. </AssociationSet>
  7813. <AssociationSet Name="FK_FmsEquipment_CmUser" Association="Self.FK_FmsEquipment_CmUser">
  7814. <End Role="CmUser" EntitySet="CmUser" />
  7815. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7816. </AssociationSet>
  7817. <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="Self.FK_FmsEquipment_FmsEquipmentCodeType">
  7818. <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
  7819. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7820. </AssociationSet>
  7821. <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="Self.FK_FmsEquipment_FmsMaterialWarehouse">
  7822. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7823. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7824. </AssociationSet>
  7825. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="Self.FK_FmsEquipmentHistory_FmsEquipment">
  7826. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7827. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7828. </AssociationSet>
  7829. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  7830. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  7831. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7832. </AssociationSet>
  7833. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  7834. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7835. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7836. </AssociationSet>
  7837. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="Self.FK_FmsEquipmentRentInfo_CmUser">
  7838. <End Role="CmUser" EntitySet="CmUser" />
  7839. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7840. </AssociationSet>
  7841. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="Self.FK_FmsEquipmentRentInfo_CmUser1">
  7842. <End Role="CmUser" EntitySet="CmUser" />
  7843. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7844. </AssociationSet>
  7845. <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  7846. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  7847. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7848. </AssociationSet>
  7849. <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="Self.FK_FmsFacilityOperationReport_CmUser">
  7850. <End Role="CmUser" EntitySet="CmUser" />
  7851. <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
  7852. </AssociationSet>
  7853. <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
  7854. <End Role="FmsManualType" EntitySet="FmsManualType" />
  7855. <End Role="FmsManual" EntitySet="FmsManual" />
  7856. </AssociationSet>
  7857. <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
  7858. <End Role="CmFile" EntitySet="CmFile" />
  7859. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7860. </AssociationSet>
  7861. <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
  7862. <End Role="CmUser" EntitySet="CmUser" />
  7863. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7864. </AssociationSet>
  7865. <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
  7866. <End Role="FmsManual" EntitySet="FmsManual" />
  7867. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7868. </AssociationSet>
  7869. <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="Self.FK_FmsMaterial_CmBusinessField">
  7870. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7871. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7872. </AssociationSet>
  7873. <AssociationSet Name="FK_FmsMaterial_CmFile" Association="Self.FK_FmsMaterial_CmFile">
  7874. <End Role="CmFile" EntitySet="CmFile" />
  7875. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7876. </AssociationSet>
  7877. <AssociationSet Name="FK_FmsMaterial_CmSite" Association="Self.FK_FmsMaterial_CmSite">
  7878. <End Role="CmSite" EntitySet="CmSite" />
  7879. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7880. </AssociationSet>
  7881. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="Self.FK_FmsMaterial_FmsMaterialCodeLocation">
  7882. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7883. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7884. </AssociationSet>
  7885. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="Self.FK_FmsMaterial_FmsMaterialCodeType">
  7886. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  7887. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7888. </AssociationSet>
  7889. <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="Self.FK_FmsMaterial_FmsMaterialTradeCompany">
  7890. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7891. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7892. </AssociationSet>
  7893. <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="Self.FK_FmsMaterial_FmsMaterialWarehouse">
  7894. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7895. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7896. </AssociationSet>
  7897. <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  7898. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7899. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7900. </AssociationSet>
  7901. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  7902. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7903. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  7904. </AssociationSet>
  7905. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  7906. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7907. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  7908. </AssociationSet>
  7909. <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  7910. <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
  7911. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7912. </AssociationSet>
  7913. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  7914. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7915. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  7916. </AssociationSet>
  7917. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  7918. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7919. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  7920. </AssociationSet>
  7921. <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="Self.FK_FmsMaterialRelease_CmBusinessField">
  7922. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7923. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7924. </AssociationSet>
  7925. <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="Self.FK_FmsMaterialRelease_CmSite">
  7926. <End Role="CmSite" EntitySet="CmSite" />
  7927. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7928. </AssociationSet>
  7929. <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="Self.FK_FmsMaterialRelease_CmUser">
  7930. <End Role="CmUser" EntitySet="CmUser" />
  7931. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7932. </AssociationSet>
  7933. <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="Self.FK_FmsMaterialRelease_CmUser1">
  7934. <End Role="CmUser" EntitySet="CmUser" />
  7935. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7936. </AssociationSet>
  7937. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="Self.FK_FmsMaterialRelease_FmsMaterial">
  7938. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7939. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7940. </AssociationSet>
  7941. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  7942. <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
  7943. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7944. </AssociationSet>
  7945. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  7946. <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
  7947. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7948. </AssociationSet>
  7949. <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="Self.FK_FmsMaterialRelease_FmsWorkResult">
  7950. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7951. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7952. </AssociationSet>
  7953. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="Self.FK_FmsMaterialStored_FmsMaterial">
  7954. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7955. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7956. </AssociationSet>
  7957. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  7958. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7959. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7960. </AssociationSet>
  7961. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
  7962. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7963. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7964. </AssociationSet>
  7965. <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="Self.FK_FmsMonthlyReport_CmUser">
  7966. <End Role="CmUser" EntitySet="CmUser" />
  7967. <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
  7968. </AssociationSet>
  7969. <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="Self.FK_FmsReport_CmBusinessField">
  7970. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7971. <End Role="FmsReport" EntitySet="FmsReport" />
  7972. </AssociationSet>
  7973. <AssociationSet Name="FK_FmsReport_CmFile" Association="Self.FK_FmsReport_CmFile">
  7974. <End Role="CmFile" EntitySet="CmFile" />
  7975. <End Role="FmsReport" EntitySet="FmsReport" />
  7976. </AssociationSet>
  7977. <AssociationSet Name="FK_FmsReport_CmSite" Association="Self.FK_FmsReport_CmSite">
  7978. <End Role="CmSite" EntitySet="CmSite" />
  7979. <End Role="FmsReport" EntitySet="FmsReport" />
  7980. </AssociationSet>
  7981. <AssociationSet Name="FK_FmsReport_CmUser" Association="Self.FK_FmsReport_CmUser">
  7982. <End Role="CmUser" EntitySet="CmUser" />
  7983. <End Role="FmsReport" EntitySet="FmsReport" />
  7984. </AssociationSet>
  7985. <AssociationSet Name="FK_FmsReport_CmUser1" Association="Self.FK_FmsReport_CmUser1">
  7986. <End Role="CmUser" EntitySet="CmUser" />
  7987. <End Role="FmsReport" EntitySet="FmsReport" />
  7988. </AssociationSet>
  7989. <AssociationSet Name="FK_FmsReport_CmUser2" Association="Self.FK_FmsReport_CmUser2">
  7990. <End Role="CmUser" EntitySet="CmUser" />
  7991. <End Role="FmsReport" EntitySet="FmsReport" />
  7992. </AssociationSet>
  7993. <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="Self.FK_FmsWorkOrderToFacility_CmFacility">
  7994. <End Role="CmFacility" EntitySet="CmFacility" />
  7995. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  7996. </AssociationSet>
  7997. <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="Self.FK_FmsWorkRequest_CmPartner">
  7998. <End Role="CmPartner" EntitySet="CmPartner" />
  7999. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  8000. </AssociationSet>
  8001. <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="Self.FK_FmsWorkRequestToFacility_CmFacility">
  8002. <End Role="CmFacility" EntitySet="CmFacility" />
  8003. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  8004. </AssociationSet>
  8005. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  8006. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  8007. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  8008. </AssociationSet>
  8009. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  8010. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  8011. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  8012. </AssociationSet>
  8013. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  8014. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  8015. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  8016. </AssociationSet>
  8017. <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="Self.FK_FmsWorkSchedule_CmPartner">
  8018. <End Role="CmPartner" EntitySet="CmPartner" />
  8019. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  8020. </AssociationSet>
  8021. <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="Self.FK_FmsWorkScheduleToFacility_CmFacility">
  8022. <End Role="CmFacility" EntitySet="CmFacility" />
  8023. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  8024. </AssociationSet>
  8025. </EntityContainer>
  8026. </Schema>