92e24d7837f42bfb9ede3946c99843626a0304da.svn-base 506 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Schema Namespace="iBemsModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
  3. <EntityType Name="BemsAnalysisType">
  4. <Key>
  5. <PropertyRef Name="SiteId" />
  6. <PropertyRef Name="AnalysisType" />
  7. </Key>
  8. <Property Name="SiteId" Type="Int32" Nullable="false" />
  9. <Property Name="AnalysisType" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  10. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  11. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsAnalysisType" ToRole="BemsMonitoringPointToAnlaysisType" />
  12. </EntityType>
  13. <EntityType Name="BemsControlPointHistory">
  14. <Key>
  15. <PropertyRef Name="SiteId" />
  16. <PropertyRef Name="FacilityCode" />
  17. <PropertyRef Name="PropertyId" />
  18. <PropertyRef Name="CreateDateTime" />
  19. </Key>
  20. <Property Name="SiteId" Type="Int32" Nullable="false" />
  21. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  22. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  23. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  24. <Property Name="CreateDateTime" Type="DateTime" Nullable="false" Precision="3" />
  25. <Property Name="ControlValue" Type="Double" Nullable="false" />
  26. <Property Name="WriteServiceName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  27. <Property Name="ActionDateTime" Type="DateTime" Precision="3" />
  28. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsControlPointHistory" ToRole="BemsFacilityType" />
  29. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsControlPointHistory" ToRole="BemsMonitoringPoint" />
  30. </EntityType>
  31. <EntityType Name="BemsFacilityType">
  32. <Key>
  33. <PropertyRef Name="FacilityTypeId" />
  34. </Key>
  35. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  36. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  37. <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsControlPointHistory" />
  38. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointBaseData" />
  39. <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15min" />
  40. <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryDaily" />
  41. <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryHourly" />
  42. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointToAnlaysisType" />
  43. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPoint" />
  44. <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsChartInfo" />
  45. <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointConfig" />
  46. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsAlarmSetting" />
  47. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="BemsFacilityType" ToRole="CmFacility" />
  48. <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15minRawData" />
  49. </EntityType>
  50. <EntityType Name="BemsFactorCo2">
  51. <Key>
  52. <PropertyRef Name="FuelTypeId" />
  53. </Key>
  54. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  55. <Property Name="Factor" Type="Double" Nullable="false" />
  56. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFactorCo2" ToRole="BemsFuelType" />
  57. </EntityType>
  58. <EntityType Name="BemsFactorToe">
  59. <Key>
  60. <PropertyRef Name="FuelTypeId" />
  61. </Key>
  62. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  63. <Property Name="TotalFactor" Type="Double" Nullable="false" />
  64. <Property Name="PureFactor" Type="Double" Nullable="false" />
  65. <Property Name="kcal" Type="Double" />
  66. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFactorToe" ToRole="BemsFuelType" />
  67. </EntityType>
  68. <EntityType Name="BemsFormula">
  69. <Key>
  70. <PropertyRef Name="SiteId" />
  71. <PropertyRef Name="FacilityTypeId" />
  72. <PropertyRef Name="FacilityCode" />
  73. <PropertyRef Name="FormulaId" />
  74. </Key>
  75. <Property Name="SiteId" Type="Int32" Nullable="false" />
  76. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  77. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  78. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  79. <Property Name="Formula" Type="String" MaxLength="120" FixedLength="false" Unicode="true" Nullable="false" />
  80. <NavigationProperty Name="BemsFormulaBase" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormula" ToRole="BemsFormulaBase" />
  81. <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormula" ToRole="BemsFormulaParameter" />
  82. <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsFormula" ToRole="BemsPriceFormula" />
  83. </EntityType>
  84. <EntityType Name="BemsFormulaBase">
  85. <Key>
  86. <PropertyRef Name="FacilityTypeId" />
  87. <PropertyRef Name="FormulaId" />
  88. </Key>
  89. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  90. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  91. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  92. <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormulaBase" ToRole="BemsFormula" />
  93. </EntityType>
  94. <EntityType Name="BemsFormulaParameter">
  95. <Key>
  96. <PropertyRef Name="SiteId" />
  97. <PropertyRef Name="FacilityCode" />
  98. <PropertyRef Name="FormulaId" />
  99. <PropertyRef Name="ParameterId" />
  100. </Key>
  101. <Property Name="SiteId" Type="Int32" Nullable="false" />
  102. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  103. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  104. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  105. <Property Name="ParameterId" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
  106. <Property Name="ParameterFacilityCode" Type="Int32" Nullable="false" />
  107. <Property Name="ParameterPropertyId" Type="Int32" Nullable="false" />
  108. <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormulaParameter" ToRole="BemsFormula" />
  109. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsFormulaParameter" ToRole="BemsMonitoringPoint" />
  110. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="BemsFormulaParameter" ToRole="CmFacility" />
  111. </EntityType>
  112. <EntityType Name="BemsFormulaTable">
  113. <Key>
  114. <PropertyRef Name="TableId" />
  115. </Key>
  116. <Property Name="TableId" Type="Int32" Nullable="false" />
  117. <Property Name="FunctionName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  118. <Property Name="Description" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
  119. <NavigationProperty Name="BemsFormulaTableValue" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTable" ToRole="BemsFormulaTableValue" />
  120. </EntityType>
  121. <EntityType Name="BemsFormulaTableValue">
  122. <Key>
  123. <PropertyRef Name="TableId" />
  124. <PropertyRef Name="XValue" />
  125. </Key>
  126. <Property Name="TableId" Type="Int32" Nullable="false" />
  127. <Property Name="XValue" Type="Double" Nullable="false" />
  128. <Property Name="YValue" Type="Double" Nullable="false" />
  129. <NavigationProperty Name="BemsFormulaTable" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTableValue" ToRole="BemsFormulaTable" />
  130. </EntityType>
  131. <EntityType Name="BemsMonitoringPoint">
  132. <Key>
  133. <PropertyRef Name="SiteId" />
  134. <PropertyRef Name="FacilityCode" />
  135. <PropertyRef Name="PropertyId" />
  136. </Key>
  137. <Property Name="SiteId" Type="Int32" Nullable="false" />
  138. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  139. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  140. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  141. <Property Name="ValueType" Type="Int32" Nullable="false" />
  142. <Property Name="ServiceTypeId" Type="Int16" />
  143. <Property Name="FuelTypeId" Type="Int16" />
  144. <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  145. <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  146. <Property Name="BuildingId" Type="Int32" />
  147. <Property Name="FloorId" Type="Int32" />
  148. <Property Name="ZoneId" Type="Int32" />
  149. <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsControlPointHistory" />
  150. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsMonitoringPoint" ToRole="BemsFacilityType" />
  151. <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsFormulaParameter" />
  152. <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointToAnlaysisType" />
  153. <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsMonitoringPoint" ToRole="BemsServiceType" />
  154. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="BemsMonitoringPoint" ToRole="CmBuilding" />
  155. <NavigationProperty Name="CmFloor" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="BemsMonitoringPoint" ToRole="CmFloor" />
  156. <NavigationProperty Name="CmZone" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="BemsMonitoringPoint" ToRole="CmZone" />
  157. <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15min" />
  158. <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryDaily" />
  159. <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryHourly" />
  160. <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointConfig" />
  161. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsMonitoringPoint" ToRole="BemsFuelType" />
  162. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="BemsMonitoringPoint" ToRole="CmFacility" />
  163. <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15minRawData" />
  164. </EntityType>
  165. <EntityType Name="BemsMonitoringPointBaseData">
  166. <Key>
  167. <PropertyRef Name="FacilityTypeId" />
  168. <PropertyRef Name="PropertyId" />
  169. </Key>
  170. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  171. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  172. <Property Name="ValueType" Type="Int32" Nullable="false" />
  173. <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
  174. <Property Name="ServiceTypeId" Type="Int16" />
  175. <Property Name="FuelTypeId" Type="Int16" />
  176. <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  177. <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  178. <Property Name="IsSampled" Type="Boolean" />
  179. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFacilityType" />
  180. <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsServiceType" />
  181. <Property Name="IsConverted" Type="Boolean" />
  182. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFuelType" />
  183. </EntityType>
  184. <EntityType Name="BemsMonitoringPointHistory15min">
  185. <Key>
  186. <PropertyRef Name="SiteId" />
  187. <PropertyRef Name="FacilityCode" />
  188. <PropertyRef Name="PropertyId" />
  189. <PropertyRef Name="CreatedDateTime" />
  190. </Key>
  191. <Property Name="SiteId" Type="Int32" Nullable="false" />
  192. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  193. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  194. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  195. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  196. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  197. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsFacilityType" />
  198. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsMonitoringPoint" />
  199. </EntityType>
  200. <EntityType Name="BemsMonitoringPointHistoryDaily">
  201. <Key>
  202. <PropertyRef Name="SiteId" />
  203. <PropertyRef Name="FacilityCode" />
  204. <PropertyRef Name="PropertyId" />
  205. <PropertyRef Name="CreatedDateTime" />
  206. </Key>
  207. <Property Name="SiteId" Type="Int32" Nullable="false" />
  208. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  209. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  210. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  211. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  212. <Property Name="DailyValue" Type="Double" Nullable="false" />
  213. <Property Name="MaxValue" Type="Double" />
  214. <Property Name="MinValue" Type="Double" />
  215. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsFacilityType" />
  216. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsMonitoringPoint" />
  217. </EntityType>
  218. <EntityType Name="BemsMonitoringPointHistoryHourly">
  219. <Key>
  220. <PropertyRef Name="SiteId" />
  221. <PropertyRef Name="FacilityCode" />
  222. <PropertyRef Name="PropertyId" />
  223. <PropertyRef Name="CreatedDateTime" />
  224. </Key>
  225. <Property Name="SiteId" Type="Int32" Nullable="false" />
  226. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  227. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  228. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  229. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  230. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  231. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsFacilityType" />
  232. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsMonitoringPoint" />
  233. </EntityType>
  234. <EntityType Name="BemsMonitoringPointToAnlaysisType">
  235. <Key>
  236. <PropertyRef Name="SiteId" />
  237. <PropertyRef Name="FacilityTypeId" />
  238. <PropertyRef Name="FacilityCode" />
  239. <PropertyRef Name="PropertyId" />
  240. <PropertyRef Name="AnalysisType" />
  241. </Key>
  242. <Property Name="SiteId" Type="Int32" Nullable="false" />
  243. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  244. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  245. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  246. <Property Name="AnalysisType" Type="Int32" Nullable="false" />
  247. <NavigationProperty Name="BemsAnalysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsAnalysisType" />
  248. <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsFacilityType" />
  249. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsMonitoringPoint" />
  250. </EntityType>
  251. <EntityType Name="BemsServiceType">
  252. <Key>
  253. <PropertyRef Name="ServiceTypeId" />
  254. </Key>
  255. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  256. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  257. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPoint" />
  258. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPointBaseData" />
  259. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsEnergyDaily" />
  260. </EntityType>
  261. <EntityType Name="CmAnnouncement">
  262. <Key>
  263. <PropertyRef Name="SiteId" />
  264. <PropertyRef Name="AnnouncementId" />
  265. </Key>
  266. <Property Name="SiteId" Type="Int32" Nullable="false" />
  267. <Property Name="AnnouncementId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  268. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  269. <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  270. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" Nullable="false" />
  271. <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  272. <Property Name="FileId" Type="Int32" />
  273. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  274. <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
  275. <Property Name="IsUse" Type="Boolean" />
  276. <Property Name="ReadCount" Type="Int32" Nullable="false" />
  277. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmAnnouncement" ToRole="CmBusinessField" />
  278. <NavigationProperty Name="CmFile" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmAnnouncement" ToRole="CmFile" />
  279. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmAnnouncement" ToRole="CmUser" />
  280. </EntityType>
  281. <EntityType Name="CmBuilding">
  282. <Key>
  283. <PropertyRef Name="SiteId" />
  284. <PropertyRef Name="BuildingId" />
  285. </Key>
  286. <Property Name="SiteId" Type="Int32" Nullable="false" />
  287. <Property Name="BuildingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  288. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  289. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="CmBuilding" ToRole="BemsMonitoringPoint" />
  290. <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmBuilding" ToRole="CmFloor" />
  291. <NavigationProperty Name="CmZone" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmBuilding" ToRole="CmZone" />
  292. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmBuilding" ToRole="CmZoneTempHumiSet" />
  293. <Property Name="FileId" Type="Int32" />
  294. <Property Name="IsUse" Type="Boolean" />
  295. <Property Name="SortOrderNo" Type="Int32" />
  296. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmBuilding" ToRole="CmPatrolPos" />
  297. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmBuilding" ToRole="CmSite" />
  298. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="CmBuilding" ToRole="BemsEnergyDaily" />
  299. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmBuilding" ToRole="CmFacility" />
  300. </EntityType>
  301. <EntityType Name="CmBusinessField">
  302. <Key>
  303. <PropertyRef Name="SiteId" />
  304. <PropertyRef Name="BusinessFieldId" />
  305. </Key>
  306. <Property Name="SiteId" Type="Int32" Nullable="false" />
  307. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  308. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  309. <Property Name="IsUse" Type="Boolean" />
  310. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmBusinessField" ToRole="CmAnnouncement" />
  311. <NavigationProperty Name="FmsFacilityManual" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="CmBusinessField" ToRole="FmsFacilityManual" />
  312. <NavigationProperty Name="FmsLicense" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsLicense" />
  313. <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCarriedForward" />
  314. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCodeLocation" />
  315. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseOrder" />
  316. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseRequest" />
  317. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialStored" />
  318. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialWarehouse" />
  319. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkOrder" />
  320. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkRequest" />
  321. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkSchedule" />
  322. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmBusinessField" ToRole="CmUser" />
  323. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterial" />
  324. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialRelease" />
  325. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsReport" />
  326. <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsDailyReport" />
  327. </EntityType>
  328. <EntityType Name="CmCompany">
  329. <Key>
  330. <PropertyRef Name="SiteId" />
  331. <PropertyRef Name="CompanyId" />
  332. </Key>
  333. <Property Name="SiteId" Type="Int32" Nullable="false" />
  334. <Property Name="CompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  335. <Property Name="CompanyTypeId" Type="Int32" Nullable="false" />
  336. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  337. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  338. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  339. <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  340. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  341. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  342. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  343. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  344. <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  345. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  346. <Property Name="Homepage" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  347. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  348. <Property Name="IsUse" Type="Boolean" />
  349. <NavigationProperty Name="CmCompanyType" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompany" ToRole="CmCompanyType" />
  350. <NavigationProperty Name="CmDepartment" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmCompany" ToRole="CmDepartment" />
  351. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmCompany" ToRole="CmUser" />
  352. <NavigationProperty Name="FmsAccident" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="CmCompany" ToRole="FmsAccident" />
  353. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmCompany" ToRole="CmSite" />
  354. </EntityType>
  355. <EntityType Name="CmCompanyType">
  356. <Key>
  357. <PropertyRef Name="SiteId" />
  358. <PropertyRef Name="CompanyTypeId" />
  359. </Key>
  360. <Property Name="SiteId" Type="Int32" Nullable="false" />
  361. <Property Name="CompanyTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  362. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  363. <Property Name="IsUse" Type="Boolean" />
  364. <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompanyType" ToRole="CmCompany" />
  365. </EntityType>
  366. <EntityType Name="CmDepartment">
  367. <Key>
  368. <PropertyRef Name="SiteId" />
  369. <PropertyRef Name="CompanyId" />
  370. <PropertyRef Name="DepartmentId" />
  371. </Key>
  372. <Property Name="SiteId" Type="Int32" Nullable="false" />
  373. <Property Name="CompanyId" Type="Int32" Nullable="false" />
  374. <Property Name="DepartmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  375. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  376. <Property Name="ShortName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  377. <Property Name="FaxNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  378. <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  379. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  380. <Property Name="IsUse" Type="Boolean" />
  381. <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmDepartment" ToRole="CmCompany" />
  382. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmDepartment" ToRole="CmUser" />
  383. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="CmDepartment" ToRole="FmsAccident" />
  384. </EntityType>
  385. <EntityType Name="CmFacilityFile">
  386. <Key>
  387. <PropertyRef Name="SiteId" />
  388. <PropertyRef Name="FileId" />
  389. </Key>
  390. <Property Name="SiteId" Type="Int32" Nullable="false" />
  391. <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  392. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  393. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  394. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  395. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  396. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  397. <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFacilityFile" ToRole="CmFile" />
  398. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacilityFile" ToRole="CmFacility" />
  399. </EntityType>
  400. <EntityType Name="CmFacilityTempSet">
  401. <Key>
  402. <PropertyRef Name="SiteId" />
  403. <PropertyRef Name="FacilityCode" />
  404. </Key>
  405. <Property Name="SiteId" Type="Int32" Nullable="false" />
  406. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  407. <Property Name="T1" Type="Double" Nullable="false" />
  408. <Property Name="T2" Type="Double" Nullable="false" />
  409. <Property Name="T3" Type="Double" Nullable="false" />
  410. <Property Name="T4" Type="Double" Nullable="false" />
  411. <Property Name="T5" Type="Double" Nullable="false" />
  412. <Property Name="T6" Type="Double" Nullable="false" />
  413. <Property Name="T7" Type="Double" Nullable="false" />
  414. <Property Name="T8" Type="Double" Nullable="false" />
  415. <Property Name="T9" Type="Double" Nullable="false" />
  416. <Property Name="T10" Type="Double" Nullable="false" />
  417. <Property Name="T11" Type="Double" Nullable="false" />
  418. <Property Name="T12" Type="Double" Nullable="false" />
  419. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmFacilityTempSet" ToRole="CmSite" />
  420. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacilityTempSet" ToRole="CmFacility" />
  421. </EntityType>
  422. <EntityType Name="CmFile" m:HasStream="true" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
  423. <Key>
  424. <PropertyRef Name="SiteId" />
  425. <PropertyRef Name="FileId" />
  426. </Key>
  427. <Property Name="SiteId" Type="Int32" Nullable="false" />
  428. <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  429. <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
  430. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  431. <Property Name="FileSize" Type="Int32" />
  432. <Property Name="CreatedDate" Type="DateTime" Precision="3" />
  433. <Property Name="ContentType" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  434. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmFile" ToRole="CmAnnouncement" />
  435. <NavigationProperty Name="CmFacilityFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFile" ToRole="CmFacilityFile" />
  436. <NavigationProperty Name="CmFileCategory" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFile" ToRole="CmFileCategory" />
  437. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="CmFile" ToRole="FmsDrawingHistory" />
  438. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="CmFile" ToRole="FmsMaterialPurchaseOrder" />
  439. <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="CmFile" ToRole="FmsWorkResultFile" />
  440. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="CmFile" ToRole="FmsAccident" />
  441. <NavigationProperty Name="FmsAccident1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="CmFile" ToRole="FmsAccident" />
  442. <NavigationProperty Name="FmsAccident2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="CmFile" ToRole="FmsAccident" />
  443. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="CmFile" ToRole="FmsConstruction" />
  444. <NavigationProperty Name="FmsConstruction1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="CmFile" ToRole="FmsConstruction" />
  445. <NavigationProperty Name="FmsConstruction2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="CmFile" ToRole="FmsConstruction" />
  446. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="CmFile" ToRole="FmsManualHistory" />
  447. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="CmFile" ToRole="FmsMaterial" />
  448. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmFile" ToRole="CmSite" />
  449. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="CmFile" ToRole="FmsReport" />
  450. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
  451. <NavigationProperty Name="FmsWorkResultCheckItem1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
  452. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFile" ToRole="CmFacility" />
  453. </EntityType>
  454. <EntityType Name="CmFileCategory">
  455. <Key>
  456. <PropertyRef Name="FileCategoryId" />
  457. </Key>
  458. <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
  459. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  460. <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFileCategory" ToRole="CmFile" />
  461. </EntityType>
  462. <EntityType Name="CmFloor">
  463. <Key>
  464. <PropertyRef Name="SiteId" />
  465. <PropertyRef Name="BuildingId" />
  466. <PropertyRef Name="FloorId" />
  467. </Key>
  468. <Property Name="SiteId" Type="Int32" Nullable="false" />
  469. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  470. <Property Name="FloorId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  471. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  472. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="CmFloor" ToRole="BemsMonitoringPoint" />
  473. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmFloor" ToRole="CmBuilding" />
  474. <NavigationProperty Name="CmZone" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmFloor" ToRole="CmZone" />
  475. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmFloor" ToRole="CmZoneTempHumiSet" />
  476. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmFloor" ToRole="CmPatrolPos" />
  477. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFloor" ToRole="CmFacility" />
  478. </EntityType>
  479. <EntityType Name="CmHoliday">
  480. <Key>
  481. <PropertyRef Name="SiteId" />
  482. <PropertyRef Name="HolidayMonth" />
  483. <PropertyRef Name="HolidayDay" />
  484. <PropertyRef Name="IsLunar" />
  485. </Key>
  486. <Property Name="SiteId" Type="Int32" Nullable="false" />
  487. <Property Name="HolidayMonth" Type="Int16" Nullable="false" />
  488. <Property Name="HolidayDay" Type="Int16" Nullable="false" />
  489. <Property Name="IsLunar" Type="Boolean" Nullable="false" />
  490. <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
  491. <Property Name="IsUse" Type="Boolean" />
  492. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmHoliday" ToRole="CmSite" />
  493. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmHoliday" ToRole="CmSite" />
  494. </EntityType>
  495. <EntityType Name="CmHolidayCustom">
  496. <Key>
  497. <PropertyRef Name="SiteId" />
  498. <PropertyRef Name="HolidayDate" />
  499. </Key>
  500. <Property Name="SiteId" Type="Int32" Nullable="false" />
  501. <Property Name="HolidayDate" Type="DateTime" Nullable="false" Precision="3" />
  502. <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
  503. <Property Name="IsUse" Type="Boolean" />
  504. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmHolidayCustom" ToRole="CmSite" />
  505. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmHolidayCustom" ToRole="CmSite" />
  506. </EntityType>
  507. <EntityType Name="CmPosition">
  508. <Key>
  509. <PropertyRef Name="SiteId" />
  510. <PropertyRef Name="PositionId" />
  511. </Key>
  512. <Property Name="SiteId" Type="Int32" Nullable="false" />
  513. <Property Name="PositionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  514. <Property Name="Name" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
  515. <Property Name="IsUse" Type="Boolean" />
  516. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmPosition" ToRole="CmUser" />
  517. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmPosition" ToRole="CmSite" />
  518. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmPosition" ToRole="CmSite" />
  519. </EntityType>
  520. <EntityType Name="CmUser">
  521. <Key>
  522. <PropertyRef Name="SiteId" />
  523. <PropertyRef Name="UserId" />
  524. </Key>
  525. <Property Name="SiteId" Type="Int32" Nullable="false" />
  526. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  527. <Property Name="CompanyId" Type="Int32" />
  528. <Property Name="DepartmentId" Type="Int32" />
  529. <Property Name="PositionId" Type="Int32" />
  530. <Property Name="BusinessFieldId" Type="Int32" />
  531. <Property Name="UserGroupId" Type="Int32" />
  532. <Property Name="Name" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  533. <Property Name="Passwd" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  534. <Property Name="Birthday" Type="DateTime" Precision="3" />
  535. <Property Name="Lunar" Type="Boolean" />
  536. <Property Name="StateId" Type="Int32" />
  537. <Property Name="EmploymentType" Type="Int32" />
  538. <Property Name="EmploymentStatus" Type="Int32" />
  539. <Property Name="OfficePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  540. <Property Name="HomePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  541. <Property Name="MobilePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  542. <Property Name="HomeZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
  543. <Property Name="HomeZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
  544. <Property Name="HomeAddress1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  545. <Property Name="HomeAdderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  546. <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  547. <Property Name="EnterDate" Type="DateTime" Precision="3" />
  548. <Property Name="RetireDate" Type="DateTime" Precision="3" />
  549. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  550. <Property Name="Rfcsn" Type="String" MaxLength="30" FixedLength="false" Unicode="true" />
  551. <Property Name="PasswordUpdatedDate" Type="DateTime" Precision="3" />
  552. <Property Name="FileId" Type="Int32" />
  553. <Property Name="IsBems" Type="Boolean" />
  554. <Property Name="IsUse" Type="Boolean" />
  555. <Property Name="Certificated" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  556. <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmUser" ToRole="CmAnnouncement" />
  557. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmUser" ToRole="CmBusinessField" />
  558. <NavigationProperty Name="CmCompany" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmUser" ToRole="CmCompany" />
  559. <NavigationProperty Name="CmDepartment" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmUser" ToRole="CmDepartment" />
  560. <NavigationProperty Name="CmPosition" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmUser" ToRole="CmPosition" />
  561. <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUser" ToRole="CmUserToLicense" />
  562. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="CmUser" ToRole="FmsDrawingHistory" />
  563. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="CmUser" ToRole="FmsMaterialPurchaseOrder" />
  564. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
  565. <NavigationProperty Name="FmsMaterialPurchaseRequest1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
  566. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
  567. <NavigationProperty Name="FmsMaterialStored1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
  568. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="CmUser" ToRole="FmsWorkOrder" />
  569. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
  570. <NavigationProperty Name="FmsWorkRequest1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
  571. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
  572. <NavigationProperty Name="FmsWorkResult1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
  573. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmUser" FromRole="CmUser" ToRole="FmsWorkSchedule" />
  574. <NavigationProperty Name="CmUserGroup" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUser" ToRole="CmUserGroup" />
  575. <NavigationProperty Name="CmUserLoginHistory" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUser" ToRole="CmUserLoginHistory" />
  576. <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="CmUser" ToRole="FmsConstructionEstimation" />
  577. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="CmUser" ToRole="FmsManualHistory" />
  578. <NavigationProperty Name="FmsDailyCheckReport" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="CmUser" ToRole="FmsDailyCheckReport" />
  579. <NavigationProperty Name="FmsFacilityOperationReport" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="CmUser" ToRole="FmsFacilityOperationReport" />
  580. <Property Name="IsScheduleUser" Type="Boolean" />
  581. <NavigationProperty Name="FmsMonthlyReport" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="CmUser" ToRole="FmsMonthlyReport" />
  582. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="CmUser" ToRole="FmsMaterialRelease" />
  583. <NavigationProperty Name="FmsMaterialRelease1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="CmUser" ToRole="FmsMaterialRelease" />
  584. <Property Name="IsSI" Type="Boolean" Nullable="true" />
  585. <Property Name="IsMobile" Type="Boolean" Nullable="true" />
  586. <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmUser" ToRole="CmPatrolGroupUser" />
  587. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="CmUser" ToRole="FmsReport" />
  588. <NavigationProperty Name="FmsReport1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="CmUser" ToRole="FmsReport" />
  589. <NavigationProperty Name="FmsReport2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="CmUser" ToRole="FmsReport" />
  590. <Property Name="Devicetoken" Type="String" MaxLength="500" FixedLength="false" Unicode="true" />
  591. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
  592. <NavigationProperty Name="FmsEquipmentRentInfo1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
  593. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmUser" ToRole="CmFacility" />
  594. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmUser" ToRole="CmFacility" />
  595. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmUser" ToRole="CmFacility" />
  596. <NavigationProperty Name="CmFacility3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmUser" ToRole="CmFacility" />
  597. <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="CmUser" ToRole="FmsDailyReport" />
  598. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="CmUser" ToRole="FmsEquipment" />
  599. </EntityType>
  600. <EntityType Name="CmUserGroup">
  601. <Key>
  602. <PropertyRef Name="SiteId" />
  603. <PropertyRef Name="UserGroupId" />
  604. </Key>
  605. <Property Name="SiteId" Type="Int32" Nullable="false" />
  606. <Property Name="UserGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  607. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  608. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUserGroup" ToRole="CmUser" />
  609. <NavigationProperty Name="CmUserGroupPermission" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroup" ToRole="CmUserGroupPermission" />
  610. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmUserGroup" ToRole="CmSite" />
  611. </EntityType>
  612. <EntityType Name="CmUserGroupPermission">
  613. <Key>
  614. <PropertyRef Name="SiteId" />
  615. <PropertyRef Name="UserGroupId" />
  616. <PropertyRef Name="MenuId" />
  617. </Key>
  618. <Property Name="SiteId" Type="Int32" Nullable="false" />
  619. <Property Name="UserGroupId" Type="Int32" Nullable="false" />
  620. <Property Name="MenuId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  621. <Property Name="MenuPermission" Type="Int16" />
  622. <NavigationProperty Name="CmUserGroup" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroupPermission" ToRole="CmUserGroup" />
  623. </EntityType>
  624. <EntityType Name="CmUserLoginHistory">
  625. <Key>
  626. <PropertyRef Name="LoginHistoryId" />
  627. </Key>
  628. <Property Name="LoginHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  629. <Property Name="SiteId" Type="Int32" Nullable="false" />
  630. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  631. <Property Name="Type" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
  632. <Property Name="TraceTime" Type="DateTime" Nullable="false" Precision="3" />
  633. <Property Name="IpAddress" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  634. <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUserLoginHistory" ToRole="CmUser" />
  635. </EntityType>
  636. <EntityType Name="CmUserToLicense">
  637. <Key>
  638. <PropertyRef Name="SiteId" />
  639. <PropertyRef Name="UserId" />
  640. <PropertyRef Name="LicenseId" />
  641. </Key>
  642. <Property Name="SiteId" Type="Int32" Nullable="false" />
  643. <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  644. <Property Name="LicenseId" Type="Int32" Nullable="false" />
  645. <NavigationProperty Name="CmUser" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUserToLicense" ToRole="CmUser" />
  646. <NavigationProperty Name="FmsLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="CmUserToLicense" ToRole="FmsLicense" />
  647. </EntityType>
  648. <EntityType Name="CmZone">
  649. <Key>
  650. <PropertyRef Name="SiteId" />
  651. <PropertyRef Name="BuildingId" />
  652. <PropertyRef Name="FloorId" />
  653. <PropertyRef Name="ZoneId" />
  654. </Key>
  655. <Property Name="SiteId" Type="Int32" Nullable="false" />
  656. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  657. <Property Name="FloorId" Type="Int32" Nullable="false" />
  658. <Property Name="ZoneId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  659. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  660. <Property Name="Target_temperature" Type="Double" />
  661. <Property Name="Target_humidity" Type="Int16" />
  662. <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="CmZone" ToRole="BemsMonitoringPoint" />
  663. <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmZone" ToRole="CmBuilding" />
  664. <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmZone" ToRole="CmFloor" />
  665. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZone" ToRole="CmZoneTempHumiSet" />
  666. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmZone" ToRole="CmFacility" />
  667. </EntityType>
  668. <EntityType Name="CmZoneTempHumiSet">
  669. <Key>
  670. <PropertyRef Name="SiteId" />
  671. <PropertyRef Name="BuildingId" />
  672. <PropertyRef Name="FloorId" />
  673. <PropertyRef Name="ZoneId" />
  674. </Key>
  675. <Property Name="SiteId" Type="Int32" Nullable="false" />
  676. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  677. <Property Name="FloorId" Type="Int32" Nullable="false" />
  678. <Property Name="ZoneId" Type="Int32" Nullable="false" />
  679. <Property Name="T1" Type="Double" Nullable="false" />
  680. <Property Name="T2" Type="Double" Nullable="false" />
  681. <Property Name="T3" Type="Double" Nullable="false" />
  682. <Property Name="T4" Type="Double" Nullable="false" />
  683. <Property Name="T5" Type="Double" Nullable="false" />
  684. <Property Name="T6" Type="Double" Nullable="false" />
  685. <Property Name="T7" Type="Double" Nullable="false" />
  686. <Property Name="T8" Type="Double" Nullable="false" />
  687. <Property Name="T9" Type="Double" Nullable="false" />
  688. <Property Name="T10" Type="Double" Nullable="false" />
  689. <Property Name="T11" Type="Double" Nullable="false" />
  690. <Property Name="T12" Type="Double" Nullable="false" />
  691. <Property Name="H1" Type="Int16" Nullable="false" />
  692. <Property Name="H2" Type="Int16" Nullable="false" />
  693. <Property Name="H3" Type="Int16" Nullable="false" />
  694. <Property Name="H4" Type="Int16" Nullable="false" />
  695. <Property Name="H5" Type="Int16" Nullable="false" />
  696. <Property Name="H6" Type="Int16" Nullable="false" />
  697. <Property Name="H7" Type="Int16" Nullable="false" />
  698. <Property Name="H8" Type="Int16" Nullable="false" />
  699. <Property Name="H9" Type="Int16" Nullable="false" />
  700. <Property Name="H10" Type="Int16" Nullable="false" />
  701. <Property Name="H11" Type="Int16" Nullable="false" />
  702. <Property Name="H12" Type="Int16" Nullable="false" />
  703. <NavigationProperty Name="CmBuilding" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmZoneTempHumiSet" ToRole="CmBuilding" />
  704. <NavigationProperty Name="CmFloor" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmZoneTempHumiSet" ToRole="CmFloor" />
  705. <NavigationProperty Name="CmZone" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZoneTempHumiSet" ToRole="CmZone" />
  706. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmZoneTempHumiSet" ToRole="CmSite" />
  707. </EntityType>
  708. <EntityType Name="FmsAccident">
  709. <Key>
  710. <PropertyRef Name="SiteId" />
  711. <PropertyRef Name="AccidentId" />
  712. </Key>
  713. <Property Name="SiteId" Type="Int32" Nullable="false" />
  714. <Property Name="AccidentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  715. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  716. <Property Name="StartDate" Type="DateTime" Precision="3" />
  717. <Property Name="EndDate" Type="DateTime" Precision="3" />
  718. <Property Name="AccidentTypeId" Type="Int32" Nullable="false" />
  719. <Property Name="DepartmentId" Type="Int32" />
  720. <Property Name="AccidentLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  721. <Property Name="Reason" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  722. <Property Name="Action" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  723. <Property Name="Damage" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  724. <Property Name="Measurement" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  725. <Property Name="FileId1" Type="Int32" />
  726. <Property Name="FileId2" Type="Int32" />
  727. <Property Name="FileId3" Type="Int32" />
  728. <Property Name="CompanyId" Type="Int32" />
  729. <NavigationProperty Name="CmDepartment" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="FmsAccident" ToRole="CmDepartment" />
  730. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="FmsAccident" ToRole="CmFile" />
  731. <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="FmsAccident" ToRole="CmFile" />
  732. <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="FmsAccident" ToRole="CmFile" />
  733. <NavigationProperty Name="FmsAccidentCodeType" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccident" ToRole="FmsAccidentCodeType" />
  734. <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="FmsAccident" ToRole="CmCompany" />
  735. </EntityType>
  736. <EntityType Name="FmsAccidentCodeType">
  737. <Key>
  738. <PropertyRef Name="SiteId" />
  739. <PropertyRef Name="AccidentTypeId" />
  740. </Key>
  741. <Property Name="SiteId" Type="Int32" Nullable="false" />
  742. <Property Name="AccidentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  743. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  744. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  745. <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccidentCodeType" ToRole="FmsAccident" />
  746. </EntityType>
  747. <EntityType Name="FmsBudget">
  748. <Key>
  749. <PropertyRef Name="SiteId" />
  750. <PropertyRef Name="Year" />
  751. </Key>
  752. <Property Name="SiteId" Type="Int32" Nullable="false" />
  753. <Property Name="Year" Type="Int32" Nullable="false" />
  754. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudget" ToRole="FmsBudgetDetail" />
  755. </EntityType>
  756. <EntityType Name="FmsBudgetCodeClass">
  757. <Key>
  758. <PropertyRef Name="SiteId" />
  759. <PropertyRef Name="BudgetClassId" />
  760. </Key>
  761. <Property Name="SiteId" Type="Int32" Nullable="false" />
  762. <Property Name="BudgetClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  763. <Property Name="BudgetSeq" Type="String" MaxLength="6" FixedLength="false" Unicode="true" Nullable="false" />
  764. <Property Name="ParentBudgetClassId" Type="Int32" />
  765. <Property Name="Depth" Type="Int32" Nullable="false" />
  766. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  767. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  768. <Property Name="IsUse" Type="Boolean" />
  769. <Property Name="YearlyBudget" Type="Double" />
  770. <Property Name="MonthlyBudget" Type="Double" />
  771. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetCodeClass" ToRole="FmsBudgetDetail" />
  772. <Property Name="RootBudgetClassId" Type="Int32" />
  773. </EntityType>
  774. <EntityType Name="FmsCompanyEstimationCodeClass">
  775. <Key>
  776. <PropertyRef Name="SiteId" />
  777. <PropertyRef Name="CompanyEstimationClassId" />
  778. </Key>
  779. <Property Name="SiteId" Type="Int32" Nullable="false" />
  780. <Property Name="CompanyEstimationClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  781. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  782. <Property Name="IsUse" Type="Boolean" />
  783. </EntityType>
  784. <EntityType Name="FmsConstruction">
  785. <Key>
  786. <PropertyRef Name="SiteId" />
  787. <PropertyRef Name="ConstructionId" />
  788. </Key>
  789. <Property Name="SiteId" Type="Int32" Nullable="false" />
  790. <Property Name="ConstructionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  791. <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  792. <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
  793. <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
  794. <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
  795. <Property Name="PartnerId" Type="Int32" Nullable="false" />
  796. <Property Name="ConstructLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  797. <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  798. <Property Name="CommitmentMan" Type="Int16" />
  799. <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  800. <Property Name="WeldWorkStartTime" Type="DateTime" Precision="3" />
  801. <Property Name="WeldWorkEndTime" Type="DateTime" Precision="3" />
  802. <Property Name="GasWorkStartTime" Type="DateTime" Precision="3" />
  803. <Property Name="GasWorkEndTime" Type="DateTime" Precision="3" />
  804. <Property Name="PaintWorkStartTime" Type="DateTime" Precision="3" />
  805. <Property Name="PaintWorkEndTime" Type="DateTime" Precision="3" />
  806. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  807. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  808. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  809. <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
  810. <Property Name="ConstructionDetail" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  811. <Property Name="InOutStockName" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  812. <Property Name="FileId1" Type="Int32" />
  813. <Property Name="FileId2" Type="Int32" />
  814. <Property Name="FileId3" Type="Int32" />
  815. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="FmsConstruction" ToRole="CmFile" />
  816. <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="FmsConstruction" ToRole="CmFile" />
  817. <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="FmsConstruction" ToRole="CmFile" />
  818. <NavigationProperty Name="FmsConstructionCodeProgress" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstruction" ToRole="FmsConstructionCodeProgress" />
  819. <NavigationProperty Name="FmsConstructionCodeType" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstruction" ToRole="FmsConstructionCodeType" />
  820. <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstruction" ToRole="FmsConstructionEstimation" />
  821. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="FmsConstruction" ToRole="CmPartner" />
  822. </EntityType>
  823. <EntityType Name="FmsConstructionCodeProgress">
  824. <Key>
  825. <PropertyRef Name="ProgressId" />
  826. </Key>
  827. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  828. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  829. <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  830. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstructionCodeProgress" ToRole="FmsConstruction" />
  831. </EntityType>
  832. <EntityType Name="FmsConstructionCodeType">
  833. <Key>
  834. <PropertyRef Name="SiteId" />
  835. <PropertyRef Name="ConstructionTypeId" />
  836. </Key>
  837. <Property Name="SiteId" Type="Int32" Nullable="false" />
  838. <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
  839. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  840. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  841. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstructionCodeType" ToRole="FmsConstruction" />
  842. </EntityType>
  843. <EntityType Name="FmsConstructionEstimation">
  844. <Key>
  845. <PropertyRef Name="SiteId" />
  846. <PropertyRef Name="ConstructionId" />
  847. </Key>
  848. <Property Name="SiteId" Type="Int32" Nullable="false" />
  849. <Property Name="ConstructionId" Type="Int32" Nullable="false" />
  850. <Property Name="EstimateDate" Type="DateTime" Nullable="false" Precision="3" />
  851. <Property Name="EstimateUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  852. <Property Name="Safety01_CleanUp" Type="Boolean" />
  853. <Property Name="Safety02_PersonalProtection" Type="Boolean" />
  854. <Property Name="Safety03_FireExtinguisher" Type="Boolean" />
  855. <Property Name="Safety04_HighPlaceWork" Type="Boolean" />
  856. <Property Name="Safety05_Weld" Type="Boolean" />
  857. <Property Name="Safety06_SurroundingCleanUp" Type="Boolean" />
  858. <Property Name="Safety07_SurroundingHealthy" Type="Boolean" />
  859. <Property Name="Safety08_Noise" Type="Boolean" />
  860. <Property Name="Safety09_FacilityProtection" Type="Boolean" />
  861. <Property Name="Safety10_Waste" Type="Boolean" />
  862. <Property Name="Safety11_Execution" Type="Boolean" />
  863. <Property Name="Safety12_Announcement" Type="Boolean" />
  864. <Property Name="Ability01_Compliance" Type="Boolean" />
  865. <Property Name="Ability02_Fault" Type="Boolean" />
  866. <Property Name="Ability03_SkillLevel" Type="Boolean" />
  867. <Property Name="Ability04_ProcessManagement" Type="Boolean" />
  868. <Property Name="Ability05_Collaboration" Type="Boolean" />
  869. <Property Name="Service01_Compliance" Type="Boolean" />
  870. <Property Name="Service02_SkillLevel" Type="Boolean" />
  871. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  872. <Property Name="TotalEstimateScore" Type="Double" />
  873. <Property Name="SafetyScore" Type="Double" />
  874. <Property Name="AbilityScore" Type="Double" />
  875. <Property Name="ServiceScore" Type="Double" />
  876. <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="FmsConstructionEstimation" ToRole="CmUser" />
  877. <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstructionEstimation" ToRole="FmsConstruction" />
  878. </EntityType>
  879. <EntityType Name="FmsContractClass">
  880. <Key>
  881. <PropertyRef Name="SiteId" />
  882. <PropertyRef Name="ContractClassId" />
  883. </Key>
  884. <Property Name="SiteId" Type="Int32" Nullable="false" />
  885. <Property Name="ContractClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  886. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  887. <Property Name="IsUse" Type="Boolean" />
  888. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContractClass" ToRole="FmsContract" />
  889. </EntityType>
  890. <EntityType Name="FmsContractMethod">
  891. <Key>
  892. <PropertyRef Name="SiteId" />
  893. <PropertyRef Name="ContractMethodId" />
  894. </Key>
  895. <Property Name="SiteId" Type="Int32" Nullable="false" />
  896. <Property Name="ContractMethodId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  897. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  898. <Property Name="IsUse" Type="Boolean" />
  899. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContractMethod" ToRole="FmsContract" />
  900. </EntityType>
  901. <EntityType Name="FmsContractType">
  902. <Key>
  903. <PropertyRef Name="SiteId" />
  904. <PropertyRef Name="ContractTypeId" />
  905. </Key>
  906. <Property Name="SiteId" Type="Int32" Nullable="false" />
  907. <Property Name="ContractTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  908. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  909. <Property Name="IsUse" Type="Boolean" />
  910. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContractType" ToRole="FmsContract" />
  911. </EntityType>
  912. <EntityType Name="FmsDrawing">
  913. <Key>
  914. <PropertyRef Name="SiteId" />
  915. <PropertyRef Name="DrawingId" />
  916. </Key>
  917. <Property Name="SiteId" Type="Int32" Nullable="false" />
  918. <Property Name="DrawingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  919. <Property Name="DrawingNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  920. <Property Name="DrawingGroupId" Type="Int32" Nullable="false" />
  921. <Property Name="DrawingTypeId" Type="Int32" Nullable="false" />
  922. <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  923. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  924. <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawing" ToRole="FmsDrawingCodeGroup" />
  925. <NavigationProperty Name="FmsDrawingCodeType" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawing" ToRole="FmsDrawingCodeType" />
  926. <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawing" ToRole="FmsDrawingHistory" />
  927. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="FmsDrawing" ToRole="CmSite" />
  928. </EntityType>
  929. <EntityType Name="FmsDrawingCodeGroup">
  930. <Key>
  931. <PropertyRef Name="SiteId" />
  932. <PropertyRef Name="DrawingGroupId" />
  933. </Key>
  934. <Property Name="SiteId" Type="Int32" Nullable="false" />
  935. <Property Name="DrawingGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  936. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  937. <Property Name="IsUse" Type="Boolean" />
  938. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawingCodeGroup" ToRole="FmsDrawing" />
  939. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
  940. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
  941. </EntityType>
  942. <EntityType Name="FmsDrawingCodeType">
  943. <Key>
  944. <PropertyRef Name="SiteId" />
  945. <PropertyRef Name="DrawingTypeId" />
  946. </Key>
  947. <Property Name="SiteId" Type="Int32" Nullable="false" />
  948. <Property Name="DrawingTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  949. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  950. <Property Name="IsUse" Type="Boolean" />
  951. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawingCodeType" ToRole="FmsDrawing" />
  952. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
  953. <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
  954. </EntityType>
  955. <EntityType Name="FmsDrawingHistory">
  956. <Key>
  957. <PropertyRef Name="SiteId" />
  958. <PropertyRef Name="DrawingId" />
  959. <PropertyRef Name="HistoryId" />
  960. </Key>
  961. <Property Name="SiteId" Type="Int32" Nullable="false" />
  962. <Property Name="DrawingId" Type="Int32" Nullable="false" />
  963. <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  964. <Property Name="RevisionNo" Type="Int32" />
  965. <Property Name="FileId" Type="Int32" />
  966. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  967. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  968. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  969. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="FmsDrawingHistory" ToRole="CmFile" />
  970. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="FmsDrawingHistory" ToRole="CmUser" />
  971. <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawingHistory" ToRole="FmsDrawing" />
  972. </EntityType>
  973. <EntityType Name="FmsEquipmentCodeStateType">
  974. <Key>
  975. <PropertyRef Name="EquipmentStateTypeId" />
  976. </Key>
  977. <Property Name="EquipmentStateTypeId" Type="Int16" Nullable="false" />
  978. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  979. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  980. <NavigationProperty Name="FmsEquipmentHistory" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentHistory" />
  981. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentRentInfo" />
  982. </EntityType>
  983. <EntityType Name="FmsEquipmentCodeType">
  984. <Key>
  985. <PropertyRef Name="SiteId" />
  986. <PropertyRef Name="EquipmentTypeId" />
  987. </Key>
  988. <Property Name="SiteId" Type="Int32" Nullable="false" />
  989. <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  990. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  991. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  992. <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  993. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipmentCodeType" ToRole="FmsEquipment" />
  994. </EntityType>
  995. <EntityType Name="FmsEquipmentHistory">
  996. <Key>
  997. <PropertyRef Name="SiteId" />
  998. <PropertyRef Name="EquipmentHistoryId" />
  999. <PropertyRef Name="EquipmentId" />
  1000. </Key>
  1001. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1002. <Property Name="EquipmentHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1003. <Property Name="EquipmentId" Type="Int32" Nullable="false" />
  1004. <Property Name="TotalStockCount" Type="Int32" />
  1005. <Property Name="CurrentStockCount" Type="Int32" />
  1006. <Property Name="RentCount" Type="Int32" />
  1007. <Property Name="CurrentRentCount" Type="Int32" />
  1008. <Property Name="ReturnCount" Type="Int32" />
  1009. <Property Name="LossCount" Type="Int32" />
  1010. <Property Name="StoredCount" Type="Int32" />
  1011. <Property Name="EquipmentRentId" Type="Int32" />
  1012. <Property Name="EquipmentStateTypeId" Type="Int16" />
  1013. <Property Name="AddDate" Type="DateTime" Precision="3" />
  1014. <Property Name="UpdateDate" Type="DateTime" Precision="3" />
  1015. <Property Name="IsReturned" Type="Boolean" />
  1016. <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentCodeStateType" />
  1017. <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentRentInfo" />
  1018. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipmentHistory" ToRole="FmsEquipment" />
  1019. </EntityType>
  1020. <EntityType Name="FmsFacilityCheckItem">
  1021. <Key>
  1022. <PropertyRef Name="SiteId" />
  1023. <PropertyRef Name="FacilityCode" />
  1024. <PropertyRef Name="CheckItemId" />
  1025. </Key>
  1026. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1027. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1028. <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1029. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  1030. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  1031. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  1032. <Property Name="IsYesNoResult" Type="Boolean" Nullable="false" />
  1033. <Property Name="IsUse" Type="Boolean" />
  1034. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeCycleUnit" />
  1035. <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeType" />
  1036. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkResultCheckItem" />
  1037. </EntityType>
  1038. <EntityType Name="FmsFacilityCodeClass">
  1039. <Key>
  1040. <PropertyRef Name="SiteId" />
  1041. <PropertyRef Name="FacilityClassId" />
  1042. </Key>
  1043. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1044. <Property Name="FacilityClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1045. <Property Name="ParentFacilityClassId" Type="Int32" />
  1046. <Property Name="Depth" Type="Int32" Nullable="false" />
  1047. <Property Name="Name" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
  1048. <Property Name="Abbreviation" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  1049. <Property Name="IsUse" Type="Boolean" />
  1050. <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass" ToRole="FmsFacilityCodeClass1" />
  1051. <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass1" ToRole="FmsFacilityCodeClass" />
  1052. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="FmsFacilityCodeClass" ToRole="CmSite" />
  1053. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  1054. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  1055. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
  1056. </EntityType>
  1057. <EntityType Name="FmsFacilityManual">
  1058. <Key>
  1059. <PropertyRef Name="SiteId" />
  1060. <PropertyRef Name="FacilityCode" />
  1061. <PropertyRef Name="ManualId" />
  1062. </Key>
  1063. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1064. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1065. <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1066. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1067. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1068. <Property Name="Description" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1069. <Property Name="Keyword" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1070. <Property Name="FileId" Type="Int32" />
  1071. <Property Name="IsUse" Type="Boolean" />
  1072. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="FmsFacilityManual" ToRole="CmBusinessField" />
  1073. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="FmsFacilityManual" ToRole="CmFacility" />
  1074. </EntityType>
  1075. <EntityType Name="FmsFacilityOperationItem">
  1076. <Key>
  1077. <PropertyRef Name="SiteId" />
  1078. <PropertyRef Name="ItemId" />
  1079. </Key>
  1080. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1081. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1082. <Property Name="ItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1083. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1084. <Property Name="ResultUnit" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
  1085. <Property Name="PointId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  1086. <Property Name="SystemId" Type="Int32" />
  1087. <Property Name="EnergyCode" Type="Boolean" />
  1088. <Property Name="IsUse" Type="Boolean" />
  1089. <Property Name="SortOrderNo" Type="Int32" />
  1090. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  1091. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1092. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  1093. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1094. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="FmsFacilityOperationItem" ToRole="CmFacility" />
  1095. </EntityType>
  1096. <EntityType Name="FmsLicense">
  1097. <Key>
  1098. <PropertyRef Name="SiteId" />
  1099. <PropertyRef Name="LicenseId" />
  1100. </Key>
  1101. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1102. <Property Name="LicenseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1103. <Property Name="Name" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
  1104. <Property Name="IssuingOffice" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
  1105. <Property Name="BusinessFieldId" Type="Int32" />
  1106. <Property Name="EducationalInstitute" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  1107. <Property Name="Note" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  1108. <Property Name="IsUse" Type="Boolean" />
  1109. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="FmsLicense" ToRole="CmBusinessField" />
  1110. <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="FmsLicense" ToRole="CmUserToLicense" />
  1111. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="FmsLicense" ToRole="CmSite" />
  1112. </EntityType>
  1113. <EntityType Name="FmsManual">
  1114. <Key>
  1115. <PropertyRef Name="SiteId" />
  1116. <PropertyRef Name="ManualId" />
  1117. </Key>
  1118. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1119. <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1120. <Property Name="ManualNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  1121. <Property Name="ManualTypeId" Type="Int32" Nullable="false" />
  1122. <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  1123. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  1124. <NavigationProperty Name="FmsManualType" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManual" ToRole="FmsManualType" />
  1125. <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManual" ToRole="FmsManualHistory" />
  1126. </EntityType>
  1127. <EntityType Name="FmsManualHistory">
  1128. <Key>
  1129. <PropertyRef Name="SiteId" />
  1130. <PropertyRef Name="ManualId" />
  1131. <PropertyRef Name="HistoryId" />
  1132. </Key>
  1133. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1134. <Property Name="ManualId" Type="Int32" Nullable="false" />
  1135. <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1136. <Property Name="RevisionNo" Type="Int32" />
  1137. <Property Name="FileId" Type="Int32" />
  1138. <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  1139. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  1140. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1141. <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="FmsManualHistory" ToRole="CmFile" />
  1142. <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="FmsManualHistory" ToRole="CmUser" />
  1143. <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManualHistory" ToRole="FmsManual" />
  1144. </EntityType>
  1145. <EntityType Name="FmsManualType">
  1146. <Key>
  1147. <PropertyRef Name="SiteId" />
  1148. <PropertyRef Name="ManualTypeId" />
  1149. </Key>
  1150. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1151. <Property Name="ManualTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1152. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  1153. <Property Name="IsUse" Type="Boolean" />
  1154. <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManualType" ToRole="FmsManual" />
  1155. </EntityType>
  1156. <EntityType Name="FmsMaterialCarriedForward">
  1157. <Key>
  1158. <PropertyRef Name="SiteId" />
  1159. <PropertyRef Name="ClosedDate" />
  1160. <PropertyRef Name="BusinessFieldId" />
  1161. <PropertyRef Name="WarehouseId" />
  1162. <PropertyRef Name="MaterialId" />
  1163. </Key>
  1164. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1165. <Property Name="ClosedDate" Type="DateTime" Nullable="false" Precision="3" />
  1166. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1167. <Property Name="WarehouseId" Type="Int32" Nullable="false" />
  1168. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  1169. <Property Name="StockCount" Type="Int32" Nullable="false" />
  1170. <Property Name="StockTotalCost" Type="Int32" Nullable="false" />
  1171. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="FmsMaterialCarriedForward" ToRole="CmBusinessField" />
  1172. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="FmsMaterialCarriedForward" ToRole="CmSite" />
  1173. </EntityType>
  1174. <EntityType Name="FmsMaterialCodeAdjustmentType">
  1175. <Key>
  1176. <PropertyRef Name="AdjustmentTypeId" />
  1177. </Key>
  1178. <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
  1179. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1180. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1181. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialCodeAdjustmentType" ToRole="FmsMaterialRelease" />
  1182. </EntityType>
  1183. <EntityType Name="FmsMaterialCodeClass">
  1184. <Key>
  1185. <PropertyRef Name="SiteId" />
  1186. <PropertyRef Name="MaterialClassId" />
  1187. </Key>
  1188. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1189. <Property Name="MaterialClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1190. <Property Name="ParentMaterialClassId" Type="Int32" />
  1191. <Property Name="Depth" Type="Int32" Nullable="false" />
  1192. <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
  1193. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  1194. <Property Name="IsUse" Type="Boolean" />
  1195. <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterialCodeClass1" />
  1196. <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass1" ToRole="FmsMaterialCodeClass" />
  1197. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  1198. <NavigationProperty Name="FmsMaterial1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  1199. <NavigationProperty Name="FmsMaterial2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
  1200. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="FmsMaterialCodeClass" ToRole="CmSite" />
  1201. </EntityType>
  1202. <EntityType Name="FmsMaterialCodeLocation">
  1203. <Key>
  1204. <PropertyRef Name="SiteId" />
  1205. <PropertyRef Name="LocationId" />
  1206. </Key>
  1207. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1208. <Property Name="LocationId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1209. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1210. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  1211. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  1212. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="FmsMaterialCodeLocation" ToRole="CmBusinessField" />
  1213. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterialCodeLocation" ToRole="FmsMaterial" />
  1214. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="FmsMaterialCodeLocation" ToRole="CmSite" />
  1215. </EntityType>
  1216. <EntityType Name="FmsMaterialCodeProgress">
  1217. <Key>
  1218. <PropertyRef Name="ProgressId" />
  1219. </Key>
  1220. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  1221. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1222. <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1223. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialCodeProgress" ToRole="FmsMaterialPurchaseRequest" />
  1224. </EntityType>
  1225. <EntityType Name="FmsMaterialCodePurchaseType">
  1226. <Key>
  1227. <PropertyRef Name="PurchaseTypeId" />
  1228. </Key>
  1229. <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1230. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1231. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1232. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialCodePurchaseType" ToRole="FmsMaterialPurchaseRequest" />
  1233. </EntityType>
  1234. <EntityType Name="FmsMaterialCodeReleaseType">
  1235. <Key>
  1236. <PropertyRef Name="ReleaseTypeId" />
  1237. </Key>
  1238. <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
  1239. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1240. <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  1241. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialCodeReleaseType" ToRole="FmsMaterialRelease" />
  1242. </EntityType>
  1243. <EntityType Name="FmsMaterialCodeType">
  1244. <Key>
  1245. <PropertyRef Name="SiteId" />
  1246. <PropertyRef Name="MaterialTypeId" />
  1247. </Key>
  1248. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1249. <Property Name="MaterialTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1250. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1251. <Property Name="Nickname" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1252. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  1253. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterialCodeType" ToRole="FmsMaterial" />
  1254. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="FmsMaterialCodeType" ToRole="CmSite" />
  1255. </EntityType>
  1256. <EntityType Name="FmsMaterialPurchaseOrder">
  1257. <Key>
  1258. <PropertyRef Name="SiteId" />
  1259. <PropertyRef Name="PurchaseOrderId" />
  1260. </Key>
  1261. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1262. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1263. <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1264. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
  1265. <Property Name="TradeCompanyId" Type="Int32" />
  1266. <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
  1267. <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1268. <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  1269. <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  1270. <Property Name="StoredDueDate" Type="DateTime" Precision="3" />
  1271. <Property Name="FileId" Type="Int32" />
  1272. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="FmsMaterialPurchaseOrder" ToRole="CmBusinessField" />
  1273. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="FmsMaterialPurchaseOrder" ToRole="CmFile" />
  1274. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="FmsMaterialPurchaseOrder" ToRole="CmUser" />
  1275. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialTradeCompany" />
  1276. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseRequest" />
  1277. <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseOrderMaterial" />
  1278. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialStored" />
  1279. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="FmsMaterialPurchaseOrder" ToRole="CmSite" />
  1280. </EntityType>
  1281. <EntityType Name="FmsMaterialPurchaseOrderMaterial">
  1282. <Key>
  1283. <PropertyRef Name="SiteId" />
  1284. <PropertyRef Name="PurchaseOrderId" />
  1285. <PropertyRef Name="MaterialId" />
  1286. </Key>
  1287. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1288. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1289. <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" />
  1290. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  1291. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  1292. <Property Name="UnitCost" Type="Int32" Nullable="false" />
  1293. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterialPurchaseOrder" />
  1294. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterial" />
  1295. </EntityType>
  1296. <EntityType Name="FmsMaterialPurchaseRequest">
  1297. <Key>
  1298. <PropertyRef Name="SiteId" />
  1299. <PropertyRef Name="PurchaseRequestId" />
  1300. </Key>
  1301. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1302. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1303. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1304. <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" />
  1305. <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
  1306. <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1307. <Property Name="PurchaseHopeDate" Type="DateTime" Precision="3" />
  1308. <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
  1309. <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" Nullable="false" />
  1310. <Property Name="ProgressId" Type="Int16" Nullable="false" />
  1311. <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
  1312. <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1313. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="FmsMaterialPurchaseRequest" ToRole="CmBusinessField" />
  1314. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
  1315. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
  1316. <NavigationProperty Name="FmsMaterialCodeProgress" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodeProgress" />
  1317. <NavigationProperty Name="FmsMaterialCodePurchaseType" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodePurchaseType" />
  1318. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseOrder" />
  1319. <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseRequestMaterial" />
  1320. <Property Name="bSameOrder" Type="Boolean" />
  1321. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="FmsMaterialPurchaseRequest" ToRole="CmSite" />
  1322. </EntityType>
  1323. <EntityType Name="FmsMaterialPurchaseRequestMaterial">
  1324. <Key>
  1325. <PropertyRef Name="SiteId" />
  1326. <PropertyRef Name="PurchaseRequestId" />
  1327. <PropertyRef Name="MaterialId" />
  1328. </Key>
  1329. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1330. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1331. <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
  1332. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  1333. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  1334. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterialPurchaseRequest" />
  1335. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterial" />
  1336. </EntityType>
  1337. <EntityType Name="FmsMaterialStored">
  1338. <Key>
  1339. <PropertyRef Name="SiteId" />
  1340. <PropertyRef Name="MaterialStoredId" />
  1341. </Key>
  1342. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1343. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1344. <Property Name="StoredDate" Type="DateTime" Nullable="false" Precision="3" />
  1345. <Property Name="MaterialStoredId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1346. <Property Name="PurchaseOrderId" Type="Int32" />
  1347. <Property Name="WarehouseId" Type="Int32" Nullable="false" />
  1348. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  1349. <Property Name="StoredCount" Type="Int32" Nullable="false" />
  1350. <Property Name="RemainStoredCount" Type="Int32" Nullable="false" />
  1351. <Property Name="UnitCost" Type="Int32" Nullable="false" />
  1352. <Property Name="StockCount" Type="Int32" Nullable="false" />
  1353. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1354. <Property Name="StoredUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1355. <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
  1356. <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1357. <Property Name="IsApproval" Type="Boolean" Nullable="false" />
  1358. <Property Name="LocationInWarehouse" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1359. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="FmsMaterialStored" ToRole="CmBusinessField" />
  1360. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
  1361. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
  1362. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialStored" ToRole="FmsMaterialPurchaseOrder" />
  1363. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialStored" ToRole="FmsMaterialWarehouse" />
  1364. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterialStored" ToRole="FmsMaterial" />
  1365. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="FmsMaterialStored" ToRole="CmSite" />
  1366. </EntityType>
  1367. <EntityType Name="FmsMaterialTradeCompany">
  1368. <Key>
  1369. <PropertyRef Name="SiteId" />
  1370. <PropertyRef Name="TradeCompanyId" />
  1371. </Key>
  1372. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1373. <Property Name="TradeCompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1374. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  1375. <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1376. <Property Name="RepresentativeName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1377. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  1378. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  1379. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  1380. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  1381. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  1382. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  1383. <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1384. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  1385. <Property Name="HomepageUri" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  1386. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1387. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  1388. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterialPurchaseOrder" />
  1389. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterial" />
  1390. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="FmsMaterialTradeCompany" ToRole="CmSite" />
  1391. </EntityType>
  1392. <EntityType Name="FmsMaterialWarehouse">
  1393. <Key>
  1394. <PropertyRef Name="SiteId" />
  1395. <PropertyRef Name="WarehouseId" />
  1396. </Key>
  1397. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1398. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1399. <Property Name="WarehouseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1400. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
  1401. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  1402. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="FmsMaterialWarehouse" ToRole="CmBusinessField" />
  1403. <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterialStored" />
  1404. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterial" />
  1405. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="FmsMaterialWarehouse" ToRole="CmSite" />
  1406. <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsEquipment" />
  1407. </EntityType>
  1408. <EntityType Name="FmsPaymentType">
  1409. <Key>
  1410. <PropertyRef Name="SiteId" />
  1411. <PropertyRef Name="PaymentTypeId" />
  1412. </Key>
  1413. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1414. <Property Name="PaymentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1415. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  1416. <Property Name="IsUse" Type="Boolean" />
  1417. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsPaymentType" ToRole="FmsContract" />
  1418. </EntityType>
  1419. <EntityType Name="FmsWorkCodeCauseClass">
  1420. <Key>
  1421. <PropertyRef Name="SiteId" />
  1422. <PropertyRef Name="CauseClassId" />
  1423. </Key>
  1424. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1425. <Property Name="CauseClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1426. <Property Name="ParentId" Type="Int32" Nullable="false" />
  1427. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  1428. <Property Name="IsUse" Type="Boolean" />
  1429. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkCodeCauseClass" ToRole="FmsWorkResult" />
  1430. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="FmsWorkCodeCauseClass" ToRole="CmSite" />
  1431. </EntityType>
  1432. <EntityType Name="FmsWorkCodeCycleUnit">
  1433. <Key>
  1434. <PropertyRef Name="SiteId" />
  1435. <PropertyRef Name="CycleUnitId" />
  1436. </Key>
  1437. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1438. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  1439. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1440. <Property Name="Description" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  1441. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsFacilityCheckItem" />
  1442. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsWorkSchedule" />
  1443. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="FmsWorkCodeCycleUnit" ToRole="CmSite" />
  1444. </EntityType>
  1445. <EntityType Name="FmsWorkCodeEmergency">
  1446. <Key>
  1447. <PropertyRef Name="SiteId" />
  1448. <PropertyRef Name="EmergencyId" />
  1449. </Key>
  1450. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1451. <Property Name="EmergencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1452. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  1453. <Property Name="IsUse" Type="Boolean" />
  1454. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkCodeEmergency" ToRole="FmsWorkOrder" />
  1455. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="FmsWorkCodeEmergency" ToRole="CmSite" />
  1456. </EntityType>
  1457. <EntityType Name="FmsWorkCodeHolidayWorkType">
  1458. <Key>
  1459. <PropertyRef Name="SiteId" />
  1460. <PropertyRef Name="HolidayWorkTypeId" />
  1461. </Key>
  1462. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1463. <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
  1464. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  1465. <Property Name="IsUse" Type="Boolean" />
  1466. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkCodeHolidayWorkType" ToRole="FmsWorkSchedule" />
  1467. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="FmsWorkCodeHolidayWorkType" ToRole="CmSite" />
  1468. </EntityType>
  1469. <EntityType Name="FmsWorkCodeLegalInspectionAgency">
  1470. <Key>
  1471. <PropertyRef Name="SiteId" />
  1472. <PropertyRef Name="InspectionAgencyId" />
  1473. </Key>
  1474. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1475. <Property Name="InspectionAgencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1476. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1477. <Property Name="IsUse" Type="Boolean" />
  1478. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="FmsWorkCodeLegalInspectionAgency" ToRole="CmSite" />
  1479. </EntityType>
  1480. <EntityType Name="FmsWorkCodeProgress">
  1481. <Key>
  1482. <PropertyRef Name="WorkProgressId" />
  1483. </Key>
  1484. <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
  1485. <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1486. <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  1487. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkCodeProgress" ToRole="FmsWorkRequest" />
  1488. </EntityType>
  1489. <EntityType Name="FmsWorkCodeType">
  1490. <Key>
  1491. <PropertyRef Name="WorkTypeId" />
  1492. </Key>
  1493. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  1494. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  1495. <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  1496. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsFacilityCheckItem" />
  1497. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkRequest" />
  1498. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkSchedule" />
  1499. </EntityType>
  1500. <EntityType Name="FmsWorkOrder">
  1501. <Key>
  1502. <PropertyRef Name="SiteId" />
  1503. <PropertyRef Name="WorkRequestId" />
  1504. </Key>
  1505. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1506. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1507. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1508. <Property Name="EmergencyId" Type="Int32" />
  1509. <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1510. <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
  1511. <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
  1512. <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  1513. <Property Name="Content" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
  1514. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="FmsWorkOrder" ToRole="CmBusinessField" />
  1515. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="FmsWorkOrder" ToRole="CmUser" />
  1516. <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkOrder" ToRole="FmsWorkCodeEmergency" />
  1517. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkOrder" ToRole="FmsWorkRequest" />
  1518. <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkOrderToFacility" />
  1519. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkResult" />
  1520. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="FmsWorkOrder" ToRole="CmSite" />
  1521. </EntityType>
  1522. <EntityType Name="FmsWorkOrderToFacility">
  1523. <Key>
  1524. <PropertyRef Name="SiteId" />
  1525. <PropertyRef Name="WorkRequestId" />
  1526. <PropertyRef Name="FacilityCode" />
  1527. </Key>
  1528. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1529. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1530. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1531. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrderToFacility" ToRole="FmsWorkOrder" />
  1532. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="FmsWorkOrderToFacility" ToRole="CmFacility" />
  1533. </EntityType>
  1534. <EntityType Name="FmsWorkRequest">
  1535. <Key>
  1536. <PropertyRef Name="SiteId" />
  1537. <PropertyRef Name="WorkRequestId" />
  1538. </Key>
  1539. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1540. <Property Name="WorkRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1541. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  1542. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  1543. <Property Name="WorkScheduleId" Type="Int32" />
  1544. <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
  1545. <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
  1546. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1547. <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1548. <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
  1549. <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
  1550. <Property Name="RejectUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1551. <Property Name="RejectDate" Type="DateTime" Precision="3" />
  1552. <Property Name="RejectReason" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  1553. <Property Name="InspectionAgencyId" Type="Int32" />
  1554. <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="FmsWorkRequest" ToRole="CmBusinessField" />
  1555. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
  1556. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
  1557. <NavigationProperty Name="FmsWorkCodeProgress" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeProgress" />
  1558. <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeType" />
  1559. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkOrder" />
  1560. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkRequest" ToRole="FmsWorkSchedule" />
  1561. <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkRequestToFacility" />
  1562. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkResult" />
  1563. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="FmsWorkRequest" ToRole="CmSite" />
  1564. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="FmsWorkRequest" ToRole="CmPartner" />
  1565. </EntityType>
  1566. <EntityType Name="FmsWorkRequestToFacility">
  1567. <Key>
  1568. <PropertyRef Name="SiteId" />
  1569. <PropertyRef Name="WorkRequestId" />
  1570. <PropertyRef Name="FacilityCode" />
  1571. </Key>
  1572. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1573. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1574. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1575. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequestToFacility" ToRole="FmsWorkRequest" />
  1576. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="FmsWorkRequestToFacility" ToRole="CmFacility" />
  1577. </EntityType>
  1578. <EntityType Name="FmsWorkResult">
  1579. <Key>
  1580. <PropertyRef Name="SiteId" />
  1581. <PropertyRef Name="WorkRequestId" />
  1582. </Key>
  1583. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1584. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1585. <Property Name="WorkerUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
  1586. <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
  1587. <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
  1588. <Property Name="CauseClassId" Type="Int32" />
  1589. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1590. <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
  1591. <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  1592. <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
  1593. <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
  1594. <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
  1595. <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkResult" ToRole="FmsWorkCodeCauseClass" />
  1596. <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkOrder" />
  1597. <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkResult" ToRole="FmsWorkRequest" />
  1598. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItem" />
  1599. <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultFile" />
  1600. <NavigationProperty Name="FmsWorkResultLaw" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultLaw" />
  1601. <NavigationProperty Name="FmsWorkResultToFacility" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkResultToFacility" />
  1602. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsMaterialRelease" />
  1603. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItemMaterial" />
  1604. <Property Name="ConfirmDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1605. </EntityType>
  1606. <EntityType Name="FmsWorkResultCheckItem">
  1607. <Key>
  1608. <PropertyRef Name="CheckItemId" />
  1609. </Key>
  1610. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1611. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1612. <Property Name="FacilityCode" Type="Int32" />
  1613. <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1614. <Property Name="BoolResult" Type="Boolean" />
  1615. <Property Name="TextResult" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  1616. <Property Name="CheckDate" Type="DateTime" Nullable="false" Precision="3" />
  1617. <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsFacilityCheckItem" />
  1618. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResult" />
  1619. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResultCheckItemMaterial" />
  1620. <Property Name="FileId1" Type="Int32" />
  1621. <Property Name="FileId2" Type="Int32" />
  1622. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
  1623. <NavigationProperty Name="CmFile1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
  1624. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="FmsWorkResultCheckItem" ToRole="CmFacility" />
  1625. </EntityType>
  1626. <EntityType Name="FmsWorkResultCheckItemMaterial">
  1627. <Key>
  1628. <PropertyRef Name="CheckItemMaterialId" />
  1629. </Key>
  1630. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1631. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1632. <Property Name="CheckItemId" Type="Int32" Nullable="false" />
  1633. <Property Name="CheckItemMaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1634. <Property Name="MaterialId" Type="Int32" Nullable="false" />
  1635. <Property Name="MaterialCount" Type="Int32" Nullable="false" />
  1636. <Property Name="MaterialCode" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  1637. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  1638. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResultCheckItem" />
  1639. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsMaterial" />
  1640. <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResult" />
  1641. </EntityType>
  1642. <EntityType Name="FmsWorkResultFile">
  1643. <Key>
  1644. <PropertyRef Name="SiteId" />
  1645. <PropertyRef Name="WorkRequestId" />
  1646. </Key>
  1647. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1648. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1649. <Property Name="FileId" Type="Int32" Nullable="false" />
  1650. <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="FmsWorkResultFile" ToRole="CmFile" />
  1651. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResultFile" ToRole="FmsWorkResult" />
  1652. </EntityType>
  1653. <EntityType Name="FmsWorkResultLaw">
  1654. <Key>
  1655. <PropertyRef Name="SiteId" />
  1656. <PropertyRef Name="WorkRequestId" />
  1657. </Key>
  1658. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1659. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1660. <Property Name="CertificationNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  1661. <Property Name="CheckCommission" Type="Decimal" Precision="10" Scale="0" />
  1662. <Property Name="CheckResult" Type="Boolean" />
  1663. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResultLaw" ToRole="FmsWorkResult" />
  1664. </EntityType>
  1665. <EntityType Name="FmsWorkResultToFacility">
  1666. <Key>
  1667. <PropertyRef Name="SiteId" />
  1668. <PropertyRef Name="WorkRequestId" />
  1669. <PropertyRef Name="FacilityCode" />
  1670. </Key>
  1671. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1672. <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
  1673. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1674. <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResultToFacility" ToRole="FmsWorkResult" />
  1675. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="FmsWorkResultToFacility" ToRole="CmFacility" />
  1676. </EntityType>
  1677. <EntityType Name="FmsWorkScheduleToFacility">
  1678. <Key>
  1679. <PropertyRef Name="SiteId" />
  1680. <PropertyRef Name="WorkScheduleId" />
  1681. <PropertyRef Name="FacilityCode" />
  1682. </Key>
  1683. <Property Name="SiteId" Type="Int32" Nullable="false" />
  1684. <Property Name="WorkScheduleId" Type="Int32" Nullable="false" />
  1685. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  1686. <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkScheduleToFacility" ToRole="FmsWorkSchedule" />
  1687. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="FmsWorkScheduleToFacility" ToRole="CmFacility" />
  1688. </EntityType>
  1689. <EntityType Name="sysdiagrams">
  1690. <Key>
  1691. <PropertyRef Name="diagram_id" />
  1692. </Key>
  1693. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  1694. <Property Name="principal_id" Type="Int32" Nullable="false" />
  1695. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  1696. <Property Name="version" Type="Int32" />
  1697. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  1698. </EntityType>
  1699. <Association Name="FK__BemsMonitoringPo__1372D2FE">
  1700. <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
  1701. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  1702. <ReferentialConstraint>
  1703. <Principal Role="BemsAnalysisType">
  1704. <PropertyRef Name="SiteId" />
  1705. <PropertyRef Name="AnalysisType" />
  1706. </Principal>
  1707. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  1708. <PropertyRef Name="SiteId" />
  1709. <PropertyRef Name="AnalysisType" />
  1710. </Dependent>
  1711. </ReferentialConstraint>
  1712. </Association>
  1713. <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
  1714. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1715. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  1716. <ReferentialConstraint>
  1717. <Principal Role="BemsFacilityType">
  1718. <PropertyRef Name="FacilityTypeId" />
  1719. </Principal>
  1720. <Dependent Role="BemsControlPointHistory">
  1721. <PropertyRef Name="FacilityTypeId" />
  1722. </Dependent>
  1723. </ReferentialConstraint>
  1724. </Association>
  1725. <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
  1726. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  1727. <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
  1728. <ReferentialConstraint>
  1729. <Principal Role="BemsMonitoringPoint">
  1730. <PropertyRef Name="SiteId" />
  1731. <PropertyRef Name="FacilityCode" />
  1732. <PropertyRef Name="PropertyId" />
  1733. </Principal>
  1734. <Dependent Role="BemsControlPointHistory">
  1735. <PropertyRef Name="SiteId" />
  1736. <PropertyRef Name="FacilityCode" />
  1737. <PropertyRef Name="PropertyId" />
  1738. </Dependent>
  1739. </ReferentialConstraint>
  1740. </Association>
  1741. <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
  1742. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1743. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  1744. <ReferentialConstraint>
  1745. <Principal Role="BemsFacilityType">
  1746. <PropertyRef Name="FacilityTypeId" />
  1747. </Principal>
  1748. <Dependent Role="BemsMonitoringPointBaseData">
  1749. <PropertyRef Name="FacilityTypeId" />
  1750. </Dependent>
  1751. </ReferentialConstraint>
  1752. </Association>
  1753. <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  1754. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1755. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  1756. <ReferentialConstraint>
  1757. <Principal Role="BemsFacilityType">
  1758. <PropertyRef Name="FacilityTypeId" />
  1759. </Principal>
  1760. <Dependent Role="BemsMonitoringPointHistory15min">
  1761. <PropertyRef Name="FacilityTypeId" />
  1762. </Dependent>
  1763. </ReferentialConstraint>
  1764. </Association>
  1765. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  1766. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1767. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  1768. <ReferentialConstraint>
  1769. <Principal Role="BemsFacilityType">
  1770. <PropertyRef Name="FacilityTypeId" />
  1771. </Principal>
  1772. <Dependent Role="BemsMonitoringPointHistoryDaily">
  1773. <PropertyRef Name="FacilityTypeId" />
  1774. </Dependent>
  1775. </ReferentialConstraint>
  1776. </Association>
  1777. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  1778. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1779. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  1780. <ReferentialConstraint>
  1781. <Principal Role="BemsFacilityType">
  1782. <PropertyRef Name="FacilityTypeId" />
  1783. </Principal>
  1784. <Dependent Role="BemsMonitoringPointHistoryHourly">
  1785. <PropertyRef Name="FacilityTypeId" />
  1786. </Dependent>
  1787. </ReferentialConstraint>
  1788. </Association>
  1789. <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  1790. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1791. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  1792. <ReferentialConstraint>
  1793. <Principal Role="BemsFacilityType">
  1794. <PropertyRef Name="FacilityTypeId" />
  1795. </Principal>
  1796. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  1797. <PropertyRef Name="FacilityTypeId" />
  1798. </Dependent>
  1799. </ReferentialConstraint>
  1800. </Association>
  1801. <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
  1802. <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
  1803. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  1804. <ReferentialConstraint>
  1805. <Principal Role="BemsFacilityType">
  1806. <PropertyRef Name="FacilityTypeId" />
  1807. </Principal>
  1808. <Dependent Role="BemsMonitoringPoint">
  1809. <PropertyRef Name="FacilityTypeId" />
  1810. </Dependent>
  1811. </ReferentialConstraint>
  1812. </Association>
  1813. <Association Name="FK__BemsFormula__BemsFormulaBase">
  1814. <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
  1815. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
  1816. <ReferentialConstraint>
  1817. <Principal Role="BemsFormulaBase">
  1818. <PropertyRef Name="FacilityTypeId" />
  1819. <PropertyRef Name="FormulaId" />
  1820. </Principal>
  1821. <Dependent Role="BemsFormula">
  1822. <PropertyRef Name="FacilityTypeId" />
  1823. <PropertyRef Name="FormulaId" />
  1824. </Dependent>
  1825. </ReferentialConstraint>
  1826. </Association>
  1827. <Association Name="FK__BemsFormulaParameter__BemsFormula">
  1828. <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
  1829. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  1830. <ReferentialConstraint>
  1831. <Principal Role="BemsFormula">
  1832. <PropertyRef Name="SiteId" />
  1833. <PropertyRef Name="FacilityTypeId" />
  1834. <PropertyRef Name="FacilityCode" />
  1835. <PropertyRef Name="FormulaId" />
  1836. </Principal>
  1837. <Dependent Role="BemsFormulaParameter">
  1838. <PropertyRef Name="SiteId" />
  1839. <PropertyRef Name="FacilityTypeId" />
  1840. <PropertyRef Name="FacilityCode" />
  1841. <PropertyRef Name="FormulaId" />
  1842. </Dependent>
  1843. </ReferentialConstraint>
  1844. </Association>
  1845. <Association Name="FK__BemsFormulaParameter__BemsMonitoringPoint">
  1846. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  1847. <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
  1848. <ReferentialConstraint>
  1849. <Principal Role="BemsMonitoringPoint">
  1850. <PropertyRef Name="SiteId" />
  1851. <PropertyRef Name="FacilityCode" />
  1852. <PropertyRef Name="PropertyId" />
  1853. </Principal>
  1854. <Dependent Role="BemsFormulaParameter">
  1855. <PropertyRef Name="SiteId" />
  1856. <PropertyRef Name="ParameterFacilityCode" />
  1857. <PropertyRef Name="ParameterPropertyId" />
  1858. </Dependent>
  1859. </ReferentialConstraint>
  1860. </Association>
  1861. <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
  1862. <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
  1863. <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
  1864. <ReferentialConstraint>
  1865. <Principal Role="BemsFormulaTable">
  1866. <PropertyRef Name="TableId" />
  1867. </Principal>
  1868. <Dependent Role="BemsFormulaTableValue">
  1869. <PropertyRef Name="TableId" />
  1870. </Dependent>
  1871. </ReferentialConstraint>
  1872. </Association>
  1873. <Association Name="FK__BemsMonitoringPo__155B1B70">
  1874. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  1875. <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
  1876. <ReferentialConstraint>
  1877. <Principal Role="BemsMonitoringPoint">
  1878. <PropertyRef Name="SiteId" />
  1879. <PropertyRef Name="FacilityCode" />
  1880. <PropertyRef Name="PropertyId" />
  1881. </Principal>
  1882. <Dependent Role="BemsMonitoringPointToAnlaysisType">
  1883. <PropertyRef Name="SiteId" />
  1884. <PropertyRef Name="FacilityCode" />
  1885. <PropertyRef Name="PropertyId" />
  1886. </Dependent>
  1887. </ReferentialConstraint>
  1888. </Association>
  1889. <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
  1890. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  1891. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  1892. <ReferentialConstraint>
  1893. <Principal Role="BemsServiceType">
  1894. <PropertyRef Name="ServiceTypeId" />
  1895. </Principal>
  1896. <Dependent Role="BemsMonitoringPoint">
  1897. <PropertyRef Name="ServiceTypeId" />
  1898. </Dependent>
  1899. </ReferentialConstraint>
  1900. </Association>
  1901. <Association Name="FK__BemsMonitoringPoint__CmBuilding">
  1902. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
  1903. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  1904. <ReferentialConstraint>
  1905. <Principal Role="CmBuilding">
  1906. <PropertyRef Name="SiteId" />
  1907. <PropertyRef Name="BuildingId" />
  1908. </Principal>
  1909. <Dependent Role="BemsMonitoringPoint">
  1910. <PropertyRef Name="SiteId" />
  1911. <PropertyRef Name="BuildingId" />
  1912. </Dependent>
  1913. </ReferentialConstraint>
  1914. </Association>
  1915. <Association Name="FK__BemsMonitoringPoint__CmFloor">
  1916. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
  1917. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  1918. <ReferentialConstraint>
  1919. <Principal Role="CmFloor">
  1920. <PropertyRef Name="SiteId" />
  1921. <PropertyRef Name="BuildingId" />
  1922. <PropertyRef Name="FloorId" />
  1923. </Principal>
  1924. <Dependent Role="BemsMonitoringPoint">
  1925. <PropertyRef Name="SiteId" />
  1926. <PropertyRef Name="BuildingId" />
  1927. <PropertyRef Name="FloorId" />
  1928. </Dependent>
  1929. </ReferentialConstraint>
  1930. </Association>
  1931. <Association Name="FK__BemsMonitoringPoint__CmZone">
  1932. <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
  1933. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
  1934. <ReferentialConstraint>
  1935. <Principal Role="CmZone">
  1936. <PropertyRef Name="SiteId" />
  1937. <PropertyRef Name="BuildingId" />
  1938. <PropertyRef Name="FloorId" />
  1939. <PropertyRef Name="ZoneId" />
  1940. </Principal>
  1941. <Dependent Role="BemsMonitoringPoint">
  1942. <PropertyRef Name="SiteId" />
  1943. <PropertyRef Name="BuildingId" />
  1944. <PropertyRef Name="FloorId" />
  1945. <PropertyRef Name="ZoneId" />
  1946. </Dependent>
  1947. </ReferentialConstraint>
  1948. </Association>
  1949. <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  1950. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  1951. <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
  1952. <ReferentialConstraint>
  1953. <Principal Role="BemsMonitoringPoint">
  1954. <PropertyRef Name="SiteId" />
  1955. <PropertyRef Name="FacilityCode" />
  1956. <PropertyRef Name="PropertyId" />
  1957. </Principal>
  1958. <Dependent Role="BemsMonitoringPointHistory15min">
  1959. <PropertyRef Name="SiteId" />
  1960. <PropertyRef Name="FacilityCode" />
  1961. <PropertyRef Name="PropertyId" />
  1962. </Dependent>
  1963. </ReferentialConstraint>
  1964. </Association>
  1965. <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  1966. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  1967. <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
  1968. <ReferentialConstraint>
  1969. <Principal Role="BemsMonitoringPoint">
  1970. <PropertyRef Name="SiteId" />
  1971. <PropertyRef Name="FacilityCode" />
  1972. <PropertyRef Name="PropertyId" />
  1973. </Principal>
  1974. <Dependent Role="BemsMonitoringPointHistoryDaily">
  1975. <PropertyRef Name="SiteId" />
  1976. <PropertyRef Name="FacilityCode" />
  1977. <PropertyRef Name="PropertyId" />
  1978. </Dependent>
  1979. </ReferentialConstraint>
  1980. </Association>
  1981. <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  1982. <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
  1983. <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
  1984. <ReferentialConstraint>
  1985. <Principal Role="BemsMonitoringPoint">
  1986. <PropertyRef Name="SiteId" />
  1987. <PropertyRef Name="FacilityCode" />
  1988. <PropertyRef Name="PropertyId" />
  1989. </Principal>
  1990. <Dependent Role="BemsMonitoringPointHistoryHourly">
  1991. <PropertyRef Name="SiteId" />
  1992. <PropertyRef Name="FacilityCode" />
  1993. <PropertyRef Name="PropertyId" />
  1994. </Dependent>
  1995. </ReferentialConstraint>
  1996. </Association>
  1997. <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
  1998. <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
  1999. <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
  2000. <ReferentialConstraint>
  2001. <Principal Role="BemsServiceType">
  2002. <PropertyRef Name="ServiceTypeId" />
  2003. </Principal>
  2004. <Dependent Role="BemsMonitoringPointBaseData">
  2005. <PropertyRef Name="ServiceTypeId" />
  2006. </Dependent>
  2007. </ReferentialConstraint>
  2008. </Association>
  2009. <Association Name="FK_CmAnnouncement_CmBusinessField">
  2010. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2011. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  2012. <ReferentialConstraint>
  2013. <Principal Role="CmBusinessField">
  2014. <PropertyRef Name="SiteId" />
  2015. <PropertyRef Name="BusinessFieldId" />
  2016. </Principal>
  2017. <Dependent Role="CmAnnouncement">
  2018. <PropertyRef Name="SiteId" />
  2019. <PropertyRef Name="BusinessFieldId" />
  2020. </Dependent>
  2021. </ReferentialConstraint>
  2022. </Association>
  2023. <Association Name="FK_CmAnnouncement_CmFile">
  2024. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2025. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  2026. <ReferentialConstraint>
  2027. <Principal Role="CmFile">
  2028. <PropertyRef Name="SiteId" />
  2029. <PropertyRef Name="FileId" />
  2030. </Principal>
  2031. <Dependent Role="CmAnnouncement">
  2032. <PropertyRef Name="SiteId" />
  2033. <PropertyRef Name="FileId" />
  2034. </Dependent>
  2035. </ReferentialConstraint>
  2036. </Association>
  2037. <Association Name="FK_CmAnnouncement_CmUser">
  2038. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2039. <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
  2040. <ReferentialConstraint>
  2041. <Principal Role="CmUser">
  2042. <PropertyRef Name="SiteId" />
  2043. <PropertyRef Name="UserId" />
  2044. </Principal>
  2045. <Dependent Role="CmAnnouncement">
  2046. <PropertyRef Name="SiteId" />
  2047. <PropertyRef Name="RegisterUserId" />
  2048. </Dependent>
  2049. </ReferentialConstraint>
  2050. </Association>
  2051. <Association Name="FK__CmFloor__3CF40B7E">
  2052. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  2053. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
  2054. <ReferentialConstraint>
  2055. <Principal Role="CmBuilding">
  2056. <PropertyRef Name="SiteId" />
  2057. <PropertyRef Name="BuildingId" />
  2058. </Principal>
  2059. <Dependent Role="CmFloor">
  2060. <PropertyRef Name="SiteId" />
  2061. <PropertyRef Name="BuildingId" />
  2062. </Dependent>
  2063. </ReferentialConstraint>
  2064. </Association>
  2065. <Association Name="FK__CmZone__CmBuilding">
  2066. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  2067. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  2068. <ReferentialConstraint>
  2069. <Principal Role="CmBuilding">
  2070. <PropertyRef Name="SiteId" />
  2071. <PropertyRef Name="BuildingId" />
  2072. </Principal>
  2073. <Dependent Role="CmZone">
  2074. <PropertyRef Name="SiteId" />
  2075. <PropertyRef Name="BuildingId" />
  2076. </Dependent>
  2077. </ReferentialConstraint>
  2078. </Association>
  2079. <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
  2080. <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
  2081. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  2082. <ReferentialConstraint>
  2083. <Principal Role="CmBuilding">
  2084. <PropertyRef Name="SiteId" />
  2085. <PropertyRef Name="BuildingId" />
  2086. </Principal>
  2087. <Dependent Role="CmZoneTempHumiSet">
  2088. <PropertyRef Name="SiteId" />
  2089. <PropertyRef Name="BuildingId" />
  2090. </Dependent>
  2091. </ReferentialConstraint>
  2092. </Association>
  2093. <Association Name="FK__CmFacilityManual__7BE56230">
  2094. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2095. <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
  2096. <ReferentialConstraint>
  2097. <Principal Role="CmBusinessField">
  2098. <PropertyRef Name="SiteId" />
  2099. <PropertyRef Name="BusinessFieldId" />
  2100. </Principal>
  2101. <Dependent Role="FmsFacilityManual">
  2102. <PropertyRef Name="SiteId" />
  2103. <PropertyRef Name="BusinessFieldId" />
  2104. </Dependent>
  2105. </ReferentialConstraint>
  2106. </Association>
  2107. <Association Name="FK__FmsLicense__CmBusinessField">
  2108. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  2109. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
  2110. <ReferentialConstraint>
  2111. <Principal Role="CmBusinessField">
  2112. <PropertyRef Name="SiteId" />
  2113. <PropertyRef Name="BusinessFieldId" />
  2114. </Principal>
  2115. <Dependent Role="FmsLicense">
  2116. <PropertyRef Name="SiteId" />
  2117. <PropertyRef Name="BusinessFieldId" />
  2118. </Dependent>
  2119. </ReferentialConstraint>
  2120. </Association>
  2121. <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
  2122. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2123. <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
  2124. <ReferentialConstraint>
  2125. <Principal Role="CmBusinessField">
  2126. <PropertyRef Name="SiteId" />
  2127. <PropertyRef Name="BusinessFieldId" />
  2128. </Principal>
  2129. <Dependent Role="FmsMaterialCarriedForward">
  2130. <PropertyRef Name="SiteId" />
  2131. <PropertyRef Name="BusinessFieldId" />
  2132. </Dependent>
  2133. </ReferentialConstraint>
  2134. </Association>
  2135. <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
  2136. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2137. <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
  2138. <ReferentialConstraint>
  2139. <Principal Role="CmBusinessField">
  2140. <PropertyRef Name="SiteId" />
  2141. <PropertyRef Name="BusinessFieldId" />
  2142. </Principal>
  2143. <Dependent Role="FmsMaterialCodeLocation">
  2144. <PropertyRef Name="SiteId" />
  2145. <PropertyRef Name="BusinessFieldId" />
  2146. </Dependent>
  2147. </ReferentialConstraint>
  2148. </Association>
  2149. <Association Name="FK__FmsMaterialOrder__CmBusinessField">
  2150. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2151. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  2152. <ReferentialConstraint>
  2153. <Principal Role="CmBusinessField">
  2154. <PropertyRef Name="SiteId" />
  2155. <PropertyRef Name="BusinessFieldId" />
  2156. </Principal>
  2157. <Dependent Role="FmsMaterialPurchaseOrder">
  2158. <PropertyRef Name="SiteId" />
  2159. <PropertyRef Name="BusinessFieldId" />
  2160. </Dependent>
  2161. </ReferentialConstraint>
  2162. </Association>
  2163. <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
  2164. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2165. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  2166. <ReferentialConstraint>
  2167. <Principal Role="CmBusinessField">
  2168. <PropertyRef Name="SiteId" />
  2169. <PropertyRef Name="BusinessFieldId" />
  2170. </Principal>
  2171. <Dependent Role="FmsMaterialPurchaseRequest">
  2172. <PropertyRef Name="SiteId" />
  2173. <PropertyRef Name="BusinessFieldId" />
  2174. </Dependent>
  2175. </ReferentialConstraint>
  2176. </Association>
  2177. <Association Name="FK__FmsMaterialStored__CmBusinessField">
  2178. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2179. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  2180. <ReferentialConstraint>
  2181. <Principal Role="CmBusinessField">
  2182. <PropertyRef Name="SiteId" />
  2183. <PropertyRef Name="BusinessFieldId" />
  2184. </Principal>
  2185. <Dependent Role="FmsMaterialStored">
  2186. <PropertyRef Name="SiteId" />
  2187. <PropertyRef Name="BusinessFieldId" />
  2188. </Dependent>
  2189. </ReferentialConstraint>
  2190. </Association>
  2191. <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
  2192. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2193. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
  2194. <ReferentialConstraint>
  2195. <Principal Role="CmBusinessField">
  2196. <PropertyRef Name="SiteId" />
  2197. <PropertyRef Name="BusinessFieldId" />
  2198. </Principal>
  2199. <Dependent Role="FmsMaterialWarehouse">
  2200. <PropertyRef Name="SiteId" />
  2201. <PropertyRef Name="BusinessFieldId" />
  2202. </Dependent>
  2203. </ReferentialConstraint>
  2204. </Association>
  2205. <Association Name="FK__FmsWorkOrder__CmBusinessField">
  2206. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2207. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  2208. <ReferentialConstraint>
  2209. <Principal Role="CmBusinessField">
  2210. <PropertyRef Name="SiteId" />
  2211. <PropertyRef Name="BusinessFieldId" />
  2212. </Principal>
  2213. <Dependent Role="FmsWorkOrder">
  2214. <PropertyRef Name="SiteId" />
  2215. <PropertyRef Name="BusinessFieldId" />
  2216. </Dependent>
  2217. </ReferentialConstraint>
  2218. </Association>
  2219. <Association Name="FK__FmsWorkRequest__CmBusinessField">
  2220. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
  2221. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  2222. <ReferentialConstraint>
  2223. <Principal Role="CmBusinessField">
  2224. <PropertyRef Name="SiteId" />
  2225. <PropertyRef Name="BusinessFieldId" />
  2226. </Principal>
  2227. <Dependent Role="FmsWorkRequest">
  2228. <PropertyRef Name="SiteId" />
  2229. <PropertyRef Name="BusinessFieldId" />
  2230. </Dependent>
  2231. </ReferentialConstraint>
  2232. </Association>
  2233. <Association Name="FK_CmUser_CmBusinessField">
  2234. <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
  2235. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  2236. <ReferentialConstraint>
  2237. <Principal Role="CmBusinessField">
  2238. <PropertyRef Name="SiteId" />
  2239. <PropertyRef Name="BusinessFieldId" />
  2240. </Principal>
  2241. <Dependent Role="CmUser">
  2242. <PropertyRef Name="SiteId" />
  2243. <PropertyRef Name="BusinessFieldId" />
  2244. </Dependent>
  2245. </ReferentialConstraint>
  2246. </Association>
  2247. <Association Name="FK__CmCompany__345EC57D">
  2248. <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
  2249. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
  2250. <ReferentialConstraint>
  2251. <Principal Role="CmCompanyType">
  2252. <PropertyRef Name="SiteId" />
  2253. <PropertyRef Name="CompanyTypeId" />
  2254. </Principal>
  2255. <Dependent Role="CmCompany">
  2256. <PropertyRef Name="SiteId" />
  2257. <PropertyRef Name="CompanyTypeId" />
  2258. </Dependent>
  2259. </ReferentialConstraint>
  2260. </Association>
  2261. <Association Name="FK__CmDepartment__3552E9B6">
  2262. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
  2263. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
  2264. <ReferentialConstraint>
  2265. <Principal Role="CmCompany">
  2266. <PropertyRef Name="SiteId" />
  2267. <PropertyRef Name="CompanyId" />
  2268. </Principal>
  2269. <Dependent Role="CmDepartment">
  2270. <PropertyRef Name="SiteId" />
  2271. <PropertyRef Name="CompanyId" />
  2272. </Dependent>
  2273. </ReferentialConstraint>
  2274. </Association>
  2275. <Association Name="FK_CmUser_CmCompany">
  2276. <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
  2277. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  2278. <ReferentialConstraint>
  2279. <Principal Role="CmCompany">
  2280. <PropertyRef Name="SiteId" />
  2281. <PropertyRef Name="CompanyId" />
  2282. </Principal>
  2283. <Dependent Role="CmUser">
  2284. <PropertyRef Name="SiteId" />
  2285. <PropertyRef Name="CompanyId" />
  2286. </Dependent>
  2287. </ReferentialConstraint>
  2288. </Association>
  2289. <Association Name="FK_CmUser_CmDepartment">
  2290. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  2291. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  2292. <ReferentialConstraint>
  2293. <Principal Role="CmDepartment">
  2294. <PropertyRef Name="SiteId" />
  2295. <PropertyRef Name="CompanyId" />
  2296. <PropertyRef Name="DepartmentId" />
  2297. </Principal>
  2298. <Dependent Role="CmUser">
  2299. <PropertyRef Name="SiteId" />
  2300. <PropertyRef Name="CompanyId" />
  2301. <PropertyRef Name="DepartmentId" />
  2302. </Dependent>
  2303. </ReferentialConstraint>
  2304. </Association>
  2305. <Association Name="FK_FmsAccident_CmDepartment">
  2306. <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
  2307. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  2308. <ReferentialConstraint>
  2309. <Principal Role="CmDepartment">
  2310. <PropertyRef Name="SiteId" />
  2311. <PropertyRef Name="CompanyId" />
  2312. <PropertyRef Name="DepartmentId" />
  2313. </Principal>
  2314. <Dependent Role="FmsAccident">
  2315. <PropertyRef Name="SiteId" />
  2316. <PropertyRef Name="CompanyId" />
  2317. <PropertyRef Name="DepartmentId" />
  2318. </Dependent>
  2319. </ReferentialConstraint>
  2320. </Association>
  2321. <Association Name="FK__CmFacilityFile__CmFile">
  2322. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  2323. <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
  2324. <ReferentialConstraint>
  2325. <Principal Role="CmFile">
  2326. <PropertyRef Name="SiteId" />
  2327. <PropertyRef Name="FileId" />
  2328. </Principal>
  2329. <Dependent Role="CmFacilityFile">
  2330. <PropertyRef Name="SiteId" />
  2331. <PropertyRef Name="FileId" />
  2332. </Dependent>
  2333. </ReferentialConstraint>
  2334. </Association>
  2335. <Association Name="FK__CmFile__CmFileCategory">
  2336. <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
  2337. <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
  2338. <ReferentialConstraint>
  2339. <Principal Role="CmFileCategory">
  2340. <PropertyRef Name="FileCategoryId" />
  2341. </Principal>
  2342. <Dependent Role="CmFile">
  2343. <PropertyRef Name="FileCategoryId" />
  2344. </Dependent>
  2345. </ReferentialConstraint>
  2346. </Association>
  2347. <Association Name="FK__FmsDrawingHistor__04DA9AE4">
  2348. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2349. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  2350. <ReferentialConstraint>
  2351. <Principal Role="CmFile">
  2352. <PropertyRef Name="SiteId" />
  2353. <PropertyRef Name="FileId" />
  2354. </Principal>
  2355. <Dependent Role="FmsDrawingHistory">
  2356. <PropertyRef Name="SiteId" />
  2357. <PropertyRef Name="FileId" />
  2358. </Dependent>
  2359. </ReferentialConstraint>
  2360. </Association>
  2361. <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
  2362. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2363. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  2364. <ReferentialConstraint>
  2365. <Principal Role="CmFile">
  2366. <PropertyRef Name="SiteId" />
  2367. <PropertyRef Name="FileId" />
  2368. </Principal>
  2369. <Dependent Role="FmsMaterialPurchaseOrder">
  2370. <PropertyRef Name="SiteId" />
  2371. <PropertyRef Name="FileId" />
  2372. </Dependent>
  2373. </ReferentialConstraint>
  2374. </Association>
  2375. <Association Name="FK__FmsWorkResultFile__CmFile">
  2376. <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
  2377. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
  2378. <ReferentialConstraint>
  2379. <Principal Role="CmFile">
  2380. <PropertyRef Name="SiteId" />
  2381. <PropertyRef Name="FileId" />
  2382. </Principal>
  2383. <Dependent Role="FmsWorkResultFile">
  2384. <PropertyRef Name="SiteId" />
  2385. <PropertyRef Name="FileId" />
  2386. </Dependent>
  2387. </ReferentialConstraint>
  2388. </Association>
  2389. <Association Name="FK_FmsAccident_CmFile1">
  2390. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2391. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  2392. <ReferentialConstraint>
  2393. <Principal Role="CmFile">
  2394. <PropertyRef Name="SiteId" />
  2395. <PropertyRef Name="FileId" />
  2396. </Principal>
  2397. <Dependent Role="FmsAccident">
  2398. <PropertyRef Name="SiteId" />
  2399. <PropertyRef Name="FileId1" />
  2400. </Dependent>
  2401. </ReferentialConstraint>
  2402. </Association>
  2403. <Association Name="FK_FmsAccident_CmFile2">
  2404. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2405. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  2406. <ReferentialConstraint>
  2407. <Principal Role="CmFile">
  2408. <PropertyRef Name="SiteId" />
  2409. <PropertyRef Name="FileId" />
  2410. </Principal>
  2411. <Dependent Role="FmsAccident">
  2412. <PropertyRef Name="SiteId" />
  2413. <PropertyRef Name="FileId2" />
  2414. </Dependent>
  2415. </ReferentialConstraint>
  2416. </Association>
  2417. <Association Name="FK_FmsAccident_CmFile3">
  2418. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2419. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  2420. <ReferentialConstraint>
  2421. <Principal Role="CmFile">
  2422. <PropertyRef Name="SiteId" />
  2423. <PropertyRef Name="FileId" />
  2424. </Principal>
  2425. <Dependent Role="FmsAccident">
  2426. <PropertyRef Name="SiteId" />
  2427. <PropertyRef Name="FileId3" />
  2428. </Dependent>
  2429. </ReferentialConstraint>
  2430. </Association>
  2431. <Association Name="FK_FmsConstruction_CmFile1">
  2432. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2433. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  2434. <ReferentialConstraint>
  2435. <Principal Role="CmFile">
  2436. <PropertyRef Name="SiteId" />
  2437. <PropertyRef Name="FileId" />
  2438. </Principal>
  2439. <Dependent Role="FmsConstruction">
  2440. <PropertyRef Name="SiteId" />
  2441. <PropertyRef Name="FileId1" />
  2442. </Dependent>
  2443. </ReferentialConstraint>
  2444. </Association>
  2445. <Association Name="FK_FmsConstruction_CmFile2">
  2446. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2447. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  2448. <ReferentialConstraint>
  2449. <Principal Role="CmFile">
  2450. <PropertyRef Name="SiteId" />
  2451. <PropertyRef Name="FileId" />
  2452. </Principal>
  2453. <Dependent Role="FmsConstruction">
  2454. <PropertyRef Name="SiteId" />
  2455. <PropertyRef Name="FileId2" />
  2456. </Dependent>
  2457. </ReferentialConstraint>
  2458. </Association>
  2459. <Association Name="FK_FmsConstruction_CmFile3">
  2460. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2461. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  2462. <ReferentialConstraint>
  2463. <Principal Role="CmFile">
  2464. <PropertyRef Name="SiteId" />
  2465. <PropertyRef Name="FileId" />
  2466. </Principal>
  2467. <Dependent Role="FmsConstruction">
  2468. <PropertyRef Name="SiteId" />
  2469. <PropertyRef Name="FileId3" />
  2470. </Dependent>
  2471. </ReferentialConstraint>
  2472. </Association>
  2473. <Association Name="FK_FmsManualHistory_CmFile">
  2474. <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
  2475. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  2476. <ReferentialConstraint>
  2477. <Principal Role="CmFile">
  2478. <PropertyRef Name="SiteId" />
  2479. <PropertyRef Name="FileId" />
  2480. </Principal>
  2481. <Dependent Role="FmsManualHistory">
  2482. <PropertyRef Name="SiteId" />
  2483. <PropertyRef Name="FileId" />
  2484. </Dependent>
  2485. </ReferentialConstraint>
  2486. </Association>
  2487. <Association Name="FK__CmLocation__3DE82FB7">
  2488. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  2489. <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
  2490. <ReferentialConstraint>
  2491. <Principal Role="CmFloor">
  2492. <PropertyRef Name="SiteId" />
  2493. <PropertyRef Name="BuildingId" />
  2494. <PropertyRef Name="FloorId" />
  2495. </Principal>
  2496. <Dependent Role="CmZone">
  2497. <PropertyRef Name="SiteId" />
  2498. <PropertyRef Name="BuildingId" />
  2499. <PropertyRef Name="FloorId" />
  2500. </Dependent>
  2501. </ReferentialConstraint>
  2502. </Association>
  2503. <Association Name="FK_CmZoneTempHumiSet_CmFloor">
  2504. <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
  2505. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
  2506. <ReferentialConstraint>
  2507. <Principal Role="CmFloor">
  2508. <PropertyRef Name="SiteId" />
  2509. <PropertyRef Name="BuildingId" />
  2510. <PropertyRef Name="FloorId" />
  2511. </Principal>
  2512. <Dependent Role="CmZoneTempHumiSet">
  2513. <PropertyRef Name="SiteId" />
  2514. <PropertyRef Name="BuildingId" />
  2515. <PropertyRef Name="FloorId" />
  2516. </Dependent>
  2517. </ReferentialConstraint>
  2518. </Association>
  2519. <Association Name="FK_CmUser_CmPosition">
  2520. <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
  2521. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  2522. <ReferentialConstraint>
  2523. <Principal Role="CmPosition">
  2524. <PropertyRef Name="SiteId" />
  2525. <PropertyRef Name="PositionId" />
  2526. </Principal>
  2527. <Dependent Role="CmUser">
  2528. <PropertyRef Name="SiteId" />
  2529. <PropertyRef Name="PositionId" />
  2530. </Dependent>
  2531. </ReferentialConstraint>
  2532. </Association>
  2533. <Association Name="FK__CmUserToLicense__CmUser">
  2534. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2535. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  2536. <ReferentialConstraint>
  2537. <Principal Role="CmUser">
  2538. <PropertyRef Name="SiteId" />
  2539. <PropertyRef Name="UserId" />
  2540. </Principal>
  2541. <Dependent Role="CmUserToLicense">
  2542. <PropertyRef Name="SiteId" />
  2543. <PropertyRef Name="UserId" />
  2544. </Dependent>
  2545. </ReferentialConstraint>
  2546. </Association>
  2547. <Association Name="FK__FmsDrawingHistory__CmUser">
  2548. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2549. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  2550. <ReferentialConstraint>
  2551. <Principal Role="CmUser">
  2552. <PropertyRef Name="SiteId" />
  2553. <PropertyRef Name="UserId" />
  2554. </Principal>
  2555. <Dependent Role="FmsDrawingHistory">
  2556. <PropertyRef Name="SiteId" />
  2557. <PropertyRef Name="UpdatedUserId" />
  2558. </Dependent>
  2559. </ReferentialConstraint>
  2560. </Association>
  2561. <Association Name="FK__FmsMaterialOrder__CmUser">
  2562. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2563. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  2564. <ReferentialConstraint>
  2565. <Principal Role="CmUser">
  2566. <PropertyRef Name="SiteId" />
  2567. <PropertyRef Name="UserId" />
  2568. </Principal>
  2569. <Dependent Role="FmsMaterialPurchaseOrder">
  2570. <PropertyRef Name="SiteId" />
  2571. <PropertyRef Name="OrderUserId" />
  2572. </Dependent>
  2573. </ReferentialConstraint>
  2574. </Association>
  2575. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  2576. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2577. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  2578. <ReferentialConstraint>
  2579. <Principal Role="CmUser">
  2580. <PropertyRef Name="SiteId" />
  2581. <PropertyRef Name="UserId" />
  2582. </Principal>
  2583. <Dependent Role="FmsMaterialPurchaseRequest">
  2584. <PropertyRef Name="SiteId" />
  2585. <PropertyRef Name="RequestUserId" />
  2586. </Dependent>
  2587. </ReferentialConstraint>
  2588. </Association>
  2589. <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  2590. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2591. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  2592. <ReferentialConstraint>
  2593. <Principal Role="CmUser">
  2594. <PropertyRef Name="SiteId" />
  2595. <PropertyRef Name="UserId" />
  2596. </Principal>
  2597. <Dependent Role="FmsMaterialPurchaseRequest">
  2598. <PropertyRef Name="SiteId" />
  2599. <PropertyRef Name="ApprovalUserId" />
  2600. </Dependent>
  2601. </ReferentialConstraint>
  2602. </Association>
  2603. <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
  2604. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2605. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  2606. <ReferentialConstraint>
  2607. <Principal Role="CmUser">
  2608. <PropertyRef Name="SiteId" />
  2609. <PropertyRef Name="UserId" />
  2610. </Principal>
  2611. <Dependent Role="FmsMaterialStored">
  2612. <PropertyRef Name="SiteId" />
  2613. <PropertyRef Name="StoredUserId" />
  2614. </Dependent>
  2615. </ReferentialConstraint>
  2616. </Association>
  2617. <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  2618. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2619. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  2620. <ReferentialConstraint>
  2621. <Principal Role="CmUser">
  2622. <PropertyRef Name="SiteId" />
  2623. <PropertyRef Name="UserId" />
  2624. </Principal>
  2625. <Dependent Role="FmsMaterialStored">
  2626. <PropertyRef Name="SiteId" />
  2627. <PropertyRef Name="ApprovalUserId" />
  2628. </Dependent>
  2629. </ReferentialConstraint>
  2630. </Association>
  2631. <Association Name="FK__FmsWorkOrder__CmUser">
  2632. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2633. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  2634. <ReferentialConstraint>
  2635. <Principal Role="CmUser">
  2636. <PropertyRef Name="SiteId" />
  2637. <PropertyRef Name="UserId" />
  2638. </Principal>
  2639. <Dependent Role="FmsWorkOrder">
  2640. <PropertyRef Name="SiteId" />
  2641. <PropertyRef Name="OrderUserId" />
  2642. </Dependent>
  2643. </ReferentialConstraint>
  2644. </Association>
  2645. <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
  2646. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2647. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  2648. <ReferentialConstraint>
  2649. <Principal Role="CmUser">
  2650. <PropertyRef Name="SiteId" />
  2651. <PropertyRef Name="UserId" />
  2652. </Principal>
  2653. <Dependent Role="FmsWorkRequest">
  2654. <PropertyRef Name="SiteId" />
  2655. <PropertyRef Name="RequestUserId" />
  2656. </Dependent>
  2657. </ReferentialConstraint>
  2658. </Association>
  2659. <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  2660. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2661. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  2662. <ReferentialConstraint>
  2663. <Principal Role="CmUser">
  2664. <PropertyRef Name="SiteId" />
  2665. <PropertyRef Name="UserId" />
  2666. </Principal>
  2667. <Dependent Role="FmsWorkRequest">
  2668. <PropertyRef Name="SiteId" />
  2669. <PropertyRef Name="RejectUserId" />
  2670. </Dependent>
  2671. </ReferentialConstraint>
  2672. </Association>
  2673. <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
  2674. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2675. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  2676. <ReferentialConstraint>
  2677. <Principal Role="CmUser">
  2678. <PropertyRef Name="SiteId" />
  2679. <PropertyRef Name="UserId" />
  2680. </Principal>
  2681. <Dependent Role="FmsWorkResult">
  2682. <PropertyRef Name="SiteId" />
  2683. <PropertyRef Name="WorkerUserId" />
  2684. </Dependent>
  2685. </ReferentialConstraint>
  2686. </Association>
  2687. <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  2688. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2689. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  2690. <ReferentialConstraint>
  2691. <Principal Role="CmUser">
  2692. <PropertyRef Name="SiteId" />
  2693. <PropertyRef Name="UserId" />
  2694. </Principal>
  2695. <Dependent Role="FmsWorkResult">
  2696. <PropertyRef Name="SiteId" />
  2697. <PropertyRef Name="ConfirmedUserId" />
  2698. </Dependent>
  2699. </ReferentialConstraint>
  2700. </Association>
  2701. <Association Name="FK_CmUser_CmUserGroup">
  2702. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
  2703. <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
  2704. <ReferentialConstraint>
  2705. <Principal Role="CmUserGroup">
  2706. <PropertyRef Name="SiteId" />
  2707. <PropertyRef Name="UserGroupId" />
  2708. </Principal>
  2709. <Dependent Role="CmUser">
  2710. <PropertyRef Name="SiteId" />
  2711. <PropertyRef Name="UserGroupId" />
  2712. </Dependent>
  2713. </ReferentialConstraint>
  2714. </Association>
  2715. <Association Name="FK_CmUserLoginHistory_CmUser">
  2716. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2717. <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
  2718. <ReferentialConstraint>
  2719. <Principal Role="CmUser">
  2720. <PropertyRef Name="SiteId" />
  2721. <PropertyRef Name="UserId" />
  2722. </Principal>
  2723. <Dependent Role="CmUserLoginHistory">
  2724. <PropertyRef Name="SiteId" />
  2725. <PropertyRef Name="UserId" />
  2726. </Dependent>
  2727. </ReferentialConstraint>
  2728. </Association>
  2729. <Association Name="FK_FmsConstructionEstimation_CmUser">
  2730. <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
  2731. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
  2732. <ReferentialConstraint>
  2733. <Principal Role="CmUser">
  2734. <PropertyRef Name="SiteId" />
  2735. <PropertyRef Name="UserId" />
  2736. </Principal>
  2737. <Dependent Role="FmsConstructionEstimation">
  2738. <PropertyRef Name="SiteId" />
  2739. <PropertyRef Name="EstimateUserId" />
  2740. </Dependent>
  2741. </ReferentialConstraint>
  2742. </Association>
  2743. <Association Name="FK_FmsManualHistory_CmUser">
  2744. <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
  2745. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  2746. <ReferentialConstraint>
  2747. <Principal Role="CmUser">
  2748. <PropertyRef Name="SiteId" />
  2749. <PropertyRef Name="UserId" />
  2750. </Principal>
  2751. <Dependent Role="FmsManualHistory">
  2752. <PropertyRef Name="SiteId" />
  2753. <PropertyRef Name="UpdatedUserId" />
  2754. </Dependent>
  2755. </ReferentialConstraint>
  2756. </Association>
  2757. <Association Name="FK__CmUserGroupPermission__CmUserGroup">
  2758. <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
  2759. <OnDelete Action="Cascade" />
  2760. </End>
  2761. <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
  2762. <ReferentialConstraint>
  2763. <Principal Role="CmUserGroup">
  2764. <PropertyRef Name="SiteId" />
  2765. <PropertyRef Name="UserGroupId" />
  2766. </Principal>
  2767. <Dependent Role="CmUserGroupPermission">
  2768. <PropertyRef Name="SiteId" />
  2769. <PropertyRef Name="UserGroupId" />
  2770. </Dependent>
  2771. </ReferentialConstraint>
  2772. </Association>
  2773. <Association Name="FK__CmUserToLicense__FmsLicense">
  2774. <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
  2775. <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
  2776. <ReferentialConstraint>
  2777. <Principal Role="FmsLicense">
  2778. <PropertyRef Name="SiteId" />
  2779. <PropertyRef Name="LicenseId" />
  2780. </Principal>
  2781. <Dependent Role="CmUserToLicense">
  2782. <PropertyRef Name="SiteId" />
  2783. <PropertyRef Name="LicenseId" />
  2784. </Dependent>
  2785. </ReferentialConstraint>
  2786. </Association>
  2787. <Association Name="FK_CmZoneTempHumiSet_CmZone">
  2788. <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
  2789. <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
  2790. <ReferentialConstraint>
  2791. <Principal Role="CmZone">
  2792. <PropertyRef Name="SiteId" />
  2793. <PropertyRef Name="BuildingId" />
  2794. <PropertyRef Name="FloorId" />
  2795. <PropertyRef Name="ZoneId" />
  2796. </Principal>
  2797. <Dependent Role="CmZoneTempHumiSet">
  2798. <PropertyRef Name="SiteId" />
  2799. <PropertyRef Name="BuildingId" />
  2800. <PropertyRef Name="FloorId" />
  2801. <PropertyRef Name="ZoneId" />
  2802. </Dependent>
  2803. </ReferentialConstraint>
  2804. </Association>
  2805. <Association Name="FK_FmsAccident_FmsAccidentCodeType">
  2806. <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
  2807. <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
  2808. <ReferentialConstraint>
  2809. <Principal Role="FmsAccidentCodeType">
  2810. <PropertyRef Name="SiteId" />
  2811. <PropertyRef Name="AccidentTypeId" />
  2812. </Principal>
  2813. <Dependent Role="FmsAccident">
  2814. <PropertyRef Name="SiteId" />
  2815. <PropertyRef Name="AccidentTypeId" />
  2816. </Dependent>
  2817. </ReferentialConstraint>
  2818. </Association>
  2819. <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
  2820. <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
  2821. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  2822. <ReferentialConstraint>
  2823. <Principal Role="FmsConstructionCodeProgress">
  2824. <PropertyRef Name="ProgressId" />
  2825. </Principal>
  2826. <Dependent Role="FmsConstruction">
  2827. <PropertyRef Name="ProgressId" />
  2828. </Dependent>
  2829. </ReferentialConstraint>
  2830. </Association>
  2831. <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
  2832. <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
  2833. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
  2834. <ReferentialConstraint>
  2835. <Principal Role="FmsConstructionCodeType">
  2836. <PropertyRef Name="SiteId" />
  2837. <PropertyRef Name="ConstructionTypeId" />
  2838. </Principal>
  2839. <Dependent Role="FmsConstruction">
  2840. <PropertyRef Name="SiteId" />
  2841. <PropertyRef Name="ConstructionTypeId" />
  2842. </Dependent>
  2843. </ReferentialConstraint>
  2844. </Association>
  2845. <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
  2846. <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
  2847. <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
  2848. <ReferentialConstraint>
  2849. <Principal Role="FmsConstruction">
  2850. <PropertyRef Name="SiteId" />
  2851. <PropertyRef Name="ConstructionId" />
  2852. </Principal>
  2853. <Dependent Role="FmsConstructionEstimation">
  2854. <PropertyRef Name="SiteId" />
  2855. <PropertyRef Name="ConstructionId" />
  2856. </Dependent>
  2857. </ReferentialConstraint>
  2858. </Association>
  2859. <Association Name="FK__FmsDrawing__6E565CE8">
  2860. <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
  2861. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  2862. <ReferentialConstraint>
  2863. <Principal Role="FmsDrawingCodeGroup">
  2864. <PropertyRef Name="SiteId" />
  2865. <PropertyRef Name="DrawingGroupId" />
  2866. </Principal>
  2867. <Dependent Role="FmsDrawing">
  2868. <PropertyRef Name="SiteId" />
  2869. <PropertyRef Name="DrawingGroupId" />
  2870. </Dependent>
  2871. </ReferentialConstraint>
  2872. </Association>
  2873. <Association Name="FK__FmsDrawing__6F4A8121">
  2874. <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
  2875. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
  2876. <ReferentialConstraint>
  2877. <Principal Role="FmsDrawingCodeType">
  2878. <PropertyRef Name="SiteId" />
  2879. <PropertyRef Name="DrawingTypeId" />
  2880. </Principal>
  2881. <Dependent Role="FmsDrawing">
  2882. <PropertyRef Name="SiteId" />
  2883. <PropertyRef Name="DrawingTypeId" />
  2884. </Dependent>
  2885. </ReferentialConstraint>
  2886. </Association>
  2887. <Association Name="FK__FmsDrawingHistor__7132C993">
  2888. <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1" />
  2889. <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
  2890. <ReferentialConstraint>
  2891. <Principal Role="FmsDrawing">
  2892. <PropertyRef Name="SiteId" />
  2893. <PropertyRef Name="DrawingId" />
  2894. </Principal>
  2895. <Dependent Role="FmsDrawingHistory">
  2896. <PropertyRef Name="SiteId" />
  2897. <PropertyRef Name="DrawingId" />
  2898. </Dependent>
  2899. </ReferentialConstraint>
  2900. </Association>
  2901. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  2902. <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
  2903. <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
  2904. <ReferentialConstraint>
  2905. <Principal Role="FmsEquipmentCodeStateType">
  2906. <PropertyRef Name="EquipmentStateTypeId" />
  2907. </Principal>
  2908. <Dependent Role="FmsEquipmentHistory">
  2909. <PropertyRef Name="EquipmentStateTypeId" />
  2910. </Dependent>
  2911. </ReferentialConstraint>
  2912. </Association>
  2913. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  2914. <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
  2915. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  2916. <ReferentialConstraint>
  2917. <Principal Role="FmsWorkCodeCycleUnit">
  2918. <PropertyRef Name="SiteId" />
  2919. <PropertyRef Name="CycleUnitId" />
  2920. </Principal>
  2921. <Dependent Role="FmsFacilityCheckItem">
  2922. <PropertyRef Name="SiteId" />
  2923. <PropertyRef Name="CycleUnitId" />
  2924. </Dependent>
  2925. </ReferentialConstraint>
  2926. </Association>
  2927. <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  2928. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  2929. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
  2930. <ReferentialConstraint>
  2931. <Principal Role="FmsWorkCodeType">
  2932. <PropertyRef Name="WorkTypeId" />
  2933. </Principal>
  2934. <Dependent Role="FmsFacilityCheckItem">
  2935. <PropertyRef Name="WorkTypeId" />
  2936. </Dependent>
  2937. </ReferentialConstraint>
  2938. </Association>
  2939. <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  2940. <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
  2941. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  2942. <ReferentialConstraint>
  2943. <Principal Role="FmsFacilityCheckItem">
  2944. <PropertyRef Name="SiteId" />
  2945. <PropertyRef Name="FacilityCode" />
  2946. <PropertyRef Name="CheckItemId" />
  2947. </Principal>
  2948. <Dependent Role="FmsWorkResultCheckItem">
  2949. <PropertyRef Name="SiteId" />
  2950. <PropertyRef Name="FacilityCode" />
  2951. <PropertyRef Name="CheckItemId" />
  2952. </Dependent>
  2953. </ReferentialConstraint>
  2954. </Association>
  2955. <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  2956. <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
  2957. <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
  2958. <ReferentialConstraint>
  2959. <Principal Role="FmsFacilityCodeClass">
  2960. <PropertyRef Name="SiteId" />
  2961. <PropertyRef Name="FacilityClassId" />
  2962. </Principal>
  2963. <Dependent Role="FmsFacilityCodeClass1">
  2964. <PropertyRef Name="SiteId" />
  2965. <PropertyRef Name="ParentFacilityClassId" />
  2966. </Dependent>
  2967. </ReferentialConstraint>
  2968. </Association>
  2969. <Association Name="FK_FmsManual_FmsManualType">
  2970. <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
  2971. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
  2972. <ReferentialConstraint>
  2973. <Principal Role="FmsManualType">
  2974. <PropertyRef Name="SiteId" />
  2975. <PropertyRef Name="ManualTypeId" />
  2976. </Principal>
  2977. <Dependent Role="FmsManual">
  2978. <PropertyRef Name="SiteId" />
  2979. <PropertyRef Name="ManualTypeId" />
  2980. </Dependent>
  2981. </ReferentialConstraint>
  2982. </Association>
  2983. <Association Name="FK_FmsManualHistory_FmsManual">
  2984. <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
  2985. <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
  2986. <ReferentialConstraint>
  2987. <Principal Role="FmsManual">
  2988. <PropertyRef Name="SiteId" />
  2989. <PropertyRef Name="ManualId" />
  2990. </Principal>
  2991. <Dependent Role="FmsManualHistory">
  2992. <PropertyRef Name="SiteId" />
  2993. <PropertyRef Name="ManualId" />
  2994. </Dependent>
  2995. </ReferentialConstraint>
  2996. </Association>
  2997. <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  2998. <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
  2999. <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
  3000. <ReferentialConstraint>
  3001. <Principal Role="FmsMaterialCodeClass">
  3002. <PropertyRef Name="SiteId" />
  3003. <PropertyRef Name="MaterialClassId" />
  3004. </Principal>
  3005. <Dependent Role="FmsMaterialCodeClass1">
  3006. <PropertyRef Name="SiteId" />
  3007. <PropertyRef Name="ParentMaterialClassId" />
  3008. </Dependent>
  3009. </ReferentialConstraint>
  3010. </Association>
  3011. <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  3012. <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
  3013. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3014. <ReferentialConstraint>
  3015. <Principal Role="FmsMaterialCodeProgress">
  3016. <PropertyRef Name="ProgressId" />
  3017. </Principal>
  3018. <Dependent Role="FmsMaterialPurchaseRequest">
  3019. <PropertyRef Name="ProgressId" />
  3020. </Dependent>
  3021. </ReferentialConstraint>
  3022. </Association>
  3023. <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  3024. <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
  3025. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
  3026. <ReferentialConstraint>
  3027. <Principal Role="FmsMaterialCodePurchaseType">
  3028. <PropertyRef Name="PurchaseTypeId" />
  3029. </Principal>
  3030. <Dependent Role="FmsMaterialPurchaseRequest">
  3031. <PropertyRef Name="PurchaseTypeId" />
  3032. </Dependent>
  3033. </ReferentialConstraint>
  3034. </Association>
  3035. <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  3036. <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
  3037. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3038. <ReferentialConstraint>
  3039. <Principal Role="FmsMaterialTradeCompany">
  3040. <PropertyRef Name="SiteId" />
  3041. <PropertyRef Name="TradeCompanyId" />
  3042. </Principal>
  3043. <Dependent Role="FmsMaterialPurchaseOrder">
  3044. <PropertyRef Name="SiteId" />
  3045. <PropertyRef Name="TradeCompanyId" />
  3046. </Dependent>
  3047. </ReferentialConstraint>
  3048. </Association>
  3049. <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  3050. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
  3051. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
  3052. <ReferentialConstraint>
  3053. <Principal Role="FmsMaterialPurchaseRequest">
  3054. <PropertyRef Name="SiteId" />
  3055. <PropertyRef Name="PurchaseRequestId" />
  3056. </Principal>
  3057. <Dependent Role="FmsMaterialPurchaseOrder">
  3058. <PropertyRef Name="SiteId" />
  3059. <PropertyRef Name="PurchaseRequestId" />
  3060. </Dependent>
  3061. </ReferentialConstraint>
  3062. </Association>
  3063. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  3064. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
  3065. <OnDelete Action="Cascade" />
  3066. </End>
  3067. <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  3068. <ReferentialConstraint>
  3069. <Principal Role="FmsMaterialPurchaseOrder">
  3070. <PropertyRef Name="SiteId" />
  3071. <PropertyRef Name="PurchaseOrderId" />
  3072. </Principal>
  3073. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  3074. <PropertyRef Name="SiteId" />
  3075. <PropertyRef Name="PurchaseOrderId" />
  3076. </Dependent>
  3077. </ReferentialConstraint>
  3078. </Association>
  3079. <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  3080. <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
  3081. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  3082. <ReferentialConstraint>
  3083. <Principal Role="FmsMaterialPurchaseOrder">
  3084. <PropertyRef Name="SiteId" />
  3085. <PropertyRef Name="PurchaseOrderId" />
  3086. </Principal>
  3087. <Dependent Role="FmsMaterialStored">
  3088. <PropertyRef Name="SiteId" />
  3089. <PropertyRef Name="PurchaseOrderId" />
  3090. </Dependent>
  3091. </ReferentialConstraint>
  3092. </Association>
  3093. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  3094. <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
  3095. <OnDelete Action="Cascade" />
  3096. </End>
  3097. <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  3098. <ReferentialConstraint>
  3099. <Principal Role="FmsMaterialPurchaseRequest">
  3100. <PropertyRef Name="SiteId" />
  3101. <PropertyRef Name="PurchaseRequestId" />
  3102. </Principal>
  3103. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  3104. <PropertyRef Name="SiteId" />
  3105. <PropertyRef Name="PurchaseRequestId" />
  3106. </Dependent>
  3107. </ReferentialConstraint>
  3108. </Association>
  3109. <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
  3110. <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
  3111. <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
  3112. <ReferentialConstraint>
  3113. <Principal Role="FmsMaterialWarehouse">
  3114. <PropertyRef Name="SiteId" />
  3115. <PropertyRef Name="WarehouseId" />
  3116. </Principal>
  3117. <Dependent Role="FmsMaterialStored">
  3118. <PropertyRef Name="SiteId" />
  3119. <PropertyRef Name="WarehouseId" />
  3120. </Dependent>
  3121. </ReferentialConstraint>
  3122. </Association>
  3123. <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
  3124. <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
  3125. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
  3126. <ReferentialConstraint>
  3127. <Principal Role="FmsWorkCodeCauseClass">
  3128. <PropertyRef Name="SiteId" />
  3129. <PropertyRef Name="CauseClassId" />
  3130. </Principal>
  3131. <Dependent Role="FmsWorkResult">
  3132. <PropertyRef Name="SiteId" />
  3133. <PropertyRef Name="CauseClassId" />
  3134. </Dependent>
  3135. </ReferentialConstraint>
  3136. </Association>
  3137. <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
  3138. <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
  3139. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
  3140. <ReferentialConstraint>
  3141. <Principal Role="FmsWorkCodeEmergency">
  3142. <PropertyRef Name="SiteId" />
  3143. <PropertyRef Name="EmergencyId" />
  3144. </Principal>
  3145. <Dependent Role="FmsWorkOrder">
  3146. <PropertyRef Name="SiteId" />
  3147. <PropertyRef Name="EmergencyId" />
  3148. </Dependent>
  3149. </ReferentialConstraint>
  3150. </Association>
  3151. <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
  3152. <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
  3153. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  3154. <ReferentialConstraint>
  3155. <Principal Role="FmsWorkCodeProgress">
  3156. <PropertyRef Name="WorkProgressId" />
  3157. </Principal>
  3158. <Dependent Role="FmsWorkRequest">
  3159. <PropertyRef Name="WorkProgressId" />
  3160. </Dependent>
  3161. </ReferentialConstraint>
  3162. </Association>
  3163. <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
  3164. <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
  3165. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
  3166. <ReferentialConstraint>
  3167. <Principal Role="FmsWorkCodeType">
  3168. <PropertyRef Name="WorkTypeId" />
  3169. </Principal>
  3170. <Dependent Role="FmsWorkRequest">
  3171. <PropertyRef Name="WorkTypeId" />
  3172. </Dependent>
  3173. </ReferentialConstraint>
  3174. </Association>
  3175. <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
  3176. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  3177. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
  3178. <ReferentialConstraint>
  3179. <Principal Role="FmsWorkRequest">
  3180. <PropertyRef Name="SiteId" />
  3181. <PropertyRef Name="WorkRequestId" />
  3182. </Principal>
  3183. <Dependent Role="FmsWorkOrder">
  3184. <PropertyRef Name="SiteId" />
  3185. <PropertyRef Name="WorkRequestId" />
  3186. </Dependent>
  3187. </ReferentialConstraint>
  3188. </Association>
  3189. <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
  3190. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
  3191. <OnDelete Action="Cascade" />
  3192. </End>
  3193. <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
  3194. <ReferentialConstraint>
  3195. <Principal Role="FmsWorkOrder">
  3196. <PropertyRef Name="SiteId" />
  3197. <PropertyRef Name="WorkRequestId" />
  3198. </Principal>
  3199. <Dependent Role="FmsWorkOrderToFacility">
  3200. <PropertyRef Name="SiteId" />
  3201. <PropertyRef Name="WorkRequestId" />
  3202. </Dependent>
  3203. </ReferentialConstraint>
  3204. </Association>
  3205. <Association Name="FK__FmsWorkResult__FmsWorkOrder">
  3206. <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
  3207. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  3208. <ReferentialConstraint>
  3209. <Principal Role="FmsWorkOrder">
  3210. <PropertyRef Name="SiteId" />
  3211. <PropertyRef Name="WorkRequestId" />
  3212. </Principal>
  3213. <Dependent Role="FmsWorkResult">
  3214. <PropertyRef Name="SiteId" />
  3215. <PropertyRef Name="WorkRequestId" />
  3216. </Dependent>
  3217. </ReferentialConstraint>
  3218. </Association>
  3219. <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
  3220. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
  3221. <OnDelete Action="Cascade" />
  3222. </End>
  3223. <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
  3224. <ReferentialConstraint>
  3225. <Principal Role="FmsWorkRequest">
  3226. <PropertyRef Name="SiteId" />
  3227. <PropertyRef Name="WorkRequestId" />
  3228. </Principal>
  3229. <Dependent Role="FmsWorkRequestToFacility">
  3230. <PropertyRef Name="SiteId" />
  3231. <PropertyRef Name="WorkRequestId" />
  3232. </Dependent>
  3233. </ReferentialConstraint>
  3234. </Association>
  3235. <Association Name="FK__FmsWorkResult__FmsWorkRequest">
  3236. <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
  3237. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
  3238. <ReferentialConstraint>
  3239. <Principal Role="FmsWorkRequest">
  3240. <PropertyRef Name="SiteId" />
  3241. <PropertyRef Name="WorkRequestId" />
  3242. </Principal>
  3243. <Dependent Role="FmsWorkResult">
  3244. <PropertyRef Name="SiteId" />
  3245. <PropertyRef Name="WorkRequestId" />
  3246. </Dependent>
  3247. </ReferentialConstraint>
  3248. </Association>
  3249. <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
  3250. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  3251. <OnDelete Action="Cascade" />
  3252. </End>
  3253. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
  3254. <ReferentialConstraint>
  3255. <Principal Role="FmsWorkResult">
  3256. <PropertyRef Name="SiteId" />
  3257. <PropertyRef Name="WorkRequestId" />
  3258. </Principal>
  3259. <Dependent Role="FmsWorkResultCheckItem">
  3260. <PropertyRef Name="SiteId" />
  3261. <PropertyRef Name="WorkRequestId" />
  3262. </Dependent>
  3263. </ReferentialConstraint>
  3264. </Association>
  3265. <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
  3266. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  3267. <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
  3268. <ReferentialConstraint>
  3269. <Principal Role="FmsWorkResult">
  3270. <PropertyRef Name="SiteId" />
  3271. <PropertyRef Name="WorkRequestId" />
  3272. </Principal>
  3273. <Dependent Role="FmsWorkResultFile">
  3274. <PropertyRef Name="SiteId" />
  3275. <PropertyRef Name="WorkRequestId" />
  3276. </Dependent>
  3277. </ReferentialConstraint>
  3278. </Association>
  3279. <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
  3280. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
  3281. <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
  3282. <ReferentialConstraint>
  3283. <Principal Role="FmsWorkResult">
  3284. <PropertyRef Name="SiteId" />
  3285. <PropertyRef Name="WorkRequestId" />
  3286. </Principal>
  3287. <Dependent Role="FmsWorkResultLaw">
  3288. <PropertyRef Name="SiteId" />
  3289. <PropertyRef Name="WorkRequestId" />
  3290. </Dependent>
  3291. </ReferentialConstraint>
  3292. </Association>
  3293. <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
  3294. <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
  3295. <OnDelete Action="Cascade" />
  3296. </End>
  3297. <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
  3298. <ReferentialConstraint>
  3299. <Principal Role="FmsWorkResult">
  3300. <PropertyRef Name="SiteId" />
  3301. <PropertyRef Name="WorkRequestId" />
  3302. </Principal>
  3303. <Dependent Role="FmsWorkResultToFacility">
  3304. <PropertyRef Name="SiteId" />
  3305. <PropertyRef Name="WorkRequestId" />
  3306. </Dependent>
  3307. </ReferentialConstraint>
  3308. </Association>
  3309. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  3310. <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1">
  3311. <OnDelete Action="Cascade" />
  3312. </End>
  3313. <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  3314. <ReferentialConstraint>
  3315. <Principal Role="FmsWorkResultCheckItem">
  3316. <PropertyRef Name="CheckItemId" />
  3317. </Principal>
  3318. <Dependent Role="FmsWorkResultCheckItemMaterial">
  3319. <PropertyRef Name="CheckItemId" />
  3320. </Dependent>
  3321. </ReferentialConstraint>
  3322. </Association>
  3323. <EntityContainer Name="iBemsEntities" annotation:LazyLoadingEnabled="true">
  3324. <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" />
  3325. <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" />
  3326. <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" />
  3327. <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" />
  3328. <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" />
  3329. <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" />
  3330. <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" />
  3331. <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" />
  3332. <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" />
  3333. <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" />
  3334. <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" />
  3335. <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" />
  3336. <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" />
  3337. <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" />
  3338. <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" />
  3339. <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" />
  3340. <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" />
  3341. <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" />
  3342. <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" />
  3343. <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" />
  3344. <EntitySet Name="CmCompany" EntityType="Self.CmCompany" />
  3345. <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" />
  3346. <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" />
  3347. <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" />
  3348. <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" />
  3349. <EntitySet Name="CmFile" EntityType="Self.CmFile" />
  3350. <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" />
  3351. <EntitySet Name="CmFloor" EntityType="Self.CmFloor" />
  3352. <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" />
  3353. <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" />
  3354. <EntitySet Name="CmPosition" EntityType="Self.CmPosition" />
  3355. <EntitySet Name="CmUser" EntityType="Self.CmUser" />
  3356. <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" />
  3357. <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" />
  3358. <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" />
  3359. <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" />
  3360. <EntitySet Name="CmZone" EntityType="Self.CmZone" />
  3361. <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" />
  3362. <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" />
  3363. <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" />
  3364. <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" />
  3365. <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" />
  3366. <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" />
  3367. <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" />
  3368. <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" />
  3369. <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" />
  3370. <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" />
  3371. <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" />
  3372. <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" />
  3373. <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" />
  3374. <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" />
  3375. <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" />
  3376. <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" />
  3377. <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" />
  3378. <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" />
  3379. <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" />
  3380. <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" />
  3381. <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" />
  3382. <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" />
  3383. <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" />
  3384. <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" />
  3385. <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" />
  3386. <EntitySet Name="FmsManual" EntityType="Self.FmsManual" />
  3387. <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" />
  3388. <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" />
  3389. <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" />
  3390. <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" />
  3391. <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" />
  3392. <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" />
  3393. <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" />
  3394. <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" />
  3395. <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" />
  3396. <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" />
  3397. <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" />
  3398. <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" />
  3399. <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" />
  3400. <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" />
  3401. <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" />
  3402. <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" />
  3403. <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" />
  3404. <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" />
  3405. <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" />
  3406. <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" />
  3407. <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" />
  3408. <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" />
  3409. <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" />
  3410. <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" />
  3411. <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" />
  3412. <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" />
  3413. <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" />
  3414. <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" />
  3415. <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" />
  3416. <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" />
  3417. <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" />
  3418. <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" />
  3419. <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" />
  3420. <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" />
  3421. <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" />
  3422. <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" />
  3423. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  3424. <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
  3425. <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
  3426. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  3427. </AssociationSet>
  3428. <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
  3429. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3430. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  3431. </AssociationSet>
  3432. <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
  3433. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3434. <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
  3435. </AssociationSet>
  3436. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
  3437. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3438. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  3439. </AssociationSet>
  3440. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
  3441. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3442. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  3443. </AssociationSet>
  3444. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
  3445. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3446. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  3447. </AssociationSet>
  3448. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
  3449. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3450. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  3451. </AssociationSet>
  3452. <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
  3453. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3454. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  3455. </AssociationSet>
  3456. <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
  3457. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  3458. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3459. </AssociationSet>
  3460. <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
  3461. <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
  3462. <End Role="BemsFormula" EntitySet="BemsFormula" />
  3463. </AssociationSet>
  3464. <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
  3465. <End Role="BemsFormula" EntitySet="BemsFormula" />
  3466. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  3467. </AssociationSet>
  3468. <AssociationSet Name="FK__BemsFormulaParameter__BemsMonitoringPoint" Association="Self.FK__BemsFormulaParameter__BemsMonitoringPoint">
  3469. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3470. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  3471. </AssociationSet>
  3472. <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
  3473. <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
  3474. <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
  3475. </AssociationSet>
  3476. <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
  3477. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3478. <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
  3479. </AssociationSet>
  3480. <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
  3481. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  3482. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3483. </AssociationSet>
  3484. <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
  3485. <End Role="CmBuilding" EntitySet="CmBuilding" />
  3486. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3487. </AssociationSet>
  3488. <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
  3489. <End Role="CmFloor" EntitySet="CmFloor" />
  3490. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3491. </AssociationSet>
  3492. <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
  3493. <End Role="CmZone" EntitySet="CmZone" />
  3494. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3495. </AssociationSet>
  3496. <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
  3497. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3498. <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
  3499. </AssociationSet>
  3500. <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
  3501. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3502. <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
  3503. </AssociationSet>
  3504. <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
  3505. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  3506. <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
  3507. </AssociationSet>
  3508. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
  3509. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  3510. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  3511. </AssociationSet>
  3512. <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
  3513. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3514. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  3515. </AssociationSet>
  3516. <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
  3517. <End Role="CmFile" EntitySet="CmFile" />
  3518. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  3519. </AssociationSet>
  3520. <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
  3521. <End Role="CmUser" EntitySet="CmUser" />
  3522. <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
  3523. </AssociationSet>
  3524. <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
  3525. <End Role="CmBuilding" EntitySet="CmBuilding" />
  3526. <End Role="CmFloor" EntitySet="CmFloor" />
  3527. </AssociationSet>
  3528. <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
  3529. <End Role="CmBuilding" EntitySet="CmBuilding" />
  3530. <End Role="CmZone" EntitySet="CmZone" />
  3531. </AssociationSet>
  3532. <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
  3533. <End Role="CmBuilding" EntitySet="CmBuilding" />
  3534. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  3535. </AssociationSet>
  3536. <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
  3537. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3538. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  3539. </AssociationSet>
  3540. <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
  3541. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3542. <End Role="FmsLicense" EntitySet="FmsLicense" />
  3543. </AssociationSet>
  3544. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
  3545. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3546. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  3547. </AssociationSet>
  3548. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
  3549. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3550. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  3551. </AssociationSet>
  3552. <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
  3553. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3554. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3555. </AssociationSet>
  3556. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
  3557. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3558. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3559. </AssociationSet>
  3560. <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
  3561. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3562. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  3563. </AssociationSet>
  3564. <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
  3565. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3566. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  3567. </AssociationSet>
  3568. <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
  3569. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3570. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  3571. </AssociationSet>
  3572. <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
  3573. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3574. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3575. </AssociationSet>
  3576. <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
  3577. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3578. <End Role="CmUser" EntitySet="CmUser" />
  3579. </AssociationSet>
  3580. <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
  3581. <End Role="CmCompanyType" EntitySet="CmCompanyType" />
  3582. <End Role="CmCompany" EntitySet="CmCompany" />
  3583. </AssociationSet>
  3584. <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
  3585. <End Role="CmCompany" EntitySet="CmCompany" />
  3586. <End Role="CmDepartment" EntitySet="CmDepartment" />
  3587. </AssociationSet>
  3588. <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
  3589. <End Role="CmCompany" EntitySet="CmCompany" />
  3590. <End Role="CmUser" EntitySet="CmUser" />
  3591. </AssociationSet>
  3592. <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
  3593. <End Role="CmDepartment" EntitySet="CmDepartment" />
  3594. <End Role="CmUser" EntitySet="CmUser" />
  3595. </AssociationSet>
  3596. <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
  3597. <End Role="CmDepartment" EntitySet="CmDepartment" />
  3598. <End Role="FmsAccident" EntitySet="FmsAccident" />
  3599. </AssociationSet>
  3600. <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
  3601. <End Role="CmFile" EntitySet="CmFile" />
  3602. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  3603. </AssociationSet>
  3604. <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
  3605. <End Role="CmFileCategory" EntitySet="CmFileCategory" />
  3606. <End Role="CmFile" EntitySet="CmFile" />
  3607. </AssociationSet>
  3608. <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
  3609. <End Role="CmFile" EntitySet="CmFile" />
  3610. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  3611. </AssociationSet>
  3612. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
  3613. <End Role="CmFile" EntitySet="CmFile" />
  3614. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3615. </AssociationSet>
  3616. <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
  3617. <End Role="CmFile" EntitySet="CmFile" />
  3618. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  3619. </AssociationSet>
  3620. <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
  3621. <End Role="CmFile" EntitySet="CmFile" />
  3622. <End Role="FmsAccident" EntitySet="FmsAccident" />
  3623. </AssociationSet>
  3624. <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
  3625. <End Role="CmFile" EntitySet="CmFile" />
  3626. <End Role="FmsAccident" EntitySet="FmsAccident" />
  3627. </AssociationSet>
  3628. <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
  3629. <End Role="CmFile" EntitySet="CmFile" />
  3630. <End Role="FmsAccident" EntitySet="FmsAccident" />
  3631. </AssociationSet>
  3632. <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
  3633. <End Role="CmFile" EntitySet="CmFile" />
  3634. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  3635. </AssociationSet>
  3636. <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
  3637. <End Role="CmFile" EntitySet="CmFile" />
  3638. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  3639. </AssociationSet>
  3640. <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
  3641. <End Role="CmFile" EntitySet="CmFile" />
  3642. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  3643. </AssociationSet>
  3644. <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
  3645. <End Role="CmFile" EntitySet="CmFile" />
  3646. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  3647. </AssociationSet>
  3648. <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
  3649. <End Role="CmFloor" EntitySet="CmFloor" />
  3650. <End Role="CmZone" EntitySet="CmZone" />
  3651. </AssociationSet>
  3652. <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
  3653. <End Role="CmFloor" EntitySet="CmFloor" />
  3654. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  3655. </AssociationSet>
  3656. <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
  3657. <End Role="CmPosition" EntitySet="CmPosition" />
  3658. <End Role="CmUser" EntitySet="CmUser" />
  3659. </AssociationSet>
  3660. <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
  3661. <End Role="CmUser" EntitySet="CmUser" />
  3662. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  3663. </AssociationSet>
  3664. <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
  3665. <End Role="CmUser" EntitySet="CmUser" />
  3666. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  3667. </AssociationSet>
  3668. <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
  3669. <End Role="CmUser" EntitySet="CmUser" />
  3670. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3671. </AssociationSet>
  3672. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
  3673. <End Role="CmUser" EntitySet="CmUser" />
  3674. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3675. </AssociationSet>
  3676. <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
  3677. <End Role="CmUser" EntitySet="CmUser" />
  3678. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3679. </AssociationSet>
  3680. <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
  3681. <End Role="CmUser" EntitySet="CmUser" />
  3682. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  3683. </AssociationSet>
  3684. <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
  3685. <End Role="CmUser" EntitySet="CmUser" />
  3686. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  3687. </AssociationSet>
  3688. <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
  3689. <End Role="CmUser" EntitySet="CmUser" />
  3690. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  3691. </AssociationSet>
  3692. <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
  3693. <End Role="CmUser" EntitySet="CmUser" />
  3694. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3695. </AssociationSet>
  3696. <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
  3697. <End Role="CmUser" EntitySet="CmUser" />
  3698. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3699. </AssociationSet>
  3700. <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
  3701. <End Role="CmUser" EntitySet="CmUser" />
  3702. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3703. </AssociationSet>
  3704. <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
  3705. <End Role="CmUser" EntitySet="CmUser" />
  3706. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3707. </AssociationSet>
  3708. <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
  3709. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  3710. <End Role="CmUser" EntitySet="CmUser" />
  3711. </AssociationSet>
  3712. <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
  3713. <End Role="CmUser" EntitySet="CmUser" />
  3714. <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
  3715. </AssociationSet>
  3716. <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
  3717. <End Role="CmUser" EntitySet="CmUser" />
  3718. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  3719. </AssociationSet>
  3720. <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
  3721. <End Role="CmUser" EntitySet="CmUser" />
  3722. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  3723. </AssociationSet>
  3724. <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
  3725. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  3726. <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
  3727. </AssociationSet>
  3728. <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
  3729. <End Role="FmsLicense" EntitySet="FmsLicense" />
  3730. <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
  3731. </AssociationSet>
  3732. <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
  3733. <End Role="CmZone" EntitySet="CmZone" />
  3734. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  3735. </AssociationSet>
  3736. <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
  3737. <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
  3738. <End Role="FmsAccident" EntitySet="FmsAccident" />
  3739. </AssociationSet>
  3740. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
  3741. <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
  3742. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  3743. </AssociationSet>
  3744. <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
  3745. <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
  3746. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  3747. </AssociationSet>
  3748. <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
  3749. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  3750. <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
  3751. </AssociationSet>
  3752. <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
  3753. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  3754. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  3755. </AssociationSet>
  3756. <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
  3757. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  3758. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  3759. </AssociationSet>
  3760. <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
  3761. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  3762. <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
  3763. </AssociationSet>
  3764. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
  3765. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  3766. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  3767. </AssociationSet>
  3768. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
  3769. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  3770. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  3771. </AssociationSet>
  3772. <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
  3773. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  3774. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  3775. </AssociationSet>
  3776. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
  3777. <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
  3778. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  3779. </AssociationSet>
  3780. <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
  3781. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  3782. <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
  3783. </AssociationSet>
  3784. <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
  3785. <End Role="FmsManualType" EntitySet="FmsManualType" />
  3786. <End Role="FmsManual" EntitySet="FmsManual" />
  3787. </AssociationSet>
  3788. <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
  3789. <End Role="FmsManual" EntitySet="FmsManual" />
  3790. <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
  3791. </AssociationSet>
  3792. <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
  3793. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  3794. <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
  3795. </AssociationSet>
  3796. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
  3797. <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
  3798. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3799. </AssociationSet>
  3800. <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
  3801. <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
  3802. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3803. </AssociationSet>
  3804. <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
  3805. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  3806. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3807. </AssociationSet>
  3808. <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
  3809. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3810. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3811. </AssociationSet>
  3812. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
  3813. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3814. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  3815. </AssociationSet>
  3816. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
  3817. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  3818. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  3819. </AssociationSet>
  3820. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
  3821. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  3822. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  3823. </AssociationSet>
  3824. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
  3825. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  3826. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  3827. </AssociationSet>
  3828. <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
  3829. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  3830. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3831. </AssociationSet>
  3832. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
  3833. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  3834. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  3835. </AssociationSet>
  3836. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
  3837. <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
  3838. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3839. </AssociationSet>
  3840. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
  3841. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  3842. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3843. </AssociationSet>
  3844. <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
  3845. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3846. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  3847. </AssociationSet>
  3848. <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
  3849. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  3850. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  3851. </AssociationSet>
  3852. <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
  3853. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  3854. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3855. </AssociationSet>
  3856. <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
  3857. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3858. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  3859. </AssociationSet>
  3860. <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
  3861. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  3862. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3863. </AssociationSet>
  3864. <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
  3865. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3866. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  3867. </AssociationSet>
  3868. <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
  3869. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3870. <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
  3871. </AssociationSet>
  3872. <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
  3873. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3874. <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
  3875. </AssociationSet>
  3876. <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
  3877. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3878. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  3879. </AssociationSet>
  3880. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
  3881. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  3882. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  3883. </AssociationSet>
  3884. <EntitySet Name="FmsDailyCheckReport" EntityType="iBemsModel.FmsDailyCheckReport" />
  3885. <EntitySet Name="FmsFacilityOperationReport" EntityType="iBemsModel.FmsFacilityOperationReport" />
  3886. <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="iBemsModel.FK_FmsDailyCheckReport_CmUser">
  3887. <End Role="CmUser" EntitySet="CmUser" />
  3888. <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
  3889. </AssociationSet>
  3890. <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="iBemsModel.FK_FmsFacilityOperationReport_CmUser">
  3891. <End Role="CmUser" EntitySet="CmUser" />
  3892. <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
  3893. </AssociationSet>
  3894. <EntitySet Name="FmsBudgetDetail" EntityType="iBemsModel.FmsBudgetDetail" />
  3895. <EntitySet Name="FmsBudgetDetailExecution" EntityType="iBemsModel.FmsBudgetDetailExecution" />
  3896. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudget">
  3897. <End Role="FmsBudget" EntitySet="FmsBudget" />
  3898. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  3899. </AssociationSet>
  3900. <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass">
  3901. <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
  3902. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  3903. </AssociationSet>
  3904. <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  3905. <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
  3906. <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
  3907. </AssociationSet>
  3908. <EntitySet Name="FmsMonthlyReport" EntityType="iBemsModel.FmsMonthlyReport" />
  3909. <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="iBemsModel.FK_FmsMonthlyReport_CmUser">
  3910. <End Role="CmUser" EntitySet="CmUser" />
  3911. <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
  3912. </AssociationSet>
  3913. <EntitySet Name="FmsInvestmentCost" EntityType="iBemsModel.FmsInvestmentCost" />
  3914. <EntitySet Name="CmHolidayWeekend" EntityType="iBemsModel.CmHolidayWeekend" />
  3915. <AssociationSet Name="FK_FmsAccident_CmCompany" Association="iBemsModel.FK_FmsAccident_CmCompany">
  3916. <End Role="CmCompany" EntitySet="CmCompany" />
  3917. <End Role="FmsAccident" EntitySet="FmsAccident" />
  3918. </AssociationSet>
  3919. <EntitySet Name="FmsMaterial" EntityType="iBemsModel.FmsMaterial" />
  3920. <EntitySet Name="FmsMaterialRelease" EntityType="iBemsModel.FmsMaterialRelease" />
  3921. <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="iBemsModel.FK_FmsMaterial_CmBusinessField">
  3922. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3923. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3924. </AssociationSet>
  3925. <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="iBemsModel.FK_FmsMaterialRelease_CmBusinessField">
  3926. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  3927. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  3928. </AssociationSet>
  3929. <AssociationSet Name="FK_FmsMaterial_CmFile" Association="iBemsModel.FK_FmsMaterial_CmFile">
  3930. <End Role="CmFile" EntitySet="CmFile" />
  3931. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3932. </AssociationSet>
  3933. <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="iBemsModel.FK_FmsMaterialRelease_CmUser">
  3934. <End Role="CmUser" EntitySet="CmUser" />
  3935. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  3936. </AssociationSet>
  3937. <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="iBemsModel.FK_FmsMaterialRelease_CmUser1">
  3938. <End Role="CmUser" EntitySet="CmUser" />
  3939. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  3940. </AssociationSet>
  3941. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  3942. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  3943. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3944. </AssociationSet>
  3945. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  3946. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  3947. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3948. </AssociationSet>
  3949. <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  3950. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  3951. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3952. </AssociationSet>
  3953. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation">
  3954. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  3955. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3956. </AssociationSet>
  3957. <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType">
  3958. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  3959. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3960. </AssociationSet>
  3961. <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany">
  3962. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  3963. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3964. </AssociationSet>
  3965. <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse">
  3966. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  3967. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3968. </AssociationSet>
  3969. <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  3970. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3971. <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
  3972. </AssociationSet>
  3973. <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  3974. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3975. <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
  3976. </AssociationSet>
  3977. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterial">
  3978. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3979. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  3980. </AssociationSet>
  3981. <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="iBemsModel.FK_FmsMaterialStored_FmsMaterial">
  3982. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3983. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  3984. </AssociationSet>
  3985. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  3986. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  3987. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  3988. </AssociationSet>
  3989. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  3990. <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
  3991. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  3992. </AssociationSet>
  3993. <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  3994. <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
  3995. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  3996. </AssociationSet>
  3997. <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult">
  3998. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  3999. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  4000. </AssociationSet>
  4001. <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  4002. <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
  4003. <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
  4004. </AssociationSet>
  4005. <EntitySet Name="CmPatrolType" EntityType="iBemsModel.CmPatrolType" />
  4006. <EntitySet Name="CmPatrolGroup" EntityType="iBemsModel.CmPatrolGroup" />
  4007. <EntitySet Name="CmPatrolGroupUser" EntityType="iBemsModel.CmPatrolGroupUser" />
  4008. <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup">
  4009. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  4010. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  4011. </AssociationSet>
  4012. <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="iBemsModel.FK_CmPatrolGroupUser_CmUser">
  4013. <End Role="CmUser" EntitySet="CmUser" />
  4014. <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
  4015. </AssociationSet>
  4016. <EntitySet Name="CmPatrolPos" EntityType="iBemsModel.CmPatrolPos" />
  4017. <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="iBemsModel.FK_CmPatrolPos_CmBuilding">
  4018. <End Role="CmBuilding" EntitySet="CmBuilding" />
  4019. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  4020. </AssociationSet>
  4021. <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="iBemsModel.FK_CmPatrolPos_CmFloor">
  4022. <End Role="CmFloor" EntitySet="CmFloor" />
  4023. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  4024. </AssociationSet>
  4025. <EntitySet Name="CmPatrolCourse" EntityType="iBemsModel.CmPatrolCourse" />
  4026. <EntitySet Name="CmPatrolCoursePos" EntityType="iBemsModel.CmPatrolCoursePos" />
  4027. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse">
  4028. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  4029. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  4030. </AssociationSet>
  4031. <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos">
  4032. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  4033. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  4034. </AssociationSet>
  4035. <EntitySet Name="CmPatrolPlan" EntityType="iBemsModel.CmPatrolPlan" />
  4036. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse">
  4037. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  4038. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  4039. </AssociationSet>
  4040. <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup">
  4041. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  4042. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  4043. </AssociationSet>
  4044. <EntitySet Name="CmPatrolHistoryPos" EntityType="iBemsModel.CmPatrolHistoryPos" />
  4045. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos">
  4046. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  4047. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  4048. </AssociationSet>
  4049. <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType">
  4050. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  4051. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  4052. </AssociationSet>
  4053. <EntitySet Name="BemsPeakInfo" EntityType="iBemsModel.BemsPeakInfo" />
  4054. <EntitySet Name="BemsPeakHistory" EntityType="iBemsModel.BemsPeakHistory" />
  4055. <EntitySet Name="CmPatrolSchedule" EntityType="iBemsModel.CmPatrolSchedule" />
  4056. <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan">
  4057. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  4058. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  4059. </AssociationSet>
  4060. <EntitySet Name="BemsNoticePriceBase" EntityType="iBemsModel.BemsNoticePriceBase" />
  4061. <EntitySet Name="BemsNoticePriceContractType" EntityType="iBemsModel.BemsNoticePriceContractType" />
  4062. <EntitySet Name="BemsNoticePriceDetail" EntityType="iBemsModel.BemsNoticePriceDetail" />
  4063. <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  4064. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  4065. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  4066. </AssociationSet>
  4067. <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  4068. <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
  4069. <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
  4070. </AssociationSet>
  4071. <EntitySet Name="BemsPeakFacility" EntityType="iBemsModel.BemsPeakFacility" />
  4072. <EntitySet Name="CmSite" EntityType="iBemsModel.CmSite" />
  4073. <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="iBemsModel.FK_BemsPeakHIstory_CmSite">
  4074. <End Role="CmSite" EntitySet="CmSite" />
  4075. <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
  4076. </AssociationSet>
  4077. <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="iBemsModel.FK_BemsPeakInfo_CmSite">
  4078. <End Role="CmSite" EntitySet="CmSite" />
  4079. <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
  4080. </AssociationSet>
  4081. <AssociationSet Name="FK__CmBuildin__SiteI__3BFFE745" Association="iBemsModel.FK__CmBuildin__SiteI__3BFFE745">
  4082. <End Role="CmSite" EntitySet="CmSite" />
  4083. <End Role="CmBuilding" EntitySet="CmBuilding" />
  4084. </AssociationSet>
  4085. <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="iBemsModel.FK__CmCompany__SiteI__336AA144">
  4086. <End Role="CmSite" EntitySet="CmSite" />
  4087. <End Role="CmCompany" EntitySet="CmCompany" />
  4088. </AssociationSet>
  4089. <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="iBemsModel.FK_CmFacilityTempSet_CmSite">
  4090. <End Role="CmSite" EntitySet="CmSite" />
  4091. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  4092. </AssociationSet>
  4093. <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="iBemsModel.FK__CmFile__SiteId__2759D01A">
  4094. <End Role="CmSite" EntitySet="CmSite" />
  4095. <End Role="CmFile" EntitySet="CmFile" />
  4096. </AssociationSet>
  4097. <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5">
  4098. <End Role="CmSite" EntitySet="CmSite" />
  4099. <End Role="CmHoliday" EntitySet="CmHoliday" />
  4100. </AssociationSet>
  4101. <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="iBemsModel.FK__CmHoliday__SiteI__65AC084E">
  4102. <End Role="CmSite" EntitySet="CmSite" />
  4103. <End Role="CmHoliday" EntitySet="CmHoliday" />
  4104. </AssociationSet>
  4105. <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="iBemsModel.FK__CmHoliday__SiteI__10766AC2">
  4106. <End Role="CmSite" EntitySet="CmSite" />
  4107. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  4108. </AssociationSet>
  4109. <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="iBemsModel.FK__CmHoliday__SiteI__66A02C87">
  4110. <End Role="CmSite" EntitySet="CmSite" />
  4111. <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
  4112. </AssociationSet>
  4113. <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="iBemsModel.FK__CmHoliday__SiteI__0D99FE17">
  4114. <End Role="CmSite" EntitySet="CmSite" />
  4115. <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
  4116. </AssociationSet>
  4117. <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="iBemsModel.FK_CmPatrolCourse_CmSite">
  4118. <End Role="CmSite" EntitySet="CmSite" />
  4119. <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
  4120. </AssociationSet>
  4121. <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="iBemsModel.FK_CmPatrolCoursePos_CmSite">
  4122. <End Role="CmSite" EntitySet="CmSite" />
  4123. <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
  4124. </AssociationSet>
  4125. <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="iBemsModel.FK_CmPatrolGroup_CmSite">
  4126. <End Role="CmSite" EntitySet="CmSite" />
  4127. <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
  4128. </AssociationSet>
  4129. <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="iBemsModel.FK_CmPatrolHistoryPos_CmSite">
  4130. <End Role="CmSite" EntitySet="CmSite" />
  4131. <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
  4132. </AssociationSet>
  4133. <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="iBemsModel.FK_CmPatrolPlan_CmSite">
  4134. <End Role="CmSite" EntitySet="CmSite" />
  4135. <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
  4136. </AssociationSet>
  4137. <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="iBemsModel.FK_CmPatrolPos_CmSite">
  4138. <End Role="CmSite" EntitySet="CmSite" />
  4139. <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
  4140. </AssociationSet>
  4141. <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="iBemsModel.FK_CmPatrolSchedule_CmSite">
  4142. <End Role="CmSite" EntitySet="CmSite" />
  4143. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  4144. </AssociationSet>
  4145. <AssociationSet Name="FK_CmPatrolType_CmSite" Association="iBemsModel.FK_CmPatrolType_CmSite">
  4146. <End Role="CmSite" EntitySet="CmSite" />
  4147. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  4148. </AssociationSet>
  4149. <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="iBemsModel.FK__CmPositio__SiteI__6A70BD6B">
  4150. <End Role="CmSite" EntitySet="CmSite" />
  4151. <End Role="CmPosition" EntitySet="CmPosition" />
  4152. </AssociationSet>
  4153. <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="iBemsModel.FK__CmUserPos__SiteI__44952D46">
  4154. <End Role="CmSite" EntitySet="CmSite" />
  4155. <End Role="CmPosition" EntitySet="CmPosition" />
  4156. </AssociationSet>
  4157. <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="iBemsModel.FK__CmUserGro__SiteI__53D770D6">
  4158. <End Role="CmSite" EntitySet="CmSite" />
  4159. <End Role="CmUserGroup" EntitySet="CmUserGroup" />
  4160. </AssociationSet>
  4161. <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D">
  4162. <End Role="CmSite" EntitySet="CmSite" />
  4163. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  4164. </AssociationSet>
  4165. <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476">
  4166. <End Role="CmSite" EntitySet="CmSite" />
  4167. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  4168. </AssociationSet>
  4169. <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF">
  4170. <End Role="CmSite" EntitySet="CmSite" />
  4171. <End Role="FmsDrawing" EntitySet="FmsDrawing" />
  4172. </AssociationSet>
  4173. <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="iBemsModel.FK__FmsDrawin__SiteI__6F357288">
  4174. <End Role="CmSite" EntitySet="CmSite" />
  4175. <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
  4176. </AssociationSet>
  4177. <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="iBemsModel.FK__FmsDrawin__SiteI__702996C1">
  4178. <End Role="CmSite" EntitySet="CmSite" />
  4179. <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
  4180. </AssociationSet>
  4181. <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="iBemsModel.FK__FmsFacilityCodeClass__CmSite">
  4182. <End Role="CmSite" EntitySet="CmSite" />
  4183. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  4184. </AssociationSet>
  4185. <AssociationSet Name="FK__FmsLicense__CmSite" Association="iBemsModel.FK__FmsLicense__CmSite">
  4186. <End Role="CmSite" EntitySet="CmSite" />
  4187. <End Role="FmsLicense" EntitySet="FmsLicense" />
  4188. </AssociationSet>
  4189. <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="iBemsModel.FK__FmsMaterialCarriedForward__CmSite">
  4190. <End Role="CmSite" EntitySet="CmSite" />
  4191. <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
  4192. </AssociationSet>
  4193. <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="iBemsModel.FK__FmsMaterialCodeClass__CmSite">
  4194. <End Role="CmSite" EntitySet="CmSite" />
  4195. <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
  4196. </AssociationSet>
  4197. <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="iBemsModel.FK__FmsMaterialCodeLocation__CmSite">
  4198. <End Role="CmSite" EntitySet="CmSite" />
  4199. <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
  4200. </AssociationSet>
  4201. <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="iBemsModel.FK__FmsMaterialCodeType__CmSite">
  4202. <End Role="CmSite" EntitySet="CmSite" />
  4203. <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
  4204. </AssociationSet>
  4205. <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="iBemsModel.FK__FmsMaterialOrder__CmSite">
  4206. <End Role="CmSite" EntitySet="CmSite" />
  4207. <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
  4208. </AssociationSet>
  4209. <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite">
  4210. <End Role="CmSite" EntitySet="CmSite" />
  4211. <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
  4212. </AssociationSet>
  4213. <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="iBemsModel.FK__FmsMaterialStored__CmSite">
  4214. <End Role="CmSite" EntitySet="CmSite" />
  4215. <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
  4216. </AssociationSet>
  4217. <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="iBemsModel.FK__FmsMaterialTradeCompany__CmSite">
  4218. <End Role="CmSite" EntitySet="CmSite" />
  4219. <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
  4220. </AssociationSet>
  4221. <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="iBemsModel.FK__FmsMaterialWarehouse__CmSite">
  4222. <End Role="CmSite" EntitySet="CmSite" />
  4223. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  4224. </AssociationSet>
  4225. <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite">
  4226. <End Role="CmSite" EntitySet="CmSite" />
  4227. <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
  4228. </AssociationSet>
  4229. <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite">
  4230. <End Role="CmSite" EntitySet="CmSite" />
  4231. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  4232. </AssociationSet>
  4233. <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="iBemsModel.FK__FmsWorkCodeEmergency__CmSite">
  4234. <End Role="CmSite" EntitySet="CmSite" />
  4235. <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
  4236. </AssociationSet>
  4237. <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite">
  4238. <End Role="CmSite" EntitySet="CmSite" />
  4239. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  4240. </AssociationSet>
  4241. <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  4242. <End Role="CmSite" EntitySet="CmSite" />
  4243. <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
  4244. </AssociationSet>
  4245. <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="iBemsModel.FK__FmsWorkOrder__CmSite">
  4246. <End Role="CmSite" EntitySet="CmSite" />
  4247. <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
  4248. </AssociationSet>
  4249. <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="iBemsModel.FK__FmsWorkRequest__CmSite">
  4250. <End Role="CmSite" EntitySet="CmSite" />
  4251. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  4252. </AssociationSet>
  4253. <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="iBemsModel.FK_CmZoneTempHumiSet_CmSite">
  4254. <End Role="CmSite" EntitySet="CmSite" />
  4255. <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
  4256. </AssociationSet>
  4257. <AssociationSet Name="FK_FmsMaterial_CmSite" Association="iBemsModel.FK_FmsMaterial_CmSite">
  4258. <End Role="CmSite" EntitySet="CmSite" />
  4259. <End Role="FmsMaterial" EntitySet="FmsMaterial" />
  4260. </AssociationSet>
  4261. <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="iBemsModel.FK_FmsMaterialRelease_CmSite">
  4262. <End Role="CmSite" EntitySet="CmSite" />
  4263. <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
  4264. </AssociationSet>
  4265. <EntitySet Name="FmsReport" EntityType="iBemsModel.FmsReport" />
  4266. <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="iBemsModel.FK_FmsReport_CmBusinessField">
  4267. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  4268. <End Role="FmsReport" EntitySet="FmsReport" />
  4269. </AssociationSet>
  4270. <AssociationSet Name="FK_FmsReport_CmFile" Association="iBemsModel.FK_FmsReport_CmFile">
  4271. <End Role="CmFile" EntitySet="CmFile" />
  4272. <End Role="FmsReport" EntitySet="FmsReport" />
  4273. </AssociationSet>
  4274. <AssociationSet Name="FK_FmsReport_CmSite" Association="iBemsModel.FK_FmsReport_CmSite">
  4275. <End Role="CmSite" EntitySet="CmSite" />
  4276. <End Role="FmsReport" EntitySet="FmsReport" />
  4277. </AssociationSet>
  4278. <AssociationSet Name="FK_FmsReport_CmUser" Association="iBemsModel.FK_FmsReport_CmUser">
  4279. <End Role="CmUser" EntitySet="CmUser" />
  4280. <End Role="FmsReport" EntitySet="FmsReport" />
  4281. </AssociationSet>
  4282. <AssociationSet Name="FK_FmsReport_CmUser1" Association="iBemsModel.FK_FmsReport_CmUser1">
  4283. <End Role="CmUser" EntitySet="CmUser" />
  4284. <End Role="FmsReport" EntitySet="FmsReport" />
  4285. </AssociationSet>
  4286. <AssociationSet Name="FK_FmsReport_CmUser2" Association="iBemsModel.FK_FmsReport_CmUser2">
  4287. <End Role="CmUser" EntitySet="CmUser" />
  4288. <End Role="FmsReport" EntitySet="FmsReport" />
  4289. </AssociationSet>
  4290. <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="iBemsModel.CmServiceEnergyCalcMonth" />
  4291. <EntitySet Name="CmServiceEnergyCalcDay" EntityType="iBemsModel.CmServiceEnergyCalcDay" />
  4292. <EntitySet Name="CmPatrolHistory" EntityType="iBemsModel.CmPatrolHistory" />
  4293. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule">
  4294. <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
  4295. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  4296. </AssociationSet>
  4297. <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolType">
  4298. <End Role="CmPatrolType" EntitySet="CmPatrolType" />
  4299. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  4300. </AssociationSet>
  4301. <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="iBemsModel.FK_CmPatrolHistory_CmSite">
  4302. <End Role="CmSite" EntitySet="CmSite" />
  4303. <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
  4304. </AssociationSet>
  4305. <EntitySet Name="CmMenu" EntityType="iBemsModel.CmMenu" />
  4306. <EntitySet Name="BemsChartInfo" EntityType="iBemsModel.BemsChartInfo" />
  4307. <EntitySet Name="BemsReportFormat" EntityType="iBemsModel.BemsReportFormat" />
  4308. <EntitySet Name="FmsWorkSchedule" EntityType="iBemsModel.FmsWorkSchedule" />
  4309. <AssociationSet Name="FK_CmMenu_CmSite" Association="iBemsModel.FK_CmMenu_CmSite">
  4310. <End Role="CmSite" EntitySet="CmSite" />
  4311. <End Role="CmMenu" EntitySet="CmMenu" />
  4312. </AssociationSet>
  4313. <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="iBemsModel.FK_BemsChartInfo_BemsFacilityType">
  4314. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  4315. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  4316. </AssociationSet>
  4317. <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="iBemsModel.FK__FmsWorkSchedule__CmBusinessField">
  4318. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  4319. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4320. </AssociationSet>
  4321. <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="iBemsModel.FK__FmsWorkSchedule__CmUser">
  4322. <End Role="CmUser" EntitySet="CmUser" />
  4323. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4324. </AssociationSet>
  4325. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  4326. <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
  4327. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4328. </AssociationSet>
  4329. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  4330. <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
  4331. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4332. </AssociationSet>
  4333. <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  4334. <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
  4335. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4336. </AssociationSet>
  4337. <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule">
  4338. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4339. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  4340. </AssociationSet>
  4341. <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  4342. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4343. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  4344. </AssociationSet>
  4345. <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile">
  4346. <End Role="CmFile" EntitySet="CmFile" />
  4347. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  4348. </AssociationSet>
  4349. <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile1" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1">
  4350. <End Role="CmFile" EntitySet="CmFile" />
  4351. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  4352. </AssociationSet>
  4353. <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="iBemsModel.FK_BemsChartInfo_CmSite">
  4354. <End Role="CmSite" EntitySet="CmSite" />
  4355. <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
  4356. </AssociationSet>
  4357. <EntitySet Name="BemsPeopleIncrease" EntityType="iBemsModel.BemsPeopleIncrease" />
  4358. <EntitySet Name="BemsPriceCode" EntityType="iBemsModel.BemsPriceCode" />
  4359. <EntitySet Name="BemsPriceFormula" EntityType="iBemsModel.BemsPriceFormula" />
  4360. <EntitySet Name="BemsPriceMeta" EntityType="iBemsModel.BemsPriceMeta" />
  4361. <EntitySet Name="BemsPriceType" EntityType="iBemsModel.BemsPriceType" />
  4362. <EntitySet Name="BemsRentalRate" EntityType="iBemsModel.BemsRentalRate" />
  4363. <EntitySet Name="BemsSitePrice" EntityType="iBemsModel.BemsSitePrice" />
  4364. <EntitySet Name="BemsSitePriceHistory" EntityType="iBemsModel.BemsSitePriceHistory" />
  4365. <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="iBemsModel.FK_BemsPriceFormula_BemsFormula">
  4366. <End Role="BemsFormula" EntitySet="BemsFormula" />
  4367. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  4368. </AssociationSet>
  4369. <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="iBemsModel.FK_BemsPeopleIncrease_CmSite">
  4370. <End Role="CmSite" EntitySet="CmSite" />
  4371. <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
  4372. </AssociationSet>
  4373. <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="iBemsModel.FK_BemsSitePrice_BemsPriceCode">
  4374. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  4375. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  4376. </AssociationSet>
  4377. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode">
  4378. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  4379. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  4380. </AssociationSet>
  4381. <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="iBemsModel.FK_BemsPriceFormula_BemsPriceType">
  4382. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  4383. <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
  4384. </AssociationSet>
  4385. <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="iBemsModel.FK_BemsPriceMeta_BemsPriceType">
  4386. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  4387. <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
  4388. </AssociationSet>
  4389. <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType">
  4390. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  4391. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  4392. </AssociationSet>
  4393. <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="iBemsModel.FK_BemsRentalRate_CmSite">
  4394. <End Role="CmSite" EntitySet="CmSite" />
  4395. <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
  4396. </AssociationSet>
  4397. <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="iBemsModel.FK_BemsSitePrice_CmSite1">
  4398. <End Role="CmSite" EntitySet="CmSite" />
  4399. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  4400. </AssociationSet>
  4401. <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="iBemsModel.FK_BemsSitePriceHistory_CmSite">
  4402. <End Role="CmSite" EntitySet="CmSite" />
  4403. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  4404. </AssociationSet>
  4405. <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="iBemsModel.FK_BemsSitePrice_BemsPriceType">
  4406. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  4407. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  4408. </AssociationSet>
  4409. <EntitySet Name="BemsMonitoringPointConfig" EntityType="iBemsModel.BemsMonitoringPointConfig" />
  4410. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1">
  4411. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  4412. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  4413. </AssociationSet>
  4414. <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  4415. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  4416. <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
  4417. </AssociationSet>
  4418. <EntitySet Name="BemsAlarmSetting" EntityType="iBemsModel.BemsAlarmSetting" />
  4419. <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType">
  4420. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  4421. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  4422. </AssociationSet>
  4423. <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="iBemsModel.FK_BemsAlarmSetting_CmSite1">
  4424. <End Role="CmSite" EntitySet="CmSite" />
  4425. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  4426. </AssociationSet>
  4427. <EntitySet Name="BemsAlarmLog" EntityType="iBemsModel.BemsAlarmLog" />
  4428. <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting">
  4429. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  4430. <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
  4431. </AssociationSet>
  4432. <EntitySet Name="BemsAlarmGroup" EntityType="iBemsModel.BemsAlarmGroup" />
  4433. <EntitySet Name="BemsAlarmGroupUser" EntityType="iBemsModel.BemsAlarmGroupUser" />
  4434. <EntitySet Name="BemsEnergyCost" EntityType="iBemsModel.BemsEnergyCost" />
  4435. <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="iBemsModel.BemsEnergyConfigPercentMonth" />
  4436. <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="iBemsModel.BemsEnergyConfigPercentWeek" />
  4437. <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6">
  4438. <End Role="CmSite" EntitySet="CmSite" />
  4439. <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
  4440. </AssociationSet>
  4441. <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1">
  4442. <End Role="CmSite" EntitySet="CmSite" />
  4443. <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
  4444. </AssociationSet>
  4445. <EntitySet Name="BemsEnergyDaily" EntityType="iBemsModel.BemsEnergyDaily" />
  4446. <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="iBemsModel.FK__BemsEnergyDaily__BemsServiceType">
  4447. <End Role="BemsServiceType" EntitySet="BemsServiceType" />
  4448. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  4449. </AssociationSet>
  4450. <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="iBemsModel.FK__BemsEnergyDaily__CmBuilding">
  4451. <End Role="CmBuilding" EntitySet="CmBuilding" />
  4452. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  4453. </AssociationSet>
  4454. <EntitySet Name="BemsEnergyDailyRegression" EntityType="iBemsModel.BemsEnergyDailyRegression" />
  4455. <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="iBemsModel.FK_BemsEnergyDailyRegression_CmSite">
  4456. <End Role="CmSite" EntitySet="CmSite" />
  4457. <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
  4458. </AssociationSet>
  4459. <EntitySet Name="WeatherDongNaeForecast" EntityType="iBemsModel.WeatherDongNaeForecast" />
  4460. <EntitySet Name="FmsEquipmentRentInfo" EntityType="iBemsModel.FmsEquipmentRentInfo" />
  4461. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser">
  4462. <End Role="CmUser" EntitySet="CmUser" />
  4463. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  4464. </AssociationSet>
  4465. <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1">
  4466. <End Role="CmUser" EntitySet="CmUser" />
  4467. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  4468. </AssociationSet>
  4469. <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  4470. <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
  4471. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  4472. </AssociationSet>
  4473. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  4474. <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
  4475. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  4476. </AssociationSet>
  4477. <EntitySet Name="BemsControlAHUTempConfig" EntityType="iBemsModel.BemsControlAHUTempConfig" />
  4478. <EntitySet Name="BemsFuelType" EntityType="iBemsModel.BemsFuelType" />
  4479. <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="iBemsModel.FK__BemsEnergyDaily__BemsFuelType">
  4480. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4481. <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
  4482. </AssociationSet>
  4483. <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="iBemsModel.FK__BemsFactorCo2__BemsFuelType">
  4484. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4485. <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
  4486. </AssociationSet>
  4487. <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="iBemsModel.FK__BemsFactorToe__BemsFuelType">
  4488. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4489. <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
  4490. </AssociationSet>
  4491. <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType">
  4492. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4493. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  4494. </AssociationSet>
  4495. <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType">
  4496. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4497. <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
  4498. </AssociationSet>
  4499. <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType">
  4500. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4501. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  4502. </AssociationSet>
  4503. <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="iBemsModel.FK_BemsPriceCode_BemsFuelType">
  4504. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4505. <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
  4506. </AssociationSet>
  4507. <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="iBemsModel.FK_BemsPriceType_BemsFuelType1">
  4508. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4509. <End Role="BemsPriceType" EntitySet="BemsPriceType" />
  4510. </AssociationSet>
  4511. <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="iBemsModel.FK_BemsSitePrice_BemsFuelType">
  4512. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4513. <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
  4514. </AssociationSet>
  4515. <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType">
  4516. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4517. <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
  4518. </AssociationSet>
  4519. <EntitySet Name="CmFacility" EntityType="iBemsModel.CmFacility" />
  4520. <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="iBemsModel.FK_BemsAlarmSetting_CmFacility">
  4521. <End Role="CmFacility" EntitySet="CmFacility" />
  4522. <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
  4523. </AssociationSet>
  4524. <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="iBemsModel.FK_BemsEnergyCost_CmFacility">
  4525. <End Role="CmFacility" EntitySet="CmFacility" />
  4526. <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
  4527. </AssociationSet>
  4528. <AssociationSet Name="FK__CmFacility__BemsFacilityType" Association="iBemsModel.FK__CmFacility__BemsFacilityType">
  4529. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  4530. <End Role="CmFacility" EntitySet="CmFacility" />
  4531. </AssociationSet>
  4532. <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="iBemsModel.FK_BemsFormulaParameter_CmFacility">
  4533. <End Role="CmFacility" EntitySet="CmFacility" />
  4534. <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
  4535. </AssociationSet>
  4536. <AssociationSet Name="FK_CmFacility_BemsFuelType" Association="iBemsModel.FK_CmFacility_BemsFuelType">
  4537. <End Role="BemsFuelType" EntitySet="BemsFuelType" />
  4538. <End Role="CmFacility" EntitySet="CmFacility" />
  4539. </AssociationSet>
  4540. <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="iBemsModel.FK_BemsMonitoringPoint_CmFacility">
  4541. <End Role="CmFacility" EntitySet="CmFacility" />
  4542. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  4543. </AssociationSet>
  4544. <AssociationSet Name="FK_CmFacility_BemsNoticePriceContractType" Association="iBemsModel.FK_CmFacility_BemsNoticePriceContractType">
  4545. <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
  4546. <End Role="CmFacility" EntitySet="CmFacility" />
  4547. </AssociationSet>
  4548. <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="iBemsModel.FK_BemsPeakFacility_CmFacility">
  4549. <End Role="CmFacility" EntitySet="CmFacility" />
  4550. <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
  4551. </AssociationSet>
  4552. <AssociationSet Name="FK__CmFacility__CmBuilding" Association="iBemsModel.FK__CmFacility__CmBuilding">
  4553. <End Role="CmBuilding" EntitySet="CmBuilding" />
  4554. <End Role="CmFacility" EntitySet="CmFacility" />
  4555. </AssociationSet>
  4556. <AssociationSet Name="FK__CmFacility__74444068" Association="iBemsModel.FK__CmFacility__74444068">
  4557. <End Role="CmFloor" EntitySet="CmFloor" />
  4558. <End Role="CmFacility" EntitySet="CmFacility" />
  4559. </AssociationSet>
  4560. <AssociationSet Name="FK__CmFacility__753864A1" Association="iBemsModel.FK__CmFacility__753864A1">
  4561. <End Role="CmUser" EntitySet="CmUser" />
  4562. <End Role="CmFacility" EntitySet="CmFacility" />
  4563. </AssociationSet>
  4564. <AssociationSet Name="FK__CmFacility__762C88DA" Association="iBemsModel.FK__CmFacility__762C88DA">
  4565. <End Role="CmUser" EntitySet="CmUser" />
  4566. <End Role="CmFacility" EntitySet="CmFacility" />
  4567. </AssociationSet>
  4568. <AssociationSet Name="FK__CmFacility__CmFacility" Association="iBemsModel.FK__CmFacility__CmFacility">
  4569. <End Role="CmFacility" EntitySet="CmFacility" />
  4570. <End Role="CmFacility1" EntitySet="CmFacility" />
  4571. </AssociationSet>
  4572. <AssociationSet Name="FK__CmFacility__CmFile" Association="iBemsModel.FK__CmFacility__CmFile">
  4573. <End Role="CmFile" EntitySet="CmFile" />
  4574. <End Role="CmFacility" EntitySet="CmFacility" />
  4575. </AssociationSet>
  4576. <AssociationSet Name="FK__CmFacility__CmZone" Association="iBemsModel.FK__CmFacility__CmZone">
  4577. <End Role="CmZone" EntitySet="CmZone" />
  4578. <End Role="CmFacility" EntitySet="CmFacility" />
  4579. </AssociationSet>
  4580. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsFirst" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst">
  4581. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  4582. <End Role="CmFacility" EntitySet="CmFacility" />
  4583. </AssociationSet>
  4584. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsSecond" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond">
  4585. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  4586. <End Role="CmFacility" EntitySet="CmFacility" />
  4587. </AssociationSet>
  4588. <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsThird" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird">
  4589. <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
  4590. <End Role="CmFacility" EntitySet="CmFacility" />
  4591. </AssociationSet>
  4592. <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="iBemsModel.FK__CmFacilityFile__7720AD13">
  4593. <End Role="CmFacility" EntitySet="CmFacility" />
  4594. <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
  4595. </AssociationSet>
  4596. <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="iBemsModel.FK__CmFacilityManual__79FD19BE">
  4597. <End Role="CmFacility" EntitySet="CmFacility" />
  4598. <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
  4599. </AssociationSet>
  4600. <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="iBemsModel.FK__FmsFacilityOpera__725BF7F6">
  4601. <End Role="CmFacility" EntitySet="CmFacility" />
  4602. <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
  4603. </AssociationSet>
  4604. <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility">
  4605. <End Role="CmFacility" EntitySet="CmFacility" />
  4606. <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
  4607. </AssociationSet>
  4608. <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="iBemsModel.FK__FmsWorkResultToFacility__CmFacility">
  4609. <End Role="CmFacility" EntitySet="CmFacility" />
  4610. <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
  4611. </AssociationSet>
  4612. <AssociationSet Name="FK_CmFacility_CmUser" Association="iBemsModel.FK_CmFacility_CmUser">
  4613. <End Role="CmUser" EntitySet="CmUser" />
  4614. <End Role="CmFacility" EntitySet="CmFacility" />
  4615. </AssociationSet>
  4616. <AssociationSet Name="FK_CmFacility_CmUser1" Association="iBemsModel.FK_CmFacility_CmUser1">
  4617. <End Role="CmUser" EntitySet="CmUser" />
  4618. <End Role="CmFacility" EntitySet="CmFacility" />
  4619. </AssociationSet>
  4620. <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="iBemsModel.FK_CmFacilityTempSet_CmFacility">
  4621. <End Role="CmFacility" EntitySet="CmFacility" />
  4622. <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
  4623. </AssociationSet>
  4624. <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility">
  4625. <End Role="CmFacility" EntitySet="CmFacility" />
  4626. <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
  4627. </AssociationSet>
  4628. <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility">
  4629. <End Role="CmFacility" EntitySet="CmFacility" />
  4630. <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
  4631. </AssociationSet>
  4632. <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility">
  4633. <End Role="CmFacility" EntitySet="CmFacility" />
  4634. <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
  4635. </AssociationSet>
  4636. <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="iBemsModel.BemsMonitoringPointHistory15minRawData" />
  4637. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  4638. <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
  4639. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  4640. </AssociationSet>
  4641. <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  4642. <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
  4643. <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
  4644. </AssociationSet>
  4645. <EntitySet Name="FmsDailyReport" EntityType="iBemsModel.FmsDailyReport" />
  4646. <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="iBemsModel.FK_FmsDailyReport_CmBusinessField">
  4647. <End Role="CmBusinessField" EntitySet="CmBusinessField" />
  4648. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  4649. </AssociationSet>
  4650. <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="iBemsModel.FK_FmsDailyReport_CmUser">
  4651. <End Role="CmUser" EntitySet="CmUser" />
  4652. <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
  4653. </AssociationSet>
  4654. <EntitySet Name="BemsPeakHistoryDaily" EntityType="iBemsModel.BemsPeakHistoryDaily" />
  4655. <EntitySet Name="FmsEquipment" EntityType="iBemsModel.FmsEquipment" />
  4656. <AssociationSet Name="FK_FmsEquipment_CmUser" Association="iBemsModel.FK_FmsEquipment_CmUser">
  4657. <End Role="CmUser" EntitySet="CmUser" />
  4658. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  4659. </AssociationSet>
  4660. <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType">
  4661. <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
  4662. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  4663. </AssociationSet>
  4664. <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse">
  4665. <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
  4666. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  4667. </AssociationSet>
  4668. <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment">
  4669. <End Role="FmsEquipment" EntitySet="FmsEquipment" />
  4670. <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
  4671. </AssociationSet>
  4672. <EntitySet Name="CmAlarmAdmin" EntityType="iBemsModel.CmAlarmAdmin" />
  4673. <EntitySet Name="BemsFloorStatus" EntityType="iBemsModel.BemsFloorStatus" />
  4674. <EntitySet Name="BemsReportHistory" EntityType="iBemsModel.BemsReportHistory" />
  4675. <EntitySet Name="CmPartner" EntityType="iBemsModel.CmPartner" />
  4676. <EntitySet Name="CmPartnerType" EntityType="iBemsModel.CmPartnerType" />
  4677. <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="iBemsModel.FK_CmPartnerType_CmPartner">
  4678. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  4679. <End Role="CmPartner" EntitySet="CmPartner" />
  4680. </AssociationSet>
  4681. <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="iBemsModel.FK_FmsConstruction_CmPartner">
  4682. <End Role="CmPartner" EntitySet="CmPartner" />
  4683. <End Role="FmsConstruction" EntitySet="FmsConstruction" />
  4684. </AssociationSet>
  4685. <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="iBemsModel.FK_FmsWorkRequest_CmPartner">
  4686. <End Role="CmPartner" EntitySet="CmPartner" />
  4687. <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
  4688. </AssociationSet>
  4689. <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="iBemsModel.FK_FmsWorkSchedule_CmPartner">
  4690. <End Role="CmPartner" EntitySet="CmPartner" />
  4691. <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
  4692. </AssociationSet>
  4693. <EntitySet Name="FmsContract" EntityType="iBemsModel.FmsContract" />
  4694. <AssociationSet Name="FK_FmsContract_CmPartner" Association="iBemsModel.FK_FmsContract_CmPartner">
  4695. <End Role="CmPartner" EntitySet="CmPartner" />
  4696. <End Role="FmsContract" EntitySet="FmsContract" />
  4697. </AssociationSet>
  4698. <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="iBemsModel.FK_FmsContract_CmPartnerType">
  4699. <End Role="CmPartnerType" EntitySet="CmPartnerType" />
  4700. <End Role="FmsContract" EntitySet="FmsContract" />
  4701. </AssociationSet>
  4702. <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="iBemsModel.FK_FmsContract_FmsContractClass">
  4703. <End Role="FmsContractClass" EntitySet="FmsContractClass" />
  4704. <End Role="FmsContract" EntitySet="FmsContract" />
  4705. </AssociationSet>
  4706. <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="iBemsModel.FK_FmsContract_FmsContractMethod">
  4707. <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
  4708. <End Role="FmsContract" EntitySet="FmsContract" />
  4709. </AssociationSet>
  4710. <AssociationSet Name="FK_FmsContract_FmsContractType" Association="iBemsModel.FK_FmsContract_FmsContractType">
  4711. <End Role="FmsContractType" EntitySet="FmsContractType" />
  4712. <End Role="FmsContract" EntitySet="FmsContract" />
  4713. </AssociationSet>
  4714. <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="iBemsModel.FK_FmsContract_FmsPaymentType">
  4715. <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
  4716. <End Role="FmsContract" EntitySet="FmsContract" />
  4717. </AssociationSet>
  4718. <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingDayAhead" />
  4719. <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingHourAhead" />
  4720. <EntitySet Name="BemsFloorPlan" EntityType="iBemsModel.BemsFloorPlan" />
  4721. <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="iBemsModel.BemsMonitoringPointWeatherForecasted" />
  4722. <EntitySet Name="BemsConfigData" EntityType="iBemsModel.BemsConfigData" />
  4723. <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="iBemsModel.BemsIceThermalStorageSimulation" />
  4724. </EntityContainer>
  4725. <EntityType Name="FmsDailyCheckReport">
  4726. <Key>
  4727. <PropertyRef Name="SiteId" />
  4728. <PropertyRef Name="DailyCheckReportId" />
  4729. </Key>
  4730. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4731. <Property Name="DailyCheckReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  4732. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  4733. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  4734. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  4735. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  4736. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="FmsDailyCheckReport" ToRole="CmUser" />
  4737. </EntityType>
  4738. <EntityType Name="FmsFacilityOperationReport">
  4739. <Key>
  4740. <PropertyRef Name="SiteId" />
  4741. <PropertyRef Name="FacilityOperationReportId" />
  4742. </Key>
  4743. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4744. <Property Name="FacilityOperationReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  4745. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  4746. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  4747. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  4748. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  4749. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="FmsFacilityOperationReport" ToRole="CmUser" />
  4750. </EntityType>
  4751. <Association Name="FK_FmsDailyCheckReport_CmUser">
  4752. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  4753. <End Type="iBemsModel.FmsDailyCheckReport" Role="FmsDailyCheckReport" Multiplicity="*" />
  4754. <ReferentialConstraint>
  4755. <Principal Role="CmUser">
  4756. <PropertyRef Name="SiteId" />
  4757. <PropertyRef Name="UserId" />
  4758. </Principal>
  4759. <Dependent Role="FmsDailyCheckReport">
  4760. <PropertyRef Name="SiteId" />
  4761. <PropertyRef Name="RegisterUserId" />
  4762. </Dependent>
  4763. </ReferentialConstraint>
  4764. </Association>
  4765. <Association Name="FK_FmsFacilityOperationReport_CmUser">
  4766. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  4767. <End Type="iBemsModel.FmsFacilityOperationReport" Role="FmsFacilityOperationReport" Multiplicity="*" />
  4768. <ReferentialConstraint>
  4769. <Principal Role="CmUser">
  4770. <PropertyRef Name="SiteId" />
  4771. <PropertyRef Name="UserId" />
  4772. </Principal>
  4773. <Dependent Role="FmsFacilityOperationReport">
  4774. <PropertyRef Name="SiteId" />
  4775. <PropertyRef Name="RegisterUserId" />
  4776. </Dependent>
  4777. </ReferentialConstraint>
  4778. </Association>
  4779. <EntityType Name="FmsBudgetDetail">
  4780. <Key>
  4781. <PropertyRef Name="SiteId" />
  4782. <PropertyRef Name="Year" />
  4783. <PropertyRef Name="BudgetClassId" />
  4784. <PropertyRef Name="ParentBudgetClassId" />
  4785. </Key>
  4786. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4787. <Property Name="Year" Type="Int32" Nullable="false" />
  4788. <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
  4789. <Property Name="BudgetSeq" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="true" />
  4790. <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
  4791. <Property Name="Depth" Type="Int32" Nullable="false" />
  4792. <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  4793. <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  4794. <Property Name="IsUse" Type="Boolean" />
  4795. <Property Name="YearlyBudget" Type="Double" Nullable="false" />
  4796. <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
  4797. <NavigationProperty Name="FmsBudget" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudgetDetail" ToRole="FmsBudget" />
  4798. <NavigationProperty Name="FmsBudgetCodeClass" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetDetail" ToRole="FmsBudgetCodeClass" />
  4799. <NavigationProperty Name="FmsBudgetDetailExecution" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetail" ToRole="FmsBudgetDetailExecution" />
  4800. <Property Name="RootBudgetClassId" Type="Int32" />
  4801. </EntityType>
  4802. <EntityType Name="FmsBudgetDetailExecution">
  4803. <Key>
  4804. <PropertyRef Name="SiteId" />
  4805. <PropertyRef Name="Year" />
  4806. <PropertyRef Name="BudgetClassId" />
  4807. <PropertyRef Name="ParentBudgetClassId" />
  4808. <PropertyRef Name="Month" />
  4809. </Key>
  4810. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4811. <Property Name="Year" Type="Int32" Nullable="false" />
  4812. <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
  4813. <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
  4814. <Property Name="MonthlyExecution" Type="Double" Nullable="false" />
  4815. <Property Name="Month" Type="Int32" Nullable="false" />
  4816. <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetailExecution" ToRole="FmsBudgetDetail" />
  4817. <Property Name="YearlyBudget" Type="Double" Nullable="false" />
  4818. <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
  4819. <Property Name="YearlyExecution" Type="Double" Nullable="false" />
  4820. <Property Name="RootBudgetClassId" Type="Int32" />
  4821. </EntityType>
  4822. <Association Name="FK_FmsBudgetDetail_FmsBudget">
  4823. <End Type="iBemsModel.FmsBudget" Role="FmsBudget" Multiplicity="1">
  4824. <OnDelete Action="Cascade" />
  4825. </End>
  4826. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
  4827. <ReferentialConstraint>
  4828. <Principal Role="FmsBudget">
  4829. <PropertyRef Name="SiteId" />
  4830. <PropertyRef Name="Year" />
  4831. </Principal>
  4832. <Dependent Role="FmsBudgetDetail">
  4833. <PropertyRef Name="SiteId" />
  4834. <PropertyRef Name="Year" />
  4835. </Dependent>
  4836. </ReferentialConstraint>
  4837. </Association>
  4838. <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
  4839. <End Type="iBemsModel.FmsBudgetCodeClass" Role="FmsBudgetCodeClass" Multiplicity="1" />
  4840. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
  4841. <ReferentialConstraint>
  4842. <Principal Role="FmsBudgetCodeClass">
  4843. <PropertyRef Name="SiteId" />
  4844. <PropertyRef Name="BudgetClassId" />
  4845. </Principal>
  4846. <Dependent Role="FmsBudgetDetail">
  4847. <PropertyRef Name="SiteId" />
  4848. <PropertyRef Name="BudgetClassId" />
  4849. </Dependent>
  4850. </ReferentialConstraint>
  4851. </Association>
  4852. <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
  4853. <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="1" />
  4854. <End Type="iBemsModel.FmsBudgetDetailExecution" Role="FmsBudgetDetailExecution" Multiplicity="*" />
  4855. <ReferentialConstraint>
  4856. <Principal Role="FmsBudgetDetail">
  4857. <PropertyRef Name="SiteId" />
  4858. <PropertyRef Name="Year" />
  4859. <PropertyRef Name="BudgetClassId" />
  4860. <PropertyRef Name="ParentBudgetClassId" />
  4861. </Principal>
  4862. <Dependent Role="FmsBudgetDetailExecution">
  4863. <PropertyRef Name="SiteId" />
  4864. <PropertyRef Name="Year" />
  4865. <PropertyRef Name="BudgetClassId" />
  4866. <PropertyRef Name="ParentBudgetClassId" />
  4867. </Dependent>
  4868. </ReferentialConstraint>
  4869. </Association>
  4870. <EntityType Name="FmsMonthlyReport">
  4871. <Key>
  4872. <PropertyRef Name="SiteId" />
  4873. <PropertyRef Name="MonthlyReportId" />
  4874. </Key>
  4875. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4876. <Property Name="MonthlyReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  4877. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  4878. <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
  4879. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  4880. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
  4881. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="FmsMonthlyReport" ToRole="CmUser" />
  4882. </EntityType>
  4883. <Association Name="FK_FmsMonthlyReport_CmUser">
  4884. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  4885. <End Type="iBemsModel.FmsMonthlyReport" Role="FmsMonthlyReport" Multiplicity="*" />
  4886. <ReferentialConstraint>
  4887. <Principal Role="CmUser">
  4888. <PropertyRef Name="SiteId" />
  4889. <PropertyRef Name="UserId" />
  4890. </Principal>
  4891. <Dependent Role="FmsMonthlyReport">
  4892. <PropertyRef Name="SiteId" />
  4893. <PropertyRef Name="RegisterUserId" />
  4894. </Dependent>
  4895. </ReferentialConstraint>
  4896. </Association>
  4897. <EntityType Name="FmsInvestmentCost">
  4898. <Key>
  4899. <PropertyRef Name="SiteId" />
  4900. <PropertyRef Name="InsvestmentCostId" />
  4901. </Key>
  4902. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4903. <Property Name="InsvestmentCostId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  4904. <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  4905. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  4906. <Property Name="InsvestmentCost" Type="Double" Nullable="false" />
  4907. </EntityType>
  4908. <EntityType Name="CmHolidayWeekend">
  4909. <Key>
  4910. <PropertyRef Name="SiteId" />
  4911. </Key>
  4912. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4913. <Property Name="Saturday" Type="Boolean" Nullable="false" />
  4914. <Property Name="Sunday" Type="Boolean" Nullable="false" />
  4915. <Property Name="IsUse" Type="Boolean" />
  4916. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmHolidayWeekend" ToRole="CmSite" />
  4917. </EntityType>
  4918. <Association Name="FK_FmsAccident_CmCompany">
  4919. <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="0..1" />
  4920. <End Type="iBemsModel.FmsAccident" Role="FmsAccident" Multiplicity="*" />
  4921. <ReferentialConstraint>
  4922. <Principal Role="CmCompany">
  4923. <PropertyRef Name="SiteId" />
  4924. <PropertyRef Name="CompanyId" />
  4925. </Principal>
  4926. <Dependent Role="FmsAccident">
  4927. <PropertyRef Name="SiteId" />
  4928. <PropertyRef Name="CompanyId" />
  4929. </Dependent>
  4930. </ReferentialConstraint>
  4931. </Association>
  4932. <EntityType Name="FmsMaterial">
  4933. <Key>
  4934. <PropertyRef Name="SiteId" />
  4935. <PropertyRef Name="MaterialId" />
  4936. </Key>
  4937. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4938. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  4939. <Property Name="MaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  4940. <Property Name="MaterialCode" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  4941. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  4942. <Property Name="FirstClassId" Type="Int32" />
  4943. <Property Name="SecondClassId" Type="Int32" />
  4944. <Property Name="ThirdClassId" Type="Int32" />
  4945. <Property Name="LocationId" Type="Int32" />
  4946. <Property Name="MaterialTypeId" Type="Int32" />
  4947. <Property Name="WarehouseId" Type="Int32" />
  4948. <Property Name="TradeCompanyId" Type="Int32" />
  4949. <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  4950. <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
  4951. <Property Name="DurableYears" Type="Int16" />
  4952. <Property Name="ReasonableStockCount" Type="Int16" />
  4953. <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  4954. <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  4955. <Property Name="FinalPrice" Type="Int32" />
  4956. <Property Name="ImageFileId" Type="Int32" />
  4957. <Property Name="Note" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
  4958. <Property Name="IsDiscontinued" Type="Boolean" />
  4959. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  4960. <Property Name="FinalStockCount" Type="Int32" Nullable="false" />
  4961. <Property Name="FinalTotalStockAmount" Type="Int32" Nullable="false" />
  4962. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="FmsMaterial" ToRole="CmBusinessField" />
  4963. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="FmsMaterial" ToRole="CmFile" />
  4964. <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  4965. <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  4966. <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
  4967. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterial" ToRole="FmsMaterialCodeLocation" />
  4968. <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterial" ToRole="FmsMaterialCodeType" />
  4969. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterial" ToRole="FmsMaterialTradeCompany" />
  4970. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterial" ToRole="FmsMaterialWarehouse" />
  4971. <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseOrderMaterial" />
  4972. <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseRequestMaterial" />
  4973. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialRelease" />
  4974. <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialStored" />
  4975. <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsWorkResultCheckItemMaterial" />
  4976. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="FmsMaterial" ToRole="CmSite" />
  4977. </EntityType>
  4978. <EntityType Name="FmsMaterialRelease">
  4979. <Key>
  4980. <PropertyRef Name="SiteId" />
  4981. <PropertyRef Name="MaterialReleaseId" />
  4982. </Key>
  4983. <Property Name="SiteId" Type="Int32" Nullable="false" />
  4984. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  4985. <Property Name="ReleaseDate" Type="DateTime" Nullable="false" Precision="3" />
  4986. <Property Name="MaterialReleaseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  4987. <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
  4988. <Property Name="WorkRequestId" Type="Int32" />
  4989. <Property Name="WarehouseId" Type="Int32" />
  4990. <Property Name="MaterialId" Type="Int32" />
  4991. <Property Name="MaterialCount" Type="Int32" />
  4992. <Property Name="ReleaseTotalCost" Type="Int32" />
  4993. <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
  4994. <Property Name="AdjustmentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  4995. <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  4996. <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
  4997. <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
  4998. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  4999. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="FmsMaterialRelease" ToRole="CmBusinessField" />
  5000. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="FmsMaterialRelease" ToRole="CmUser" />
  5001. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="FmsMaterialRelease" ToRole="CmUser" />
  5002. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterialRelease" ToRole="FmsMaterial" />
  5003. <NavigationProperty Name="FmsMaterialCodeAdjustmentType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeAdjustmentType" />
  5004. <NavigationProperty Name="FmsMaterialCodeReleaseType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeReleaseType" />
  5005. <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsMaterialRelease" ToRole="FmsWorkResult" />
  5006. <Property Name="StockCountByPoint" Type="Int32" />
  5007. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="FmsMaterialRelease" ToRole="CmSite" />
  5008. </EntityType>
  5009. <Association Name="FK_FmsMaterial_CmBusinessField">
  5010. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  5011. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5012. <ReferentialConstraint>
  5013. <Principal Role="CmBusinessField">
  5014. <PropertyRef Name="SiteId" />
  5015. <PropertyRef Name="BusinessFieldId" />
  5016. </Principal>
  5017. <Dependent Role="FmsMaterial">
  5018. <PropertyRef Name="SiteId" />
  5019. <PropertyRef Name="BusinessFieldId" />
  5020. </Dependent>
  5021. </ReferentialConstraint>
  5022. </Association>
  5023. <Association Name="FK_FmsMaterialRelease_CmBusinessField">
  5024. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  5025. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5026. <ReferentialConstraint>
  5027. <Principal Role="CmBusinessField">
  5028. <PropertyRef Name="SiteId" />
  5029. <PropertyRef Name="BusinessFieldId" />
  5030. </Principal>
  5031. <Dependent Role="FmsMaterialRelease">
  5032. <PropertyRef Name="SiteId" />
  5033. <PropertyRef Name="BusinessFieldId" />
  5034. </Dependent>
  5035. </ReferentialConstraint>
  5036. </Association>
  5037. <Association Name="FK_FmsMaterial_CmFile">
  5038. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  5039. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5040. <ReferentialConstraint>
  5041. <Principal Role="CmFile">
  5042. <PropertyRef Name="SiteId" />
  5043. <PropertyRef Name="FileId" />
  5044. </Principal>
  5045. <Dependent Role="FmsMaterial">
  5046. <PropertyRef Name="SiteId" />
  5047. <PropertyRef Name="ImageFileId" />
  5048. </Dependent>
  5049. </ReferentialConstraint>
  5050. </Association>
  5051. <Association Name="FK_FmsMaterialRelease_CmUser">
  5052. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  5053. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5054. <ReferentialConstraint>
  5055. <Principal Role="CmUser">
  5056. <PropertyRef Name="SiteId" />
  5057. <PropertyRef Name="UserId" />
  5058. </Principal>
  5059. <Dependent Role="FmsMaterialRelease">
  5060. <PropertyRef Name="SiteId" />
  5061. <PropertyRef Name="ConfirmedUserId" />
  5062. </Dependent>
  5063. </ReferentialConstraint>
  5064. </Association>
  5065. <Association Name="FK_FmsMaterialRelease_CmUser1">
  5066. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  5067. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5068. <ReferentialConstraint>
  5069. <Principal Role="CmUser">
  5070. <PropertyRef Name="SiteId" />
  5071. <PropertyRef Name="UserId" />
  5072. </Principal>
  5073. <Dependent Role="FmsMaterialRelease">
  5074. <PropertyRef Name="SiteId" />
  5075. <PropertyRef Name="AdjustmentUserId" />
  5076. </Dependent>
  5077. </ReferentialConstraint>
  5078. </Association>
  5079. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
  5080. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  5081. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5082. <ReferentialConstraint>
  5083. <Principal Role="FmsMaterialCodeClass">
  5084. <PropertyRef Name="SiteId" />
  5085. <PropertyRef Name="MaterialClassId" />
  5086. </Principal>
  5087. <Dependent Role="FmsMaterial">
  5088. <PropertyRef Name="SiteId" />
  5089. <PropertyRef Name="FirstClassId" />
  5090. </Dependent>
  5091. </ReferentialConstraint>
  5092. </Association>
  5093. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
  5094. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  5095. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5096. <ReferentialConstraint>
  5097. <Principal Role="FmsMaterialCodeClass">
  5098. <PropertyRef Name="SiteId" />
  5099. <PropertyRef Name="MaterialClassId" />
  5100. </Principal>
  5101. <Dependent Role="FmsMaterial">
  5102. <PropertyRef Name="SiteId" />
  5103. <PropertyRef Name="SecondClassId" />
  5104. </Dependent>
  5105. </ReferentialConstraint>
  5106. </Association>
  5107. <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
  5108. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
  5109. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5110. <ReferentialConstraint>
  5111. <Principal Role="FmsMaterialCodeClass">
  5112. <PropertyRef Name="SiteId" />
  5113. <PropertyRef Name="MaterialClassId" />
  5114. </Principal>
  5115. <Dependent Role="FmsMaterial">
  5116. <PropertyRef Name="SiteId" />
  5117. <PropertyRef Name="ThirdClassId" />
  5118. </Dependent>
  5119. </ReferentialConstraint>
  5120. </Association>
  5121. <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
  5122. <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="0..1" />
  5123. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5124. <ReferentialConstraint>
  5125. <Principal Role="FmsMaterialCodeLocation">
  5126. <PropertyRef Name="SiteId" />
  5127. <PropertyRef Name="LocationId" />
  5128. </Principal>
  5129. <Dependent Role="FmsMaterial">
  5130. <PropertyRef Name="SiteId" />
  5131. <PropertyRef Name="LocationId" />
  5132. </Dependent>
  5133. </ReferentialConstraint>
  5134. </Association>
  5135. <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
  5136. <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="0..1" />
  5137. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5138. <ReferentialConstraint>
  5139. <Principal Role="FmsMaterialCodeType">
  5140. <PropertyRef Name="SiteId" />
  5141. <PropertyRef Name="MaterialTypeId" />
  5142. </Principal>
  5143. <Dependent Role="FmsMaterial">
  5144. <PropertyRef Name="SiteId" />
  5145. <PropertyRef Name="MaterialTypeId" />
  5146. </Dependent>
  5147. </ReferentialConstraint>
  5148. </Association>
  5149. <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
  5150. <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="0..1" />
  5151. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5152. <ReferentialConstraint>
  5153. <Principal Role="FmsMaterialTradeCompany">
  5154. <PropertyRef Name="SiteId" />
  5155. <PropertyRef Name="TradeCompanyId" />
  5156. </Principal>
  5157. <Dependent Role="FmsMaterial">
  5158. <PropertyRef Name="SiteId" />
  5159. <PropertyRef Name="TradeCompanyId" />
  5160. </Dependent>
  5161. </ReferentialConstraint>
  5162. </Association>
  5163. <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
  5164. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
  5165. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  5166. <ReferentialConstraint>
  5167. <Principal Role="FmsMaterialWarehouse">
  5168. <PropertyRef Name="SiteId" />
  5169. <PropertyRef Name="WarehouseId" />
  5170. </Principal>
  5171. <Dependent Role="FmsMaterial">
  5172. <PropertyRef Name="SiteId" />
  5173. <PropertyRef Name="WarehouseId" />
  5174. </Dependent>
  5175. </ReferentialConstraint>
  5176. </Association>
  5177. <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
  5178. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  5179. <End Type="iBemsModel.FmsMaterialPurchaseOrderMaterial" Role="FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
  5180. <ReferentialConstraint>
  5181. <Principal Role="FmsMaterial">
  5182. <PropertyRef Name="SiteId" />
  5183. <PropertyRef Name="MaterialId" />
  5184. </Principal>
  5185. <Dependent Role="FmsMaterialPurchaseOrderMaterial">
  5186. <PropertyRef Name="SiteId" />
  5187. <PropertyRef Name="MaterialId" />
  5188. </Dependent>
  5189. </ReferentialConstraint>
  5190. </Association>
  5191. <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
  5192. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  5193. <End Type="iBemsModel.FmsMaterialPurchaseRequestMaterial" Role="FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
  5194. <ReferentialConstraint>
  5195. <Principal Role="FmsMaterial">
  5196. <PropertyRef Name="SiteId" />
  5197. <PropertyRef Name="MaterialId" />
  5198. </Principal>
  5199. <Dependent Role="FmsMaterialPurchaseRequestMaterial">
  5200. <PropertyRef Name="SiteId" />
  5201. <PropertyRef Name="MaterialId" />
  5202. </Dependent>
  5203. </ReferentialConstraint>
  5204. </Association>
  5205. <Association Name="FK_FmsMaterialRelease_FmsMaterial">
  5206. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  5207. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5208. <ReferentialConstraint>
  5209. <Principal Role="FmsMaterial">
  5210. <PropertyRef Name="SiteId" />
  5211. <PropertyRef Name="MaterialId" />
  5212. </Principal>
  5213. <Dependent Role="FmsMaterialRelease">
  5214. <PropertyRef Name="SiteId" />
  5215. <PropertyRef Name="MaterialId" />
  5216. </Dependent>
  5217. </ReferentialConstraint>
  5218. </Association>
  5219. <Association Name="FK_FmsMaterialStored_FmsMaterial">
  5220. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  5221. <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
  5222. <ReferentialConstraint>
  5223. <Principal Role="FmsMaterial">
  5224. <PropertyRef Name="SiteId" />
  5225. <PropertyRef Name="MaterialId" />
  5226. </Principal>
  5227. <Dependent Role="FmsMaterialStored">
  5228. <PropertyRef Name="SiteId" />
  5229. <PropertyRef Name="MaterialId" />
  5230. </Dependent>
  5231. </ReferentialConstraint>
  5232. </Association>
  5233. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
  5234. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
  5235. <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  5236. <ReferentialConstraint>
  5237. <Principal Role="FmsMaterial">
  5238. <PropertyRef Name="SiteId" />
  5239. <PropertyRef Name="MaterialId" />
  5240. </Principal>
  5241. <Dependent Role="FmsWorkResultCheckItemMaterial">
  5242. <PropertyRef Name="SiteId" />
  5243. <PropertyRef Name="MaterialId" />
  5244. </Dependent>
  5245. </ReferentialConstraint>
  5246. </Association>
  5247. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
  5248. <End Type="iBemsModel.FmsMaterialCodeAdjustmentType" Role="FmsMaterialCodeAdjustmentType" Multiplicity="1" />
  5249. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5250. <ReferentialConstraint>
  5251. <Principal Role="FmsMaterialCodeAdjustmentType">
  5252. <PropertyRef Name="AdjustmentTypeId" />
  5253. </Principal>
  5254. <Dependent Role="FmsMaterialRelease">
  5255. <PropertyRef Name="AdjustmentTypeId" />
  5256. </Dependent>
  5257. </ReferentialConstraint>
  5258. </Association>
  5259. <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
  5260. <End Type="iBemsModel.FmsMaterialCodeReleaseType" Role="FmsMaterialCodeReleaseType" Multiplicity="1" />
  5261. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5262. <ReferentialConstraint>
  5263. <Principal Role="FmsMaterialCodeReleaseType">
  5264. <PropertyRef Name="ReleaseTypeId" />
  5265. </Principal>
  5266. <Dependent Role="FmsMaterialRelease">
  5267. <PropertyRef Name="ReleaseTypeId" />
  5268. </Dependent>
  5269. </ReferentialConstraint>
  5270. </Association>
  5271. <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
  5272. <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="0..1" />
  5273. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  5274. <ReferentialConstraint>
  5275. <Principal Role="FmsWorkResult">
  5276. <PropertyRef Name="SiteId" />
  5277. <PropertyRef Name="WorkRequestId" />
  5278. </Principal>
  5279. <Dependent Role="FmsMaterialRelease">
  5280. <PropertyRef Name="SiteId" />
  5281. <PropertyRef Name="WorkRequestId" />
  5282. </Dependent>
  5283. </ReferentialConstraint>
  5284. </Association>
  5285. <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
  5286. <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="1" />
  5287. <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
  5288. <ReferentialConstraint>
  5289. <Principal Role="FmsWorkResult">
  5290. <PropertyRef Name="SiteId" />
  5291. <PropertyRef Name="WorkRequestId" />
  5292. </Principal>
  5293. <Dependent Role="FmsWorkResultCheckItemMaterial">
  5294. <PropertyRef Name="SiteId" />
  5295. <PropertyRef Name="WorkRequestId" />
  5296. </Dependent>
  5297. </ReferentialConstraint>
  5298. </Association>
  5299. <EntityType Name="CmPatrolType">
  5300. <Key>
  5301. <PropertyRef Name="SiteId" />
  5302. <PropertyRef Name="PatrolTypeId" />
  5303. </Key>
  5304. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5305. <Property Name="PatrolTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5306. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  5307. <Property Name="IsUse" Type="Boolean" />
  5308. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistoryPos" />
  5309. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmPatrolType" ToRole="CmSite" />
  5310. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistory" />
  5311. </EntityType>
  5312. <EntityType Name="CmPatrolGroup">
  5313. <Key>
  5314. <PropertyRef Name="SiteId" />
  5315. <PropertyRef Name="PatrolGroupId" />
  5316. </Key>
  5317. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5318. <Property Name="PatrolGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5319. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  5320. <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolGroupUser" />
  5321. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolPlan" />
  5322. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmPatrolGroup" ToRole="CmSite" />
  5323. </EntityType>
  5324. <EntityType Name="CmPatrolGroupUser">
  5325. <Key>
  5326. <PropertyRef Name="SiteId" />
  5327. <PropertyRef Name="PatrolGroupId" />
  5328. <PropertyRef Name="UserId" />
  5329. </Key>
  5330. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5331. <Property Name="PatrolGroupId" Type="Int32" Nullable="false" />
  5332. <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  5333. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroupUser" ToRole="CmPatrolGroup" />
  5334. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmPatrolGroupUser" ToRole="CmUser" />
  5335. </EntityType>
  5336. <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
  5337. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
  5338. <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
  5339. <ReferentialConstraint>
  5340. <Principal Role="CmPatrolGroup">
  5341. <PropertyRef Name="SiteId" />
  5342. <PropertyRef Name="PatrolGroupId" />
  5343. </Principal>
  5344. <Dependent Role="CmPatrolGroupUser">
  5345. <PropertyRef Name="SiteId" />
  5346. <PropertyRef Name="PatrolGroupId" />
  5347. </Dependent>
  5348. </ReferentialConstraint>
  5349. </Association>
  5350. <Association Name="FK_CmPatrolGroupUser_CmUser">
  5351. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  5352. <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
  5353. <ReferentialConstraint>
  5354. <Principal Role="CmUser">
  5355. <PropertyRef Name="SiteId" />
  5356. <PropertyRef Name="UserId" />
  5357. </Principal>
  5358. <Dependent Role="CmPatrolGroupUser">
  5359. <PropertyRef Name="SiteId" />
  5360. <PropertyRef Name="UserId" />
  5361. </Dependent>
  5362. </ReferentialConstraint>
  5363. </Association>
  5364. <EntityType Name="CmPatrolPos">
  5365. <Key>
  5366. <PropertyRef Name="SiteId" />
  5367. <PropertyRef Name="PosId" />
  5368. </Key>
  5369. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5370. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  5371. <Property Name="FloorId" Type="Int32" Nullable="false" />
  5372. <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5373. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  5374. <Property Name="TagId" Type="String" MaxLength="32" FixedLength="false" Unicode="true" />
  5375. <Property Name="PosDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  5376. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmPatrolPos" ToRole="CmBuilding" />
  5377. <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmPatrolPos" ToRole="CmFloor" />
  5378. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolCoursePos" />
  5379. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolHistoryPos" />
  5380. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmPatrolPos" ToRole="CmSite" />
  5381. </EntityType>
  5382. <Association Name="FK_CmPatrolPos_CmBuilding">
  5383. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
  5384. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  5385. <ReferentialConstraint>
  5386. <Principal Role="CmBuilding">
  5387. <PropertyRef Name="SiteId" />
  5388. <PropertyRef Name="BuildingId" />
  5389. </Principal>
  5390. <Dependent Role="CmPatrolPos">
  5391. <PropertyRef Name="SiteId" />
  5392. <PropertyRef Name="BuildingId" />
  5393. </Dependent>
  5394. </ReferentialConstraint>
  5395. </Association>
  5396. <Association Name="FK_CmPatrolPos_CmFloor">
  5397. <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="1" />
  5398. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  5399. <ReferentialConstraint>
  5400. <Principal Role="CmFloor">
  5401. <PropertyRef Name="SiteId" />
  5402. <PropertyRef Name="BuildingId" />
  5403. <PropertyRef Name="FloorId" />
  5404. </Principal>
  5405. <Dependent Role="CmPatrolPos">
  5406. <PropertyRef Name="SiteId" />
  5407. <PropertyRef Name="BuildingId" />
  5408. <PropertyRef Name="FloorId" />
  5409. </Dependent>
  5410. </ReferentialConstraint>
  5411. </Association>
  5412. <EntityType Name="CmPatrolCourse">
  5413. <Key>
  5414. <PropertyRef Name="SiteId" />
  5415. <PropertyRef Name="PatrolCourseId" />
  5416. </Key>
  5417. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5418. <Property Name="PatrolCourseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5419. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  5420. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolCoursePos" />
  5421. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolPlan" />
  5422. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmPatrolCourse" ToRole="CmSite" />
  5423. </EntityType>
  5424. <EntityType Name="CmPatrolCoursePos">
  5425. <Key>
  5426. <PropertyRef Name="SiteId" />
  5427. <PropertyRef Name="PatrolCourseId" />
  5428. <PropertyRef Name="PosId" />
  5429. <PropertyRef Name="BuildingId" />
  5430. <PropertyRef Name="FloorId" />
  5431. </Key>
  5432. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5433. <Property Name="PatrolCourseId" Type="Int32" Nullable="false" />
  5434. <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="None" />
  5435. <Property Name="CourseOrder" Type="Int32" Nullable="false" />
  5436. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCoursePos" ToRole="CmPatrolCourse" />
  5437. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  5438. <Property Name="FloorId" Type="Int32" Nullable="false" />
  5439. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolCoursePos" ToRole="CmPatrolPos" />
  5440. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmPatrolCoursePos" ToRole="CmSite" />
  5441. </EntityType>
  5442. <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
  5443. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
  5444. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  5445. <ReferentialConstraint>
  5446. <Principal Role="CmPatrolCourse">
  5447. <PropertyRef Name="SiteId" />
  5448. <PropertyRef Name="PatrolCourseId" />
  5449. </Principal>
  5450. <Dependent Role="CmPatrolCoursePos">
  5451. <PropertyRef Name="SiteId" />
  5452. <PropertyRef Name="PatrolCourseId" />
  5453. </Dependent>
  5454. </ReferentialConstraint>
  5455. </Association>
  5456. <Association Name="FK_CmPatrolCoursePos_CmPatrolPos">
  5457. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
  5458. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  5459. <ReferentialConstraint>
  5460. <Principal Role="CmPatrolPos">
  5461. <PropertyRef Name="SiteId" />
  5462. <PropertyRef Name="PosId" />
  5463. </Principal>
  5464. <Dependent Role="CmPatrolCoursePos">
  5465. <PropertyRef Name="SiteId" />
  5466. <PropertyRef Name="PosId" />
  5467. </Dependent>
  5468. </ReferentialConstraint>
  5469. </Association>
  5470. <EntityType Name="CmPatrolPlan">
  5471. <Key>
  5472. <PropertyRef Name="SiteId" />
  5473. <PropertyRef Name="PatrolPlanId" />
  5474. </Key>
  5475. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5476. <Property Name="PatrolPlanId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5477. <Property Name="GroupId" Type="Int32" Nullable="false" />
  5478. <Property Name="CourseId" Type="Int32" Nullable="false" />
  5479. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
  5480. <Property Name="PlanDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
  5481. <Property Name="term" Type="Int32" Nullable="false" />
  5482. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolPlan" ToRole="CmPatrolCourse" />
  5483. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolPlan" ToRole="CmPatrolGroup" />
  5484. <Property Name="inDate" Type="DateTime" Precision="3" />
  5485. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolPlan" ToRole="CmPatrolSchedule" />
  5486. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmPatrolPlan" ToRole="CmSite" />
  5487. </EntityType>
  5488. <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
  5489. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
  5490. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  5491. <ReferentialConstraint>
  5492. <Principal Role="CmPatrolCourse">
  5493. <PropertyRef Name="SiteId" />
  5494. <PropertyRef Name="PatrolCourseId" />
  5495. </Principal>
  5496. <Dependent Role="CmPatrolPlan">
  5497. <PropertyRef Name="SiteId" />
  5498. <PropertyRef Name="CourseId" />
  5499. </Dependent>
  5500. </ReferentialConstraint>
  5501. </Association>
  5502. <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
  5503. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
  5504. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  5505. <ReferentialConstraint>
  5506. <Principal Role="CmPatrolGroup">
  5507. <PropertyRef Name="SiteId" />
  5508. <PropertyRef Name="PatrolGroupId" />
  5509. </Principal>
  5510. <Dependent Role="CmPatrolPlan">
  5511. <PropertyRef Name="SiteId" />
  5512. <PropertyRef Name="GroupId" />
  5513. </Dependent>
  5514. </ReferentialConstraint>
  5515. </Association>
  5516. <EntityType Name="CmPatrolHistoryPos">
  5517. <Key>
  5518. <PropertyRef Name="mId" />
  5519. </Key>
  5520. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5521. <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" />
  5522. <Property Name="PosId" Type="Int32" Nullable="false" />
  5523. <Property Name="PatrolTime" Type="DateTime" Nullable="false" Precision="3" />
  5524. <Property Name="term" Type="Int32" />
  5525. <Property Name="resultType" Type="Int32" Nullable="false" />
  5526. <Property Name="mId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5527. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolPos" />
  5528. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolType" />
  5529. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmPatrolHistoryPos" ToRole="CmSite" />
  5530. </EntityType>
  5531. <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
  5532. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
  5533. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  5534. <ReferentialConstraint>
  5535. <Principal Role="CmPatrolPos">
  5536. <PropertyRef Name="SiteId" />
  5537. <PropertyRef Name="PosId" />
  5538. </Principal>
  5539. <Dependent Role="CmPatrolHistoryPos">
  5540. <PropertyRef Name="SiteId" />
  5541. <PropertyRef Name="PosId" />
  5542. </Dependent>
  5543. </ReferentialConstraint>
  5544. </Association>
  5545. <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
  5546. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
  5547. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  5548. <ReferentialConstraint>
  5549. <Principal Role="CmPatrolType">
  5550. <PropertyRef Name="SiteId" />
  5551. <PropertyRef Name="PatrolTypeId" />
  5552. </Principal>
  5553. <Dependent Role="CmPatrolHistoryPos">
  5554. <PropertyRef Name="SiteId" />
  5555. <PropertyRef Name="resultType" />
  5556. </Dependent>
  5557. </ReferentialConstraint>
  5558. </Association>
  5559. <EntityType Name="BemsPeakInfo">
  5560. <Key>
  5561. <PropertyRef Name="SiteId" />
  5562. </Key>
  5563. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5564. <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
  5565. <Property Name="MaxPeakValue" Type="Double" Nullable="false" />
  5566. <Property Name="MinDateTime" Type="DateTime" Nullable="false" Precision="3" />
  5567. <Property Name="MinPeakValue" Type="Double" Nullable="false" />
  5568. <Property Name="todayMaxPeakValue" Type="Double" Nullable="false" />
  5569. <Property Name="todayMinPeakValue" Type="Double" Nullable="false" />
  5570. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="BemsPeakInfo" ToRole="CmSite" />
  5571. </EntityType>
  5572. <EntityType Name="BemsPeakHistory">
  5573. <Key>
  5574. <PropertyRef Name="SiteId" />
  5575. <PropertyRef Name="CreatedDateTime" />
  5576. </Key>
  5577. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5578. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  5579. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  5580. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="BemsPeakHistory" ToRole="CmSite" />
  5581. </EntityType>
  5582. <EntityType Name="CmPatrolSchedule">
  5583. <Key>
  5584. <PropertyRef Name="SiteId" />
  5585. <PropertyRef Name="ScheduleId" />
  5586. </Key>
  5587. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5588. <Property Name="ScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  5589. <Property Name="PlanId" Type="Int32" Nullable="false" />
  5590. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
  5591. <Property Name="ScheduleDesc" Type="String" MaxLength="128" FixedLength="false" Unicode="false" />
  5592. <Property Name="inDate" Type="DateTime" Precision="3" />
  5593. <Property Name="patrolDateTime" Type="DateTime" Nullable="false" Precision="3" />
  5594. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolSchedule" ToRole="CmPatrolPlan" />
  5595. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmPatrolSchedule" ToRole="CmSite" />
  5596. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolSchedule" ToRole="CmPatrolHistory" />
  5597. </EntityType>
  5598. <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
  5599. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="1" />
  5600. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
  5601. <ReferentialConstraint>
  5602. <Principal Role="CmPatrolPlan">
  5603. <PropertyRef Name="SiteId" />
  5604. <PropertyRef Name="PatrolPlanId" />
  5605. </Principal>
  5606. <Dependent Role="CmPatrolSchedule">
  5607. <PropertyRef Name="SiteId" />
  5608. <PropertyRef Name="PlanId" />
  5609. </Dependent>
  5610. </ReferentialConstraint>
  5611. </Association>
  5612. <EntityType Name="BemsNoticePriceBase">
  5613. <Key>
  5614. <PropertyRef Name="SiteId" />
  5615. <PropertyRef Name="FuelTypeId" />
  5616. <PropertyRef Name="ApplyDate" />
  5617. <PropertyRef Name="ContractType" />
  5618. </Key>
  5619. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5620. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  5621. <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
  5622. <Property Name="ContractType" Type="Int16" Nullable="false" />
  5623. <Property Name="PrimaryPrice" Type="Int32" />
  5624. <Property Name="SecondaryPrice" Type="Int32" />
  5625. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceContractType" />
  5626. <NavigationProperty Name="BemsNoticePriceDetail" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceDetail" />
  5627. </EntityType>
  5628. <EntityType Name="BemsNoticePriceContractType">
  5629. <Key>
  5630. <PropertyRef Name="FuelTypeId" />
  5631. <PropertyRef Name="ContractType" />
  5632. </Key>
  5633. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  5634. <Property Name="ContractType" Type="Int16" Nullable="false" />
  5635. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  5636. <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="BemsNoticePriceBase" />
  5637. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsNoticePriceContractType" ToRole="BemsFuelType" />
  5638. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="CmFacility" />
  5639. </EntityType>
  5640. <EntityType Name="BemsNoticePriceDetail">
  5641. <Key>
  5642. <PropertyRef Name="SiteId" />
  5643. <PropertyRef Name="FuelTypeId" />
  5644. <PropertyRef Name="ApplyDate" />
  5645. <PropertyRef Name="ContractType" />
  5646. <PropertyRef Name="DataId" />
  5647. </Key>
  5648. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5649. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  5650. <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
  5651. <Property Name="ContractType" Type="Int16" Nullable="false" />
  5652. <Property Name="DataId" Type="Int16" Nullable="false" />
  5653. <Property Name="P01" Type="Double" />
  5654. <Property Name="P02" Type="Double" />
  5655. <Property Name="P03" Type="Double" />
  5656. <Property Name="P04" Type="Double" />
  5657. <Property Name="P05" Type="Double" />
  5658. <Property Name="P06" Type="Double" />
  5659. <Property Name="P07" Type="Double" />
  5660. <Property Name="P08" Type="Double" />
  5661. <Property Name="P09" Type="Double" />
  5662. <Property Name="P10" Type="Double" />
  5663. <Property Name="P11" Type="Double" />
  5664. <Property Name="P12" Type="Double" />
  5665. <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceDetail" ToRole="BemsNoticePriceBase" />
  5666. </EntityType>
  5667. <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
  5668. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="1" />
  5669. <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="*" />
  5670. <ReferentialConstraint>
  5671. <Principal Role="BemsNoticePriceContractType">
  5672. <PropertyRef Name="FuelTypeId" />
  5673. <PropertyRef Name="ContractType" />
  5674. </Principal>
  5675. <Dependent Role="BemsNoticePriceBase">
  5676. <PropertyRef Name="FuelTypeId" />
  5677. <PropertyRef Name="ContractType" />
  5678. </Dependent>
  5679. </ReferentialConstraint>
  5680. </Association>
  5681. <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
  5682. <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="1" />
  5683. <End Type="iBemsModel.BemsNoticePriceDetail" Role="BemsNoticePriceDetail" Multiplicity="*" />
  5684. <ReferentialConstraint>
  5685. <Principal Role="BemsNoticePriceBase">
  5686. <PropertyRef Name="SiteId" />
  5687. <PropertyRef Name="FuelTypeId" />
  5688. <PropertyRef Name="ApplyDate" />
  5689. <PropertyRef Name="ContractType" />
  5690. </Principal>
  5691. <Dependent Role="BemsNoticePriceDetail">
  5692. <PropertyRef Name="SiteId" />
  5693. <PropertyRef Name="FuelTypeId" />
  5694. <PropertyRef Name="ApplyDate" />
  5695. <PropertyRef Name="ContractType" />
  5696. </Dependent>
  5697. </ReferentialConstraint>
  5698. </Association>
  5699. <EntityType Name="BemsPeakFacility">
  5700. <Key>
  5701. <PropertyRef Name="SiteId" />
  5702. <PropertyRef Name="MaxDateTime" />
  5703. <PropertyRef Name="FacilityCode" />
  5704. </Key>
  5705. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5706. <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
  5707. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  5708. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="BemsPeakFacility" ToRole="CmFacility" />
  5709. </EntityType>
  5710. <EntityType Name="CmSite">
  5711. <Key>
  5712. <PropertyRef Name="SiteId" />
  5713. </Key>
  5714. <Property Name="SiteId" Type="Int32" Nullable="false" />
  5715. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  5716. <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
  5717. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  5718. <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  5719. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  5720. <Property Name="PhoneNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5721. <Property Name="URL" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  5722. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  5723. <Property Name="IsUse" Type="Boolean" />
  5724. <Property Name="SortOrderNo" Type="Int32" />
  5725. <Property Name="InsertedDate" Type="DateTime" Precision="3" />
  5726. <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5727. <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
  5728. <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5729. <Property Name="IsControlSchedule" Type="Boolean" />
  5730. <Property Name="ScheduleCheckHour" Type="Int32" />
  5731. <Property Name="MaxPeak" Type="Double" />
  5732. <Property Name="lat" Type="Double" />
  5733. <Property Name="lng" Type="Double" />
  5734. <NavigationProperty Name="BemsPeakHistory" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="CmSite" ToRole="BemsPeakHistory" />
  5735. <NavigationProperty Name="BemsPeakInfo" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="CmSite" ToRole="BemsPeakInfo" />
  5736. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmSite" ToRole="CmBuilding" />
  5737. <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmSite" ToRole="CmCompany" />
  5738. <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmSite" ToRole="CmFacilityTempSet" />
  5739. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmSite" ToRole="CmFile" />
  5740. <NavigationProperty Name="CmHoliday" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmSite" ToRole="CmHoliday" />
  5741. <NavigationProperty Name="CmHoliday1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmSite" ToRole="CmHoliday" />
  5742. <NavigationProperty Name="CmHolidayCustom" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmSite" ToRole="CmHolidayCustom" />
  5743. <NavigationProperty Name="CmHolidayCustom1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmSite" ToRole="CmHolidayCustom" />
  5744. <NavigationProperty Name="CmHolidayWeekend" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmSite" ToRole="CmHolidayWeekend" />
  5745. <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmSite" ToRole="CmPatrolCourse" />
  5746. <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmSite" ToRole="CmPatrolCoursePos" />
  5747. <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmSite" ToRole="CmPatrolGroup" />
  5748. <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmSite" ToRole="CmPatrolHistoryPos" />
  5749. <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmSite" ToRole="CmPatrolPlan" />
  5750. <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmSite" ToRole="CmPatrolPos" />
  5751. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmSite" ToRole="CmPatrolSchedule" />
  5752. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmSite" ToRole="CmPatrolType" />
  5753. <NavigationProperty Name="CmPosition" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmSite" ToRole="CmPosition" />
  5754. <NavigationProperty Name="CmPosition1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmSite" ToRole="CmPosition" />
  5755. <NavigationProperty Name="CmUserGroup" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmSite" ToRole="CmUserGroup" />
  5756. <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
  5757. <NavigationProperty Name="FmsDrawingCodeType" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
  5758. <NavigationProperty Name="FmsDrawing" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="CmSite" ToRole="FmsDrawing" />
  5759. <NavigationProperty Name="FmsDrawingCodeGroup1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
  5760. <NavigationProperty Name="FmsDrawingCodeType1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
  5761. <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="CmSite" ToRole="FmsFacilityCodeClass" />
  5762. <NavigationProperty Name="FmsLicense" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="CmSite" ToRole="FmsLicense" />
  5763. <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="CmSite" ToRole="FmsMaterialCarriedForward" />
  5764. <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeClass" />
  5765. <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeLocation" />
  5766. <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeType" />
  5767. <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseOrder" />
  5768. <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseRequest" />
  5769. <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="CmSite" ToRole="FmsMaterialStored" />
  5770. <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="CmSite" ToRole="FmsMaterialTradeCompany" />
  5771. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="CmSite" ToRole="FmsMaterialWarehouse" />
  5772. <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCauseClass" />
  5773. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCycleUnit" />
  5774. <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeEmergency" />
  5775. <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeHolidayWorkType" />
  5776. <NavigationProperty Name="FmsWorkCodeLegalInspectionAgency" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeLegalInspectionAgency" />
  5777. <NavigationProperty Name="FmsWorkOrder" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="CmSite" ToRole="FmsWorkOrder" />
  5778. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="CmSite" ToRole="FmsWorkRequest" />
  5779. <NavigationProperty Name="CmZoneTempHumiSet" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmSite" ToRole="CmZoneTempHumiSet" />
  5780. <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="CmSite" ToRole="FmsMaterial" />
  5781. <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="CmSite" ToRole="FmsMaterialRelease" />
  5782. <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="CmSite" ToRole="FmsReport" />
  5783. <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmSite" ToRole="CmPatrolHistory" />
  5784. <Property Name="controlSchedule" Type="Boolean" />
  5785. <NavigationProperty Name="CmMenu" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmSite" ToRole="CmMenu" />
  5786. <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="CmSite" ToRole="BemsChartInfo" />
  5787. <Property Name="BuildingSize" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  5788. <Property Name="GrossArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5789. <Property Name="BuildingArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5790. <Property Name="FloorAreaRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5791. <Property Name="BuildingCoverageRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5792. <Property Name="MainUse" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  5793. <Property Name="CompletionDate" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5794. <Property Name="Standard" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5795. <Property Name="MainUseIndex" Type="Int32" />
  5796. <Property Name="HDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5797. <Property Name="CDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  5798. <NavigationProperty Name="BemsPeopleIncrease" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="CmSite" ToRole="BemsPeopleIncrease" />
  5799. <NavigationProperty Name="BemsRentalRate" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="CmSite" ToRole="BemsRentalRate" />
  5800. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="CmSite" ToRole="BemsSitePrice" />
  5801. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="CmSite" ToRole="BemsSitePriceHistory" />
  5802. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="CmSite" ToRole="BemsAlarmSetting" />
  5803. <NavigationProperty Name="BemsEnergyConfigPercentMonth" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="CmSite" ToRole="BemsEnergyConfigPercentMonth" />
  5804. <NavigationProperty Name="BemsEnergyConfigPercentWeek" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="CmSite" ToRole="BemsEnergyConfigPercentWeek" />
  5805. <NavigationProperty Name="BemsEnergyDailyRegression" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="CmSite" ToRole="BemsEnergyDailyRegression" />
  5806. </EntityType>
  5807. <Association Name="FK_BemsPeakHIstory_CmSite">
  5808. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5809. <End Type="iBemsModel.BemsPeakHistory" Role="BemsPeakHistory" Multiplicity="*" />
  5810. <ReferentialConstraint>
  5811. <Principal Role="CmSite">
  5812. <PropertyRef Name="SiteId" />
  5813. </Principal>
  5814. <Dependent Role="BemsPeakHistory">
  5815. <PropertyRef Name="SiteId" />
  5816. </Dependent>
  5817. </ReferentialConstraint>
  5818. </Association>
  5819. <Association Name="FK_BemsPeakInfo_CmSite">
  5820. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5821. <End Type="iBemsModel.BemsPeakInfo" Role="BemsPeakInfo" Multiplicity="0..1" />
  5822. <ReferentialConstraint>
  5823. <Principal Role="CmSite">
  5824. <PropertyRef Name="SiteId" />
  5825. </Principal>
  5826. <Dependent Role="BemsPeakInfo">
  5827. <PropertyRef Name="SiteId" />
  5828. </Dependent>
  5829. </ReferentialConstraint>
  5830. </Association>
  5831. <Association Name="FK__CmBuildin__SiteI__3BFFE745">
  5832. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5833. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="*" />
  5834. <ReferentialConstraint>
  5835. <Principal Role="CmSite">
  5836. <PropertyRef Name="SiteId" />
  5837. </Principal>
  5838. <Dependent Role="CmBuilding">
  5839. <PropertyRef Name="SiteId" />
  5840. </Dependent>
  5841. </ReferentialConstraint>
  5842. </Association>
  5843. <Association Name="FK__CmCompany__SiteI__336AA144">
  5844. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5845. <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="*" />
  5846. <ReferentialConstraint>
  5847. <Principal Role="CmSite">
  5848. <PropertyRef Name="SiteId" />
  5849. </Principal>
  5850. <Dependent Role="CmCompany">
  5851. <PropertyRef Name="SiteId" />
  5852. </Dependent>
  5853. </ReferentialConstraint>
  5854. </Association>
  5855. <Association Name="FK_CmFacilityTempSet_CmSite">
  5856. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5857. <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="*" />
  5858. <ReferentialConstraint>
  5859. <Principal Role="CmSite">
  5860. <PropertyRef Name="SiteId" />
  5861. </Principal>
  5862. <Dependent Role="CmFacilityTempSet">
  5863. <PropertyRef Name="SiteId" />
  5864. </Dependent>
  5865. </ReferentialConstraint>
  5866. </Association>
  5867. <Association Name="FK__CmFile__SiteId__2759D01A">
  5868. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5869. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="*" />
  5870. <ReferentialConstraint>
  5871. <Principal Role="CmSite">
  5872. <PropertyRef Name="SiteId" />
  5873. </Principal>
  5874. <Dependent Role="CmFile">
  5875. <PropertyRef Name="SiteId" />
  5876. </Dependent>
  5877. </ReferentialConstraint>
  5878. </Association>
  5879. <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
  5880. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5881. <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
  5882. <ReferentialConstraint>
  5883. <Principal Role="CmSite">
  5884. <PropertyRef Name="SiteId" />
  5885. </Principal>
  5886. <Dependent Role="CmHoliday">
  5887. <PropertyRef Name="SiteId" />
  5888. </Dependent>
  5889. </ReferentialConstraint>
  5890. </Association>
  5891. <Association Name="FK__CmHoliday__SiteI__65AC084E">
  5892. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5893. <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
  5894. <ReferentialConstraint>
  5895. <Principal Role="CmSite">
  5896. <PropertyRef Name="SiteId" />
  5897. </Principal>
  5898. <Dependent Role="CmHoliday">
  5899. <PropertyRef Name="SiteId" />
  5900. </Dependent>
  5901. </ReferentialConstraint>
  5902. </Association>
  5903. <Association Name="FK__CmHoliday__SiteI__10766AC2">
  5904. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5905. <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
  5906. <ReferentialConstraint>
  5907. <Principal Role="CmSite">
  5908. <PropertyRef Name="SiteId" />
  5909. </Principal>
  5910. <Dependent Role="CmHolidayCustom">
  5911. <PropertyRef Name="SiteId" />
  5912. </Dependent>
  5913. </ReferentialConstraint>
  5914. </Association>
  5915. <Association Name="FK__CmHoliday__SiteI__66A02C87">
  5916. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5917. <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
  5918. <ReferentialConstraint>
  5919. <Principal Role="CmSite">
  5920. <PropertyRef Name="SiteId" />
  5921. </Principal>
  5922. <Dependent Role="CmHolidayCustom">
  5923. <PropertyRef Name="SiteId" />
  5924. </Dependent>
  5925. </ReferentialConstraint>
  5926. </Association>
  5927. <Association Name="FK__CmHoliday__SiteI__0D99FE17">
  5928. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5929. <End Type="iBemsModel.CmHolidayWeekend" Role="CmHolidayWeekend" Multiplicity="0..1" />
  5930. <ReferentialConstraint>
  5931. <Principal Role="CmSite">
  5932. <PropertyRef Name="SiteId" />
  5933. </Principal>
  5934. <Dependent Role="CmHolidayWeekend">
  5935. <PropertyRef Name="SiteId" />
  5936. </Dependent>
  5937. </ReferentialConstraint>
  5938. </Association>
  5939. <Association Name="FK_CmPatrolCourse_CmSite">
  5940. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5941. <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="*" />
  5942. <ReferentialConstraint>
  5943. <Principal Role="CmSite">
  5944. <PropertyRef Name="SiteId" />
  5945. </Principal>
  5946. <Dependent Role="CmPatrolCourse">
  5947. <PropertyRef Name="SiteId" />
  5948. </Dependent>
  5949. </ReferentialConstraint>
  5950. </Association>
  5951. <Association Name="FK_CmPatrolCoursePos_CmSite">
  5952. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5953. <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
  5954. <ReferentialConstraint>
  5955. <Principal Role="CmSite">
  5956. <PropertyRef Name="SiteId" />
  5957. </Principal>
  5958. <Dependent Role="CmPatrolCoursePos">
  5959. <PropertyRef Name="SiteId" />
  5960. </Dependent>
  5961. </ReferentialConstraint>
  5962. </Association>
  5963. <Association Name="FK_CmPatrolGroup_CmSite">
  5964. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5965. <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="*" />
  5966. <ReferentialConstraint>
  5967. <Principal Role="CmSite">
  5968. <PropertyRef Name="SiteId" />
  5969. </Principal>
  5970. <Dependent Role="CmPatrolGroup">
  5971. <PropertyRef Name="SiteId" />
  5972. </Dependent>
  5973. </ReferentialConstraint>
  5974. </Association>
  5975. <Association Name="FK_CmPatrolHistoryPos_CmSite">
  5976. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5977. <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
  5978. <ReferentialConstraint>
  5979. <Principal Role="CmSite">
  5980. <PropertyRef Name="SiteId" />
  5981. </Principal>
  5982. <Dependent Role="CmPatrolHistoryPos">
  5983. <PropertyRef Name="SiteId" />
  5984. </Dependent>
  5985. </ReferentialConstraint>
  5986. </Association>
  5987. <Association Name="FK_CmPatrolPlan_CmSite">
  5988. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  5989. <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
  5990. <ReferentialConstraint>
  5991. <Principal Role="CmSite">
  5992. <PropertyRef Name="SiteId" />
  5993. </Principal>
  5994. <Dependent Role="CmPatrolPlan">
  5995. <PropertyRef Name="SiteId" />
  5996. </Dependent>
  5997. </ReferentialConstraint>
  5998. </Association>
  5999. <Association Name="FK_CmPatrolPos_CmSite">
  6000. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6001. <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
  6002. <ReferentialConstraint>
  6003. <Principal Role="CmSite">
  6004. <PropertyRef Name="SiteId" />
  6005. </Principal>
  6006. <Dependent Role="CmPatrolPos">
  6007. <PropertyRef Name="SiteId" />
  6008. </Dependent>
  6009. </ReferentialConstraint>
  6010. </Association>
  6011. <Association Name="FK_CmPatrolSchedule_CmSite">
  6012. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6013. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
  6014. <ReferentialConstraint>
  6015. <Principal Role="CmSite">
  6016. <PropertyRef Name="SiteId" />
  6017. </Principal>
  6018. <Dependent Role="CmPatrolSchedule">
  6019. <PropertyRef Name="SiteId" />
  6020. </Dependent>
  6021. </ReferentialConstraint>
  6022. </Association>
  6023. <Association Name="FK_CmPatrolType_CmSite">
  6024. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6025. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="*" />
  6026. <ReferentialConstraint>
  6027. <Principal Role="CmSite">
  6028. <PropertyRef Name="SiteId" />
  6029. </Principal>
  6030. <Dependent Role="CmPatrolType">
  6031. <PropertyRef Name="SiteId" />
  6032. </Dependent>
  6033. </ReferentialConstraint>
  6034. </Association>
  6035. <Association Name="FK__CmPositio__SiteI__6A70BD6B">
  6036. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6037. <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
  6038. <ReferentialConstraint>
  6039. <Principal Role="CmSite">
  6040. <PropertyRef Name="SiteId" />
  6041. </Principal>
  6042. <Dependent Role="CmPosition">
  6043. <PropertyRef Name="SiteId" />
  6044. </Dependent>
  6045. </ReferentialConstraint>
  6046. </Association>
  6047. <Association Name="FK__CmUserPos__SiteI__44952D46">
  6048. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6049. <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
  6050. <ReferentialConstraint>
  6051. <Principal Role="CmSite">
  6052. <PropertyRef Name="SiteId" />
  6053. </Principal>
  6054. <Dependent Role="CmPosition">
  6055. <PropertyRef Name="SiteId" />
  6056. </Dependent>
  6057. </ReferentialConstraint>
  6058. </Association>
  6059. <Association Name="FK__CmUserGro__SiteI__53D770D6">
  6060. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6061. <End Type="iBemsModel.CmUserGroup" Role="CmUserGroup" Multiplicity="*" />
  6062. <ReferentialConstraint>
  6063. <Principal Role="CmSite">
  6064. <PropertyRef Name="SiteId" />
  6065. </Principal>
  6066. <Dependent Role="CmUserGroup">
  6067. <PropertyRef Name="SiteId" />
  6068. </Dependent>
  6069. </ReferentialConstraint>
  6070. </Association>
  6071. <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
  6072. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6073. <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
  6074. <ReferentialConstraint>
  6075. <Principal Role="CmSite">
  6076. <PropertyRef Name="SiteId" />
  6077. </Principal>
  6078. <Dependent Role="FmsDrawingCodeGroup">
  6079. <PropertyRef Name="SiteId" />
  6080. </Dependent>
  6081. </ReferentialConstraint>
  6082. </Association>
  6083. <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
  6084. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6085. <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
  6086. <ReferentialConstraint>
  6087. <Principal Role="CmSite">
  6088. <PropertyRef Name="SiteId" />
  6089. </Principal>
  6090. <Dependent Role="FmsDrawingCodeType">
  6091. <PropertyRef Name="SiteId" />
  6092. </Dependent>
  6093. </ReferentialConstraint>
  6094. </Association>
  6095. <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
  6096. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6097. <End Type="iBemsModel.FmsDrawing" Role="FmsDrawing" Multiplicity="*" />
  6098. <ReferentialConstraint>
  6099. <Principal Role="CmSite">
  6100. <PropertyRef Name="SiteId" />
  6101. </Principal>
  6102. <Dependent Role="FmsDrawing">
  6103. <PropertyRef Name="SiteId" />
  6104. </Dependent>
  6105. </ReferentialConstraint>
  6106. </Association>
  6107. <Association Name="FK__FmsDrawin__SiteI__6F357288">
  6108. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6109. <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
  6110. <ReferentialConstraint>
  6111. <Principal Role="CmSite">
  6112. <PropertyRef Name="SiteId" />
  6113. </Principal>
  6114. <Dependent Role="FmsDrawingCodeGroup">
  6115. <PropertyRef Name="SiteId" />
  6116. </Dependent>
  6117. </ReferentialConstraint>
  6118. </Association>
  6119. <Association Name="FK__FmsDrawin__SiteI__702996C1">
  6120. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6121. <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
  6122. <ReferentialConstraint>
  6123. <Principal Role="CmSite">
  6124. <PropertyRef Name="SiteId" />
  6125. </Principal>
  6126. <Dependent Role="FmsDrawingCodeType">
  6127. <PropertyRef Name="SiteId" />
  6128. </Dependent>
  6129. </ReferentialConstraint>
  6130. </Association>
  6131. <Association Name="FK__FmsFacilityCodeClass__CmSite">
  6132. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1">
  6133. <OnDelete Action="Cascade" />
  6134. </End>
  6135. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="*" />
  6136. <ReferentialConstraint>
  6137. <Principal Role="CmSite">
  6138. <PropertyRef Name="SiteId" />
  6139. </Principal>
  6140. <Dependent Role="FmsFacilityCodeClass">
  6141. <PropertyRef Name="SiteId" />
  6142. </Dependent>
  6143. </ReferentialConstraint>
  6144. </Association>
  6145. <Association Name="FK__FmsLicense__CmSite">
  6146. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6147. <End Type="iBemsModel.FmsLicense" Role="FmsLicense" Multiplicity="*" />
  6148. <ReferentialConstraint>
  6149. <Principal Role="CmSite">
  6150. <PropertyRef Name="SiteId" />
  6151. </Principal>
  6152. <Dependent Role="FmsLicense">
  6153. <PropertyRef Name="SiteId" />
  6154. </Dependent>
  6155. </ReferentialConstraint>
  6156. </Association>
  6157. <Association Name="FK__FmsMaterialCarriedForward__CmSite">
  6158. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6159. <End Type="iBemsModel.FmsMaterialCarriedForward" Role="FmsMaterialCarriedForward" Multiplicity="*" />
  6160. <ReferentialConstraint>
  6161. <Principal Role="CmSite">
  6162. <PropertyRef Name="SiteId" />
  6163. </Principal>
  6164. <Dependent Role="FmsMaterialCarriedForward">
  6165. <PropertyRef Name="SiteId" />
  6166. </Dependent>
  6167. </ReferentialConstraint>
  6168. </Association>
  6169. <Association Name="FK__FmsMaterialCodeClass__CmSite">
  6170. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6171. <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="*" />
  6172. <ReferentialConstraint>
  6173. <Principal Role="CmSite">
  6174. <PropertyRef Name="SiteId" />
  6175. </Principal>
  6176. <Dependent Role="FmsMaterialCodeClass">
  6177. <PropertyRef Name="SiteId" />
  6178. </Dependent>
  6179. </ReferentialConstraint>
  6180. </Association>
  6181. <Association Name="FK__FmsMaterialCodeLocation__CmSite">
  6182. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6183. <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="*" />
  6184. <ReferentialConstraint>
  6185. <Principal Role="CmSite">
  6186. <PropertyRef Name="SiteId" />
  6187. </Principal>
  6188. <Dependent Role="FmsMaterialCodeLocation">
  6189. <PropertyRef Name="SiteId" />
  6190. </Dependent>
  6191. </ReferentialConstraint>
  6192. </Association>
  6193. <Association Name="FK__FmsMaterialCodeType__CmSite">
  6194. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6195. <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="*" />
  6196. <ReferentialConstraint>
  6197. <Principal Role="CmSite">
  6198. <PropertyRef Name="SiteId" />
  6199. </Principal>
  6200. <Dependent Role="FmsMaterialCodeType">
  6201. <PropertyRef Name="SiteId" />
  6202. </Dependent>
  6203. </ReferentialConstraint>
  6204. </Association>
  6205. <Association Name="FK__FmsMaterialOrder__CmSite">
  6206. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6207. <End Type="iBemsModel.FmsMaterialPurchaseOrder" Role="FmsMaterialPurchaseOrder" Multiplicity="*" />
  6208. <ReferentialConstraint>
  6209. <Principal Role="CmSite">
  6210. <PropertyRef Name="SiteId" />
  6211. </Principal>
  6212. <Dependent Role="FmsMaterialPurchaseOrder">
  6213. <PropertyRef Name="SiteId" />
  6214. </Dependent>
  6215. </ReferentialConstraint>
  6216. </Association>
  6217. <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
  6218. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6219. <End Type="iBemsModel.FmsMaterialPurchaseRequest" Role="FmsMaterialPurchaseRequest" Multiplicity="*" />
  6220. <ReferentialConstraint>
  6221. <Principal Role="CmSite">
  6222. <PropertyRef Name="SiteId" />
  6223. </Principal>
  6224. <Dependent Role="FmsMaterialPurchaseRequest">
  6225. <PropertyRef Name="SiteId" />
  6226. </Dependent>
  6227. </ReferentialConstraint>
  6228. </Association>
  6229. <Association Name="FK__FmsMaterialStored__CmSite">
  6230. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6231. <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
  6232. <ReferentialConstraint>
  6233. <Principal Role="CmSite">
  6234. <PropertyRef Name="SiteId" />
  6235. </Principal>
  6236. <Dependent Role="FmsMaterialStored">
  6237. <PropertyRef Name="SiteId" />
  6238. </Dependent>
  6239. </ReferentialConstraint>
  6240. </Association>
  6241. <Association Name="FK__FmsMaterialTradeCompany__CmSite">
  6242. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6243. <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="*" />
  6244. <ReferentialConstraint>
  6245. <Principal Role="CmSite">
  6246. <PropertyRef Name="SiteId" />
  6247. </Principal>
  6248. <Dependent Role="FmsMaterialTradeCompany">
  6249. <PropertyRef Name="SiteId" />
  6250. </Dependent>
  6251. </ReferentialConstraint>
  6252. </Association>
  6253. <Association Name="FK__FmsMaterialWarehouse__CmSite">
  6254. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6255. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="*" />
  6256. <ReferentialConstraint>
  6257. <Principal Role="CmSite">
  6258. <PropertyRef Name="SiteId" />
  6259. </Principal>
  6260. <Dependent Role="FmsMaterialWarehouse">
  6261. <PropertyRef Name="SiteId" />
  6262. </Dependent>
  6263. </ReferentialConstraint>
  6264. </Association>
  6265. <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
  6266. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6267. <End Type="iBemsModel.FmsWorkCodeCauseClass" Role="FmsWorkCodeCauseClass" Multiplicity="*" />
  6268. <ReferentialConstraint>
  6269. <Principal Role="CmSite">
  6270. <PropertyRef Name="SiteId" />
  6271. </Principal>
  6272. <Dependent Role="FmsWorkCodeCauseClass">
  6273. <PropertyRef Name="SiteId" />
  6274. </Dependent>
  6275. </ReferentialConstraint>
  6276. </Association>
  6277. <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
  6278. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6279. <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="*" />
  6280. <ReferentialConstraint>
  6281. <Principal Role="CmSite">
  6282. <PropertyRef Name="SiteId" />
  6283. </Principal>
  6284. <Dependent Role="FmsWorkCodeCycleUnit">
  6285. <PropertyRef Name="SiteId" />
  6286. </Dependent>
  6287. </ReferentialConstraint>
  6288. </Association>
  6289. <Association Name="FK__FmsWorkCodeEmergency__CmSite">
  6290. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6291. <End Type="iBemsModel.FmsWorkCodeEmergency" Role="FmsWorkCodeEmergency" Multiplicity="*" />
  6292. <ReferentialConstraint>
  6293. <Principal Role="CmSite">
  6294. <PropertyRef Name="SiteId" />
  6295. </Principal>
  6296. <Dependent Role="FmsWorkCodeEmergency">
  6297. <PropertyRef Name="SiteId" />
  6298. </Dependent>
  6299. </ReferentialConstraint>
  6300. </Association>
  6301. <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
  6302. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6303. <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="*" />
  6304. <ReferentialConstraint>
  6305. <Principal Role="CmSite">
  6306. <PropertyRef Name="SiteId" />
  6307. </Principal>
  6308. <Dependent Role="FmsWorkCodeHolidayWorkType">
  6309. <PropertyRef Name="SiteId" />
  6310. </Dependent>
  6311. </ReferentialConstraint>
  6312. </Association>
  6313. <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
  6314. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6315. <End Type="iBemsModel.FmsWorkCodeLegalInspectionAgency" Role="FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
  6316. <ReferentialConstraint>
  6317. <Principal Role="CmSite">
  6318. <PropertyRef Name="SiteId" />
  6319. </Principal>
  6320. <Dependent Role="FmsWorkCodeLegalInspectionAgency">
  6321. <PropertyRef Name="SiteId" />
  6322. </Dependent>
  6323. </ReferentialConstraint>
  6324. </Association>
  6325. <Association Name="FK__FmsWorkOrder__CmSite">
  6326. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6327. <End Type="iBemsModel.FmsWorkOrder" Role="FmsWorkOrder" Multiplicity="*" />
  6328. <ReferentialConstraint>
  6329. <Principal Role="CmSite">
  6330. <PropertyRef Name="SiteId" />
  6331. </Principal>
  6332. <Dependent Role="FmsWorkOrder">
  6333. <PropertyRef Name="SiteId" />
  6334. </Dependent>
  6335. </ReferentialConstraint>
  6336. </Association>
  6337. <Association Name="FK__FmsWorkRequest__CmSite">
  6338. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6339. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  6340. <ReferentialConstraint>
  6341. <Principal Role="CmSite">
  6342. <PropertyRef Name="SiteId" />
  6343. </Principal>
  6344. <Dependent Role="FmsWorkRequest">
  6345. <PropertyRef Name="SiteId" />
  6346. </Dependent>
  6347. </ReferentialConstraint>
  6348. </Association>
  6349. <Association Name="FK_CmZoneTempHumiSet_CmSite">
  6350. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6351. <End Type="iBemsModel.CmZoneTempHumiSet" Role="CmZoneTempHumiSet" Multiplicity="*" />
  6352. <ReferentialConstraint>
  6353. <Principal Role="CmSite">
  6354. <PropertyRef Name="SiteId" />
  6355. </Principal>
  6356. <Dependent Role="CmZoneTempHumiSet">
  6357. <PropertyRef Name="SiteId" />
  6358. </Dependent>
  6359. </ReferentialConstraint>
  6360. </Association>
  6361. <Association Name="FK_FmsMaterial_CmSite">
  6362. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6363. <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
  6364. <ReferentialConstraint>
  6365. <Principal Role="CmSite">
  6366. <PropertyRef Name="SiteId" />
  6367. </Principal>
  6368. <Dependent Role="FmsMaterial">
  6369. <PropertyRef Name="SiteId" />
  6370. </Dependent>
  6371. </ReferentialConstraint>
  6372. </Association>
  6373. <Association Name="FK_FmsMaterialRelease_CmSite">
  6374. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6375. <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
  6376. <ReferentialConstraint>
  6377. <Principal Role="CmSite">
  6378. <PropertyRef Name="SiteId" />
  6379. </Principal>
  6380. <Dependent Role="FmsMaterialRelease">
  6381. <PropertyRef Name="SiteId" />
  6382. </Dependent>
  6383. </ReferentialConstraint>
  6384. </Association>
  6385. <EntityType Name="FmsReport">
  6386. <Key>
  6387. <PropertyRef Name="SiteId" />
  6388. <PropertyRef Name="RId" />
  6389. </Key>
  6390. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6391. <Property Name="RId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  6392. <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  6393. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  6394. <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  6395. <Property Name="FileId" Type="Int32" />
  6396. <Property Name="MakeDate" Type="DateTime" Nullable="false" Precision="3" />
  6397. <Property Name="ConfirmUserId1" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  6398. <Property Name="ConfirmUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  6399. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  6400. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="FmsReport" ToRole="CmBusinessField" />
  6401. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="FmsReport" ToRole="CmFile" />
  6402. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="FmsReport" ToRole="CmSite" />
  6403. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="FmsReport" ToRole="CmUser" />
  6404. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="FmsReport" ToRole="CmUser" />
  6405. <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="FmsReport" ToRole="CmUser" />
  6406. </EntityType>
  6407. <Association Name="FK_FmsReport_CmBusinessField">
  6408. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  6409. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  6410. <ReferentialConstraint>
  6411. <Principal Role="CmBusinessField">
  6412. <PropertyRef Name="SiteId" />
  6413. <PropertyRef Name="BusinessFieldId" />
  6414. </Principal>
  6415. <Dependent Role="FmsReport">
  6416. <PropertyRef Name="SiteId" />
  6417. <PropertyRef Name="BusinessFieldId" />
  6418. </Dependent>
  6419. </ReferentialConstraint>
  6420. </Association>
  6421. <Association Name="FK_FmsReport_CmFile">
  6422. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  6423. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  6424. <ReferentialConstraint>
  6425. <Principal Role="CmFile">
  6426. <PropertyRef Name="SiteId" />
  6427. <PropertyRef Name="FileId" />
  6428. </Principal>
  6429. <Dependent Role="FmsReport">
  6430. <PropertyRef Name="SiteId" />
  6431. <PropertyRef Name="FileId" />
  6432. </Dependent>
  6433. </ReferentialConstraint>
  6434. </Association>
  6435. <Association Name="FK_FmsReport_CmSite">
  6436. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6437. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  6438. <ReferentialConstraint>
  6439. <Principal Role="CmSite">
  6440. <PropertyRef Name="SiteId" />
  6441. </Principal>
  6442. <Dependent Role="FmsReport">
  6443. <PropertyRef Name="SiteId" />
  6444. </Dependent>
  6445. </ReferentialConstraint>
  6446. </Association>
  6447. <Association Name="FK_FmsReport_CmUser">
  6448. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  6449. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  6450. <ReferentialConstraint>
  6451. <Principal Role="CmUser">
  6452. <PropertyRef Name="SiteId" />
  6453. <PropertyRef Name="UserId" />
  6454. </Principal>
  6455. <Dependent Role="FmsReport">
  6456. <PropertyRef Name="SiteId" />
  6457. <PropertyRef Name="RegisterUserId" />
  6458. </Dependent>
  6459. </ReferentialConstraint>
  6460. </Association>
  6461. <Association Name="FK_FmsReport_CmUser1">
  6462. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  6463. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  6464. <ReferentialConstraint>
  6465. <Principal Role="CmUser">
  6466. <PropertyRef Name="SiteId" />
  6467. <PropertyRef Name="UserId" />
  6468. </Principal>
  6469. <Dependent Role="FmsReport">
  6470. <PropertyRef Name="SiteId" />
  6471. <PropertyRef Name="ConfirmUserId1" />
  6472. </Dependent>
  6473. </ReferentialConstraint>
  6474. </Association>
  6475. <Association Name="FK_FmsReport_CmUser2">
  6476. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  6477. <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
  6478. <ReferentialConstraint>
  6479. <Principal Role="CmUser">
  6480. <PropertyRef Name="SiteId" />
  6481. <PropertyRef Name="UserId" />
  6482. </Principal>
  6483. <Dependent Role="FmsReport">
  6484. <PropertyRef Name="SiteId" />
  6485. <PropertyRef Name="ConfirmUserId2" />
  6486. </Dependent>
  6487. </ReferentialConstraint>
  6488. </Association>
  6489. <EntityType Name="CmServiceEnergyCalcMonth">
  6490. <Key>
  6491. <PropertyRef Name="SiteId" />
  6492. <PropertyRef Name="calDate" />
  6493. <PropertyRef Name="ServiceTypeId" />
  6494. </Key>
  6495. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6496. <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
  6497. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  6498. <Property Name="Value" Type="Double" />
  6499. </EntityType>
  6500. <EntityType Name="CmServiceEnergyCalcDay">
  6501. <Key>
  6502. <PropertyRef Name="SiteId" />
  6503. <PropertyRef Name="calDate" />
  6504. <PropertyRef Name="ServiceTypeId" />
  6505. </Key>
  6506. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6507. <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
  6508. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  6509. <Property Name="Value" Type="Double" />
  6510. </EntityType>
  6511. <EntityType Name="CmPatrolHistory">
  6512. <Key>
  6513. <PropertyRef Name="PatrolHistoryId" />
  6514. </Key>
  6515. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6516. <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  6517. <Property Name="ScheduleId" Type="Int32" Nullable="false" />
  6518. <Property Name="startDate" Type="DateTime" Nullable="false" Precision="3" />
  6519. <Property Name="endDate" Type="DateTime" Precision="3" />
  6520. <Property Name="resultTypeId" Type="Int32" Nullable="false" />
  6521. <Property Name="resultDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
  6522. <Property Name="resultPosCnt" Type="Int32" />
  6523. <Property Name="resultNormalCnt" Type="Int32" />
  6524. <Property Name="resultAbnormalCnt" Type="Int32" />
  6525. <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolHistory" ToRole="CmPatrolSchedule" />
  6526. <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolHistory" ToRole="CmPatrolType" />
  6527. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmPatrolHistory" ToRole="CmSite" />
  6528. </EntityType>
  6529. <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
  6530. <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="1" />
  6531. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  6532. <ReferentialConstraint>
  6533. <Principal Role="CmPatrolSchedule">
  6534. <PropertyRef Name="SiteId" />
  6535. <PropertyRef Name="ScheduleId" />
  6536. </Principal>
  6537. <Dependent Role="CmPatrolHistory">
  6538. <PropertyRef Name="SiteId" />
  6539. <PropertyRef Name="ScheduleId" />
  6540. </Dependent>
  6541. </ReferentialConstraint>
  6542. </Association>
  6543. <Association Name="FK_CmPatrolHistory_CmPatrolType">
  6544. <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
  6545. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  6546. <ReferentialConstraint>
  6547. <Principal Role="CmPatrolType">
  6548. <PropertyRef Name="SiteId" />
  6549. <PropertyRef Name="PatrolTypeId" />
  6550. </Principal>
  6551. <Dependent Role="CmPatrolHistory">
  6552. <PropertyRef Name="SiteId" />
  6553. <PropertyRef Name="resultTypeId" />
  6554. </Dependent>
  6555. </ReferentialConstraint>
  6556. </Association>
  6557. <Association Name="FK_CmPatrolHistory_CmSite">
  6558. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6559. <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
  6560. <ReferentialConstraint>
  6561. <Principal Role="CmSite">
  6562. <PropertyRef Name="SiteId" />
  6563. </Principal>
  6564. <Dependent Role="CmPatrolHistory">
  6565. <PropertyRef Name="SiteId" />
  6566. </Dependent>
  6567. </ReferentialConstraint>
  6568. </Association>
  6569. <EntityType Name="BemsReportFormat">
  6570. <Key>
  6571. <PropertyRef Name="ReportFormatId" />
  6572. <PropertyRef Name="parts" />
  6573. </Key>
  6574. <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
  6575. <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  6576. <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  6577. <Property Name="parts" Type="Int32" Nullable="false" />
  6578. </EntityType>
  6579. <EntityType Name="FmsWorkSchedule">
  6580. <Key>
  6581. <PropertyRef Name="SiteId" />
  6582. <PropertyRef Name="WorkScheduleId" />
  6583. </Key>
  6584. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6585. <Property Name="WorkScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  6586. <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
  6587. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  6588. <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
  6589. <Property Name="InspectionAgencyId" Type="Int32" />
  6590. <Property Name="CycleSize" Type="Int32" Nullable="false" />
  6591. <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
  6592. <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
  6593. <Property Name="WorkDueDate" Type="DateTime" Nullable="false" Precision="3" />
  6594. <Property Name="UpdateUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  6595. <Property Name="IsUse" Type="Boolean" Nullable="false" />
  6596. <Property Name="IsAutoOrder" Type="Boolean" Nullable="false" />
  6597. <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  6598. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK__FmsWorkSchedule__CmBusinessField" FromRole="FmsWorkSchedule" ToRole="CmBusinessField" />
  6599. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__FmsWorkSchedule__CmUser" FromRole="FmsWorkSchedule" ToRole="CmUser" />
  6600. <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeCycleUnit" />
  6601. <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeHolidayWorkType" />
  6602. <NavigationProperty Name="FmsWorkCodeType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeType" />
  6603. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkRequest" />
  6604. <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkScheduleToFacility" />
  6605. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="FmsWorkSchedule" ToRole="CmPartner" />
  6606. </EntityType>
  6607. <Association Name="FK__FmsWorkSchedule__CmBusinessField">
  6608. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  6609. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  6610. <ReferentialConstraint>
  6611. <Principal Role="CmBusinessField">
  6612. <PropertyRef Name="SiteId" />
  6613. <PropertyRef Name="BusinessFieldId" />
  6614. </Principal>
  6615. <Dependent Role="FmsWorkSchedule">
  6616. <PropertyRef Name="SiteId" />
  6617. <PropertyRef Name="BusinessFieldId" />
  6618. </Dependent>
  6619. </ReferentialConstraint>
  6620. </Association>
  6621. <Association Name="FK__FmsWorkSchedule__CmUser">
  6622. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  6623. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  6624. <ReferentialConstraint>
  6625. <Principal Role="CmUser">
  6626. <PropertyRef Name="SiteId" />
  6627. <PropertyRef Name="UserId" />
  6628. </Principal>
  6629. <Dependent Role="FmsWorkSchedule">
  6630. <PropertyRef Name="SiteId" />
  6631. <PropertyRef Name="UpdateUserId" />
  6632. </Dependent>
  6633. </ReferentialConstraint>
  6634. </Association>
  6635. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
  6636. <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="1" />
  6637. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  6638. <ReferentialConstraint>
  6639. <Principal Role="FmsWorkCodeCycleUnit">
  6640. <PropertyRef Name="SiteId" />
  6641. <PropertyRef Name="CycleUnitId" />
  6642. </Principal>
  6643. <Dependent Role="FmsWorkSchedule">
  6644. <PropertyRef Name="SiteId" />
  6645. <PropertyRef Name="CycleUnitId" />
  6646. </Dependent>
  6647. </ReferentialConstraint>
  6648. </Association>
  6649. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
  6650. <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="1" />
  6651. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  6652. <ReferentialConstraint>
  6653. <Principal Role="FmsWorkCodeHolidayWorkType">
  6654. <PropertyRef Name="SiteId" />
  6655. <PropertyRef Name="HolidayWorkTypeId" />
  6656. </Principal>
  6657. <Dependent Role="FmsWorkSchedule">
  6658. <PropertyRef Name="SiteId" />
  6659. <PropertyRef Name="HolidayWorkTypeId" />
  6660. </Dependent>
  6661. </ReferentialConstraint>
  6662. </Association>
  6663. <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
  6664. <End Type="iBemsModel.FmsWorkCodeType" Role="FmsWorkCodeType" Multiplicity="1" />
  6665. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  6666. <ReferentialConstraint>
  6667. <Principal Role="FmsWorkCodeType">
  6668. <PropertyRef Name="WorkTypeId" />
  6669. </Principal>
  6670. <Dependent Role="FmsWorkSchedule">
  6671. <PropertyRef Name="WorkTypeId" />
  6672. </Dependent>
  6673. </ReferentialConstraint>
  6674. </Association>
  6675. <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
  6676. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="0..1" />
  6677. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  6678. <ReferentialConstraint>
  6679. <Principal Role="FmsWorkSchedule">
  6680. <PropertyRef Name="SiteId" />
  6681. <PropertyRef Name="WorkScheduleId" />
  6682. </Principal>
  6683. <Dependent Role="FmsWorkRequest">
  6684. <PropertyRef Name="SiteId" />
  6685. <PropertyRef Name="WorkScheduleId" />
  6686. </Dependent>
  6687. </ReferentialConstraint>
  6688. </Association>
  6689. <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
  6690. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="1" />
  6691. <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
  6692. <ReferentialConstraint>
  6693. <Principal Role="FmsWorkSchedule">
  6694. <PropertyRef Name="SiteId" />
  6695. <PropertyRef Name="WorkScheduleId" />
  6696. </Principal>
  6697. <Dependent Role="FmsWorkScheduleToFacility">
  6698. <PropertyRef Name="SiteId" />
  6699. <PropertyRef Name="WorkScheduleId" />
  6700. </Dependent>
  6701. </ReferentialConstraint>
  6702. </Association>
  6703. <EntityType Name="CmMenu">
  6704. <Key>
  6705. <PropertyRef Name="SiteId" />
  6706. <PropertyRef Name="MenuId" />
  6707. </Key>
  6708. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6709. <Property Name="MenuId" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  6710. <Property Name="Used" Type="Boolean" />
  6711. <Property Name="MenuPath" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  6712. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6713. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmMenu" ToRole="CmSite" />
  6714. </EntityType>
  6715. <Association Name="FK_FmsWorkResultCheckItem_CmFile">
  6716. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  6717. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  6718. <ReferentialConstraint>
  6719. <Principal Role="CmFile">
  6720. <PropertyRef Name="SiteId" />
  6721. <PropertyRef Name="FileId" />
  6722. </Principal>
  6723. <Dependent Role="FmsWorkResultCheckItem">
  6724. <PropertyRef Name="SiteId" />
  6725. <PropertyRef Name="FileId1" />
  6726. </Dependent>
  6727. </ReferentialConstraint>
  6728. </Association>
  6729. <Association Name="FK_FmsWorkResultCheckItem_CmFile1">
  6730. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  6731. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  6732. <ReferentialConstraint>
  6733. <Principal Role="CmFile">
  6734. <PropertyRef Name="SiteId" />
  6735. <PropertyRef Name="FileId" />
  6736. </Principal>
  6737. <Dependent Role="FmsWorkResultCheckItem">
  6738. <PropertyRef Name="SiteId" />
  6739. <PropertyRef Name="FileId2" />
  6740. </Dependent>
  6741. </ReferentialConstraint>
  6742. </Association>
  6743. <Association Name="FK_CmMenu_CmSite">
  6744. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6745. <End Type="iBemsModel.CmMenu" Role="CmMenu" Multiplicity="*" />
  6746. <ReferentialConstraint>
  6747. <Principal Role="CmSite">
  6748. <PropertyRef Name="SiteId" />
  6749. </Principal>
  6750. <Dependent Role="CmMenu">
  6751. <PropertyRef Name="SiteId" />
  6752. </Dependent>
  6753. </ReferentialConstraint>
  6754. </Association>
  6755. <EntityType Name="BemsChartInfo">
  6756. <Key>
  6757. <PropertyRef Name="SiteId" />
  6758. <PropertyRef Name="FacilityTypeId" />
  6759. <PropertyRef Name="ChartId" />
  6760. </Key>
  6761. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6762. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  6763. <Property Name="ChartId" Type="Int32" Nullable="false" />
  6764. <Property Name="LAxTitle" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  6765. <Property Name="RAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6766. <Property Name="XAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6767. <Property Name="XSFmId" Type="Int32" />
  6768. <Property Name="XSType" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6769. <Property Name="LSFmId1" Type="Int32" Nullable="false" />
  6770. <Property Name="LSName1" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  6771. <Property Name="LSType1" Type="String" Nullable="false" MaxLength="16" FixedLength="false" Unicode="true" />
  6772. <Property Name="LSFmId2" Type="Int32" />
  6773. <Property Name="LSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6774. <Property Name="LSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6775. <Property Name="LSFmId3" Type="Int32" />
  6776. <Property Name="LSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6777. <Property Name="LSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6778. <Property Name="LSFmId4" Type="Int32" />
  6779. <Property Name="LSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6780. <Property Name="LSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6781. <Property Name="RSFmId1" Type="Int32" />
  6782. <Property Name="RSName1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6783. <Property Name="RSType1" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6784. <Property Name="RSFmId2" Type="Int32" />
  6785. <Property Name="RSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6786. <Property Name="RSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6787. <Property Name="RSFmId3" Type="Int32" />
  6788. <Property Name="RSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6789. <Property Name="RSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6790. <Property Name="RSFmId4" Type="Int32" />
  6791. <Property Name="RSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6792. <Property Name="RSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
  6793. <Property Name="Title" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  6794. <Property Name="UseX" Type="Boolean" />
  6795. <Property Name="UseLAxMinMax" Type="Boolean" />
  6796. <Property Name="UseRAxMinMax" Type="Boolean" />
  6797. <Property Name="UseXAxMinMax" Type="Boolean" />
  6798. <Property Name="LAxMin" Type="Double" />
  6799. <Property Name="LAxMax" Type="Double" />
  6800. <Property Name="RAxMin" Type="Double" />
  6801. <Property Name="RAxMax" Type="Double" />
  6802. <Property Name="XAxMin" Type="Double" />
  6803. <Property Name="XAxMax" Type="Double" />
  6804. <Property Name="Palette" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
  6805. <Property Name="UseChart" Type="Boolean" />
  6806. <Property Name="UseLCTLine" Type="Boolean" Nullable="false" />
  6807. <Property Name="LCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6808. <Property Name="LCTLineValue" Type="Double" />
  6809. <Property Name="UseRCTLine" Type="Boolean" Nullable="false" />
  6810. <Property Name="RCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  6811. <Property Name="RCTLineValue" Type="Double" />
  6812. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsChartInfo" ToRole="BemsFacilityType" />
  6813. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="BemsChartInfo" ToRole="CmSite" />
  6814. </EntityType>
  6815. <Association Name="FK_BemsChartInfo_BemsFacilityType">
  6816. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  6817. <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
  6818. <ReferentialConstraint>
  6819. <Principal Role="BemsFacilityType">
  6820. <PropertyRef Name="FacilityTypeId" />
  6821. </Principal>
  6822. <Dependent Role="BemsChartInfo">
  6823. <PropertyRef Name="FacilityTypeId" />
  6824. </Dependent>
  6825. </ReferentialConstraint>
  6826. </Association>
  6827. <Association Name="FK_BemsChartInfo_CmSite">
  6828. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  6829. <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
  6830. <ReferentialConstraint>
  6831. <Principal Role="CmSite">
  6832. <PropertyRef Name="SiteId" />
  6833. </Principal>
  6834. <Dependent Role="BemsChartInfo">
  6835. <PropertyRef Name="SiteId" />
  6836. </Dependent>
  6837. </ReferentialConstraint>
  6838. </Association>
  6839. <EntityType Name="BemsPeopleIncrease">
  6840. <Key>
  6841. <PropertyRef Name="Date" />
  6842. <PropertyRef Name="SiteId" />
  6843. </Key>
  6844. <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
  6845. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6846. <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6847. <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6848. <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6849. <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6850. <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6851. <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6852. <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6853. <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6854. <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6855. <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6856. <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6857. <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  6858. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="BemsPeopleIncrease" ToRole="CmSite" />
  6859. </EntityType>
  6860. <EntityType Name="BemsPriceCode">
  6861. <Key>
  6862. <PropertyRef Name="PriceCode" />
  6863. </Key>
  6864. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  6865. <Property Name="PriceCodeDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  6866. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  6867. <Property Name="Unit" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
  6868. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePrice" />
  6869. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePriceHistory" />
  6870. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsPriceCode" ToRole="BemsFuelType" />
  6871. </EntityType>
  6872. <EntityType Name="BemsPriceFormula">
  6873. <Key>
  6874. <PropertyRef Name="SiteId" />
  6875. <PropertyRef Name="PriceTypeId" />
  6876. <PropertyRef Name="FacilityTypeId" />
  6877. <PropertyRef Name="FormulaId" />
  6878. <PropertyRef Name="FacilityCode" />
  6879. </Key>
  6880. <Property Name="SiteId" Type="Int32" Nullable="false" />
  6881. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  6882. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  6883. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  6884. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  6885. <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="true" />
  6886. <NavigationProperty Name="BemsFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsPriceFormula" ToRole="BemsFormula" />
  6887. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceFormula" ToRole="BemsPriceType" />
  6888. </EntityType>
  6889. <EntityType Name="BemsPriceMeta">
  6890. <Key>
  6891. <PropertyRef Name="PriceTypeId" />
  6892. <PropertyRef Name="PublishDate" />
  6893. </Key>
  6894. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  6895. <Property Name="PublishDate" Type="DateTime" Nullable="false" Precision="3" />
  6896. <Property Name="BasePrice" Type="Int32" />
  6897. <Property Name="C01_00" Type="Double" />
  6898. <Property Name="C01_01" Type="Double" />
  6899. <Property Name="C01_02" Type="Double" />
  6900. <Property Name="C01_03" Type="Double" />
  6901. <Property Name="C01_04" Type="Double" />
  6902. <Property Name="C01_05" Type="Double" />
  6903. <Property Name="C01_06" Type="Double" />
  6904. <Property Name="C01_07" Type="Double" />
  6905. <Property Name="C01_08" Type="Double" />
  6906. <Property Name="C01_09" Type="Double" />
  6907. <Property Name="C01_10" Type="Double" />
  6908. <Property Name="C01_11" Type="Double" />
  6909. <Property Name="C01_12" Type="Double" />
  6910. <Property Name="C01_13" Type="Double" />
  6911. <Property Name="C01_14" Type="Double" />
  6912. <Property Name="C01_15" Type="Double" />
  6913. <Property Name="C01_16" Type="Double" />
  6914. <Property Name="C01_17" Type="Double" />
  6915. <Property Name="C01_18" Type="Double" />
  6916. <Property Name="C01_19" Type="Double" />
  6917. <Property Name="C01_20" Type="Double" />
  6918. <Property Name="C01_21" Type="Double" />
  6919. <Property Name="C01_22" Type="Double" />
  6920. <Property Name="C01_23" Type="Double" />
  6921. <Property Name="C02_00" Type="Double" />
  6922. <Property Name="C02_01" Type="Double" />
  6923. <Property Name="C02_02" Type="Double" />
  6924. <Property Name="C02_03" Type="Double" />
  6925. <Property Name="C02_04" Type="Double" />
  6926. <Property Name="C02_05" Type="Double" />
  6927. <Property Name="C02_06" Type="Double" />
  6928. <Property Name="C02_07" Type="Double" />
  6929. <Property Name="C02_08" Type="Double" />
  6930. <Property Name="C02_09" Type="Double" />
  6931. <Property Name="C02_10" Type="Double" />
  6932. <Property Name="C02_11" Type="Double" />
  6933. <Property Name="C02_12" Type="Double" />
  6934. <Property Name="C02_13" Type="Double" />
  6935. <Property Name="C02_14" Type="Double" />
  6936. <Property Name="C02_15" Type="Double" />
  6937. <Property Name="C02_16" Type="Double" />
  6938. <Property Name="C02_17" Type="Double" />
  6939. <Property Name="C02_18" Type="Double" />
  6940. <Property Name="C02_19" Type="Double" />
  6941. <Property Name="C02_20" Type="Double" />
  6942. <Property Name="C02_21" Type="Double" />
  6943. <Property Name="C02_22" Type="Double" />
  6944. <Property Name="C02_23" Type="Double" />
  6945. <Property Name="C03_00" Type="Double" />
  6946. <Property Name="C03_01" Type="Double" />
  6947. <Property Name="C03_02" Type="Double" />
  6948. <Property Name="C03_03" Type="Double" />
  6949. <Property Name="C03_04" Type="Double" />
  6950. <Property Name="C03_05" Type="Double" />
  6951. <Property Name="C03_06" Type="Double" />
  6952. <Property Name="C03_07" Type="Double" />
  6953. <Property Name="C03_08" Type="Double" />
  6954. <Property Name="C03_09" Type="Double" />
  6955. <Property Name="C03_10" Type="Double" />
  6956. <Property Name="C03_11" Type="Double" />
  6957. <Property Name="C03_12" Type="Double" />
  6958. <Property Name="C03_13" Type="Double" />
  6959. <Property Name="C03_14" Type="Double" />
  6960. <Property Name="C03_15" Type="Double" />
  6961. <Property Name="C03_16" Type="Double" />
  6962. <Property Name="C03_17" Type="Double" />
  6963. <Property Name="C03_18" Type="Double" />
  6964. <Property Name="C03_19" Type="Double" />
  6965. <Property Name="C03_20" Type="Double" />
  6966. <Property Name="C03_21" Type="Double" />
  6967. <Property Name="C03_22" Type="Double" />
  6968. <Property Name="C03_23" Type="Double" />
  6969. <Property Name="C04_00" Type="Double" />
  6970. <Property Name="C04_01" Type="Double" />
  6971. <Property Name="C04_02" Type="Double" />
  6972. <Property Name="C04_03" Type="Double" />
  6973. <Property Name="C04_04" Type="Double" />
  6974. <Property Name="C04_05" Type="Double" />
  6975. <Property Name="C04_06" Type="Double" />
  6976. <Property Name="C04_07" Type="Double" />
  6977. <Property Name="C04_08" Type="Double" />
  6978. <Property Name="C04_09" Type="Double" />
  6979. <Property Name="C04_10" Type="Double" />
  6980. <Property Name="C04_11" Type="Double" />
  6981. <Property Name="C04_12" Type="Double" />
  6982. <Property Name="C04_13" Type="Double" />
  6983. <Property Name="C04_14" Type="Double" />
  6984. <Property Name="C04_15" Type="Double" />
  6985. <Property Name="C04_16" Type="Double" />
  6986. <Property Name="C04_17" Type="Double" />
  6987. <Property Name="C04_18" Type="Double" />
  6988. <Property Name="C04_19" Type="Double" />
  6989. <Property Name="C04_20" Type="Double" />
  6990. <Property Name="C04_21" Type="Double" />
  6991. <Property Name="C04_22" Type="Double" />
  6992. <Property Name="C04_23" Type="Double" />
  6993. <Property Name="C05_00" Type="Double" />
  6994. <Property Name="C05_01" Type="Double" />
  6995. <Property Name="C05_02" Type="Double" />
  6996. <Property Name="C05_03" Type="Double" />
  6997. <Property Name="C05_04" Type="Double" />
  6998. <Property Name="C05_05" Type="Double" />
  6999. <Property Name="C05_06" Type="Double" />
  7000. <Property Name="C05_07" Type="Double" />
  7001. <Property Name="C05_08" Type="Double" />
  7002. <Property Name="C05_09" Type="Double" />
  7003. <Property Name="C05_10" Type="Double" />
  7004. <Property Name="C05_11" Type="Double" />
  7005. <Property Name="C05_12" Type="Double" />
  7006. <Property Name="C05_13" Type="Double" />
  7007. <Property Name="C05_14" Type="Double" />
  7008. <Property Name="C05_15" Type="Double" />
  7009. <Property Name="C05_16" Type="Double" />
  7010. <Property Name="C05_17" Type="Double" />
  7011. <Property Name="C05_18" Type="Double" />
  7012. <Property Name="C05_19" Type="Double" />
  7013. <Property Name="C05_20" Type="Double" />
  7014. <Property Name="C05_21" Type="Double" />
  7015. <Property Name="C05_22" Type="Double" />
  7016. <Property Name="C05_23" Type="Double" />
  7017. <Property Name="C06_00" Type="Double" />
  7018. <Property Name="C06_01" Type="Double" />
  7019. <Property Name="C06_02" Type="Double" />
  7020. <Property Name="C06_03" Type="Double" />
  7021. <Property Name="C06_04" Type="Double" />
  7022. <Property Name="C06_05" Type="Double" />
  7023. <Property Name="C06_06" Type="Double" />
  7024. <Property Name="C06_07" Type="Double" />
  7025. <Property Name="C06_08" Type="Double" />
  7026. <Property Name="C06_09" Type="Double" />
  7027. <Property Name="C06_10" Type="Double" />
  7028. <Property Name="C06_11" Type="Double" />
  7029. <Property Name="C06_12" Type="Double" />
  7030. <Property Name="C06_13" Type="Double" />
  7031. <Property Name="C06_14" Type="Double" />
  7032. <Property Name="C06_15" Type="Double" />
  7033. <Property Name="C06_16" Type="Double" />
  7034. <Property Name="C06_17" Type="Double" />
  7035. <Property Name="C06_18" Type="Double" />
  7036. <Property Name="C06_19" Type="Double" />
  7037. <Property Name="C06_20" Type="Double" />
  7038. <Property Name="C06_21" Type="Double" />
  7039. <Property Name="C06_22" Type="Double" />
  7040. <Property Name="C06_23" Type="Double" />
  7041. <Property Name="C07_00" Type="Double" />
  7042. <Property Name="C07_01" Type="Double" />
  7043. <Property Name="C07_02" Type="Double" />
  7044. <Property Name="C07_03" Type="Double" />
  7045. <Property Name="C07_04" Type="Double" />
  7046. <Property Name="C07_05" Type="Double" />
  7047. <Property Name="C07_06" Type="Double" />
  7048. <Property Name="C07_07" Type="Double" />
  7049. <Property Name="C07_08" Type="Double" />
  7050. <Property Name="C07_09" Type="Double" />
  7051. <Property Name="C07_10" Type="Double" />
  7052. <Property Name="C07_11" Type="Double" />
  7053. <Property Name="C07_12" Type="Double" />
  7054. <Property Name="C07_13" Type="Double" />
  7055. <Property Name="C07_14" Type="Double" />
  7056. <Property Name="C07_15" Type="Double" />
  7057. <Property Name="C07_16" Type="Double" />
  7058. <Property Name="C07_17" Type="Double" />
  7059. <Property Name="C07_18" Type="Double" />
  7060. <Property Name="C07_19" Type="Double" />
  7061. <Property Name="C07_20" Type="Double" />
  7062. <Property Name="C07_21" Type="Double" />
  7063. <Property Name="C07_22" Type="Double" />
  7064. <Property Name="C07_23" Type="Double" />
  7065. <Property Name="C08_00" Type="Double" />
  7066. <Property Name="C08_01" Type="Double" />
  7067. <Property Name="C08_02" Type="Double" />
  7068. <Property Name="C08_03" Type="Double" />
  7069. <Property Name="C08_04" Type="Double" />
  7070. <Property Name="C08_05" Type="Double" />
  7071. <Property Name="C08_06" Type="Double" />
  7072. <Property Name="C08_07" Type="Double" />
  7073. <Property Name="C08_08" Type="Double" />
  7074. <Property Name="C08_09" Type="Double" />
  7075. <Property Name="C08_10" Type="Double" />
  7076. <Property Name="C08_11" Type="Double" />
  7077. <Property Name="C08_12" Type="Double" />
  7078. <Property Name="C08_13" Type="Double" />
  7079. <Property Name="C08_14" Type="Double" />
  7080. <Property Name="C08_15" Type="Double" />
  7081. <Property Name="C08_16" Type="Double" />
  7082. <Property Name="C08_17" Type="Double" />
  7083. <Property Name="C08_18" Type="Double" />
  7084. <Property Name="C08_19" Type="Double" />
  7085. <Property Name="C08_20" Type="Double" />
  7086. <Property Name="C08_21" Type="Double" />
  7087. <Property Name="C08_22" Type="Double" />
  7088. <Property Name="C08_23" Type="Double" />
  7089. <Property Name="C09_00" Type="Double" />
  7090. <Property Name="C09_01" Type="Double" />
  7091. <Property Name="C09_02" Type="Double" />
  7092. <Property Name="C09_03" Type="Double" />
  7093. <Property Name="C09_04" Type="Double" />
  7094. <Property Name="C09_05" Type="Double" />
  7095. <Property Name="C09_06" Type="Double" />
  7096. <Property Name="C09_07" Type="Double" />
  7097. <Property Name="C09_08" Type="Double" />
  7098. <Property Name="C09_09" Type="Double" />
  7099. <Property Name="C09_10" Type="Double" />
  7100. <Property Name="C09_11" Type="Double" />
  7101. <Property Name="C09_12" Type="Double" />
  7102. <Property Name="C09_13" Type="Double" />
  7103. <Property Name="C09_14" Type="Double" />
  7104. <Property Name="C09_15" Type="Double" />
  7105. <Property Name="C09_16" Type="Double" />
  7106. <Property Name="C09_17" Type="Double" />
  7107. <Property Name="C09_18" Type="Double" />
  7108. <Property Name="C09_19" Type="Double" />
  7109. <Property Name="C09_20" Type="Double" />
  7110. <Property Name="C09_21" Type="Double" />
  7111. <Property Name="C09_22" Type="Double" />
  7112. <Property Name="C09_23" Type="Double" />
  7113. <Property Name="C10_00" Type="Double" />
  7114. <Property Name="C10_01" Type="Double" />
  7115. <Property Name="C10_02" Type="Double" />
  7116. <Property Name="C10_03" Type="Double" />
  7117. <Property Name="C10_04" Type="Double" />
  7118. <Property Name="C10_05" Type="Double" />
  7119. <Property Name="C10_06" Type="Double" />
  7120. <Property Name="C10_07" Type="Double" />
  7121. <Property Name="C10_08" Type="Double" />
  7122. <Property Name="C10_09" Type="Double" />
  7123. <Property Name="C10_10" Type="Double" />
  7124. <Property Name="C10_11" Type="Double" />
  7125. <Property Name="C10_12" Type="Double" />
  7126. <Property Name="C10_13" Type="Double" />
  7127. <Property Name="C10_14" Type="Double" />
  7128. <Property Name="C10_15" Type="Double" />
  7129. <Property Name="C10_16" Type="Double" />
  7130. <Property Name="C10_17" Type="Double" />
  7131. <Property Name="C10_18" Type="Double" />
  7132. <Property Name="C10_19" Type="Double" />
  7133. <Property Name="C10_20" Type="Double" />
  7134. <Property Name="C10_21" Type="Double" />
  7135. <Property Name="C10_22" Type="Double" />
  7136. <Property Name="C10_23" Type="Double" />
  7137. <Property Name="C11_00" Type="Double" />
  7138. <Property Name="C11_01" Type="Double" />
  7139. <Property Name="C11_02" Type="Double" />
  7140. <Property Name="C11_03" Type="Double" />
  7141. <Property Name="C11_04" Type="Double" />
  7142. <Property Name="C11_05" Type="Double" />
  7143. <Property Name="C11_06" Type="Double" />
  7144. <Property Name="C11_07" Type="Double" />
  7145. <Property Name="C11_08" Type="Double" />
  7146. <Property Name="C11_09" Type="Double" />
  7147. <Property Name="C11_10" Type="Double" />
  7148. <Property Name="C11_11" Type="Double" />
  7149. <Property Name="C11_12" Type="Double" />
  7150. <Property Name="C11_13" Type="Double" />
  7151. <Property Name="C11_14" Type="Double" />
  7152. <Property Name="C11_15" Type="Double" />
  7153. <Property Name="C11_16" Type="Double" />
  7154. <Property Name="C11_17" Type="Double" />
  7155. <Property Name="C11_18" Type="Double" />
  7156. <Property Name="C11_19" Type="Double" />
  7157. <Property Name="C11_20" Type="Double" />
  7158. <Property Name="C11_21" Type="Double" />
  7159. <Property Name="C11_22" Type="Double" />
  7160. <Property Name="C11_23" Type="Double" />
  7161. <Property Name="C12_00" Type="Double" />
  7162. <Property Name="C12_01" Type="Double" />
  7163. <Property Name="C12_02" Type="Double" />
  7164. <Property Name="C12_03" Type="Double" />
  7165. <Property Name="C12_04" Type="Double" />
  7166. <Property Name="C12_05" Type="Double" />
  7167. <Property Name="C12_06" Type="Double" />
  7168. <Property Name="C12_07" Type="Double" />
  7169. <Property Name="C12_08" Type="Double" />
  7170. <Property Name="C12_09" Type="Double" />
  7171. <Property Name="C12_10" Type="Double" />
  7172. <Property Name="C12_11" Type="Double" />
  7173. <Property Name="C12_12" Type="Double" />
  7174. <Property Name="C12_13" Type="Double" />
  7175. <Property Name="C12_14" Type="Double" />
  7176. <Property Name="C12_15" Type="Double" />
  7177. <Property Name="C12_16" Type="Double" />
  7178. <Property Name="C12_17" Type="Double" />
  7179. <Property Name="C12_18" Type="Double" />
  7180. <Property Name="C12_19" Type="Double" />
  7181. <Property Name="C12_20" Type="Double" />
  7182. <Property Name="C12_21" Type="Double" />
  7183. <Property Name="C12_22" Type="Double" />
  7184. <Property Name="C12_23" Type="Double" />
  7185. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceMeta" ToRole="BemsPriceType" />
  7186. </EntityType>
  7187. <EntityType Name="BemsPriceType">
  7188. <Key>
  7189. <PropertyRef Name="PriceTypeId" />
  7190. </Key>
  7191. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  7192. <Property Name="PriceTypeIdDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  7193. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  7194. <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceFormula" />
  7195. <NavigationProperty Name="BemsPriceMeta" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceMeta" />
  7196. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePriceHistory" />
  7197. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePrice" />
  7198. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsPriceType" ToRole="BemsFuelType" />
  7199. </EntityType>
  7200. <EntityType Name="BemsRentalRate">
  7201. <Key>
  7202. <PropertyRef Name="Date" />
  7203. <PropertyRef Name="SiteId" />
  7204. </Key>
  7205. <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
  7206. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7207. <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7208. <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7209. <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7210. <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7211. <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7212. <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7213. <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7214. <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7215. <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7216. <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7217. <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7218. <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7219. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="BemsRentalRate" ToRole="CmSite" />
  7220. </EntityType>
  7221. <EntityType Name="BemsSitePrice">
  7222. <Key>
  7223. <PropertyRef Name="SiteID" />
  7224. <PropertyRef Name="FuelTypeId" />
  7225. <PropertyRef Name="PriceTypeId" />
  7226. <PropertyRef Name="PriceCode" />
  7227. </Key>
  7228. <Property Name="SiteID" Type="Int32" Nullable="false" />
  7229. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  7230. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  7231. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  7232. <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
  7233. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsSitePrice" ToRole="BemsPriceCode" />
  7234. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="BemsSitePrice" ToRole="CmSite" />
  7235. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsSitePrice" ToRole="BemsPriceType" />
  7236. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsSitePrice" ToRole="BemsFuelType" />
  7237. </EntityType>
  7238. <EntityType Name="BemsSitePriceHistory">
  7239. <Key>
  7240. <PropertyRef Name="SiteId" />
  7241. <PropertyRef Name="FuelTypeId" />
  7242. <PropertyRef Name="PriceTypeId" />
  7243. <PropertyRef Name="PriceCode" />
  7244. <PropertyRef Name="PayDate" />
  7245. </Key>
  7246. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7247. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  7248. <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
  7249. <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
  7250. <Property Name="PriceValue" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  7251. <Property Name="PayDate" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="false" />
  7252. <Property Name="StartDate" Type="DateTime" Precision="3" />
  7253. <Property Name="EndDate" Type="DateTime" Precision="3" />
  7254. <Property Name="PayCharge" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
  7255. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsSitePriceHistory" ToRole="BemsPriceCode" />
  7256. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsSitePriceHistory" ToRole="BemsPriceType" />
  7257. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="BemsSitePriceHistory" ToRole="CmSite" />
  7258. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsSitePriceHistory" ToRole="BemsFuelType" />
  7259. </EntityType>
  7260. <Association Name="FK_BemsPriceFormula_BemsFormula">
  7261. <End Type="iBemsModel.BemsFormula" Role="BemsFormula" Multiplicity="1" />
  7262. <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
  7263. <ReferentialConstraint>
  7264. <Principal Role="BemsFormula">
  7265. <PropertyRef Name="SiteId" />
  7266. <PropertyRef Name="FacilityTypeId" />
  7267. <PropertyRef Name="FacilityCode" />
  7268. <PropertyRef Name="FormulaId" />
  7269. </Principal>
  7270. <Dependent Role="BemsPriceFormula">
  7271. <PropertyRef Name="SiteId" />
  7272. <PropertyRef Name="FacilityTypeId" />
  7273. <PropertyRef Name="FacilityCode" />
  7274. <PropertyRef Name="FormulaId" />
  7275. </Dependent>
  7276. </ReferentialConstraint>
  7277. </Association>
  7278. <Association Name="FK_BemsPeopleIncrease_CmSite">
  7279. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7280. <End Type="iBemsModel.BemsPeopleIncrease" Role="BemsPeopleIncrease" Multiplicity="*" />
  7281. <ReferentialConstraint>
  7282. <Principal Role="CmSite">
  7283. <PropertyRef Name="SiteId" />
  7284. </Principal>
  7285. <Dependent Role="BemsPeopleIncrease">
  7286. <PropertyRef Name="SiteId" />
  7287. </Dependent>
  7288. </ReferentialConstraint>
  7289. </Association>
  7290. <Association Name="FK_BemsSitePrice_BemsPriceCode">
  7291. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
  7292. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  7293. <ReferentialConstraint>
  7294. <Principal Role="BemsPriceCode">
  7295. <PropertyRef Name="PriceCode" />
  7296. </Principal>
  7297. <Dependent Role="BemsSitePrice">
  7298. <PropertyRef Name="PriceCode" />
  7299. </Dependent>
  7300. </ReferentialConstraint>
  7301. </Association>
  7302. <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
  7303. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
  7304. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  7305. <ReferentialConstraint>
  7306. <Principal Role="BemsPriceCode">
  7307. <PropertyRef Name="PriceCode" />
  7308. </Principal>
  7309. <Dependent Role="BemsSitePriceHistory">
  7310. <PropertyRef Name="PriceCode" />
  7311. </Dependent>
  7312. </ReferentialConstraint>
  7313. </Association>
  7314. <Association Name="FK_BemsPriceFormula_BemsPriceType">
  7315. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  7316. <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
  7317. <ReferentialConstraint>
  7318. <Principal Role="BemsPriceType">
  7319. <PropertyRef Name="PriceTypeId" />
  7320. </Principal>
  7321. <Dependent Role="BemsPriceFormula">
  7322. <PropertyRef Name="PriceTypeId" />
  7323. </Dependent>
  7324. </ReferentialConstraint>
  7325. </Association>
  7326. <Association Name="FK_BemsPriceMeta_BemsPriceType">
  7327. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  7328. <End Type="iBemsModel.BemsPriceMeta" Role="BemsPriceMeta" Multiplicity="*" />
  7329. <ReferentialConstraint>
  7330. <Principal Role="BemsPriceType">
  7331. <PropertyRef Name="PriceTypeId" />
  7332. </Principal>
  7333. <Dependent Role="BemsPriceMeta">
  7334. <PropertyRef Name="PriceTypeId" />
  7335. </Dependent>
  7336. </ReferentialConstraint>
  7337. </Association>
  7338. <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
  7339. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  7340. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  7341. <ReferentialConstraint>
  7342. <Principal Role="BemsPriceType">
  7343. <PropertyRef Name="PriceTypeId" />
  7344. </Principal>
  7345. <Dependent Role="BemsSitePriceHistory">
  7346. <PropertyRef Name="PriceTypeId" />
  7347. </Dependent>
  7348. </ReferentialConstraint>
  7349. </Association>
  7350. <Association Name="FK_BemsRentalRate_CmSite">
  7351. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7352. <End Type="iBemsModel.BemsRentalRate" Role="BemsRentalRate" Multiplicity="*" />
  7353. <ReferentialConstraint>
  7354. <Principal Role="CmSite">
  7355. <PropertyRef Name="SiteId" />
  7356. </Principal>
  7357. <Dependent Role="BemsRentalRate">
  7358. <PropertyRef Name="SiteId" />
  7359. </Dependent>
  7360. </ReferentialConstraint>
  7361. </Association>
  7362. <Association Name="FK_BemsSitePrice_CmSite1">
  7363. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7364. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  7365. <ReferentialConstraint>
  7366. <Principal Role="CmSite">
  7367. <PropertyRef Name="SiteId" />
  7368. </Principal>
  7369. <Dependent Role="BemsSitePrice">
  7370. <PropertyRef Name="SiteID" />
  7371. </Dependent>
  7372. </ReferentialConstraint>
  7373. </Association>
  7374. <Association Name="FK_BemsSitePriceHistory_CmSite">
  7375. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7376. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  7377. <ReferentialConstraint>
  7378. <Principal Role="CmSite">
  7379. <PropertyRef Name="SiteId" />
  7380. </Principal>
  7381. <Dependent Role="BemsSitePriceHistory">
  7382. <PropertyRef Name="SiteId" />
  7383. </Dependent>
  7384. </ReferentialConstraint>
  7385. </Association>
  7386. <Association Name="FK_BemsSitePrice_BemsPriceType">
  7387. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
  7388. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  7389. <ReferentialConstraint>
  7390. <Principal Role="BemsPriceType">
  7391. <PropertyRef Name="PriceTypeId" />
  7392. </Principal>
  7393. <Dependent Role="BemsSitePrice">
  7394. <PropertyRef Name="PriceTypeId" />
  7395. </Dependent>
  7396. </ReferentialConstraint>
  7397. </Association>
  7398. <EntityType Name="BemsMonitoringPointConfig">
  7399. <Key>
  7400. <PropertyRef Name="SiteId" />
  7401. <PropertyRef Name="FacilityCode" />
  7402. <PropertyRef Name="PropertyId" />
  7403. </Key>
  7404. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7405. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7406. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  7407. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  7408. <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
  7409. <Property Name="IsSampled" Type="Boolean" Nullable="false" />
  7410. <Property Name="SaveMode" Type="Int32" Nullable="false" />
  7411. <Property Name="ControlPointName" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  7412. <Property Name="IsConverted" Type="Boolean" />
  7413. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsMonitoringPointConfig" ToRole="BemsFacilityType" />
  7414. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPointConfig" ToRole="BemsMonitoringPoint" />
  7415. </EntityType>
  7416. <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
  7417. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  7418. <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="*" />
  7419. <ReferentialConstraint>
  7420. <Principal Role="BemsFacilityType">
  7421. <PropertyRef Name="FacilityTypeId" />
  7422. </Principal>
  7423. <Dependent Role="BemsMonitoringPointConfig">
  7424. <PropertyRef Name="FacilityTypeId" />
  7425. </Dependent>
  7426. </ReferentialConstraint>
  7427. </Association>
  7428. <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
  7429. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
  7430. <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="0..1" />
  7431. <ReferentialConstraint>
  7432. <Principal Role="BemsMonitoringPoint">
  7433. <PropertyRef Name="SiteId" />
  7434. <PropertyRef Name="FacilityCode" />
  7435. <PropertyRef Name="PropertyId" />
  7436. </Principal>
  7437. <Dependent Role="BemsMonitoringPointConfig">
  7438. <PropertyRef Name="SiteId" />
  7439. <PropertyRef Name="FacilityCode" />
  7440. <PropertyRef Name="PropertyId" />
  7441. </Dependent>
  7442. </ReferentialConstraint>
  7443. </Association>
  7444. <EntityType Name="BemsAlarmSetting">
  7445. <Key>
  7446. <PropertyRef Name="SiteId" />
  7447. <PropertyRef Name="FacilityTypeId" />
  7448. <PropertyRef Name="FacilityCode" />
  7449. <PropertyRef Name="PropertyId" />
  7450. <PropertyRef Name="FormulaId" />
  7451. </Key>
  7452. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7453. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7454. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  7455. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  7456. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  7457. <Property Name="FacilityName" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
  7458. <Property Name="PointName" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
  7459. <Property Name="UseUpperLimit" Type="Boolean" Nullable="false" />
  7460. <Property Name="UpperLimit" Type="Double" />
  7461. <Property Name="UseLowerLimit" Type="Boolean" Nullable="false" />
  7462. <Property Name="LowerLimit" Type="Double" />
  7463. <Property Name="UseAlarm" Type="Boolean" Nullable="false" />
  7464. <Property Name="UseSMS" Type="Boolean" Nullable="false" />
  7465. <Property Name="UseEmail" Type="Boolean" Nullable="false" />
  7466. <Property Name="AlarmGroupName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  7467. <Property Name="Content" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  7468. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsAlarmSetting" ToRole="BemsFacilityType" />
  7469. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="BemsAlarmSetting" ToRole="CmSite" />
  7470. <NavigationProperty Name="BemsAlarmLog" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmSetting" ToRole="BemsAlarmLog" />
  7471. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="BemsAlarmSetting" ToRole="CmFacility" />
  7472. </EntityType>
  7473. <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
  7474. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  7475. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  7476. <ReferentialConstraint>
  7477. <Principal Role="BemsFacilityType">
  7478. <PropertyRef Name="FacilityTypeId" />
  7479. </Principal>
  7480. <Dependent Role="BemsAlarmSetting">
  7481. <PropertyRef Name="FacilityTypeId" />
  7482. </Dependent>
  7483. </ReferentialConstraint>
  7484. </Association>
  7485. <Association Name="FK_BemsAlarmSetting_CmSite1">
  7486. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7487. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  7488. <ReferentialConstraint>
  7489. <Principal Role="CmSite">
  7490. <PropertyRef Name="SiteId" />
  7491. </Principal>
  7492. <Dependent Role="BemsAlarmSetting">
  7493. <PropertyRef Name="SiteId" />
  7494. </Dependent>
  7495. </ReferentialConstraint>
  7496. </Association>
  7497. <EntityType Name="BemsAlarmLog">
  7498. <Key>
  7499. <PropertyRef Name="SiteId" />
  7500. <PropertyRef Name="FacilityTypeId" />
  7501. <PropertyRef Name="FacilityCode" />
  7502. <PropertyRef Name="PropertyId" />
  7503. <PropertyRef Name="FormulaId" />
  7504. <PropertyRef Name="CreatedDateTime" />
  7505. </Key>
  7506. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7507. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7508. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  7509. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  7510. <Property Name="FormulaId" Type="Int32" Nullable="false" />
  7511. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  7512. <Property Name="CurrentValue" Type="Double" />
  7513. <Property Name="SMSResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
  7514. <Property Name="EmailResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
  7515. <Property Name="Conform" Type="Boolean" />
  7516. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmLog" ToRole="BemsAlarmSetting" />
  7517. </EntityType>
  7518. <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
  7519. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="1" />
  7520. <End Type="iBemsModel.BemsAlarmLog" Role="BemsAlarmLog" Multiplicity="*" />
  7521. <ReferentialConstraint>
  7522. <Principal Role="BemsAlarmSetting">
  7523. <PropertyRef Name="SiteId" />
  7524. <PropertyRef Name="FacilityTypeId" />
  7525. <PropertyRef Name="FacilityCode" />
  7526. <PropertyRef Name="PropertyId" />
  7527. <PropertyRef Name="FormulaId" />
  7528. </Principal>
  7529. <Dependent Role="BemsAlarmLog">
  7530. <PropertyRef Name="SiteId" />
  7531. <PropertyRef Name="FacilityTypeId" />
  7532. <PropertyRef Name="FacilityCode" />
  7533. <PropertyRef Name="PropertyId" />
  7534. <PropertyRef Name="FormulaId" />
  7535. </Dependent>
  7536. </ReferentialConstraint>
  7537. </Association>
  7538. <EntityType Name="BemsAlarmGroup">
  7539. <Key>
  7540. <PropertyRef Name="SiteId" />
  7541. <PropertyRef Name="AlarmGroupId" />
  7542. </Key>
  7543. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7544. <Property Name="AlarmGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  7545. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  7546. </EntityType>
  7547. <EntityType Name="BemsAlarmGroupUser">
  7548. <Key>
  7549. <PropertyRef Name="SiteId" />
  7550. <PropertyRef Name="AlarmGroupId" />
  7551. <PropertyRef Name="UserId" />
  7552. </Key>
  7553. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7554. <Property Name="AlarmGroupId" Type="Int32" Nullable="false" />
  7555. <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  7556. </EntityType>
  7557. <EntityType Name="BemsEnergyCost">
  7558. <Key>
  7559. <PropertyRef Name="SiteId" />
  7560. <PropertyRef Name="FacilityCode" />
  7561. </Key>
  7562. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7563. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7564. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  7565. <Property Name="PowerConsumption1" Type="Double" />
  7566. <Property Name="PowerConsumption2" Type="Double" />
  7567. <Property Name="GasConsumption" Type="Double" />
  7568. <Property Name="GasHeatQuantity" Type="Double" />
  7569. <Property Name="PowerPriceTypeId" Type="Int32" />
  7570. <Property Name="GasPriceTypeId" Type="Int32" />
  7571. <Property Name="IsUse" Type="Boolean" />
  7572. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="BemsEnergyCost" ToRole="CmFacility" />
  7573. </EntityType>
  7574. <EntityType Name="BemsEnergyConfigPercentMonth">
  7575. <Key>
  7576. <PropertyRef Name="SiteId" />
  7577. <PropertyRef Name="Year" />
  7578. <PropertyRef Name="Month" />
  7579. </Key>
  7580. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7581. <Property Name="Year" Type="Int32" Nullable="false" />
  7582. <Property Name="Month" Type="Int32" Nullable="false" />
  7583. <Property Name="Electricity" Type="Double" />
  7584. <Property Name="Gas" Type="Double" />
  7585. <Property Name="Water" Type="Double" />
  7586. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="BemsEnergyConfigPercentMonth" ToRole="CmSite" />
  7587. </EntityType>
  7588. <EntityType Name="BemsEnergyConfigPercentWeek">
  7589. <Key>
  7590. <PropertyRef Name="SiteId" />
  7591. <PropertyRef Name="Year" />
  7592. <PropertyRef Name="Week" />
  7593. </Key>
  7594. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7595. <Property Name="Year" Type="Int32" Nullable="false" />
  7596. <Property Name="Week" Type="Int32" Nullable="false" />
  7597. <Property Name="Electricity" Type="Double" />
  7598. <Property Name="Gas" Type="Double" />
  7599. <Property Name="Water" Type="Double" />
  7600. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="BemsEnergyConfigPercentWeek" ToRole="CmSite" />
  7601. </EntityType>
  7602. <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
  7603. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7604. <End Type="iBemsModel.BemsEnergyConfigPercentMonth" Role="BemsEnergyConfigPercentMonth" Multiplicity="*" />
  7605. <ReferentialConstraint>
  7606. <Principal Role="CmSite">
  7607. <PropertyRef Name="SiteId" />
  7608. </Principal>
  7609. <Dependent Role="BemsEnergyConfigPercentMonth">
  7610. <PropertyRef Name="SiteId" />
  7611. </Dependent>
  7612. </ReferentialConstraint>
  7613. </Association>
  7614. <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
  7615. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7616. <End Type="iBemsModel.BemsEnergyConfigPercentWeek" Role="BemsEnergyConfigPercentWeek" Multiplicity="*" />
  7617. <ReferentialConstraint>
  7618. <Principal Role="CmSite">
  7619. <PropertyRef Name="SiteId" />
  7620. </Principal>
  7621. <Dependent Role="BemsEnergyConfigPercentWeek">
  7622. <PropertyRef Name="SiteId" />
  7623. </Dependent>
  7624. </ReferentialConstraint>
  7625. </Association>
  7626. <EntityType Name="BemsEnergyDaily">
  7627. <Key>
  7628. <PropertyRef Name="SiteId" />
  7629. <PropertyRef Name="BuildingId" />
  7630. <PropertyRef Name="ServiceTypeId" />
  7631. <PropertyRef Name="FuelTypeId" />
  7632. <PropertyRef Name="CreatedDate" />
  7633. </Key>
  7634. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7635. <Property Name="BuildingId" Type="Int32" Nullable="false" />
  7636. <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
  7637. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  7638. <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="0" />
  7639. <Property Name="Prediction" Type="Double" />
  7640. <Property Name="Measurement" Type="Double" />
  7641. <Property Name="Goal" Type="Double" />
  7642. <Property Name="Prediction_Regression" Type="Double" />
  7643. <Property Name="MeanT" Type="Double" />
  7644. <Property Name="HDD" Type="Double" />
  7645. <Property Name="CDD" Type="Double" />
  7646. <NavigationProperty Name="BemsServiceType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsEnergyDaily" ToRole="BemsServiceType" />
  7647. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="BemsEnergyDaily" ToRole="CmBuilding" />
  7648. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsEnergyDaily" ToRole="BemsFuelType" />
  7649. </EntityType>
  7650. <Association Name="FK__BemsEnergyDaily__BemsServiceType">
  7651. <End Type="iBemsModel.BemsServiceType" Role="BemsServiceType" Multiplicity="1" />
  7652. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  7653. <ReferentialConstraint>
  7654. <Principal Role="BemsServiceType">
  7655. <PropertyRef Name="ServiceTypeId" />
  7656. </Principal>
  7657. <Dependent Role="BemsEnergyDaily">
  7658. <PropertyRef Name="ServiceTypeId" />
  7659. </Dependent>
  7660. </ReferentialConstraint>
  7661. </Association>
  7662. <Association Name="FK__BemsEnergyDaily__CmBuilding">
  7663. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
  7664. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  7665. <ReferentialConstraint>
  7666. <Principal Role="CmBuilding">
  7667. <PropertyRef Name="SiteId" />
  7668. <PropertyRef Name="BuildingId" />
  7669. </Principal>
  7670. <Dependent Role="BemsEnergyDaily">
  7671. <PropertyRef Name="SiteId" />
  7672. <PropertyRef Name="BuildingId" />
  7673. </Dependent>
  7674. </ReferentialConstraint>
  7675. </Association>
  7676. <EntityType Name="BemsEnergyDailyRegression">
  7677. <Key>
  7678. <PropertyRef Name="SiteId" />
  7679. </Key>
  7680. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7681. <Property Name="Weekday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7682. <Property Name="Weekday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7683. <Property Name="Weekday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7684. <Property Name="Weekday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7685. <Property Name="Weekday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7686. <Property Name="Weekday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7687. <Property Name="Holiday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7688. <Property Name="Holiday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7689. <Property Name="Holiday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7690. <Property Name="Holiday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7691. <Property Name="Holiday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7692. <Property Name="Holiday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  7693. <Property Name="IsRegression" Type="Boolean" />
  7694. <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="BemsEnergyDailyRegression" ToRole="CmSite" />
  7695. </EntityType>
  7696. <Association Name="FK_BemsEnergyDailyRegression_CmSite">
  7697. <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
  7698. <End Type="iBemsModel.BemsEnergyDailyRegression" Role="BemsEnergyDailyRegression" Multiplicity="0..1" />
  7699. <ReferentialConstraint>
  7700. <Principal Role="CmSite">
  7701. <PropertyRef Name="SiteId" />
  7702. </Principal>
  7703. <Dependent Role="BemsEnergyDailyRegression">
  7704. <PropertyRef Name="SiteId" />
  7705. </Dependent>
  7706. </ReferentialConstraint>
  7707. </Association>
  7708. <EntityType Name="WeatherDongNaeForecast">
  7709. <Key>
  7710. <PropertyRef Name="BaseTime" />
  7711. <PropertyRef Name="ForecastTime" />
  7712. </Key>
  7713. <Property Name="BaseTime" Type="DateTime" Nullable="false" Precision="3" />
  7714. <Property Name="nx" Type="Int32" />
  7715. <Property Name="ny" Type="Int32" />
  7716. <Property Name="ForecastTime" Type="DateTime" Nullable="false" Precision="3" />
  7717. <Property Name="POP" Type="Double" />
  7718. <Property Name="PTY" Type="Double" />
  7719. <Property Name="R06" Type="Double" />
  7720. <Property Name="REH" Type="Double" />
  7721. <Property Name="S06" Type="Double" />
  7722. <Property Name="SKY" Type="Double" />
  7723. <Property Name="T3H" Type="Double" />
  7724. <Property Name="TMN" Type="Double" />
  7725. <Property Name="TMX" Type="Double" />
  7726. <Property Name="UUU" Type="Double" />
  7727. <Property Name="VVV" Type="Double" />
  7728. <Property Name="VEC" Type="Double" />
  7729. <Property Name="WSD" Type="Double" />
  7730. <Property Name="Type" Type="Int32" />
  7731. <Property Name="DBTime" Type="DateTime" Precision="3" />
  7732. <Property Name="Version" Type="Int32" />
  7733. </EntityType>
  7734. <EntityType Name="FmsEquipmentRentInfo">
  7735. <Key>
  7736. <PropertyRef Name="SiteId" />
  7737. <PropertyRef Name="EquipmentRentId" />
  7738. </Key>
  7739. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7740. <Property Name="EquipmentRentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  7741. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  7742. <Property Name="RentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  7743. <Property Name="RegisterDate" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
  7744. <Property Name="RentDate" Type="DateTime" Precision="3" />
  7745. <Property Name="ReturnDueDate" Type="DateTime" Precision="3" />
  7746. <Property Name="ReturnFixDate" Type="DateTime" Precision="3" />
  7747. <Property Name="EquipmentStateTypeId" Type="Int16" />
  7748. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  7749. <Property Name="Title" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  7750. <Property Name="RentUser" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
  7751. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
  7752. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
  7753. <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentCodeStateType" />
  7754. <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentHistory" />
  7755. </EntityType>
  7756. <Association Name="FK_FmsEquipmentRentInfo_CmUser">
  7757. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  7758. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  7759. <ReferentialConstraint>
  7760. <Principal Role="CmUser">
  7761. <PropertyRef Name="SiteId" />
  7762. <PropertyRef Name="UserId" />
  7763. </Principal>
  7764. <Dependent Role="FmsEquipmentRentInfo">
  7765. <PropertyRef Name="SiteId" />
  7766. <PropertyRef Name="RegisterUserId" />
  7767. </Dependent>
  7768. </ReferentialConstraint>
  7769. </Association>
  7770. <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
  7771. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  7772. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  7773. <ReferentialConstraint>
  7774. <Principal Role="CmUser">
  7775. <PropertyRef Name="SiteId" />
  7776. <PropertyRef Name="UserId" />
  7777. </Principal>
  7778. <Dependent Role="FmsEquipmentRentInfo">
  7779. <PropertyRef Name="SiteId" />
  7780. <PropertyRef Name="RentUserId" />
  7781. </Dependent>
  7782. </ReferentialConstraint>
  7783. </Association>
  7784. <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
  7785. <End Type="iBemsModel.FmsEquipmentCodeStateType" Role="FmsEquipmentCodeStateType" Multiplicity="0..1" />
  7786. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
  7787. <ReferentialConstraint>
  7788. <Principal Role="FmsEquipmentCodeStateType">
  7789. <PropertyRef Name="EquipmentStateTypeId" />
  7790. </Principal>
  7791. <Dependent Role="FmsEquipmentRentInfo">
  7792. <PropertyRef Name="EquipmentStateTypeId" />
  7793. </Dependent>
  7794. </ReferentialConstraint>
  7795. </Association>
  7796. <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
  7797. <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="0..1">
  7798. <OnDelete Action="Cascade" />
  7799. </End>
  7800. <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
  7801. <ReferentialConstraint>
  7802. <Principal Role="FmsEquipmentRentInfo">
  7803. <PropertyRef Name="SiteId" />
  7804. <PropertyRef Name="EquipmentRentId" />
  7805. </Principal>
  7806. <Dependent Role="FmsEquipmentHistory">
  7807. <PropertyRef Name="SiteId" />
  7808. <PropertyRef Name="EquipmentRentId" />
  7809. </Dependent>
  7810. </ReferentialConstraint>
  7811. </Association>
  7812. <EntityType Name="BemsControlAHUTempConfig">
  7813. <Key>
  7814. <PropertyRef Name="SiteId" />
  7815. <PropertyRef Name="FacilityTypeId" />
  7816. <PropertyRef Name="FacilityCode" />
  7817. </Key>
  7818. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7819. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7820. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  7821. <Property Name="MaxTemperature" Type="Double" Nullable="false" />
  7822. <Property Name="MinTemperature" Type="Double" Nullable="false" />
  7823. </EntityType>
  7824. <EntityType Name="BemsFuelType">
  7825. <Key>
  7826. <PropertyRef Name="FuelTypeId" />
  7827. </Key>
  7828. <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
  7829. <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  7830. <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsEnergyDaily" />
  7831. <NavigationProperty Name="BemsFactorCo2" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorCo2" />
  7832. <NavigationProperty Name="BemsFactorToe" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorToe" />
  7833. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPoint" />
  7834. <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPointBaseData" />
  7835. <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="BemsFuelType" ToRole="CmFacility" />
  7836. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsNoticePriceContractType" />
  7837. <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsPriceCode" />
  7838. <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsFuelType" ToRole="BemsPriceType" />
  7839. <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePrice" />
  7840. <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePriceHistory" />
  7841. </EntityType>
  7842. <Association Name="FK__BemsEnergyDaily__BemsFuelType">
  7843. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7844. <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
  7845. <ReferentialConstraint>
  7846. <Principal Role="BemsFuelType">
  7847. <PropertyRef Name="FuelTypeId" />
  7848. </Principal>
  7849. <Dependent Role="BemsEnergyDaily">
  7850. <PropertyRef Name="FuelTypeId" />
  7851. </Dependent>
  7852. </ReferentialConstraint>
  7853. </Association>
  7854. <Association Name="FK__BemsFactorCo2__BemsFuelType">
  7855. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7856. <End Type="iBemsModel.BemsFactorCo2" Role="BemsFactorCo2" Multiplicity="0..1" />
  7857. <ReferentialConstraint>
  7858. <Principal Role="BemsFuelType">
  7859. <PropertyRef Name="FuelTypeId" />
  7860. </Principal>
  7861. <Dependent Role="BemsFactorCo2">
  7862. <PropertyRef Name="FuelTypeId" />
  7863. </Dependent>
  7864. </ReferentialConstraint>
  7865. </Association>
  7866. <Association Name="FK__BemsFactorToe__BemsFuelType">
  7867. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7868. <End Type="iBemsModel.BemsFactorToe" Role="BemsFactorToe" Multiplicity="0..1" />
  7869. <ReferentialConstraint>
  7870. <Principal Role="BemsFuelType">
  7871. <PropertyRef Name="FuelTypeId" />
  7872. </Principal>
  7873. <Dependent Role="BemsFactorToe">
  7874. <PropertyRef Name="FuelTypeId" />
  7875. </Dependent>
  7876. </ReferentialConstraint>
  7877. </Association>
  7878. <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
  7879. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  7880. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
  7881. <ReferentialConstraint>
  7882. <Principal Role="BemsFuelType">
  7883. <PropertyRef Name="FuelTypeId" />
  7884. </Principal>
  7885. <Dependent Role="BemsMonitoringPoint">
  7886. <PropertyRef Name="FuelTypeId" />
  7887. </Dependent>
  7888. </ReferentialConstraint>
  7889. </Association>
  7890. <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
  7891. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  7892. <End Type="iBemsModel.BemsMonitoringPointBaseData" Role="BemsMonitoringPointBaseData" Multiplicity="*" />
  7893. <ReferentialConstraint>
  7894. <Principal Role="BemsFuelType">
  7895. <PropertyRef Name="FuelTypeId" />
  7896. </Principal>
  7897. <Dependent Role="BemsMonitoringPointBaseData">
  7898. <PropertyRef Name="FuelTypeId" />
  7899. </Dependent>
  7900. </ReferentialConstraint>
  7901. </Association>
  7902. <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
  7903. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7904. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="*" />
  7905. <ReferentialConstraint>
  7906. <Principal Role="BemsFuelType">
  7907. <PropertyRef Name="FuelTypeId" />
  7908. </Principal>
  7909. <Dependent Role="BemsNoticePriceContractType">
  7910. <PropertyRef Name="FuelTypeId" />
  7911. </Dependent>
  7912. </ReferentialConstraint>
  7913. </Association>
  7914. <Association Name="FK_BemsPriceCode_BemsFuelType">
  7915. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7916. <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="*" />
  7917. <ReferentialConstraint>
  7918. <Principal Role="BemsFuelType">
  7919. <PropertyRef Name="FuelTypeId" />
  7920. </Principal>
  7921. <Dependent Role="BemsPriceCode">
  7922. <PropertyRef Name="FuelTypeId" />
  7923. </Dependent>
  7924. </ReferentialConstraint>
  7925. </Association>
  7926. <Association Name="FK_BemsPriceType_BemsFuelType1">
  7927. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7928. <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="*" />
  7929. <ReferentialConstraint>
  7930. <Principal Role="BemsFuelType">
  7931. <PropertyRef Name="FuelTypeId" />
  7932. </Principal>
  7933. <Dependent Role="BemsPriceType">
  7934. <PropertyRef Name="FuelTypeId" />
  7935. </Dependent>
  7936. </ReferentialConstraint>
  7937. </Association>
  7938. <Association Name="FK_BemsSitePrice_BemsFuelType">
  7939. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7940. <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
  7941. <ReferentialConstraint>
  7942. <Principal Role="BemsFuelType">
  7943. <PropertyRef Name="FuelTypeId" />
  7944. </Principal>
  7945. <Dependent Role="BemsSitePrice">
  7946. <PropertyRef Name="FuelTypeId" />
  7947. </Dependent>
  7948. </ReferentialConstraint>
  7949. </Association>
  7950. <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
  7951. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
  7952. <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
  7953. <ReferentialConstraint>
  7954. <Principal Role="BemsFuelType">
  7955. <PropertyRef Name="FuelTypeId" />
  7956. </Principal>
  7957. <Dependent Role="BemsSitePriceHistory">
  7958. <PropertyRef Name="FuelTypeId" />
  7959. </Dependent>
  7960. </ReferentialConstraint>
  7961. </Association>
  7962. <EntityType Name="CmFacility">
  7963. <Key>
  7964. <PropertyRef Name="SiteId" />
  7965. <PropertyRef Name="FacilityCode" />
  7966. </Key>
  7967. <Property Name="SiteId" Type="Int32" Nullable="false" />
  7968. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  7969. <Property Name="FacilityCode" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  7970. <Property Name="FirstClassId" Type="Int32" />
  7971. <Property Name="SecondClassId" Type="Int32" />
  7972. <Property Name="ThirdClassId" Type="Int32" />
  7973. <Property Name="DeviceType" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
  7974. <Property Name="ParentFacilityCode" Type="Int32" />
  7975. <Property Name="Name" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
  7976. <Property Name="Nickname" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  7977. <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
  7978. <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  7979. <Property Name="ManufactureDate" Type="DateTime" Precision="0" />
  7980. <Property Name="ManufactureSerial" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  7981. <Property Name="ManufactureModel" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  7982. <Property Name="Supplier" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  7983. <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  7984. <Property Name="BuildingId" Type="Int32" />
  7985. <Property Name="FloorId" Type="Int32" />
  7986. <Property Name="ZoneId" Type="Int32" />
  7987. <Property Name="InstallDate" Type="DateTime" Precision="0" />
  7988. <Property Name="OperationStartDate" Type="DateTime" Precision="0" />
  7989. <Property Name="FacilityCapacity" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  7990. <Property Name="FacilityCost" Type="Int32" />
  7991. <Property Name="FacilityCount" Type="Int32" />
  7992. <Property Name="FacilitySeviceLifeYear" Type="Int32" />
  7993. <Property Name="FacilityUsage" Type="String" MaxLength="80" FixedLength="false" Unicode="true" />
  7994. <Property Name="RatedPowerConsumption" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
  7995. <Property Name="RatedCOP" Type="Double" />
  7996. <Property Name="MainContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  7997. <Property Name="SubContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  7998. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  7999. <Property Name="Reserved1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8000. <Property Name="Reserved2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8001. <Property Name="IsUse" Type="Boolean" />
  8002. <Property Name="FileId" Type="Int32" />
  8003. <Property Name="IsVirtualFacility" Type="Boolean" Nullable="false" />
  8004. <Property Name="FuelTypeId" Type="Int16" />
  8005. <Property Name="ContractType" Type="Int16" />
  8006. <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="CmFacility" ToRole="BemsAlarmSetting" />
  8007. <NavigationProperty Name="BemsEnergyCost" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="CmFacility" ToRole="BemsEnergyCost" />
  8008. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="CmFacility" ToRole="BemsFacilityType" />
  8009. <NavigationProperty Name="BemsFormulaParameter" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="CmFacility" ToRole="BemsFormulaParameter" />
  8010. <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="CmFacility" ToRole="BemsFuelType" />
  8011. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="CmFacility" ToRole="BemsMonitoringPoint" />
  8012. <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="CmFacility" ToRole="BemsNoticePriceContractType" />
  8013. <NavigationProperty Name="BemsPeakFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="CmFacility" ToRole="BemsPeakFacility" />
  8014. <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmFacility" ToRole="CmBuilding" />
  8015. <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFacility" ToRole="CmFloor" />
  8016. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmFacility" ToRole="CmUser" />
  8017. <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmFacility" ToRole="CmUser" />
  8018. <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility" ToRole="CmFacility1" />
  8019. <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility1" ToRole="CmFacility" />
  8020. <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFacility" ToRole="CmFile" />
  8021. <NavigationProperty Name="CmZone" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmFacility" ToRole="CmZone" />
  8022. <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  8023. <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  8024. <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
  8025. <NavigationProperty Name="CmFacilityFile" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacility" ToRole="CmFacilityFile" />
  8026. <NavigationProperty Name="FmsFacilityManual" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="CmFacility" ToRole="FmsFacilityManual" />
  8027. <NavigationProperty Name="FmsFacilityOperationItem" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="CmFacility" ToRole="FmsFacilityOperationItem" />
  8028. <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultCheckItem" />
  8029. <NavigationProperty Name="FmsWorkResultToFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultToFacility" />
  8030. <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmFacility" ToRole="CmUser" />
  8031. <NavigationProperty Name="CmUser3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmFacility" ToRole="CmUser" />
  8032. <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacility" ToRole="CmFacilityTempSet" />
  8033. <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkOrderToFacility" />
  8034. <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkRequestToFacility" />
  8035. <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkScheduleToFacility" />
  8036. </EntityType>
  8037. <Association Name="FK_BemsAlarmSetting_CmFacility">
  8038. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8039. <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
  8040. <ReferentialConstraint>
  8041. <Principal Role="CmFacility">
  8042. <PropertyRef Name="SiteId" />
  8043. <PropertyRef Name="FacilityCode" />
  8044. </Principal>
  8045. <Dependent Role="BemsAlarmSetting">
  8046. <PropertyRef Name="SiteId" />
  8047. <PropertyRef Name="FacilityCode" />
  8048. </Dependent>
  8049. </ReferentialConstraint>
  8050. </Association>
  8051. <Association Name="FK_BemsEnergyCost_CmFacility">
  8052. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8053. <End Type="iBemsModel.BemsEnergyCost" Role="BemsEnergyCost" Multiplicity="0..1" />
  8054. <ReferentialConstraint>
  8055. <Principal Role="CmFacility">
  8056. <PropertyRef Name="SiteId" />
  8057. <PropertyRef Name="FacilityCode" />
  8058. </Principal>
  8059. <Dependent Role="BemsEnergyCost">
  8060. <PropertyRef Name="SiteId" />
  8061. <PropertyRef Name="FacilityCode" />
  8062. </Dependent>
  8063. </ReferentialConstraint>
  8064. </Association>
  8065. <Association Name="FK__CmFacility__BemsFacilityType">
  8066. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  8067. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8068. <ReferentialConstraint>
  8069. <Principal Role="BemsFacilityType">
  8070. <PropertyRef Name="FacilityTypeId" />
  8071. </Principal>
  8072. <Dependent Role="CmFacility">
  8073. <PropertyRef Name="FacilityTypeId" />
  8074. </Dependent>
  8075. </ReferentialConstraint>
  8076. </Association>
  8077. <Association Name="FK_BemsFormulaParameter_CmFacility">
  8078. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8079. <End Type="iBemsModel.BemsFormulaParameter" Role="BemsFormulaParameter" Multiplicity="*" />
  8080. <ReferentialConstraint>
  8081. <Principal Role="CmFacility">
  8082. <PropertyRef Name="SiteId" />
  8083. <PropertyRef Name="FacilityCode" />
  8084. </Principal>
  8085. <Dependent Role="BemsFormulaParameter">
  8086. <PropertyRef Name="SiteId" />
  8087. <PropertyRef Name="FacilityCode" />
  8088. </Dependent>
  8089. </ReferentialConstraint>
  8090. </Association>
  8091. <Association Name="FK_CmFacility_BemsFuelType">
  8092. <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
  8093. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8094. <ReferentialConstraint>
  8095. <Principal Role="BemsFuelType">
  8096. <PropertyRef Name="FuelTypeId" />
  8097. </Principal>
  8098. <Dependent Role="CmFacility">
  8099. <PropertyRef Name="FuelTypeId" />
  8100. </Dependent>
  8101. </ReferentialConstraint>
  8102. </Association>
  8103. <Association Name="FK_BemsMonitoringPoint_CmFacility">
  8104. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8105. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
  8106. <ReferentialConstraint>
  8107. <Principal Role="CmFacility">
  8108. <PropertyRef Name="SiteId" />
  8109. <PropertyRef Name="FacilityCode" />
  8110. </Principal>
  8111. <Dependent Role="BemsMonitoringPoint">
  8112. <PropertyRef Name="SiteId" />
  8113. <PropertyRef Name="FacilityCode" />
  8114. </Dependent>
  8115. </ReferentialConstraint>
  8116. </Association>
  8117. <Association Name="FK_CmFacility_BemsNoticePriceContractType">
  8118. <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="0..1" />
  8119. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8120. <ReferentialConstraint>
  8121. <Principal Role="BemsNoticePriceContractType">
  8122. <PropertyRef Name="FuelTypeId" />
  8123. <PropertyRef Name="ContractType" />
  8124. </Principal>
  8125. <Dependent Role="CmFacility">
  8126. <PropertyRef Name="FuelTypeId" />
  8127. <PropertyRef Name="ContractType" />
  8128. </Dependent>
  8129. </ReferentialConstraint>
  8130. </Association>
  8131. <Association Name="FK_BemsPeakFacility_CmFacility">
  8132. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8133. <End Type="iBemsModel.BemsPeakFacility" Role="BemsPeakFacility" Multiplicity="*" />
  8134. <ReferentialConstraint>
  8135. <Principal Role="CmFacility">
  8136. <PropertyRef Name="SiteId" />
  8137. <PropertyRef Name="FacilityCode" />
  8138. </Principal>
  8139. <Dependent Role="BemsPeakFacility">
  8140. <PropertyRef Name="SiteId" />
  8141. <PropertyRef Name="FacilityCode" />
  8142. </Dependent>
  8143. </ReferentialConstraint>
  8144. </Association>
  8145. <Association Name="FK__CmFacility__CmBuilding">
  8146. <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="0..1" />
  8147. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8148. <ReferentialConstraint>
  8149. <Principal Role="CmBuilding">
  8150. <PropertyRef Name="SiteId" />
  8151. <PropertyRef Name="BuildingId" />
  8152. </Principal>
  8153. <Dependent Role="CmFacility">
  8154. <PropertyRef Name="SiteId" />
  8155. <PropertyRef Name="BuildingId" />
  8156. </Dependent>
  8157. </ReferentialConstraint>
  8158. </Association>
  8159. <Association Name="FK__CmFacility__74444068">
  8160. <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="0..1" />
  8161. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8162. <ReferentialConstraint>
  8163. <Principal Role="CmFloor">
  8164. <PropertyRef Name="SiteId" />
  8165. <PropertyRef Name="BuildingId" />
  8166. <PropertyRef Name="FloorId" />
  8167. </Principal>
  8168. <Dependent Role="CmFacility">
  8169. <PropertyRef Name="SiteId" />
  8170. <PropertyRef Name="BuildingId" />
  8171. <PropertyRef Name="FloorId" />
  8172. </Dependent>
  8173. </ReferentialConstraint>
  8174. </Association>
  8175. <Association Name="FK__CmFacility__753864A1">
  8176. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  8177. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8178. <ReferentialConstraint>
  8179. <Principal Role="CmUser">
  8180. <PropertyRef Name="SiteId" />
  8181. <PropertyRef Name="UserId" />
  8182. </Principal>
  8183. <Dependent Role="CmFacility">
  8184. <PropertyRef Name="SiteId" />
  8185. <PropertyRef Name="MainContactorUserId" />
  8186. </Dependent>
  8187. </ReferentialConstraint>
  8188. </Association>
  8189. <Association Name="FK__CmFacility__762C88DA">
  8190. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  8191. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8192. <ReferentialConstraint>
  8193. <Principal Role="CmUser">
  8194. <PropertyRef Name="SiteId" />
  8195. <PropertyRef Name="UserId" />
  8196. </Principal>
  8197. <Dependent Role="CmFacility">
  8198. <PropertyRef Name="SiteId" />
  8199. <PropertyRef Name="SubContactorUserId" />
  8200. </Dependent>
  8201. </ReferentialConstraint>
  8202. </Association>
  8203. <Association Name="FK__CmFacility__CmFacility">
  8204. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
  8205. <End Type="iBemsModel.CmFacility" Role="CmFacility1" Multiplicity="*" />
  8206. <ReferentialConstraint>
  8207. <Principal Role="CmFacility">
  8208. <PropertyRef Name="SiteId" />
  8209. <PropertyRef Name="FacilityCode" />
  8210. </Principal>
  8211. <Dependent Role="CmFacility1">
  8212. <PropertyRef Name="SiteId" />
  8213. <PropertyRef Name="ParentFacilityCode" />
  8214. </Dependent>
  8215. </ReferentialConstraint>
  8216. </Association>
  8217. <Association Name="FK__CmFacility__CmFile">
  8218. <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
  8219. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8220. <ReferentialConstraint>
  8221. <Principal Role="CmFile">
  8222. <PropertyRef Name="SiteId" />
  8223. <PropertyRef Name="FileId" />
  8224. </Principal>
  8225. <Dependent Role="CmFacility">
  8226. <PropertyRef Name="SiteId" />
  8227. <PropertyRef Name="FileId" />
  8228. </Dependent>
  8229. </ReferentialConstraint>
  8230. </Association>
  8231. <Association Name="FK__CmFacility__CmZone">
  8232. <End Type="iBemsModel.CmZone" Role="CmZone" Multiplicity="0..1" />
  8233. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8234. <ReferentialConstraint>
  8235. <Principal Role="CmZone">
  8236. <PropertyRef Name="SiteId" />
  8237. <PropertyRef Name="BuildingId" />
  8238. <PropertyRef Name="FloorId" />
  8239. <PropertyRef Name="ZoneId" />
  8240. </Principal>
  8241. <Dependent Role="CmFacility">
  8242. <PropertyRef Name="SiteId" />
  8243. <PropertyRef Name="BuildingId" />
  8244. <PropertyRef Name="FloorId" />
  8245. <PropertyRef Name="ZoneId" />
  8246. </Dependent>
  8247. </ReferentialConstraint>
  8248. </Association>
  8249. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsFirst">
  8250. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  8251. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8252. <ReferentialConstraint>
  8253. <Principal Role="FmsFacilityCodeClass">
  8254. <PropertyRef Name="SiteId" />
  8255. <PropertyRef Name="FacilityClassId" />
  8256. </Principal>
  8257. <Dependent Role="CmFacility">
  8258. <PropertyRef Name="SiteId" />
  8259. <PropertyRef Name="FirstClassId" />
  8260. </Dependent>
  8261. </ReferentialConstraint>
  8262. </Association>
  8263. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsSecond">
  8264. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  8265. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8266. <ReferentialConstraint>
  8267. <Principal Role="FmsFacilityCodeClass">
  8268. <PropertyRef Name="SiteId" />
  8269. <PropertyRef Name="FacilityClassId" />
  8270. </Principal>
  8271. <Dependent Role="CmFacility">
  8272. <PropertyRef Name="SiteId" />
  8273. <PropertyRef Name="SecondClassId" />
  8274. </Dependent>
  8275. </ReferentialConstraint>
  8276. </Association>
  8277. <Association Name="FK__CmFacility__FmsFacilityCodeClassAsThird">
  8278. <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
  8279. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8280. <ReferentialConstraint>
  8281. <Principal Role="FmsFacilityCodeClass">
  8282. <PropertyRef Name="SiteId" />
  8283. <PropertyRef Name="FacilityClassId" />
  8284. </Principal>
  8285. <Dependent Role="CmFacility">
  8286. <PropertyRef Name="SiteId" />
  8287. <PropertyRef Name="ThirdClassId" />
  8288. </Dependent>
  8289. </ReferentialConstraint>
  8290. </Association>
  8291. <Association Name="FK__CmFacilityFile__7720AD13">
  8292. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8293. <End Type="iBemsModel.CmFacilityFile" Role="CmFacilityFile" Multiplicity="*" />
  8294. <ReferentialConstraint>
  8295. <Principal Role="CmFacility">
  8296. <PropertyRef Name="SiteId" />
  8297. <PropertyRef Name="FacilityCode" />
  8298. </Principal>
  8299. <Dependent Role="CmFacilityFile">
  8300. <PropertyRef Name="SiteId" />
  8301. <PropertyRef Name="FacilityCode" />
  8302. </Dependent>
  8303. </ReferentialConstraint>
  8304. </Association>
  8305. <Association Name="FK__CmFacilityManual__79FD19BE">
  8306. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8307. <End Type="iBemsModel.FmsFacilityManual" Role="FmsFacilityManual" Multiplicity="*" />
  8308. <ReferentialConstraint>
  8309. <Principal Role="CmFacility">
  8310. <PropertyRef Name="SiteId" />
  8311. <PropertyRef Name="FacilityCode" />
  8312. </Principal>
  8313. <Dependent Role="FmsFacilityManual">
  8314. <PropertyRef Name="SiteId" />
  8315. <PropertyRef Name="FacilityCode" />
  8316. </Dependent>
  8317. </ReferentialConstraint>
  8318. </Association>
  8319. <Association Name="FK__FmsFacilityOpera__725BF7F6">
  8320. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8321. <End Type="iBemsModel.FmsFacilityOperationItem" Role="FmsFacilityOperationItem" Multiplicity="0..1" />
  8322. <ReferentialConstraint>
  8323. <Principal Role="CmFacility">
  8324. <PropertyRef Name="SiteId" />
  8325. <PropertyRef Name="FacilityCode" />
  8326. </Principal>
  8327. <Dependent Role="FmsFacilityOperationItem">
  8328. <PropertyRef Name="SiteId" />
  8329. <PropertyRef Name="ItemId" />
  8330. </Dependent>
  8331. </ReferentialConstraint>
  8332. </Association>
  8333. <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
  8334. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
  8335. <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
  8336. <ReferentialConstraint>
  8337. <Principal Role="CmFacility">
  8338. <PropertyRef Name="SiteId" />
  8339. <PropertyRef Name="FacilityCode" />
  8340. </Principal>
  8341. <Dependent Role="FmsWorkResultCheckItem">
  8342. <PropertyRef Name="SiteId" />
  8343. <PropertyRef Name="FacilityCode" />
  8344. </Dependent>
  8345. </ReferentialConstraint>
  8346. </Association>
  8347. <Association Name="FK__FmsWorkResultToFacility__CmFacility">
  8348. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8349. <End Type="iBemsModel.FmsWorkResultToFacility" Role="FmsWorkResultToFacility" Multiplicity="*" />
  8350. <ReferentialConstraint>
  8351. <Principal Role="CmFacility">
  8352. <PropertyRef Name="SiteId" />
  8353. <PropertyRef Name="FacilityCode" />
  8354. </Principal>
  8355. <Dependent Role="FmsWorkResultToFacility">
  8356. <PropertyRef Name="SiteId" />
  8357. <PropertyRef Name="FacilityCode" />
  8358. </Dependent>
  8359. </ReferentialConstraint>
  8360. </Association>
  8361. <Association Name="FK_CmFacility_CmUser">
  8362. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  8363. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8364. <ReferentialConstraint>
  8365. <Principal Role="CmUser">
  8366. <PropertyRef Name="SiteId" />
  8367. <PropertyRef Name="UserId" />
  8368. </Principal>
  8369. <Dependent Role="CmFacility">
  8370. <PropertyRef Name="SiteId" />
  8371. <PropertyRef Name="MainContactorUserId" />
  8372. </Dependent>
  8373. </ReferentialConstraint>
  8374. </Association>
  8375. <Association Name="FK_CmFacility_CmUser1">
  8376. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
  8377. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
  8378. <ReferentialConstraint>
  8379. <Principal Role="CmUser">
  8380. <PropertyRef Name="SiteId" />
  8381. <PropertyRef Name="UserId" />
  8382. </Principal>
  8383. <Dependent Role="CmFacility">
  8384. <PropertyRef Name="SiteId" />
  8385. <PropertyRef Name="SubContactorUserId" />
  8386. </Dependent>
  8387. </ReferentialConstraint>
  8388. </Association>
  8389. <Association Name="FK_CmFacilityTempSet_CmFacility">
  8390. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8391. <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="0..1" />
  8392. <ReferentialConstraint>
  8393. <Principal Role="CmFacility">
  8394. <PropertyRef Name="SiteId" />
  8395. <PropertyRef Name="FacilityCode" />
  8396. </Principal>
  8397. <Dependent Role="CmFacilityTempSet">
  8398. <PropertyRef Name="SiteId" />
  8399. <PropertyRef Name="FacilityCode" />
  8400. </Dependent>
  8401. </ReferentialConstraint>
  8402. </Association>
  8403. <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
  8404. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8405. <End Type="iBemsModel.FmsWorkOrderToFacility" Role="FmsWorkOrderToFacility" Multiplicity="*" />
  8406. <ReferentialConstraint>
  8407. <Principal Role="CmFacility">
  8408. <PropertyRef Name="SiteId" />
  8409. <PropertyRef Name="FacilityCode" />
  8410. </Principal>
  8411. <Dependent Role="FmsWorkOrderToFacility">
  8412. <PropertyRef Name="SiteId" />
  8413. <PropertyRef Name="FacilityCode" />
  8414. </Dependent>
  8415. </ReferentialConstraint>
  8416. </Association>
  8417. <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
  8418. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8419. <End Type="iBemsModel.FmsWorkRequestToFacility" Role="FmsWorkRequestToFacility" Multiplicity="*" />
  8420. <ReferentialConstraint>
  8421. <Principal Role="CmFacility">
  8422. <PropertyRef Name="SiteId" />
  8423. <PropertyRef Name="FacilityCode" />
  8424. </Principal>
  8425. <Dependent Role="FmsWorkRequestToFacility">
  8426. <PropertyRef Name="SiteId" />
  8427. <PropertyRef Name="FacilityCode" />
  8428. </Dependent>
  8429. </ReferentialConstraint>
  8430. </Association>
  8431. <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
  8432. <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
  8433. <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
  8434. <ReferentialConstraint>
  8435. <Principal Role="CmFacility">
  8436. <PropertyRef Name="SiteId" />
  8437. <PropertyRef Name="FacilityCode" />
  8438. </Principal>
  8439. <Dependent Role="FmsWorkScheduleToFacility">
  8440. <PropertyRef Name="SiteId" />
  8441. <PropertyRef Name="FacilityCode" />
  8442. </Dependent>
  8443. </ReferentialConstraint>
  8444. </Association>
  8445. <EntityType Name="BemsMonitoringPointHistory15minRawData">
  8446. <Key>
  8447. <PropertyRef Name="SiteId" />
  8448. <PropertyRef Name="FacilityCode" />
  8449. <PropertyRef Name="PropertyId" />
  8450. <PropertyRef Name="CreatedDateTime" />
  8451. </Key>
  8452. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8453. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8454. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8455. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8456. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8457. <Property Name="CurrentValue" Type="Double" Nullable="false" />
  8458. <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsFacilityType" />
  8459. <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsMonitoringPoint" />
  8460. </EntityType>
  8461. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
  8462. <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
  8463. <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  8464. <ReferentialConstraint>
  8465. <Principal Role="BemsFacilityType">
  8466. <PropertyRef Name="FacilityTypeId" />
  8467. </Principal>
  8468. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  8469. <PropertyRef Name="FacilityTypeId" />
  8470. </Dependent>
  8471. </ReferentialConstraint>
  8472. </Association>
  8473. <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
  8474. <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
  8475. <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
  8476. <ReferentialConstraint>
  8477. <Principal Role="BemsMonitoringPoint">
  8478. <PropertyRef Name="SiteId" />
  8479. <PropertyRef Name="FacilityCode" />
  8480. <PropertyRef Name="PropertyId" />
  8481. </Principal>
  8482. <Dependent Role="BemsMonitoringPointHistory15minRawData">
  8483. <PropertyRef Name="SiteId" />
  8484. <PropertyRef Name="FacilityCode" />
  8485. <PropertyRef Name="PropertyId" />
  8486. </Dependent>
  8487. </ReferentialConstraint>
  8488. </Association>
  8489. <EntityType Name="FmsDailyReport">
  8490. <Key>
  8491. <PropertyRef Name="SiteId" />
  8492. <PropertyRef Name="AddDate" />
  8493. <PropertyRef Name="BusinessFieldId" />
  8494. </Key>
  8495. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8496. <Property Name="DailyReportId" Type="Int32" />
  8497. <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  8498. <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8499. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  8500. <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="0" />
  8501. <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
  8502. <Property Name="Datas" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  8503. <Property Name="ApproverUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8504. <Property Name="ApproveDate" Type="DateTime" Precision="0" />
  8505. <Property Name="RegisterDate" Type="DateTime" Precision="0" />
  8506. <Property Name="ApproverUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8507. <Property Name="ApproveDate2" Type="DateTime" Precision="0" />
  8508. <Property Name="ApproverUserId3" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8509. <Property Name="ApproveDate3" Type="DateTime" Precision="0" />
  8510. <Property Name="ApproverUserId4" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8511. <Property Name="ApproveDate4" Type="DateTime" Precision="0" />
  8512. <Property Name="ApproverUserId5" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8513. <Property Name="ApproveDate5" Type="DateTime" Precision="0" />
  8514. <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="FmsDailyReport" ToRole="CmBusinessField" />
  8515. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="FmsDailyReport" ToRole="CmUser" />
  8516. </EntityType>
  8517. <Association Name="FK_FmsDailyReport_CmBusinessField">
  8518. <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
  8519. <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
  8520. <ReferentialConstraint>
  8521. <Principal Role="CmBusinessField">
  8522. <PropertyRef Name="SiteId" />
  8523. <PropertyRef Name="BusinessFieldId" />
  8524. </Principal>
  8525. <Dependent Role="FmsDailyReport">
  8526. <PropertyRef Name="SiteId" />
  8527. <PropertyRef Name="BusinessFieldId" />
  8528. </Dependent>
  8529. </ReferentialConstraint>
  8530. </Association>
  8531. <Association Name="FK_FmsDailyReport_CmUser">
  8532. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  8533. <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
  8534. <ReferentialConstraint>
  8535. <Principal Role="CmUser">
  8536. <PropertyRef Name="SiteId" />
  8537. <PropertyRef Name="UserId" />
  8538. </Principal>
  8539. <Dependent Role="FmsDailyReport">
  8540. <PropertyRef Name="SiteId" />
  8541. <PropertyRef Name="RegisterUserId" />
  8542. </Dependent>
  8543. </ReferentialConstraint>
  8544. </Association>
  8545. <EntityType Name="BemsPeakHistoryDaily">
  8546. <Key>
  8547. <PropertyRef Name="SiteId" />
  8548. <PropertyRef Name="CreatedDateTime" />
  8549. </Key>
  8550. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8551. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8552. <Property Name="MaxPeakValue" Type="Double" />
  8553. <Property Name="MaxDateTime" Type="DateTime" Precision="3" />
  8554. <Property Name="MinPeakValue" Type="Double" />
  8555. <Property Name="MinDateTime" Type="DateTime" Precision="3" />
  8556. </EntityType>
  8557. <EntityType Name="FmsEquipment">
  8558. <Key>
  8559. <PropertyRef Name="SiteId" />
  8560. <PropertyRef Name="EquipmentId" />
  8561. </Key>
  8562. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8563. <Property Name="EquipmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8564. <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
  8565. <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" />
  8566. <Property Name="WarehouseId" Type="Int32" />
  8567. <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
  8568. <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8569. <Property Name="AddDate" Type="DateTime" Precision="3" />
  8570. <Property Name="UpdateDate" Type="DateTime" Precision="3" />
  8571. <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
  8572. <Property Name="SupplierName" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
  8573. <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8574. <Property Name="ImageFileId" Type="Int32" />
  8575. <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="FmsEquipment" ToRole="CmUser" />
  8576. <NavigationProperty Name="FmsEquipmentCodeType" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipment" ToRole="FmsEquipmentCodeType" />
  8577. <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsEquipment" ToRole="FmsMaterialWarehouse" />
  8578. <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipment" ToRole="FmsEquipmentHistory" />
  8579. </EntityType>
  8580. <Association Name="FK_FmsEquipment_CmUser">
  8581. <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
  8582. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  8583. <ReferentialConstraint>
  8584. <Principal Role="CmUser">
  8585. <PropertyRef Name="SiteId" />
  8586. <PropertyRef Name="UserId" />
  8587. </Principal>
  8588. <Dependent Role="FmsEquipment">
  8589. <PropertyRef Name="SiteId" />
  8590. <PropertyRef Name="RegisterUserId" />
  8591. </Dependent>
  8592. </ReferentialConstraint>
  8593. </Association>
  8594. <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
  8595. <End Type="iBemsModel.FmsEquipmentCodeType" Role="FmsEquipmentCodeType" Multiplicity="1" />
  8596. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  8597. <ReferentialConstraint>
  8598. <Principal Role="FmsEquipmentCodeType">
  8599. <PropertyRef Name="SiteId" />
  8600. <PropertyRef Name="EquipmentTypeId" />
  8601. </Principal>
  8602. <Dependent Role="FmsEquipment">
  8603. <PropertyRef Name="SiteId" />
  8604. <PropertyRef Name="EquipmentTypeId" />
  8605. </Dependent>
  8606. </ReferentialConstraint>
  8607. </Association>
  8608. <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
  8609. <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
  8610. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
  8611. <ReferentialConstraint>
  8612. <Principal Role="FmsMaterialWarehouse">
  8613. <PropertyRef Name="SiteId" />
  8614. <PropertyRef Name="WarehouseId" />
  8615. </Principal>
  8616. <Dependent Role="FmsEquipment">
  8617. <PropertyRef Name="SiteId" />
  8618. <PropertyRef Name="WarehouseId" />
  8619. </Dependent>
  8620. </ReferentialConstraint>
  8621. </Association>
  8622. <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
  8623. <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="1" />
  8624. <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
  8625. <ReferentialConstraint>
  8626. <Principal Role="FmsEquipment">
  8627. <PropertyRef Name="SiteId" />
  8628. <PropertyRef Name="EquipmentId" />
  8629. </Principal>
  8630. <Dependent Role="FmsEquipmentHistory">
  8631. <PropertyRef Name="SiteId" />
  8632. <PropertyRef Name="EquipmentId" />
  8633. </Dependent>
  8634. </ReferentialConstraint>
  8635. </Association>
  8636. <EntityType Name="CmAlarmAdmin">
  8637. <Key>
  8638. <PropertyRef Name="SiteId" />
  8639. </Key>
  8640. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8641. <Property Name="UserCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8642. <Property Name="DeptCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8643. <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8644. <Property Name="EmailAddress" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8645. <Property Name="EmailPassword" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8646. </EntityType>
  8647. <EntityType Name="BemsFloorStatus">
  8648. <Key>
  8649. <PropertyRef Name="SiteId" />
  8650. <PropertyRef Name="FloorId" />
  8651. <PropertyRef Name="FloorName" />
  8652. <PropertyRef Name="ImageFileId" />
  8653. <PropertyRef Name="Xvalue" />
  8654. <PropertyRef Name="Yvalue" />
  8655. <PropertyRef Name="PropertyId" />
  8656. </Key>
  8657. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8658. <Property Name="FloorId" Type="Int32" Nullable="false" />
  8659. <Property Name="FloorName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8660. <Property Name="ImageFileId" Type="Int32" Nullable="false" />
  8661. <Property Name="Xvalue" Type="Int32" Nullable="false" />
  8662. <Property Name="Yvalue" Type="Int32" Nullable="false" />
  8663. <Property Name="ZoneId" Type="Int32" />
  8664. <Property Name="ServiceTypeId" Type="Int32" />
  8665. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8666. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8667. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8668. <Property Name="FacilityName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
  8669. </EntityType>
  8670. <EntityType Name="BemsReportHistory">
  8671. <Key>
  8672. <PropertyRef Name="Seq" />
  8673. <PropertyRef Name="DateTime" />
  8674. <PropertyRef Name="ReportFormatId" />
  8675. <PropertyRef Name="parts" />
  8676. </Key>
  8677. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8678. <Property Name="Seq" Type="Int32" Nullable="false" />
  8679. <Property Name="DateTime" Type="DateTime" Nullable="false" Precision="3" />
  8680. <Property Name="ReportName" Type="String" Nullable="false" MaxLength="200" FixedLength="false" Unicode="false" />
  8681. <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
  8682. <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
  8683. <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  8684. <Property Name="Writer" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  8685. <Property Name="Confirm1" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  8686. <Property Name="Confirm2" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  8687. <Property Name="parts" Type="Int32" Nullable="false" />
  8688. <Property Name="FileName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8689. </EntityType>
  8690. <EntityType Name="CmPartner">
  8691. <Key>
  8692. <PropertyRef Name="SiteId" />
  8693. <PropertyRef Name="PartnerId" />
  8694. </Key>
  8695. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8696. <Property Name="PartnerId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8697. <Property Name="PartnerTypeId" Type="Int32" Nullable="false" />
  8698. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8699. <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8700. <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8701. <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8702. <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8703. <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8704. <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8705. <Property Name="AddressZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  8706. <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
  8707. <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  8708. <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8709. <Property Name="HomepageUri" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  8710. <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8711. <Property Name="IsUse" Type="Boolean" />
  8712. <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartner" ToRole="CmPartnerType" />
  8713. <NavigationProperty Name="FmsConstruction" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="CmPartner" ToRole="FmsConstruction" />
  8714. <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="CmPartner" ToRole="FmsWorkRequest" />
  8715. <NavigationProperty Name="FmsWorkSchedule" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="CmPartner" ToRole="FmsWorkSchedule" />
  8716. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="CmPartner" ToRole="FmsContract" />
  8717. </EntityType>
  8718. <EntityType Name="CmPartnerType">
  8719. <Key>
  8720. <PropertyRef Name="PartnerTypeId" />
  8721. </Key>
  8722. <Property Name="PartnerTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8723. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8724. <Property Name="IsUse" Type="Boolean" />
  8725. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartnerType" ToRole="CmPartner" />
  8726. <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="CmPartnerType" ToRole="FmsContract" />
  8727. </EntityType>
  8728. <Association Name="FK_CmPartnerType_CmPartner">
  8729. <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="1" />
  8730. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="*" />
  8731. <ReferentialConstraint>
  8732. <Principal Role="CmPartnerType">
  8733. <PropertyRef Name="PartnerTypeId" />
  8734. </Principal>
  8735. <Dependent Role="CmPartner">
  8736. <PropertyRef Name="PartnerTypeId" />
  8737. </Dependent>
  8738. </ReferentialConstraint>
  8739. </Association>
  8740. <Association Name="FK_FmsConstruction_CmPartner">
  8741. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="1" />
  8742. <End Type="iBemsModel.FmsConstruction" Role="FmsConstruction" Multiplicity="*" />
  8743. <ReferentialConstraint>
  8744. <Principal Role="CmPartner">
  8745. <PropertyRef Name="SiteId" />
  8746. <PropertyRef Name="PartnerId" />
  8747. </Principal>
  8748. <Dependent Role="FmsConstruction">
  8749. <PropertyRef Name="SiteId" />
  8750. <PropertyRef Name="PartnerId" />
  8751. </Dependent>
  8752. </ReferentialConstraint>
  8753. </Association>
  8754. <Association Name="FK_FmsWorkRequest_CmPartner">
  8755. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  8756. <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
  8757. <ReferentialConstraint>
  8758. <Principal Role="CmPartner">
  8759. <PropertyRef Name="SiteId" />
  8760. <PropertyRef Name="PartnerId" />
  8761. </Principal>
  8762. <Dependent Role="FmsWorkRequest">
  8763. <PropertyRef Name="SiteId" />
  8764. <PropertyRef Name="InspectionAgencyId" />
  8765. </Dependent>
  8766. </ReferentialConstraint>
  8767. </Association>
  8768. <Association Name="FK_FmsWorkSchedule_CmPartner">
  8769. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  8770. <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
  8771. <ReferentialConstraint>
  8772. <Principal Role="CmPartner">
  8773. <PropertyRef Name="SiteId" />
  8774. <PropertyRef Name="PartnerId" />
  8775. </Principal>
  8776. <Dependent Role="FmsWorkSchedule">
  8777. <PropertyRef Name="SiteId" />
  8778. <PropertyRef Name="InspectionAgencyId" />
  8779. </Dependent>
  8780. </ReferentialConstraint>
  8781. </Association>
  8782. <EntityType Name="FmsContract">
  8783. <Key>
  8784. <PropertyRef Name="SiteId" />
  8785. <PropertyRef Name="ContractId" />
  8786. </Key>
  8787. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8788. <Property Name="ContractId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8789. <Property Name="Name" Type="String" Nullable="false" MaxLength="256" FixedLength="false" Unicode="true" />
  8790. <Property Name="PartnerTypeId" Type="Int32" />
  8791. <Property Name="PartnerId" Type="Int32" />
  8792. <Property Name="ContractDate" Type="DateTime" Precision="3" />
  8793. <Property Name="StartDate" Type="DateTime" Precision="3" />
  8794. <Property Name="EndDate" Type="DateTime" Precision="3" />
  8795. <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
  8796. <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
  8797. <Property Name="CommitmentMan" Type="Int16" />
  8798. <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
  8799. <Property Name="ContractClassId" Type="Int32" />
  8800. <Property Name="ContractTypeId" Type="Int32" />
  8801. <Property Name="ContractMethodId" Type="Int32" />
  8802. <Property Name="PaymentTypeId" Type="Int32" />
  8803. <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="FmsContract" ToRole="CmPartner" />
  8804. <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="FmsContract" ToRole="CmPartnerType" />
  8805. <NavigationProperty Name="FmsContractClass" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContract" ToRole="FmsContractClass" />
  8806. <NavigationProperty Name="FmsContractMethod" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContract" ToRole="FmsContractMethod" />
  8807. <NavigationProperty Name="FmsContractType" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContract" ToRole="FmsContractType" />
  8808. <NavigationProperty Name="FmsPaymentType" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsContract" ToRole="FmsPaymentType" />
  8809. </EntityType>
  8810. <Association Name="FK_FmsContract_CmPartner">
  8811. <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
  8812. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  8813. <ReferentialConstraint>
  8814. <Principal Role="CmPartner">
  8815. <PropertyRef Name="SiteId" />
  8816. <PropertyRef Name="PartnerId" />
  8817. </Principal>
  8818. <Dependent Role="FmsContract">
  8819. <PropertyRef Name="SiteId" />
  8820. <PropertyRef Name="PartnerId" />
  8821. </Dependent>
  8822. </ReferentialConstraint>
  8823. </Association>
  8824. <Association Name="FK_FmsContract_CmPartnerType">
  8825. <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="0..1" />
  8826. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  8827. <ReferentialConstraint>
  8828. <Principal Role="CmPartnerType">
  8829. <PropertyRef Name="PartnerTypeId" />
  8830. </Principal>
  8831. <Dependent Role="FmsContract">
  8832. <PropertyRef Name="PartnerTypeId" />
  8833. </Dependent>
  8834. </ReferentialConstraint>
  8835. </Association>
  8836. <Association Name="FK_FmsContract_FmsContractClass">
  8837. <End Type="iBemsModel.FmsContractClass" Role="FmsContractClass" Multiplicity="0..1" />
  8838. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  8839. <ReferentialConstraint>
  8840. <Principal Role="FmsContractClass">
  8841. <PropertyRef Name="SiteId" />
  8842. <PropertyRef Name="ContractClassId" />
  8843. </Principal>
  8844. <Dependent Role="FmsContract">
  8845. <PropertyRef Name="SiteId" />
  8846. <PropertyRef Name="ContractClassId" />
  8847. </Dependent>
  8848. </ReferentialConstraint>
  8849. </Association>
  8850. <Association Name="FK_FmsContract_FmsContractMethod">
  8851. <End Type="iBemsModel.FmsContractMethod" Role="FmsContractMethod" Multiplicity="0..1" />
  8852. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  8853. <ReferentialConstraint>
  8854. <Principal Role="FmsContractMethod">
  8855. <PropertyRef Name="SiteId" />
  8856. <PropertyRef Name="ContractMethodId" />
  8857. </Principal>
  8858. <Dependent Role="FmsContract">
  8859. <PropertyRef Name="SiteId" />
  8860. <PropertyRef Name="ContractMethodId" />
  8861. </Dependent>
  8862. </ReferentialConstraint>
  8863. </Association>
  8864. <Association Name="FK_FmsContract_FmsContractType">
  8865. <End Type="iBemsModel.FmsContractType" Role="FmsContractType" Multiplicity="0..1" />
  8866. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  8867. <ReferentialConstraint>
  8868. <Principal Role="FmsContractType">
  8869. <PropertyRef Name="SiteId" />
  8870. <PropertyRef Name="ContractTypeId" />
  8871. </Principal>
  8872. <Dependent Role="FmsContract">
  8873. <PropertyRef Name="SiteId" />
  8874. <PropertyRef Name="ContractTypeId" />
  8875. </Dependent>
  8876. </ReferentialConstraint>
  8877. </Association>
  8878. <Association Name="FK_FmsContract_FmsPaymentType">
  8879. <End Type="iBemsModel.FmsPaymentType" Role="FmsPaymentType" Multiplicity="0..1" />
  8880. <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
  8881. <ReferentialConstraint>
  8882. <Principal Role="FmsPaymentType">
  8883. <PropertyRef Name="SiteId" />
  8884. <PropertyRef Name="PaymentTypeId" />
  8885. </Principal>
  8886. <Dependent Role="FmsContract">
  8887. <PropertyRef Name="SiteId" />
  8888. <PropertyRef Name="PartnerTypeId" />
  8889. </Dependent>
  8890. </ReferentialConstraint>
  8891. </Association>
  8892. <EntityType Name="BemsMonitoringPointForecastingDayAhead">
  8893. <Key>
  8894. <PropertyRef Name="SiteId" />
  8895. <PropertyRef Name="FacilityCode" />
  8896. <PropertyRef Name="PropertyId" />
  8897. <PropertyRef Name="CreatedDateTime" />
  8898. <PropertyRef Name="TargetDateTime" />
  8899. </Key>
  8900. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8901. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8902. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8903. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8904. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8905. <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8906. <Property Name="ForecastedValue" Type="Double" Nullable="false" />
  8907. </EntityType>
  8908. <EntityType Name="BemsMonitoringPointForecastingHourAhead">
  8909. <Key>
  8910. <PropertyRef Name="SiteId" />
  8911. <PropertyRef Name="FacilityCode" />
  8912. <PropertyRef Name="PropertyId" />
  8913. <PropertyRef Name="CreatedDateTime" />
  8914. <PropertyRef Name="TargetDateTime" />
  8915. </Key>
  8916. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8917. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8918. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8919. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8920. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8921. <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8922. <Property Name="ForecastedValue" Type="Double" Nullable="false" />
  8923. </EntityType>
  8924. <EntityType Name="BemsFloorPlan">
  8925. <Key>
  8926. <PropertyRef Name="SiteId" />
  8927. <PropertyRef Name="Name" />
  8928. </Key>
  8929. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8930. <Property Name="FloorId" Type="Int32" Nullable="false" />
  8931. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8932. <Property Name="ImageFileId" Type="Int32" />
  8933. </EntityType>
  8934. <EntityType Name="BemsMonitoringPointWeatherForecasted">
  8935. <Key>
  8936. <PropertyRef Name="SiteId" />
  8937. <PropertyRef Name="CreatedDateTime" />
  8938. <PropertyRef Name="Category" />
  8939. <PropertyRef Name="BaseDateTime" />
  8940. <PropertyRef Name="ForecastedDateTime" />
  8941. </Key>
  8942. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8943. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8944. <Property Name="Category" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8945. <Property Name="BaseDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8946. <Property Name="ForecastedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8947. <Property Name="ForecastedValue" Type="Double" Nullable="false" />
  8948. <Property Name="nx" Type="Int32" Nullable="false" />
  8949. <Property Name="ny" Type="Int32" Nullable="false" />
  8950. </EntityType>
  8951. <EntityType Name="BemsConfigData">
  8952. <Key>
  8953. <PropertyRef Name="SiteId" />
  8954. </Key>
  8955. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8956. <Property Name="LoadDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8957. <Property Name="LoadDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8958. <Property Name="LoadDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8959. <Property Name="LoadDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8960. <Property Name="TargetDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8961. <Property Name="TargetDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8962. <Property Name="TargetDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8963. <Property Name="TargetDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8964. <Property Name="InitialDate" Type="DateTime" Nullable="false" Precision="3" />
  8965. <Property Name="LinearFilterLength" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  8966. <Property Name="NonlinearTestSize" Type="Double" Nullable="false" />
  8967. </EntityType>
  8968. <EntityType Name="BemsIceThermalStorageSimulation">
  8969. <Key>
  8970. <PropertyRef Name="SiteId" />
  8971. <PropertyRef Name="FacilityCode" />
  8972. <PropertyRef Name="PropertyId" />
  8973. <PropertyRef Name="CreatedDateTime" />
  8974. <PropertyRef Name="TargetDateTime" />
  8975. <PropertyRef Name="SimulationCase" />
  8976. </Key>
  8977. <Property Name="SiteId" Type="Int32" Nullable="false" />
  8978. <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
  8979. <Property Name="FacilityCode" Type="Int32" Nullable="false" />
  8980. <Property Name="PropertyId" Type="Int32" Nullable="false" />
  8981. <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8982. <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
  8983. <Property Name="SimulationValue" Type="Double" />
  8984. <Property Name="SimulationCase" Type="Int32" Nullable="false" />
  8985. </EntityType>
  8986. </Schema>