b19942acf10230ffefb93fbb4c7ed8126eece791.svn-base 374 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939
  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="BemsControlAHUTempConfig">
  135. <Key>
  136. <PropertyRef Name="SiteId" />
  137. <PropertyRef Name="FacilityTypeId" />
  138. <PropertyRef Name="FacilityCode" />
  139. </Key>
  140. <Property Name="SiteId" Type="int" Nullable="false" />
  141. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  142. <Property Name="FacilityCode" Type="int" Nullable="false" />
  143. <Property Name="MaxTemperature" Type="float" Nullable="false" />
  144. <Property Name="MinTemperature" Type="float" Nullable="false" />
  145. </EntityType>
  146. <EntityType Name="BemsControlPointHistory">
  147. <Key>
  148. <PropertyRef Name="SiteId" />
  149. <PropertyRef Name="FacilityCode" />
  150. <PropertyRef Name="PropertyId" />
  151. <PropertyRef Name="CreateDateTime" />
  152. </Key>
  153. <Property Name="SiteId" Type="int" Nullable="false" />
  154. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  155. <Property Name="FacilityCode" Type="int" Nullable="false" />
  156. <Property Name="PropertyId" Type="int" Nullable="false" />
  157. <Property Name="CreateDateTime" Type="datetime" Nullable="false" />
  158. <Property Name="ControlValue" Type="float" Nullable="false" />
  159. <Property Name="WriteServiceName" Type="nvarchar" MaxLength="64" />
  160. <Property Name="ActionDateTime" Type="datetime" />
  161. </EntityType>
  162. <EntityType Name="BemsEnergyConfigPercentMonth">
  163. <Key>
  164. <PropertyRef Name="SiteId" />
  165. <PropertyRef Name="Year" />
  166. <PropertyRef Name="Month" />
  167. </Key>
  168. <Property Name="SiteId" Type="int" Nullable="false" />
  169. <Property Name="Year" Type="int" Nullable="false" />
  170. <Property Name="Month" Type="int" Nullable="false" />
  171. <Property Name="Electricity" Type="float" />
  172. <Property Name="Gas" Type="float" />
  173. <Property Name="Water" Type="float" />
  174. </EntityType>
  175. <EntityType Name="BemsEnergyConfigPercentWeek">
  176. <Key>
  177. <PropertyRef Name="SiteId" />
  178. <PropertyRef Name="Year" />
  179. <PropertyRef Name="Week" />
  180. </Key>
  181. <Property Name="SiteId" Type="int" Nullable="false" />
  182. <Property Name="Year" Type="int" Nullable="false" />
  183. <Property Name="Week" Type="int" Nullable="false" />
  184. <Property Name="Electricity" Type="float" />
  185. <Property Name="Gas" Type="float" />
  186. <Property Name="Water" Type="float" />
  187. </EntityType>
  188. <EntityType Name="BemsEnergyCost">
  189. <Key>
  190. <PropertyRef Name="SiteId" />
  191. <PropertyRef Name="FacilityCode" />
  192. </Key>
  193. <Property Name="SiteId" Type="int" Nullable="false" />
  194. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  195. <Property Name="FacilityCode" Type="int" Nullable="false" />
  196. <Property Name="PowerConsumption1" Type="float" />
  197. <Property Name="PowerConsumption2" Type="float" />
  198. <Property Name="GasConsumption" Type="float" />
  199. <Property Name="GasHeatQuantity" Type="float" />
  200. <Property Name="PowerPriceTypeId" Type="int" />
  201. <Property Name="GasPriceTypeId" Type="int" />
  202. <Property Name="IsUse" Type="bit" />
  203. </EntityType>
  204. <EntityType Name="BemsEnergyDaily">
  205. <Key>
  206. <PropertyRef Name="SiteId" />
  207. <PropertyRef Name="BuildingId" />
  208. <PropertyRef Name="ServiceTypeId" />
  209. <PropertyRef Name="FuelTypeId" />
  210. <PropertyRef Name="CreatedDate" />
  211. </Key>
  212. <Property Name="SiteId" Type="int" Nullable="false" />
  213. <Property Name="BuildingId" Type="int" Nullable="false" />
  214. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  215. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  216. <Property Name="CreatedDate" Type="date" Nullable="false" />
  217. <Property Name="Prediction" Type="float" />
  218. <Property Name="Measurement" Type="float" />
  219. <Property Name="Goal" Type="float" />
  220. <Property Name="Prediction_Regression" Type="float" />
  221. <Property Name="MeanT" Type="float" />
  222. <Property Name="HDD" Type="float" />
  223. <Property Name="CDD" Type="float" />
  224. </EntityType>
  225. <EntityType Name="BemsEnergyDailyRegression">
  226. <Key>
  227. <PropertyRef Name="SiteId" />
  228. </Key>
  229. <Property Name="SiteId" Type="int" Nullable="false" />
  230. <Property Name="Weekday_Power" Type="nvarchar" MaxLength="50" />
  231. <Property Name="Weekday_Power_Temp" Type="nvarchar" MaxLength="50" />
  232. <Property Name="Weekday_Gas" Type="nvarchar" MaxLength="50" />
  233. <Property Name="Weekday_Gas_Temp" Type="nvarchar" MaxLength="50" />
  234. <Property Name="Weekday_Water" Type="nvarchar" MaxLength="50" />
  235. <Property Name="Weekday_Water_Temp" Type="nvarchar" MaxLength="50" />
  236. <Property Name="Holiday_Power" Type="nvarchar" MaxLength="50" />
  237. <Property Name="Holiday_Power_Temp" Type="nvarchar" MaxLength="50" />
  238. <Property Name="Holiday_Gas" Type="nvarchar" MaxLength="50" />
  239. <Property Name="Holiday_Gas_Temp" Type="nvarchar" MaxLength="50" />
  240. <Property Name="Holiday_Water" Type="nvarchar" MaxLength="50" />
  241. <Property Name="Holiday_Water_Temp" Type="nvarchar" MaxLength="50" />
  242. <Property Name="IsRegression" Type="bit" />
  243. </EntityType>
  244. <EntityType Name="BemsFacilityType">
  245. <Key>
  246. <PropertyRef Name="FacilityTypeId" />
  247. </Key>
  248. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  249. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  250. </EntityType>
  251. <EntityType Name="BemsFactorCo2">
  252. <Key>
  253. <PropertyRef Name="FuelTypeId" />
  254. </Key>
  255. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  256. <Property Name="Factor" Type="float" Nullable="false" />
  257. </EntityType>
  258. <EntityType Name="BemsFactorToe">
  259. <Key>
  260. <PropertyRef Name="FuelTypeId" />
  261. </Key>
  262. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  263. <Property Name="TotalFactor" Type="float" Nullable="false" />
  264. <Property Name="PureFactor" Type="float" Nullable="false" />
  265. <Property Name="kcal" Type="float" />
  266. </EntityType>
  267. <EntityType Name="BemsFloorPlan">
  268. <Key>
  269. <PropertyRef Name="SiteId" />
  270. <PropertyRef Name="Name" />
  271. </Key>
  272. <Property Name="SiteId" Type="int" Nullable="false" />
  273. <Property Name="FloorId" Type="int" Nullable="false" />
  274. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  275. <Property Name="ImageFileId" Type="int" />
  276. </EntityType>
  277. <EntityType Name="BemsFloorStatus">
  278. <Key>
  279. <PropertyRef Name="SiteId" />
  280. <PropertyRef Name="FloorId" />
  281. <PropertyRef Name="FloorName" />
  282. <PropertyRef Name="ImageFileId" />
  283. <PropertyRef Name="Xvalue" />
  284. <PropertyRef Name="Yvalue" />
  285. <PropertyRef Name="PropertyId" />
  286. </Key>
  287. <Property Name="SiteId" Type="int" Nullable="false" />
  288. <Property Name="FloorId" Type="int" Nullable="false" />
  289. <Property Name="FloorName" Type="nvarchar" MaxLength="50" Nullable="false" />
  290. <Property Name="ImageFileId" Type="int" Nullable="false" />
  291. <Property Name="Xvalue" Type="int" Nullable="false" />
  292. <Property Name="Yvalue" Type="int" Nullable="false" />
  293. <Property Name="ZoneId" Type="int" />
  294. <Property Name="ServiceTypeId" Type="int" />
  295. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  296. <Property Name="FacilityCode" Type="int" Nullable="false" />
  297. <Property Name="PropertyId" Type="int" Nullable="false" />
  298. <Property Name="FacilityName" Type="nvarchar" MaxLength="64" />
  299. </EntityType>
  300. <EntityType Name="BemsFormula">
  301. <Key>
  302. <PropertyRef Name="SiteId" />
  303. <PropertyRef Name="FacilityTypeId" />
  304. <PropertyRef Name="FacilityCode" />
  305. <PropertyRef Name="FormulaId" />
  306. </Key>
  307. <Property Name="SiteId" Type="int" Nullable="false" />
  308. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  309. <Property Name="FacilityCode" Type="int" Nullable="false" />
  310. <Property Name="FormulaId" Type="int" Nullable="false" />
  311. <Property Name="Formula" Type="nvarchar" MaxLength="120" Nullable="false" />
  312. </EntityType>
  313. <EntityType Name="BemsFormulaBase">
  314. <Key>
  315. <PropertyRef Name="FacilityTypeId" />
  316. <PropertyRef Name="FormulaId" />
  317. </Key>
  318. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  319. <Property Name="FormulaId" Type="int" Nullable="false" />
  320. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  321. </EntityType>
  322. <EntityType Name="BemsFormulaParameter">
  323. <Key>
  324. <PropertyRef Name="SiteId" />
  325. <PropertyRef Name="FacilityCode" />
  326. <PropertyRef Name="FormulaId" />
  327. <PropertyRef Name="ParameterId" />
  328. </Key>
  329. <Property Name="SiteId" Type="int" Nullable="false" />
  330. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  331. <Property Name="FacilityCode" Type="int" Nullable="false" />
  332. <Property Name="FormulaId" Type="int" Nullable="false" />
  333. <Property Name="ParameterId" Type="nchar" MaxLength="1" Nullable="false" />
  334. <Property Name="ParameterFacilityCode" Type="int" Nullable="false" />
  335. <Property Name="ParameterPropertyId" Type="int" Nullable="false" />
  336. </EntityType>
  337. <EntityType Name="BemsFormulaTable">
  338. <Key>
  339. <PropertyRef Name="TableId" />
  340. </Key>
  341. <Property Name="TableId" Type="int" Nullable="false" />
  342. <Property Name="FunctionName" Type="nvarchar" MaxLength="20" Nullable="false" />
  343. <Property Name="Description" Type="nvarchar" MaxLength="80" Nullable="false" />
  344. </EntityType>
  345. <EntityType Name="BemsFormulaTableValue">
  346. <Key>
  347. <PropertyRef Name="TableId" />
  348. <PropertyRef Name="XValue" />
  349. </Key>
  350. <Property Name="TableId" Type="int" Nullable="false" />
  351. <Property Name="XValue" Type="float" Nullable="false" />
  352. <Property Name="YValue" Type="float" Nullable="false" />
  353. </EntityType>
  354. <EntityType Name="BemsFuelType">
  355. <Key>
  356. <PropertyRef Name="FuelTypeId" />
  357. </Key>
  358. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  359. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  360. </EntityType>
  361. <EntityType Name="BemsMonitoringPoint">
  362. <Key>
  363. <PropertyRef Name="SiteId" />
  364. <PropertyRef Name="FacilityCode" />
  365. <PropertyRef Name="PropertyId" />
  366. </Key>
  367. <Property Name="SiteId" Type="int" Nullable="false" />
  368. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  369. <Property Name="FacilityCode" Type="int" Nullable="false" />
  370. <Property Name="PropertyId" Type="int" Nullable="false" />
  371. <Property Name="ValueType" Type="int" Nullable="false" />
  372. <Property Name="ServiceTypeId" Type="smallint" />
  373. <Property Name="FuelTypeId" Type="smallint" />
  374. <Property Name="Name" Type="nvarchar" MaxLength="64" />
  375. <Property Name="Description" Type="nvarchar" MaxLength="256" />
  376. <Property Name="BuildingId" Type="int" />
  377. <Property Name="FloorId" Type="int" />
  378. <Property Name="ZoneId" Type="int" />
  379. </EntityType>
  380. <EntityType Name="BemsMonitoringPointBaseData">
  381. <Key>
  382. <PropertyRef Name="FacilityTypeId" />
  383. <PropertyRef Name="PropertyId" />
  384. </Key>
  385. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  386. <Property Name="PropertyId" Type="int" Nullable="false" />
  387. <Property Name="ValueType" Type="int" Nullable="false" />
  388. <Property Name="IsAccumulated" Type="bit" Nullable="false" />
  389. <Property Name="ServiceTypeId" Type="smallint" />
  390. <Property Name="FuelTypeId" Type="smallint" />
  391. <Property Name="Name" Type="nvarchar" MaxLength="64" />
  392. <Property Name="Description" Type="nvarchar" MaxLength="256" />
  393. <Property Name="IsSampled" Type="bit" />
  394. <Property Name="IsConverted" Type="bit" />
  395. </EntityType>
  396. <EntityType Name="BemsMonitoringPointConfig">
  397. <Key>
  398. <PropertyRef Name="SiteId" />
  399. <PropertyRef Name="FacilityCode" />
  400. <PropertyRef Name="PropertyId" />
  401. </Key>
  402. <Property Name="SiteId" Type="int" Nullable="false" />
  403. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  404. <Property Name="FacilityCode" Type="int" Nullable="false" />
  405. <Property Name="PropertyId" Type="int" Nullable="false" />
  406. <Property Name="IsAccumulated" Type="bit" Nullable="false" />
  407. <Property Name="IsSampled" Type="bit" Nullable="false" />
  408. <Property Name="SaveMode" Type="int" Nullable="false" />
  409. <Property Name="ControlPointName" Type="nvarchar" MaxLength="200" />
  410. <Property Name="IsConverted" Type="bit" />
  411. </EntityType>
  412. <EntityType Name="BemsMonitoringPointHistory15min">
  413. <Key>
  414. <PropertyRef Name="SiteId" />
  415. <PropertyRef Name="FacilityCode" />
  416. <PropertyRef Name="PropertyId" />
  417. <PropertyRef Name="CreatedDateTime" />
  418. </Key>
  419. <Property Name="SiteId" Type="int" Nullable="false" />
  420. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  421. <Property Name="FacilityCode" Type="int" Nullable="false" />
  422. <Property Name="PropertyId" Type="int" Nullable="false" />
  423. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  424. <Property Name="CurrentValue" Type="float" Nullable="false" />
  425. </EntityType>
  426. <EntityType Name="BemsMonitoringPointHistory15minRawData">
  427. <Key>
  428. <PropertyRef Name="SiteId" />
  429. <PropertyRef Name="FacilityCode" />
  430. <PropertyRef Name="PropertyId" />
  431. <PropertyRef Name="CreatedDateTime" />
  432. </Key>
  433. <Property Name="SiteId" Type="int" Nullable="false" />
  434. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  435. <Property Name="FacilityCode" Type="int" Nullable="false" />
  436. <Property Name="PropertyId" Type="int" Nullable="false" />
  437. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  438. <Property Name="CurrentValue" Type="float" Nullable="false" />
  439. </EntityType>
  440. <EntityType Name="BemsMonitoringPointHistoryDaily">
  441. <Key>
  442. <PropertyRef Name="SiteId" />
  443. <PropertyRef Name="FacilityCode" />
  444. <PropertyRef Name="PropertyId" />
  445. <PropertyRef Name="CreatedDateTime" />
  446. </Key>
  447. <Property Name="SiteId" Type="int" Nullable="false" />
  448. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  449. <Property Name="FacilityCode" Type="int" Nullable="false" />
  450. <Property Name="PropertyId" Type="int" Nullable="false" />
  451. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  452. <Property Name="DailyValue" Type="float" Nullable="false" />
  453. <Property Name="MaxValue" Type="float" />
  454. <Property Name="MinValue" Type="float" />
  455. </EntityType>
  456. <EntityType Name="BemsMonitoringPointHistoryHourly">
  457. <Key>
  458. <PropertyRef Name="SiteId" />
  459. <PropertyRef Name="FacilityCode" />
  460. <PropertyRef Name="PropertyId" />
  461. <PropertyRef Name="CreatedDateTime" />
  462. </Key>
  463. <Property Name="SiteId" Type="int" Nullable="false" />
  464. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  465. <Property Name="FacilityCode" Type="int" Nullable="false" />
  466. <Property Name="PropertyId" Type="int" Nullable="false" />
  467. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  468. <Property Name="CurrentValue" Type="float" Nullable="false" />
  469. </EntityType>
  470. <EntityType Name="BemsMonitoringPointToAnlaysisType">
  471. <Key>
  472. <PropertyRef Name="SiteId" />
  473. <PropertyRef Name="FacilityTypeId" />
  474. <PropertyRef Name="FacilityCode" />
  475. <PropertyRef Name="PropertyId" />
  476. <PropertyRef Name="AnalysisType" />
  477. </Key>
  478. <Property Name="SiteId" Type="int" Nullable="false" />
  479. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  480. <Property Name="FacilityCode" Type="int" Nullable="false" />
  481. <Property Name="PropertyId" Type="int" Nullable="false" />
  482. <Property Name="AnalysisType" Type="int" Nullable="false" />
  483. </EntityType>
  484. <EntityType Name="BemsNoticePriceBase">
  485. <Key>
  486. <PropertyRef Name="SiteId" />
  487. <PropertyRef Name="FuelTypeId" />
  488. <PropertyRef Name="ApplyDate" />
  489. <PropertyRef Name="ContractType" />
  490. </Key>
  491. <Property Name="SiteId" Type="int" Nullable="false" />
  492. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  493. <Property Name="ApplyDate" Type="date" Nullable="false" />
  494. <Property Name="ContractType" Type="smallint" Nullable="false" />
  495. <Property Name="PrimaryPrice" Type="int" />
  496. <Property Name="SecondaryPrice" Type="int" />
  497. </EntityType>
  498. <EntityType Name="BemsNoticePriceContractType">
  499. <Key>
  500. <PropertyRef Name="FuelTypeId" />
  501. <PropertyRef Name="ContractType" />
  502. </Key>
  503. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  504. <Property Name="ContractType" Type="smallint" Nullable="false" />
  505. <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
  506. </EntityType>
  507. <EntityType Name="BemsNoticePriceDetail">
  508. <Key>
  509. <PropertyRef Name="SiteId" />
  510. <PropertyRef Name="FuelTypeId" />
  511. <PropertyRef Name="ApplyDate" />
  512. <PropertyRef Name="ContractType" />
  513. <PropertyRef Name="DataId" />
  514. </Key>
  515. <Property Name="SiteId" Type="int" Nullable="false" />
  516. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  517. <Property Name="ApplyDate" Type="date" Nullable="false" />
  518. <Property Name="ContractType" Type="smallint" Nullable="false" />
  519. <Property Name="DataId" Type="smallint" Nullable="false" />
  520. <Property Name="P01" Type="float" />
  521. <Property Name="P02" Type="float" />
  522. <Property Name="P03" Type="float" />
  523. <Property Name="P04" Type="float" />
  524. <Property Name="P05" Type="float" />
  525. <Property Name="P06" Type="float" />
  526. <Property Name="P07" Type="float" />
  527. <Property Name="P08" Type="float" />
  528. <Property Name="P09" Type="float" />
  529. <Property Name="P10" Type="float" />
  530. <Property Name="P11" Type="float" />
  531. <Property Name="P12" Type="float" />
  532. </EntityType>
  533. <EntityType Name="BemsPeakFacility">
  534. <Key>
  535. <PropertyRef Name="SiteId" />
  536. <PropertyRef Name="MaxDateTime" />
  537. <PropertyRef Name="FacilityCode" />
  538. </Key>
  539. <Property Name="SiteId" Type="int" Nullable="false" />
  540. <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
  541. <Property Name="FacilityCode" Type="int" Nullable="false" />
  542. </EntityType>
  543. <EntityType Name="BemsPeakHistory">
  544. <Key>
  545. <PropertyRef Name="SiteId" />
  546. <PropertyRef Name="CreatedDateTime" />
  547. </Key>
  548. <Property Name="SiteId" Type="int" Nullable="false" />
  549. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  550. <Property Name="CurrentValue" Type="float" Nullable="false" />
  551. </EntityType>
  552. <EntityType Name="BemsPeakHistoryDaily">
  553. <Key>
  554. <PropertyRef Name="SiteId" />
  555. <PropertyRef Name="CreatedDateTime" />
  556. </Key>
  557. <Property Name="SiteId" Type="int" Nullable="false" />
  558. <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
  559. <Property Name="MaxPeakValue" Type="float" />
  560. <Property Name="MaxDateTime" Type="datetime" />
  561. <Property Name="MinPeakValue" Type="float" />
  562. <Property Name="MinDateTime" Type="datetime" />
  563. </EntityType>
  564. <EntityType Name="BemsPeakInfo">
  565. <Key>
  566. <PropertyRef Name="SiteId" />
  567. </Key>
  568. <Property Name="SiteId" Type="int" Nullable="false" />
  569. <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
  570. <Property Name="MaxPeakValue" Type="float" Nullable="false" />
  571. <Property Name="MinDateTime" Type="datetime" Nullable="false" />
  572. <Property Name="MinPeakValue" Type="float" Nullable="false" />
  573. <Property Name="todayMaxPeakValue" Type="float" Nullable="false" />
  574. <Property Name="todayMinPeakValue" Type="float" Nullable="false" />
  575. </EntityType>
  576. <EntityType Name="BemsPeopleIncrease">
  577. <Key>
  578. <PropertyRef Name="Date" />
  579. <PropertyRef Name="SiteId" />
  580. </Key>
  581. <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
  582. <Property Name="SiteId" Type="int" Nullable="false" />
  583. <Property Name="m1" Type="nvarchar" MaxLength="50" />
  584. <Property Name="m2" Type="nvarchar" MaxLength="50" />
  585. <Property Name="m3" Type="nvarchar" MaxLength="50" />
  586. <Property Name="m4" Type="nvarchar" MaxLength="50" />
  587. <Property Name="m5" Type="nvarchar" MaxLength="50" />
  588. <Property Name="m6" Type="nvarchar" MaxLength="50" />
  589. <Property Name="m7" Type="nvarchar" MaxLength="50" />
  590. <Property Name="m8" Type="nvarchar" MaxLength="50" />
  591. <Property Name="m9" Type="nvarchar" MaxLength="50" />
  592. <Property Name="m10" Type="nvarchar" MaxLength="50" />
  593. <Property Name="m11" Type="nvarchar" MaxLength="50" />
  594. <Property Name="m12" Type="nvarchar" MaxLength="50" />
  595. </EntityType>
  596. <EntityType Name="BemsPriceCode">
  597. <Key>
  598. <PropertyRef Name="PriceCode" />
  599. </Key>
  600. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  601. <Property Name="PriceCodeDesc" Type="varchar" MaxLength="200" />
  602. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  603. <Property Name="Unit" Type="varchar" MaxLength="20" />
  604. </EntityType>
  605. <EntityType Name="BemsPriceFormula">
  606. <Key>
  607. <PropertyRef Name="SiteId" />
  608. <PropertyRef Name="PriceTypeId" />
  609. <PropertyRef Name="FacilityTypeId" />
  610. <PropertyRef Name="FormulaId" />
  611. <PropertyRef Name="FacilityCode" />
  612. </Key>
  613. <Property Name="SiteId" Type="int" Nullable="false" />
  614. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  615. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  616. <Property Name="FormulaId" Type="int" Nullable="false" />
  617. <Property Name="FacilityCode" Type="int" Nullable="false" />
  618. <Property Name="UseYN" Type="nvarchar" MaxLength="1" Nullable="false" />
  619. </EntityType>
  620. <EntityType Name="BemsPriceMeta">
  621. <Key>
  622. <PropertyRef Name="PriceTypeId" />
  623. <PropertyRef Name="PublishDate" />
  624. </Key>
  625. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  626. <Property Name="PublishDate" Type="datetime" Nullable="false" />
  627. <Property Name="BasePrice" Type="int" />
  628. <Property Name="01_00" Type="float" />
  629. <Property Name="01_01" Type="float" />
  630. <Property Name="01_02" Type="float" />
  631. <Property Name="01_03" Type="float" />
  632. <Property Name="01_04" Type="float" />
  633. <Property Name="01_05" Type="float" />
  634. <Property Name="01_06" Type="float" />
  635. <Property Name="01_07" Type="float" />
  636. <Property Name="01_08" Type="float" />
  637. <Property Name="01_09" Type="float" />
  638. <Property Name="01_10" Type="float" />
  639. <Property Name="01_11" Type="float" />
  640. <Property Name="01_12" Type="float" />
  641. <Property Name="01_13" Type="float" />
  642. <Property Name="01_14" Type="float" />
  643. <Property Name="01_15" Type="float" />
  644. <Property Name="01_16" Type="float" />
  645. <Property Name="01_17" Type="float" />
  646. <Property Name="01_18" Type="float" />
  647. <Property Name="01_19" Type="float" />
  648. <Property Name="01_20" Type="float" />
  649. <Property Name="01_21" Type="float" />
  650. <Property Name="01_22" Type="float" />
  651. <Property Name="01_23" Type="float" />
  652. <Property Name="02_00" Type="float" />
  653. <Property Name="02_01" Type="float" />
  654. <Property Name="02_02" Type="float" />
  655. <Property Name="02_03" Type="float" />
  656. <Property Name="02_04" Type="float" />
  657. <Property Name="02_05" Type="float" />
  658. <Property Name="02_06" Type="float" />
  659. <Property Name="02_07" Type="float" />
  660. <Property Name="02_08" Type="float" />
  661. <Property Name="02_09" Type="float" />
  662. <Property Name="02_10" Type="float" />
  663. <Property Name="02_11" Type="float" />
  664. <Property Name="02_12" Type="float" />
  665. <Property Name="02_13" Type="float" />
  666. <Property Name="02_14" Type="float" />
  667. <Property Name="02_15" Type="float" />
  668. <Property Name="02_16" Type="float" />
  669. <Property Name="02_17" Type="float" />
  670. <Property Name="02_18" Type="float" />
  671. <Property Name="02_19" Type="float" />
  672. <Property Name="02_20" Type="float" />
  673. <Property Name="02_21" Type="float" />
  674. <Property Name="02_22" Type="float" />
  675. <Property Name="02_23" Type="float" />
  676. <Property Name="03_00" Type="float" />
  677. <Property Name="03_01" Type="float" />
  678. <Property Name="03_02" Type="float" />
  679. <Property Name="03_03" Type="float" />
  680. <Property Name="03_04" Type="float" />
  681. <Property Name="03_05" Type="float" />
  682. <Property Name="03_06" Type="float" />
  683. <Property Name="03_07" Type="float" />
  684. <Property Name="03_08" Type="float" />
  685. <Property Name="03_09" Type="float" />
  686. <Property Name="03_10" Type="float" />
  687. <Property Name="03_11" Type="float" />
  688. <Property Name="03_12" Type="float" />
  689. <Property Name="03_13" Type="float" />
  690. <Property Name="03_14" Type="float" />
  691. <Property Name="03_15" Type="float" />
  692. <Property Name="03_16" Type="float" />
  693. <Property Name="03_17" Type="float" />
  694. <Property Name="03_18" Type="float" />
  695. <Property Name="03_19" Type="float" />
  696. <Property Name="03_20" Type="float" />
  697. <Property Name="03_21" Type="float" />
  698. <Property Name="03_22" Type="float" />
  699. <Property Name="03_23" Type="float" />
  700. <Property Name="04_00" Type="float" />
  701. <Property Name="04_01" Type="float" />
  702. <Property Name="04_02" Type="float" />
  703. <Property Name="04_03" Type="float" />
  704. <Property Name="04_04" Type="float" />
  705. <Property Name="04_05" Type="float" />
  706. <Property Name="04_06" Type="float" />
  707. <Property Name="04_07" Type="float" />
  708. <Property Name="04_08" Type="float" />
  709. <Property Name="04_09" Type="float" />
  710. <Property Name="04_10" Type="float" />
  711. <Property Name="04_11" Type="float" />
  712. <Property Name="04_12" Type="float" />
  713. <Property Name="04_13" Type="float" />
  714. <Property Name="04_14" Type="float" />
  715. <Property Name="04_15" Type="float" />
  716. <Property Name="04_16" Type="float" />
  717. <Property Name="04_17" Type="float" />
  718. <Property Name="04_18" Type="float" />
  719. <Property Name="04_19" Type="float" />
  720. <Property Name="04_20" Type="float" />
  721. <Property Name="04_21" Type="float" />
  722. <Property Name="04_22" Type="float" />
  723. <Property Name="04_23" Type="float" />
  724. <Property Name="05_00" Type="float" />
  725. <Property Name="05_01" Type="float" />
  726. <Property Name="05_02" Type="float" />
  727. <Property Name="05_03" Type="float" />
  728. <Property Name="05_04" Type="float" />
  729. <Property Name="05_05" Type="float" />
  730. <Property Name="05_06" Type="float" />
  731. <Property Name="05_07" Type="float" />
  732. <Property Name="05_08" Type="float" />
  733. <Property Name="05_09" Type="float" />
  734. <Property Name="05_10" Type="float" />
  735. <Property Name="05_11" Type="float" />
  736. <Property Name="05_12" Type="float" />
  737. <Property Name="05_13" Type="float" />
  738. <Property Name="05_14" Type="float" />
  739. <Property Name="05_15" Type="float" />
  740. <Property Name="05_16" Type="float" />
  741. <Property Name="05_17" Type="float" />
  742. <Property Name="05_18" Type="float" />
  743. <Property Name="05_19" Type="float" />
  744. <Property Name="05_20" Type="float" />
  745. <Property Name="05_21" Type="float" />
  746. <Property Name="05_22" Type="float" />
  747. <Property Name="05_23" Type="float" />
  748. <Property Name="06_00" Type="float" />
  749. <Property Name="06_01" Type="float" />
  750. <Property Name="06_02" Type="float" />
  751. <Property Name="06_03" Type="float" />
  752. <Property Name="06_04" Type="float" />
  753. <Property Name="06_05" Type="float" />
  754. <Property Name="06_06" Type="float" />
  755. <Property Name="06_07" Type="float" />
  756. <Property Name="06_08" Type="float" />
  757. <Property Name="06_09" Type="float" />
  758. <Property Name="06_10" Type="float" />
  759. <Property Name="06_11" Type="float" />
  760. <Property Name="06_12" Type="float" />
  761. <Property Name="06_13" Type="float" />
  762. <Property Name="06_14" Type="float" />
  763. <Property Name="06_15" Type="float" />
  764. <Property Name="06_16" Type="float" />
  765. <Property Name="06_17" Type="float" />
  766. <Property Name="06_18" Type="float" />
  767. <Property Name="06_19" Type="float" />
  768. <Property Name="06_20" Type="float" />
  769. <Property Name="06_21" Type="float" />
  770. <Property Name="06_22" Type="float" />
  771. <Property Name="06_23" Type="float" />
  772. <Property Name="07_00" Type="float" />
  773. <Property Name="07_01" Type="float" />
  774. <Property Name="07_02" Type="float" />
  775. <Property Name="07_03" Type="float" />
  776. <Property Name="07_04" Type="float" />
  777. <Property Name="07_05" Type="float" />
  778. <Property Name="07_06" Type="float" />
  779. <Property Name="07_07" Type="float" />
  780. <Property Name="07_08" Type="float" />
  781. <Property Name="07_09" Type="float" />
  782. <Property Name="07_10" Type="float" />
  783. <Property Name="07_11" Type="float" />
  784. <Property Name="07_12" Type="float" />
  785. <Property Name="07_13" Type="float" />
  786. <Property Name="07_14" Type="float" />
  787. <Property Name="07_15" Type="float" />
  788. <Property Name="07_16" Type="float" />
  789. <Property Name="07_17" Type="float" />
  790. <Property Name="07_18" Type="float" />
  791. <Property Name="07_19" Type="float" />
  792. <Property Name="07_20" Type="float" />
  793. <Property Name="07_21" Type="float" />
  794. <Property Name="07_22" Type="float" />
  795. <Property Name="07_23" Type="float" />
  796. <Property Name="08_00" Type="float" />
  797. <Property Name="08_01" Type="float" />
  798. <Property Name="08_02" Type="float" />
  799. <Property Name="08_03" Type="float" />
  800. <Property Name="08_04" Type="float" />
  801. <Property Name="08_05" Type="float" />
  802. <Property Name="08_06" Type="float" />
  803. <Property Name="08_07" Type="float" />
  804. <Property Name="08_08" Type="float" />
  805. <Property Name="08_09" Type="float" />
  806. <Property Name="08_10" Type="float" />
  807. <Property Name="08_11" Type="float" />
  808. <Property Name="08_12" Type="float" />
  809. <Property Name="08_13" Type="float" />
  810. <Property Name="08_14" Type="float" />
  811. <Property Name="08_15" Type="float" />
  812. <Property Name="08_16" Type="float" />
  813. <Property Name="08_17" Type="float" />
  814. <Property Name="08_18" Type="float" />
  815. <Property Name="08_19" Type="float" />
  816. <Property Name="08_20" Type="float" />
  817. <Property Name="08_21" Type="float" />
  818. <Property Name="08_22" Type="float" />
  819. <Property Name="08_23" Type="float" />
  820. <Property Name="09_00" Type="float" />
  821. <Property Name="09_01" Type="float" />
  822. <Property Name="09_02" Type="float" />
  823. <Property Name="09_03" Type="float" />
  824. <Property Name="09_04" Type="float" />
  825. <Property Name="09_05" Type="float" />
  826. <Property Name="09_06" Type="float" />
  827. <Property Name="09_07" Type="float" />
  828. <Property Name="09_08" Type="float" />
  829. <Property Name="09_09" Type="float" />
  830. <Property Name="09_10" Type="float" />
  831. <Property Name="09_11" Type="float" />
  832. <Property Name="09_12" Type="float" />
  833. <Property Name="09_13" Type="float" />
  834. <Property Name="09_14" Type="float" />
  835. <Property Name="09_15" Type="float" />
  836. <Property Name="09_16" Type="float" />
  837. <Property Name="09_17" Type="float" />
  838. <Property Name="09_18" Type="float" />
  839. <Property Name="09_19" Type="float" />
  840. <Property Name="09_20" Type="float" />
  841. <Property Name="09_21" Type="float" />
  842. <Property Name="09_22" Type="float" />
  843. <Property Name="09_23" Type="float" />
  844. <Property Name="10_00" Type="float" />
  845. <Property Name="10_01" Type="float" />
  846. <Property Name="10_02" Type="float" />
  847. <Property Name="10_03" Type="float" />
  848. <Property Name="10_04" Type="float" />
  849. <Property Name="10_05" Type="float" />
  850. <Property Name="10_06" Type="float" />
  851. <Property Name="10_07" Type="float" />
  852. <Property Name="10_08" Type="float" />
  853. <Property Name="10_09" Type="float" />
  854. <Property Name="10_10" Type="float" />
  855. <Property Name="10_11" Type="float" />
  856. <Property Name="10_12" Type="float" />
  857. <Property Name="10_13" Type="float" />
  858. <Property Name="10_14" Type="float" />
  859. <Property Name="10_15" Type="float" />
  860. <Property Name="10_16" Type="float" />
  861. <Property Name="10_17" Type="float" />
  862. <Property Name="10_18" Type="float" />
  863. <Property Name="10_19" Type="float" />
  864. <Property Name="10_20" Type="float" />
  865. <Property Name="10_21" Type="float" />
  866. <Property Name="10_22" Type="float" />
  867. <Property Name="10_23" Type="float" />
  868. <Property Name="11_00" Type="float" />
  869. <Property Name="11_01" Type="float" />
  870. <Property Name="11_02" Type="float" />
  871. <Property Name="11_03" Type="float" />
  872. <Property Name="11_04" Type="float" />
  873. <Property Name="11_05" Type="float" />
  874. <Property Name="11_06" Type="float" />
  875. <Property Name="11_07" Type="float" />
  876. <Property Name="11_08" Type="float" />
  877. <Property Name="11_09" Type="float" />
  878. <Property Name="11_10" Type="float" />
  879. <Property Name="11_11" Type="float" />
  880. <Property Name="11_12" Type="float" />
  881. <Property Name="11_13" Type="float" />
  882. <Property Name="11_14" Type="float" />
  883. <Property Name="11_15" Type="float" />
  884. <Property Name="11_16" Type="float" />
  885. <Property Name="11_17" Type="float" />
  886. <Property Name="11_18" Type="float" />
  887. <Property Name="11_19" Type="float" />
  888. <Property Name="11_20" Type="float" />
  889. <Property Name="11_21" Type="float" />
  890. <Property Name="11_22" Type="float" />
  891. <Property Name="11_23" Type="float" />
  892. <Property Name="12_00" Type="float" />
  893. <Property Name="12_01" Type="float" />
  894. <Property Name="12_02" Type="float" />
  895. <Property Name="12_03" Type="float" />
  896. <Property Name="12_04" Type="float" />
  897. <Property Name="12_05" Type="float" />
  898. <Property Name="12_06" Type="float" />
  899. <Property Name="12_07" Type="float" />
  900. <Property Name="12_08" Type="float" />
  901. <Property Name="12_09" Type="float" />
  902. <Property Name="12_10" Type="float" />
  903. <Property Name="12_11" Type="float" />
  904. <Property Name="12_12" Type="float" />
  905. <Property Name="12_13" Type="float" />
  906. <Property Name="12_14" Type="float" />
  907. <Property Name="12_15" Type="float" />
  908. <Property Name="12_16" Type="float" />
  909. <Property Name="12_17" Type="float" />
  910. <Property Name="12_18" Type="float" />
  911. <Property Name="12_19" Type="float" />
  912. <Property Name="12_20" Type="float" />
  913. <Property Name="12_21" Type="float" />
  914. <Property Name="12_22" Type="float" />
  915. <Property Name="12_23" Type="float" />
  916. </EntityType>
  917. <EntityType Name="BemsPriceType">
  918. <Key>
  919. <PropertyRef Name="PriceTypeId" />
  920. </Key>
  921. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  922. <Property Name="PriceTypeIdDesc" Type="varchar" MaxLength="200" />
  923. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  924. </EntityType>
  925. <EntityType Name="BemsRentalRate">
  926. <Key>
  927. <PropertyRef Name="Date" />
  928. <PropertyRef Name="SiteId" />
  929. </Key>
  930. <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
  931. <Property Name="SiteId" Type="int" Nullable="false" />
  932. <Property Name="m1" Type="nvarchar" MaxLength="50" />
  933. <Property Name="m2" Type="nvarchar" MaxLength="50" />
  934. <Property Name="m3" Type="nvarchar" MaxLength="50" />
  935. <Property Name="m4" Type="nvarchar" MaxLength="50" />
  936. <Property Name="m5" Type="nvarchar" MaxLength="50" />
  937. <Property Name="m6" Type="nvarchar" MaxLength="50" />
  938. <Property Name="m7" Type="nvarchar" MaxLength="50" />
  939. <Property Name="m8" Type="nvarchar" MaxLength="50" />
  940. <Property Name="m9" Type="nvarchar" MaxLength="50" />
  941. <Property Name="m10" Type="nvarchar" MaxLength="50" />
  942. <Property Name="m11" Type="nvarchar" MaxLength="50" />
  943. <Property Name="m12" Type="nvarchar" MaxLength="50" />
  944. </EntityType>
  945. <EntityType Name="BemsReportFormat">
  946. <Key>
  947. <PropertyRef Name="ReportFormatId" />
  948. <PropertyRef Name="parts" />
  949. </Key>
  950. <Property Name="ReportFormatId" Type="int" Nullable="false" />
  951. <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
  952. <Property Name="Content" Type="varchar(max)" />
  953. <Property Name="parts" Type="int" Nullable="false" />
  954. </EntityType>
  955. <EntityType Name="BemsReportHistory">
  956. <Key>
  957. <PropertyRef Name="Seq" />
  958. <PropertyRef Name="DateTime" />
  959. <PropertyRef Name="ReportFormatId" />
  960. <PropertyRef Name="parts" />
  961. </Key>
  962. <Property Name="SiteId" Type="int" Nullable="false" />
  963. <Property Name="Seq" Type="int" Nullable="false" />
  964. <Property Name="DateTime" Type="datetime" Nullable="false" />
  965. <Property Name="ReportName" Type="varchar" MaxLength="200" Nullable="false" />
  966. <Property Name="ReportFormatId" Type="int" Nullable="false" />
  967. <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
  968. <Property Name="Content" Type="varchar(max)" />
  969. <Property Name="Writer" Type="varchar" MaxLength="50" />
  970. <Property Name="Confirm1" Type="varchar" MaxLength="50" />
  971. <Property Name="Confirm2" Type="varchar" MaxLength="50" />
  972. <Property Name="parts" Type="int" Nullable="false" />
  973. <Property Name="FileName" Type="nvarchar" MaxLength="100" />
  974. </EntityType>
  975. <EntityType Name="BemsServiceType">
  976. <Key>
  977. <PropertyRef Name="ServiceTypeId" />
  978. </Key>
  979. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  980. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  981. </EntityType>
  982. <EntityType Name="BemsSitePrice">
  983. <Key>
  984. <PropertyRef Name="SiteID" />
  985. <PropertyRef Name="FuelTypeId" />
  986. <PropertyRef Name="PriceTypeId" />
  987. <PropertyRef Name="PriceCode" />
  988. </Key>
  989. <Property Name="SiteID" Type="int" Nullable="false" />
  990. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  991. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  992. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  993. <Property Name="UseYN" Type="varchar" MaxLength="1" Nullable="false" />
  994. </EntityType>
  995. <EntityType Name="BemsSitePriceHistory">
  996. <Key>
  997. <PropertyRef Name="SiteId" />
  998. <PropertyRef Name="FuelTypeId" />
  999. <PropertyRef Name="PriceTypeId" />
  1000. <PropertyRef Name="PriceCode" />
  1001. <PropertyRef Name="PayDate" />
  1002. </Key>
  1003. <Property Name="SiteId" Type="int" Nullable="false" />
  1004. <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
  1005. <Property Name="PriceTypeId" Type="int" Nullable="false" />
  1006. <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
  1007. <Property Name="PriceValue" Type="varchar" MaxLength="200" />
  1008. <Property Name="PayDate" Type="varchar" MaxLength="6" Nullable="false" />
  1009. <Property Name="StartDate" Type="datetime" />
  1010. <Property Name="EndDate" Type="datetime" />
  1011. <Property Name="PayCharge" Type="varchar" MaxLength="200" />
  1012. </EntityType>
  1013. <EntityType Name="CmAlarmAdmin">
  1014. <Key>
  1015. <PropertyRef Name="SiteId" />
  1016. </Key>
  1017. <Property Name="SiteId" Type="int" Nullable="false" />
  1018. <Property Name="UserCode" Type="nvarchar" MaxLength="50" />
  1019. <Property Name="DeptCode" Type="nvarchar" MaxLength="50" />
  1020. <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
  1021. <Property Name="EmailAddress" Type="nvarchar" MaxLength="50" />
  1022. <Property Name="EmailPassword" Type="nvarchar" MaxLength="50" />
  1023. </EntityType>
  1024. <EntityType Name="CmAnnouncement">
  1025. <Key>
  1026. <PropertyRef Name="SiteId" />
  1027. <PropertyRef Name="AnnouncementId" />
  1028. </Key>
  1029. <Property Name="SiteId" Type="int" Nullable="false" />
  1030. <Property Name="AnnouncementId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1031. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  1032. <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
  1033. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  1034. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1035. <Property Name="FileId" Type="int" />
  1036. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1037. <Property Name="UpdateDate" Type="datetime" Nullable="false" />
  1038. <Property Name="IsUse" Type="bit" />
  1039. <Property Name="ReadCount" Type="int" Nullable="false" />
  1040. </EntityType>
  1041. <EntityType Name="CmBuilding">
  1042. <Key>
  1043. <PropertyRef Name="SiteId" />
  1044. <PropertyRef Name="BuildingId" />
  1045. </Key>
  1046. <Property Name="SiteId" Type="int" Nullable="false" />
  1047. <Property Name="BuildingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1048. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1049. <Property Name="FileId" Type="int" />
  1050. <Property Name="IsUse" Type="bit" />
  1051. <Property Name="SortOrderNo" Type="int" />
  1052. </EntityType>
  1053. <EntityType Name="CmBusinessField">
  1054. <Key>
  1055. <PropertyRef Name="SiteId" />
  1056. <PropertyRef Name="BusinessFieldId" />
  1057. </Key>
  1058. <Property Name="SiteId" Type="int" Nullable="false" />
  1059. <Property Name="BusinessFieldId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1060. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1061. <Property Name="IsUse" Type="bit" />
  1062. </EntityType>
  1063. <EntityType Name="CmCompany">
  1064. <Key>
  1065. <PropertyRef Name="SiteId" />
  1066. <PropertyRef Name="CompanyId" />
  1067. </Key>
  1068. <Property Name="SiteId" Type="int" Nullable="false" />
  1069. <Property Name="CompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1070. <Property Name="CompanyTypeId" Type="int" Nullable="false" />
  1071. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1072. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1073. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  1074. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" Nullable="false" />
  1075. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  1076. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  1077. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  1078. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1079. <Property Name="Address1" Type="nvarchar" MaxLength="50" />
  1080. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1081. <Property Name="Homepage" Type="nvarchar" MaxLength="100" />
  1082. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1083. <Property Name="IsUse" Type="bit" />
  1084. </EntityType>
  1085. <EntityType Name="CmCompanyType">
  1086. <Key>
  1087. <PropertyRef Name="SiteId" />
  1088. <PropertyRef Name="CompanyTypeId" />
  1089. </Key>
  1090. <Property Name="SiteId" Type="int" Nullable="false" />
  1091. <Property Name="CompanyTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1092. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1093. <Property Name="IsUse" Type="bit" />
  1094. </EntityType>
  1095. <EntityType Name="CmDepartment">
  1096. <Key>
  1097. <PropertyRef Name="SiteId" />
  1098. <PropertyRef Name="CompanyId" />
  1099. <PropertyRef Name="DepartmentId" />
  1100. </Key>
  1101. <Property Name="SiteId" Type="int" Nullable="false" />
  1102. <Property Name="CompanyId" Type="int" Nullable="false" />
  1103. <Property Name="DepartmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1104. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1105. <Property Name="ShortName" Type="nvarchar" MaxLength="50" />
  1106. <Property Name="FaxNo" Type="nvarchar" MaxLength="50" />
  1107. <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
  1108. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1109. <Property Name="IsUse" Type="bit" />
  1110. </EntityType>
  1111. <EntityType Name="CmFacility">
  1112. <Key>
  1113. <PropertyRef Name="SiteId" />
  1114. <PropertyRef Name="FacilityCode" />
  1115. </Key>
  1116. <Property Name="SiteId" Type="int" Nullable="false" />
  1117. <Property Name="FacilityTypeId" Type="int" Nullable="false" />
  1118. <Property Name="FacilityCode" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1119. <Property Name="FirstClassId" Type="int" />
  1120. <Property Name="SecondClassId" Type="int" />
  1121. <Property Name="ThirdClassId" Type="int" />
  1122. <Property Name="DeviceType" Type="nvarchar" MaxLength="48" />
  1123. <Property Name="ParentFacilityCode" Type="int" />
  1124. <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
  1125. <Property Name="Nickname" Type="nvarchar" MaxLength="40" />
  1126. <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
  1127. <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
  1128. <Property Name="ManufactureDate" Type="date" />
  1129. <Property Name="ManufactureSerial" Type="nvarchar" MaxLength="20" />
  1130. <Property Name="ManufactureModel" Type="nvarchar" MaxLength="40" />
  1131. <Property Name="Supplier" Type="nvarchar" MaxLength="40" />
  1132. <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
  1133. <Property Name="BuildingId" Type="int" />
  1134. <Property Name="FloorId" Type="int" />
  1135. <Property Name="ZoneId" Type="int" />
  1136. <Property Name="InstallDate" Type="date" />
  1137. <Property Name="OperationStartDate" Type="date" />
  1138. <Property Name="FacilityCapacity" Type="nvarchar" MaxLength="40" />
  1139. <Property Name="FacilityCost" Type="int" />
  1140. <Property Name="FacilityCount" Type="int" />
  1141. <Property Name="FacilitySeviceLifeYear" Type="int" />
  1142. <Property Name="FacilityUsage" Type="nvarchar" MaxLength="80" />
  1143. <Property Name="RatedPowerConsumption" Type="nvarchar" MaxLength="40" />
  1144. <Property Name="RatedCOP" Type="float" />
  1145. <Property Name="MainContactorUserId" Type="nvarchar" MaxLength="24" />
  1146. <Property Name="SubContactorUserId" Type="nvarchar" MaxLength="24" />
  1147. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  1148. <Property Name="Reserved1" Type="nvarchar" MaxLength="64" />
  1149. <Property Name="Reserved2" Type="nvarchar" MaxLength="64" />
  1150. <Property Name="IsUse" Type="bit" />
  1151. <Property Name="FileId" Type="int" />
  1152. <Property Name="IsVirtualFacility" Type="bit" Nullable="false" />
  1153. <Property Name="FuelTypeId" Type="smallint" />
  1154. <Property Name="ContractType" Type="smallint" />
  1155. </EntityType>
  1156. <EntityType Name="CmFacilityFile">
  1157. <Key>
  1158. <PropertyRef Name="SiteId" />
  1159. <PropertyRef Name="FileId" />
  1160. </Key>
  1161. <Property Name="SiteId" Type="int" Nullable="false" />
  1162. <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1163. <Property Name="FacilityCode" Type="int" Nullable="false" />
  1164. <Property Name="InsertedDate" Type="datetime" />
  1165. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  1166. <Property Name="UpdatedDate" Type="datetime" />
  1167. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1168. </EntityType>
  1169. <EntityType Name="CmFacilityTempSet">
  1170. <Key>
  1171. <PropertyRef Name="SiteId" />
  1172. <PropertyRef Name="FacilityCode" />
  1173. </Key>
  1174. <Property Name="SiteId" Type="int" Nullable="false" />
  1175. <Property Name="FacilityCode" Type="int" Nullable="false" />
  1176. <Property Name="T1" Type="float" Nullable="false" />
  1177. <Property Name="T2" Type="float" Nullable="false" />
  1178. <Property Name="T3" Type="float" Nullable="false" />
  1179. <Property Name="T4" Type="float" Nullable="false" />
  1180. <Property Name="T5" Type="float" Nullable="false" />
  1181. <Property Name="T6" Type="float" Nullable="false" />
  1182. <Property Name="T7" Type="float" Nullable="false" />
  1183. <Property Name="T8" Type="float" Nullable="false" />
  1184. <Property Name="T9" Type="float" Nullable="false" />
  1185. <Property Name="T10" Type="float" Nullable="false" />
  1186. <Property Name="T11" Type="float" Nullable="false" />
  1187. <Property Name="T12" Type="float" Nullable="false" />
  1188. </EntityType>
  1189. <EntityType Name="CmFile">
  1190. <Key>
  1191. <PropertyRef Name="SiteId" />
  1192. <PropertyRef Name="FileId" />
  1193. </Key>
  1194. <Property Name="SiteId" Type="int" Nullable="false" />
  1195. <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1196. <Property Name="FileCategoryId" Type="int" Nullable="false" />
  1197. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1198. <Property Name="FileSize" Type="int" />
  1199. <Property Name="CreatedDate" Type="datetime" />
  1200. <Property Name="ContentType" Type="nvarchar" MaxLength="128" />
  1201. </EntityType>
  1202. <EntityType Name="CmFileCategory">
  1203. <Key>
  1204. <PropertyRef Name="FileCategoryId" />
  1205. </Key>
  1206. <Property Name="FileCategoryId" Type="int" Nullable="false" />
  1207. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1208. </EntityType>
  1209. <EntityType Name="CmFloor">
  1210. <Key>
  1211. <PropertyRef Name="SiteId" />
  1212. <PropertyRef Name="BuildingId" />
  1213. <PropertyRef Name="FloorId" />
  1214. </Key>
  1215. <Property Name="SiteId" Type="int" Nullable="false" />
  1216. <Property Name="BuildingId" Type="int" Nullable="false" />
  1217. <Property Name="FloorId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1218. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1219. </EntityType>
  1220. <EntityType Name="CmHoliday">
  1221. <Key>
  1222. <PropertyRef Name="SiteId" />
  1223. <PropertyRef Name="HolidayMonth" />
  1224. <PropertyRef Name="HolidayDay" />
  1225. <PropertyRef Name="IsLunar" />
  1226. </Key>
  1227. <Property Name="SiteId" Type="int" Nullable="false" />
  1228. <Property Name="HolidayMonth" Type="smallint" Nullable="false" />
  1229. <Property Name="HolidayDay" Type="smallint" Nullable="false" />
  1230. <Property Name="IsLunar" Type="bit" Nullable="false" />
  1231. <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
  1232. <Property Name="IsUse" Type="bit" />
  1233. </EntityType>
  1234. <EntityType Name="CmHolidayCustom">
  1235. <Key>
  1236. <PropertyRef Name="SiteId" />
  1237. <PropertyRef Name="HolidayDate" />
  1238. </Key>
  1239. <Property Name="SiteId" Type="int" Nullable="false" />
  1240. <Property Name="HolidayDate" Type="datetime" Nullable="false" />
  1241. <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
  1242. <Property Name="IsUse" Type="bit" />
  1243. </EntityType>
  1244. <EntityType Name="CmHolidayWeekend">
  1245. <Key>
  1246. <PropertyRef Name="SiteId" />
  1247. </Key>
  1248. <Property Name="SiteId" Type="int" Nullable="false" />
  1249. <Property Name="Saturday" Type="bit" Nullable="false" />
  1250. <Property Name="Sunday" Type="bit" Nullable="false" />
  1251. <Property Name="IsUse" Type="bit" />
  1252. </EntityType>
  1253. <EntityType Name="CmMenu">
  1254. <Key>
  1255. <PropertyRef Name="SiteId" />
  1256. <PropertyRef Name="MenuId" />
  1257. </Key>
  1258. <Property Name="SiteId" Type="int" Nullable="false" />
  1259. <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
  1260. <Property Name="Used" Type="bit" />
  1261. <Property Name="MenuPath" Type="nvarchar" MaxLength="255" />
  1262. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  1263. </EntityType>
  1264. <EntityType Name="CmPartner">
  1265. <Key>
  1266. <PropertyRef Name="SiteId" />
  1267. <PropertyRef Name="PartnerId" />
  1268. </Key>
  1269. <Property Name="SiteId" Type="int" Nullable="false" />
  1270. <Property Name="PartnerId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1271. <Property Name="PartnerTypeId" Type="int" Nullable="false" />
  1272. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1273. <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" />
  1274. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" />
  1275. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
  1276. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  1277. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  1278. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  1279. <Property Name="AddressZip1" Type="nchar" MaxLength="3" />
  1280. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1281. <Property Name="Address1" Type="nvarchar" MaxLength="50" />
  1282. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1283. <Property Name="HomepageUri" Type="nvarchar" MaxLength="100" />
  1284. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  1285. <Property Name="IsUse" Type="bit" />
  1286. </EntityType>
  1287. <EntityType Name="CmPartnerType">
  1288. <Key>
  1289. <PropertyRef Name="PartnerTypeId" />
  1290. </Key>
  1291. <Property Name="PartnerTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1292. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1293. <Property Name="IsUse" Type="bit" />
  1294. </EntityType>
  1295. <EntityType Name="CmPatrolCourse">
  1296. <Key>
  1297. <PropertyRef Name="SiteId" />
  1298. <PropertyRef Name="PatrolCourseId" />
  1299. </Key>
  1300. <Property Name="SiteId" Type="int" Nullable="false" />
  1301. <Property Name="PatrolCourseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1302. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1303. </EntityType>
  1304. <EntityType Name="CmPatrolCoursePos">
  1305. <Key>
  1306. <PropertyRef Name="SiteId" />
  1307. <PropertyRef Name="PatrolCourseId" />
  1308. <PropertyRef Name="BuildingId" />
  1309. <PropertyRef Name="FloorId" />
  1310. <PropertyRef Name="PosId" />
  1311. </Key>
  1312. <Property Name="SiteId" Type="int" Nullable="false" />
  1313. <Property Name="PatrolCourseId" Type="int" Nullable="false" />
  1314. <Property Name="BuildingId" Type="int" Nullable="false" />
  1315. <Property Name="FloorId" Type="int" Nullable="false" />
  1316. <Property Name="PosId" Type="int" Nullable="false" />
  1317. <Property Name="CourseOrder" Type="int" Nullable="false" />
  1318. </EntityType>
  1319. <EntityType Name="CmPatrolGroup">
  1320. <Key>
  1321. <PropertyRef Name="SiteId" />
  1322. <PropertyRef Name="PatrolGroupId" />
  1323. </Key>
  1324. <Property Name="SiteId" Type="int" Nullable="false" />
  1325. <Property Name="PatrolGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1326. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1327. </EntityType>
  1328. <EntityType Name="CmPatrolGroupUser">
  1329. <Key>
  1330. <PropertyRef Name="SiteId" />
  1331. <PropertyRef Name="PatrolGroupId" />
  1332. <PropertyRef Name="UserId" />
  1333. </Key>
  1334. <Property Name="SiteId" Type="int" Nullable="false" />
  1335. <Property Name="PatrolGroupId" Type="int" Nullable="false" />
  1336. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1337. </EntityType>
  1338. <EntityType Name="CmPatrolHistory">
  1339. <Key>
  1340. <PropertyRef Name="PatrolHistoryId" />
  1341. </Key>
  1342. <Property Name="SiteId" Type="int" Nullable="false" />
  1343. <Property Name="PatrolHistoryId" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
  1344. <Property Name="ScheduleId" Type="int" Nullable="false" />
  1345. <Property Name="startDate" Type="datetime" Nullable="false" />
  1346. <Property Name="endDate" Type="datetime" />
  1347. <Property Name="resultTypeId" Type="int" Nullable="false" />
  1348. <Property Name="resultDesc" Type="varchar" MaxLength="1024" />
  1349. <Property Name="resultPosCnt" Type="int" />
  1350. <Property Name="resultNormalCnt" Type="int" />
  1351. <Property Name="resultAbnormalCnt" Type="int" />
  1352. </EntityType>
  1353. <EntityType Name="CmPatrolHistoryPos">
  1354. <Key>
  1355. <PropertyRef Name="mId" />
  1356. </Key>
  1357. <Property Name="SiteId" Type="int" Nullable="false" />
  1358. <Property Name="PatrolHistoryId" Type="int" Nullable="false" />
  1359. <Property Name="PosId" Type="int" Nullable="false" />
  1360. <Property Name="PatrolTime" Type="datetime" Nullable="false" />
  1361. <Property Name="term" Type="int" />
  1362. <Property Name="resultType" Type="int" Nullable="false" />
  1363. <Property Name="mId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1364. </EntityType>
  1365. <EntityType Name="CmPatrolPlan">
  1366. <Key>
  1367. <PropertyRef Name="SiteId" />
  1368. <PropertyRef Name="PatrolPlanId" />
  1369. </Key>
  1370. <Property Name="SiteId" Type="int" Nullable="false" />
  1371. <Property Name="PatrolPlanId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1372. <Property Name="GroupId" Type="int" Nullable="false" />
  1373. <Property Name="CourseId" Type="int" Nullable="false" />
  1374. <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
  1375. <Property Name="PlanDesc" Type="varchar" MaxLength="1024" />
  1376. <Property Name="term" Type="int" Nullable="false" />
  1377. <Property Name="inDate" Type="datetime" />
  1378. </EntityType>
  1379. <EntityType Name="CmPatrolPos">
  1380. <Key>
  1381. <PropertyRef Name="SiteId" />
  1382. <PropertyRef Name="PosId" />
  1383. </Key>
  1384. <Property Name="SiteId" Type="int" Nullable="false" />
  1385. <Property Name="BuildingId" Type="int" Nullable="false" />
  1386. <Property Name="FloorId" Type="int" Nullable="false" />
  1387. <Property Name="PosId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1388. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1389. <Property Name="TagId" Type="nvarchar" MaxLength="32" />
  1390. <Property Name="PosDesc" Type="nvarchar" MaxLength="1024" />
  1391. </EntityType>
  1392. <EntityType Name="CmPatrolSchedule">
  1393. <Key>
  1394. <PropertyRef Name="SiteId" />
  1395. <PropertyRef Name="ScheduleId" />
  1396. </Key>
  1397. <Property Name="SiteId" Type="int" Nullable="false" />
  1398. <Property Name="ScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1399. <Property Name="PlanId" Type="int" Nullable="false" />
  1400. <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
  1401. <Property Name="ScheduleDesc" Type="varchar" MaxLength="128" />
  1402. <Property Name="inDate" Type="datetime" />
  1403. <Property Name="patrolDateTime" Type="datetime" Nullable="false" />
  1404. </EntityType>
  1405. <EntityType Name="CmPatrolType">
  1406. <Key>
  1407. <PropertyRef Name="SiteId" />
  1408. <PropertyRef Name="PatrolTypeId" />
  1409. </Key>
  1410. <Property Name="SiteId" Type="int" Nullable="false" />
  1411. <Property Name="PatrolTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1412. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1413. <Property Name="IsUse" Type="bit" />
  1414. </EntityType>
  1415. <EntityType Name="CmPosition">
  1416. <Key>
  1417. <PropertyRef Name="SiteId" />
  1418. <PropertyRef Name="PositionId" />
  1419. </Key>
  1420. <Property Name="SiteId" Type="int" Nullable="false" />
  1421. <Property Name="PositionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1422. <Property Name="Name" Type="nvarchar" MaxLength="40" Nullable="false" />
  1423. <Property Name="IsUse" Type="bit" />
  1424. </EntityType>
  1425. <EntityType Name="CmServiceEnergyCalcDay">
  1426. <Key>
  1427. <PropertyRef Name="SiteId" />
  1428. <PropertyRef Name="calDate" />
  1429. <PropertyRef Name="ServiceTypeId" />
  1430. </Key>
  1431. <Property Name="SiteId" Type="int" Nullable="false" />
  1432. <Property Name="calDate" Type="datetime" Nullable="false" />
  1433. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1434. <Property Name="Value" Type="float" />
  1435. </EntityType>
  1436. <EntityType Name="CmServiceEnergyCalcMonth">
  1437. <Key>
  1438. <PropertyRef Name="SiteId" />
  1439. <PropertyRef Name="calDate" />
  1440. <PropertyRef Name="ServiceTypeId" />
  1441. </Key>
  1442. <Property Name="SiteId" Type="int" Nullable="false" />
  1443. <Property Name="calDate" Type="datetime" Nullable="false" />
  1444. <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
  1445. <Property Name="Value" Type="float" />
  1446. </EntityType>
  1447. <EntityType Name="CmSite">
  1448. <Key>
  1449. <PropertyRef Name="SiteId" />
  1450. </Key>
  1451. <Property Name="SiteId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1452. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1453. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  1454. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  1455. <Property Name="Address1" Type="nvarchar" MaxLength="100" />
  1456. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  1457. <Property Name="PhoneNo" Type="nvarchar" MaxLength="24" />
  1458. <Property Name="URL" Type="nvarchar" MaxLength="100" />
  1459. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1460. <Property Name="IsUse" Type="bit" />
  1461. <Property Name="SortOrderNo" Type="int" />
  1462. <Property Name="InsertedDate" Type="datetime" />
  1463. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  1464. <Property Name="UpdatedDate" Type="datetime" />
  1465. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1466. <Property Name="IsControlSchedule" Type="bit" />
  1467. <Property Name="ScheduleCheckHour" Type="int" />
  1468. <Property Name="MaxPeak" Type="float" />
  1469. <Property Name="lat" Type="float" />
  1470. <Property Name="lng" Type="float" />
  1471. <Property Name="controlSchedule" Type="bit" />
  1472. <Property Name="HDD" Type="nvarchar" MaxLength="24" />
  1473. <Property Name="CDD" Type="nvarchar" MaxLength="24" />
  1474. <Property Name="BuildingSize" Type="nvarchar" MaxLength="50" />
  1475. <Property Name="GrossArea" Type="nvarchar" MaxLength="24" />
  1476. <Property Name="BuildingArea" Type="nvarchar" MaxLength="24" />
  1477. <Property Name="FloorAreaRatio" Type="nvarchar" MaxLength="24" />
  1478. <Property Name="BuildingCoverageRatio" Type="nvarchar" MaxLength="24" />
  1479. <Property Name="MainUse" Type="nvarchar" MaxLength="10" />
  1480. <Property Name="CompletionDate" Type="nvarchar" MaxLength="24" />
  1481. <Property Name="Standard" Type="nvarchar" MaxLength="24" />
  1482. <Property Name="MainUseIndex" Type="int" />
  1483. </EntityType>
  1484. <EntityType Name="CmUser">
  1485. <Key>
  1486. <PropertyRef Name="SiteId" />
  1487. <PropertyRef Name="UserId" />
  1488. </Key>
  1489. <Property Name="SiteId" Type="int" Nullable="false" />
  1490. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1491. <Property Name="CompanyId" Type="int" />
  1492. <Property Name="DepartmentId" Type="int" />
  1493. <Property Name="PositionId" Type="int" />
  1494. <Property Name="BusinessFieldId" Type="int" />
  1495. <Property Name="UserGroupId" Type="int" />
  1496. <Property Name="Name" Type="nvarchar" MaxLength="30" Nullable="false" />
  1497. <Property Name="Passwd" Type="nvarchar" MaxLength="30" Nullable="false" />
  1498. <Property Name="Birthday" Type="datetime" />
  1499. <Property Name="Lunar" Type="bit" />
  1500. <Property Name="StateId" Type="int" />
  1501. <Property Name="EmploymentType" Type="int" />
  1502. <Property Name="EmploymentStatus" Type="int" />
  1503. <Property Name="OfficePhoneNo" Type="nvarchar" MaxLength="50" />
  1504. <Property Name="HomePhoneNo" Type="nvarchar" MaxLength="50" />
  1505. <Property Name="MobilePhoneNo" Type="nvarchar" MaxLength="50" />
  1506. <Property Name="HomeZip1" Type="char" MaxLength="3" />
  1507. <Property Name="HomeZip2" Type="char" MaxLength="3" />
  1508. <Property Name="HomeAddress1" Type="nvarchar" MaxLength="50" />
  1509. <Property Name="HomeAdderss2" Type="nvarchar" MaxLength="100" />
  1510. <Property Name="Email" Type="nvarchar" MaxLength="50" />
  1511. <Property Name="EnterDate" Type="datetime" />
  1512. <Property Name="RetireDate" Type="datetime" />
  1513. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1514. <Property Name="Rfcsn" Type="nvarchar" MaxLength="30" />
  1515. <Property Name="PasswordUpdatedDate" Type="datetime" />
  1516. <Property Name="FileId" Type="int" />
  1517. <Property Name="IsBems" Type="bit" />
  1518. <Property Name="IsUse" Type="bit" />
  1519. <Property Name="IsScheduleUser" Type="bit" />
  1520. <Property Name="Certificated" Type="nvarchar" MaxLength="512" />
  1521. <Property Name="IsSI" Type="bit" />
  1522. <Property Name="IsMobile" Type="bit" />
  1523. <Property Name="Devicetoken" Type="nvarchar" MaxLength="500" />
  1524. </EntityType>
  1525. <EntityType Name="CmUserGroup">
  1526. <Key>
  1527. <PropertyRef Name="SiteId" />
  1528. <PropertyRef Name="UserGroupId" />
  1529. </Key>
  1530. <Property Name="SiteId" Type="int" Nullable="false" />
  1531. <Property Name="UserGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1532. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1533. </EntityType>
  1534. <EntityType Name="CmUserGroupPermission">
  1535. <Key>
  1536. <PropertyRef Name="SiteId" />
  1537. <PropertyRef Name="UserGroupId" />
  1538. <PropertyRef Name="MenuId" />
  1539. </Key>
  1540. <Property Name="SiteId" Type="int" Nullable="false" />
  1541. <Property Name="UserGroupId" Type="int" Nullable="false" />
  1542. <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
  1543. <Property Name="MenuPermission" Type="smallint" />
  1544. </EntityType>
  1545. <EntityType Name="CmUserLoginHistory">
  1546. <Key>
  1547. <PropertyRef Name="LoginHistoryId" />
  1548. </Key>
  1549. <Property Name="LoginHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1550. <Property Name="SiteId" Type="int" Nullable="false" />
  1551. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1552. <Property Name="Type" Type="nvarchar" MaxLength="10" Nullable="false" />
  1553. <Property Name="TraceTime" Type="datetime" Nullable="false" />
  1554. <Property Name="IpAddress" Type="nvarchar" MaxLength="16" />
  1555. </EntityType>
  1556. <EntityType Name="CmUserToLicense">
  1557. <Key>
  1558. <PropertyRef Name="SiteId" />
  1559. <PropertyRef Name="UserId" />
  1560. <PropertyRef Name="LicenseId" />
  1561. </Key>
  1562. <Property Name="SiteId" Type="int" Nullable="false" />
  1563. <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1564. <Property Name="LicenseId" Type="int" Nullable="false" />
  1565. </EntityType>
  1566. <EntityType Name="CmZone">
  1567. <Key>
  1568. <PropertyRef Name="SiteId" />
  1569. <PropertyRef Name="BuildingId" />
  1570. <PropertyRef Name="FloorId" />
  1571. <PropertyRef Name="ZoneId" />
  1572. </Key>
  1573. <Property Name="SiteId" Type="int" Nullable="false" />
  1574. <Property Name="BuildingId" Type="int" Nullable="false" />
  1575. <Property Name="FloorId" Type="int" Nullable="false" />
  1576. <Property Name="ZoneId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1577. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1578. <Property Name="Target_temperature" Type="float" />
  1579. <Property Name="Target_humidity" Type="smallint" />
  1580. </EntityType>
  1581. <EntityType Name="CmZoneTempHumiSet">
  1582. <Key>
  1583. <PropertyRef Name="SiteId" />
  1584. <PropertyRef Name="BuildingId" />
  1585. <PropertyRef Name="FloorId" />
  1586. <PropertyRef Name="ZoneId" />
  1587. </Key>
  1588. <Property Name="SiteId" Type="int" Nullable="false" />
  1589. <Property Name="BuildingId" Type="int" Nullable="false" />
  1590. <Property Name="FloorId" Type="int" Nullable="false" />
  1591. <Property Name="ZoneId" Type="int" Nullable="false" />
  1592. <Property Name="T1" Type="float" Nullable="false" />
  1593. <Property Name="T2" Type="float" Nullable="false" />
  1594. <Property Name="T3" Type="float" Nullable="false" />
  1595. <Property Name="T4" Type="float" Nullable="false" />
  1596. <Property Name="T5" Type="float" Nullable="false" />
  1597. <Property Name="T6" Type="float" Nullable="false" />
  1598. <Property Name="T7" Type="float" Nullable="false" />
  1599. <Property Name="T8" Type="float" Nullable="false" />
  1600. <Property Name="T9" Type="float" Nullable="false" />
  1601. <Property Name="T10" Type="float" Nullable="false" />
  1602. <Property Name="T11" Type="float" Nullable="false" />
  1603. <Property Name="T12" Type="float" Nullable="false" />
  1604. <Property Name="H1" Type="smallint" Nullable="false" />
  1605. <Property Name="H2" Type="smallint" Nullable="false" />
  1606. <Property Name="H3" Type="smallint" Nullable="false" />
  1607. <Property Name="H4" Type="smallint" Nullable="false" />
  1608. <Property Name="H5" Type="smallint" Nullable="false" />
  1609. <Property Name="H6" Type="smallint" Nullable="false" />
  1610. <Property Name="H7" Type="smallint" Nullable="false" />
  1611. <Property Name="H8" Type="smallint" Nullable="false" />
  1612. <Property Name="H9" Type="smallint" Nullable="false" />
  1613. <Property Name="H10" Type="smallint" Nullable="false" />
  1614. <Property Name="H11" Type="smallint" Nullable="false" />
  1615. <Property Name="H12" Type="smallint" Nullable="false" />
  1616. </EntityType>
  1617. <EntityType Name="FmsAccident">
  1618. <Key>
  1619. <PropertyRef Name="SiteId" />
  1620. <PropertyRef Name="AccidentId" />
  1621. </Key>
  1622. <Property Name="SiteId" Type="int" Nullable="false" />
  1623. <Property Name="AccidentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1624. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1625. <Property Name="StartDate" Type="datetime" />
  1626. <Property Name="EndDate" Type="datetime" />
  1627. <Property Name="AccidentTypeId" Type="int" Nullable="false" />
  1628. <Property Name="DepartmentId" Type="int" />
  1629. <Property Name="AccidentLocation" Type="nvarchar" MaxLength="256" />
  1630. <Property Name="Reason" Type="nvarchar" MaxLength="1024" />
  1631. <Property Name="Action" Type="nvarchar" MaxLength="1024" />
  1632. <Property Name="Damage" Type="nvarchar" MaxLength="1024" />
  1633. <Property Name="Measurement" Type="nvarchar" MaxLength="1024" />
  1634. <Property Name="FileId1" Type="int" />
  1635. <Property Name="FileId2" Type="int" />
  1636. <Property Name="FileId3" Type="int" />
  1637. <Property Name="CompanyId" Type="int" />
  1638. </EntityType>
  1639. <EntityType Name="FmsAccidentCodeType">
  1640. <Key>
  1641. <PropertyRef Name="SiteId" />
  1642. <PropertyRef Name="AccidentTypeId" />
  1643. </Key>
  1644. <Property Name="SiteId" Type="int" Nullable="false" />
  1645. <Property Name="AccidentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1646. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1647. <Property Name="IsUse" Type="bit" Nullable="false" />
  1648. </EntityType>
  1649. <EntityType Name="FmsBudget">
  1650. <Key>
  1651. <PropertyRef Name="SiteId" />
  1652. <PropertyRef Name="Year" />
  1653. </Key>
  1654. <Property Name="SiteId" Type="int" Nullable="false" />
  1655. <Property Name="Year" Type="int" Nullable="false" />
  1656. </EntityType>
  1657. <EntityType Name="FmsBudgetCodeClass">
  1658. <Key>
  1659. <PropertyRef Name="SiteId" />
  1660. <PropertyRef Name="BudgetClassId" />
  1661. </Key>
  1662. <Property Name="SiteId" Type="int" Nullable="false" />
  1663. <Property Name="BudgetClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1664. <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
  1665. <Property Name="RootBudgetClassId" Type="int" />
  1666. <Property Name="ParentBudgetClassId" Type="int" />
  1667. <Property Name="Depth" Type="int" Nullable="false" />
  1668. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1669. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  1670. <Property Name="IsUse" Type="bit" />
  1671. <Property Name="YearlyBudget" Type="float" />
  1672. <Property Name="MonthlyBudget" Type="float" />
  1673. </EntityType>
  1674. <EntityType Name="FmsBudgetDetail">
  1675. <Key>
  1676. <PropertyRef Name="SiteId" />
  1677. <PropertyRef Name="Year" />
  1678. <PropertyRef Name="BudgetClassId" />
  1679. <PropertyRef Name="ParentBudgetClassId" />
  1680. </Key>
  1681. <Property Name="SiteId" Type="int" Nullable="false" />
  1682. <Property Name="Year" Type="int" Nullable="false" />
  1683. <Property Name="BudgetClassId" Type="int" Nullable="false" />
  1684. <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
  1685. <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
  1686. <Property Name="RootBudgetClassId" Type="int" />
  1687. <Property Name="Depth" Type="int" Nullable="false" />
  1688. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1689. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  1690. <Property Name="IsUse" Type="bit" />
  1691. <Property Name="YearlyBudget" Type="float" Nullable="false" />
  1692. <Property Name="MonthlyBudget" Type="float" Nullable="false" />
  1693. </EntityType>
  1694. <EntityType Name="FmsBudgetDetailExecution">
  1695. <Key>
  1696. <PropertyRef Name="SiteId" />
  1697. <PropertyRef Name="Year" />
  1698. <PropertyRef Name="BudgetClassId" />
  1699. <PropertyRef Name="ParentBudgetClassId" />
  1700. <PropertyRef Name="Month" />
  1701. </Key>
  1702. <Property Name="SiteId" Type="int" Nullable="false" />
  1703. <Property Name="Year" Type="int" Nullable="false" />
  1704. <Property Name="BudgetClassId" Type="int" Nullable="false" />
  1705. <Property Name="RootBudgetClassId" Type="int" />
  1706. <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
  1707. <Property Name="Month" Type="int" Nullable="false" />
  1708. <Property Name="YearlyBudget" Type="float" Nullable="false" />
  1709. <Property Name="MonthlyBudget" Type="float" Nullable="false" />
  1710. <Property Name="YearlyExecution" Type="float" Nullable="false" />
  1711. <Property Name="MonthlyExecution" Type="float" Nullable="false" />
  1712. </EntityType>
  1713. <EntityType Name="FmsCompanyEstimationCodeClass">
  1714. <Key>
  1715. <PropertyRef Name="SiteId" />
  1716. <PropertyRef Name="CompanyEstimationClassId" />
  1717. </Key>
  1718. <Property Name="SiteId" Type="int" Nullable="false" />
  1719. <Property Name="CompanyEstimationClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1720. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  1721. <Property Name="IsUse" Type="bit" />
  1722. </EntityType>
  1723. <EntityType Name="FmsConstruction">
  1724. <Key>
  1725. <PropertyRef Name="SiteId" />
  1726. <PropertyRef Name="ConstructionId" />
  1727. </Key>
  1728. <Property Name="SiteId" Type="int" Nullable="false" />
  1729. <Property Name="ConstructionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1730. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1731. <Property Name="ConstructionTypeId" Type="int" Nullable="false" />
  1732. <Property Name="StartDate" Type="datetime" Nullable="false" />
  1733. <Property Name="EndDate" Type="datetime" Nullable="false" />
  1734. <Property Name="PartnerId" Type="int" Nullable="false" />
  1735. <Property Name="ConstructLocation" Type="nvarchar" MaxLength="256" Nullable="false" />
  1736. <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" Nullable="false" />
  1737. <Property Name="CommitmentMan" Type="smallint" />
  1738. <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1739. <Property Name="WeldWorkStartTime" Type="datetime" />
  1740. <Property Name="WeldWorkEndTime" Type="datetime" />
  1741. <Property Name="GasWorkStartTime" Type="datetime" />
  1742. <Property Name="GasWorkEndTime" Type="datetime" />
  1743. <Property Name="PaintWorkStartTime" Type="datetime" />
  1744. <Property Name="PaintWorkEndTime" Type="datetime" />
  1745. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1746. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  1747. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1748. <Property Name="UpdateDate" Type="datetime" Nullable="false" />
  1749. <Property Name="ConstructionDetail" Type="nvarchar" MaxLength="1024" />
  1750. <Property Name="InOutStockName" Type="nvarchar" MaxLength="1024" />
  1751. <Property Name="FileId1" Type="int" />
  1752. <Property Name="FileId2" Type="int" />
  1753. <Property Name="FileId3" Type="int" />
  1754. </EntityType>
  1755. <EntityType Name="FmsConstructionCodeProgress">
  1756. <Key>
  1757. <PropertyRef Name="ProgressId" />
  1758. </Key>
  1759. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  1760. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1761. <Property Name="Description" Type="nvarchar" MaxLength="100" />
  1762. </EntityType>
  1763. <EntityType Name="FmsConstructionCodeType">
  1764. <Key>
  1765. <PropertyRef Name="SiteId" />
  1766. <PropertyRef Name="ConstructionTypeId" />
  1767. </Key>
  1768. <Property Name="SiteId" Type="int" Nullable="false" />
  1769. <Property Name="ConstructionTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1770. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1771. <Property Name="IsUse" Type="bit" Nullable="false" />
  1772. </EntityType>
  1773. <EntityType Name="FmsConstructionEstimation">
  1774. <Key>
  1775. <PropertyRef Name="SiteId" />
  1776. <PropertyRef Name="ConstructionId" />
  1777. </Key>
  1778. <Property Name="SiteId" Type="int" Nullable="false" />
  1779. <Property Name="ConstructionId" Type="int" Nullable="false" />
  1780. <Property Name="EstimateDate" Type="datetime" Nullable="false" />
  1781. <Property Name="EstimateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1782. <Property Name="Safety01_CleanUp" Type="bit" />
  1783. <Property Name="Safety02_PersonalProtection" Type="bit" />
  1784. <Property Name="Safety03_FireExtinguisher" Type="bit" />
  1785. <Property Name="Safety04_HighPlaceWork" Type="bit" />
  1786. <Property Name="Safety05_Weld" Type="bit" />
  1787. <Property Name="Safety06_SurroundingCleanUp" Type="bit" />
  1788. <Property Name="Safety07_SurroundingHealthy" Type="bit" />
  1789. <Property Name="Safety08_Noise" Type="bit" />
  1790. <Property Name="Safety09_FacilityProtection" Type="bit" />
  1791. <Property Name="Safety10_Waste" Type="bit" />
  1792. <Property Name="Safety11_Execution" Type="bit" />
  1793. <Property Name="Safety12_Announcement" Type="bit" />
  1794. <Property Name="Ability01_Compliance" Type="bit" />
  1795. <Property Name="Ability02_Fault" Type="bit" />
  1796. <Property Name="Ability03_SkillLevel" Type="bit" />
  1797. <Property Name="Ability04_ProcessManagement" Type="bit" />
  1798. <Property Name="Ability05_Collaboration" Type="bit" />
  1799. <Property Name="Service01_Compliance" Type="bit" />
  1800. <Property Name="Service02_SkillLevel" Type="bit" />
  1801. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1802. <Property Name="TotalEstimateScore" Type="float" />
  1803. <Property Name="SafetyScore" Type="float" />
  1804. <Property Name="AbilityScore" Type="float" />
  1805. <Property Name="ServiceScore" Type="float" />
  1806. </EntityType>
  1807. <EntityType Name="FmsContract">
  1808. <Key>
  1809. <PropertyRef Name="SiteId" />
  1810. <PropertyRef Name="ContractId" />
  1811. </Key>
  1812. <Property Name="SiteId" Type="int" Nullable="false" />
  1813. <Property Name="ContractId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1814. <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
  1815. <Property Name="PartnerTypeId" Type="int" />
  1816. <Property Name="PartnerId" Type="int" />
  1817. <Property Name="ContractDate" Type="datetime" />
  1818. <Property Name="StartDate" Type="datetime" />
  1819. <Property Name="EndDate" Type="datetime" />
  1820. <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" />
  1821. <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" />
  1822. <Property Name="CommitmentMan" Type="smallint" />
  1823. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1824. <Property Name="ContractClassId" Type="int" />
  1825. <Property Name="ContractTypeId" Type="int" />
  1826. <Property Name="ContractMethodId" Type="int" />
  1827. <Property Name="PaymentTypeId" Type="int" />
  1828. </EntityType>
  1829. <EntityType Name="FmsContractClass">
  1830. <Key>
  1831. <PropertyRef Name="SiteId" />
  1832. <PropertyRef Name="ContractClassId" />
  1833. </Key>
  1834. <Property Name="SiteId" Type="int" Nullable="false" />
  1835. <Property Name="ContractClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1836. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1837. <Property Name="IsUse" Type="bit" />
  1838. </EntityType>
  1839. <EntityType Name="FmsContractMethod">
  1840. <Key>
  1841. <PropertyRef Name="SiteId" />
  1842. <PropertyRef Name="ContractMethodId" />
  1843. </Key>
  1844. <Property Name="SiteId" Type="int" Nullable="false" />
  1845. <Property Name="ContractMethodId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1846. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1847. <Property Name="IsUse" Type="bit" />
  1848. </EntityType>
  1849. <EntityType Name="FmsContractType">
  1850. <Key>
  1851. <PropertyRef Name="SiteId" />
  1852. <PropertyRef Name="ContractTypeId" />
  1853. </Key>
  1854. <Property Name="SiteId" Type="int" Nullable="false" />
  1855. <Property Name="ContractTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1856. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1857. <Property Name="IsUse" Type="bit" />
  1858. </EntityType>
  1859. <EntityType Name="FmsDailyCheckReport">
  1860. <Key>
  1861. <PropertyRef Name="SiteId" />
  1862. <PropertyRef Name="DailyCheckReportId" />
  1863. </Key>
  1864. <Property Name="SiteId" Type="int" Nullable="false" />
  1865. <Property Name="DailyCheckReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1866. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  1867. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  1868. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1869. <Property Name="AddDate" Type="datetime" Nullable="false" />
  1870. </EntityType>
  1871. <EntityType Name="FmsDailyReport">
  1872. <Key>
  1873. <PropertyRef Name="SiteId" />
  1874. <PropertyRef Name="AddDate" />
  1875. <PropertyRef Name="BusinessFieldId" />
  1876. </Key>
  1877. <Property Name="SiteId" Type="int" Nullable="false" />
  1878. <Property Name="DailyReportId" Type="int" />
  1879. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  1880. <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
  1881. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1882. <Property Name="AddDate" Type="date" Nullable="false" />
  1883. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  1884. <Property Name="Datas" Type="varchar(max)" />
  1885. <Property Name="ApproverUserId" Type="nvarchar" MaxLength="24" />
  1886. <Property Name="ApproveDate" Type="date" />
  1887. <Property Name="RegisterDate" Type="date" />
  1888. <Property Name="ApproverUserId2" Type="nvarchar" MaxLength="24" />
  1889. <Property Name="ApproveDate2" Type="date" />
  1890. <Property Name="ApproverUserId3" Type="nvarchar" MaxLength="24" />
  1891. <Property Name="ApproveDate3" Type="date" />
  1892. <Property Name="ApproverUserId4" Type="nvarchar" MaxLength="24" />
  1893. <Property Name="ApproveDate4" Type="date" />
  1894. <Property Name="ApproverUserId5" Type="nvarchar" MaxLength="24" />
  1895. <Property Name="ApproveDate5" Type="date" />
  1896. </EntityType>
  1897. <EntityType Name="FmsDrawing">
  1898. <Key>
  1899. <PropertyRef Name="SiteId" />
  1900. <PropertyRef Name="DrawingId" />
  1901. </Key>
  1902. <Property Name="SiteId" Type="int" Nullable="false" />
  1903. <Property Name="DrawingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1904. <Property Name="DrawingNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  1905. <Property Name="DrawingGroupId" Type="int" Nullable="false" />
  1906. <Property Name="DrawingTypeId" Type="int" Nullable="false" />
  1907. <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
  1908. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  1909. </EntityType>
  1910. <EntityType Name="FmsDrawingCodeGroup">
  1911. <Key>
  1912. <PropertyRef Name="SiteId" />
  1913. <PropertyRef Name="DrawingGroupId" />
  1914. </Key>
  1915. <Property Name="SiteId" Type="int" Nullable="false" />
  1916. <Property Name="DrawingGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1917. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1918. <Property Name="IsUse" Type="bit" />
  1919. </EntityType>
  1920. <EntityType Name="FmsDrawingCodeType">
  1921. <Key>
  1922. <PropertyRef Name="SiteId" />
  1923. <PropertyRef Name="DrawingTypeId" />
  1924. </Key>
  1925. <Property Name="SiteId" Type="int" Nullable="false" />
  1926. <Property Name="DrawingTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1927. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  1928. <Property Name="IsUse" Type="bit" />
  1929. </EntityType>
  1930. <EntityType Name="FmsDrawingHistory">
  1931. <Key>
  1932. <PropertyRef Name="SiteId" />
  1933. <PropertyRef Name="DrawingId" />
  1934. <PropertyRef Name="HistoryId" />
  1935. </Key>
  1936. <Property Name="SiteId" Type="int" Nullable="false" />
  1937. <Property Name="DrawingId" Type="int" Nullable="false" />
  1938. <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1939. <Property Name="RevisionNo" Type="int" />
  1940. <Property Name="FileId" Type="int" />
  1941. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  1942. <Property Name="UpdatedDate" Type="datetime" />
  1943. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  1944. </EntityType>
  1945. <EntityType Name="FmsEquipment">
  1946. <Key>
  1947. <PropertyRef Name="SiteId" />
  1948. <PropertyRef Name="EquipmentId" />
  1949. </Key>
  1950. <Property Name="SiteId" Type="int" Nullable="false" />
  1951. <Property Name="EquipmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1952. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  1953. <Property Name="EquipmentTypeId" Type="int" Nullable="false" />
  1954. <Property Name="WarehouseId" Type="int" />
  1955. <Property Name="Unit" Type="nvarchar" MaxLength="12" />
  1956. <Property Name="Standard" Type="nvarchar" MaxLength="20" />
  1957. <Property Name="AddDate" Type="datetime" />
  1958. <Property Name="UpdateDate" Type="datetime" />
  1959. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  1960. <Property Name="SupplierName" Type="nvarchar" MaxLength="256" />
  1961. <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
  1962. <Property Name="ImageFileId" Type="int" />
  1963. </EntityType>
  1964. <EntityType Name="FmsEquipmentCodeStateType">
  1965. <Key>
  1966. <PropertyRef Name="EquipmentStateTypeId" />
  1967. </Key>
  1968. <Property Name="EquipmentStateTypeId" Type="smallint" Nullable="false" />
  1969. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1970. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  1971. </EntityType>
  1972. <EntityType Name="FmsEquipmentCodeType">
  1973. <Key>
  1974. <PropertyRef Name="SiteId" />
  1975. <PropertyRef Name="EquipmentTypeId" />
  1976. </Key>
  1977. <Property Name="SiteId" Type="int" Nullable="false" />
  1978. <Property Name="EquipmentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1979. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  1980. <Property Name="IsUse" Type="bit" Nullable="false" />
  1981. <Property Name="Description" Type="nvarchar" MaxLength="255" />
  1982. </EntityType>
  1983. <EntityType Name="FmsEquipmentHistory">
  1984. <Key>
  1985. <PropertyRef Name="SiteId" />
  1986. <PropertyRef Name="EquipmentHistoryId" />
  1987. <PropertyRef Name="EquipmentId" />
  1988. </Key>
  1989. <Property Name="SiteId" Type="int" Nullable="false" />
  1990. <Property Name="EquipmentHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  1991. <Property Name="EquipmentId" Type="int" Nullable="false" />
  1992. <Property Name="TotalStockCount" Type="int" />
  1993. <Property Name="CurrentStockCount" Type="int" />
  1994. <Property Name="RentCount" Type="int" />
  1995. <Property Name="CurrentRentCount" Type="int" />
  1996. <Property Name="ReturnCount" Type="int" />
  1997. <Property Name="LossCount" Type="int" />
  1998. <Property Name="StoredCount" Type="int" />
  1999. <Property Name="EquipmentRentId" Type="int" />
  2000. <Property Name="EquipmentStateTypeId" Type="smallint" />
  2001. <Property Name="AddDate" Type="datetime" />
  2002. <Property Name="UpdateDate" Type="datetime" />
  2003. <Property Name="IsReturned" Type="bit" />
  2004. </EntityType>
  2005. <EntityType Name="FmsEquipmentRentInfo">
  2006. <Key>
  2007. <PropertyRef Name="SiteId" />
  2008. <PropertyRef Name="EquipmentRentId" />
  2009. </Key>
  2010. <Property Name="SiteId" Type="int" Nullable="false" />
  2011. <Property Name="EquipmentRentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2012. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2013. <Property Name="RentUserId" Type="nvarchar" MaxLength="24" />
  2014. <Property Name="RegisterDate" Type="nchar" MaxLength="10" />
  2015. <Property Name="RentDate" Type="datetime" />
  2016. <Property Name="ReturnDueDate" Type="datetime" />
  2017. <Property Name="ReturnFixDate" Type="datetime" />
  2018. <Property Name="EquipmentStateTypeId" Type="smallint" />
  2019. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2020. <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
  2021. <Property Name="RentUser" Type="nvarchar" MaxLength="128" />
  2022. </EntityType>
  2023. <EntityType Name="FmsFacilityCheckItem">
  2024. <Key>
  2025. <PropertyRef Name="SiteId" />
  2026. <PropertyRef Name="FacilityCode" />
  2027. <PropertyRef Name="CheckItemId" />
  2028. </Key>
  2029. <Property Name="SiteId" Type="int" Nullable="false" />
  2030. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2031. <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2032. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2033. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2034. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  2035. <Property Name="IsYesNoResult" Type="bit" Nullable="false" />
  2036. <Property Name="IsUse" Type="bit" />
  2037. </EntityType>
  2038. <EntityType Name="FmsFacilityCodeClass">
  2039. <Key>
  2040. <PropertyRef Name="SiteId" />
  2041. <PropertyRef Name="FacilityClassId" />
  2042. </Key>
  2043. <Property Name="SiteId" Type="int" Nullable="false" />
  2044. <Property Name="FacilityClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2045. <Property Name="ParentFacilityClassId" Type="int" />
  2046. <Property Name="Depth" Type="int" Nullable="false" />
  2047. <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
  2048. <Property Name="Abbreviation" Type="nvarchar" MaxLength="40" />
  2049. <Property Name="IsUse" Type="bit" />
  2050. </EntityType>
  2051. <EntityType Name="FmsFacilityManual">
  2052. <Key>
  2053. <PropertyRef Name="SiteId" />
  2054. <PropertyRef Name="FacilityCode" />
  2055. <PropertyRef Name="ManualId" />
  2056. </Key>
  2057. <Property Name="SiteId" Type="int" Nullable="false" />
  2058. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2059. <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2060. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2061. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  2062. <Property Name="Description" Type="nvarchar" MaxLength="1024" />
  2063. <Property Name="Keyword" Type="nvarchar" MaxLength="100" />
  2064. <Property Name="FileId" Type="int" />
  2065. <Property Name="IsUse" Type="bit" />
  2066. </EntityType>
  2067. <EntityType Name="FmsFacilityOperationItem">
  2068. <Key>
  2069. <PropertyRef Name="SiteId" />
  2070. <PropertyRef Name="ItemId" />
  2071. </Key>
  2072. <Property Name="SiteId" Type="int" Nullable="false" />
  2073. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2074. <Property Name="ItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2075. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  2076. <Property Name="ResultUnit" Type="nvarchar" MaxLength="10" Nullable="false" />
  2077. <Property Name="PointId" Type="nvarchar" MaxLength="50" />
  2078. <Property Name="SystemId" Type="int" />
  2079. <Property Name="EnergyCode" Type="bit" />
  2080. <Property Name="IsUse" Type="bit" />
  2081. <Property Name="SortOrderNo" Type="int" />
  2082. <Property Name="InsertedDate" Type="datetime" />
  2083. <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
  2084. <Property Name="UpdatedDate" Type="datetime" />
  2085. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2086. </EntityType>
  2087. <EntityType Name="FmsFacilityOperationReport">
  2088. <Key>
  2089. <PropertyRef Name="SiteId" />
  2090. <PropertyRef Name="FacilityOperationReportId" />
  2091. </Key>
  2092. <Property Name="SiteId" Type="int" Nullable="false" />
  2093. <Property Name="FacilityOperationReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2094. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2095. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  2096. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2097. <Property Name="AddDate" Type="datetime" Nullable="false" />
  2098. </EntityType>
  2099. <EntityType Name="FmsInvestmentCost">
  2100. <Key>
  2101. <PropertyRef Name="SiteId" />
  2102. <PropertyRef Name="InsvestmentCostId" />
  2103. </Key>
  2104. <Property Name="SiteId" Type="int" Nullable="false" />
  2105. <Property Name="InsvestmentCostId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2106. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  2107. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2108. <Property Name="InsvestmentCost" Type="float" Nullable="false" />
  2109. </EntityType>
  2110. <EntityType Name="FmsLicense">
  2111. <Key>
  2112. <PropertyRef Name="SiteId" />
  2113. <PropertyRef Name="LicenseId" />
  2114. </Key>
  2115. <Property Name="SiteId" Type="int" Nullable="false" />
  2116. <Property Name="LicenseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2117. <Property Name="Name" Type="nvarchar" MaxLength="52" Nullable="false" />
  2118. <Property Name="IssuingOffice" Type="nvarchar" MaxLength="52" Nullable="false" />
  2119. <Property Name="BusinessFieldId" Type="int" />
  2120. <Property Name="EducationalInstitute" Type="nvarchar" MaxLength="52" />
  2121. <Property Name="Note" Type="nvarchar" MaxLength="256" />
  2122. <Property Name="IsUse" Type="bit" />
  2123. </EntityType>
  2124. <EntityType Name="FmsManual">
  2125. <Key>
  2126. <PropertyRef Name="SiteId" />
  2127. <PropertyRef Name="ManualId" />
  2128. </Key>
  2129. <Property Name="SiteId" Type="int" Nullable="false" />
  2130. <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2131. <Property Name="ManualNo" Type="nvarchar" MaxLength="20" Nullable="false" />
  2132. <Property Name="ManualTypeId" Type="int" Nullable="false" />
  2133. <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
  2134. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2135. </EntityType>
  2136. <EntityType Name="FmsManualHistory">
  2137. <Key>
  2138. <PropertyRef Name="SiteId" />
  2139. <PropertyRef Name="ManualId" />
  2140. <PropertyRef Name="HistoryId" />
  2141. </Key>
  2142. <Property Name="SiteId" Type="int" Nullable="false" />
  2143. <Property Name="ManualId" Type="int" Nullable="false" />
  2144. <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2145. <Property Name="RevisionNo" Type="int" />
  2146. <Property Name="FileId" Type="int" />
  2147. <Property Name="Description" Type="nvarchar" MaxLength="2000" />
  2148. <Property Name="UpdatedDate" Type="datetime" />
  2149. <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
  2150. </EntityType>
  2151. <EntityType Name="FmsManualType">
  2152. <Key>
  2153. <PropertyRef Name="SiteId" />
  2154. <PropertyRef Name="ManualTypeId" />
  2155. </Key>
  2156. <Property Name="SiteId" Type="int" Nullable="false" />
  2157. <Property Name="ManualTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2158. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2159. <Property Name="IsUse" Type="bit" />
  2160. </EntityType>
  2161. <EntityType Name="FmsMaterial">
  2162. <Key>
  2163. <PropertyRef Name="SiteId" />
  2164. <PropertyRef Name="MaterialId" />
  2165. </Key>
  2166. <Property Name="SiteId" Type="int" Nullable="false" />
  2167. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2168. <Property Name="MaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2169. <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" Nullable="false" />
  2170. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2171. <Property Name="FirstClassId" Type="int" />
  2172. <Property Name="SecondClassId" Type="int" />
  2173. <Property Name="ThirdClassId" Type="int" />
  2174. <Property Name="LocationId" Type="int" />
  2175. <Property Name="MaterialTypeId" Type="int" />
  2176. <Property Name="WarehouseId" Type="int" />
  2177. <Property Name="TradeCompanyId" Type="int" />
  2178. <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
  2179. <Property Name="Unit" Type="nvarchar" MaxLength="12" />
  2180. <Property Name="DurableYears" Type="smallint" />
  2181. <Property Name="ReasonableStockCount" Type="smallint" />
  2182. <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
  2183. <Property Name="Standard" Type="nvarchar" MaxLength="20" />
  2184. <Property Name="FinalPrice" Type="int" />
  2185. <Property Name="ImageFileId" Type="int" />
  2186. <Property Name="Note" Type="nvarchar" MaxLength="512" />
  2187. <Property Name="IsDiscontinued" Type="bit" />
  2188. <Property Name="IsUse" Type="bit" Nullable="false" />
  2189. <Property Name="FinalStockCount" Type="int" Nullable="false" />
  2190. <Property Name="FinalTotalStockAmount" Type="int" Nullable="false" />
  2191. </EntityType>
  2192. <EntityType Name="FmsMaterialCarriedForward">
  2193. <Key>
  2194. <PropertyRef Name="SiteId" />
  2195. <PropertyRef Name="ClosedDate" />
  2196. <PropertyRef Name="BusinessFieldId" />
  2197. <PropertyRef Name="WarehouseId" />
  2198. <PropertyRef Name="MaterialId" />
  2199. </Key>
  2200. <Property Name="SiteId" Type="int" Nullable="false" />
  2201. <Property Name="ClosedDate" Type="datetime" Nullable="false" />
  2202. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2203. <Property Name="WarehouseId" Type="int" Nullable="false" />
  2204. <Property Name="MaterialId" Type="int" Nullable="false" />
  2205. <Property Name="StockCount" Type="int" Nullable="false" />
  2206. <Property Name="StockTotalCost" Type="int" Nullable="false" />
  2207. </EntityType>
  2208. <EntityType Name="FmsMaterialCodeAdjustmentType">
  2209. <Key>
  2210. <PropertyRef Name="AdjustmentTypeId" />
  2211. </Key>
  2212. <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
  2213. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2214. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2215. </EntityType>
  2216. <EntityType Name="FmsMaterialCodeClass">
  2217. <Key>
  2218. <PropertyRef Name="SiteId" />
  2219. <PropertyRef Name="MaterialClassId" />
  2220. </Key>
  2221. <Property Name="SiteId" Type="int" Nullable="false" />
  2222. <Property Name="MaterialClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2223. <Property Name="ParentMaterialClassId" Type="int" />
  2224. <Property Name="Depth" Type="int" Nullable="false" />
  2225. <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
  2226. <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
  2227. <Property Name="IsUse" Type="bit" />
  2228. </EntityType>
  2229. <EntityType Name="FmsMaterialCodeLocation">
  2230. <Key>
  2231. <PropertyRef Name="SiteId" />
  2232. <PropertyRef Name="LocationId" />
  2233. </Key>
  2234. <Property Name="SiteId" Type="int" Nullable="false" />
  2235. <Property Name="LocationId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2236. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2237. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2238. <Property Name="IsUse" Type="bit" Nullable="false" />
  2239. </EntityType>
  2240. <EntityType Name="FmsMaterialCodeProgress">
  2241. <Key>
  2242. <PropertyRef Name="ProgressId" />
  2243. </Key>
  2244. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  2245. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2246. <Property Name="Description" Type="nvarchar" MaxLength="100" />
  2247. </EntityType>
  2248. <EntityType Name="FmsMaterialCodePurchaseType">
  2249. <Key>
  2250. <PropertyRef Name="PurchaseTypeId" />
  2251. </Key>
  2252. <Property Name="PurchaseTypeId" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
  2253. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2254. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2255. </EntityType>
  2256. <EntityType Name="FmsMaterialCodeReleaseType">
  2257. <Key>
  2258. <PropertyRef Name="ReleaseTypeId" />
  2259. </Key>
  2260. <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
  2261. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2262. <Property Name="Description" Type="nvarchar" MaxLength="255" />
  2263. </EntityType>
  2264. <EntityType Name="FmsMaterialCodeType">
  2265. <Key>
  2266. <PropertyRef Name="SiteId" />
  2267. <PropertyRef Name="MaterialTypeId" />
  2268. </Key>
  2269. <Property Name="SiteId" Type="int" Nullable="false" />
  2270. <Property Name="MaterialTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2271. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2272. <Property Name="Nickname" Type="nvarchar" MaxLength="24" Nullable="false" />
  2273. <Property Name="IsUse" Type="bit" Nullable="false" />
  2274. </EntityType>
  2275. <EntityType Name="FmsMaterialPurchaseOrder">
  2276. <Key>
  2277. <PropertyRef Name="SiteId" />
  2278. <PropertyRef Name="PurchaseOrderId" />
  2279. </Key>
  2280. <Property Name="SiteId" Type="int" Nullable="false" />
  2281. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2282. <Property Name="PurchaseOrderId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2283. <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
  2284. <Property Name="TradeCompanyId" Type="int" />
  2285. <Property Name="OrderDate" Type="datetime" Nullable="false" />
  2286. <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2287. <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
  2288. <Property Name="Reason" Type="nvarchar" MaxLength="2000" />
  2289. <Property Name="StoredDueDate" Type="datetime" />
  2290. <Property Name="FileId" Type="int" />
  2291. </EntityType>
  2292. <EntityType Name="FmsMaterialPurchaseOrderMaterial">
  2293. <Key>
  2294. <PropertyRef Name="SiteId" />
  2295. <PropertyRef Name="PurchaseOrderId" />
  2296. <PropertyRef Name="MaterialId" />
  2297. </Key>
  2298. <Property Name="SiteId" Type="int" Nullable="false" />
  2299. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2300. <Property Name="PurchaseOrderId" Type="int" Nullable="false" />
  2301. <Property Name="MaterialId" Type="int" Nullable="false" />
  2302. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2303. <Property Name="UnitCost" Type="int" Nullable="false" />
  2304. </EntityType>
  2305. <EntityType Name="FmsMaterialPurchaseRequest">
  2306. <Key>
  2307. <PropertyRef Name="SiteId" />
  2308. <PropertyRef Name="PurchaseRequestId" />
  2309. </Key>
  2310. <Property Name="SiteId" Type="int" Nullable="false" />
  2311. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2312. <Property Name="PurchaseRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2313. <Property Name="PurchaseTypeId" Type="smallint" Nullable="false" />
  2314. <Property Name="RequestDate" Type="datetime" Nullable="false" />
  2315. <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2316. <Property Name="PurchaseHopeDate" Type="datetime" />
  2317. <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
  2318. <Property Name="Reason" Type="nvarchar" MaxLength="2000" Nullable="false" />
  2319. <Property Name="ProgressId" Type="smallint" Nullable="false" />
  2320. <Property Name="ApprovalDate" Type="datetime" />
  2321. <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
  2322. <Property Name="bSameOrder" Type="bit" />
  2323. </EntityType>
  2324. <EntityType Name="FmsMaterialPurchaseRequestMaterial">
  2325. <Key>
  2326. <PropertyRef Name="SiteId" />
  2327. <PropertyRef Name="PurchaseRequestId" />
  2328. <PropertyRef Name="MaterialId" />
  2329. </Key>
  2330. <Property Name="SiteId" Type="int" Nullable="false" />
  2331. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2332. <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
  2333. <Property Name="MaterialId" Type="int" Nullable="false" />
  2334. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2335. </EntityType>
  2336. <EntityType Name="FmsMaterialRelease">
  2337. <Key>
  2338. <PropertyRef Name="SiteId" />
  2339. <PropertyRef Name="MaterialReleaseId" />
  2340. </Key>
  2341. <Property Name="SiteId" Type="int" Nullable="false" />
  2342. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2343. <Property Name="ReleaseDate" Type="datetime" Nullable="false" />
  2344. <Property Name="MaterialReleaseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2345. <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
  2346. <Property Name="WorkRequestId" Type="int" />
  2347. <Property Name="WarehouseId" Type="int" />
  2348. <Property Name="MaterialId" Type="int" />
  2349. <Property Name="MaterialCount" Type="int" />
  2350. <Property Name="StockCountByPoint" Type="int" />
  2351. <Property Name="ReleaseTotalCost" Type="int" />
  2352. <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
  2353. <Property Name="AdjustmentUserId" Type="nvarchar" MaxLength="24" />
  2354. <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
  2355. <Property Name="ConfirmedDate" Type="datetime" />
  2356. <Property Name="IsConfirmed" Type="bit" Nullable="false" />
  2357. <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
  2358. </EntityType>
  2359. <EntityType Name="FmsMaterialStored">
  2360. <Key>
  2361. <PropertyRef Name="SiteId" />
  2362. <PropertyRef Name="MaterialStoredId" />
  2363. </Key>
  2364. <Property Name="SiteId" Type="int" Nullable="false" />
  2365. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2366. <Property Name="StoredDate" Type="datetime" Nullable="false" />
  2367. <Property Name="MaterialStoredId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2368. <Property Name="PurchaseOrderId" Type="int" />
  2369. <Property Name="WarehouseId" Type="int" Nullable="false" />
  2370. <Property Name="MaterialId" Type="int" Nullable="false" />
  2371. <Property Name="StoredCount" Type="int" Nullable="false" />
  2372. <Property Name="RemainStoredCount" Type="int" Nullable="false" />
  2373. <Property Name="UnitCost" Type="int" Nullable="false" />
  2374. <Property Name="StockCount" Type="int" Nullable="false" />
  2375. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  2376. <Property Name="StoredUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2377. <Property Name="ApprovalDate" Type="datetime" />
  2378. <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
  2379. <Property Name="IsApproval" Type="bit" Nullable="false" />
  2380. <Property Name="LocationInWarehouse" Type="nvarchar" MaxLength="100" />
  2381. </EntityType>
  2382. <EntityType Name="FmsMaterialTradeCompany">
  2383. <Key>
  2384. <PropertyRef Name="SiteId" />
  2385. <PropertyRef Name="TradeCompanyId" />
  2386. </Key>
  2387. <Property Name="SiteId" Type="int" Nullable="false" />
  2388. <Property Name="TradeCompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2389. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2390. <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" Nullable="false" />
  2391. <Property Name="RepresentativeName" Type="nvarchar" MaxLength="24" />
  2392. <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
  2393. <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
  2394. <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
  2395. <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
  2396. <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
  2397. <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
  2398. <Property Name="Address1" Type="nvarchar" MaxLength="100" />
  2399. <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
  2400. <Property Name="HomepageUri" Type="nvarchar" MaxLength="200" />
  2401. <Property Name="Note" Type="nvarchar" MaxLength="1024" />
  2402. <Property Name="IsUse" Type="bit" Nullable="false" />
  2403. </EntityType>
  2404. <EntityType Name="FmsMaterialWarehouse">
  2405. <Key>
  2406. <PropertyRef Name="SiteId" />
  2407. <PropertyRef Name="WarehouseId" />
  2408. </Key>
  2409. <Property Name="SiteId" Type="int" Nullable="false" />
  2410. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2411. <Property Name="WarehouseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2412. <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
  2413. <Property Name="IsUse" Type="bit" Nullable="false" />
  2414. </EntityType>
  2415. <EntityType Name="FmsMonthlyReport">
  2416. <Key>
  2417. <PropertyRef Name="SiteId" />
  2418. <PropertyRef Name="MonthlyReportId" />
  2419. </Key>
  2420. <Property Name="SiteId" Type="int" Nullable="false" />
  2421. <Property Name="MonthlyReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2422. <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2423. <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
  2424. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2425. <Property Name="AddDate" Type="datetime" Nullable="false" />
  2426. </EntityType>
  2427. <EntityType Name="FmsPaymentType">
  2428. <Key>
  2429. <PropertyRef Name="SiteId" />
  2430. <PropertyRef Name="PaymentTypeId" />
  2431. </Key>
  2432. <Property Name="SiteId" Type="int" Nullable="false" />
  2433. <Property Name="PaymentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2434. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2435. <Property Name="IsUse" Type="bit" />
  2436. </EntityType>
  2437. <EntityType Name="FmsReport">
  2438. <Key>
  2439. <PropertyRef Name="SiteId" />
  2440. <PropertyRef Name="RId" />
  2441. </Key>
  2442. <Property Name="SiteId" Type="int" Nullable="false" />
  2443. <Property Name="RId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2444. <Property Name="Title" Type="nvarchar" MaxLength="128" />
  2445. <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
  2446. <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" />
  2447. <Property Name="FileId" Type="int" />
  2448. <Property Name="MakeDate" Type="datetime" Nullable="false" />
  2449. <Property Name="ConfirmUserId1" Type="nvarchar" MaxLength="24" />
  2450. <Property Name="ConfirmUserId2" Type="nvarchar" MaxLength="24" />
  2451. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2452. </EntityType>
  2453. <EntityType Name="FmsWorkCodeCauseClass">
  2454. <Key>
  2455. <PropertyRef Name="SiteId" />
  2456. <PropertyRef Name="CauseClassId" />
  2457. </Key>
  2458. <Property Name="SiteId" Type="int" Nullable="false" />
  2459. <Property Name="CauseClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2460. <Property Name="ParentId" Type="int" Nullable="false" />
  2461. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2462. <Property Name="IsUse" Type="bit" />
  2463. </EntityType>
  2464. <EntityType Name="FmsWorkCodeCycleUnit">
  2465. <Key>
  2466. <PropertyRef Name="SiteId" />
  2467. <PropertyRef Name="CycleUnitId" />
  2468. </Key>
  2469. <Property Name="SiteId" Type="int" Nullable="false" />
  2470. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2471. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2472. <Property Name="Description" Type="nvarchar" MaxLength="200" />
  2473. </EntityType>
  2474. <EntityType Name="FmsWorkCodeEmergency">
  2475. <Key>
  2476. <PropertyRef Name="SiteId" />
  2477. <PropertyRef Name="EmergencyId" />
  2478. </Key>
  2479. <Property Name="SiteId" Type="int" Nullable="false" />
  2480. <Property Name="EmergencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2481. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  2482. <Property Name="IsUse" Type="bit" />
  2483. </EntityType>
  2484. <EntityType Name="FmsWorkCodeHolidayWorkType">
  2485. <Key>
  2486. <PropertyRef Name="SiteId" />
  2487. <PropertyRef Name="HolidayWorkTypeId" />
  2488. </Key>
  2489. <Property Name="SiteId" Type="int" Nullable="false" />
  2490. <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
  2491. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  2492. <Property Name="IsUse" Type="bit" />
  2493. </EntityType>
  2494. <EntityType Name="FmsWorkCodeLegalInspectionAgency">
  2495. <Key>
  2496. <PropertyRef Name="SiteId" />
  2497. <PropertyRef Name="InspectionAgencyId" />
  2498. </Key>
  2499. <Property Name="SiteId" Type="int" Nullable="false" />
  2500. <Property Name="InspectionAgencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2501. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2502. <Property Name="IsUse" Type="bit" />
  2503. </EntityType>
  2504. <EntityType Name="FmsWorkCodeProgress">
  2505. <Key>
  2506. <PropertyRef Name="WorkProgressId" />
  2507. </Key>
  2508. <Property Name="WorkProgressId" Type="int" Nullable="false" />
  2509. <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
  2510. <Property Name="Description" Type="nvarchar" MaxLength="512" />
  2511. </EntityType>
  2512. <EntityType Name="FmsWorkCodeType">
  2513. <Key>
  2514. <PropertyRef Name="WorkTypeId" />
  2515. </Key>
  2516. <Property Name="WorkTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2517. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  2518. <Property Name="Description" Type="nvarchar" MaxLength="512" />
  2519. </EntityType>
  2520. <EntityType Name="FmsWorkOrder">
  2521. <Key>
  2522. <PropertyRef Name="SiteId" />
  2523. <PropertyRef Name="WorkRequestId" />
  2524. </Key>
  2525. <Property Name="SiteId" Type="int" Nullable="false" />
  2526. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2527. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2528. <Property Name="EmergencyId" Type="int" />
  2529. <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2530. <Property Name="OrderDate" Type="datetime" Nullable="false" />
  2531. <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
  2532. <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
  2533. <Property Name="Content" Type="nvarchar" MaxLength="2000" />
  2534. </EntityType>
  2535. <EntityType Name="FmsWorkOrderToFacility">
  2536. <Key>
  2537. <PropertyRef Name="SiteId" />
  2538. <PropertyRef Name="WorkRequestId" />
  2539. <PropertyRef Name="FacilityCode" />
  2540. </Key>
  2541. <Property Name="SiteId" Type="int" Nullable="false" />
  2542. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2543. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2544. </EntityType>
  2545. <EntityType Name="FmsWorkRequest">
  2546. <Key>
  2547. <PropertyRef Name="SiteId" />
  2548. <PropertyRef Name="WorkRequestId" />
  2549. </Key>
  2550. <Property Name="SiteId" Type="int" Nullable="false" />
  2551. <Property Name="WorkRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2552. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2553. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2554. <Property Name="WorkScheduleId" Type="int" />
  2555. <Property Name="WorkProgressId" Type="int" Nullable="false" />
  2556. <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
  2557. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2558. <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" />
  2559. <Property Name="RequestDate" Type="datetime" Nullable="false" />
  2560. <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
  2561. <Property Name="RejectUserId" Type="nvarchar" MaxLength="24" />
  2562. <Property Name="RejectDate" Type="datetime" />
  2563. <Property Name="RejectReason" Type="nvarchar" MaxLength="512" />
  2564. <Property Name="InspectionAgencyId" Type="int" />
  2565. </EntityType>
  2566. <EntityType Name="FmsWorkRequestToFacility">
  2567. <Key>
  2568. <PropertyRef Name="SiteId" />
  2569. <PropertyRef Name="WorkRequestId" />
  2570. <PropertyRef Name="FacilityCode" />
  2571. </Key>
  2572. <Property Name="SiteId" Type="int" Nullable="false" />
  2573. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2574. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2575. </EntityType>
  2576. <EntityType Name="FmsWorkResult">
  2577. <Key>
  2578. <PropertyRef Name="SiteId" />
  2579. <PropertyRef Name="WorkRequestId" />
  2580. </Key>
  2581. <Property Name="SiteId" Type="int" Nullable="false" />
  2582. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2583. <Property Name="WorkerUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2584. <Property Name="StartDate" Type="datetime" Nullable="false" />
  2585. <Property Name="EndDate" Type="datetime" Nullable="false" />
  2586. <Property Name="CauseClassId" Type="int" />
  2587. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2588. <Property Name="ConfirmedDate" Type="datetime" />
  2589. <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
  2590. <Property Name="IsConfirmed" Type="bit" Nullable="false" />
  2591. <Property Name="ConfirmDesc" Type="nvarchar" MaxLength="1024" />
  2592. </EntityType>
  2593. <EntityType Name="FmsWorkResultCheckItem">
  2594. <Key>
  2595. <PropertyRef Name="CheckItemId" />
  2596. </Key>
  2597. <Property Name="SiteId" Type="int" Nullable="false" />
  2598. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2599. <Property Name="FacilityCode" Type="int" />
  2600. <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2601. <Property Name="BoolResult" Type="bit" />
  2602. <Property Name="TextResult" Type="nvarchar" MaxLength="1024" />
  2603. <Property Name="CheckDate" Type="datetime" Nullable="false" />
  2604. <Property Name="FileId1" Type="int" />
  2605. <Property Name="FileId2" Type="int" />
  2606. </EntityType>
  2607. <EntityType Name="FmsWorkResultCheckItemMaterial">
  2608. <Key>
  2609. <PropertyRef Name="CheckItemMaterialId" />
  2610. </Key>
  2611. <Property Name="SiteId" Type="int" Nullable="false" />
  2612. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2613. <Property Name="CheckItemId" Type="int" Nullable="false" />
  2614. <Property Name="CheckItemMaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2615. <Property Name="MaterialId" Type="int" Nullable="false" />
  2616. <Property Name="MaterialCount" Type="int" Nullable="false" />
  2617. <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" />
  2618. <Property Name="Name" Type="nvarchar" MaxLength="48" />
  2619. </EntityType>
  2620. <EntityType Name="FmsWorkResultFile">
  2621. <Key>
  2622. <PropertyRef Name="SiteId" />
  2623. <PropertyRef Name="WorkRequestId" />
  2624. </Key>
  2625. <Property Name="SiteId" Type="int" Nullable="false" />
  2626. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2627. <Property Name="FileId" Type="int" Nullable="false" />
  2628. </EntityType>
  2629. <EntityType Name="FmsWorkResultLaw">
  2630. <Key>
  2631. <PropertyRef Name="SiteId" />
  2632. <PropertyRef Name="WorkRequestId" />
  2633. </Key>
  2634. <Property Name="SiteId" Type="int" Nullable="false" />
  2635. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2636. <Property Name="CertificationNo" Type="nvarchar" MaxLength="50" />
  2637. <Property Name="CheckCommission" Type="numeric" Precision="10" Scale="0" />
  2638. <Property Name="CheckResult" Type="bit" />
  2639. </EntityType>
  2640. <EntityType Name="FmsWorkResultToFacility">
  2641. <Key>
  2642. <PropertyRef Name="SiteId" />
  2643. <PropertyRef Name="WorkRequestId" />
  2644. <PropertyRef Name="FacilityCode" />
  2645. </Key>
  2646. <Property Name="SiteId" Type="int" Nullable="false" />
  2647. <Property Name="WorkRequestId" Type="int" Nullable="false" />
  2648. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2649. </EntityType>
  2650. <EntityType Name="FmsWorkSchedule">
  2651. <Key>
  2652. <PropertyRef Name="SiteId" />
  2653. <PropertyRef Name="WorkScheduleId" />
  2654. </Key>
  2655. <Property Name="SiteId" Type="int" Nullable="false" />
  2656. <Property Name="WorkScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2657. <Property Name="WorkTypeId" Type="int" Nullable="false" />
  2658. <Property Name="BusinessFieldId" Type="int" Nullable="false" />
  2659. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  2660. <Property Name="InspectionAgencyId" Type="int" />
  2661. <Property Name="CycleSize" Type="int" Nullable="false" />
  2662. <Property Name="CycleUnitId" Type="int" Nullable="false" />
  2663. <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
  2664. <Property Name="WorkDueDate" Type="datetime" Nullable="false" />
  2665. <Property Name="UpdateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
  2666. <Property Name="IsUse" Type="bit" Nullable="false" />
  2667. <Property Name="IsAutoOrder" Type="bit" Nullable="false" />
  2668. <Property Name="Content" Type="nvarchar" MaxLength="1024" />
  2669. </EntityType>
  2670. <EntityType Name="FmsWorkScheduleToFacility">
  2671. <Key>
  2672. <PropertyRef Name="SiteId" />
  2673. <PropertyRef Name="WorkScheduleId" />
  2674. <PropertyRef Name="FacilityCode" />
  2675. </Key>
  2676. <Property Name="SiteId" Type="int" Nullable="false" />
  2677. <Property Name="WorkScheduleId" Type="int" Nullable="false" />
  2678. <Property Name="FacilityCode" Type="int" Nullable="false" />
  2679. </EntityType>
  2680. <EntityType Name="sysdiagrams">
  2681. <Key>
  2682. <PropertyRef Name="diagram_id" />
  2683. </Key>
  2684. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  2685. <Property Name="principal_id" Type="int" Nullable="false" />
  2686. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  2687. <Property Name="version" Type="int" />
  2688. <Property Name="definition" Type="varbinary(max)" />
  2689. </EntityType>
  2690. <EntityType Name="WeatherDongNaeForecast">
  2691. <Key>
  2692. <PropertyRef Name="BaseTime" />
  2693. <PropertyRef Name="ForecastTime" />
  2694. </Key>
  2695. <Property Name="BaseTime" Type="datetime" Nullable="false" />
  2696. <Property Name="nx" Type="int" />
  2697. <Property Name="ny" Type="int" />
  2698. <Property Name="ForecastTime" Type="datetime" Nullable="false" />
  2699. <Property Name="POP" Type="float" />
  2700. <Property Name="PTY" Type="float" />
  2701. <Property Name="R06" Type="float" />
  2702. <Property Name="REH" Type="float" />
  2703. <Property Name="S06" Type="float" />
  2704. <Property Name="SKY" Type="float" />
  2705. <Property Name="T3H" Type="float" />
  2706. <Property Name="TMN" Type="float" />
  2707. <Property Name="TMX" Type="float" />
  2708. <Property Name="UUU" Type="float" />
  2709. <Property Name="VVV" Type="float" />
  2710. <Property Name="VEC" Type="float" />
  2711. <Property Name="WSD" Type="float" />
  2712. <Property Name="Type" Type="int" />
  2713. <Property Name="DBTime" Type="datetime" />
  2714. <Property Name="Version" Type="int" />
  2715. </EntityType>
  2716. <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
  2717. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  2718. <End Role="BemsEnergyConfigPercentMonth" Type="Self.BemsEnergyConfigPercentMonth" Multiplicity="*" />
  2719. <ReferentialConstraint>
  2720. <Principal Role="CmSite">
  2721. <PropertyRef Name="SiteId" />
  2722. </Principal>
  2723. <Dependent Role="BemsEnergyConfigPercentMonth">
  2724. <PropertyRef Name="SiteId" />
  2725. </Dependent>
  2726. </ReferentialConstraint>
  2727. </Association>
  2728. <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
  2729. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  2730. <End Role="BemsEnergyConfigPercentWeek" Type="Self.BemsEnergyConfigPercentWeek" Multiplicity="*" />
  2731. <ReferentialConstraint>
  2732. <Principal Role="CmSite">
  2733. <PropertyRef Name="SiteId" />
  2734. </Principal>
  2735. <Dependent Role="BemsEnergyConfigPercentWeek">
  2736. <PropertyRef Name="SiteId" />
  2737. </Dependent>
  2738. </ReferentialConstraint>
  2739. </Association>
  2740. <Association Name="FK__BemsEnergyDaily__BemsFuelType">
  2741. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2742. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2743. <ReferentialConstraint>
  2744. <Principal Role="BemsFuelType">
  2745. <PropertyRef Name="FuelTypeId" />
  2746. </Principal>
  2747. <Dependent Role="BemsEnergyDaily">
  2748. <PropertyRef Name="FuelTypeId" />
  2749. </Dependent>
  2750. </ReferentialConstraint>
  2751. </Association>
  2752. <Association Name="FK__BemsEnergyDaily__BemsServiceType">
  2753. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="1" />
  2754. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2755. <ReferentialConstraint>
  2756. <Principal Role="BemsServiceType">
  2757. <PropertyRef Name="ServiceTypeId" />
  2758. </Principal>
  2759. <Dependent Role="BemsEnergyDaily">
  2760. <PropertyRef Name="ServiceTypeId" />
  2761. </Dependent>
  2762. </ReferentialConstraint>
  2763. </Association>
  2764. <Association Name="FK__BemsEnergyDaily__CmBuilding">
  2765. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  2766. <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
  2767. <ReferentialConstraint>
  2768. <Principal Role="CmBuilding">
  2769. <PropertyRef Name="SiteId" />
  2770. <PropertyRef Name="BuildingId" />
  2771. </Principal>
  2772. <Dependent Role="BemsEnergyDaily">
  2773. <PropertyRef Name="SiteId" />
  2774. <PropertyRef Name="BuildingId" />
  2775. </Dependent>
  2776. </ReferentialConstraint>
  2777. </Association>
  2778. <Association Name="FK__BemsFactorCo2__BemsFuelType">
  2779. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2780. <End Role="BemsFactorCo2" Type="Self.BemsFactorCo2" Multiplicity="0..1" />
  2781. <ReferentialConstraint>
  2782. <Principal Role="BemsFuelType">
  2783. <PropertyRef Name="FuelTypeId" />
  2784. </Principal>
  2785. <Dependent Role="BemsFactorCo2">
  2786. <PropertyRef Name="FuelTypeId" />
  2787. </Dependent>
  2788. </ReferentialConstraint>
  2789. </Association>
  2790. <Association Name="FK__BemsFactorToe__BemsFuelType">
  2791. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  2792. <End Role="BemsFactorToe" Type="Self.BemsFactorToe" Multiplicity="0..1" />
  2793. <ReferentialConstraint>
  2794. <Principal Role="BemsFuelType">
  2795. <PropertyRef Name="FuelTypeId" />
  2796. </Principal>
  2797. <Dependent Role="BemsFactorToe">
  2798. <PropertyRef Name="FuelTypeId" />
  2799. </Dependent>
  2800. </ReferentialConstraint>
  2801. </Association>
  2802. <Association Name="FK__BemsFormula__BemsFormulaBase">
  2803. <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
  2804. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
  2805. <ReferentialConstraint>
  2806. <Principal Role="BemsFormulaBase">
  2807. <PropertyRef Name="FacilityTypeId" />
  2808. <PropertyRef Name="FormulaId" />
  2809. </Principal>
  2810. <Dependent Role="BemsFormula">
  2811. <PropertyRef Name="FacilityTypeId" />
  2812. <PropertyRef Name="FormulaId" />
  2813. </Dependent>
  2814. </ReferentialConstraint>
  2815. </Association>
  2816. <Association Name="FK__BemsFormulaParameter__BemsFormula">
  2817. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  2818. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  2819. <ReferentialConstraint>
  2820. <Principal Role="BemsFormula">
  2821. <PropertyRef Name="SiteId" />
  2822. <PropertyRef Name="FacilityTypeId" />
  2823. <PropertyRef Name="FacilityCode" />
  2824. <PropertyRef Name="FormulaId" />
  2825. </Principal>
  2826. <Dependent Role="BemsFormulaParameter">
  2827. <PropertyRef Name="SiteId" />
  2828. <PropertyRef Name="FacilityTypeId" />
  2829. <PropertyRef Name="FacilityCode" />
  2830. <PropertyRef Name="FormulaId" />
  2831. </Dependent>
  2832. </ReferentialConstraint>
  2833. </Association>
  2834. <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
  2835. <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
  2836. <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
  2837. <ReferentialConstraint>
  2838. <Principal Role="BemsFormulaTable">
  2839. <PropertyRef Name="TableId" />
  2840. </Principal>
  2841. <Dependent Role="BemsFormulaTableValue">
  2842. <PropertyRef Name="TableId" />
  2843. </Dependent>
  2844. </ReferentialConstraint>
  2845. </Association>
  2846. <Association Name="FK__BemsMonitoringPo__1372D2FE">
  2847. <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
  2848. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  2849. <ReferentialConstraint>
  2850. <Principal Role="BemsAnalysisType">
  2851. <PropertyRef Name="SiteId" />
  2852. <PropertyRef Name="AnalysisType" />
  2853. </Principal>
  2854. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  2855. <PropertyRef Name="SiteId" />
  2856. <PropertyRef Name="AnalysisType" />
  2857. </Dependent>
  2858. </ReferentialConstraint>
  2859. </Association>
  2860. <Association Name="FK__BemsMonitoringPo__155B1B70">
  2861. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  2862. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  2863. <ReferentialConstraint>
  2864. <Principal Role="BemsMonitoringPoint">
  2865. <PropertyRef Name="SiteId" />
  2866. <PropertyRef Name="FacilityCode" />
  2867. <PropertyRef Name="PropertyId" />
  2868. </Principal>
  2869. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  2870. <PropertyRef Name="SiteId" />
  2871. <PropertyRef Name="FacilityCode" />
  2872. <PropertyRef Name="PropertyId" />
  2873. </Dependent>
  2874. </ReferentialConstraint>
  2875. </Association>
  2876. <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
  2877. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
  2878. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2879. <ReferentialConstraint>
  2880. <Principal Role="BemsFuelType">
  2881. <PropertyRef Name="FuelTypeId" />
  2882. </Principal>
  2883. <Dependent Role="BemsMonitoringPoint">
  2884. <PropertyRef Name="FuelTypeId" />
  2885. </Dependent>
  2886. </ReferentialConstraint>
  2887. </Association>
  2888. <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
  2889. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  2890. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2891. <ReferentialConstraint>
  2892. <Principal Role="BemsServiceType">
  2893. <PropertyRef Name="ServiceTypeId" />
  2894. </Principal>
  2895. <Dependent Role="BemsMonitoringPoint">
  2896. <PropertyRef Name="ServiceTypeId" />
  2897. </Dependent>
  2898. </ReferentialConstraint>
  2899. </Association>
  2900. <Association Name="FK__BemsMonitoringPoint__CmBuilding">
  2901. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
  2902. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2903. <ReferentialConstraint>
  2904. <Principal Role="CmBuilding">
  2905. <PropertyRef Name="SiteId" />
  2906. <PropertyRef Name="BuildingId" />
  2907. </Principal>
  2908. <Dependent Role="BemsMonitoringPoint">
  2909. <PropertyRef Name="SiteId" />
  2910. <PropertyRef Name="BuildingId" />
  2911. </Dependent>
  2912. </ReferentialConstraint>
  2913. </Association>
  2914. <Association Name="FK__BemsMonitoringPoint__CmFloor">
  2915. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
  2916. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2917. <ReferentialConstraint>
  2918. <Principal Role="CmFloor">
  2919. <PropertyRef Name="SiteId" />
  2920. <PropertyRef Name="BuildingId" />
  2921. <PropertyRef Name="FloorId" />
  2922. </Principal>
  2923. <Dependent Role="BemsMonitoringPoint">
  2924. <PropertyRef Name="SiteId" />
  2925. <PropertyRef Name="BuildingId" />
  2926. <PropertyRef Name="FloorId" />
  2927. </Dependent>
  2928. </ReferentialConstraint>
  2929. </Association>
  2930. <Association Name="FK__BemsMonitoringPoint__CmZone">
  2931. <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
  2932. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  2933. <ReferentialConstraint>
  2934. <Principal Role="CmZone">
  2935. <PropertyRef Name="SiteId" />
  2936. <PropertyRef Name="BuildingId" />
  2937. <PropertyRef Name="FloorId" />
  2938. <PropertyRef Name="ZoneId" />
  2939. </Principal>
  2940. <Dependent Role="BemsMonitoringPoint">
  2941. <PropertyRef Name="SiteId" />
  2942. <PropertyRef Name="BuildingId" />
  2943. <PropertyRef Name="FloorId" />
  2944. <PropertyRef Name="ZoneId" />
  2945. </Dependent>
  2946. </ReferentialConstraint>
  2947. </Association>
  2948. <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
  2949. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  2950. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  2951. <ReferentialConstraint>
  2952. <Principal Role="BemsFacilityType">
  2953. <PropertyRef Name="FacilityTypeId" />
  2954. </Principal>
  2955. <Dependent Role="BemsMonitoringPointBaseData">
  2956. <PropertyRef Name="FacilityTypeId" />
  2957. </Dependent>
  2958. </ReferentialConstraint>
  2959. </Association>
  2960. <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
  2961. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
  2962. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  2963. <ReferentialConstraint>
  2964. <Principal Role="BemsFuelType">
  2965. <PropertyRef Name="FuelTypeId" />
  2966. </Principal>
  2967. <Dependent Role="BemsMonitoringPointBaseData">
  2968. <PropertyRef Name="FuelTypeId" />
  2969. </Dependent>
  2970. </ReferentialConstraint>
  2971. </Association>
  2972. <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
  2973. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  2974. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  2975. <ReferentialConstraint>
  2976. <Principal Role="BemsServiceType">
  2977. <PropertyRef Name="ServiceTypeId" />
  2978. </Principal>
  2979. <Dependent Role="BemsMonitoringPointBaseData">
  2980. <PropertyRef Name="ServiceTypeId" />
  2981. </Dependent>
  2982. </ReferentialConstraint>
  2983. </Association>
  2984. <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  2985. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  2986. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  2987. <ReferentialConstraint>
  2988. <Principal Role="BemsFacilityType">
  2989. <PropertyRef Name="FacilityTypeId" />
  2990. </Principal>
  2991. <Dependent Role="BemsMonitoringPointHistory15min">
  2992. <PropertyRef Name="FacilityTypeId" />
  2993. </Dependent>
  2994. </ReferentialConstraint>
  2995. </Association>
  2996. <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  2997. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  2998. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  2999. <ReferentialConstraint>
  3000. <Principal Role="BemsMonitoringPoint">
  3001. <PropertyRef Name="SiteId" />
  3002. <PropertyRef Name="FacilityCode" />
  3003. <PropertyRef Name="PropertyId" />
  3004. </Principal>
  3005. <Dependent Role="BemsMonitoringPointHistory15min">
  3006. <PropertyRef Name="SiteId" />
  3007. <PropertyRef Name="FacilityCode" />
  3008. <PropertyRef Name="PropertyId" />
  3009. </Dependent>
  3010. </ReferentialConstraint>
  3011. </Association>
  3012. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  3013. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3014. <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  3015. <ReferentialConstraint>
  3016. <Principal Role="BemsFacilityType">
  3017. <PropertyRef Name="FacilityTypeId" />
  3018. </Principal>
  3019. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  3020. <PropertyRef Name="FacilityTypeId" />
  3021. </Dependent>
  3022. </ReferentialConstraint>
  3023. </Association>
  3024. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  3025. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3026. <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  3027. <ReferentialConstraint>
  3028. <Principal Role="BemsMonitoringPoint">
  3029. <PropertyRef Name="SiteId" />
  3030. <PropertyRef Name="FacilityCode" />
  3031. <PropertyRef Name="PropertyId" />
  3032. </Principal>
  3033. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  3034. <PropertyRef Name="SiteId" />
  3035. <PropertyRef Name="FacilityCode" />
  3036. <PropertyRef Name="PropertyId" />
  3037. </Dependent>
  3038. </ReferentialConstraint>
  3039. </Association>
  3040. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  3041. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3042. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  3043. <ReferentialConstraint>
  3044. <Principal Role="BemsFacilityType">
  3045. <PropertyRef Name="FacilityTypeId" />
  3046. </Principal>
  3047. <Dependent Role="BemsMonitoringPointHistoryDaily">
  3048. <PropertyRef Name="FacilityTypeId" />
  3049. </Dependent>
  3050. </ReferentialConstraint>
  3051. </Association>
  3052. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  3053. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3054. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  3055. <ReferentialConstraint>
  3056. <Principal Role="BemsMonitoringPoint">
  3057. <PropertyRef Name="SiteId" />
  3058. <PropertyRef Name="FacilityCode" />
  3059. <PropertyRef Name="PropertyId" />
  3060. </Principal>
  3061. <Dependent Role="BemsMonitoringPointHistoryDaily">
  3062. <PropertyRef Name="SiteId" />
  3063. <PropertyRef Name="FacilityCode" />
  3064. <PropertyRef Name="PropertyId" />
  3065. </Dependent>
  3066. </ReferentialConstraint>
  3067. </Association>
  3068. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  3069. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3070. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  3071. <ReferentialConstraint>
  3072. <Principal Role="BemsFacilityType">
  3073. <PropertyRef Name="FacilityTypeId" />
  3074. </Principal>
  3075. <Dependent Role="BemsMonitoringPointHistoryHourly">
  3076. <PropertyRef Name="FacilityTypeId" />
  3077. </Dependent>
  3078. </ReferentialConstraint>
  3079. </Association>
  3080. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  3081. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  3082. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  3083. <ReferentialConstraint>
  3084. <Principal Role="BemsMonitoringPoint">
  3085. <PropertyRef Name="SiteId" />
  3086. <PropertyRef Name="FacilityCode" />
  3087. <PropertyRef Name="PropertyId" />
  3088. </Principal>
  3089. <Dependent Role="BemsMonitoringPointHistoryHourly">
  3090. <PropertyRef Name="SiteId" />
  3091. <PropertyRef Name="FacilityCode" />
  3092. <PropertyRef Name="PropertyId" />
  3093. </Dependent>
  3094. </ReferentialConstraint>
  3095. </Association>
  3096. <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  3097. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  3098. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  3099. <ReferentialConstraint>
  3100. <Principal Role="BemsFacilityType">
  3101. <PropertyRef Name="FacilityTypeId" />
  3102. </Principal>
  3103. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  3104. <PropertyRef Name="FacilityTypeId" />
  3105. </Dependent>
  3106. </ReferentialConstraint>
  3107. </Association>
  3108. <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  3109. <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="1" />
  3110. <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="*" />
  3111. <ReferentialConstraint>
  3112. <Principal Role="BemsNoticePriceContractType">
  3113. <PropertyRef Name="FuelTypeId" />
  3114. <PropertyRef Name="ContractType" />
  3115. </Principal>
  3116. <Dependent Role="BemsNoticePriceBase">
  3117. <PropertyRef Name="FuelTypeId" />
  3118. <PropertyRef Name="ContractType" />
  3119. </Dependent>
  3120. </ReferentialConstraint>
  3121. </Association>
  3122. <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
  3123. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  3124. <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="*" />
  3125. <ReferentialConstraint>
  3126. <Principal Role="BemsFuelType">
  3127. <PropertyRef Name="FuelTypeId" />
  3128. </Principal>
  3129. <Dependent Role="BemsNoticePriceContractType">
  3130. <PropertyRef Name="FuelTypeId" />
  3131. </Dependent>
  3132. </ReferentialConstraint>
  3133. </Association>
  3134. <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  3135. <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="1" />
  3136. <End Role="BemsNoticePriceDetail" Type="Self.BemsNoticePriceDetail" Multiplicity="*" />
  3137. <ReferentialConstraint>
  3138. <Principal Role="BemsNoticePriceBase">
  3139. <PropertyRef Name="SiteId" />
  3140. <PropertyRef Name="FuelTypeId" />
  3141. <PropertyRef Name="ApplyDate" />
  3142. <PropertyRef Name="ContractType" />
  3143. </Principal>
  3144. <Dependent Role="BemsNoticePriceDetail">
  3145. <PropertyRef Name="SiteId" />
  3146. <PropertyRef Name="FuelTypeId" />
  3147. <PropertyRef Name="ApplyDate" />
  3148. <PropertyRef Name="ContractType" />
  3149. </Dependent>
  3150. </ReferentialConstraint>
  3151. </Association>
  3152. <Association Name="FK__CmCompany__345EC57D">
  3153. <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
  3154. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  3155. <ReferentialConstraint>
  3156. <Principal Role="CmCompanyType">
  3157. <PropertyRef Name="SiteId" />
  3158. <PropertyRef Name="CompanyTypeId" />
  3159. </Principal>
  3160. <Dependent Role="CmCompany">
  3161. <PropertyRef Name="SiteId" />
  3162. <PropertyRef Name="CompanyTypeId" />
  3163. </Dependent>
  3164. </ReferentialConstraint>
  3165. </Association>
  3166. <Association Name="FK__CmCompany__SiteI__336AA144">
  3167. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3168. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  3169. <ReferentialConstraint>
  3170. <Principal Role="CmSite">
  3171. <PropertyRef Name="SiteId" />
  3172. </Principal>
  3173. <Dependent Role="CmCompany">
  3174. <PropertyRef Name="SiteId" />
  3175. </Dependent>
  3176. </ReferentialConstraint>
  3177. </Association>
  3178. <Association Name="FK__CmDepartment__3552E9B6">
  3179. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
  3180. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
  3181. <ReferentialConstraint>
  3182. <Principal Role="CmCompany">
  3183. <PropertyRef Name="SiteId" />
  3184. <PropertyRef Name="CompanyId" />
  3185. </Principal>
  3186. <Dependent Role="CmDepartment">
  3187. <PropertyRef Name="SiteId" />
  3188. <PropertyRef Name="CompanyId" />
  3189. </Dependent>
  3190. </ReferentialConstraint>
  3191. </Association>
  3192. <Association Name="FK__CmFacility__CmFacility">
  3193. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
  3194. <End Role="CmFacility1" Type="Self.CmFacility" Multiplicity="*" />
  3195. <ReferentialConstraint>
  3196. <Principal Role="CmFacility">
  3197. <PropertyRef Name="SiteId" />
  3198. <PropertyRef Name="FacilityCode" />
  3199. </Principal>
  3200. <Dependent Role="CmFacility1">
  3201. <PropertyRef Name="SiteId" />
  3202. <PropertyRef Name="ParentFacilityCode" />
  3203. </Dependent>
  3204. </ReferentialConstraint>
  3205. </Association>
  3206. <Association Name="FK__CmFacilityFile__7720AD13">
  3207. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3208. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="*" />
  3209. <ReferentialConstraint>
  3210. <Principal Role="CmFacility">
  3211. <PropertyRef Name="SiteId" />
  3212. <PropertyRef Name="FacilityCode" />
  3213. </Principal>
  3214. <Dependent Role="CmFacilityFile">
  3215. <PropertyRef Name="SiteId" />
  3216. <PropertyRef Name="FacilityCode" />
  3217. </Dependent>
  3218. </ReferentialConstraint>
  3219. </Association>
  3220. <Association Name="FK__CmFacilityFile__CmFile">
  3221. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  3222. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
  3223. <ReferentialConstraint>
  3224. <Principal Role="CmFile">
  3225. <PropertyRef Name="SiteId" />
  3226. <PropertyRef Name="FileId" />
  3227. </Principal>
  3228. <Dependent Role="CmFacilityFile">
  3229. <PropertyRef Name="SiteId" />
  3230. <PropertyRef Name="FileId" />
  3231. </Dependent>
  3232. </ReferentialConstraint>
  3233. </Association>
  3234. <Association Name="FK__CmFacilityManual__79FD19BE">
  3235. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3236. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  3237. <ReferentialConstraint>
  3238. <Principal Role="CmFacility">
  3239. <PropertyRef Name="SiteId" />
  3240. <PropertyRef Name="FacilityCode" />
  3241. </Principal>
  3242. <Dependent Role="FmsFacilityManual">
  3243. <PropertyRef Name="SiteId" />
  3244. <PropertyRef Name="FacilityCode" />
  3245. </Dependent>
  3246. </ReferentialConstraint>
  3247. </Association>
  3248. <Association Name="FK__CmFacilityManual__7BE56230">
  3249. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3250. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  3251. <ReferentialConstraint>
  3252. <Principal Role="CmBusinessField">
  3253. <PropertyRef Name="SiteId" />
  3254. <PropertyRef Name="BusinessFieldId" />
  3255. </Principal>
  3256. <Dependent Role="FmsFacilityManual">
  3257. <PropertyRef Name="SiteId" />
  3258. <PropertyRef Name="BusinessFieldId" />
  3259. </Dependent>
  3260. </ReferentialConstraint>
  3261. </Association>
  3262. <Association Name="FK__CmFile__CmFileCategory">
  3263. <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
  3264. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  3265. <ReferentialConstraint>
  3266. <Principal Role="CmFileCategory">
  3267. <PropertyRef Name="FileCategoryId" />
  3268. </Principal>
  3269. <Dependent Role="CmFile">
  3270. <PropertyRef Name="FileCategoryId" />
  3271. </Dependent>
  3272. </ReferentialConstraint>
  3273. </Association>
  3274. <Association Name="FK__CmFile__SiteId__2759D01A">
  3275. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3276. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  3277. <ReferentialConstraint>
  3278. <Principal Role="CmSite">
  3279. <PropertyRef Name="SiteId" />
  3280. </Principal>
  3281. <Dependent Role="CmFile">
  3282. <PropertyRef Name="SiteId" />
  3283. </Dependent>
  3284. </ReferentialConstraint>
  3285. </Association>
  3286. <Association Name="FK__CmFloor__3CF40B7E">
  3287. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  3288. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
  3289. <ReferentialConstraint>
  3290. <Principal Role="CmBuilding">
  3291. <PropertyRef Name="SiteId" />
  3292. <PropertyRef Name="BuildingId" />
  3293. </Principal>
  3294. <Dependent Role="CmFloor">
  3295. <PropertyRef Name="SiteId" />
  3296. <PropertyRef Name="BuildingId" />
  3297. </Dependent>
  3298. </ReferentialConstraint>
  3299. </Association>
  3300. <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
  3301. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3302. <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
  3303. <ReferentialConstraint>
  3304. <Principal Role="CmSite">
  3305. <PropertyRef Name="SiteId" />
  3306. </Principal>
  3307. <Dependent Role="CmHoliday">
  3308. <PropertyRef Name="SiteId" />
  3309. </Dependent>
  3310. </ReferentialConstraint>
  3311. </Association>
  3312. <Association Name="FK__CmHoliday__SiteI__0D99FE17">
  3313. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3314. <End Role="CmHolidayWeekend" Type="Self.CmHolidayWeekend" Multiplicity="0..1" />
  3315. <ReferentialConstraint>
  3316. <Principal Role="CmSite">
  3317. <PropertyRef Name="SiteId" />
  3318. </Principal>
  3319. <Dependent Role="CmHolidayWeekend">
  3320. <PropertyRef Name="SiteId" />
  3321. </Dependent>
  3322. </ReferentialConstraint>
  3323. </Association>
  3324. <Association Name="FK__CmHoliday__SiteI__10766AC2">
  3325. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3326. <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
  3327. <ReferentialConstraint>
  3328. <Principal Role="CmSite">
  3329. <PropertyRef Name="SiteId" />
  3330. </Principal>
  3331. <Dependent Role="CmHolidayCustom">
  3332. <PropertyRef Name="SiteId" />
  3333. </Dependent>
  3334. </ReferentialConstraint>
  3335. </Association>
  3336. <Association Name="FK__CmHoliday__SiteI__65AC084E">
  3337. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3338. <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
  3339. <ReferentialConstraint>
  3340. <Principal Role="CmSite">
  3341. <PropertyRef Name="SiteId" />
  3342. </Principal>
  3343. <Dependent Role="CmHoliday">
  3344. <PropertyRef Name="SiteId" />
  3345. </Dependent>
  3346. </ReferentialConstraint>
  3347. </Association>
  3348. <Association Name="FK__CmHoliday__SiteI__66A02C87">
  3349. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3350. <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
  3351. <ReferentialConstraint>
  3352. <Principal Role="CmSite">
  3353. <PropertyRef Name="SiteId" />
  3354. </Principal>
  3355. <Dependent Role="CmHolidayCustom">
  3356. <PropertyRef Name="SiteId" />
  3357. </Dependent>
  3358. </ReferentialConstraint>
  3359. </Association>
  3360. <Association Name="FK__CmLocation__3DE82FB7">
  3361. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  3362. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  3363. <ReferentialConstraint>
  3364. <Principal Role="CmFloor">
  3365. <PropertyRef Name="SiteId" />
  3366. <PropertyRef Name="BuildingId" />
  3367. <PropertyRef Name="FloorId" />
  3368. </Principal>
  3369. <Dependent Role="CmZone">
  3370. <PropertyRef Name="SiteId" />
  3371. <PropertyRef Name="BuildingId" />
  3372. <PropertyRef Name="FloorId" />
  3373. </Dependent>
  3374. </ReferentialConstraint>
  3375. </Association>
  3376. <Association Name="FK__CmPositio__SiteI__6A70BD6B">
  3377. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3378. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
  3379. <ReferentialConstraint>
  3380. <Principal Role="CmSite">
  3381. <PropertyRef Name="SiteId" />
  3382. </Principal>
  3383. <Dependent Role="CmPosition">
  3384. <PropertyRef Name="SiteId" />
  3385. </Dependent>
  3386. </ReferentialConstraint>
  3387. </Association>
  3388. <Association Name="FK__CmUserGro__SiteI__53D770D6">
  3389. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3390. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="*" />
  3391. <ReferentialConstraint>
  3392. <Principal Role="CmSite">
  3393. <PropertyRef Name="SiteId" />
  3394. </Principal>
  3395. <Dependent Role="CmUserGroup">
  3396. <PropertyRef Name="SiteId" />
  3397. </Dependent>
  3398. </ReferentialConstraint>
  3399. </Association>
  3400. <Association Name="FK__CmUserGroupPermission__CmUserGroup">
  3401. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
  3402. <OnDelete Action="Cascade" />
  3403. </End>
  3404. <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
  3405. <ReferentialConstraint>
  3406. <Principal Role="CmUserGroup">
  3407. <PropertyRef Name="SiteId" />
  3408. <PropertyRef Name="UserGroupId" />
  3409. </Principal>
  3410. <Dependent Role="CmUserGroupPermission">
  3411. <PropertyRef Name="SiteId" />
  3412. <PropertyRef Name="UserGroupId" />
  3413. </Dependent>
  3414. </ReferentialConstraint>
  3415. </Association>
  3416. <Association Name="FK__CmUserPos__SiteI__44952D46">
  3417. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3418. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
  3419. <ReferentialConstraint>
  3420. <Principal Role="CmSite">
  3421. <PropertyRef Name="SiteId" />
  3422. </Principal>
  3423. <Dependent Role="CmPosition">
  3424. <PropertyRef Name="SiteId" />
  3425. </Dependent>
  3426. </ReferentialConstraint>
  3427. </Association>
  3428. <Association Name="FK__CmUserToLicense__CmUser">
  3429. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3430. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  3431. <ReferentialConstraint>
  3432. <Principal Role="CmUser">
  3433. <PropertyRef Name="SiteId" />
  3434. <PropertyRef Name="UserId" />
  3435. </Principal>
  3436. <Dependent Role="CmUserToLicense">
  3437. <PropertyRef Name="SiteId" />
  3438. <PropertyRef Name="UserId" />
  3439. </Dependent>
  3440. </ReferentialConstraint>
  3441. </Association>
  3442. <Association Name="FK__CmUserToLicense__FmsLicense">
  3443. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
  3444. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  3445. <ReferentialConstraint>
  3446. <Principal Role="FmsLicense">
  3447. <PropertyRef Name="SiteId" />
  3448. <PropertyRef Name="LicenseId" />
  3449. </Principal>
  3450. <Dependent Role="CmUserToLicense">
  3451. <PropertyRef Name="SiteId" />
  3452. <PropertyRef Name="LicenseId" />
  3453. </Dependent>
  3454. </ReferentialConstraint>
  3455. </Association>
  3456. <Association Name="FK__CmZone__CmBuilding">
  3457. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  3458. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  3459. <ReferentialConstraint>
  3460. <Principal Role="CmBuilding">
  3461. <PropertyRef Name="SiteId" />
  3462. <PropertyRef Name="BuildingId" />
  3463. </Principal>
  3464. <Dependent Role="CmZone">
  3465. <PropertyRef Name="SiteId" />
  3466. <PropertyRef Name="BuildingId" />
  3467. </Dependent>
  3468. </ReferentialConstraint>
  3469. </Association>
  3470. <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
  3471. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3472. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
  3473. <ReferentialConstraint>
  3474. <Principal Role="CmSite">
  3475. <PropertyRef Name="SiteId" />
  3476. </Principal>
  3477. <Dependent Role="FmsDrawingCodeGroup">
  3478. <PropertyRef Name="SiteId" />
  3479. </Dependent>
  3480. </ReferentialConstraint>
  3481. </Association>
  3482. <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
  3483. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3484. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
  3485. <ReferentialConstraint>
  3486. <Principal Role="CmSite">
  3487. <PropertyRef Name="SiteId" />
  3488. </Principal>
  3489. <Dependent Role="FmsDrawingCodeType">
  3490. <PropertyRef Name="SiteId" />
  3491. </Dependent>
  3492. </ReferentialConstraint>
  3493. </Association>
  3494. <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
  3495. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3496. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3497. <ReferentialConstraint>
  3498. <Principal Role="CmSite">
  3499. <PropertyRef Name="SiteId" />
  3500. </Principal>
  3501. <Dependent Role="FmsDrawing">
  3502. <PropertyRef Name="SiteId" />
  3503. </Dependent>
  3504. </ReferentialConstraint>
  3505. </Association>
  3506. <Association Name="FK__FmsDrawin__SiteI__6F357288">
  3507. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3508. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="*" />
  3509. <ReferentialConstraint>
  3510. <Principal Role="CmSite">
  3511. <PropertyRef Name="SiteId" />
  3512. </Principal>
  3513. <Dependent Role="FmsDrawingCodeGroup">
  3514. <PropertyRef Name="SiteId" />
  3515. </Dependent>
  3516. </ReferentialConstraint>
  3517. </Association>
  3518. <Association Name="FK__FmsDrawin__SiteI__702996C1">
  3519. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3520. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
  3521. <ReferentialConstraint>
  3522. <Principal Role="CmSite">
  3523. <PropertyRef Name="SiteId" />
  3524. </Principal>
  3525. <Dependent Role="FmsDrawingCodeType">
  3526. <PropertyRef Name="SiteId" />
  3527. </Dependent>
  3528. </ReferentialConstraint>
  3529. </Association>
  3530. <Association Name="FK__FmsDrawing__6E565CE8">
  3531. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
  3532. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3533. <ReferentialConstraint>
  3534. <Principal Role="FmsDrawingCodeGroup">
  3535. <PropertyRef Name="SiteId" />
  3536. <PropertyRef Name="DrawingGroupId" />
  3537. </Principal>
  3538. <Dependent Role="FmsDrawing">
  3539. <PropertyRef Name="SiteId" />
  3540. <PropertyRef Name="DrawingGroupId" />
  3541. </Dependent>
  3542. </ReferentialConstraint>
  3543. </Association>
  3544. <Association Name="FK__FmsDrawing__6F4A8121">
  3545. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
  3546. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  3547. <ReferentialConstraint>
  3548. <Principal Role="FmsDrawingCodeType">
  3549. <PropertyRef Name="SiteId" />
  3550. <PropertyRef Name="DrawingTypeId" />
  3551. </Principal>
  3552. <Dependent Role="FmsDrawing">
  3553. <PropertyRef Name="SiteId" />
  3554. <PropertyRef Name="DrawingTypeId" />
  3555. </Dependent>
  3556. </ReferentialConstraint>
  3557. </Association>
  3558. <Association Name="FK__FmsDrawingHistor__04DA9AE4">
  3559. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  3560. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3561. <ReferentialConstraint>
  3562. <Principal Role="CmFile">
  3563. <PropertyRef Name="SiteId" />
  3564. <PropertyRef Name="FileId" />
  3565. </Principal>
  3566. <Dependent Role="FmsDrawingHistory">
  3567. <PropertyRef Name="SiteId" />
  3568. <PropertyRef Name="FileId" />
  3569. </Dependent>
  3570. </ReferentialConstraint>
  3571. </Association>
  3572. <Association Name="FK__FmsDrawingHistor__7132C993">
  3573. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1">
  3574. <OnDelete Action="Cascade" />
  3575. </End>
  3576. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3577. <ReferentialConstraint>
  3578. <Principal Role="FmsDrawing">
  3579. <PropertyRef Name="SiteId" />
  3580. <PropertyRef Name="DrawingId" />
  3581. </Principal>
  3582. <Dependent Role="FmsDrawingHistory">
  3583. <PropertyRef Name="SiteId" />
  3584. <PropertyRef Name="DrawingId" />
  3585. </Dependent>
  3586. </ReferentialConstraint>
  3587. </Association>
  3588. <Association Name="FK__FmsDrawingHistory__CmUser">
  3589. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  3590. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  3591. <ReferentialConstraint>
  3592. <Principal Role="CmUser">
  3593. <PropertyRef Name="SiteId" />
  3594. <PropertyRef Name="UserId" />
  3595. </Principal>
  3596. <Dependent Role="FmsDrawingHistory">
  3597. <PropertyRef Name="SiteId" />
  3598. <PropertyRef Name="UpdatedUserId" />
  3599. </Dependent>
  3600. </ReferentialConstraint>
  3601. </Association>
  3602. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  3603. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  3604. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  3605. <ReferentialConstraint>
  3606. <Principal Role="FmsWorkCodeCycleUnit">
  3607. <PropertyRef Name="SiteId" />
  3608. <PropertyRef Name="CycleUnitId" />
  3609. </Principal>
  3610. <Dependent Role="FmsFacilityCheckItem">
  3611. <PropertyRef Name="SiteId" />
  3612. <PropertyRef Name="CycleUnitId" />
  3613. </Dependent>
  3614. </ReferentialConstraint>
  3615. </Association>
  3616. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  3617. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  3618. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  3619. <ReferentialConstraint>
  3620. <Principal Role="FmsWorkCodeType">
  3621. <PropertyRef Name="WorkTypeId" />
  3622. </Principal>
  3623. <Dependent Role="FmsFacilityCheckItem">
  3624. <PropertyRef Name="WorkTypeId" />
  3625. </Dependent>
  3626. </ReferentialConstraint>
  3627. </Association>
  3628. <Association Name="FK__FmsFacilityCodeClass__CmSite">
  3629. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1">
  3630. <OnDelete Action="Cascade" />
  3631. </End>
  3632. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  3633. <ReferentialConstraint>
  3634. <Principal Role="CmSite">
  3635. <PropertyRef Name="SiteId" />
  3636. </Principal>
  3637. <Dependent Role="FmsFacilityCodeClass">
  3638. <PropertyRef Name="SiteId" />
  3639. </Dependent>
  3640. </ReferentialConstraint>
  3641. </Association>
  3642. <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  3643. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
  3644. <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  3645. <ReferentialConstraint>
  3646. <Principal Role="FmsFacilityCodeClass">
  3647. <PropertyRef Name="SiteId" />
  3648. <PropertyRef Name="FacilityClassId" />
  3649. </Principal>
  3650. <Dependent Role="FmsFacilityCodeClass1">
  3651. <PropertyRef Name="SiteId" />
  3652. <PropertyRef Name="ParentFacilityClassId" />
  3653. </Dependent>
  3654. </ReferentialConstraint>
  3655. </Association>
  3656. <Association Name="FK__FmsFacilityOpera__725BF7F6">
  3657. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  3658. <End Role="FmsFacilityOperationItem" Type="Self.FmsFacilityOperationItem" Multiplicity="0..1" />
  3659. <ReferentialConstraint>
  3660. <Principal Role="CmFacility">
  3661. <PropertyRef Name="SiteId" />
  3662. <PropertyRef Name="FacilityCode" />
  3663. </Principal>
  3664. <Dependent Role="FmsFacilityOperationItem">
  3665. <PropertyRef Name="SiteId" />
  3666. <PropertyRef Name="ItemId" />
  3667. </Dependent>
  3668. </ReferentialConstraint>
  3669. </Association>
  3670. <Association Name="FK__FmsLicense__CmBusinessField">
  3671. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  3672. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  3673. <ReferentialConstraint>
  3674. <Principal Role="CmBusinessField">
  3675. <PropertyRef Name="SiteId" />
  3676. <PropertyRef Name="BusinessFieldId" />
  3677. </Principal>
  3678. <Dependent Role="FmsLicense">
  3679. <PropertyRef Name="SiteId" />
  3680. <PropertyRef Name="BusinessFieldId" />
  3681. </Dependent>
  3682. </ReferentialConstraint>
  3683. </Association>
  3684. <Association Name="FK__FmsLicense__CmSite">
  3685. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3686. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  3687. <ReferentialConstraint>
  3688. <Principal Role="CmSite">
  3689. <PropertyRef Name="SiteId" />
  3690. </Principal>
  3691. <Dependent Role="FmsLicense">
  3692. <PropertyRef Name="SiteId" />
  3693. </Dependent>
  3694. </ReferentialConstraint>
  3695. </Association>
  3696. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  3697. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3698. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3699. <ReferentialConstraint>
  3700. <Principal Role="FmsMaterialCodeClass">
  3701. <PropertyRef Name="SiteId" />
  3702. <PropertyRef Name="MaterialClassId" />
  3703. </Principal>
  3704. <Dependent Role="FmsMaterial">
  3705. <PropertyRef Name="SiteId" />
  3706. <PropertyRef Name="FirstClassId" />
  3707. </Dependent>
  3708. </ReferentialConstraint>
  3709. </Association>
  3710. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  3711. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3712. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3713. <ReferentialConstraint>
  3714. <Principal Role="FmsMaterialCodeClass">
  3715. <PropertyRef Name="SiteId" />
  3716. <PropertyRef Name="MaterialClassId" />
  3717. </Principal>
  3718. <Dependent Role="FmsMaterial">
  3719. <PropertyRef Name="SiteId" />
  3720. <PropertyRef Name="SecondClassId" />
  3721. </Dependent>
  3722. </ReferentialConstraint>
  3723. </Association>
  3724. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  3725. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3726. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  3727. <ReferentialConstraint>
  3728. <Principal Role="FmsMaterialCodeClass">
  3729. <PropertyRef Name="SiteId" />
  3730. <PropertyRef Name="MaterialClassId" />
  3731. </Principal>
  3732. <Dependent Role="FmsMaterial">
  3733. <PropertyRef Name="SiteId" />
  3734. <PropertyRef Name="ThirdClassId" />
  3735. </Dependent>
  3736. </ReferentialConstraint>
  3737. </Association>
  3738. <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
  3739. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3740. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  3741. <ReferentialConstraint>
  3742. <Principal Role="CmBusinessField">
  3743. <PropertyRef Name="SiteId" />
  3744. <PropertyRef Name="BusinessFieldId" />
  3745. </Principal>
  3746. <Dependent Role="FmsMaterialCarriedForward">
  3747. <PropertyRef Name="SiteId" />
  3748. <PropertyRef Name="BusinessFieldId" />
  3749. </Dependent>
  3750. </ReferentialConstraint>
  3751. </Association>
  3752. <Association Name="FK__FmsMaterialCarriedForward__CmSite">
  3753. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3754. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  3755. <ReferentialConstraint>
  3756. <Principal Role="CmSite">
  3757. <PropertyRef Name="SiteId" />
  3758. </Principal>
  3759. <Dependent Role="FmsMaterialCarriedForward">
  3760. <PropertyRef Name="SiteId" />
  3761. </Dependent>
  3762. </ReferentialConstraint>
  3763. </Association>
  3764. <Association Name="FK__FmsMaterialCodeClass__CmSite">
  3765. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3766. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3767. <ReferentialConstraint>
  3768. <Principal Role="CmSite">
  3769. <PropertyRef Name="SiteId" />
  3770. </Principal>
  3771. <Dependent Role="FmsMaterialCodeClass">
  3772. <PropertyRef Name="SiteId" />
  3773. </Dependent>
  3774. </ReferentialConstraint>
  3775. </Association>
  3776. <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  3777. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  3778. <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3779. <ReferentialConstraint>
  3780. <Principal Role="FmsMaterialCodeClass">
  3781. <PropertyRef Name="SiteId" />
  3782. <PropertyRef Name="MaterialClassId" />
  3783. </Principal>
  3784. <Dependent Role="FmsMaterialCodeClass1">
  3785. <PropertyRef Name="SiteId" />
  3786. <PropertyRef Name="ParentMaterialClassId" />
  3787. </Dependent>
  3788. </ReferentialConstraint>
  3789. </Association>
  3790. <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
  3791. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3792. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  3793. <ReferentialConstraint>
  3794. <Principal Role="CmBusinessField">
  3795. <PropertyRef Name="SiteId" />
  3796. <PropertyRef Name="BusinessFieldId" />
  3797. </Principal>
  3798. <Dependent Role="FmsMaterialCodeLocation">
  3799. <PropertyRef Name="SiteId" />
  3800. <PropertyRef Name="BusinessFieldId" />
  3801. </Dependent>
  3802. </ReferentialConstraint>
  3803. </Association>
  3804. <Association Name="FK__FmsMaterialCodeLocation__CmSite">
  3805. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3806. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  3807. <ReferentialConstraint>
  3808. <Principal Role="CmSite">
  3809. <PropertyRef Name="SiteId" />
  3810. </Principal>
  3811. <Dependent Role="FmsMaterialCodeLocation">
  3812. <PropertyRef Name="SiteId" />
  3813. </Dependent>
  3814. </ReferentialConstraint>
  3815. </Association>
  3816. <Association Name="FK__FmsMaterialCodeType__CmSite">
  3817. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3818. <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="*" />
  3819. <ReferentialConstraint>
  3820. <Principal Role="CmSite">
  3821. <PropertyRef Name="SiteId" />
  3822. </Principal>
  3823. <Dependent Role="FmsMaterialCodeType">
  3824. <PropertyRef Name="SiteId" />
  3825. </Dependent>
  3826. </ReferentialConstraint>
  3827. </Association>
  3828. <Association Name="FK__FmsMaterialOrder__CmBusinessField">
  3829. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3830. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3831. <ReferentialConstraint>
  3832. <Principal Role="CmBusinessField">
  3833. <PropertyRef Name="SiteId" />
  3834. <PropertyRef Name="BusinessFieldId" />
  3835. </Principal>
  3836. <Dependent Role="FmsMaterialPurchaseOrder">
  3837. <PropertyRef Name="SiteId" />
  3838. <PropertyRef Name="BusinessFieldId" />
  3839. </Dependent>
  3840. </ReferentialConstraint>
  3841. </Association>
  3842. <Association Name="FK__FmsMaterialOrder__CmSite">
  3843. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3844. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3845. <ReferentialConstraint>
  3846. <Principal Role="CmSite">
  3847. <PropertyRef Name="SiteId" />
  3848. </Principal>
  3849. <Dependent Role="FmsMaterialPurchaseOrder">
  3850. <PropertyRef Name="SiteId" />
  3851. </Dependent>
  3852. </ReferentialConstraint>
  3853. </Association>
  3854. <Association Name="FK__FmsMaterialOrder__CmUser">
  3855. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3856. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3857. <ReferentialConstraint>
  3858. <Principal Role="CmUser">
  3859. <PropertyRef Name="SiteId" />
  3860. <PropertyRef Name="UserId" />
  3861. </Principal>
  3862. <Dependent Role="FmsMaterialPurchaseOrder">
  3863. <PropertyRef Name="SiteId" />
  3864. <PropertyRef Name="OrderUserId" />
  3865. </Dependent>
  3866. </ReferentialConstraint>
  3867. </Association>
  3868. <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
  3869. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  3870. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3871. <ReferentialConstraint>
  3872. <Principal Role="CmFile">
  3873. <PropertyRef Name="SiteId" />
  3874. <PropertyRef Name="FileId" />
  3875. </Principal>
  3876. <Dependent Role="FmsMaterialPurchaseOrder">
  3877. <PropertyRef Name="SiteId" />
  3878. <PropertyRef Name="FileId" />
  3879. </Dependent>
  3880. </ReferentialConstraint>
  3881. </Association>
  3882. <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  3883. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  3884. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3885. <ReferentialConstraint>
  3886. <Principal Role="FmsMaterialTradeCompany">
  3887. <PropertyRef Name="SiteId" />
  3888. <PropertyRef Name="TradeCompanyId" />
  3889. </Principal>
  3890. <Dependent Role="FmsMaterialPurchaseOrder">
  3891. <PropertyRef Name="SiteId" />
  3892. <PropertyRef Name="TradeCompanyId" />
  3893. </Dependent>
  3894. </ReferentialConstraint>
  3895. </Association>
  3896. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  3897. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3898. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3899. <ReferentialConstraint>
  3900. <Principal Role="CmUser">
  3901. <PropertyRef Name="SiteId" />
  3902. <PropertyRef Name="UserId" />
  3903. </Principal>
  3904. <Dependent Role="FmsMaterialPurchaseRequest">
  3905. <PropertyRef Name="SiteId" />
  3906. <PropertyRef Name="RequestUserId" />
  3907. </Dependent>
  3908. </ReferentialConstraint>
  3909. </Association>
  3910. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  3911. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  3912. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3913. <ReferentialConstraint>
  3914. <Principal Role="CmUser">
  3915. <PropertyRef Name="SiteId" />
  3916. <PropertyRef Name="UserId" />
  3917. </Principal>
  3918. <Dependent Role="FmsMaterialPurchaseRequest">
  3919. <PropertyRef Name="SiteId" />
  3920. <PropertyRef Name="ApprovalUserId" />
  3921. </Dependent>
  3922. </ReferentialConstraint>
  3923. </Association>
  3924. <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
  3925. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3926. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3927. <ReferentialConstraint>
  3928. <Principal Role="CmBusinessField">
  3929. <PropertyRef Name="SiteId" />
  3930. <PropertyRef Name="BusinessFieldId" />
  3931. </Principal>
  3932. <Dependent Role="FmsMaterialPurchaseRequest">
  3933. <PropertyRef Name="SiteId" />
  3934. <PropertyRef Name="BusinessFieldId" />
  3935. </Dependent>
  3936. </ReferentialConstraint>
  3937. </Association>
  3938. <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
  3939. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3940. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3941. <ReferentialConstraint>
  3942. <Principal Role="CmSite">
  3943. <PropertyRef Name="SiteId" />
  3944. </Principal>
  3945. <Dependent Role="FmsMaterialPurchaseRequest">
  3946. <PropertyRef Name="SiteId" />
  3947. </Dependent>
  3948. </ReferentialConstraint>
  3949. </Association>
  3950. <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  3951. <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
  3952. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3953. <ReferentialConstraint>
  3954. <Principal Role="FmsMaterialCodeProgress">
  3955. <PropertyRef Name="ProgressId" />
  3956. </Principal>
  3957. <Dependent Role="FmsMaterialPurchaseRequest">
  3958. <PropertyRef Name="ProgressId" />
  3959. </Dependent>
  3960. </ReferentialConstraint>
  3961. </Association>
  3962. <Association Name="FK__FmsMaterialStored__CmBusinessField">
  3963. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  3964. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  3965. <ReferentialConstraint>
  3966. <Principal Role="CmBusinessField">
  3967. <PropertyRef Name="SiteId" />
  3968. <PropertyRef Name="BusinessFieldId" />
  3969. </Principal>
  3970. <Dependent Role="FmsMaterialStored">
  3971. <PropertyRef Name="SiteId" />
  3972. <PropertyRef Name="BusinessFieldId" />
  3973. </Dependent>
  3974. </ReferentialConstraint>
  3975. </Association>
  3976. <Association Name="FK__FmsMaterialStored__CmSite">
  3977. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  3978. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  3979. <ReferentialConstraint>
  3980. <Principal Role="CmSite">
  3981. <PropertyRef Name="SiteId" />
  3982. </Principal>
  3983. <Dependent Role="FmsMaterialStored">
  3984. <PropertyRef Name="SiteId" />
  3985. </Dependent>
  3986. </ReferentialConstraint>
  3987. </Association>
  3988. <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
  3989. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  3990. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  3991. <ReferentialConstraint>
  3992. <Principal Role="CmUser">
  3993. <PropertyRef Name="SiteId" />
  3994. <PropertyRef Name="UserId" />
  3995. </Principal>
  3996. <Dependent Role="FmsMaterialStored">
  3997. <PropertyRef Name="SiteId" />
  3998. <PropertyRef Name="StoredUserId" />
  3999. </Dependent>
  4000. </ReferentialConstraint>
  4001. </Association>
  4002. <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  4003. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4004. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  4005. <ReferentialConstraint>
  4006. <Principal Role="CmUser">
  4007. <PropertyRef Name="SiteId" />
  4008. <PropertyRef Name="UserId" />
  4009. </Principal>
  4010. <Dependent Role="FmsMaterialStored">
  4011. <PropertyRef Name="SiteId" />
  4012. <PropertyRef Name="ApprovalUserId" />
  4013. </Dependent>
  4014. </ReferentialConstraint>
  4015. </Association>
  4016. <Association Name="FK__FmsMaterialTradeCompany__CmSite">
  4017. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4018. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="*" />
  4019. <ReferentialConstraint>
  4020. <Principal Role="CmSite">
  4021. <PropertyRef Name="SiteId" />
  4022. </Principal>
  4023. <Dependent Role="FmsMaterialTradeCompany">
  4024. <PropertyRef Name="SiteId" />
  4025. </Dependent>
  4026. </ReferentialConstraint>
  4027. </Association>
  4028. <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
  4029. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4030. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  4031. <ReferentialConstraint>
  4032. <Principal Role="CmBusinessField">
  4033. <PropertyRef Name="SiteId" />
  4034. <PropertyRef Name="BusinessFieldId" />
  4035. </Principal>
  4036. <Dependent Role="FmsMaterialWarehouse">
  4037. <PropertyRef Name="SiteId" />
  4038. <PropertyRef Name="BusinessFieldId" />
  4039. </Dependent>
  4040. </ReferentialConstraint>
  4041. </Association>
  4042. <Association Name="FK__FmsMaterialWarehouse__CmSite">
  4043. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4044. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  4045. <ReferentialConstraint>
  4046. <Principal Role="CmSite">
  4047. <PropertyRef Name="SiteId" />
  4048. </Principal>
  4049. <Dependent Role="FmsMaterialWarehouse">
  4050. <PropertyRef Name="SiteId" />
  4051. </Dependent>
  4052. </ReferentialConstraint>
  4053. </Association>
  4054. <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
  4055. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4056. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="*" />
  4057. <ReferentialConstraint>
  4058. <Principal Role="CmSite">
  4059. <PropertyRef Name="SiteId" />
  4060. </Principal>
  4061. <Dependent Role="FmsWorkCodeCauseClass">
  4062. <PropertyRef Name="SiteId" />
  4063. </Dependent>
  4064. </ReferentialConstraint>
  4065. </Association>
  4066. <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
  4067. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4068. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="*" />
  4069. <ReferentialConstraint>
  4070. <Principal Role="CmSite">
  4071. <PropertyRef Name="SiteId" />
  4072. </Principal>
  4073. <Dependent Role="FmsWorkCodeCycleUnit">
  4074. <PropertyRef Name="SiteId" />
  4075. </Dependent>
  4076. </ReferentialConstraint>
  4077. </Association>
  4078. <Association Name="FK__FmsWorkCodeEmergency__CmSite">
  4079. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4080. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="*" />
  4081. <ReferentialConstraint>
  4082. <Principal Role="CmSite">
  4083. <PropertyRef Name="SiteId" />
  4084. </Principal>
  4085. <Dependent Role="FmsWorkCodeEmergency">
  4086. <PropertyRef Name="SiteId" />
  4087. </Dependent>
  4088. </ReferentialConstraint>
  4089. </Association>
  4090. <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
  4091. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4092. <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="*" />
  4093. <ReferentialConstraint>
  4094. <Principal Role="CmSite">
  4095. <PropertyRef Name="SiteId" />
  4096. </Principal>
  4097. <Dependent Role="FmsWorkCodeHolidayWorkType">
  4098. <PropertyRef Name="SiteId" />
  4099. </Dependent>
  4100. </ReferentialConstraint>
  4101. </Association>
  4102. <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  4103. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4104. <End Role="FmsWorkCodeLegalInspectionAgency" Type="Self.FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
  4105. <ReferentialConstraint>
  4106. <Principal Role="CmSite">
  4107. <PropertyRef Name="SiteId" />
  4108. </Principal>
  4109. <Dependent Role="FmsWorkCodeLegalInspectionAgency">
  4110. <PropertyRef Name="SiteId" />
  4111. </Dependent>
  4112. </ReferentialConstraint>
  4113. </Association>
  4114. <Association Name="FK__FmsWorkOrder__CmBusinessField">
  4115. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4116. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4117. <ReferentialConstraint>
  4118. <Principal Role="CmBusinessField">
  4119. <PropertyRef Name="SiteId" />
  4120. <PropertyRef Name="BusinessFieldId" />
  4121. </Principal>
  4122. <Dependent Role="FmsWorkOrder">
  4123. <PropertyRef Name="SiteId" />
  4124. <PropertyRef Name="BusinessFieldId" />
  4125. </Dependent>
  4126. </ReferentialConstraint>
  4127. </Association>
  4128. <Association Name="FK__FmsWorkOrder__CmSite">
  4129. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4130. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4131. <ReferentialConstraint>
  4132. <Principal Role="CmSite">
  4133. <PropertyRef Name="SiteId" />
  4134. </Principal>
  4135. <Dependent Role="FmsWorkOrder">
  4136. <PropertyRef Name="SiteId" />
  4137. </Dependent>
  4138. </ReferentialConstraint>
  4139. </Association>
  4140. <Association Name="FK__FmsWorkOrder__CmUser">
  4141. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4142. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4143. <ReferentialConstraint>
  4144. <Principal Role="CmUser">
  4145. <PropertyRef Name="SiteId" />
  4146. <PropertyRef Name="UserId" />
  4147. </Principal>
  4148. <Dependent Role="FmsWorkOrder">
  4149. <PropertyRef Name="SiteId" />
  4150. <PropertyRef Name="OrderUserId" />
  4151. </Dependent>
  4152. </ReferentialConstraint>
  4153. </Association>
  4154. <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
  4155. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
  4156. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  4157. <ReferentialConstraint>
  4158. <Principal Role="FmsWorkCodeEmergency">
  4159. <PropertyRef Name="SiteId" />
  4160. <PropertyRef Name="EmergencyId" />
  4161. </Principal>
  4162. <Dependent Role="FmsWorkOrder">
  4163. <PropertyRef Name="SiteId" />
  4164. <PropertyRef Name="EmergencyId" />
  4165. </Dependent>
  4166. </ReferentialConstraint>
  4167. </Association>
  4168. <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
  4169. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  4170. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
  4171. <ReferentialConstraint>
  4172. <Principal Role="FmsWorkRequest">
  4173. <PropertyRef Name="SiteId" />
  4174. <PropertyRef Name="WorkRequestId" />
  4175. </Principal>
  4176. <Dependent Role="FmsWorkOrder">
  4177. <PropertyRef Name="SiteId" />
  4178. <PropertyRef Name="WorkRequestId" />
  4179. </Dependent>
  4180. </ReferentialConstraint>
  4181. </Association>
  4182. <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
  4183. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
  4184. <OnDelete Action="Cascade" />
  4185. </End>
  4186. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  4187. <ReferentialConstraint>
  4188. <Principal Role="FmsWorkOrder">
  4189. <PropertyRef Name="SiteId" />
  4190. <PropertyRef Name="WorkRequestId" />
  4191. </Principal>
  4192. <Dependent Role="FmsWorkOrderToFacility">
  4193. <PropertyRef Name="SiteId" />
  4194. <PropertyRef Name="WorkRequestId" />
  4195. </Dependent>
  4196. </ReferentialConstraint>
  4197. </Association>
  4198. <Association Name="FK__FmsWorkRequest__CmBusinessField">
  4199. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4200. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4201. <ReferentialConstraint>
  4202. <Principal Role="CmBusinessField">
  4203. <PropertyRef Name="SiteId" />
  4204. <PropertyRef Name="BusinessFieldId" />
  4205. </Principal>
  4206. <Dependent Role="FmsWorkRequest">
  4207. <PropertyRef Name="SiteId" />
  4208. <PropertyRef Name="BusinessFieldId" />
  4209. </Dependent>
  4210. </ReferentialConstraint>
  4211. </Association>
  4212. <Association Name="FK__FmsWorkRequest__CmSite">
  4213. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4214. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4215. <ReferentialConstraint>
  4216. <Principal Role="CmSite">
  4217. <PropertyRef Name="SiteId" />
  4218. </Principal>
  4219. <Dependent Role="FmsWorkRequest">
  4220. <PropertyRef Name="SiteId" />
  4221. </Dependent>
  4222. </ReferentialConstraint>
  4223. </Association>
  4224. <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
  4225. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4226. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4227. <ReferentialConstraint>
  4228. <Principal Role="CmUser">
  4229. <PropertyRef Name="SiteId" />
  4230. <PropertyRef Name="UserId" />
  4231. </Principal>
  4232. <Dependent Role="FmsWorkRequest">
  4233. <PropertyRef Name="SiteId" />
  4234. <PropertyRef Name="RequestUserId" />
  4235. </Dependent>
  4236. </ReferentialConstraint>
  4237. </Association>
  4238. <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  4239. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4240. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4241. <ReferentialConstraint>
  4242. <Principal Role="CmUser">
  4243. <PropertyRef Name="SiteId" />
  4244. <PropertyRef Name="UserId" />
  4245. </Principal>
  4246. <Dependent Role="FmsWorkRequest">
  4247. <PropertyRef Name="SiteId" />
  4248. <PropertyRef Name="RejectUserId" />
  4249. </Dependent>
  4250. </ReferentialConstraint>
  4251. </Association>
  4252. <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
  4253. <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
  4254. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4255. <ReferentialConstraint>
  4256. <Principal Role="FmsWorkCodeProgress">
  4257. <PropertyRef Name="WorkProgressId" />
  4258. </Principal>
  4259. <Dependent Role="FmsWorkRequest">
  4260. <PropertyRef Name="WorkProgressId" />
  4261. </Dependent>
  4262. </ReferentialConstraint>
  4263. </Association>
  4264. <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
  4265. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  4266. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4267. <ReferentialConstraint>
  4268. <Principal Role="FmsWorkCodeType">
  4269. <PropertyRef Name="WorkTypeId" />
  4270. </Principal>
  4271. <Dependent Role="FmsWorkRequest">
  4272. <PropertyRef Name="WorkTypeId" />
  4273. </Dependent>
  4274. </ReferentialConstraint>
  4275. </Association>
  4276. <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
  4277. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="0..1" />
  4278. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  4279. <ReferentialConstraint>
  4280. <Principal Role="FmsWorkSchedule">
  4281. <PropertyRef Name="SiteId" />
  4282. <PropertyRef Name="WorkScheduleId" />
  4283. </Principal>
  4284. <Dependent Role="FmsWorkRequest">
  4285. <PropertyRef Name="SiteId" />
  4286. <PropertyRef Name="WorkScheduleId" />
  4287. </Dependent>
  4288. </ReferentialConstraint>
  4289. </Association>
  4290. <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
  4291. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
  4292. <OnDelete Action="Cascade" />
  4293. </End>
  4294. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  4295. <ReferentialConstraint>
  4296. <Principal Role="FmsWorkRequest">
  4297. <PropertyRef Name="SiteId" />
  4298. <PropertyRef Name="WorkRequestId" />
  4299. </Principal>
  4300. <Dependent Role="FmsWorkRequestToFacility">
  4301. <PropertyRef Name="SiteId" />
  4302. <PropertyRef Name="WorkRequestId" />
  4303. </Dependent>
  4304. </ReferentialConstraint>
  4305. </Association>
  4306. <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
  4307. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4308. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4309. <ReferentialConstraint>
  4310. <Principal Role="CmUser">
  4311. <PropertyRef Name="SiteId" />
  4312. <PropertyRef Name="UserId" />
  4313. </Principal>
  4314. <Dependent Role="FmsWorkResult">
  4315. <PropertyRef Name="SiteId" />
  4316. <PropertyRef Name="WorkerUserId" />
  4317. </Dependent>
  4318. </ReferentialConstraint>
  4319. </Association>
  4320. <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  4321. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  4322. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4323. <ReferentialConstraint>
  4324. <Principal Role="CmUser">
  4325. <PropertyRef Name="SiteId" />
  4326. <PropertyRef Name="UserId" />
  4327. </Principal>
  4328. <Dependent Role="FmsWorkResult">
  4329. <PropertyRef Name="SiteId" />
  4330. <PropertyRef Name="ConfirmedUserId" />
  4331. </Dependent>
  4332. </ReferentialConstraint>
  4333. </Association>
  4334. <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
  4335. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
  4336. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  4337. <ReferentialConstraint>
  4338. <Principal Role="FmsWorkCodeCauseClass">
  4339. <PropertyRef Name="SiteId" />
  4340. <PropertyRef Name="CauseClassId" />
  4341. </Principal>
  4342. <Dependent Role="FmsWorkResult">
  4343. <PropertyRef Name="SiteId" />
  4344. <PropertyRef Name="CauseClassId" />
  4345. </Dependent>
  4346. </ReferentialConstraint>
  4347. </Association>
  4348. <Association Name="FK__FmsWorkResult__FmsWorkOrder">
  4349. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
  4350. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  4351. <ReferentialConstraint>
  4352. <Principal Role="FmsWorkOrder">
  4353. <PropertyRef Name="SiteId" />
  4354. <PropertyRef Name="WorkRequestId" />
  4355. </Principal>
  4356. <Dependent Role="FmsWorkResult">
  4357. <PropertyRef Name="SiteId" />
  4358. <PropertyRef Name="WorkRequestId" />
  4359. </Dependent>
  4360. </ReferentialConstraint>
  4361. </Association>
  4362. <Association Name="FK__FmsWorkResult__FmsWorkRequest">
  4363. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  4364. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  4365. <ReferentialConstraint>
  4366. <Principal Role="FmsWorkRequest">
  4367. <PropertyRef Name="SiteId" />
  4368. <PropertyRef Name="WorkRequestId" />
  4369. </Principal>
  4370. <Dependent Role="FmsWorkResult">
  4371. <PropertyRef Name="SiteId" />
  4372. <PropertyRef Name="WorkRequestId" />
  4373. </Dependent>
  4374. </ReferentialConstraint>
  4375. </Association>
  4376. <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
  4377. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
  4378. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4379. <ReferentialConstraint>
  4380. <Principal Role="CmFacility">
  4381. <PropertyRef Name="SiteId" />
  4382. <PropertyRef Name="FacilityCode" />
  4383. </Principal>
  4384. <Dependent Role="FmsWorkResultCheckItem">
  4385. <PropertyRef Name="SiteId" />
  4386. <PropertyRef Name="FacilityCode" />
  4387. </Dependent>
  4388. </ReferentialConstraint>
  4389. </Association>
  4390. <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  4391. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
  4392. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4393. <ReferentialConstraint>
  4394. <Principal Role="FmsFacilityCheckItem">
  4395. <PropertyRef Name="SiteId" />
  4396. <PropertyRef Name="FacilityCode" />
  4397. <PropertyRef Name="CheckItemId" />
  4398. </Principal>
  4399. <Dependent Role="FmsWorkResultCheckItem">
  4400. <PropertyRef Name="SiteId" />
  4401. <PropertyRef Name="FacilityCode" />
  4402. <PropertyRef Name="CheckItemId" />
  4403. </Dependent>
  4404. </ReferentialConstraint>
  4405. </Association>
  4406. <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
  4407. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  4408. <OnDelete Action="Cascade" />
  4409. </End>
  4410. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  4411. <ReferentialConstraint>
  4412. <Principal Role="FmsWorkResult">
  4413. <PropertyRef Name="SiteId" />
  4414. <PropertyRef Name="WorkRequestId" />
  4415. </Principal>
  4416. <Dependent Role="FmsWorkResultCheckItem">
  4417. <PropertyRef Name="SiteId" />
  4418. <PropertyRef Name="WorkRequestId" />
  4419. </Dependent>
  4420. </ReferentialConstraint>
  4421. </Association>
  4422. <Association Name="FK__FmsWorkResultFile__CmFile">
  4423. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  4424. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
  4425. <ReferentialConstraint>
  4426. <Principal Role="CmFile">
  4427. <PropertyRef Name="SiteId" />
  4428. <PropertyRef Name="FileId" />
  4429. </Principal>
  4430. <Dependent Role="FmsWorkResultFile">
  4431. <PropertyRef Name="SiteId" />
  4432. <PropertyRef Name="FileId" />
  4433. </Dependent>
  4434. </ReferentialConstraint>
  4435. </Association>
  4436. <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
  4437. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  4438. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
  4439. <ReferentialConstraint>
  4440. <Principal Role="FmsWorkResult">
  4441. <PropertyRef Name="SiteId" />
  4442. <PropertyRef Name="WorkRequestId" />
  4443. </Principal>
  4444. <Dependent Role="FmsWorkResultFile">
  4445. <PropertyRef Name="SiteId" />
  4446. <PropertyRef Name="WorkRequestId" />
  4447. </Dependent>
  4448. </ReferentialConstraint>
  4449. </Association>
  4450. <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
  4451. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  4452. <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
  4453. <ReferentialConstraint>
  4454. <Principal Role="FmsWorkResult">
  4455. <PropertyRef Name="SiteId" />
  4456. <PropertyRef Name="WorkRequestId" />
  4457. </Principal>
  4458. <Dependent Role="FmsWorkResultLaw">
  4459. <PropertyRef Name="SiteId" />
  4460. <PropertyRef Name="WorkRequestId" />
  4461. </Dependent>
  4462. </ReferentialConstraint>
  4463. </Association>
  4464. <Association Name="FK__FmsWorkResultToFacility__CmFacility">
  4465. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4466. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  4467. <ReferentialConstraint>
  4468. <Principal Role="CmFacility">
  4469. <PropertyRef Name="SiteId" />
  4470. <PropertyRef Name="FacilityCode" />
  4471. </Principal>
  4472. <Dependent Role="FmsWorkResultToFacility">
  4473. <PropertyRef Name="SiteId" />
  4474. <PropertyRef Name="FacilityCode" />
  4475. </Dependent>
  4476. </ReferentialConstraint>
  4477. </Association>
  4478. <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
  4479. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  4480. <OnDelete Action="Cascade" />
  4481. </End>
  4482. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  4483. <ReferentialConstraint>
  4484. <Principal Role="FmsWorkResult">
  4485. <PropertyRef Name="SiteId" />
  4486. <PropertyRef Name="WorkRequestId" />
  4487. </Principal>
  4488. <Dependent Role="FmsWorkResultToFacility">
  4489. <PropertyRef Name="SiteId" />
  4490. <PropertyRef Name="WorkRequestId" />
  4491. </Dependent>
  4492. </ReferentialConstraint>
  4493. </Association>
  4494. <Association Name="FK__FmsWorkSchedule__CmBusinessField">
  4495. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  4496. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4497. <ReferentialConstraint>
  4498. <Principal Role="CmBusinessField">
  4499. <PropertyRef Name="SiteId" />
  4500. <PropertyRef Name="BusinessFieldId" />
  4501. </Principal>
  4502. <Dependent Role="FmsWorkSchedule">
  4503. <PropertyRef Name="SiteId" />
  4504. <PropertyRef Name="BusinessFieldId" />
  4505. </Dependent>
  4506. </ReferentialConstraint>
  4507. </Association>
  4508. <Association Name="FK__FmsWorkSchedule__CmUser">
  4509. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  4510. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4511. <ReferentialConstraint>
  4512. <Principal Role="CmUser">
  4513. <PropertyRef Name="SiteId" />
  4514. <PropertyRef Name="UserId" />
  4515. </Principal>
  4516. <Dependent Role="FmsWorkSchedule">
  4517. <PropertyRef Name="SiteId" />
  4518. <PropertyRef Name="UpdateUserId" />
  4519. </Dependent>
  4520. </ReferentialConstraint>
  4521. </Association>
  4522. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  4523. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  4524. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4525. <ReferentialConstraint>
  4526. <Principal Role="FmsWorkCodeCycleUnit">
  4527. <PropertyRef Name="SiteId" />
  4528. <PropertyRef Name="CycleUnitId" />
  4529. </Principal>
  4530. <Dependent Role="FmsWorkSchedule">
  4531. <PropertyRef Name="SiteId" />
  4532. <PropertyRef Name="CycleUnitId" />
  4533. </Dependent>
  4534. </ReferentialConstraint>
  4535. </Association>
  4536. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  4537. <End Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="1" />
  4538. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4539. <ReferentialConstraint>
  4540. <Principal Role="FmsWorkCodeHolidayWorkType">
  4541. <PropertyRef Name="SiteId" />
  4542. <PropertyRef Name="HolidayWorkTypeId" />
  4543. </Principal>
  4544. <Dependent Role="FmsWorkSchedule">
  4545. <PropertyRef Name="SiteId" />
  4546. <PropertyRef Name="HolidayWorkTypeId" />
  4547. </Dependent>
  4548. </ReferentialConstraint>
  4549. </Association>
  4550. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  4551. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  4552. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  4553. <ReferentialConstraint>
  4554. <Principal Role="FmsWorkCodeType">
  4555. <PropertyRef Name="WorkTypeId" />
  4556. </Principal>
  4557. <Dependent Role="FmsWorkSchedule">
  4558. <PropertyRef Name="WorkTypeId" />
  4559. </Dependent>
  4560. </ReferentialConstraint>
  4561. </Association>
  4562. <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  4563. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="1" />
  4564. <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
  4565. <ReferentialConstraint>
  4566. <Principal Role="FmsWorkSchedule">
  4567. <PropertyRef Name="SiteId" />
  4568. <PropertyRef Name="WorkScheduleId" />
  4569. </Principal>
  4570. <Dependent Role="FmsWorkScheduleToFacility">
  4571. <PropertyRef Name="SiteId" />
  4572. <PropertyRef Name="WorkScheduleId" />
  4573. </Dependent>
  4574. </ReferentialConstraint>
  4575. </Association>
  4576. <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
  4577. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="1" />
  4578. <End Role="BemsAlarmLog" Type="Self.BemsAlarmLog" Multiplicity="*" />
  4579. <ReferentialConstraint>
  4580. <Principal Role="BemsAlarmSetting">
  4581. <PropertyRef Name="SiteId" />
  4582. <PropertyRef Name="FacilityTypeId" />
  4583. <PropertyRef Name="FacilityCode" />
  4584. <PropertyRef Name="PropertyId" />
  4585. <PropertyRef Name="FormulaId" />
  4586. </Principal>
  4587. <Dependent Role="BemsAlarmLog">
  4588. <PropertyRef Name="SiteId" />
  4589. <PropertyRef Name="FacilityTypeId" />
  4590. <PropertyRef Name="FacilityCode" />
  4591. <PropertyRef Name="PropertyId" />
  4592. <PropertyRef Name="FormulaId" />
  4593. </Dependent>
  4594. </ReferentialConstraint>
  4595. </Association>
  4596. <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
  4597. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4598. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4599. <ReferentialConstraint>
  4600. <Principal Role="BemsFacilityType">
  4601. <PropertyRef Name="FacilityTypeId" />
  4602. </Principal>
  4603. <Dependent Role="BemsAlarmSetting">
  4604. <PropertyRef Name="FacilityTypeId" />
  4605. </Dependent>
  4606. </ReferentialConstraint>
  4607. </Association>
  4608. <Association Name="FK_BemsAlarmSetting_CmFacility">
  4609. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4610. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4611. <ReferentialConstraint>
  4612. <Principal Role="CmFacility">
  4613. <PropertyRef Name="SiteId" />
  4614. <PropertyRef Name="FacilityCode" />
  4615. </Principal>
  4616. <Dependent Role="BemsAlarmSetting">
  4617. <PropertyRef Name="SiteId" />
  4618. <PropertyRef Name="FacilityCode" />
  4619. </Dependent>
  4620. </ReferentialConstraint>
  4621. </Association>
  4622. <Association Name="FK_BemsAlarmSetting_CmSite1">
  4623. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4624. <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
  4625. <ReferentialConstraint>
  4626. <Principal Role="CmSite">
  4627. <PropertyRef Name="SiteId" />
  4628. </Principal>
  4629. <Dependent Role="BemsAlarmSetting">
  4630. <PropertyRef Name="SiteId" />
  4631. </Dependent>
  4632. </ReferentialConstraint>
  4633. </Association>
  4634. <Association Name="FK_BemsChartInfo_BemsFacilityType">
  4635. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4636. <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
  4637. <ReferentialConstraint>
  4638. <Principal Role="BemsFacilityType">
  4639. <PropertyRef Name="FacilityTypeId" />
  4640. </Principal>
  4641. <Dependent Role="BemsChartInfo">
  4642. <PropertyRef Name="FacilityTypeId" />
  4643. </Dependent>
  4644. </ReferentialConstraint>
  4645. </Association>
  4646. <Association Name="FK_BemsChartInfo_CmSite">
  4647. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4648. <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
  4649. <ReferentialConstraint>
  4650. <Principal Role="CmSite">
  4651. <PropertyRef Name="SiteId" />
  4652. </Principal>
  4653. <Dependent Role="BemsChartInfo">
  4654. <PropertyRef Name="SiteId" />
  4655. </Dependent>
  4656. </ReferentialConstraint>
  4657. </Association>
  4658. <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
  4659. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4660. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  4661. <ReferentialConstraint>
  4662. <Principal Role="BemsFacilityType">
  4663. <PropertyRef Name="FacilityTypeId" />
  4664. </Principal>
  4665. <Dependent Role="BemsControlPointHistory">
  4666. <PropertyRef Name="FacilityTypeId" />
  4667. </Dependent>
  4668. </ReferentialConstraint>
  4669. </Association>
  4670. <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
  4671. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  4672. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  4673. <ReferentialConstraint>
  4674. <Principal Role="BemsMonitoringPoint">
  4675. <PropertyRef Name="SiteId" />
  4676. <PropertyRef Name="FacilityCode" />
  4677. <PropertyRef Name="PropertyId" />
  4678. </Principal>
  4679. <Dependent Role="BemsControlPointHistory">
  4680. <PropertyRef Name="SiteId" />
  4681. <PropertyRef Name="FacilityCode" />
  4682. <PropertyRef Name="PropertyId" />
  4683. </Dependent>
  4684. </ReferentialConstraint>
  4685. </Association>
  4686. <Association Name="FK_BemsEnergyCost_CmFacility">
  4687. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4688. <End Role="BemsEnergyCost" Type="Self.BemsEnergyCost" Multiplicity="0..1" />
  4689. <ReferentialConstraint>
  4690. <Principal Role="CmFacility">
  4691. <PropertyRef Name="SiteId" />
  4692. <PropertyRef Name="FacilityCode" />
  4693. </Principal>
  4694. <Dependent Role="BemsEnergyCost">
  4695. <PropertyRef Name="SiteId" />
  4696. <PropertyRef Name="FacilityCode" />
  4697. </Dependent>
  4698. </ReferentialConstraint>
  4699. </Association>
  4700. <Association Name="FK_BemsEnergyDailyRegression_CmSite">
  4701. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4702. <End Role="BemsEnergyDailyRegression" Type="Self.BemsEnergyDailyRegression" Multiplicity="0..1" />
  4703. <ReferentialConstraint>
  4704. <Principal Role="CmSite">
  4705. <PropertyRef Name="SiteId" />
  4706. </Principal>
  4707. <Dependent Role="BemsEnergyDailyRegression">
  4708. <PropertyRef Name="SiteId" />
  4709. </Dependent>
  4710. </ReferentialConstraint>
  4711. </Association>
  4712. <Association Name="FK_BemsFormulaParameter_CmFacility">
  4713. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4714. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  4715. <ReferentialConstraint>
  4716. <Principal Role="CmFacility">
  4717. <PropertyRef Name="SiteId" />
  4718. <PropertyRef Name="FacilityCode" />
  4719. </Principal>
  4720. <Dependent Role="BemsFormulaParameter">
  4721. <PropertyRef Name="SiteId" />
  4722. <PropertyRef Name="FacilityCode" />
  4723. </Dependent>
  4724. </ReferentialConstraint>
  4725. </Association>
  4726. <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
  4727. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4728. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  4729. <ReferentialConstraint>
  4730. <Principal Role="BemsFacilityType">
  4731. <PropertyRef Name="FacilityTypeId" />
  4732. </Principal>
  4733. <Dependent Role="BemsMonitoringPoint">
  4734. <PropertyRef Name="FacilityTypeId" />
  4735. </Dependent>
  4736. </ReferentialConstraint>
  4737. </Association>
  4738. <Association Name="FK_BemsMonitoringPoint_CmFacility">
  4739. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4740. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  4741. <ReferentialConstraint>
  4742. <Principal Role="CmFacility">
  4743. <PropertyRef Name="SiteId" />
  4744. <PropertyRef Name="FacilityCode" />
  4745. </Principal>
  4746. <Dependent Role="BemsMonitoringPoint">
  4747. <PropertyRef Name="SiteId" />
  4748. <PropertyRef Name="FacilityCode" />
  4749. </Dependent>
  4750. </ReferentialConstraint>
  4751. </Association>
  4752. <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
  4753. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  4754. <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="*" />
  4755. <ReferentialConstraint>
  4756. <Principal Role="BemsFacilityType">
  4757. <PropertyRef Name="FacilityTypeId" />
  4758. </Principal>
  4759. <Dependent Role="BemsMonitoringPointConfig">
  4760. <PropertyRef Name="FacilityTypeId" />
  4761. </Dependent>
  4762. </ReferentialConstraint>
  4763. </Association>
  4764. <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  4765. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  4766. <End Role="BemsMonitoringPointConfig" Type="Self.BemsMonitoringPointConfig" Multiplicity="0..1" />
  4767. <ReferentialConstraint>
  4768. <Principal Role="BemsMonitoringPoint">
  4769. <PropertyRef Name="SiteId" />
  4770. <PropertyRef Name="FacilityCode" />
  4771. <PropertyRef Name="PropertyId" />
  4772. </Principal>
  4773. <Dependent Role="BemsMonitoringPointConfig">
  4774. <PropertyRef Name="SiteId" />
  4775. <PropertyRef Name="FacilityCode" />
  4776. <PropertyRef Name="PropertyId" />
  4777. </Dependent>
  4778. </ReferentialConstraint>
  4779. </Association>
  4780. <Association Name="FK_BemsPeakFacility_CmFacility">
  4781. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  4782. <End Role="BemsPeakFacility" Type="Self.BemsPeakFacility" Multiplicity="*" />
  4783. <ReferentialConstraint>
  4784. <Principal Role="CmFacility">
  4785. <PropertyRef Name="SiteId" />
  4786. <PropertyRef Name="FacilityCode" />
  4787. </Principal>
  4788. <Dependent Role="BemsPeakFacility">
  4789. <PropertyRef Name="SiteId" />
  4790. <PropertyRef Name="FacilityCode" />
  4791. </Dependent>
  4792. </ReferentialConstraint>
  4793. </Association>
  4794. <Association Name="FK_BemsPeakHIstory_CmSite">
  4795. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4796. <End Role="BemsPeakHistory" Type="Self.BemsPeakHistory" Multiplicity="*" />
  4797. <ReferentialConstraint>
  4798. <Principal Role="CmSite">
  4799. <PropertyRef Name="SiteId" />
  4800. </Principal>
  4801. <Dependent Role="BemsPeakHistory">
  4802. <PropertyRef Name="SiteId" />
  4803. </Dependent>
  4804. </ReferentialConstraint>
  4805. </Association>
  4806. <Association Name="FK_BemsPeakInfo_CmSite">
  4807. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4808. <End Role="BemsPeakInfo" Type="Self.BemsPeakInfo" Multiplicity="0..1" />
  4809. <ReferentialConstraint>
  4810. <Principal Role="CmSite">
  4811. <PropertyRef Name="SiteId" />
  4812. </Principal>
  4813. <Dependent Role="BemsPeakInfo">
  4814. <PropertyRef Name="SiteId" />
  4815. </Dependent>
  4816. </ReferentialConstraint>
  4817. </Association>
  4818. <Association Name="FK_BemsPeopleIncrease_CmSite">
  4819. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4820. <End Role="BemsPeopleIncrease" Type="Self.BemsPeopleIncrease" Multiplicity="*" />
  4821. <ReferentialConstraint>
  4822. <Principal Role="CmSite">
  4823. <PropertyRef Name="SiteId" />
  4824. </Principal>
  4825. <Dependent Role="BemsPeopleIncrease">
  4826. <PropertyRef Name="SiteId" />
  4827. </Dependent>
  4828. </ReferentialConstraint>
  4829. </Association>
  4830. <Association Name="FK_BemsPriceCode_BemsFuelType">
  4831. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4832. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="*" />
  4833. <ReferentialConstraint>
  4834. <Principal Role="BemsFuelType">
  4835. <PropertyRef Name="FuelTypeId" />
  4836. </Principal>
  4837. <Dependent Role="BemsPriceCode">
  4838. <PropertyRef Name="FuelTypeId" />
  4839. </Dependent>
  4840. </ReferentialConstraint>
  4841. </Association>
  4842. <Association Name="FK_BemsPriceFormula_BemsFormula">
  4843. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  4844. <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
  4845. <ReferentialConstraint>
  4846. <Principal Role="BemsFormula">
  4847. <PropertyRef Name="SiteId" />
  4848. <PropertyRef Name="FacilityTypeId" />
  4849. <PropertyRef Name="FacilityCode" />
  4850. <PropertyRef Name="FormulaId" />
  4851. </Principal>
  4852. <Dependent Role="BemsPriceFormula">
  4853. <PropertyRef Name="SiteId" />
  4854. <PropertyRef Name="FacilityTypeId" />
  4855. <PropertyRef Name="FacilityCode" />
  4856. <PropertyRef Name="FormulaId" />
  4857. </Dependent>
  4858. </ReferentialConstraint>
  4859. </Association>
  4860. <Association Name="FK_BemsPriceFormula_BemsPriceType">
  4861. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4862. <End Role="BemsPriceFormula" Type="Self.BemsPriceFormula" Multiplicity="*" />
  4863. <ReferentialConstraint>
  4864. <Principal Role="BemsPriceType">
  4865. <PropertyRef Name="PriceTypeId" />
  4866. </Principal>
  4867. <Dependent Role="BemsPriceFormula">
  4868. <PropertyRef Name="PriceTypeId" />
  4869. </Dependent>
  4870. </ReferentialConstraint>
  4871. </Association>
  4872. <Association Name="FK_BemsPriceMeta_BemsPriceType">
  4873. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4874. <End Role="BemsPriceMeta" Type="Self.BemsPriceMeta" Multiplicity="*" />
  4875. <ReferentialConstraint>
  4876. <Principal Role="BemsPriceType">
  4877. <PropertyRef Name="PriceTypeId" />
  4878. </Principal>
  4879. <Dependent Role="BemsPriceMeta">
  4880. <PropertyRef Name="PriceTypeId" />
  4881. </Dependent>
  4882. </ReferentialConstraint>
  4883. </Association>
  4884. <Association Name="FK_BemsPriceType_BemsFuelType1">
  4885. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4886. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="*" />
  4887. <ReferentialConstraint>
  4888. <Principal Role="BemsFuelType">
  4889. <PropertyRef Name="FuelTypeId" />
  4890. </Principal>
  4891. <Dependent Role="BemsPriceType">
  4892. <PropertyRef Name="FuelTypeId" />
  4893. </Dependent>
  4894. </ReferentialConstraint>
  4895. </Association>
  4896. <Association Name="FK_BemsRentalRate_CmSite">
  4897. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4898. <End Role="BemsRentalRate" Type="Self.BemsRentalRate" Multiplicity="*" />
  4899. <ReferentialConstraint>
  4900. <Principal Role="CmSite">
  4901. <PropertyRef Name="SiteId" />
  4902. </Principal>
  4903. <Dependent Role="BemsRentalRate">
  4904. <PropertyRef Name="SiteId" />
  4905. </Dependent>
  4906. </ReferentialConstraint>
  4907. </Association>
  4908. <Association Name="FK_BemsSitePrice_BemsFuelType">
  4909. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4910. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  4911. <ReferentialConstraint>
  4912. <Principal Role="BemsFuelType">
  4913. <PropertyRef Name="FuelTypeId" />
  4914. </Principal>
  4915. <Dependent Role="BemsSitePrice">
  4916. <PropertyRef Name="FuelTypeId" />
  4917. </Dependent>
  4918. </ReferentialConstraint>
  4919. </Association>
  4920. <Association Name="FK_BemsSitePrice_BemsPriceCode">
  4921. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
  4922. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  4923. <ReferentialConstraint>
  4924. <Principal Role="BemsPriceCode">
  4925. <PropertyRef Name="PriceCode" />
  4926. </Principal>
  4927. <Dependent Role="BemsSitePrice">
  4928. <PropertyRef Name="PriceCode" />
  4929. </Dependent>
  4930. </ReferentialConstraint>
  4931. </Association>
  4932. <Association Name="FK_BemsSitePrice_BemsPriceType">
  4933. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4934. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  4935. <ReferentialConstraint>
  4936. <Principal Role="BemsPriceType">
  4937. <PropertyRef Name="PriceTypeId" />
  4938. </Principal>
  4939. <Dependent Role="BemsSitePrice">
  4940. <PropertyRef Name="PriceTypeId" />
  4941. </Dependent>
  4942. </ReferentialConstraint>
  4943. </Association>
  4944. <Association Name="FK_BemsSitePrice_CmSite1">
  4945. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4946. <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
  4947. <ReferentialConstraint>
  4948. <Principal Role="CmSite">
  4949. <PropertyRef Name="SiteId" />
  4950. </Principal>
  4951. <Dependent Role="BemsSitePrice">
  4952. <PropertyRef Name="SiteID" />
  4953. </Dependent>
  4954. </ReferentialConstraint>
  4955. </Association>
  4956. <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
  4957. <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
  4958. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  4959. <ReferentialConstraint>
  4960. <Principal Role="BemsFuelType">
  4961. <PropertyRef Name="FuelTypeId" />
  4962. </Principal>
  4963. <Dependent Role="BemsSitePriceHistory">
  4964. <PropertyRef Name="FuelTypeId" />
  4965. </Dependent>
  4966. </ReferentialConstraint>
  4967. </Association>
  4968. <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
  4969. <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
  4970. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  4971. <ReferentialConstraint>
  4972. <Principal Role="BemsPriceCode">
  4973. <PropertyRef Name="PriceCode" />
  4974. </Principal>
  4975. <Dependent Role="BemsSitePriceHistory">
  4976. <PropertyRef Name="PriceCode" />
  4977. </Dependent>
  4978. </ReferentialConstraint>
  4979. </Association>
  4980. <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
  4981. <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
  4982. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  4983. <ReferentialConstraint>
  4984. <Principal Role="BemsPriceType">
  4985. <PropertyRef Name="PriceTypeId" />
  4986. </Principal>
  4987. <Dependent Role="BemsSitePriceHistory">
  4988. <PropertyRef Name="PriceTypeId" />
  4989. </Dependent>
  4990. </ReferentialConstraint>
  4991. </Association>
  4992. <Association Name="FK_BemsSitePriceHistory_CmSite">
  4993. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  4994. <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
  4995. <ReferentialConstraint>
  4996. <Principal Role="CmSite">
  4997. <PropertyRef Name="SiteId" />
  4998. </Principal>
  4999. <Dependent Role="BemsSitePriceHistory">
  5000. <PropertyRef Name="SiteId" />
  5001. </Dependent>
  5002. </ReferentialConstraint>
  5003. </Association>
  5004. <Association Name="FK_CmAnnouncement_CmBusinessField">
  5005. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  5006. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5007. <ReferentialConstraint>
  5008. <Principal Role="CmBusinessField">
  5009. <PropertyRef Name="SiteId" />
  5010. <PropertyRef Name="BusinessFieldId" />
  5011. </Principal>
  5012. <Dependent Role="CmAnnouncement">
  5013. <PropertyRef Name="SiteId" />
  5014. <PropertyRef Name="BusinessFieldId" />
  5015. </Dependent>
  5016. </ReferentialConstraint>
  5017. </Association>
  5018. <Association Name="FK_CmAnnouncement_CmFile">
  5019. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5020. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5021. <ReferentialConstraint>
  5022. <Principal Role="CmFile">
  5023. <PropertyRef Name="SiteId" />
  5024. <PropertyRef Name="FileId" />
  5025. </Principal>
  5026. <Dependent Role="CmAnnouncement">
  5027. <PropertyRef Name="SiteId" />
  5028. <PropertyRef Name="FileId" />
  5029. </Dependent>
  5030. </ReferentialConstraint>
  5031. </Association>
  5032. <Association Name="FK_CmAnnouncement_CmUser">
  5033. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5034. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  5035. <ReferentialConstraint>
  5036. <Principal Role="CmUser">
  5037. <PropertyRef Name="SiteId" />
  5038. <PropertyRef Name="UserId" />
  5039. </Principal>
  5040. <Dependent Role="CmAnnouncement">
  5041. <PropertyRef Name="SiteId" />
  5042. <PropertyRef Name="RegisterUserId" />
  5043. </Dependent>
  5044. </ReferentialConstraint>
  5045. </Association>
  5046. <Association Name="FK_CmFacilityTempSet_CmFacility">
  5047. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  5048. <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="0..1" />
  5049. <ReferentialConstraint>
  5050. <Principal Role="CmFacility">
  5051. <PropertyRef Name="SiteId" />
  5052. <PropertyRef Name="FacilityCode" />
  5053. </Principal>
  5054. <Dependent Role="CmFacilityTempSet">
  5055. <PropertyRef Name="SiteId" />
  5056. <PropertyRef Name="FacilityCode" />
  5057. </Dependent>
  5058. </ReferentialConstraint>
  5059. </Association>
  5060. <Association Name="FK_CmFacilityTempSet_CmSite">
  5061. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5062. <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="*" />
  5063. <ReferentialConstraint>
  5064. <Principal Role="CmSite">
  5065. <PropertyRef Name="SiteId" />
  5066. </Principal>
  5067. <Dependent Role="CmFacilityTempSet">
  5068. <PropertyRef Name="SiteId" />
  5069. </Dependent>
  5070. </ReferentialConstraint>
  5071. </Association>
  5072. <Association Name="FK_CmMenu_CmSite">
  5073. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5074. <End Role="CmMenu" Type="Self.CmMenu" Multiplicity="*" />
  5075. <ReferentialConstraint>
  5076. <Principal Role="CmSite">
  5077. <PropertyRef Name="SiteId" />
  5078. </Principal>
  5079. <Dependent Role="CmMenu">
  5080. <PropertyRef Name="SiteId" />
  5081. </Dependent>
  5082. </ReferentialConstraint>
  5083. </Association>
  5084. <Association Name="FK_CmPartnerType_CmPartner">
  5085. <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="1" />
  5086. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="*" />
  5087. <ReferentialConstraint>
  5088. <Principal Role="CmPartnerType">
  5089. <PropertyRef Name="PartnerTypeId" />
  5090. </Principal>
  5091. <Dependent Role="CmPartner">
  5092. <PropertyRef Name="PartnerTypeId" />
  5093. </Dependent>
  5094. </ReferentialConstraint>
  5095. </Association>
  5096. <Association Name="FK_CmPatrolCourse_CmSite">
  5097. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5098. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="*" />
  5099. <ReferentialConstraint>
  5100. <Principal Role="CmSite">
  5101. <PropertyRef Name="SiteId" />
  5102. </Principal>
  5103. <Dependent Role="CmPatrolCourse">
  5104. <PropertyRef Name="SiteId" />
  5105. </Dependent>
  5106. </ReferentialConstraint>
  5107. </Association>
  5108. <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
  5109. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
  5110. <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
  5111. <ReferentialConstraint>
  5112. <Principal Role="CmPatrolCourse">
  5113. <PropertyRef Name="SiteId" />
  5114. <PropertyRef Name="PatrolCourseId" />
  5115. </Principal>
  5116. <Dependent Role="CmPatrolCoursePos">
  5117. <PropertyRef Name="SiteId" />
  5118. <PropertyRef Name="PatrolCourseId" />
  5119. </Dependent>
  5120. </ReferentialConstraint>
  5121. </Association>
  5122. <Association Name="FK_CmPatrolCoursePos_CmSite">
  5123. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5124. <End Role="CmPatrolCoursePos" Type="Self.CmPatrolCoursePos" Multiplicity="*" />
  5125. <ReferentialConstraint>
  5126. <Principal Role="CmSite">
  5127. <PropertyRef Name="SiteId" />
  5128. </Principal>
  5129. <Dependent Role="CmPatrolCoursePos">
  5130. <PropertyRef Name="SiteId" />
  5131. </Dependent>
  5132. </ReferentialConstraint>
  5133. </Association>
  5134. <Association Name="FK_CmPatrolGroup_CmSite">
  5135. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5136. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="*" />
  5137. <ReferentialConstraint>
  5138. <Principal Role="CmSite">
  5139. <PropertyRef Name="SiteId" />
  5140. </Principal>
  5141. <Dependent Role="CmPatrolGroup">
  5142. <PropertyRef Name="SiteId" />
  5143. </Dependent>
  5144. </ReferentialConstraint>
  5145. </Association>
  5146. <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
  5147. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
  5148. <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
  5149. <ReferentialConstraint>
  5150. <Principal Role="CmPatrolGroup">
  5151. <PropertyRef Name="SiteId" />
  5152. <PropertyRef Name="PatrolGroupId" />
  5153. </Principal>
  5154. <Dependent Role="CmPatrolGroupUser">
  5155. <PropertyRef Name="SiteId" />
  5156. <PropertyRef Name="PatrolGroupId" />
  5157. </Dependent>
  5158. </ReferentialConstraint>
  5159. </Association>
  5160. <Association Name="FK_CmPatrolGroupUser_CmUser">
  5161. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5162. <End Role="CmPatrolGroupUser" Type="Self.CmPatrolGroupUser" Multiplicity="*" />
  5163. <ReferentialConstraint>
  5164. <Principal Role="CmUser">
  5165. <PropertyRef Name="SiteId" />
  5166. <PropertyRef Name="UserId" />
  5167. </Principal>
  5168. <Dependent Role="CmPatrolGroupUser">
  5169. <PropertyRef Name="SiteId" />
  5170. <PropertyRef Name="UserId" />
  5171. </Dependent>
  5172. </ReferentialConstraint>
  5173. </Association>
  5174. <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
  5175. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="1" />
  5176. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5177. <ReferentialConstraint>
  5178. <Principal Role="CmPatrolSchedule">
  5179. <PropertyRef Name="SiteId" />
  5180. <PropertyRef Name="ScheduleId" />
  5181. </Principal>
  5182. <Dependent Role="CmPatrolHistory">
  5183. <PropertyRef Name="SiteId" />
  5184. <PropertyRef Name="ScheduleId" />
  5185. </Dependent>
  5186. </ReferentialConstraint>
  5187. </Association>
  5188. <Association Name="FK_CmPatrolHistory_CmPatrolType">
  5189. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
  5190. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5191. <ReferentialConstraint>
  5192. <Principal Role="CmPatrolType">
  5193. <PropertyRef Name="SiteId" />
  5194. <PropertyRef Name="PatrolTypeId" />
  5195. </Principal>
  5196. <Dependent Role="CmPatrolHistory">
  5197. <PropertyRef Name="SiteId" />
  5198. <PropertyRef Name="resultTypeId" />
  5199. </Dependent>
  5200. </ReferentialConstraint>
  5201. </Association>
  5202. <Association Name="FK_CmPatrolHistory_CmSite">
  5203. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5204. <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
  5205. <ReferentialConstraint>
  5206. <Principal Role="CmSite">
  5207. <PropertyRef Name="SiteId" />
  5208. </Principal>
  5209. <Dependent Role="CmPatrolHistory">
  5210. <PropertyRef Name="SiteId" />
  5211. </Dependent>
  5212. </ReferentialConstraint>
  5213. </Association>
  5214. <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
  5215. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="1" />
  5216. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5217. <ReferentialConstraint>
  5218. <Principal Role="CmPatrolPos">
  5219. <PropertyRef Name="SiteId" />
  5220. <PropertyRef Name="PosId" />
  5221. </Principal>
  5222. <Dependent Role="CmPatrolHistoryPos">
  5223. <PropertyRef Name="SiteId" />
  5224. <PropertyRef Name="PosId" />
  5225. </Dependent>
  5226. </ReferentialConstraint>
  5227. </Association>
  5228. <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
  5229. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
  5230. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5231. <ReferentialConstraint>
  5232. <Principal Role="CmPatrolType">
  5233. <PropertyRef Name="SiteId" />
  5234. <PropertyRef Name="PatrolTypeId" />
  5235. </Principal>
  5236. <Dependent Role="CmPatrolHistoryPos">
  5237. <PropertyRef Name="SiteId" />
  5238. <PropertyRef Name="resultType" />
  5239. </Dependent>
  5240. </ReferentialConstraint>
  5241. </Association>
  5242. <Association Name="FK_CmPatrolHistoryPos_CmSite">
  5243. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5244. <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
  5245. <ReferentialConstraint>
  5246. <Principal Role="CmSite">
  5247. <PropertyRef Name="SiteId" />
  5248. </Principal>
  5249. <Dependent Role="CmPatrolHistoryPos">
  5250. <PropertyRef Name="SiteId" />
  5251. </Dependent>
  5252. </ReferentialConstraint>
  5253. </Association>
  5254. <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
  5255. <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
  5256. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5257. <ReferentialConstraint>
  5258. <Principal Role="CmPatrolCourse">
  5259. <PropertyRef Name="SiteId" />
  5260. <PropertyRef Name="PatrolCourseId" />
  5261. </Principal>
  5262. <Dependent Role="CmPatrolPlan">
  5263. <PropertyRef Name="SiteId" />
  5264. <PropertyRef Name="CourseId" />
  5265. </Dependent>
  5266. </ReferentialConstraint>
  5267. </Association>
  5268. <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
  5269. <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
  5270. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5271. <ReferentialConstraint>
  5272. <Principal Role="CmPatrolGroup">
  5273. <PropertyRef Name="SiteId" />
  5274. <PropertyRef Name="PatrolGroupId" />
  5275. </Principal>
  5276. <Dependent Role="CmPatrolPlan">
  5277. <PropertyRef Name="SiteId" />
  5278. <PropertyRef Name="GroupId" />
  5279. </Dependent>
  5280. </ReferentialConstraint>
  5281. </Association>
  5282. <Association Name="FK_CmPatrolPlan_CmSite">
  5283. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5284. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
  5285. <ReferentialConstraint>
  5286. <Principal Role="CmSite">
  5287. <PropertyRef Name="SiteId" />
  5288. </Principal>
  5289. <Dependent Role="CmPatrolPlan">
  5290. <PropertyRef Name="SiteId" />
  5291. </Dependent>
  5292. </ReferentialConstraint>
  5293. </Association>
  5294. <Association Name="FK_CmPatrolPos_CmBuilding">
  5295. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  5296. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5297. <ReferentialConstraint>
  5298. <Principal Role="CmBuilding">
  5299. <PropertyRef Name="SiteId" />
  5300. <PropertyRef Name="BuildingId" />
  5301. </Principal>
  5302. <Dependent Role="CmPatrolPos">
  5303. <PropertyRef Name="SiteId" />
  5304. <PropertyRef Name="BuildingId" />
  5305. </Dependent>
  5306. </ReferentialConstraint>
  5307. </Association>
  5308. <Association Name="FK_CmPatrolPos_CmFloor">
  5309. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  5310. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5311. <ReferentialConstraint>
  5312. <Principal Role="CmFloor">
  5313. <PropertyRef Name="SiteId" />
  5314. <PropertyRef Name="BuildingId" />
  5315. <PropertyRef Name="FloorId" />
  5316. </Principal>
  5317. <Dependent Role="CmPatrolPos">
  5318. <PropertyRef Name="SiteId" />
  5319. <PropertyRef Name="BuildingId" />
  5320. <PropertyRef Name="FloorId" />
  5321. </Dependent>
  5322. </ReferentialConstraint>
  5323. </Association>
  5324. <Association Name="FK_CmPatrolPos_CmSite">
  5325. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5326. <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
  5327. <ReferentialConstraint>
  5328. <Principal Role="CmSite">
  5329. <PropertyRef Name="SiteId" />
  5330. </Principal>
  5331. <Dependent Role="CmPatrolPos">
  5332. <PropertyRef Name="SiteId" />
  5333. </Dependent>
  5334. </ReferentialConstraint>
  5335. </Association>
  5336. <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
  5337. <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="1" />
  5338. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
  5339. <ReferentialConstraint>
  5340. <Principal Role="CmPatrolPlan">
  5341. <PropertyRef Name="SiteId" />
  5342. <PropertyRef Name="PatrolPlanId" />
  5343. </Principal>
  5344. <Dependent Role="CmPatrolSchedule">
  5345. <PropertyRef Name="SiteId" />
  5346. <PropertyRef Name="PlanId" />
  5347. </Dependent>
  5348. </ReferentialConstraint>
  5349. </Association>
  5350. <Association Name="FK_CmPatrolSchedule_CmSite">
  5351. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5352. <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="*" />
  5353. <ReferentialConstraint>
  5354. <Principal Role="CmSite">
  5355. <PropertyRef Name="SiteId" />
  5356. </Principal>
  5357. <Dependent Role="CmPatrolSchedule">
  5358. <PropertyRef Name="SiteId" />
  5359. </Dependent>
  5360. </ReferentialConstraint>
  5361. </Association>
  5362. <Association Name="FK_CmPatrolType_CmSite">
  5363. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5364. <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="*" />
  5365. <ReferentialConstraint>
  5366. <Principal Role="CmSite">
  5367. <PropertyRef Name="SiteId" />
  5368. </Principal>
  5369. <Dependent Role="CmPatrolType">
  5370. <PropertyRef Name="SiteId" />
  5371. </Dependent>
  5372. </ReferentialConstraint>
  5373. </Association>
  5374. <Association Name="FK_CmUser_CmBusinessField">
  5375. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  5376. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5377. <ReferentialConstraint>
  5378. <Principal Role="CmBusinessField">
  5379. <PropertyRef Name="SiteId" />
  5380. <PropertyRef Name="BusinessFieldId" />
  5381. </Principal>
  5382. <Dependent Role="CmUser">
  5383. <PropertyRef Name="SiteId" />
  5384. <PropertyRef Name="BusinessFieldId" />
  5385. </Dependent>
  5386. </ReferentialConstraint>
  5387. </Association>
  5388. <Association Name="FK_CmUser_CmCompany">
  5389. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  5390. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5391. <ReferentialConstraint>
  5392. <Principal Role="CmCompany">
  5393. <PropertyRef Name="SiteId" />
  5394. <PropertyRef Name="CompanyId" />
  5395. </Principal>
  5396. <Dependent Role="CmUser">
  5397. <PropertyRef Name="SiteId" />
  5398. <PropertyRef Name="CompanyId" />
  5399. </Dependent>
  5400. </ReferentialConstraint>
  5401. </Association>
  5402. <Association Name="FK_CmUser_CmDepartment">
  5403. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  5404. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5405. <ReferentialConstraint>
  5406. <Principal Role="CmDepartment">
  5407. <PropertyRef Name="SiteId" />
  5408. <PropertyRef Name="CompanyId" />
  5409. <PropertyRef Name="DepartmentId" />
  5410. </Principal>
  5411. <Dependent Role="CmUser">
  5412. <PropertyRef Name="SiteId" />
  5413. <PropertyRef Name="CompanyId" />
  5414. <PropertyRef Name="DepartmentId" />
  5415. </Dependent>
  5416. </ReferentialConstraint>
  5417. </Association>
  5418. <Association Name="FK_CmUser_CmPosition">
  5419. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
  5420. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5421. <ReferentialConstraint>
  5422. <Principal Role="CmPosition">
  5423. <PropertyRef Name="SiteId" />
  5424. <PropertyRef Name="PositionId" />
  5425. </Principal>
  5426. <Dependent Role="CmUser">
  5427. <PropertyRef Name="SiteId" />
  5428. <PropertyRef Name="PositionId" />
  5429. </Dependent>
  5430. </ReferentialConstraint>
  5431. </Association>
  5432. <Association Name="FK_CmUser_CmUserGroup">
  5433. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
  5434. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  5435. <ReferentialConstraint>
  5436. <Principal Role="CmUserGroup">
  5437. <PropertyRef Name="SiteId" />
  5438. <PropertyRef Name="UserGroupId" />
  5439. </Principal>
  5440. <Dependent Role="CmUser">
  5441. <PropertyRef Name="SiteId" />
  5442. <PropertyRef Name="UserGroupId" />
  5443. </Dependent>
  5444. </ReferentialConstraint>
  5445. </Association>
  5446. <Association Name="FK_CmUserLoginHistory_CmUser">
  5447. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5448. <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
  5449. <ReferentialConstraint>
  5450. <Principal Role="CmUser">
  5451. <PropertyRef Name="SiteId" />
  5452. <PropertyRef Name="UserId" />
  5453. </Principal>
  5454. <Dependent Role="CmUserLoginHistory">
  5455. <PropertyRef Name="SiteId" />
  5456. <PropertyRef Name="UserId" />
  5457. </Dependent>
  5458. </ReferentialConstraint>
  5459. </Association>
  5460. <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
  5461. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  5462. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5463. <ReferentialConstraint>
  5464. <Principal Role="CmBuilding">
  5465. <PropertyRef Name="SiteId" />
  5466. <PropertyRef Name="BuildingId" />
  5467. </Principal>
  5468. <Dependent Role="CmZoneTempHumiSet">
  5469. <PropertyRef Name="SiteId" />
  5470. <PropertyRef Name="BuildingId" />
  5471. </Dependent>
  5472. </ReferentialConstraint>
  5473. </Association>
  5474. <Association Name="FK_CmZoneTempHumiSet_CmFloor">
  5475. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  5476. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5477. <ReferentialConstraint>
  5478. <Principal Role="CmFloor">
  5479. <PropertyRef Name="SiteId" />
  5480. <PropertyRef Name="BuildingId" />
  5481. <PropertyRef Name="FloorId" />
  5482. </Principal>
  5483. <Dependent Role="CmZoneTempHumiSet">
  5484. <PropertyRef Name="SiteId" />
  5485. <PropertyRef Name="BuildingId" />
  5486. <PropertyRef Name="FloorId" />
  5487. </Dependent>
  5488. </ReferentialConstraint>
  5489. </Association>
  5490. <Association Name="FK_CmZoneTempHumiSet_CmSite">
  5491. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  5492. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  5493. <ReferentialConstraint>
  5494. <Principal Role="CmSite">
  5495. <PropertyRef Name="SiteId" />
  5496. </Principal>
  5497. <Dependent Role="CmZoneTempHumiSet">
  5498. <PropertyRef Name="SiteId" />
  5499. </Dependent>
  5500. </ReferentialConstraint>
  5501. </Association>
  5502. <Association Name="FK_CmZoneTempHumiSet_CmZone">
  5503. <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
  5504. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
  5505. <ReferentialConstraint>
  5506. <Principal Role="CmZone">
  5507. <PropertyRef Name="SiteId" />
  5508. <PropertyRef Name="BuildingId" />
  5509. <PropertyRef Name="FloorId" />
  5510. <PropertyRef Name="ZoneId" />
  5511. </Principal>
  5512. <Dependent Role="CmZoneTempHumiSet">
  5513. <PropertyRef Name="SiteId" />
  5514. <PropertyRef Name="BuildingId" />
  5515. <PropertyRef Name="FloorId" />
  5516. <PropertyRef Name="ZoneId" />
  5517. </Dependent>
  5518. </ReferentialConstraint>
  5519. </Association>
  5520. <Association Name="FK_FmsAccident_CmCompany">
  5521. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  5522. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5523. <ReferentialConstraint>
  5524. <Principal Role="CmCompany">
  5525. <PropertyRef Name="SiteId" />
  5526. <PropertyRef Name="CompanyId" />
  5527. </Principal>
  5528. <Dependent Role="FmsAccident">
  5529. <PropertyRef Name="SiteId" />
  5530. <PropertyRef Name="CompanyId" />
  5531. </Dependent>
  5532. </ReferentialConstraint>
  5533. </Association>
  5534. <Association Name="FK_FmsAccident_CmDepartment">
  5535. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  5536. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5537. <ReferentialConstraint>
  5538. <Principal Role="CmDepartment">
  5539. <PropertyRef Name="SiteId" />
  5540. <PropertyRef Name="CompanyId" />
  5541. <PropertyRef Name="DepartmentId" />
  5542. </Principal>
  5543. <Dependent Role="FmsAccident">
  5544. <PropertyRef Name="SiteId" />
  5545. <PropertyRef Name="CompanyId" />
  5546. <PropertyRef Name="DepartmentId" />
  5547. </Dependent>
  5548. </ReferentialConstraint>
  5549. </Association>
  5550. <Association Name="FK_FmsAccident_CmFile1">
  5551. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5552. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5553. <ReferentialConstraint>
  5554. <Principal Role="CmFile">
  5555. <PropertyRef Name="SiteId" />
  5556. <PropertyRef Name="FileId" />
  5557. </Principal>
  5558. <Dependent Role="FmsAccident">
  5559. <PropertyRef Name="SiteId" />
  5560. <PropertyRef Name="FileId1" />
  5561. </Dependent>
  5562. </ReferentialConstraint>
  5563. </Association>
  5564. <Association Name="FK_FmsAccident_CmFile2">
  5565. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5566. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5567. <ReferentialConstraint>
  5568. <Principal Role="CmFile">
  5569. <PropertyRef Name="SiteId" />
  5570. <PropertyRef Name="FileId" />
  5571. </Principal>
  5572. <Dependent Role="FmsAccident">
  5573. <PropertyRef Name="SiteId" />
  5574. <PropertyRef Name="FileId2" />
  5575. </Dependent>
  5576. </ReferentialConstraint>
  5577. </Association>
  5578. <Association Name="FK_FmsAccident_CmFile3">
  5579. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5580. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5581. <ReferentialConstraint>
  5582. <Principal Role="CmFile">
  5583. <PropertyRef Name="SiteId" />
  5584. <PropertyRef Name="FileId" />
  5585. </Principal>
  5586. <Dependent Role="FmsAccident">
  5587. <PropertyRef Name="SiteId" />
  5588. <PropertyRef Name="FileId3" />
  5589. </Dependent>
  5590. </ReferentialConstraint>
  5591. </Association>
  5592. <Association Name="FK_FmsAccident_FmsAccidentCodeType">
  5593. <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
  5594. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  5595. <ReferentialConstraint>
  5596. <Principal Role="FmsAccidentCodeType">
  5597. <PropertyRef Name="SiteId" />
  5598. <PropertyRef Name="AccidentTypeId" />
  5599. </Principal>
  5600. <Dependent Role="FmsAccident">
  5601. <PropertyRef Name="SiteId" />
  5602. <PropertyRef Name="AccidentTypeId" />
  5603. </Dependent>
  5604. </ReferentialConstraint>
  5605. </Association>
  5606. <Association Name="FK_FmsBudgetDetail_FmsBudget">
  5607. <End Role="FmsBudget" Type="Self.FmsBudget" Multiplicity="1">
  5608. <OnDelete Action="Cascade" />
  5609. </End>
  5610. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
  5611. <ReferentialConstraint>
  5612. <Principal Role="FmsBudget">
  5613. <PropertyRef Name="SiteId" />
  5614. <PropertyRef Name="Year" />
  5615. </Principal>
  5616. <Dependent Role="FmsBudgetDetail">
  5617. <PropertyRef Name="SiteId" />
  5618. <PropertyRef Name="Year" />
  5619. </Dependent>
  5620. </ReferentialConstraint>
  5621. </Association>
  5622. <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
  5623. <End Role="FmsBudgetCodeClass" Type="Self.FmsBudgetCodeClass" Multiplicity="1" />
  5624. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="*" />
  5625. <ReferentialConstraint>
  5626. <Principal Role="FmsBudgetCodeClass">
  5627. <PropertyRef Name="SiteId" />
  5628. <PropertyRef Name="BudgetClassId" />
  5629. </Principal>
  5630. <Dependent Role="FmsBudgetDetail">
  5631. <PropertyRef Name="SiteId" />
  5632. <PropertyRef Name="BudgetClassId" />
  5633. </Dependent>
  5634. </ReferentialConstraint>
  5635. </Association>
  5636. <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  5637. <End Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="1" />
  5638. <End Role="FmsBudgetDetailExecution" Type="Self.FmsBudgetDetailExecution" Multiplicity="*" />
  5639. <ReferentialConstraint>
  5640. <Principal Role="FmsBudgetDetail">
  5641. <PropertyRef Name="SiteId" />
  5642. <PropertyRef Name="Year" />
  5643. <PropertyRef Name="BudgetClassId" />
  5644. <PropertyRef Name="ParentBudgetClassId" />
  5645. </Principal>
  5646. <Dependent Role="FmsBudgetDetailExecution">
  5647. <PropertyRef Name="SiteId" />
  5648. <PropertyRef Name="Year" />
  5649. <PropertyRef Name="BudgetClassId" />
  5650. <PropertyRef Name="ParentBudgetClassId" />
  5651. </Dependent>
  5652. </ReferentialConstraint>
  5653. </Association>
  5654. <Association Name="FK_FmsConstruction_CmFile1">
  5655. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5656. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5657. <ReferentialConstraint>
  5658. <Principal Role="CmFile">
  5659. <PropertyRef Name="SiteId" />
  5660. <PropertyRef Name="FileId" />
  5661. </Principal>
  5662. <Dependent Role="FmsConstruction">
  5663. <PropertyRef Name="SiteId" />
  5664. <PropertyRef Name="FileId1" />
  5665. </Dependent>
  5666. </ReferentialConstraint>
  5667. </Association>
  5668. <Association Name="FK_FmsConstruction_CmFile2">
  5669. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5670. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5671. <ReferentialConstraint>
  5672. <Principal Role="CmFile">
  5673. <PropertyRef Name="SiteId" />
  5674. <PropertyRef Name="FileId" />
  5675. </Principal>
  5676. <Dependent Role="FmsConstruction">
  5677. <PropertyRef Name="SiteId" />
  5678. <PropertyRef Name="FileId2" />
  5679. </Dependent>
  5680. </ReferentialConstraint>
  5681. </Association>
  5682. <Association Name="FK_FmsConstruction_CmFile3">
  5683. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  5684. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5685. <ReferentialConstraint>
  5686. <Principal Role="CmFile">
  5687. <PropertyRef Name="SiteId" />
  5688. <PropertyRef Name="FileId" />
  5689. </Principal>
  5690. <Dependent Role="FmsConstruction">
  5691. <PropertyRef Name="SiteId" />
  5692. <PropertyRef Name="FileId3" />
  5693. </Dependent>
  5694. </ReferentialConstraint>
  5695. </Association>
  5696. <Association Name="FK_FmsConstruction_CmPartner">
  5697. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="1" />
  5698. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5699. <ReferentialConstraint>
  5700. <Principal Role="CmPartner">
  5701. <PropertyRef Name="SiteId" />
  5702. <PropertyRef Name="PartnerId" />
  5703. </Principal>
  5704. <Dependent Role="FmsConstruction">
  5705. <PropertyRef Name="SiteId" />
  5706. <PropertyRef Name="PartnerId" />
  5707. </Dependent>
  5708. </ReferentialConstraint>
  5709. </Association>
  5710. <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
  5711. <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
  5712. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5713. <ReferentialConstraint>
  5714. <Principal Role="FmsConstructionCodeProgress">
  5715. <PropertyRef Name="ProgressId" />
  5716. </Principal>
  5717. <Dependent Role="FmsConstruction">
  5718. <PropertyRef Name="ProgressId" />
  5719. </Dependent>
  5720. </ReferentialConstraint>
  5721. </Association>
  5722. <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
  5723. <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
  5724. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  5725. <ReferentialConstraint>
  5726. <Principal Role="FmsConstructionCodeType">
  5727. <PropertyRef Name="SiteId" />
  5728. <PropertyRef Name="ConstructionTypeId" />
  5729. </Principal>
  5730. <Dependent Role="FmsConstruction">
  5731. <PropertyRef Name="SiteId" />
  5732. <PropertyRef Name="ConstructionTypeId" />
  5733. </Dependent>
  5734. </ReferentialConstraint>
  5735. </Association>
  5736. <Association Name="FK_FmsConstructionEstimation_CmUser">
  5737. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5738. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
  5739. <ReferentialConstraint>
  5740. <Principal Role="CmUser">
  5741. <PropertyRef Name="SiteId" />
  5742. <PropertyRef Name="UserId" />
  5743. </Principal>
  5744. <Dependent Role="FmsConstructionEstimation">
  5745. <PropertyRef Name="SiteId" />
  5746. <PropertyRef Name="EstimateUserId" />
  5747. </Dependent>
  5748. </ReferentialConstraint>
  5749. </Association>
  5750. <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
  5751. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
  5752. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
  5753. <ReferentialConstraint>
  5754. <Principal Role="FmsConstruction">
  5755. <PropertyRef Name="SiteId" />
  5756. <PropertyRef Name="ConstructionId" />
  5757. </Principal>
  5758. <Dependent Role="FmsConstructionEstimation">
  5759. <PropertyRef Name="SiteId" />
  5760. <PropertyRef Name="ConstructionId" />
  5761. </Dependent>
  5762. </ReferentialConstraint>
  5763. </Association>
  5764. <Association Name="FK_FmsContract_CmPartner">
  5765. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  5766. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5767. <ReferentialConstraint>
  5768. <Principal Role="CmPartner">
  5769. <PropertyRef Name="SiteId" />
  5770. <PropertyRef Name="PartnerId" />
  5771. </Principal>
  5772. <Dependent Role="FmsContract">
  5773. <PropertyRef Name="SiteId" />
  5774. <PropertyRef Name="PartnerId" />
  5775. </Dependent>
  5776. </ReferentialConstraint>
  5777. </Association>
  5778. <Association Name="FK_FmsContract_CmPartnerType">
  5779. <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="0..1" />
  5780. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5781. <ReferentialConstraint>
  5782. <Principal Role="CmPartnerType">
  5783. <PropertyRef Name="PartnerTypeId" />
  5784. </Principal>
  5785. <Dependent Role="FmsContract">
  5786. <PropertyRef Name="PartnerTypeId" />
  5787. </Dependent>
  5788. </ReferentialConstraint>
  5789. </Association>
  5790. <Association Name="FK_FmsContract_FmsContractClass">
  5791. <End Role="FmsContractClass" Type="Self.FmsContractClass" Multiplicity="0..1" />
  5792. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5793. <ReferentialConstraint>
  5794. <Principal Role="FmsContractClass">
  5795. <PropertyRef Name="SiteId" />
  5796. <PropertyRef Name="ContractClassId" />
  5797. </Principal>
  5798. <Dependent Role="FmsContract">
  5799. <PropertyRef Name="SiteId" />
  5800. <PropertyRef Name="ContractClassId" />
  5801. </Dependent>
  5802. </ReferentialConstraint>
  5803. </Association>
  5804. <Association Name="FK_FmsContract_FmsContractMethod">
  5805. <End Role="FmsContractMethod" Type="Self.FmsContractMethod" Multiplicity="0..1" />
  5806. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5807. <ReferentialConstraint>
  5808. <Principal Role="FmsContractMethod">
  5809. <PropertyRef Name="SiteId" />
  5810. <PropertyRef Name="ContractMethodId" />
  5811. </Principal>
  5812. <Dependent Role="FmsContract">
  5813. <PropertyRef Name="SiteId" />
  5814. <PropertyRef Name="ContractMethodId" />
  5815. </Dependent>
  5816. </ReferentialConstraint>
  5817. </Association>
  5818. <Association Name="FK_FmsContract_FmsContractType">
  5819. <End Role="FmsContractType" Type="Self.FmsContractType" Multiplicity="0..1" />
  5820. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5821. <ReferentialConstraint>
  5822. <Principal Role="FmsContractType">
  5823. <PropertyRef Name="SiteId" />
  5824. <PropertyRef Name="ContractTypeId" />
  5825. </Principal>
  5826. <Dependent Role="FmsContract">
  5827. <PropertyRef Name="SiteId" />
  5828. <PropertyRef Name="ContractTypeId" />
  5829. </Dependent>
  5830. </ReferentialConstraint>
  5831. </Association>
  5832. <Association Name="FK_FmsContract_FmsPaymentType">
  5833. <End Role="FmsPaymentType" Type="Self.FmsPaymentType" Multiplicity="0..1" />
  5834. <End Role="FmsContract" Type="Self.FmsContract" Multiplicity="*" />
  5835. <ReferentialConstraint>
  5836. <Principal Role="FmsPaymentType">
  5837. <PropertyRef Name="SiteId" />
  5838. <PropertyRef Name="PaymentTypeId" />
  5839. </Principal>
  5840. <Dependent Role="FmsContract">
  5841. <PropertyRef Name="SiteId" />
  5842. <PropertyRef Name="PartnerTypeId" />
  5843. </Dependent>
  5844. </ReferentialConstraint>
  5845. </Association>
  5846. <Association Name="FK_FmsDailyCheckReport_CmUser">
  5847. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5848. <End Role="FmsDailyCheckReport" Type="Self.FmsDailyCheckReport" Multiplicity="*" />
  5849. <ReferentialConstraint>
  5850. <Principal Role="CmUser">
  5851. <PropertyRef Name="SiteId" />
  5852. <PropertyRef Name="UserId" />
  5853. </Principal>
  5854. <Dependent Role="FmsDailyCheckReport">
  5855. <PropertyRef Name="SiteId" />
  5856. <PropertyRef Name="RegisterUserId" />
  5857. </Dependent>
  5858. </ReferentialConstraint>
  5859. </Association>
  5860. <Association Name="FK_FmsDailyReport_CmBusinessField">
  5861. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  5862. <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
  5863. <ReferentialConstraint>
  5864. <Principal Role="CmBusinessField">
  5865. <PropertyRef Name="SiteId" />
  5866. <PropertyRef Name="BusinessFieldId" />
  5867. </Principal>
  5868. <Dependent Role="FmsDailyReport">
  5869. <PropertyRef Name="SiteId" />
  5870. <PropertyRef Name="BusinessFieldId" />
  5871. </Dependent>
  5872. </ReferentialConstraint>
  5873. </Association>
  5874. <Association Name="FK_FmsDailyReport_CmUser">
  5875. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5876. <End Role="FmsDailyReport" Type="Self.FmsDailyReport" Multiplicity="*" />
  5877. <ReferentialConstraint>
  5878. <Principal Role="CmUser">
  5879. <PropertyRef Name="SiteId" />
  5880. <PropertyRef Name="UserId" />
  5881. </Principal>
  5882. <Dependent Role="FmsDailyReport">
  5883. <PropertyRef Name="SiteId" />
  5884. <PropertyRef Name="RegisterUserId" />
  5885. </Dependent>
  5886. </ReferentialConstraint>
  5887. </Association>
  5888. <Association Name="FK_FmsEquipment_CmUser">
  5889. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5890. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5891. <ReferentialConstraint>
  5892. <Principal Role="CmUser">
  5893. <PropertyRef Name="SiteId" />
  5894. <PropertyRef Name="UserId" />
  5895. </Principal>
  5896. <Dependent Role="FmsEquipment">
  5897. <PropertyRef Name="SiteId" />
  5898. <PropertyRef Name="RegisterUserId" />
  5899. </Dependent>
  5900. </ReferentialConstraint>
  5901. </Association>
  5902. <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
  5903. <End Role="FmsEquipmentCodeType" Type="Self.FmsEquipmentCodeType" Multiplicity="1" />
  5904. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5905. <ReferentialConstraint>
  5906. <Principal Role="FmsEquipmentCodeType">
  5907. <PropertyRef Name="SiteId" />
  5908. <PropertyRef Name="EquipmentTypeId" />
  5909. </Principal>
  5910. <Dependent Role="FmsEquipment">
  5911. <PropertyRef Name="SiteId" />
  5912. <PropertyRef Name="EquipmentTypeId" />
  5913. </Dependent>
  5914. </ReferentialConstraint>
  5915. </Association>
  5916. <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
  5917. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
  5918. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="*" />
  5919. <ReferentialConstraint>
  5920. <Principal Role="FmsMaterialWarehouse">
  5921. <PropertyRef Name="SiteId" />
  5922. <PropertyRef Name="WarehouseId" />
  5923. </Principal>
  5924. <Dependent Role="FmsEquipment">
  5925. <PropertyRef Name="SiteId" />
  5926. <PropertyRef Name="WarehouseId" />
  5927. </Dependent>
  5928. </ReferentialConstraint>
  5929. </Association>
  5930. <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
  5931. <End Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="1" />
  5932. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  5933. <ReferentialConstraint>
  5934. <Principal Role="FmsEquipment">
  5935. <PropertyRef Name="SiteId" />
  5936. <PropertyRef Name="EquipmentId" />
  5937. </Principal>
  5938. <Dependent Role="FmsEquipmentHistory">
  5939. <PropertyRef Name="SiteId" />
  5940. <PropertyRef Name="EquipmentId" />
  5941. </Dependent>
  5942. </ReferentialConstraint>
  5943. </Association>
  5944. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  5945. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  5946. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  5947. <ReferentialConstraint>
  5948. <Principal Role="FmsEquipmentCodeStateType">
  5949. <PropertyRef Name="EquipmentStateTypeId" />
  5950. </Principal>
  5951. <Dependent Role="FmsEquipmentHistory">
  5952. <PropertyRef Name="EquipmentStateTypeId" />
  5953. </Dependent>
  5954. </ReferentialConstraint>
  5955. </Association>
  5956. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  5957. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="0..1">
  5958. <OnDelete Action="Cascade" />
  5959. </End>
  5960. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  5961. <ReferentialConstraint>
  5962. <Principal Role="FmsEquipmentRentInfo">
  5963. <PropertyRef Name="SiteId" />
  5964. <PropertyRef Name="EquipmentRentId" />
  5965. </Principal>
  5966. <Dependent Role="FmsEquipmentHistory">
  5967. <PropertyRef Name="SiteId" />
  5968. <PropertyRef Name="EquipmentRentId" />
  5969. </Dependent>
  5970. </ReferentialConstraint>
  5971. </Association>
  5972. <Association Name="FK_FmsEquipmentRentInfo_CmUser">
  5973. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  5974. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  5975. <ReferentialConstraint>
  5976. <Principal Role="CmUser">
  5977. <PropertyRef Name="SiteId" />
  5978. <PropertyRef Name="UserId" />
  5979. </Principal>
  5980. <Dependent Role="FmsEquipmentRentInfo">
  5981. <PropertyRef Name="SiteId" />
  5982. <PropertyRef Name="RegisterUserId" />
  5983. </Dependent>
  5984. </ReferentialConstraint>
  5985. </Association>
  5986. <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
  5987. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  5988. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  5989. <ReferentialConstraint>
  5990. <Principal Role="CmUser">
  5991. <PropertyRef Name="SiteId" />
  5992. <PropertyRef Name="UserId" />
  5993. </Principal>
  5994. <Dependent Role="FmsEquipmentRentInfo">
  5995. <PropertyRef Name="SiteId" />
  5996. <PropertyRef Name="RentUserId" />
  5997. </Dependent>
  5998. </ReferentialConstraint>
  5999. </Association>
  6000. <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  6001. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  6002. <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
  6003. <ReferentialConstraint>
  6004. <Principal Role="FmsEquipmentCodeStateType">
  6005. <PropertyRef Name="EquipmentStateTypeId" />
  6006. </Principal>
  6007. <Dependent Role="FmsEquipmentRentInfo">
  6008. <PropertyRef Name="EquipmentStateTypeId" />
  6009. </Dependent>
  6010. </ReferentialConstraint>
  6011. </Association>
  6012. <Association Name="FK_FmsFacilityOperationReport_CmUser">
  6013. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6014. <End Role="FmsFacilityOperationReport" Type="Self.FmsFacilityOperationReport" Multiplicity="*" />
  6015. <ReferentialConstraint>
  6016. <Principal Role="CmUser">
  6017. <PropertyRef Name="SiteId" />
  6018. <PropertyRef Name="UserId" />
  6019. </Principal>
  6020. <Dependent Role="FmsFacilityOperationReport">
  6021. <PropertyRef Name="SiteId" />
  6022. <PropertyRef Name="RegisterUserId" />
  6023. </Dependent>
  6024. </ReferentialConstraint>
  6025. </Association>
  6026. <Association Name="FK_FmsManual_FmsManualType">
  6027. <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
  6028. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
  6029. <ReferentialConstraint>
  6030. <Principal Role="FmsManualType">
  6031. <PropertyRef Name="SiteId" />
  6032. <PropertyRef Name="ManualTypeId" />
  6033. </Principal>
  6034. <Dependent Role="FmsManual">
  6035. <PropertyRef Name="SiteId" />
  6036. <PropertyRef Name="ManualTypeId" />
  6037. </Dependent>
  6038. </ReferentialConstraint>
  6039. </Association>
  6040. <Association Name="FK_FmsManualHistory_CmFile">
  6041. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6042. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6043. <ReferentialConstraint>
  6044. <Principal Role="CmFile">
  6045. <PropertyRef Name="SiteId" />
  6046. <PropertyRef Name="FileId" />
  6047. </Principal>
  6048. <Dependent Role="FmsManualHistory">
  6049. <PropertyRef Name="SiteId" />
  6050. <PropertyRef Name="FileId" />
  6051. </Dependent>
  6052. </ReferentialConstraint>
  6053. </Association>
  6054. <Association Name="FK_FmsManualHistory_CmUser">
  6055. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6056. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6057. <ReferentialConstraint>
  6058. <Principal Role="CmUser">
  6059. <PropertyRef Name="SiteId" />
  6060. <PropertyRef Name="UserId" />
  6061. </Principal>
  6062. <Dependent Role="FmsManualHistory">
  6063. <PropertyRef Name="SiteId" />
  6064. <PropertyRef Name="UpdatedUserId" />
  6065. </Dependent>
  6066. </ReferentialConstraint>
  6067. </Association>
  6068. <Association Name="FK_FmsManualHistory_FmsManual">
  6069. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
  6070. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  6071. <ReferentialConstraint>
  6072. <Principal Role="FmsManual">
  6073. <PropertyRef Name="SiteId" />
  6074. <PropertyRef Name="ManualId" />
  6075. </Principal>
  6076. <Dependent Role="FmsManualHistory">
  6077. <PropertyRef Name="SiteId" />
  6078. <PropertyRef Name="ManualId" />
  6079. </Dependent>
  6080. </ReferentialConstraint>
  6081. </Association>
  6082. <Association Name="FK_FmsMaterial_CmBusinessField">
  6083. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6084. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6085. <ReferentialConstraint>
  6086. <Principal Role="CmBusinessField">
  6087. <PropertyRef Name="SiteId" />
  6088. <PropertyRef Name="BusinessFieldId" />
  6089. </Principal>
  6090. <Dependent Role="FmsMaterial">
  6091. <PropertyRef Name="SiteId" />
  6092. <PropertyRef Name="BusinessFieldId" />
  6093. </Dependent>
  6094. </ReferentialConstraint>
  6095. </Association>
  6096. <Association Name="FK_FmsMaterial_CmFile">
  6097. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6098. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6099. <ReferentialConstraint>
  6100. <Principal Role="CmFile">
  6101. <PropertyRef Name="SiteId" />
  6102. <PropertyRef Name="FileId" />
  6103. </Principal>
  6104. <Dependent Role="FmsMaterial">
  6105. <PropertyRef Name="SiteId" />
  6106. <PropertyRef Name="ImageFileId" />
  6107. </Dependent>
  6108. </ReferentialConstraint>
  6109. </Association>
  6110. <Association Name="FK_FmsMaterial_CmSite">
  6111. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6112. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6113. <ReferentialConstraint>
  6114. <Principal Role="CmSite">
  6115. <PropertyRef Name="SiteId" />
  6116. </Principal>
  6117. <Dependent Role="FmsMaterial">
  6118. <PropertyRef Name="SiteId" />
  6119. </Dependent>
  6120. </ReferentialConstraint>
  6121. </Association>
  6122. <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
  6123. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="0..1" />
  6124. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6125. <ReferentialConstraint>
  6126. <Principal Role="FmsMaterialCodeLocation">
  6127. <PropertyRef Name="SiteId" />
  6128. <PropertyRef Name="LocationId" />
  6129. </Principal>
  6130. <Dependent Role="FmsMaterial">
  6131. <PropertyRef Name="SiteId" />
  6132. <PropertyRef Name="LocationId" />
  6133. </Dependent>
  6134. </ReferentialConstraint>
  6135. </Association>
  6136. <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
  6137. <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="0..1" />
  6138. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6139. <ReferentialConstraint>
  6140. <Principal Role="FmsMaterialCodeType">
  6141. <PropertyRef Name="SiteId" />
  6142. <PropertyRef Name="MaterialTypeId" />
  6143. </Principal>
  6144. <Dependent Role="FmsMaterial">
  6145. <PropertyRef Name="SiteId" />
  6146. <PropertyRef Name="MaterialTypeId" />
  6147. </Dependent>
  6148. </ReferentialConstraint>
  6149. </Association>
  6150. <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
  6151. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  6152. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6153. <ReferentialConstraint>
  6154. <Principal Role="FmsMaterialTradeCompany">
  6155. <PropertyRef Name="SiteId" />
  6156. <PropertyRef Name="TradeCompanyId" />
  6157. </Principal>
  6158. <Dependent Role="FmsMaterial">
  6159. <PropertyRef Name="SiteId" />
  6160. <PropertyRef Name="TradeCompanyId" />
  6161. </Dependent>
  6162. </ReferentialConstraint>
  6163. </Association>
  6164. <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
  6165. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
  6166. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
  6167. <ReferentialConstraint>
  6168. <Principal Role="FmsMaterialWarehouse">
  6169. <PropertyRef Name="SiteId" />
  6170. <PropertyRef Name="WarehouseId" />
  6171. </Principal>
  6172. <Dependent Role="FmsMaterial">
  6173. <PropertyRef Name="SiteId" />
  6174. <PropertyRef Name="WarehouseId" />
  6175. </Dependent>
  6176. </ReferentialConstraint>
  6177. </Association>
  6178. <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  6179. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
  6180. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  6181. <ReferentialConstraint>
  6182. <Principal Role="FmsMaterialPurchaseRequest">
  6183. <PropertyRef Name="SiteId" />
  6184. <PropertyRef Name="PurchaseRequestId" />
  6185. </Principal>
  6186. <Dependent Role="FmsMaterialPurchaseOrder">
  6187. <PropertyRef Name="SiteId" />
  6188. <PropertyRef Name="PurchaseRequestId" />
  6189. </Dependent>
  6190. </ReferentialConstraint>
  6191. </Association>
  6192. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  6193. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6194. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  6195. <ReferentialConstraint>
  6196. <Principal Role="FmsMaterial">
  6197. <PropertyRef Name="SiteId" />
  6198. <PropertyRef Name="MaterialId" />
  6199. </Principal>
  6200. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  6201. <PropertyRef Name="SiteId" />
  6202. <PropertyRef Name="MaterialId" />
  6203. </Dependent>
  6204. </ReferentialConstraint>
  6205. </Association>
  6206. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  6207. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
  6208. <OnDelete Action="Cascade" />
  6209. </End>
  6210. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  6211. <ReferentialConstraint>
  6212. <Principal Role="FmsMaterialPurchaseOrder">
  6213. <PropertyRef Name="SiteId" />
  6214. <PropertyRef Name="PurchaseOrderId" />
  6215. </Principal>
  6216. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  6217. <PropertyRef Name="SiteId" />
  6218. <PropertyRef Name="PurchaseOrderId" />
  6219. </Dependent>
  6220. </ReferentialConstraint>
  6221. </Association>
  6222. <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  6223. <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
  6224. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  6225. <ReferentialConstraint>
  6226. <Principal Role="FmsMaterialCodePurchaseType">
  6227. <PropertyRef Name="PurchaseTypeId" />
  6228. </Principal>
  6229. <Dependent Role="FmsMaterialPurchaseRequest">
  6230. <PropertyRef Name="PurchaseTypeId" />
  6231. </Dependent>
  6232. </ReferentialConstraint>
  6233. </Association>
  6234. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  6235. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6236. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  6237. <ReferentialConstraint>
  6238. <Principal Role="FmsMaterial">
  6239. <PropertyRef Name="SiteId" />
  6240. <PropertyRef Name="MaterialId" />
  6241. </Principal>
  6242. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  6243. <PropertyRef Name="SiteId" />
  6244. <PropertyRef Name="MaterialId" />
  6245. </Dependent>
  6246. </ReferentialConstraint>
  6247. </Association>
  6248. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  6249. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
  6250. <OnDelete Action="Cascade" />
  6251. </End>
  6252. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  6253. <ReferentialConstraint>
  6254. <Principal Role="FmsMaterialPurchaseRequest">
  6255. <PropertyRef Name="SiteId" />
  6256. <PropertyRef Name="PurchaseRequestId" />
  6257. </Principal>
  6258. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  6259. <PropertyRef Name="SiteId" />
  6260. <PropertyRef Name="PurchaseRequestId" />
  6261. </Dependent>
  6262. </ReferentialConstraint>
  6263. </Association>
  6264. <Association Name="FK_FmsMaterialRelease_CmBusinessField">
  6265. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6266. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6267. <ReferentialConstraint>
  6268. <Principal Role="CmBusinessField">
  6269. <PropertyRef Name="SiteId" />
  6270. <PropertyRef Name="BusinessFieldId" />
  6271. </Principal>
  6272. <Dependent Role="FmsMaterialRelease">
  6273. <PropertyRef Name="SiteId" />
  6274. <PropertyRef Name="BusinessFieldId" />
  6275. </Dependent>
  6276. </ReferentialConstraint>
  6277. </Association>
  6278. <Association Name="FK_FmsMaterialRelease_CmSite">
  6279. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6280. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6281. <ReferentialConstraint>
  6282. <Principal Role="CmSite">
  6283. <PropertyRef Name="SiteId" />
  6284. </Principal>
  6285. <Dependent Role="FmsMaterialRelease">
  6286. <PropertyRef Name="SiteId" />
  6287. </Dependent>
  6288. </ReferentialConstraint>
  6289. </Association>
  6290. <Association Name="FK_FmsMaterialRelease_CmUser">
  6291. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6292. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6293. <ReferentialConstraint>
  6294. <Principal Role="CmUser">
  6295. <PropertyRef Name="SiteId" />
  6296. <PropertyRef Name="UserId" />
  6297. </Principal>
  6298. <Dependent Role="FmsMaterialRelease">
  6299. <PropertyRef Name="SiteId" />
  6300. <PropertyRef Name="ConfirmedUserId" />
  6301. </Dependent>
  6302. </ReferentialConstraint>
  6303. </Association>
  6304. <Association Name="FK_FmsMaterialRelease_CmUser1">
  6305. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6306. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6307. <ReferentialConstraint>
  6308. <Principal Role="CmUser">
  6309. <PropertyRef Name="SiteId" />
  6310. <PropertyRef Name="UserId" />
  6311. </Principal>
  6312. <Dependent Role="FmsMaterialRelease">
  6313. <PropertyRef Name="SiteId" />
  6314. <PropertyRef Name="AdjustmentUserId" />
  6315. </Dependent>
  6316. </ReferentialConstraint>
  6317. </Association>
  6318. <Association Name="FK_FmsMaterialRelease_FmsMaterial">
  6319. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="0..1" />
  6320. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6321. <ReferentialConstraint>
  6322. <Principal Role="FmsMaterial">
  6323. <PropertyRef Name="SiteId" />
  6324. <PropertyRef Name="MaterialId" />
  6325. </Principal>
  6326. <Dependent Role="FmsMaterialRelease">
  6327. <PropertyRef Name="SiteId" />
  6328. <PropertyRef Name="MaterialId" />
  6329. </Dependent>
  6330. </ReferentialConstraint>
  6331. </Association>
  6332. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  6333. <End Role="FmsMaterialCodeAdjustmentType" Type="Self.FmsMaterialCodeAdjustmentType" Multiplicity="1" />
  6334. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6335. <ReferentialConstraint>
  6336. <Principal Role="FmsMaterialCodeAdjustmentType">
  6337. <PropertyRef Name="AdjustmentTypeId" />
  6338. </Principal>
  6339. <Dependent Role="FmsMaterialRelease">
  6340. <PropertyRef Name="AdjustmentTypeId" />
  6341. </Dependent>
  6342. </ReferentialConstraint>
  6343. </Association>
  6344. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  6345. <End Role="FmsMaterialCodeReleaseType" Type="Self.FmsMaterialCodeReleaseType" Multiplicity="1" />
  6346. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6347. <ReferentialConstraint>
  6348. <Principal Role="FmsMaterialCodeReleaseType">
  6349. <PropertyRef Name="ReleaseTypeId" />
  6350. </Principal>
  6351. <Dependent Role="FmsMaterialRelease">
  6352. <PropertyRef Name="ReleaseTypeId" />
  6353. </Dependent>
  6354. </ReferentialConstraint>
  6355. </Association>
  6356. <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
  6357. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  6358. <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
  6359. <ReferentialConstraint>
  6360. <Principal Role="FmsWorkResult">
  6361. <PropertyRef Name="SiteId" />
  6362. <PropertyRef Name="WorkRequestId" />
  6363. </Principal>
  6364. <Dependent Role="FmsMaterialRelease">
  6365. <PropertyRef Name="SiteId" />
  6366. <PropertyRef Name="WorkRequestId" />
  6367. </Dependent>
  6368. </ReferentialConstraint>
  6369. </Association>
  6370. <Association Name="FK_FmsMaterialStored_FmsMaterial">
  6371. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6372. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6373. <ReferentialConstraint>
  6374. <Principal Role="FmsMaterial">
  6375. <PropertyRef Name="SiteId" />
  6376. <PropertyRef Name="MaterialId" />
  6377. </Principal>
  6378. <Dependent Role="FmsMaterialStored">
  6379. <PropertyRef Name="SiteId" />
  6380. <PropertyRef Name="MaterialId" />
  6381. </Dependent>
  6382. </ReferentialConstraint>
  6383. </Association>
  6384. <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  6385. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
  6386. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6387. <ReferentialConstraint>
  6388. <Principal Role="FmsMaterialPurchaseOrder">
  6389. <PropertyRef Name="SiteId" />
  6390. <PropertyRef Name="PurchaseOrderId" />
  6391. </Principal>
  6392. <Dependent Role="FmsMaterialStored">
  6393. <PropertyRef Name="SiteId" />
  6394. <PropertyRef Name="PurchaseOrderId" />
  6395. </Dependent>
  6396. </ReferentialConstraint>
  6397. </Association>
  6398. <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
  6399. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
  6400. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  6401. <ReferentialConstraint>
  6402. <Principal Role="FmsMaterialWarehouse">
  6403. <PropertyRef Name="SiteId" />
  6404. <PropertyRef Name="WarehouseId" />
  6405. </Principal>
  6406. <Dependent Role="FmsMaterialStored">
  6407. <PropertyRef Name="SiteId" />
  6408. <PropertyRef Name="WarehouseId" />
  6409. </Dependent>
  6410. </ReferentialConstraint>
  6411. </Association>
  6412. <Association Name="FK_FmsMonthlyReport_CmUser">
  6413. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  6414. <End Role="FmsMonthlyReport" Type="Self.FmsMonthlyReport" Multiplicity="*" />
  6415. <ReferentialConstraint>
  6416. <Principal Role="CmUser">
  6417. <PropertyRef Name="SiteId" />
  6418. <PropertyRef Name="UserId" />
  6419. </Principal>
  6420. <Dependent Role="FmsMonthlyReport">
  6421. <PropertyRef Name="SiteId" />
  6422. <PropertyRef Name="RegisterUserId" />
  6423. </Dependent>
  6424. </ReferentialConstraint>
  6425. </Association>
  6426. <Association Name="FK_FmsReport_CmBusinessField">
  6427. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  6428. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6429. <ReferentialConstraint>
  6430. <Principal Role="CmBusinessField">
  6431. <PropertyRef Name="SiteId" />
  6432. <PropertyRef Name="BusinessFieldId" />
  6433. </Principal>
  6434. <Dependent Role="FmsReport">
  6435. <PropertyRef Name="SiteId" />
  6436. <PropertyRef Name="BusinessFieldId" />
  6437. </Dependent>
  6438. </ReferentialConstraint>
  6439. </Association>
  6440. <Association Name="FK_FmsReport_CmFile">
  6441. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  6442. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6443. <ReferentialConstraint>
  6444. <Principal Role="CmFile">
  6445. <PropertyRef Name="SiteId" />
  6446. <PropertyRef Name="FileId" />
  6447. </Principal>
  6448. <Dependent Role="FmsReport">
  6449. <PropertyRef Name="SiteId" />
  6450. <PropertyRef Name="FileId" />
  6451. </Dependent>
  6452. </ReferentialConstraint>
  6453. </Association>
  6454. <Association Name="FK_FmsReport_CmSite">
  6455. <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
  6456. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6457. <ReferentialConstraint>
  6458. <Principal Role="CmSite">
  6459. <PropertyRef Name="SiteId" />
  6460. </Principal>
  6461. <Dependent Role="FmsReport">
  6462. <PropertyRef Name="SiteId" />
  6463. </Dependent>
  6464. </ReferentialConstraint>
  6465. </Association>
  6466. <Association Name="FK_FmsReport_CmUser">
  6467. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6468. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6469. <ReferentialConstraint>
  6470. <Principal Role="CmUser">
  6471. <PropertyRef Name="SiteId" />
  6472. <PropertyRef Name="UserId" />
  6473. </Principal>
  6474. <Dependent Role="FmsReport">
  6475. <PropertyRef Name="SiteId" />
  6476. <PropertyRef Name="RegisterUserId" />
  6477. </Dependent>
  6478. </ReferentialConstraint>
  6479. </Association>
  6480. <Association Name="FK_FmsReport_CmUser1">
  6481. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6482. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6483. <ReferentialConstraint>
  6484. <Principal Role="CmUser">
  6485. <PropertyRef Name="SiteId" />
  6486. <PropertyRef Name="UserId" />
  6487. </Principal>
  6488. <Dependent Role="FmsReport">
  6489. <PropertyRef Name="SiteId" />
  6490. <PropertyRef Name="ConfirmUserId1" />
  6491. </Dependent>
  6492. </ReferentialConstraint>
  6493. </Association>
  6494. <Association Name="FK_FmsReport_CmUser2">
  6495. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  6496. <End Role="FmsReport" Type="Self.FmsReport" Multiplicity="*" />
  6497. <ReferentialConstraint>
  6498. <Principal Role="CmUser">
  6499. <PropertyRef Name="SiteId" />
  6500. <PropertyRef Name="UserId" />
  6501. </Principal>
  6502. <Dependent Role="FmsReport">
  6503. <PropertyRef Name="SiteId" />
  6504. <PropertyRef Name="ConfirmUserId2" />
  6505. </Dependent>
  6506. </ReferentialConstraint>
  6507. </Association>
  6508. <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
  6509. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6510. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  6511. <ReferentialConstraint>
  6512. <Principal Role="CmFacility">
  6513. <PropertyRef Name="SiteId" />
  6514. <PropertyRef Name="FacilityCode" />
  6515. </Principal>
  6516. <Dependent Role="FmsWorkOrderToFacility">
  6517. <PropertyRef Name="SiteId" />
  6518. <PropertyRef Name="FacilityCode" />
  6519. </Dependent>
  6520. </ReferentialConstraint>
  6521. </Association>
  6522. <Association Name="FK_FmsWorkRequest_CmPartner">
  6523. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  6524. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  6525. <ReferentialConstraint>
  6526. <Principal Role="CmPartner">
  6527. <PropertyRef Name="SiteId" />
  6528. <PropertyRef Name="PartnerId" />
  6529. </Principal>
  6530. <Dependent Role="FmsWorkRequest">
  6531. <PropertyRef Name="SiteId" />
  6532. <PropertyRef Name="InspectionAgencyId" />
  6533. </Dependent>
  6534. </ReferentialConstraint>
  6535. </Association>
  6536. <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
  6537. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6538. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  6539. <ReferentialConstraint>
  6540. <Principal Role="CmFacility">
  6541. <PropertyRef Name="SiteId" />
  6542. <PropertyRef Name="FacilityCode" />
  6543. </Principal>
  6544. <Dependent Role="FmsWorkRequestToFacility">
  6545. <PropertyRef Name="SiteId" />
  6546. <PropertyRef Name="FacilityCode" />
  6547. </Dependent>
  6548. </ReferentialConstraint>
  6549. </Association>
  6550. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  6551. <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
  6552. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6553. <ReferentialConstraint>
  6554. <Principal Role="FmsMaterial">
  6555. <PropertyRef Name="SiteId" />
  6556. <PropertyRef Name="MaterialId" />
  6557. </Principal>
  6558. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6559. <PropertyRef Name="SiteId" />
  6560. <PropertyRef Name="MaterialId" />
  6561. </Dependent>
  6562. </ReferentialConstraint>
  6563. </Association>
  6564. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  6565. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  6566. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6567. <ReferentialConstraint>
  6568. <Principal Role="FmsWorkResult">
  6569. <PropertyRef Name="SiteId" />
  6570. <PropertyRef Name="WorkRequestId" />
  6571. </Principal>
  6572. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6573. <PropertyRef Name="SiteId" />
  6574. <PropertyRef Name="WorkRequestId" />
  6575. </Dependent>
  6576. </ReferentialConstraint>
  6577. </Association>
  6578. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  6579. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1" />
  6580. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  6581. <ReferentialConstraint>
  6582. <Principal Role="FmsWorkResultCheckItem">
  6583. <PropertyRef Name="CheckItemId" />
  6584. </Principal>
  6585. <Dependent Role="FmsWorkResultCheckItemMaterial">
  6586. <PropertyRef Name="CheckItemId" />
  6587. </Dependent>
  6588. </ReferentialConstraint>
  6589. </Association>
  6590. <Association Name="FK_FmsWorkSchedule_CmPartner">
  6591. <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
  6592. <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
  6593. <ReferentialConstraint>
  6594. <Principal Role="CmPartner">
  6595. <PropertyRef Name="SiteId" />
  6596. <PropertyRef Name="PartnerId" />
  6597. </Principal>
  6598. <Dependent Role="FmsWorkSchedule">
  6599. <PropertyRef Name="SiteId" />
  6600. <PropertyRef Name="InspectionAgencyId" />
  6601. </Dependent>
  6602. </ReferentialConstraint>
  6603. </Association>
  6604. <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
  6605. <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
  6606. <End Role="FmsWorkScheduleToFacility" Type="Self.FmsWorkScheduleToFacility" Multiplicity="*" />
  6607. <ReferentialConstraint>
  6608. <Principal Role="CmFacility">
  6609. <PropertyRef Name="SiteId" />
  6610. <PropertyRef Name="FacilityCode" />
  6611. </Principal>
  6612. <Dependent Role="FmsWorkScheduleToFacility">
  6613. <PropertyRef Name="SiteId" />
  6614. <PropertyRef Name="FacilityCode" />
  6615. </Dependent>
  6616. </ReferentialConstraint>
  6617. </Association>
  6618. <EntityContainer Name="iBemsModelStoreContainer">
  6619. <EntitySet Name="BemsAlarmGroup" EntityType="Self.BemsAlarmGroup" Schema="dbo" store:Type="Tables" />
  6620. <EntitySet Name="BemsAlarmGroupUser" EntityType="Self.BemsAlarmGroupUser" Schema="dbo" store:Type="Tables" />
  6621. <EntitySet Name="BemsAlarmLog" EntityType="Self.BemsAlarmLog" Schema="dbo" store:Type="Tables" />
  6622. <EntitySet Name="BemsAlarmSetting" EntityType="Self.BemsAlarmSetting" Schema="dbo" store:Type="Tables" />
  6623. <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" Schema="dbo" store:Type="Tables" />
  6624. <EntitySet Name="BemsChartInfo" EntityType="Self.BemsChartInfo" Schema="dbo" store:Type="Tables" />
  6625. <EntitySet Name="BemsControlAHUTempConfig" EntityType="Self.BemsControlAHUTempConfig" Schema="dbo" store:Type="Tables" />
  6626. <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" Schema="dbo" store:Type="Tables" />
  6627. <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="Self.BemsEnergyConfigPercentMonth" Schema="dbo" store:Type="Tables" />
  6628. <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="Self.BemsEnergyConfigPercentWeek" Schema="dbo" store:Type="Tables" />
  6629. <EntitySet Name="BemsEnergyCost" EntityType="Self.BemsEnergyCost" Schema="dbo" store:Type="Tables" />
  6630. <EntitySet Name="BemsEnergyDaily" EntityType="Self.BemsEnergyDaily" Schema="dbo" store:Type="Tables" />
  6631. <EntitySet Name="BemsEnergyDailyRegression" EntityType="Self.BemsEnergyDailyRegression" Schema="dbo" store:Type="Tables" />
  6632. <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" Schema="dbo" store:Type="Tables" />
  6633. <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" Schema="dbo" store:Type="Tables" />
  6634. <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" Schema="dbo" store:Type="Tables" />
  6635. <EntitySet Name="BemsFloorPlan" EntityType="Self.BemsFloorPlan" Schema="dbo" store:Type="Tables" />
  6636. <EntitySet Name="BemsFloorStatus" EntityType="Self.BemsFloorStatus" Schema="dbo" store:Type="Tables" />
  6637. <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" Schema="dbo" store:Type="Tables" />
  6638. <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" Schema="dbo" store:Type="Tables" />
  6639. <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" Schema="dbo" store:Type="Tables" />
  6640. <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" Schema="dbo" store:Type="Tables" />
  6641. <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" Schema="dbo" store:Type="Tables" />
  6642. <EntitySet Name="BemsFuelType" EntityType="Self.BemsFuelType" Schema="dbo" store:Type="Tables" />
  6643. <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" Schema="dbo" store:Type="Tables" />
  6644. <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" Schema="dbo" store:Type="Tables" />
  6645. <EntitySet Name="BemsMonitoringPointConfig" EntityType="Self.BemsMonitoringPointConfig" Schema="dbo" store:Type="Tables" />
  6646. <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" Schema="dbo" store:Type="Tables" />
  6647. <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="Self.BemsMonitoringPointHistory15minRawData" Schema="dbo" store:Type="Tables" />
  6648. <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" Schema="dbo" store:Type="Tables" />
  6649. <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" Schema="dbo" store:Type="Tables" />
  6650. <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" Schema="dbo" store:Type="Tables" />
  6651. <EntitySet Name="BemsNoticePriceBase" EntityType="Self.BemsNoticePriceBase" Schema="dbo" store:Type="Tables" />
  6652. <EntitySet Name="BemsNoticePriceContractType" EntityType="Self.BemsNoticePriceContractType" Schema="dbo" store:Type="Tables" />
  6653. <EntitySet Name="BemsNoticePriceDetail" EntityType="Self.BemsNoticePriceDetail" Schema="dbo" store:Type="Tables" />
  6654. <EntitySet Name="BemsPeakFacility" EntityType="Self.BemsPeakFacility" Schema="dbo" store:Type="Tables" />
  6655. <EntitySet Name="BemsPeakHistory" EntityType="Self.BemsPeakHistory" Schema="dbo" store:Type="Tables" />
  6656. <EntitySet Name="BemsPeakHistoryDaily" EntityType="Self.BemsPeakHistoryDaily" Schema="dbo" store:Type="Tables" />
  6657. <EntitySet Name="BemsPeakInfo" EntityType="Self.BemsPeakInfo" Schema="dbo" store:Type="Tables" />
  6658. <EntitySet Name="BemsPeopleIncrease" EntityType="Self.BemsPeopleIncrease" Schema="dbo" store:Type="Tables" />
  6659. <EntitySet Name="BemsPriceCode" EntityType="Self.BemsPriceCode" Schema="dbo" store:Type="Tables" />
  6660. <EntitySet Name="BemsPriceFormula" EntityType="Self.BemsPriceFormula" Schema="dbo" store:Type="Tables" />
  6661. <EntitySet Name="BemsPriceMeta" EntityType="Self.BemsPriceMeta" Schema="dbo" store:Type="Tables" />
  6662. <EntitySet Name="BemsPriceType" EntityType="Self.BemsPriceType" Schema="dbo" store:Type="Tables" />
  6663. <EntitySet Name="BemsRentalRate" EntityType="Self.BemsRentalRate" Schema="dbo" store:Type="Tables" />
  6664. <EntitySet Name="BemsReportFormat" EntityType="Self.BemsReportFormat" Schema="dbo" store:Type="Tables" />
  6665. <EntitySet Name="BemsReportHistory" EntityType="Self.BemsReportHistory" Schema="dbo" store:Type="Tables" />
  6666. <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" Schema="dbo" store:Type="Tables" />
  6667. <EntitySet Name="BemsSitePrice" EntityType="Self.BemsSitePrice" Schema="dbo" store:Type="Tables" />
  6668. <EntitySet Name="BemsSitePriceHistory" EntityType="Self.BemsSitePriceHistory" Schema="dbo" store:Type="Tables" />
  6669. <EntitySet Name="CmAlarmAdmin" EntityType="Self.CmAlarmAdmin" Schema="dbo" store:Type="Tables" />
  6670. <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" Schema="dbo" store:Type="Tables" />
  6671. <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" Schema="dbo" store:Type="Tables" />
  6672. <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" Schema="dbo" store:Type="Tables" />
  6673. <EntitySet Name="CmCompany" EntityType="Self.CmCompany" Schema="dbo" store:Type="Tables" />
  6674. <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" Schema="dbo" store:Type="Tables" />
  6675. <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" Schema="dbo" store:Type="Tables" />
  6676. <EntitySet Name="CmFacility" EntityType="Self.CmFacility" Schema="dbo" store:Type="Tables" />
  6677. <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" Schema="dbo" store:Type="Tables" />
  6678. <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" Schema="dbo" store:Type="Tables" />
  6679. <EntitySet Name="CmFile" EntityType="Self.CmFile" Schema="dbo" store:Type="Tables" />
  6680. <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" Schema="dbo" store:Type="Tables" />
  6681. <EntitySet Name="CmFloor" EntityType="Self.CmFloor" Schema="dbo" store:Type="Tables" />
  6682. <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" Schema="dbo" store:Type="Tables" />
  6683. <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" Schema="dbo" store:Type="Tables" />
  6684. <EntitySet Name="CmHolidayWeekend" EntityType="Self.CmHolidayWeekend" Schema="dbo" store:Type="Tables" />
  6685. <EntitySet Name="CmMenu" EntityType="Self.CmMenu" Schema="dbo" store:Type="Tables" />
  6686. <EntitySet Name="CmPartner" EntityType="Self.CmPartner" Schema="dbo" store:Type="Tables" />
  6687. <EntitySet Name="CmPartnerType" EntityType="Self.CmPartnerType" Schema="dbo" store:Type="Tables" />
  6688. <EntitySet Name="CmPatrolCourse" EntityType="Self.CmPatrolCourse" Schema="dbo" store:Type="Tables" />
  6689. <EntitySet Name="CmPatrolCoursePos" EntityType="Self.CmPatrolCoursePos" Schema="dbo" store:Type="Tables" />
  6690. <EntitySet Name="CmPatrolGroup" EntityType="Self.CmPatrolGroup" Schema="dbo" store:Type="Tables" />
  6691. <EntitySet Name="CmPatrolGroupUser" EntityType="Self.CmPatrolGroupUser" Schema="dbo" store:Type="Tables" />
  6692. <EntitySet Name="CmPatrolHistory" EntityType="Self.CmPatrolHistory" Schema="dbo" store:Type="Tables" />
  6693. <EntitySet Name="CmPatrolHistoryPos" EntityType="Self.CmPatrolHistoryPos" Schema="dbo" store:Type="Tables" />
  6694. <EntitySet Name="CmPatrolPlan" EntityType="Self.CmPatrolPlan" Schema="dbo" store:Type="Tables" />
  6695. <EntitySet Name="CmPatrolPos" EntityType="Self.CmPatrolPos" Schema="dbo" store:Type="Tables" />
  6696. <EntitySet Name="CmPatrolSchedule" EntityType="Self.CmPatrolSchedule" Schema="dbo" store:Type="Tables" />
  6697. <EntitySet Name="CmPatrolType" EntityType="Self.CmPatrolType" Schema="dbo" store:Type="Tables" />
  6698. <EntitySet Name="CmPosition" EntityType="Self.CmPosition" Schema="dbo" store:Type="Tables" />
  6699. <EntitySet Name="CmServiceEnergyCalcDay" EntityType="Self.CmServiceEnergyCalcDay" Schema="dbo" store:Type="Tables" />
  6700. <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="Self.CmServiceEnergyCalcMonth" Schema="dbo" store:Type="Tables" />
  6701. <EntitySet Name="CmSite" EntityType="Self.CmSite" Schema="dbo" store:Type="Tables" />
  6702. <EntitySet Name="CmUser" EntityType="Self.CmUser" Schema="dbo" store:Type="Tables" />
  6703. <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" Schema="dbo" store:Type="Tables" />
  6704. <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" Schema="dbo" store:Type="Tables" />
  6705. <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" Schema="dbo" store:Type="Tables" />
  6706. <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" Schema="dbo" store:Type="Tables" />
  6707. <EntitySet Name="CmZone" EntityType="Self.CmZone" Schema="dbo" store:Type="Tables" />
  6708. <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" Schema="dbo" store:Type="Tables" />
  6709. <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" Schema="dbo" store:Type="Tables" />
  6710. <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" Schema="dbo" store:Type="Tables" />
  6711. <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" Schema="dbo" store:Type="Tables" />
  6712. <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" Schema="dbo" store:Type="Tables" />
  6713. <EntitySet Name="FmsBudgetDetail" EntityType="Self.FmsBudgetDetail" Schema="dbo" store:Type="Tables" />
  6714. <EntitySet Name="FmsBudgetDetailExecution" EntityType="Self.FmsBudgetDetailExecution" Schema="dbo" store:Type="Tables" />
  6715. <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" Schema="dbo" store:Type="Tables" />
  6716. <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" Schema="dbo" store:Type="Tables" />
  6717. <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" Schema="dbo" store:Type="Tables" />
  6718. <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" Schema="dbo" store:Type="Tables" />
  6719. <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" Schema="dbo" store:Type="Tables" />
  6720. <EntitySet Name="FmsContract" EntityType="Self.FmsContract" Schema="dbo" store:Type="Tables" />
  6721. <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" Schema="dbo" store:Type="Tables" />
  6722. <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" Schema="dbo" store:Type="Tables" />
  6723. <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" Schema="dbo" store:Type="Tables" />
  6724. <EntitySet Name="FmsDailyCheckReport" EntityType="Self.FmsDailyCheckReport" Schema="dbo" store:Type="Tables" />
  6725. <EntitySet Name="FmsDailyReport" EntityType="Self.FmsDailyReport" Schema="dbo" store:Type="Tables" />
  6726. <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" Schema="dbo" store:Type="Tables" />
  6727. <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" Schema="dbo" store:Type="Tables" />
  6728. <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" Schema="dbo" store:Type="Tables" />
  6729. <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" Schema="dbo" store:Type="Tables" />
  6730. <EntitySet Name="FmsEquipment" EntityType="Self.FmsEquipment" Schema="dbo" store:Type="Tables" />
  6731. <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" Schema="dbo" store:Type="Tables" />
  6732. <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" Schema="dbo" store:Type="Tables" />
  6733. <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" Schema="dbo" store:Type="Tables" />
  6734. <EntitySet Name="FmsEquipmentRentInfo" EntityType="Self.FmsEquipmentRentInfo" Schema="dbo" store:Type="Tables" />
  6735. <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" Schema="dbo" store:Type="Tables" />
  6736. <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" Schema="dbo" store:Type="Tables" />
  6737. <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" Schema="dbo" store:Type="Tables" />
  6738. <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" Schema="dbo" store:Type="Tables" />
  6739. <EntitySet Name="FmsFacilityOperationReport" EntityType="Self.FmsFacilityOperationReport" Schema="dbo" store:Type="Tables" />
  6740. <EntitySet Name="FmsInvestmentCost" EntityType="Self.FmsInvestmentCost" Schema="dbo" store:Type="Tables" />
  6741. <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" Schema="dbo" store:Type="Tables" />
  6742. <EntitySet Name="FmsManual" EntityType="Self.FmsManual" Schema="dbo" store:Type="Tables" />
  6743. <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" Schema="dbo" store:Type="Tables" />
  6744. <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" Schema="dbo" store:Type="Tables" />
  6745. <EntitySet Name="FmsMaterial" EntityType="Self.FmsMaterial" Schema="dbo" store:Type="Tables" />
  6746. <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" Schema="dbo" store:Type="Tables" />
  6747. <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" Schema="dbo" store:Type="Tables" />
  6748. <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" Schema="dbo" store:Type="Tables" />
  6749. <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" Schema="dbo" store:Type="Tables" />
  6750. <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" Schema="dbo" store:Type="Tables" />
  6751. <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" Schema="dbo" store:Type="Tables" />
  6752. <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" Schema="dbo" store:Type="Tables" />
  6753. <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" Schema="dbo" store:Type="Tables" />
  6754. <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" Schema="dbo" store:Type="Tables" />
  6755. <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" Schema="dbo" store:Type="Tables" />
  6756. <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" Schema="dbo" store:Type="Tables" />
  6757. <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" Schema="dbo" store:Type="Tables" />
  6758. <EntitySet Name="FmsMaterialRelease" EntityType="Self.FmsMaterialRelease" Schema="dbo" store:Type="Tables" />
  6759. <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" Schema="dbo" store:Type="Tables" />
  6760. <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" Schema="dbo" store:Type="Tables" />
  6761. <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" Schema="dbo" store:Type="Tables" />
  6762. <EntitySet Name="FmsMonthlyReport" EntityType="Self.FmsMonthlyReport" Schema="dbo" store:Type="Tables" />
  6763. <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" Schema="dbo" store:Type="Tables" />
  6764. <EntitySet Name="FmsReport" EntityType="Self.FmsReport" Schema="dbo" store:Type="Tables" />
  6765. <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" Schema="dbo" store:Type="Tables" />
  6766. <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" Schema="dbo" store:Type="Tables" />
  6767. <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" Schema="dbo" store:Type="Tables" />
  6768. <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" Schema="dbo" store:Type="Tables" />
  6769. <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" Schema="dbo" store:Type="Tables" />
  6770. <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" Schema="dbo" store:Type="Tables" />
  6771. <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" Schema="dbo" store:Type="Tables" />
  6772. <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" Schema="dbo" store:Type="Tables" />
  6773. <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" Schema="dbo" store:Type="Tables" />
  6774. <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" Schema="dbo" store:Type="Tables" />
  6775. <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" Schema="dbo" store:Type="Tables" />
  6776. <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" Schema="dbo" store:Type="Tables" />
  6777. <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" Schema="dbo" store:Type="Tables" />
  6778. <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" Schema="dbo" store:Type="Tables" />
  6779. <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" Schema="dbo" store:Type="Tables" />
  6780. <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" Schema="dbo" store:Type="Tables" />
  6781. <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" Schema="dbo" store:Type="Tables" />
  6782. <EntitySet Name="FmsWorkSchedule" EntityType="Self.FmsWorkSchedule" Schema="dbo" store:Type="Tables" />
  6783. <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" Schema="dbo" store:Type="Tables" />
  6784. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  6785. <EntitySet Name="WeatherDongNaeForecast" EntityType="Self.WeatherDongNaeForecast" Schema="dbo" store:Type="Tables" />
  6786. <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="Self.FK__BemsEnerg__SiteI__7954A4F6">
  6787. <End Role="CmSite" EntitySet="CmSite" />
  6788. <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
  6789. </AssociationSet>
  6790. <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="Self.FK__BemsEnerg__SiteI__7C3111A1">
  6791. <End Role="CmSite" EntitySet="CmSite" />
  6792. <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
  6793. </AssociationSet>
  6794. <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="Self.FK__BemsEnergyDaily__BemsFuelType">
  6795. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6796. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6797. </AssociationSet>
  6798. <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="Self.FK__BemsEnergyDaily__BemsServiceType">
  6799. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6800. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6801. </AssociationSet>
  6802. <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="Self.FK__BemsEnergyDaily__CmBuilding">
  6803. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6804. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  6805. </AssociationSet>
  6806. <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="Self.FK__BemsFactorCo2__BemsFuelType">
  6807. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6808. <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
  6809. </AssociationSet>
  6810. <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="Self.FK__BemsFactorToe__BemsFuelType">
  6811. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6812. <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
  6813. </AssociationSet>
  6814. <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
  6815. <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
  6816. <End Role="BemsFormula" EntitySet="BemsFormula" />
  6817. </AssociationSet>
  6818. <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
  6819. <End Role="BemsFormula" EntitySet="BemsFormula" />
  6820. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  6821. </AssociationSet>
  6822. <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
  6823. <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
  6824. <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
  6825. </AssociationSet>
  6826. <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
  6827. <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
  6828. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6829. </AssociationSet>
  6830. <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
  6831. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6832. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6833. </AssociationSet>
  6834. <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="Self.FK__BemsMonitoringPoint__BemsFuelType">
  6835. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6836. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6837. </AssociationSet>
  6838. <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
  6839. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6840. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6841. </AssociationSet>
  6842. <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
  6843. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6844. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6845. </AssociationSet>
  6846. <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
  6847. <End Role="CmFloor" EntitySet="CmFloor" />
  6848. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6849. </AssociationSet>
  6850. <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
  6851. <End Role="CmZone" EntitySet="CmZone" />
  6852. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6853. </AssociationSet>
  6854. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
  6855. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6856. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6857. </AssociationSet>
  6858. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFuelType">
  6859. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6860. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6861. </AssociationSet>
  6862. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
  6863. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  6864. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  6865. </AssociationSet>
  6866. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  6867. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6868. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  6869. </AssociationSet>
  6870. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  6871. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6872. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  6873. </AssociationSet>
  6874. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  6875. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6876. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  6877. </AssociationSet>
  6878. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  6879. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6880. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  6881. </AssociationSet>
  6882. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  6883. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6884. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  6885. </AssociationSet>
  6886. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  6887. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6888. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  6889. </AssociationSet>
  6890. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  6891. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6892. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  6893. </AssociationSet>
  6894. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  6895. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  6896. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  6897. </AssociationSet>
  6898. <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  6899. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  6900. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  6901. </AssociationSet>
  6902. <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="Self.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  6903. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  6904. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  6905. </AssociationSet>
  6906. <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="Self.FK__BemsNoticePriceContractType__BemsFuelType">
  6907. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  6908. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  6909. </AssociationSet>
  6910. <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="Self.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  6911. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  6912. <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
  6913. </AssociationSet>
  6914. <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
  6915. <End Role="CmCompanyType" EntitySet="CmCompanyType" />
  6916. <End Role="CmCompany" EntitySet="CmCompany" />
  6917. </AssociationSet>
  6918. <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="Self.FK__CmCompany__SiteI__336AA144">
  6919. <End Role="CmSite" EntitySet="CmSite" />
  6920. <End Role="CmCompany" EntitySet="CmCompany" />
  6921. </AssociationSet>
  6922. <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
  6923. <End Role="CmCompany" EntitySet="CmCompany" />
  6924. <End Role="CmDepartment" EntitySet="CmDepartment" />
  6925. </AssociationSet>
  6926. <AssociationSet Name="FK__CmFacility__CmFacility" Association="Self.FK__CmFacility__CmFacility">
  6927. <End Role="CmFacility" EntitySet="CmFacility" />
  6928. <End Role="CmFacility1" EntitySet="CmFacility" />
  6929. </AssociationSet>
  6930. <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="Self.FK__CmFacilityFile__7720AD13">
  6931. <End Role="CmFacility" EntitySet="CmFacility" />
  6932. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  6933. </AssociationSet>
  6934. <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
  6935. <End Role="CmFile" EntitySet="CmFile" />
  6936. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  6937. </AssociationSet>
  6938. <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="Self.FK__CmFacilityManual__79FD19BE">
  6939. <End Role="CmFacility" EntitySet="CmFacility" />
  6940. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  6941. </AssociationSet>
  6942. <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
  6943. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  6944. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  6945. </AssociationSet>
  6946. <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
  6947. <End Role="CmFileCategory" EntitySet="CmFileCategory" />
  6948. <End Role="CmFile" EntitySet="CmFile" />
  6949. </AssociationSet>
  6950. <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="Self.FK__CmFile__SiteId__2759D01A">
  6951. <End Role="CmSite" EntitySet="CmSite" />
  6952. <End Role="CmFile" EntitySet="CmFile" />
  6953. </AssociationSet>
  6954. <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
  6955. <End Role="CmBuilding" EntitySet="CmBuilding" />
  6956. <End Role="CmFloor" EntitySet="CmFloor" />
  6957. </AssociationSet>
  6958. <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="Self.FK__CmHoliday__SiteI__0BB1B5A5">
  6959. <End Role="CmSite" EntitySet="CmSite" />
  6960. <End Role="CmHoliday" EntitySet="CmHoliday" />
  6961. </AssociationSet>
  6962. <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="Self.FK__CmHoliday__SiteI__0D99FE17">
  6963. <End Role="CmSite" EntitySet="CmSite" />
  6964. <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
  6965. </AssociationSet>
  6966. <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="Self.FK__CmHoliday__SiteI__10766AC2">
  6967. <End Role="CmSite" EntitySet="CmSite" />
  6968. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  6969. </AssociationSet>
  6970. <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="Self.FK__CmHoliday__SiteI__65AC084E">
  6971. <End Role="CmSite" EntitySet="CmSite" />
  6972. <End Role="CmHoliday" EntitySet="CmHoliday" />
  6973. </AssociationSet>
  6974. <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="Self.FK__CmHoliday__SiteI__66A02C87">
  6975. <End Role="CmSite" EntitySet="CmSite" />
  6976. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  6977. </AssociationSet>
  6978. <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
  6979. <End Role="CmFloor" EntitySet="CmFloor" />
  6980. <End Role="CmZone" EntitySet="CmZone" />
  6981. </AssociationSet>
  6982. <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="Self.FK__CmPositio__SiteI__6A70BD6B">
  6983. <End Role="CmSite" EntitySet="CmSite" />
  6984. <End Role="CmPosition" EntitySet="CmPosition" />
  6985. </AssociationSet>
  6986. <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="Self.FK__CmUserGro__SiteI__53D770D6">
  6987. <End Role="CmSite" EntitySet="CmSite" />
  6988. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  6989. </AssociationSet>
  6990. <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
  6991. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  6992. <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
  6993. </AssociationSet>
  6994. <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="Self.FK__CmUserPos__SiteI__44952D46">
  6995. <End Role="CmSite" EntitySet="CmSite" />
  6996. <End Role="CmPosition" EntitySet="CmPosition" />
  6997. </AssociationSet>
  6998. <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
  6999. <End Role="CmUser" EntitySet="CmUser" />
  7000. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  7001. </AssociationSet>
  7002. <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
  7003. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7004. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  7005. </AssociationSet>
  7006. <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
  7007. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7008. <End Role="CmZone" EntitySet="CmZone" />
  7009. </AssociationSet>
  7010. <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="Self.FK__FmsDrawin__SiteI__6B79F03D">
  7011. <End Role="CmSite" EntitySet="CmSite" />
  7012. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7013. </AssociationSet>
  7014. <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="Self.FK__FmsDrawin__SiteI__6C6E1476">
  7015. <End Role="CmSite" EntitySet="CmSite" />
  7016. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7017. </AssociationSet>
  7018. <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="Self.FK__FmsDrawin__SiteI__6D6238AF">
  7019. <End Role="CmSite" EntitySet="CmSite" />
  7020. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7021. </AssociationSet>
  7022. <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="Self.FK__FmsDrawin__SiteI__6F357288">
  7023. <End Role="CmSite" EntitySet="CmSite" />
  7024. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7025. </AssociationSet>
  7026. <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="Self.FK__FmsDrawin__SiteI__702996C1">
  7027. <End Role="CmSite" EntitySet="CmSite" />
  7028. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7029. </AssociationSet>
  7030. <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
  7031. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  7032. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7033. </AssociationSet>
  7034. <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
  7035. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  7036. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7037. </AssociationSet>
  7038. <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
  7039. <End Role="CmFile" EntitySet="CmFile" />
  7040. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7041. </AssociationSet>
  7042. <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
  7043. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  7044. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7045. </AssociationSet>
  7046. <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
  7047. <End Role="CmUser" EntitySet="CmUser" />
  7048. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  7049. </AssociationSet>
  7050. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  7051. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7052. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7053. </AssociationSet>
  7054. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  7055. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7056. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7057. </AssociationSet>
  7058. <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="Self.FK__FmsFacilityCodeClass__CmSite">
  7059. <End Role="CmSite" EntitySet="CmSite" />
  7060. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  7061. </AssociationSet>
  7062. <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  7063. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  7064. <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
  7065. </AssociationSet>
  7066. <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="Self.FK__FmsFacilityOpera__725BF7F6">
  7067. <End Role="CmFacility" EntitySet="CmFacility" />
  7068. <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
  7069. </AssociationSet>
  7070. <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
  7071. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7072. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7073. </AssociationSet>
  7074. <AssociationSet Name="FK__FmsLicense__CmSite" Association="Self.FK__FmsLicense__CmSite">
  7075. <End Role="CmSite" EntitySet="CmSite" />
  7076. <End Role="FmsLicense" EntitySet="FmsLicense" />
  7077. </AssociationSet>
  7078. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  7079. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7080. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7081. </AssociationSet>
  7082. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  7083. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7084. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7085. </AssociationSet>
  7086. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  7087. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7088. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7089. </AssociationSet>
  7090. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
  7091. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7092. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  7093. </AssociationSet>
  7094. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="Self.FK__FmsMaterialCarriedForward__CmSite">
  7095. <End Role="CmSite" EntitySet="CmSite" />
  7096. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  7097. </AssociationSet>
  7098. <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="Self.FK__FmsMaterialCodeClass__CmSite">
  7099. <End Role="CmSite" EntitySet="CmSite" />
  7100. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7101. </AssociationSet>
  7102. <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  7103. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  7104. <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
  7105. </AssociationSet>
  7106. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
  7107. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7108. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7109. </AssociationSet>
  7110. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="Self.FK__FmsMaterialCodeLocation__CmSite">
  7111. <End Role="CmSite" EntitySet="CmSite" />
  7112. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7113. </AssociationSet>
  7114. <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="Self.FK__FmsMaterialCodeType__CmSite">
  7115. <End Role="CmSite" EntitySet="CmSite" />
  7116. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  7117. </AssociationSet>
  7118. <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
  7119. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7120. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7121. </AssociationSet>
  7122. <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="Self.FK__FmsMaterialOrder__CmSite">
  7123. <End Role="CmSite" EntitySet="CmSite" />
  7124. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7125. </AssociationSet>
  7126. <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
  7127. <End Role="CmUser" EntitySet="CmUser" />
  7128. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7129. </AssociationSet>
  7130. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
  7131. <End Role="CmFile" EntitySet="CmFile" />
  7132. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7133. </AssociationSet>
  7134. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  7135. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7136. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7137. </AssociationSet>
  7138. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  7139. <End Role="CmUser" EntitySet="CmUser" />
  7140. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7141. </AssociationSet>
  7142. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  7143. <End Role="CmUser" EntitySet="CmUser" />
  7144. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7145. </AssociationSet>
  7146. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
  7147. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7148. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7149. </AssociationSet>
  7150. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="Self.FK__FmsMaterialPurchasingRequest__CmSite">
  7151. <End Role="CmSite" EntitySet="CmSite" />
  7152. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7153. </AssociationSet>
  7154. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  7155. <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
  7156. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7157. </AssociationSet>
  7158. <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
  7159. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7160. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7161. </AssociationSet>
  7162. <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="Self.FK__FmsMaterialStored__CmSite">
  7163. <End Role="CmSite" EntitySet="CmSite" />
  7164. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7165. </AssociationSet>
  7166. <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
  7167. <End Role="CmUser" EntitySet="CmUser" />
  7168. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7169. </AssociationSet>
  7170. <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  7171. <End Role="CmUser" EntitySet="CmUser" />
  7172. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7173. </AssociationSet>
  7174. <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="Self.FK__FmsMaterialTradeCompany__CmSite">
  7175. <End Role="CmSite" EntitySet="CmSite" />
  7176. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7177. </AssociationSet>
  7178. <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
  7179. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7180. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7181. </AssociationSet>
  7182. <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="Self.FK__FmsMaterialWarehouse__CmSite">
  7183. <End Role="CmSite" EntitySet="CmSite" />
  7184. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7185. </AssociationSet>
  7186. <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="Self.FK__FmsWorkCodeCauseClass__CmSite">
  7187. <End Role="CmSite" EntitySet="CmSite" />
  7188. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  7189. </AssociationSet>
  7190. <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="Self.FK__FmsWorkCodeCycleUnit__CmSite">
  7191. <End Role="CmSite" EntitySet="CmSite" />
  7192. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7193. </AssociationSet>
  7194. <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="Self.FK__FmsWorkCodeEmergency__CmSite">
  7195. <End Role="CmSite" EntitySet="CmSite" />
  7196. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  7197. </AssociationSet>
  7198. <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="Self.FK__FmsWorkCodeHolidayWorkType__CmSite">
  7199. <End Role="CmSite" EntitySet="CmSite" />
  7200. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  7201. </AssociationSet>
  7202. <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="Self.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  7203. <End Role="CmSite" EntitySet="CmSite" />
  7204. <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
  7205. </AssociationSet>
  7206. <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
  7207. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7208. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7209. </AssociationSet>
  7210. <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="Self.FK__FmsWorkOrder__CmSite">
  7211. <End Role="CmSite" EntitySet="CmSite" />
  7212. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7213. </AssociationSet>
  7214. <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
  7215. <End Role="CmUser" EntitySet="CmUser" />
  7216. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7217. </AssociationSet>
  7218. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
  7219. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  7220. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7221. </AssociationSet>
  7222. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
  7223. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7224. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7225. </AssociationSet>
  7226. <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
  7227. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7228. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  7229. </AssociationSet>
  7230. <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
  7231. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7232. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7233. </AssociationSet>
  7234. <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="Self.FK__FmsWorkRequest__CmSite">
  7235. <End Role="CmSite" EntitySet="CmSite" />
  7236. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7237. </AssociationSet>
  7238. <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
  7239. <End Role="CmUser" EntitySet="CmUser" />
  7240. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7241. </AssociationSet>
  7242. <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  7243. <End Role="CmUser" EntitySet="CmUser" />
  7244. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7245. </AssociationSet>
  7246. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
  7247. <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
  7248. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7249. </AssociationSet>
  7250. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
  7251. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7252. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7253. </AssociationSet>
  7254. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="Self.FK__FmsWorkRequest__FmsWorkSchedule">
  7255. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7256. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7257. </AssociationSet>
  7258. <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
  7259. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7260. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  7261. </AssociationSet>
  7262. <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
  7263. <End Role="CmUser" EntitySet="CmUser" />
  7264. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7265. </AssociationSet>
  7266. <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  7267. <End Role="CmUser" EntitySet="CmUser" />
  7268. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7269. </AssociationSet>
  7270. <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
  7271. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  7272. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7273. </AssociationSet>
  7274. <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
  7275. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  7276. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7277. </AssociationSet>
  7278. <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
  7279. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7280. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7281. </AssociationSet>
  7282. <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="Self.FK__FmsWorkResultCheckItem__CmFacility">
  7283. <End Role="CmFacility" EntitySet="CmFacility" />
  7284. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7285. </AssociationSet>
  7286. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  7287. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  7288. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7289. </AssociationSet>
  7290. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
  7291. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7292. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7293. </AssociationSet>
  7294. <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
  7295. <End Role="CmFile" EntitySet="CmFile" />
  7296. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  7297. </AssociationSet>
  7298. <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
  7299. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7300. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  7301. </AssociationSet>
  7302. <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
  7303. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7304. <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
  7305. </AssociationSet>
  7306. <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="Self.FK__FmsWorkResultToFacility__CmFacility">
  7307. <End Role="CmFacility" EntitySet="CmFacility" />
  7308. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  7309. </AssociationSet>
  7310. <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
  7311. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7312. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  7313. </AssociationSet>
  7314. <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="Self.FK__FmsWorkSchedule__CmBusinessField">
  7315. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7316. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7317. </AssociationSet>
  7318. <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="Self.FK__FmsWorkSchedule__CmUser">
  7319. <End Role="CmUser" EntitySet="CmUser" />
  7320. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7321. </AssociationSet>
  7322. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  7323. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  7324. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7325. </AssociationSet>
  7326. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  7327. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  7328. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7329. </AssociationSet>
  7330. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  7331. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  7332. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7333. </AssociationSet>
  7334. <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  7335. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7336. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  7337. </AssociationSet>
  7338. <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="Self.FK_BemsAlarmLog_BemsAlarmSetting">
  7339. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7340. <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
  7341. </AssociationSet>
  7342. <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="Self.FK_BemsAlarmSetting_BemsFacilityType">
  7343. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7344. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7345. </AssociationSet>
  7346. <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="Self.FK_BemsAlarmSetting_CmFacility">
  7347. <End Role="CmFacility" EntitySet="CmFacility" />
  7348. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7349. </AssociationSet>
  7350. <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="Self.FK_BemsAlarmSetting_CmSite1">
  7351. <End Role="CmSite" EntitySet="CmSite" />
  7352. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  7353. </AssociationSet>
  7354. <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="Self.FK_BemsChartInfo_BemsFacilityType">
  7355. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7356. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  7357. </AssociationSet>
  7358. <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="Self.FK_BemsChartInfo_CmSite">
  7359. <End Role="CmSite" EntitySet="CmSite" />
  7360. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  7361. </AssociationSet>
  7362. <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
  7363. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7364. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  7365. </AssociationSet>
  7366. <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
  7367. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7368. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  7369. </AssociationSet>
  7370. <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="Self.FK_BemsEnergyCost_CmFacility">
  7371. <End Role="CmFacility" EntitySet="CmFacility" />
  7372. <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
  7373. </AssociationSet>
  7374. <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="Self.FK_BemsEnergyDailyRegression_CmSite">
  7375. <End Role="CmSite" EntitySet="CmSite" />
  7376. <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
  7377. </AssociationSet>
  7378. <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="Self.FK_BemsFormulaParameter_CmFacility">
  7379. <End Role="CmFacility" EntitySet="CmFacility" />
  7380. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  7381. </AssociationSet>
  7382. <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
  7383. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7384. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7385. </AssociationSet>
  7386. <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="Self.FK_BemsMonitoringPoint_CmFacility">
  7387. <End Role="CmFacility" EntitySet="CmFacility" />
  7388. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7389. </AssociationSet>
  7390. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="Self.FK_BemsMonitoringPointConfig_BemsFacilityType1">
  7391. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  7392. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  7393. </AssociationSet>
  7394. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="Self.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  7395. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  7396. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  7397. </AssociationSet>
  7398. <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="Self.FK_BemsPeakFacility_CmFacility">
  7399. <End Role="CmFacility" EntitySet="CmFacility" />
  7400. <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
  7401. </AssociationSet>
  7402. <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="Self.FK_BemsPeakHIstory_CmSite">
  7403. <End Role="CmSite" EntitySet="CmSite" />
  7404. <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
  7405. </AssociationSet>
  7406. <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="Self.FK_BemsPeakInfo_CmSite">
  7407. <End Role="CmSite" EntitySet="CmSite" />
  7408. <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
  7409. </AssociationSet>
  7410. <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="Self.FK_BemsPeopleIncrease_CmSite">
  7411. <End Role="CmSite" EntitySet="CmSite" />
  7412. <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
  7413. </AssociationSet>
  7414. <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="Self.FK_BemsPriceCode_BemsFuelType">
  7415. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7416. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7417. </AssociationSet>
  7418. <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="Self.FK_BemsPriceFormula_BemsFormula">
  7419. <End Role="BemsFormula" EntitySet="BemsFormula" />
  7420. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  7421. </AssociationSet>
  7422. <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="Self.FK_BemsPriceFormula_BemsPriceType">
  7423. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7424. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  7425. </AssociationSet>
  7426. <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="Self.FK_BemsPriceMeta_BemsPriceType">
  7427. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7428. <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
  7429. </AssociationSet>
  7430. <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="Self.FK_BemsPriceType_BemsFuelType1">
  7431. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7432. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7433. </AssociationSet>
  7434. <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="Self.FK_BemsRentalRate_CmSite">
  7435. <End Role="CmSite" EntitySet="CmSite" />
  7436. <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
  7437. </AssociationSet>
  7438. <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="Self.FK_BemsSitePrice_BemsFuelType">
  7439. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7440. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7441. </AssociationSet>
  7442. <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="Self.FK_BemsSitePrice_BemsPriceCode">
  7443. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7444. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7445. </AssociationSet>
  7446. <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="Self.FK_BemsSitePrice_BemsPriceType">
  7447. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7448. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7449. </AssociationSet>
  7450. <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="Self.FK_BemsSitePrice_CmSite1">
  7451. <End Role="CmSite" EntitySet="CmSite" />
  7452. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  7453. </AssociationSet>
  7454. <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="Self.FK_BemsSitePriceHistory_BemsFuelType">
  7455. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  7456. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7457. </AssociationSet>
  7458. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="Self.FK_BemsSitePriceHistory_BemsPriceCode">
  7459. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  7460. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7461. </AssociationSet>
  7462. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="Self.FK_BemsSitePriceHistory_BemsPriceType">
  7463. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  7464. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7465. </AssociationSet>
  7466. <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="Self.FK_BemsSitePriceHistory_CmSite">
  7467. <End Role="CmSite" EntitySet="CmSite" />
  7468. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  7469. </AssociationSet>
  7470. <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
  7471. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7472. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7473. </AssociationSet>
  7474. <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
  7475. <End Role="CmFile" EntitySet="CmFile" />
  7476. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7477. </AssociationSet>
  7478. <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
  7479. <End Role="CmUser" EntitySet="CmUser" />
  7480. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  7481. </AssociationSet>
  7482. <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="Self.FK_CmFacilityTempSet_CmFacility">
  7483. <End Role="CmFacility" EntitySet="CmFacility" />
  7484. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  7485. </AssociationSet>
  7486. <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="Self.FK_CmFacilityTempSet_CmSite">
  7487. <End Role="CmSite" EntitySet="CmSite" />
  7488. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  7489. </AssociationSet>
  7490. <AssociationSet Name="FK_CmMenu_CmSite" Association="Self.FK_CmMenu_CmSite">
  7491. <End Role="CmSite" EntitySet="CmSite" />
  7492. <End Role="CmMenu" EntitySet="CmMenu" />
  7493. </AssociationSet>
  7494. <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="Self.FK_CmPartnerType_CmPartner">
  7495. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  7496. <End Role="CmPartner" EntitySet="CmPartner" />
  7497. </AssociationSet>
  7498. <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="Self.FK_CmPatrolCourse_CmSite">
  7499. <End Role="CmSite" EntitySet="CmSite" />
  7500. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7501. </AssociationSet>
  7502. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="Self.FK_CmPatrolCoursePos_CmPatrolCourse">
  7503. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7504. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  7505. </AssociationSet>
  7506. <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="Self.FK_CmPatrolCoursePos_CmSite">
  7507. <End Role="CmSite" EntitySet="CmSite" />
  7508. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  7509. </AssociationSet>
  7510. <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="Self.FK_CmPatrolGroup_CmSite">
  7511. <End Role="CmSite" EntitySet="CmSite" />
  7512. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7513. </AssociationSet>
  7514. <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="Self.FK_CmPatrolGroupUser_CmPatrolGroup">
  7515. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7516. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  7517. </AssociationSet>
  7518. <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="Self.FK_CmPatrolGroupUser_CmUser">
  7519. <End Role="CmUser" EntitySet="CmUser" />
  7520. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  7521. </AssociationSet>
  7522. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="Self.FK_CmPatrolHistory_CmPatrolSchedule">
  7523. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7524. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7525. </AssociationSet>
  7526. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="Self.FK_CmPatrolHistory_CmPatrolType">
  7527. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7528. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7529. </AssociationSet>
  7530. <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="Self.FK_CmPatrolHistory_CmSite">
  7531. <End Role="CmSite" EntitySet="CmSite" />
  7532. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  7533. </AssociationSet>
  7534. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="Self.FK_CmPatrolHistoryPos_CmPatrolPos">
  7535. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7536. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7537. </AssociationSet>
  7538. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="Self.FK_CmPatrolHistoryPos_CmPatrolType">
  7539. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7540. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7541. </AssociationSet>
  7542. <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="Self.FK_CmPatrolHistoryPos_CmSite">
  7543. <End Role="CmSite" EntitySet="CmSite" />
  7544. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  7545. </AssociationSet>
  7546. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="Self.FK_CmPatrolPlan_CmPatrolCourse">
  7547. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  7548. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7549. </AssociationSet>
  7550. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="Self.FK_CmPatrolPlan_CmPatrolGroup">
  7551. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  7552. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7553. </AssociationSet>
  7554. <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="Self.FK_CmPatrolPlan_CmSite">
  7555. <End Role="CmSite" EntitySet="CmSite" />
  7556. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7557. </AssociationSet>
  7558. <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="Self.FK_CmPatrolPos_CmBuilding">
  7559. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7560. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7561. </AssociationSet>
  7562. <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="Self.FK_CmPatrolPos_CmFloor">
  7563. <End Role="CmFloor" EntitySet="CmFloor" />
  7564. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7565. </AssociationSet>
  7566. <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="Self.FK_CmPatrolPos_CmSite">
  7567. <End Role="CmSite" EntitySet="CmSite" />
  7568. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  7569. </AssociationSet>
  7570. <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="Self.FK_CmPatrolSchedule_CmPatrolPlan">
  7571. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  7572. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7573. </AssociationSet>
  7574. <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="Self.FK_CmPatrolSchedule_CmSite">
  7575. <End Role="CmSite" EntitySet="CmSite" />
  7576. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  7577. </AssociationSet>
  7578. <AssociationSet Name="FK_CmPatrolType_CmSite" Association="Self.FK_CmPatrolType_CmSite">
  7579. <End Role="CmSite" EntitySet="CmSite" />
  7580. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  7581. </AssociationSet>
  7582. <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
  7583. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7584. <End Role="CmUser" EntitySet="CmUser" />
  7585. </AssociationSet>
  7586. <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
  7587. <End Role="CmCompany" EntitySet="CmCompany" />
  7588. <End Role="CmUser" EntitySet="CmUser" />
  7589. </AssociationSet>
  7590. <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
  7591. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7592. <End Role="CmUser" EntitySet="CmUser" />
  7593. </AssociationSet>
  7594. <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
  7595. <End Role="CmPosition" EntitySet="CmPosition" />
  7596. <End Role="CmUser" EntitySet="CmUser" />
  7597. </AssociationSet>
  7598. <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
  7599. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  7600. <End Role="CmUser" EntitySet="CmUser" />
  7601. </AssociationSet>
  7602. <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
  7603. <End Role="CmUser" EntitySet="CmUser" />
  7604. <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
  7605. </AssociationSet>
  7606. <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
  7607. <End Role="CmBuilding" EntitySet="CmBuilding" />
  7608. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7609. </AssociationSet>
  7610. <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
  7611. <End Role="CmFloor" EntitySet="CmFloor" />
  7612. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7613. </AssociationSet>
  7614. <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="Self.FK_CmZoneTempHumiSet_CmSite">
  7615. <End Role="CmSite" EntitySet="CmSite" />
  7616. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7617. </AssociationSet>
  7618. <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
  7619. <End Role="CmZone" EntitySet="CmZone" />
  7620. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  7621. </AssociationSet>
  7622. <AssociationSet Name="FK_FmsAccident_CmCompany" Association="Self.FK_FmsAccident_CmCompany">
  7623. <End Role="CmCompany" EntitySet="CmCompany" />
  7624. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7625. </AssociationSet>
  7626. <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
  7627. <End Role="CmDepartment" EntitySet="CmDepartment" />
  7628. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7629. </AssociationSet>
  7630. <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
  7631. <End Role="CmFile" EntitySet="CmFile" />
  7632. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7633. </AssociationSet>
  7634. <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
  7635. <End Role="CmFile" EntitySet="CmFile" />
  7636. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7637. </AssociationSet>
  7638. <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
  7639. <End Role="CmFile" EntitySet="CmFile" />
  7640. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7641. </AssociationSet>
  7642. <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
  7643. <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
  7644. <End Role="FmsAccident" EntitySet="FmsAccident" />
  7645. </AssociationSet>
  7646. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="Self.FK_FmsBudgetDetail_FmsBudget">
  7647. <End Role="FmsBudget" EntitySet="FmsBudget" />
  7648. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7649. </AssociationSet>
  7650. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="Self.FK_FmsBudgetDetail_FmsBudgetCodeClass">
  7651. <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
  7652. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7653. </AssociationSet>
  7654. <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="Self.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  7655. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  7656. <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
  7657. </AssociationSet>
  7658. <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
  7659. <End Role="CmFile" EntitySet="CmFile" />
  7660. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7661. </AssociationSet>
  7662. <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
  7663. <End Role="CmFile" EntitySet="CmFile" />
  7664. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7665. </AssociationSet>
  7666. <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
  7667. <End Role="CmFile" EntitySet="CmFile" />
  7668. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7669. </AssociationSet>
  7670. <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="Self.FK_FmsConstruction_CmPartner">
  7671. <End Role="CmPartner" EntitySet="CmPartner" />
  7672. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7673. </AssociationSet>
  7674. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
  7675. <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
  7676. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7677. </AssociationSet>
  7678. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
  7679. <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
  7680. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7681. </AssociationSet>
  7682. <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
  7683. <End Role="CmUser" EntitySet="CmUser" />
  7684. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  7685. </AssociationSet>
  7686. <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
  7687. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  7688. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  7689. </AssociationSet>
  7690. <AssociationSet Name="FK_FmsContract_CmPartner" Association="Self.FK_FmsContract_CmPartner">
  7691. <End Role="CmPartner" EntitySet="CmPartner" />
  7692. <End Role="FmsContract" EntitySet="FmsContract" />
  7693. </AssociationSet>
  7694. <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="Self.FK_FmsContract_CmPartnerType">
  7695. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  7696. <End Role="FmsContract" EntitySet="FmsContract" />
  7697. </AssociationSet>
  7698. <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="Self.FK_FmsContract_FmsContractClass">
  7699. <End Role="FmsContractClass" EntitySet="FmsContractClass" />
  7700. <End Role="FmsContract" EntitySet="FmsContract" />
  7701. </AssociationSet>
  7702. <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="Self.FK_FmsContract_FmsContractMethod">
  7703. <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
  7704. <End Role="FmsContract" EntitySet="FmsContract" />
  7705. </AssociationSet>
  7706. <AssociationSet Name="FK_FmsContract_FmsContractType" Association="Self.FK_FmsContract_FmsContractType">
  7707. <End Role="FmsContractType" EntitySet="FmsContractType" />
  7708. <End Role="FmsContract" EntitySet="FmsContract" />
  7709. </AssociationSet>
  7710. <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="Self.FK_FmsContract_FmsPaymentType">
  7711. <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
  7712. <End Role="FmsContract" EntitySet="FmsContract" />
  7713. </AssociationSet>
  7714. <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="Self.FK_FmsDailyCheckReport_CmUser">
  7715. <End Role="CmUser" EntitySet="CmUser" />
  7716. <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
  7717. </AssociationSet>
  7718. <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="Self.FK_FmsDailyReport_CmBusinessField">
  7719. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7720. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  7721. </AssociationSet>
  7722. <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="Self.FK_FmsDailyReport_CmUser">
  7723. <End Role="CmUser" EntitySet="CmUser" />
  7724. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  7725. </AssociationSet>
  7726. <AssociationSet Name="FK_FmsEquipment_CmUser" Association="Self.FK_FmsEquipment_CmUser">
  7727. <End Role="CmUser" EntitySet="CmUser" />
  7728. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7729. </AssociationSet>
  7730. <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="Self.FK_FmsEquipment_FmsEquipmentCodeType">
  7731. <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
  7732. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7733. </AssociationSet>
  7734. <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="Self.FK_FmsEquipment_FmsMaterialWarehouse">
  7735. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7736. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7737. </AssociationSet>
  7738. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="Self.FK_FmsEquipmentHistory_FmsEquipment">
  7739. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  7740. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7741. </AssociationSet>
  7742. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  7743. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  7744. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7745. </AssociationSet>
  7746. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  7747. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7748. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  7749. </AssociationSet>
  7750. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="Self.FK_FmsEquipmentRentInfo_CmUser">
  7751. <End Role="CmUser" EntitySet="CmUser" />
  7752. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7753. </AssociationSet>
  7754. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="Self.FK_FmsEquipmentRentInfo_CmUser1">
  7755. <End Role="CmUser" EntitySet="CmUser" />
  7756. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7757. </AssociationSet>
  7758. <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  7759. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  7760. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  7761. </AssociationSet>
  7762. <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="Self.FK_FmsFacilityOperationReport_CmUser">
  7763. <End Role="CmUser" EntitySet="CmUser" />
  7764. <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
  7765. </AssociationSet>
  7766. <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
  7767. <End Role="FmsManualType" EntitySet="FmsManualType" />
  7768. <End Role="FmsManual" EntitySet="FmsManual" />
  7769. </AssociationSet>
  7770. <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
  7771. <End Role="CmFile" EntitySet="CmFile" />
  7772. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7773. </AssociationSet>
  7774. <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
  7775. <End Role="CmUser" EntitySet="CmUser" />
  7776. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7777. </AssociationSet>
  7778. <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
  7779. <End Role="FmsManual" EntitySet="FmsManual" />
  7780. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  7781. </AssociationSet>
  7782. <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="Self.FK_FmsMaterial_CmBusinessField">
  7783. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7784. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7785. </AssociationSet>
  7786. <AssociationSet Name="FK_FmsMaterial_CmFile" Association="Self.FK_FmsMaterial_CmFile">
  7787. <End Role="CmFile" EntitySet="CmFile" />
  7788. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7789. </AssociationSet>
  7790. <AssociationSet Name="FK_FmsMaterial_CmSite" Association="Self.FK_FmsMaterial_CmSite">
  7791. <End Role="CmSite" EntitySet="CmSite" />
  7792. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7793. </AssociationSet>
  7794. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="Self.FK_FmsMaterial_FmsMaterialCodeLocation">
  7795. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  7796. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7797. </AssociationSet>
  7798. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="Self.FK_FmsMaterial_FmsMaterialCodeType">
  7799. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  7800. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7801. </AssociationSet>
  7802. <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="Self.FK_FmsMaterial_FmsMaterialTradeCompany">
  7803. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  7804. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7805. </AssociationSet>
  7806. <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="Self.FK_FmsMaterial_FmsMaterialWarehouse">
  7807. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7808. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7809. </AssociationSet>
  7810. <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  7811. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7812. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7813. </AssociationSet>
  7814. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  7815. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7816. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  7817. </AssociationSet>
  7818. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  7819. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7820. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  7821. </AssociationSet>
  7822. <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  7823. <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
  7824. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7825. </AssociationSet>
  7826. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  7827. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7828. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  7829. </AssociationSet>
  7830. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  7831. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  7832. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  7833. </AssociationSet>
  7834. <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="Self.FK_FmsMaterialRelease_CmBusinessField">
  7835. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7836. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7837. </AssociationSet>
  7838. <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="Self.FK_FmsMaterialRelease_CmSite">
  7839. <End Role="CmSite" EntitySet="CmSite" />
  7840. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7841. </AssociationSet>
  7842. <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="Self.FK_FmsMaterialRelease_CmUser">
  7843. <End Role="CmUser" EntitySet="CmUser" />
  7844. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7845. </AssociationSet>
  7846. <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="Self.FK_FmsMaterialRelease_CmUser1">
  7847. <End Role="CmUser" EntitySet="CmUser" />
  7848. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7849. </AssociationSet>
  7850. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="Self.FK_FmsMaterialRelease_FmsMaterial">
  7851. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7852. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7853. </AssociationSet>
  7854. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  7855. <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
  7856. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7857. </AssociationSet>
  7858. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  7859. <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
  7860. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7861. </AssociationSet>
  7862. <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="Self.FK_FmsMaterialRelease_FmsWorkResult">
  7863. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7864. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  7865. </AssociationSet>
  7866. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="Self.FK_FmsMaterialStored_FmsMaterial">
  7867. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7868. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7869. </AssociationSet>
  7870. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  7871. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  7872. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7873. </AssociationSet>
  7874. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
  7875. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  7876. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  7877. </AssociationSet>
  7878. <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="Self.FK_FmsMonthlyReport_CmUser">
  7879. <End Role="CmUser" EntitySet="CmUser" />
  7880. <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
  7881. </AssociationSet>
  7882. <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="Self.FK_FmsReport_CmBusinessField">
  7883. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  7884. <End Role="FmsReport" EntitySet="FmsReport" />
  7885. </AssociationSet>
  7886. <AssociationSet Name="FK_FmsReport_CmFile" Association="Self.FK_FmsReport_CmFile">
  7887. <End Role="CmFile" EntitySet="CmFile" />
  7888. <End Role="FmsReport" EntitySet="FmsReport" />
  7889. </AssociationSet>
  7890. <AssociationSet Name="FK_FmsReport_CmSite" Association="Self.FK_FmsReport_CmSite">
  7891. <End Role="CmSite" EntitySet="CmSite" />
  7892. <End Role="FmsReport" EntitySet="FmsReport" />
  7893. </AssociationSet>
  7894. <AssociationSet Name="FK_FmsReport_CmUser" Association="Self.FK_FmsReport_CmUser">
  7895. <End Role="CmUser" EntitySet="CmUser" />
  7896. <End Role="FmsReport" EntitySet="FmsReport" />
  7897. </AssociationSet>
  7898. <AssociationSet Name="FK_FmsReport_CmUser1" Association="Self.FK_FmsReport_CmUser1">
  7899. <End Role="CmUser" EntitySet="CmUser" />
  7900. <End Role="FmsReport" EntitySet="FmsReport" />
  7901. </AssociationSet>
  7902. <AssociationSet Name="FK_FmsReport_CmUser2" Association="Self.FK_FmsReport_CmUser2">
  7903. <End Role="CmUser" EntitySet="CmUser" />
  7904. <End Role="FmsReport" EntitySet="FmsReport" />
  7905. </AssociationSet>
  7906. <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="Self.FK_FmsWorkOrderToFacility_CmFacility">
  7907. <End Role="CmFacility" EntitySet="CmFacility" />
  7908. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  7909. </AssociationSet>
  7910. <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="Self.FK_FmsWorkRequest_CmPartner">
  7911. <End Role="CmPartner" EntitySet="CmPartner" />
  7912. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  7913. </AssociationSet>
  7914. <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="Self.FK_FmsWorkRequestToFacility_CmFacility">
  7915. <End Role="CmFacility" EntitySet="CmFacility" />
  7916. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  7917. </AssociationSet>
  7918. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  7919. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  7920. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  7921. </AssociationSet>
  7922. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  7923. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  7924. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  7925. </AssociationSet>
  7926. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  7927. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  7928. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  7929. </AssociationSet>
  7930. <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="Self.FK_FmsWorkSchedule_CmPartner">
  7931. <End Role="CmPartner" EntitySet="CmPartner" />
  7932. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  7933. </AssociationSet>
  7934. <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="Self.FK_FmsWorkScheduleToFacility_CmFacility">
  7935. <End Role="CmFacility" EntitySet="CmFacility" />
  7936. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  7937. </AssociationSet>
  7938. </EntityContainer>
  7939. </Schema>