1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986 |
- <?xml version="1.0" encoding="utf-8"?>
- <Schema Namespace="iBemsModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
- <EntityType Name="BemsAnalysisType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnalysisType" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="AnalysisType" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsAnalysisType" ToRole="BemsMonitoringPointToAnlaysisType" />
- </EntityType>
- <EntityType Name="BemsControlPointHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreateDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreateDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ControlValue" Type="Double" Nullable="false" />
- <Property Name="WriteServiceName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="ActionDateTime" Type="DateTime" Precision="3" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsControlPointHistory" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsControlPointHistory" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <EntityType Name="BemsFacilityType">
- <Key>
- <PropertyRef Name="FacilityTypeId" />
- </Key>
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsControlPointHistory" />
- <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointBaseData" />
- <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15min" />
- <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryDaily" />
- <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistoryHourly" />
- <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointToAnlaysisType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsChartInfo" />
- <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointConfig" />
- <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsAlarmSetting" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="BemsFacilityType" ToRole="CmFacility" />
- <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsFacilityType" ToRole="BemsMonitoringPointHistory15minRawData" />
- </EntityType>
- <EntityType Name="BemsFactorCo2">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- </Key>
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="Factor" Type="Double" Nullable="false" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFactorCo2" ToRole="BemsFuelType" />
- </EntityType>
- <EntityType Name="BemsFactorToe">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- </Key>
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="TotalFactor" Type="Double" Nullable="false" />
- <Property Name="PureFactor" Type="Double" Nullable="false" />
- <Property Name="kcal" Type="Double" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFactorToe" ToRole="BemsFuelType" />
- </EntityType>
- <EntityType Name="BemsFormula">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="FormulaId" Type="Int32" Nullable="false" />
- <Property Name="Formula" Type="String" MaxLength="120" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="BemsFormulaBase" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormula" ToRole="BemsFormulaBase" />
- <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormula" ToRole="BemsFormulaParameter" />
- <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsFormula" ToRole="BemsPriceFormula" />
- </EntityType>
- <EntityType Name="BemsFormulaBase">
- <Key>
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FormulaId" />
- </Key>
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FormulaId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormula__BemsFormulaBase" FromRole="BemsFormulaBase" ToRole="BemsFormula" />
- </EntityType>
- <EntityType Name="BemsFormulaParameter">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- <PropertyRef Name="ParameterId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="FormulaId" Type="Int32" Nullable="false" />
- <Property Name="ParameterId" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="ParameterFacilityCode" Type="Int32" Nullable="false" />
- <Property Name="ParameterPropertyId" Type="Int32" Nullable="false" />
- <NavigationProperty Name="BemsFormula" Relationship="Self.FK__BemsFormulaParameter__BemsFormula" FromRole="BemsFormulaParameter" ToRole="BemsFormula" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsFormulaParameter" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="BemsFormulaParameter" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="BemsFormulaTable">
- <Key>
- <PropertyRef Name="TableId" />
- </Key>
- <Property Name="TableId" Type="Int32" Nullable="false" />
- <Property Name="FunctionName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="BemsFormulaTableValue" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTable" ToRole="BemsFormulaTableValue" />
- </EntityType>
- <EntityType Name="BemsFormulaTableValue">
- <Key>
- <PropertyRef Name="TableId" />
- <PropertyRef Name="XValue" />
- </Key>
- <Property Name="TableId" Type="Int32" Nullable="false" />
- <Property Name="XValue" Type="Double" Nullable="false" />
- <Property Name="YValue" Type="Double" Nullable="false" />
- <NavigationProperty Name="BemsFormulaTable" Relationship="Self.FK__BemsFormulaTableValue__BemsFormulaTable" FromRole="BemsFormulaTableValue" ToRole="BemsFormulaTable" />
- </EntityType>
- <EntityType Name="BemsMonitoringPoint">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="ValueType" Type="Int32" Nullable="false" />
- <Property Name="ServiceTypeId" Type="Int16" />
- <Property Name="FuelTypeId" Type="Int16" />
- <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Name="BuildingId" Type="Int32" />
- <Property Name="FloorId" Type="Int32" />
- <Property Name="ZoneId" Type="Int32" />
- <NavigationProperty Name="BemsControlPointHistory" Relationship="Self.FK_BemsControlPointHistory_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsControlPointHistory" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK_BemsMonitoringPoint_BemsFacilityType" FromRole="BemsMonitoringPoint" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsFormulaParameter" Relationship="Self.FK__BemsFormulaParameter__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsFormulaParameter" />
- <NavigationProperty Name="BemsMonitoringPointToAnlaysisType" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointToAnlaysisType" />
- <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsMonitoringPoint" ToRole="BemsServiceType" />
- <NavigationProperty Name="CmBuilding" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="BemsMonitoringPoint" ToRole="CmBuilding" />
- <NavigationProperty Name="CmFloor" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="BemsMonitoringPoint" ToRole="CmFloor" />
- <NavigationProperty Name="CmZone" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="BemsMonitoringPoint" ToRole="CmZone" />
- <NavigationProperty Name="BemsMonitoringPointHistory15min" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15min" />
- <NavigationProperty Name="BemsMonitoringPointHistoryDaily" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryDaily" />
- <NavigationProperty Name="BemsMonitoringPointHistoryHourly" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistoryHourly" />
- <NavigationProperty Name="BemsMonitoringPointConfig" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointConfig" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsMonitoringPoint" ToRole="BemsFuelType" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="BemsMonitoringPoint" ToRole="CmFacility" />
- <NavigationProperty Name="BemsMonitoringPointHistory15minRawData" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPoint" ToRole="BemsMonitoringPointHistory15minRawData" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointBaseData">
- <Key>
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="ValueType" Type="Int32" Nullable="false" />
- <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
- <Property Name="ServiceTypeId" Type="Int16" />
- <Property Name="FuelTypeId" Type="Int16" />
- <Property Name="Name" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="Description" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Name="IsSampled" Type="Boolean" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsServiceType" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsServiceType" />
- <Property Name="IsConverted" Type="Boolean" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsMonitoringPointBaseData" ToRole="BemsFuelType" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistory15min">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CurrentValue" Type="Double" Nullable="false" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15min" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistoryDaily">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="DailyValue" Type="Double" Nullable="false" />
- <Property Name="MaxValue" Type="Double" />
- <Property Name="MinValue" Type="Double" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryDaily" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistoryHourly">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CurrentValue" Type="Double" Nullable="false" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistoryHourly" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointToAnlaysisType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="AnalysisType" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="AnalysisType" Type="Int32" Nullable="false" />
- <NavigationProperty Name="BemsAnalysisType" Relationship="Self.FK__BemsMonitoringPo__1372D2FE" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsAnalysisType" />
- <NavigationProperty Name="BemsFacilityType" Relationship="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPo__155B1B70" FromRole="BemsMonitoringPointToAnlaysisType" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <EntityType Name="BemsServiceType">
- <Key>
- <PropertyRef Name="ServiceTypeId" />
- </Key>
- <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="Self.FK__BemsMonitoringPointBaseData__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsMonitoringPointBaseData" />
- <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsServiceType" ToRole="BemsEnergyDaily" />
- </EntityType>
- <EntityType Name="CmAnnouncement">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnnouncementId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="AnnouncementId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="ReadCount" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmAnnouncement" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmAnnouncement" ToRole="CmFile" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmAnnouncement" ToRole="CmUser" />
- </EntityType>
- <EntityType Name="CmBuilding">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmBuilding" FromRole="CmBuilding" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmBuilding" ToRole="CmFloor" />
- <NavigationProperty Name="CmZone" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmBuilding" ToRole="CmZone" />
- <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmBuilding" ToRole="CmZoneTempHumiSet" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="SortOrderNo" Type="Int32" />
- <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmBuilding" ToRole="CmPatrolPos" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmBuilding" ToRole="CmSite" />
- <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="CmBuilding" ToRole="BemsEnergyDaily" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmBuilding" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmBusinessField">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmBusinessField" FromRole="CmBusinessField" ToRole="CmAnnouncement" />
- <NavigationProperty Name="FmsFacilityManual" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="CmBusinessField" ToRole="FmsFacilityManual" />
- <NavigationProperty Name="FmsLicense" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsLicense" />
- <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCarriedForward" />
- <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialCodeLocation" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialPurchaseRequest" />
- <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialWarehouse" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmBusinessField" FromRole="CmBusinessField" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmBusinessField" ToRole="CmUser" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterial" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsMaterialRelease" />
- <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsReport" />
- <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="CmBusinessField" ToRole="FmsDailyReport" />
- </EntityType>
- <EntityType Name="CmCompany">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="CompanyTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
- <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
- <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Homepage" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmCompanyType" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompany" ToRole="CmCompanyType" />
- <NavigationProperty Name="CmDepartment" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmCompany" ToRole="CmDepartment" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmCompany" ToRole="CmUser" />
- <NavigationProperty Name="FmsAccident" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="CmCompany" ToRole="FmsAccident" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmCompany" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmCompanyType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CompanyTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmCompany__345EC57D" FromRole="CmCompanyType" ToRole="CmCompany" />
- </EntityType>
- <EntityType Name="CmDepartment">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CompanyId" Type="Int32" Nullable="false" />
- <Property Name="DepartmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ShortName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="FaxNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmCompany" Relationship="Self.FK__CmDepartment__3552E9B6" FromRole="CmDepartment" ToRole="CmCompany" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmDepartment" ToRole="CmUser" />
- <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="CmDepartment" ToRole="FmsAccident" />
- </EntityType>
- <EntityType Name="CmFacilityFile">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="InsertedDate" Type="DateTime" Precision="3" />
- <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
- <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFacilityFile" ToRole="CmFile" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacilityFile" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmFacilityTempSet">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="T1" Type="Double" Nullable="false" />
- <Property Name="T2" Type="Double" Nullable="false" />
- <Property Name="T3" Type="Double" Nullable="false" />
- <Property Name="T4" Type="Double" Nullable="false" />
- <Property Name="T5" Type="Double" Nullable="false" />
- <Property Name="T6" Type="Double" Nullable="false" />
- <Property Name="T7" Type="Double" Nullable="false" />
- <Property Name="T8" Type="Double" Nullable="false" />
- <Property Name="T9" Type="Double" Nullable="false" />
- <Property Name="T10" Type="Double" Nullable="false" />
- <Property Name="T11" Type="Double" Nullable="false" />
- <Property Name="T12" Type="Double" Nullable="false" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmFacilityTempSet" ToRole="CmSite" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacilityTempSet" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmFile" m:HasStream="true" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FileId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="FileSize" Type="Int32" />
- <Property Name="CreatedDate" Type="DateTime" Precision="3" />
- <Property Name="ContentType" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmFile" FromRole="CmFile" ToRole="CmAnnouncement" />
- <NavigationProperty Name="CmFacilityFile" Relationship="Self.FK__CmFacilityFile__CmFile" FromRole="CmFile" ToRole="CmFacilityFile" />
- <NavigationProperty Name="CmFileCategory" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFile" ToRole="CmFileCategory" />
- <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="CmFile" ToRole="FmsDrawingHistory" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="CmFile" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="CmFile" ToRole="FmsWorkResultFile" />
- <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="CmFile" ToRole="FmsAccident" />
- <NavigationProperty Name="FmsAccident1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="CmFile" ToRole="FmsAccident" />
- <NavigationProperty Name="FmsAccident2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="CmFile" ToRole="FmsAccident" />
- <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="CmFile" ToRole="FmsConstruction" />
- <NavigationProperty Name="FmsConstruction1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="CmFile" ToRole="FmsConstruction" />
- <NavigationProperty Name="FmsConstruction2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="CmFile" ToRole="FmsConstruction" />
- <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="CmFile" ToRole="FmsManualHistory" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="CmFile" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmFile" ToRole="CmSite" />
- <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="CmFile" ToRole="FmsReport" />
- <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
- <NavigationProperty Name="FmsWorkResultCheckItem1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="CmFile" ToRole="FmsWorkResultCheckItem" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFile" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmFileCategory">
- <Key>
- <PropertyRef Name="FileCategoryId" />
- </Key>
- <Property Name="FileCategoryId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK__CmFile__CmFileCategory" FromRole="CmFileCategory" ToRole="CmFile" />
- </EntityType>
- <EntityType Name="CmFloor">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmFloor" FromRole="CmFloor" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmFloor__3CF40B7E" FromRole="CmFloor" ToRole="CmBuilding" />
- <NavigationProperty Name="CmZone" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmFloor" ToRole="CmZone" />
- <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmFloor" ToRole="CmZoneTempHumiSet" />
- <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmFloor" ToRole="CmPatrolPos" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFloor" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmHoliday">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayMonth" />
- <PropertyRef Name="HolidayDay" />
- <PropertyRef Name="IsLunar" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="HolidayMonth" Type="Int16" Nullable="false" />
- <Property Name="HolidayDay" Type="Int16" Nullable="false" />
- <Property Name="IsLunar" Type="Boolean" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmHoliday" ToRole="CmSite" />
- <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmHoliday" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmHolidayCustom">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayDate" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="HolidayDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="Name" Type="String" MaxLength="16" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmHolidayCustom" ToRole="CmSite" />
- <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmHolidayCustom" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmPosition">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PositionId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PositionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmPosition" ToRole="CmUser" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmPosition" ToRole="CmSite" />
- <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmPosition" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmUser">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="CompanyId" Type="Int32" />
- <Property Name="DepartmentId" Type="Int32" />
- <Property Name="PositionId" Type="Int32" />
- <Property Name="BusinessFieldId" Type="Int32" />
- <Property Name="UserGroupId" Type="Int32" />
- <Property Name="Name" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Passwd" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Birthday" Type="DateTime" Precision="3" />
- <Property Name="Lunar" Type="Boolean" />
- <Property Name="StateId" Type="Int32" />
- <Property Name="EmploymentType" Type="Int32" />
- <Property Name="EmploymentStatus" Type="Int32" />
- <Property Name="OfficePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="HomePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="MobilePhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="HomeZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
- <Property Name="HomeZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="false" />
- <Property Name="HomeAddress1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="HomeAdderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="EnterDate" Type="DateTime" Precision="3" />
- <Property Name="RetireDate" Type="DateTime" Precision="3" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Rfcsn" Type="String" MaxLength="30" FixedLength="false" Unicode="true" />
- <Property Name="PasswordUpdatedDate" Type="DateTime" Precision="3" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="IsBems" Type="Boolean" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="Certificated" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmAnnouncement" Relationship="Self.FK_CmAnnouncement_CmUser" FromRole="CmUser" ToRole="CmAnnouncement" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK_CmUser_CmBusinessField" FromRole="CmUser" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmCompany" Relationship="Self.FK_CmUser_CmCompany" FromRole="CmUser" ToRole="CmCompany" />
- <NavigationProperty Name="CmDepartment" Relationship="Self.FK_CmUser_CmDepartment" FromRole="CmUser" ToRole="CmDepartment" />
- <NavigationProperty Name="CmPosition" Relationship="Self.FK_CmUser_CmPosition" FromRole="CmUser" ToRole="CmPosition" />
- <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUser" ToRole="CmUserToLicense" />
- <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="CmUser" ToRole="FmsDrawingHistory" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="CmUser" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialPurchaseRequest" />
- <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="FmsMaterialStored1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="CmUser" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="CmUser" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkRequest1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="CmUser" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
- <NavigationProperty Name="FmsWorkResult1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="CmUser" ToRole="FmsWorkResult" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__CmUser" FromRole="CmUser" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="CmUserGroup" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUser" ToRole="CmUserGroup" />
- <NavigationProperty Name="CmUserLoginHistory" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUser" ToRole="CmUserLoginHistory" />
- <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="CmUser" ToRole="FmsConstructionEstimation" />
- <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="CmUser" ToRole="FmsManualHistory" />
- <NavigationProperty Name="FmsDailyCheckReport" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="CmUser" ToRole="FmsDailyCheckReport" />
- <NavigationProperty Name="FmsFacilityOperationReport" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="CmUser" ToRole="FmsFacilityOperationReport" />
- <Property Name="IsScheduleUser" Type="Boolean" />
- <NavigationProperty Name="FmsMonthlyReport" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="CmUser" ToRole="FmsMonthlyReport" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="CmUser" ToRole="FmsMaterialRelease" />
- <NavigationProperty Name="FmsMaterialRelease1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="CmUser" ToRole="FmsMaterialRelease" />
- <Property Name="IsSI" Type="Boolean" Nullable="true" />
- <Property Name="IsMobile" Type="Boolean" Nullable="true" />
- <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmUser" ToRole="CmPatrolGroupUser" />
- <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="CmUser" ToRole="FmsReport" />
- <NavigationProperty Name="FmsReport1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="CmUser" ToRole="FmsReport" />
- <NavigationProperty Name="FmsReport2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="CmUser" ToRole="FmsReport" />
- <Property Name="Devicetoken" Type="String" MaxLength="500" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
- <NavigationProperty Name="FmsEquipmentRentInfo1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="CmUser" ToRole="FmsEquipmentRentInfo" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmUser" ToRole="CmFacility" />
- <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmUser" ToRole="CmFacility" />
- <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmUser" ToRole="CmFacility" />
- <NavigationProperty Name="CmFacility3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmUser" ToRole="CmFacility" />
- <NavigationProperty Name="FmsDailyReport" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="CmUser" ToRole="FmsDailyReport" />
- <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="CmUser" ToRole="FmsEquipment" />
- </EntityType>
- <EntityType Name="CmUserGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="UserGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUser_CmUserGroup" FromRole="CmUserGroup" ToRole="CmUser" />
- <NavigationProperty Name="CmUserGroupPermission" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroup" ToRole="CmUserGroupPermission" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmUserGroup" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmUserGroupPermission">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- <PropertyRef Name="MenuId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="UserGroupId" Type="Int32" Nullable="false" />
- <Property Name="MenuId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="MenuPermission" Type="Int16" />
- <NavigationProperty Name="CmUserGroup" Relationship="Self.FK__CmUserGroupPermission__CmUserGroup" FromRole="CmUserGroupPermission" ToRole="CmUserGroup" />
- </EntityType>
- <EntityType Name="CmUserLoginHistory">
- <Key>
- <PropertyRef Name="LoginHistoryId" />
- </Key>
- <Property Name="LoginHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Type" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="TraceTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="IpAddress" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_CmUserLoginHistory_CmUser" FromRole="CmUserLoginHistory" ToRole="CmUser" />
- </EntityType>
- <EntityType Name="CmUserToLicense">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- <PropertyRef Name="LicenseId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="UserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="LicenseId" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__CmUserToLicense__CmUser" FromRole="CmUserToLicense" ToRole="CmUser" />
- <NavigationProperty Name="FmsLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="CmUserToLicense" ToRole="FmsLicense" />
- </EntityType>
- <EntityType Name="CmZone">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" />
- <Property Name="ZoneId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Target_temperature" Type="Double" />
- <Property Name="Target_humidity" Type="Int16" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="Self.FK__BemsMonitoringPoint__CmZone" FromRole="CmZone" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="CmBuilding" Relationship="Self.FK__CmZone__CmBuilding" FromRole="CmZone" ToRole="CmBuilding" />
- <NavigationProperty Name="CmFloor" Relationship="Self.FK__CmLocation__3DE82FB7" FromRole="CmZone" ToRole="CmFloor" />
- <NavigationProperty Name="CmZoneTempHumiSet" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZone" ToRole="CmZoneTempHumiSet" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmZone" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmZoneTempHumiSet">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" />
- <Property Name="ZoneId" Type="Int32" Nullable="false" />
- <Property Name="T1" Type="Double" Nullable="false" />
- <Property Name="T2" Type="Double" Nullable="false" />
- <Property Name="T3" Type="Double" Nullable="false" />
- <Property Name="T4" Type="Double" Nullable="false" />
- <Property Name="T5" Type="Double" Nullable="false" />
- <Property Name="T6" Type="Double" Nullable="false" />
- <Property Name="T7" Type="Double" Nullable="false" />
- <Property Name="T8" Type="Double" Nullable="false" />
- <Property Name="T9" Type="Double" Nullable="false" />
- <Property Name="T10" Type="Double" Nullable="false" />
- <Property Name="T11" Type="Double" Nullable="false" />
- <Property Name="T12" Type="Double" Nullable="false" />
- <Property Name="H1" Type="Int16" Nullable="false" />
- <Property Name="H2" Type="Int16" Nullable="false" />
- <Property Name="H3" Type="Int16" Nullable="false" />
- <Property Name="H4" Type="Int16" Nullable="false" />
- <Property Name="H5" Type="Int16" Nullable="false" />
- <Property Name="H6" Type="Int16" Nullable="false" />
- <Property Name="H7" Type="Int16" Nullable="false" />
- <Property Name="H8" Type="Int16" Nullable="false" />
- <Property Name="H9" Type="Int16" Nullable="false" />
- <Property Name="H10" Type="Int16" Nullable="false" />
- <Property Name="H11" Type="Int16" Nullable="false" />
- <Property Name="H12" Type="Int16" Nullable="false" />
- <NavigationProperty Name="CmBuilding" Relationship="Self.FK_CmZoneTempHumiSet_CmBuilding" FromRole="CmZoneTempHumiSet" ToRole="CmBuilding" />
- <NavigationProperty Name="CmFloor" Relationship="Self.FK_CmZoneTempHumiSet_CmFloor" FromRole="CmZoneTempHumiSet" ToRole="CmFloor" />
- <NavigationProperty Name="CmZone" Relationship="Self.FK_CmZoneTempHumiSet_CmZone" FromRole="CmZoneTempHumiSet" ToRole="CmZone" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmZoneTempHumiSet" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsAccident">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="AccidentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="StartDate" Type="DateTime" Precision="3" />
- <Property Name="EndDate" Type="DateTime" Precision="3" />
- <Property Name="AccidentTypeId" Type="Int32" Nullable="false" />
- <Property Name="DepartmentId" Type="Int32" />
- <Property Name="AccidentLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Name="Reason" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Action" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Damage" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Measurement" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="FileId1" Type="Int32" />
- <Property Name="FileId2" Type="Int32" />
- <Property Name="FileId3" Type="Int32" />
- <Property Name="CompanyId" Type="Int32" />
- <NavigationProperty Name="CmDepartment" Relationship="Self.FK_FmsAccident_CmDepartment" FromRole="FmsAccident" ToRole="CmDepartment" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsAccident_CmFile1" FromRole="FmsAccident" ToRole="CmFile" />
- <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsAccident_CmFile2" FromRole="FmsAccident" ToRole="CmFile" />
- <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsAccident_CmFile3" FromRole="FmsAccident" ToRole="CmFile" />
- <NavigationProperty Name="FmsAccidentCodeType" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccident" ToRole="FmsAccidentCodeType" />
- <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK_FmsAccident_CmCompany" FromRole="FmsAccident" ToRole="CmCompany" />
- </EntityType>
- <EntityType Name="FmsAccidentCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="AccidentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="FmsAccident" Relationship="Self.FK_FmsAccident_FmsAccidentCodeType" FromRole="FmsAccidentCodeType" ToRole="FmsAccident" />
- </EntityType>
- <EntityType Name="FmsBudget">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Year" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudget" ToRole="FmsBudgetDetail" />
- </EntityType>
- <EntityType Name="FmsBudgetCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BudgetClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BudgetClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="BudgetSeq" Type="String" MaxLength="6" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ParentBudgetClassId" Type="Int32" />
- <Property Name="Depth" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="YearlyBudget" Type="Double" />
- <Property Name="MonthlyBudget" Type="Double" />
- <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetCodeClass" ToRole="FmsBudgetDetail" />
- <Property Name="RootBudgetClassId" Type="Int32" />
- </EntityType>
- <EntityType Name="FmsCompanyEstimationCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyEstimationClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CompanyEstimationClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- </EntityType>
- <EntityType Name="FmsConstruction">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ConstructionId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
- <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="PartnerId" Type="Int32" Nullable="false" />
- <Property Name="ConstructLocation" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="CommitmentMan" Type="Int16" />
- <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="WeldWorkStartTime" Type="DateTime" Precision="3" />
- <Property Name="WeldWorkEndTime" Type="DateTime" Precision="3" />
- <Property Name="GasWorkStartTime" Type="DateTime" Precision="3" />
- <Property Name="GasWorkEndTime" Type="DateTime" Precision="3" />
- <Property Name="PaintWorkStartTime" Type="DateTime" Precision="3" />
- <Property Name="PaintWorkEndTime" Type="DateTime" Precision="3" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="ProgressId" Type="Int16" Nullable="false" />
- <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="UpdateDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ConstructionDetail" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="InOutStockName" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="FileId1" Type="Int32" />
- <Property Name="FileId2" Type="Int32" />
- <Property Name="FileId3" Type="Int32" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsConstruction_CmFile1" FromRole="FmsConstruction" ToRole="CmFile" />
- <NavigationProperty Name="CmFile1" Relationship="Self.FK_FmsConstruction_CmFile2" FromRole="FmsConstruction" ToRole="CmFile" />
- <NavigationProperty Name="CmFile2" Relationship="Self.FK_FmsConstruction_CmFile3" FromRole="FmsConstruction" ToRole="CmFile" />
- <NavigationProperty Name="FmsConstructionCodeProgress" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstruction" ToRole="FmsConstructionCodeProgress" />
- <NavigationProperty Name="FmsConstructionCodeType" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstruction" ToRole="FmsConstructionCodeType" />
- <NavigationProperty Name="FmsConstructionEstimation" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstruction" ToRole="FmsConstructionEstimation" />
- <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="FmsConstruction" ToRole="CmPartner" />
- </EntityType>
- <EntityType Name="FmsConstructionCodeProgress">
- <Key>
- <PropertyRef Name="ProgressId" />
- </Key>
- <Property Name="ProgressId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeProgress" FromRole="FmsConstructionCodeProgress" ToRole="FmsConstruction" />
- </EntityType>
- <EntityType Name="FmsConstructionCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ConstructionTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstruction_FmsConstructionCodeType" FromRole="FmsConstructionCodeType" ToRole="FmsConstruction" />
- </EntityType>
- <EntityType Name="FmsConstructionEstimation">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ConstructionId" Type="Int32" Nullable="false" />
- <Property Name="EstimateDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="EstimateUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Safety01_CleanUp" Type="Boolean" />
- <Property Name="Safety02_PersonalProtection" Type="Boolean" />
- <Property Name="Safety03_FireExtinguisher" Type="Boolean" />
- <Property Name="Safety04_HighPlaceWork" Type="Boolean" />
- <Property Name="Safety05_Weld" Type="Boolean" />
- <Property Name="Safety06_SurroundingCleanUp" Type="Boolean" />
- <Property Name="Safety07_SurroundingHealthy" Type="Boolean" />
- <Property Name="Safety08_Noise" Type="Boolean" />
- <Property Name="Safety09_FacilityProtection" Type="Boolean" />
- <Property Name="Safety10_Waste" Type="Boolean" />
- <Property Name="Safety11_Execution" Type="Boolean" />
- <Property Name="Safety12_Announcement" Type="Boolean" />
- <Property Name="Ability01_Compliance" Type="Boolean" />
- <Property Name="Ability02_Fault" Type="Boolean" />
- <Property Name="Ability03_SkillLevel" Type="Boolean" />
- <Property Name="Ability04_ProcessManagement" Type="Boolean" />
- <Property Name="Ability05_Collaboration" Type="Boolean" />
- <Property Name="Service01_Compliance" Type="Boolean" />
- <Property Name="Service02_SkillLevel" Type="Boolean" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="TotalEstimateScore" Type="Double" />
- <Property Name="SafetyScore" Type="Double" />
- <Property Name="AbilityScore" Type="Double" />
- <Property Name="ServiceScore" Type="Double" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsConstructionEstimation_CmUser" FromRole="FmsConstructionEstimation" ToRole="CmUser" />
- <NavigationProperty Name="FmsConstruction" Relationship="Self.FK_FmsConstructionEstimation_FmsConstruction" FromRole="FmsConstructionEstimation" ToRole="FmsConstruction" />
- </EntityType>
- <EntityType Name="FmsContractClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ContractClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContractClass" ToRole="FmsContract" />
- </EntityType>
- <EntityType Name="FmsContractMethod">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractMethodId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ContractMethodId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContractMethod" ToRole="FmsContract" />
- </EntityType>
- <EntityType Name="FmsContractType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ContractTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContractType" ToRole="FmsContract" />
- </EntityType>
- <EntityType Name="FmsDrawing">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="DrawingId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="DrawingNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="DrawingGroupId" Type="Int32" Nullable="false" />
- <Property Name="DrawingTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawing" ToRole="FmsDrawingCodeGroup" />
- <NavigationProperty Name="FmsDrawingCodeType" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawing" ToRole="FmsDrawingCodeType" />
- <NavigationProperty Name="FmsDrawingHistory" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawing" ToRole="FmsDrawingHistory" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="FmsDrawing" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsDrawingCodeGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingGroupId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="DrawingGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6E565CE8" FromRole="FmsDrawingCodeGroup" ToRole="FmsDrawing" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
- <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="FmsDrawingCodeGroup" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsDrawingCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="DrawingTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawing__6F4A8121" FromRole="FmsDrawingCodeType" ToRole="FmsDrawing" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
- <NavigationProperty Name="CmSite1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="FmsDrawingCodeType" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsDrawingHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- <PropertyRef Name="HistoryId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="DrawingId" Type="Int32" Nullable="false" />
- <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="RevisionNo" Type="Int32" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
- <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
- <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsDrawingHistor__04DA9AE4" FromRole="FmsDrawingHistory" ToRole="CmFile" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsDrawingHistory__CmUser" FromRole="FmsDrawingHistory" ToRole="CmUser" />
- <NavigationProperty Name="FmsDrawing" Relationship="Self.FK__FmsDrawingHistor__7132C993" FromRole="FmsDrawingHistory" ToRole="FmsDrawing" />
- </EntityType>
- <EntityType Name="FmsEquipmentCodeStateType">
- <Key>
- <PropertyRef Name="EquipmentStateTypeId" />
- </Key>
- <Property Name="EquipmentStateTypeId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsEquipmentHistory" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentHistory" />
- <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentCodeStateType" ToRole="FmsEquipmentRentInfo" />
- </EntityType>
- <EntityType Name="FmsEquipmentCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipmentCodeType" ToRole="FmsEquipment" />
- </EntityType>
- <EntityType Name="FmsEquipmentHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentHistoryId" />
- <PropertyRef Name="EquipmentId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="EquipmentHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="EquipmentId" Type="Int32" Nullable="false" />
- <Property Name="TotalStockCount" Type="Int32" />
- <Property Name="CurrentStockCount" Type="Int32" />
- <Property Name="RentCount" Type="Int32" />
- <Property Name="CurrentRentCount" Type="Int32" />
- <Property Name="ReturnCount" Type="Int32" />
- <Property Name="LossCount" Type="Int32" />
- <Property Name="StoredCount" Type="Int32" />
- <Property Name="EquipmentRentId" Type="Int32" />
- <Property Name="EquipmentStateTypeId" Type="Int16" />
- <Property Name="AddDate" Type="DateTime" Precision="3" />
- <Property Name="UpdateDate" Type="DateTime" Precision="3" />
- <Property Name="IsReturned" Type="Boolean" />
- <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentCodeStateType" />
- <NavigationProperty Name="FmsEquipmentRentInfo" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentHistory" ToRole="FmsEquipmentRentInfo" />
- <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipmentHistory" ToRole="FmsEquipment" />
- </EntityType>
- <EntityType Name="FmsFacilityCheckItem">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="CheckItemId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
- <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsYesNoResult" Type="Boolean" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeCycleUnit" />
- <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkCodeType" />
- <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsFacilityCheckItem" ToRole="FmsWorkResultCheckItem" />
- </EntityType>
- <EntityType Name="FmsFacilityCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ParentFacilityClassId" Type="Int32" />
- <Property Name="Depth" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Abbreviation" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass" ToRole="FmsFacilityCodeClass1" />
- <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass" FromRole="FmsFacilityCodeClass1" ToRole="FmsFacilityCodeClass" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="FmsFacilityCodeClass" ToRole="CmSite" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
- <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
- <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="FmsFacilityCodeClass" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsFacilityManual">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="ManualId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Description" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Keyword" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__CmFacilityManual__7BE56230" FromRole="FmsFacilityManual" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="FmsFacilityManual" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsFacilityOperationItem">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ItemId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="ItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="ResultUnit" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="PointId" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="SystemId" Type="Int32" />
- <Property Name="EnergyCode" Type="Boolean" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="SortOrderNo" Type="Int32" />
- <Property Name="InsertedDate" Type="DateTime" Precision="3" />
- <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
- <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="FmsFacilityOperationItem" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsLicense">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LicenseId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="LicenseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IssuingOffice" Type="String" MaxLength="52" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" />
- <Property Name="EducationalInstitute" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
- <Property Name="Note" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsLicense__CmBusinessField" FromRole="FmsLicense" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUserToLicense" Relationship="Self.FK__CmUserToLicense__FmsLicense" FromRole="FmsLicense" ToRole="CmUserToLicense" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="FmsLicense" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsManual">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ManualId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ManualNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ManualTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsManualType" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManual" ToRole="FmsManualType" />
- <NavigationProperty Name="FmsManualHistory" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManual" ToRole="FmsManualHistory" />
- </EntityType>
- <EntityType Name="FmsManualHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- <PropertyRef Name="HistoryId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ManualId" Type="Int32" Nullable="false" />
- <Property Name="HistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="RevisionNo" Type="Int32" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="Description" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
- <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
- <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK_FmsManualHistory_CmFile" FromRole="FmsManualHistory" ToRole="CmFile" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK_FmsManualHistory_CmUser" FromRole="FmsManualHistory" ToRole="CmUser" />
- <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManualHistory_FmsManual" FromRole="FmsManualHistory" ToRole="FmsManual" />
- </EntityType>
- <EntityType Name="FmsManualType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ManualTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsManual" Relationship="Self.FK_FmsManual_FmsManualType" FromRole="FmsManualType" ToRole="FmsManual" />
- </EntityType>
- <EntityType Name="FmsMaterialCarriedForward">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ClosedDate" />
- <PropertyRef Name="BusinessFieldId" />
- <PropertyRef Name="WarehouseId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ClosedDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="WarehouseId" Type="Int32" Nullable="false" />
- <Property Name="MaterialId" Type="Int32" Nullable="false" />
- <Property Name="StockCount" Type="Int32" Nullable="false" />
- <Property Name="StockTotalCost" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCarriedForward__CmBusinessField" FromRole="FmsMaterialCarriedForward" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="FmsMaterialCarriedForward" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeAdjustmentType">
- <Key>
- <PropertyRef Name="AdjustmentTypeId" />
- </Key>
- <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialCodeAdjustmentType" ToRole="FmsMaterialRelease" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="MaterialClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ParentMaterialClassId" Type="Int32" />
- <Property Name="Depth" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="32" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterialCodeClass1" />
- <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass" FromRole="FmsMaterialCodeClass1" ToRole="FmsMaterialCodeClass" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
- <NavigationProperty Name="FmsMaterial1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
- <NavigationProperty Name="FmsMaterial2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterialCodeClass" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="FmsMaterialCodeClass" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeLocation">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LocationId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="LocationId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialCodeLocation__CmBusinessField" FromRole="FmsMaterialCodeLocation" ToRole="CmBusinessField" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterialCodeLocation" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="FmsMaterialCodeLocation" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeProgress">
- <Key>
- <PropertyRef Name="ProgressId" />
- </Key>
- <Property Name="ProgressId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialCodeProgress" ToRole="FmsMaterialPurchaseRequest" />
- </EntityType>
- <EntityType Name="FmsMaterialCodePurchaseType">
- <Key>
- <PropertyRef Name="PurchaseTypeId" />
- </Key>
- <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialCodePurchaseType" ToRole="FmsMaterialPurchaseRequest" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeReleaseType">
- <Key>
- <PropertyRef Name="ReleaseTypeId" />
- </Key>
- <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialCodeReleaseType" ToRole="FmsMaterialRelease" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="MaterialTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Nickname" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterialCodeType" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="FmsMaterialCodeType" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseOrder">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
- <Property Name="TradeCompanyId" Type="Int32" />
- <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
- <Property Name="StoredDueDate" Type="DateTime" Precision="3" />
- <Property Name="FileId" Type="Int32" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialOrder__CmBusinessField" FromRole="FmsMaterialPurchaseOrder" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsMaterialPurchaseOrder__CmFile" FromRole="FmsMaterialPurchaseOrder" ToRole="CmFile" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialOrder__CmUser" FromRole="FmsMaterialPurchaseOrder" ToRole="CmUser" />
- <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialTradeCompany" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseRequest" />
- <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialPurchaseOrderMaterial" />
- <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrder" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="FmsMaterialPurchaseOrder" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseOrderMaterial">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="PurchaseOrderId" Type="Int32" Nullable="false" />
- <Property Name="MaterialId" Type="Int32" Nullable="false" />
- <Property Name="MaterialCount" Type="Int32" Nullable="false" />
- <Property Name="UnitCost" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseOrderMaterial" ToRole="FmsMaterial" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseRequest">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="PurchaseTypeId" Type="Int16" Nullable="false" />
- <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="PurchaseHopeDate" Type="DateTime" Precision="3" />
- <Property Name="Title" Type="String" MaxLength="256" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Reason" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ProgressId" Type="Int16" Nullable="false" />
- <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
- <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField" FromRole="FmsMaterialPurchaseRequest" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" FromRole="FmsMaterialPurchaseRequest" ToRole="CmUser" />
- <NavigationProperty Name="FmsMaterialCodeProgress" Relationship="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodeProgress" />
- <NavigationProperty Name="FmsMaterialCodePurchaseType" Relationship="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialCodePurchaseType" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequest" ToRole="FmsMaterialPurchaseRequestMaterial" />
- <Property Name="bSameOrder" Type="Boolean" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="FmsMaterialPurchaseRequest" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseRequestMaterial">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="PurchaseRequestId" Type="Int32" Nullable="false" />
- <Property Name="MaterialId" Type="Int32" Nullable="false" />
- <Property Name="MaterialCount" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterialPurchaseRequest" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterialPurchaseRequestMaterial" ToRole="FmsMaterial" />
- </EntityType>
- <EntityType Name="FmsMaterialStored">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialStoredId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="StoredDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="MaterialStoredId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="PurchaseOrderId" Type="Int32" />
- <Property Name="WarehouseId" Type="Int32" Nullable="false" />
- <Property Name="MaterialId" Type="Int32" Nullable="false" />
- <Property Name="StoredCount" Type="Int32" Nullable="false" />
- <Property Name="RemainStoredCount" Type="Int32" Nullable="false" />
- <Property Name="UnitCost" Type="Int32" Nullable="false" />
- <Property Name="StockCount" Type="Int32" Nullable="false" />
- <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="StoredUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ApprovalDate" Type="DateTime" Precision="3" />
- <Property Name="ApprovalUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="IsApproval" Type="Boolean" Nullable="false" />
- <Property Name="LocationInWarehouse" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialStored__CmBusinessField" FromRole="FmsMaterialStored" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId" FromRole="FmsMaterialStored" ToRole="CmUser" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder" FromRole="FmsMaterialStored" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterialWarehouse" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialStored" ToRole="FmsMaterialWarehouse" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterialStored" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="FmsMaterialStored" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialTradeCompany">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="TradeCompanyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="RepresentativeName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
- <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
- <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="HomepageUri" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
- <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterialTradeCompany" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="FmsMaterialTradeCompany" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialWarehouse">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="WarehouseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsMaterialWarehouse__CmBusinessField" FromRole="FmsMaterialWarehouse" ToRole="CmBusinessField" />
- <NavigationProperty Name="FmsMaterialStored" Relationship="Self.FK_FmsMaterialStored_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="FmsMaterialWarehouse" ToRole="CmSite" />
- <NavigationProperty Name="FmsEquipment" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsMaterialWarehouse" ToRole="FmsEquipment" />
- </EntityType>
- <EntityType Name="FmsPaymentType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PaymentTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PaymentTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsPaymentType" ToRole="FmsContract" />
- </EntityType>
- <EntityType Name="FmsWorkCodeCauseClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CauseClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CauseClassId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ParentId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkCodeCauseClass" ToRole="FmsWorkResult" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="FmsWorkCodeCauseClass" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsWorkCodeCycleUnit">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsFacilityCheckItem" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkCodeCycleUnit" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="FmsWorkCodeCycleUnit" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsWorkCodeEmergency">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EmergencyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="EmergencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkCodeEmergency" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="FmsWorkCodeEmergency" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsWorkCodeHolidayWorkType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayWorkTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkCodeHolidayWorkType" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="FmsWorkCodeHolidayWorkType" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsWorkCodeLegalInspectionAgency">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InspectionAgencyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="InspectionAgencyId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="FmsWorkCodeLegalInspectionAgency" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsWorkCodeProgress">
- <Key>
- <PropertyRef Name="WorkProgressId" />
- </Key>
- <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkCodeProgress" ToRole="FmsWorkRequest" />
- </EntityType>
- <EntityType Name="FmsWorkCodeType">
- <Key>
- <PropertyRef Name="WorkTypeId" />
- </Key>
- <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsFacilityCheckItem" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkCodeType" ToRole="FmsWorkSchedule" />
- </EntityType>
- <EntityType Name="FmsWorkOrder">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="EmergencyId" Type="Int32" />
- <Property Name="OrderUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Content" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkOrder__CmBusinessField" FromRole="FmsWorkOrder" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkOrder__CmUser" FromRole="FmsWorkOrder" ToRole="CmUser" />
- <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency" FromRole="FmsWorkOrder" ToRole="FmsWorkCodeEmergency" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkOrder" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkOrderToFacility" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkOrder" ToRole="FmsWorkResult" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="FmsWorkOrder" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsWorkOrderToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder" FromRole="FmsWorkOrderToFacility" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="FmsWorkOrderToFacility" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsWorkRequest">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="WorkScheduleId" Type="Int32" />
- <Property Name="WorkProgressId" Type="Int32" Nullable="false" />
- <Property Name="Title" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="RequestUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="RequestDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="StartWorkDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="RejectUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="RejectDate" Type="DateTime" Precision="3" />
- <Property Name="RejectReason" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
- <Property Name="InspectionAgencyId" Type="Int32" />
- <NavigationProperty Name="CmBusinessField" Relationship="Self.FK__FmsWorkRequest__CmBusinessField" FromRole="FmsWorkRequest" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId" FromRole="FmsWorkRequest" ToRole="CmUser" />
- <NavigationProperty Name="FmsWorkCodeProgress" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeProgress" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeProgress" />
- <NavigationProperty Name="FmsWorkCodeType" Relationship="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType" FromRole="FmsWorkRequest" ToRole="FmsWorkCodeType" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkOrder__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkRequest" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkRequestToFacility" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkRequest" ToRole="FmsWorkResult" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="FmsWorkRequest" ToRole="CmSite" />
- <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="FmsWorkRequest" ToRole="CmPartner" />
- </EntityType>
- <EntityType Name="FmsWorkRequestToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest" FromRole="FmsWorkRequestToFacility" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="FmsWorkRequestToFacility" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsWorkResult">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="WorkerUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CauseClassId" Type="Int32" />
- <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
- <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="CmUser" Relationship="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId" FromRole="FmsWorkResult" ToRole="CmUser" />
- <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass" FromRole="FmsWorkResult" ToRole="FmsWorkCodeCauseClass" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="Self.FK__FmsWorkResult__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="Self.FK__FmsWorkResult__FmsWorkRequest" FromRole="FmsWorkResult" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItem" />
- <NavigationProperty Name="FmsWorkResultFile" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultFile" />
- <NavigationProperty Name="FmsWorkResultLaw" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultLaw" />
- <NavigationProperty Name="FmsWorkResultToFacility" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResult" ToRole="FmsWorkResultToFacility" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsMaterialRelease" />
- <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResult" ToRole="FmsWorkResultCheckItemMaterial" />
- <Property Name="ConfirmDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="FmsWorkResultCheckItem">
- <Key>
- <PropertyRef Name="CheckItemId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" />
- <Property Name="CheckItemId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="BoolResult" Type="Boolean" />
- <Property Name="TextResult" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="CheckDate" Type="DateTime" Nullable="false" Precision="3" />
- <NavigationProperty Name="FmsFacilityCheckItem" Relationship="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsFacilityCheckItem" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultCheckItem__FmsWorkResult" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResult" />
- <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItem" ToRole="FmsWorkResultCheckItemMaterial" />
- <Property Name="FileId1" Type="Int32" />
- <Property Name="FileId2" Type="Int32" />
- <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
- <NavigationProperty Name="CmFile1" Relationship="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1" FromRole="FmsWorkResultCheckItem" ToRole="CmFile" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="FmsWorkResultCheckItem" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsWorkResultCheckItemMaterial">
- <Key>
- <PropertyRef Name="CheckItemMaterialId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="CheckItemId" Type="Int32" Nullable="false" />
- <Property Name="CheckItemMaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="MaterialId" Type="Int32" Nullable="false" />
- <Property Name="MaterialCount" Type="Int32" Nullable="false" />
- <Property Name="MaterialCode" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResultCheckItem" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsMaterial" />
- <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" FromRole="FmsWorkResultCheckItemMaterial" ToRole="FmsWorkResult" />
- </EntityType>
- <EntityType Name="FmsWorkResultFile">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="FileId" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmFile" Relationship="Self.FK__FmsWorkResultFile__CmFile" FromRole="FmsWorkResultFile" ToRole="CmFile" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultFile__FmsWorkResult" FromRole="FmsWorkResultFile" ToRole="FmsWorkResult" />
- </EntityType>
- <EntityType Name="FmsWorkResultLaw">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="CertificationNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="CheckCommission" Type="Decimal" Precision="10" Scale="0" />
- <Property Name="CheckResult" Type="Boolean" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultLaw__FmsWorkResult" FromRole="FmsWorkResultLaw" ToRole="FmsWorkResult" />
- </EntityType>
- <EntityType Name="FmsWorkResultToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsWorkResult" Relationship="Self.FK__FmsWorkResultToFacility__FmsWorkOrder" FromRole="FmsWorkResultToFacility" ToRole="FmsWorkResult" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="FmsWorkResultToFacility" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="FmsWorkScheduleToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkScheduleId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkScheduleToFacility" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="FmsWorkScheduleToFacility" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="principal_id" Type="Int32" Nullable="false" />
- <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="version" Type="Int32" />
- <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
- </EntityType>
- <Association Name="FK__BemsMonitoringPo__1372D2FE">
- <End Role="BemsAnalysisType" Type="Self.BemsAnalysisType" Multiplicity="1" />
- <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsAnalysisType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnalysisType" />
- </Principal>
- <Dependent Role="BemsMonitoringPointToAnlaysisType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnalysisType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsControlPointHistory_BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsControlPointHistory">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsControlPointHistory_BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsControlPointHistory" Type="Self.BemsControlPointHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsControlPointHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointBaseData__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointBaseData">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistory15min">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistoryDaily">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistoryHourly">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointToAnlaysisType">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsMonitoringPoint_BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFormula__BemsFormulaBase">
- <End Role="BemsFormulaBase" Type="Self.BemsFormulaBase" Multiplicity="1" />
- <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFormulaBase">
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FormulaId" />
- </Principal>
- <Dependent Role="BemsFormula">
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FormulaId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFormulaParameter__BemsFormula">
- <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
- <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFormula">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Principal>
- <Dependent Role="BemsFormulaParameter">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFormulaParameter__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsFormulaParameter" Type="Self.BemsFormulaParameter" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsFormulaParameter">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ParameterFacilityCode" />
- <PropertyRef Name="ParameterPropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFormulaTableValue__BemsFormulaTable">
- <End Role="BemsFormulaTable" Type="Self.BemsFormulaTable" Multiplicity="1" />
- <End Role="BemsFormulaTableValue" Type="Self.BemsFormulaTableValue" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFormulaTable">
- <PropertyRef Name="TableId" />
- </Principal>
- <Dependent Role="BemsFormulaTableValue">
- <PropertyRef Name="TableId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPo__155B1B70">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointToAnlaysisType" Type="Self.BemsMonitoringPointToAnlaysisType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointToAnlaysisType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__BemsServiceType">
- <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsServiceType">
- <PropertyRef Name="ServiceTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="ServiceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__CmBuilding">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__CmFloor">
- <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__CmZone">
- <End Role="CmZone" Type="Self.CmZone" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistory15min" Type="Self.BemsMonitoringPointHistory15min" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistory15min">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistoryDaily" Type="Self.BemsMonitoringPointHistoryDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistoryDaily">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistoryHourly" Type="Self.BemsMonitoringPointHistoryHourly" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistoryHourly">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointBaseData__BemsServiceType">
- <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="0..1" />
- <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsServiceType">
- <PropertyRef Name="ServiceTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointBaseData">
- <PropertyRef Name="ServiceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmAnnouncement_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="CmAnnouncement">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmAnnouncement_CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="CmAnnouncement">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmAnnouncement_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="CmAnnouncement" Type="Self.CmAnnouncement" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmAnnouncement">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFloor__3CF40B7E">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
- <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmZone__CmBuilding">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
- <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmZoneTempHumiSet_CmBuilding">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
- <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmZoneTempHumiSet">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacilityManual__7BE56230">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsFacilityManual" Type="Self.FmsFacilityManual" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsFacilityManual">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsLicense__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
- <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsLicense">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCarriedForward__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialCarriedForward" Type="Self.FmsMaterialCarriedForward" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialCarriedForward">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeLocation__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeLocation">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialOrder__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchasingRequest__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialStored__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialWarehouse__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmCompany__345EC57D">
- <End Role="CmCompanyType" Type="Self.CmCompanyType" Multiplicity="1" />
- <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmCompanyType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyTypeId" />
- </Principal>
- <Dependent Role="CmCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmDepartment__3552E9B6">
- <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="1" />
- <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Principal>
- <Dependent Role="CmDepartment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmCompany">
- <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmDepartment">
- <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmDepartment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_CmDepartment">
- <End Role="CmDepartment" Type="Self.CmDepartment" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmDepartment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacilityFile__CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
- <End Role="CmFacilityFile" Type="Self.CmFacilityFile" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="CmFacilityFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFile__CmFileCategory">
- <End Role="CmFileCategory" Type="Self.CmFileCategory" Multiplicity="1" />
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFileCategory">
- <PropertyRef Name="FileCategoryId" />
- </Principal>
- <Dependent Role="CmFile">
- <PropertyRef Name="FileCategoryId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawingHistor__04DA9AE4">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsDrawingHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchaseOrder__CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultFile__CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="1" />
- <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsWorkResultFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_CmFile1">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId1" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_CmFile2">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId2" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_CmFile3">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId3" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_CmFile1">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId1" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_CmFile2">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId2" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_CmFile3">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId3" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsManualHistory_CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsManualHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmLocation__3DE82FB7">
- <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
- <End Role="CmZone" Type="Self.CmZone" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmZoneTempHumiSet_CmFloor">
- <End Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
- <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="CmZoneTempHumiSet">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmPosition">
- <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPosition">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PositionId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PositionId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserToLicense__CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmUserToLicense">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawingHistory__CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsDrawingHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UpdatedUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialOrder__CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="OrderUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RequestUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ApprovalUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialStored__CmUser_AsStoredUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="StoredUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ApprovalUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="OrderUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__CmUser_AsRequestUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RequestUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RejectUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__CmUser_AsWorkerUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkerUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConfirmedUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUser_CmUserGroup">
- <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="0..1" />
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUserGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Principal>
- <Dependent Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmUserLoginHistory_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="CmUserLoginHistory" Type="Self.CmUserLoginHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmUserLoginHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstructionEstimation_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsConstructionEstimation">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EstimateUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsManualHistory_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsManualHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UpdatedUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserGroupPermission__CmUserGroup">
- <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="CmUserGroupPermission" Type="Self.CmUserGroupPermission" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUserGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Principal>
- <Dependent Role="CmUserGroupPermission">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserToLicense__FmsLicense">
- <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="1" />
- <End Role="CmUserToLicense" Type="Self.CmUserToLicense" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsLicense">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LicenseId" />
- </Principal>
- <Dependent Role="CmUserToLicense">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LicenseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmZoneTempHumiSet_CmZone">
- <End Role="CmZone" Type="Self.CmZone" Multiplicity="1" />
- <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Principal>
- <Dependent Role="CmZoneTempHumiSet">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsAccident_FmsAccidentCodeType">
- <End Role="FmsAccidentCodeType" Type="Self.FmsAccidentCodeType" Multiplicity="1" />
- <End Role="FmsAccident" Type="Self.FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsAccidentCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentTypeId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_FmsConstructionCodeProgress">
- <End Role="FmsConstructionCodeProgress" Type="Self.FmsConstructionCodeProgress" Multiplicity="1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsConstructionCodeProgress">
- <PropertyRef Name="ProgressId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="ProgressId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_FmsConstructionCodeType">
- <End Role="FmsConstructionCodeType" Type="Self.FmsConstructionCodeType" Multiplicity="1" />
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsConstructionCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionTypeId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstructionEstimation_FmsConstruction">
- <End Role="FmsConstruction" Type="Self.FmsConstruction" Multiplicity="1" />
- <End Role="FmsConstructionEstimation" Type="Self.FmsConstructionEstimation" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Principal>
- <Dependent Role="FmsConstructionEstimation">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawing__6E565CE8">
- <End Role="FmsDrawingCodeGroup" Type="Self.FmsDrawingCodeGroup" Multiplicity="1" />
- <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsDrawingCodeGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingGroupId" />
- </Principal>
- <Dependent Role="FmsDrawing">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingGroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawing__6F4A8121">
- <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="1" />
- <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsDrawingCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingTypeId" />
- </Principal>
- <Dependent Role="FmsDrawing">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawingHistor__7132C993">
- <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1" />
- <End Role="FmsDrawingHistory" Type="Self.FmsDrawingHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsDrawing">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- </Principal>
- <Dependent Role="FmsDrawingHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
- <End Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
- <End Role="FmsEquipmentHistory" Type="Self.FmsEquipmentHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipmentCodeStateType">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Principal>
- <Dependent Role="FmsEquipmentHistory">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
- <End Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
- <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeCycleUnit">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Principal>
- <Dependent Role="FmsFacilityCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
- <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeType">
- <PropertyRef Name="WorkTypeId" />
- </Principal>
- <Dependent Role="FmsFacilityCheckItem">
- <PropertyRef Name="WorkTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
- <End Role="FmsFacilityCheckItem" Type="Self.FmsFacilityCheckItem" Multiplicity="0..1" />
- <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsFacilityCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="CheckItemId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="CheckItemId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
- <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="0..1" />
- <End Role="FmsFacilityCodeClass1" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsFacilityCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityClassId" />
- </Principal>
- <Dependent Role="FmsFacilityCodeClass1">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ParentFacilityClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsManual_FmsManualType">
- <End Role="FmsManualType" Type="Self.FmsManualType" Multiplicity="1" />
- <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsManualType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualTypeId" />
- </Principal>
- <Dependent Role="FmsManual">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsManualHistory_FmsManual">
- <End Role="FmsManual" Type="Self.FmsManual" Multiplicity="1" />
- <End Role="FmsManualHistory" Type="Self.FmsManualHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsManual">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- </Principal>
- <Dependent Role="FmsManualHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
- <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Role="FmsMaterialCodeClass1" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeClass1">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ParentMaterialClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
- <End Role="FmsMaterialCodeProgress" Type="Self.FmsMaterialCodeProgress" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeProgress">
- <PropertyRef Name="ProgressId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="ProgressId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
- <End Role="FmsMaterialCodePurchaseType" Type="Self.FmsMaterialCodePurchaseType" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodePurchaseType">
- <PropertyRef Name="PurchaseTypeId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="PurchaseTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
- <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialTradeCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrderMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="0..1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequestMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialStored_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__FmsWorkCodeCauseClass">
- <End Role="FmsWorkCodeCauseClass" Type="Self.FmsWorkCodeCauseClass" Multiplicity="0..1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeCauseClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CauseClassId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CauseClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__FmsWorkCodeEmergency">
- <End Role="FmsWorkCodeEmergency" Type="Self.FmsWorkCodeEmergency" Multiplicity="0..1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeEmergency">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EmergencyId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EmergencyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__FmsWorkCodeProgress">
- <End Role="FmsWorkCodeProgress" Type="Self.FmsWorkCodeProgress" Multiplicity="1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeProgress">
- <PropertyRef Name="WorkProgressId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="WorkProgressId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeType">
- <PropertyRef Name="WorkTypeId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="WorkTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__FmsWorkRequest">
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrderToFacility__FmsWorkOrder">
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkOrderToFacility" Type="Self.FmsWorkOrderToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkOrderToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__FmsWorkOrder">
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequestToFacility__FmsWorkRequest">
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkRequestToFacility" Type="Self.FmsWorkRequestToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkRequestToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResult__FmsWorkRequest">
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="1" />
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultCheckItem__FmsWorkResult">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultFile__FmsWorkResult">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
- <End Role="FmsWorkResultFile" Type="Self.FmsWorkResultFile" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultLaw__FmsWorkResult">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
- <End Role="FmsWorkResultLaw" Type="Self.FmsWorkResultLaw" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultLaw">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultToFacility__FmsWorkOrder">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkResultToFacility" Type="Self.FmsWorkResultToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
- <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResultCheckItem">
- <PropertyRef Name="CheckItemId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItemMaterial">
- <PropertyRef Name="CheckItemId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="iBemsEntities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" />
- <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" />
- <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" />
- <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" />
- <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" />
- <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" />
- <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" />
- <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" />
- <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" />
- <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" />
- <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" />
- <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" />
- <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" />
- <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" />
- <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" />
- <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" />
- <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" />
- <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" />
- <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" />
- <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" />
- <EntitySet Name="CmCompany" EntityType="Self.CmCompany" />
- <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" />
- <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" />
- <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" />
- <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" />
- <EntitySet Name="CmFile" EntityType="Self.CmFile" />
- <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" />
- <EntitySet Name="CmFloor" EntityType="Self.CmFloor" />
- <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" />
- <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" />
- <EntitySet Name="CmPosition" EntityType="Self.CmPosition" />
- <EntitySet Name="CmUser" EntityType="Self.CmUser" />
- <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" />
- <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" />
- <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" />
- <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" />
- <EntitySet Name="CmZone" EntityType="Self.CmZone" />
- <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" />
- <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" />
- <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" />
- <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" />
- <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" />
- <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" />
- <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" />
- <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" />
- <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" />
- <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" />
- <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" />
- <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" />
- <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" />
- <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" />
- <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" />
- <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" />
- <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" />
- <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" />
- <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" />
- <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" />
- <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" />
- <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" />
- <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" />
- <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" />
- <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" />
- <EntitySet Name="FmsManual" EntityType="Self.FmsManual" />
- <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" />
- <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" />
- <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" />
- <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" />
- <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" />
- <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" />
- <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" />
- <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" />
- <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" />
- <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" />
- <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" />
- <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" />
- <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" />
- <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" />
- <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" />
- <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" />
- <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" />
- <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" />
- <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" />
- <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" />
- <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" />
- <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" />
- <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" />
- <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" />
- <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" />
- <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" />
- <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" />
- <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" />
- <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" />
- <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" />
- <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" />
- <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" />
- <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" />
- <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" />
- <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" />
- <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
- <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
- <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
- <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsControlPointHistory_BemsFacilityType" Association="Self.FK_BemsControlPointHistory_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsControlPointHistory_BemsMonitoringPoint" Association="Self.FK_BemsControlPointHistory_BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsControlPointHistory" EntitySet="BemsControlPointHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType" Association="Self.FK__BemsMonitoringPointToAnlaysisType__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsMonitoringPoint_BemsFacilityType" Association="Self.FK_BemsMonitoringPoint_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFormula__BemsFormulaBase" Association="Self.FK__BemsFormula__BemsFormulaBase">
- <End Role="BemsFormulaBase" EntitySet="BemsFormulaBase" />
- <End Role="BemsFormula" EntitySet="BemsFormula" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFormulaParameter__BemsFormula" Association="Self.FK__BemsFormulaParameter__BemsFormula">
- <End Role="BemsFormula" EntitySet="BemsFormula" />
- <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFormulaParameter__BemsMonitoringPoint" Association="Self.FK__BemsFormulaParameter__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
- <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
- <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPo__155B1B70" Association="Self.FK__BemsMonitoringPo__155B1B70">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__BemsServiceType" Association="Self.FK__BemsMonitoringPoint__BemsServiceType">
- <End Role="BemsServiceType" EntitySet="BemsServiceType" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__CmBuilding" Association="Self.FK__BemsMonitoringPoint__CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__CmFloor" Association="Self.FK__BemsMonitoringPoint__CmFloor">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__CmZone" Association="Self.FK__BemsMonitoringPoint__CmZone">
- <End Role="CmZone" EntitySet="CmZone" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15min__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointHistoryDaily" EntitySet="BemsMonitoringPointHistoryDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointHistoryHourly" EntitySet="BemsMonitoringPointHistoryHourly" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsServiceType" Association="Self.FK__BemsMonitoringPointBaseData__BemsServiceType">
- <End Role="BemsServiceType" EntitySet="BemsServiceType" />
- <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
- </AssociationSet>
- <AssociationSet Name="FK_CmAnnouncement_CmBusinessField" Association="Self.FK_CmAnnouncement_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
- </AssociationSet>
- <AssociationSet Name="FK_CmAnnouncement_CmFile" Association="Self.FK_CmAnnouncement_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
- </AssociationSet>
- <AssociationSet Name="FK_CmAnnouncement_CmUser" Association="Self.FK_CmAnnouncement_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmAnnouncement" EntitySet="CmAnnouncement" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFloor__3CF40B7E" Association="Self.FK__CmFloor__3CF40B7E">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmFloor" EntitySet="CmFloor" />
- </AssociationSet>
- <AssociationSet Name="FK__CmZone__CmBuilding" Association="Self.FK__CmZone__CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmZone" EntitySet="CmZone" />
- </AssociationSet>
- <AssociationSet Name="FK_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacilityManual__7BE56230" Association="Self.FK__CmFacilityManual__7BE56230">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsLicense__CmBusinessField" Association="Self.FK__FmsLicense__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsLicense" EntitySet="FmsLicense" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCarriedForward__CmBusinessField" Association="Self.FK__FmsMaterialCarriedForward__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialOrder__CmBusinessField" Association="Self.FK__FmsMaterialOrder__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialWarehouse__CmBusinessField" Association="Self.FK__FmsMaterialWarehouse__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__CmBusinessField" Association="Self.FK__FmsWorkOrder__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmBusinessField" Association="Self.FK_CmUser_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK__CmCompany__345EC57D" Association="Self.FK__CmCompany__345EC57D">
- <End Role="CmCompanyType" EntitySet="CmCompanyType" />
- <End Role="CmCompany" EntitySet="CmCompany" />
- </AssociationSet>
- <AssociationSet Name="FK__CmDepartment__3552E9B6" Association="Self.FK__CmDepartment__3552E9B6">
- <End Role="CmCompany" EntitySet="CmCompany" />
- <End Role="CmDepartment" EntitySet="CmDepartment" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmCompany" Association="Self.FK_CmUser_CmCompany">
- <End Role="CmCompany" EntitySet="CmCompany" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmDepartment" Association="Self.FK_CmUser_CmDepartment">
- <End Role="CmDepartment" EntitySet="CmDepartment" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_CmDepartment" Association="Self.FK_FmsAccident_CmDepartment">
- <End Role="CmDepartment" EntitySet="CmDepartment" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacilityFile__CmFile" Association="Self.FK__CmFacilityFile__CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
- <End Role="CmFileCategory" EntitySet="CmFileCategory" />
- <End Role="CmFile" EntitySet="CmFile" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawingHistor__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultFile__CmFile" Association="Self.FK__FmsWorkResultFile__CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_CmFile1" Association="Self.FK_FmsAccident_CmFile1">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_CmFile2" Association="Self.FK_FmsAccident_CmFile2">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_CmFile3" Association="Self.FK_FmsAccident_CmFile3">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_CmFile1" Association="Self.FK_FmsConstruction_CmFile1">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_CmFile2" Association="Self.FK_FmsConstruction_CmFile2">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_CmFile3" Association="Self.FK_FmsConstruction_CmFile3">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsManualHistory_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__CmLocation__3DE82FB7" Association="Self.FK__CmLocation__3DE82FB7">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="CmZone" EntitySet="CmZone" />
- </AssociationSet>
- <AssociationSet Name="FK_CmZoneTempHumiSet_CmFloor" Association="Self.FK_CmZoneTempHumiSet_CmFloor">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
- <End Role="CmPosition" EntitySet="CmPosition" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserToLicense__CmUser" Association="Self.FK__CmUserToLicense__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialOrder__CmUser" Association="Self.FK__FmsMaterialOrder__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser_AsRequestUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialPurchaseRequest__CmUser1_AsApprovalUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialStored__CmUser_AsStoredUserId" Association="Self.FK__FmsMaterialStored__CmUser_AsStoredUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialStored__CmUser1_AsApprovalUserId" Association="Self.FK__FmsMaterialStored__CmUser1_AsApprovalUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__CmUser" Association="Self.FK__FmsWorkOrder__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__CmUser_AsRequestUserId" Association="Self.FK__FmsWorkRequest__CmUser_AsRequestUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__CmUser1_AsRejectUserId" Association="Self.FK__FmsWorkRequest__CmUser1_AsRejectUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__CmUser_AsWorkerUserId" Association="Self.FK__FmsWorkResult__CmUser_AsWorkerUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__CmUser1_AsConfirmedUserId" Association="Self.FK__FmsWorkResult__CmUser1_AsConfirmedUserId">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUser_CmUserGroup" Association="Self.FK_CmUser_CmUserGroup">
- <End Role="CmUserGroup" EntitySet="CmUserGroup" />
- <End Role="CmUser" EntitySet="CmUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmUserLoginHistory_CmUser" Association="Self.FK_CmUserLoginHistory_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmUserLoginHistory" EntitySet="CmUserLoginHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstructionEstimation_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsManualHistory_CmUser" Association="Self.FK_FmsManualHistory_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserGroupPermission__CmUserGroup" Association="Self.FK__CmUserGroupPermission__CmUserGroup">
- <End Role="CmUserGroup" EntitySet="CmUserGroup" />
- <End Role="CmUserGroupPermission" EntitySet="CmUserGroupPermission" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
- <End Role="FmsLicense" EntitySet="FmsLicense" />
- <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
- </AssociationSet>
- <AssociationSet Name="FK_CmZoneTempHumiSet_CmZone" Association="Self.FK_CmZoneTempHumiSet_CmZone">
- <End Role="CmZone" EntitySet="CmZone" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
- <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeProgress" Association="Self.FK_FmsConstruction_FmsConstructionCodeProgress">
- <End Role="FmsConstructionCodeProgress" EntitySet="FmsConstructionCodeProgress" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_FmsConstructionCodeType" Association="Self.FK_FmsConstruction_FmsConstructionCodeType">
- <End Role="FmsConstructionCodeType" EntitySet="FmsConstructionCodeType" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstructionEstimation_FmsConstruction" Association="Self.FK_FmsConstructionEstimation_FmsConstruction">
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawing__6E565CE8" Association="Self.FK__FmsDrawing__6E565CE8">
- <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
- <End Role="FmsDrawing" EntitySet="FmsDrawing" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawing__6F4A8121" Association="Self.FK__FmsDrawing__6F4A8121">
- <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
- <End Role="FmsDrawing" EntitySet="FmsDrawing" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawingHistor__7132C993" Association="Self.FK__FmsDrawingHistor__7132C993">
- <End Role="FmsDrawing" EntitySet="FmsDrawing" />
- <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentCodeStateType">
- <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
- <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeCycleUnit">
- <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
- <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityCheckItem__FmsWorkCodeWorkType" Association="Self.FK__FmsFacilityCheckItem__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
- <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsFacilityCheckItem" Association="Self.FK__FmsWorkResultCheckItem__FmsFacilityCheckItem">
- <End Role="FmsFacilityCheckItem" EntitySet="FmsFacilityCheckItem" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityCodeClass__FmsFacilityCodeClass" Association="Self.FK__FmsFacilityCodeClass__FmsFacilityCodeClass">
- <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
- <End Role="FmsFacilityCodeClass1" EntitySet="FmsFacilityCodeClass" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsManual_FmsManualType" Association="Self.FK_FmsManual_FmsManualType">
- <End Role="FmsManualType" EntitySet="FmsManualType" />
- <End Role="FmsManual" EntitySet="FmsManual" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
- <End Role="FmsManual" EntitySet="FmsManual" />
- <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeClass__FmsMaterialCodeClass" Association="Self.FK__FmsMaterialCodeClass__FmsMaterialCodeClass">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterialCodeClass1" EntitySet="FmsMaterialCodeClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess" Association="Self.FK__FmsMaterialPurchasingRequest__FmsMaterialCodeProcess">
- <End Role="FmsMaterialCodeProgress" EntitySet="FmsMaterialCodeProgress" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
- <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany" Association="Self.FK__FmsMaterialPurchaseOrder__FmsMaterialTradeCompany">
- <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseOrder_FmsMaterialPurchaseRequest">
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterialPurchaseOrder">
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialPurchaseOrder" Association="Self.FK_FmsMaterialStored_FmsMaterialPurchaseOrder">
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterialPurchaseRequest">
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
- <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
- <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeProgress" Association="Self.FK__FmsWorkRequest__FmsWorkCodeProgress">
- <End Role="FmsWorkCodeProgress" EntitySet="FmsWorkCodeProgress" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkRequest__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__FmsWorkRequest" Association="Self.FK__FmsWorkOrder__FmsWorkRequest">
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrderToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkOrderToFacility__FmsWorkOrder">
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__FmsWorkOrder" Association="Self.FK__FmsWorkResult__FmsWorkOrder">
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequestToFacility__FmsWorkRequest" Association="Self.FK__FmsWorkRequestToFacility__FmsWorkRequest">
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultFile__FmsWorkResult" Association="Self.FK__FmsWorkResultFile__FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultFile" EntitySet="FmsWorkResultFile" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultLaw__FmsWorkResult" Association="Self.FK__FmsWorkResultLaw__FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultLaw" EntitySet="FmsWorkResultLaw" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultToFacility__FmsWorkOrder" Association="Self.FK__FmsWorkResultToFacility__FmsWorkOrder">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
- </AssociationSet>
- <EntitySet Name="FmsDailyCheckReport" EntityType="iBemsModel.FmsDailyCheckReport" />
- <EntitySet Name="FmsFacilityOperationReport" EntityType="iBemsModel.FmsFacilityOperationReport" />
- <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="iBemsModel.FK_FmsDailyCheckReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="iBemsModel.FK_FmsFacilityOperationReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
- </AssociationSet>
- <EntitySet Name="FmsBudgetDetail" EntityType="iBemsModel.FmsBudgetDetail" />
- <EntitySet Name="FmsBudgetDetailExecution" EntityType="iBemsModel.FmsBudgetDetailExecution" />
- <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudget">
- <End Role="FmsBudget" EntitySet="FmsBudget" />
- <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass">
- <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
- <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
- <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
- <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
- </AssociationSet>
- <EntitySet Name="FmsMonthlyReport" EntityType="iBemsModel.FmsMonthlyReport" />
- <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="iBemsModel.FK_FmsMonthlyReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
- </AssociationSet>
- <EntitySet Name="FmsInvestmentCost" EntityType="iBemsModel.FmsInvestmentCost" />
- <EntitySet Name="CmHolidayWeekend" EntityType="iBemsModel.CmHolidayWeekend" />
- <AssociationSet Name="FK_FmsAccident_CmCompany" Association="iBemsModel.FK_FmsAccident_CmCompany">
- <End Role="CmCompany" EntitySet="CmCompany" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <EntitySet Name="FmsMaterial" EntityType="iBemsModel.FmsMaterial" />
- <EntitySet Name="FmsMaterialRelease" EntityType="iBemsModel.FmsMaterialRelease" />
- <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="iBemsModel.FK_FmsMaterial_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmBusinessField" Association="iBemsModel.FK_FmsMaterialRelease_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_CmFile" Association="iBemsModel.FK_FmsMaterial_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="iBemsModel.FK_FmsMaterialRelease_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="iBemsModel.FK_FmsMaterialRelease_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation">
- <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType">
- <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany">
- <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="iBemsModel.FK_FmsMaterialStored_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
- <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
- <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
- </AssociationSet>
- <EntitySet Name="CmPatrolType" EntityType="iBemsModel.CmPatrolType" />
- <EntitySet Name="CmPatrolGroup" EntityType="iBemsModel.CmPatrolGroup" />
- <EntitySet Name="CmPatrolGroupUser" EntityType="iBemsModel.CmPatrolGroupUser" />
- <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup">
- <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
- <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="iBemsModel.FK_CmPatrolGroupUser_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
- </AssociationSet>
- <EntitySet Name="CmPatrolPos" EntityType="iBemsModel.CmPatrolPos" />
- <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="iBemsModel.FK_CmPatrolPos_CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="iBemsModel.FK_CmPatrolPos_CmFloor">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- </AssociationSet>
- <EntitySet Name="CmPatrolCourse" EntityType="iBemsModel.CmPatrolCourse" />
- <EntitySet Name="CmPatrolCoursePos" EntityType="iBemsModel.CmPatrolCoursePos" />
- <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse">
- <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
- <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos">
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
- </AssociationSet>
- <EntitySet Name="CmPatrolPlan" EntityType="iBemsModel.CmPatrolPlan" />
- <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse">
- <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup">
- <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- </AssociationSet>
- <EntitySet Name="CmPatrolHistoryPos" EntityType="iBemsModel.CmPatrolHistoryPos" />
- <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos">
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType">
- <End Role="CmPatrolType" EntitySet="CmPatrolType" />
- <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
- </AssociationSet>
- <EntitySet Name="BemsPeakInfo" EntityType="iBemsModel.BemsPeakInfo" />
- <EntitySet Name="BemsPeakHistory" EntityType="iBemsModel.BemsPeakHistory" />
- <EntitySet Name="CmPatrolSchedule" EntityType="iBemsModel.CmPatrolSchedule" />
- <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan">
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
- </AssociationSet>
- <EntitySet Name="BemsNoticePriceBase" EntityType="iBemsModel.BemsNoticePriceBase" />
- <EntitySet Name="BemsNoticePriceContractType" EntityType="iBemsModel.BemsNoticePriceContractType" />
- <EntitySet Name="BemsNoticePriceDetail" EntityType="iBemsModel.BemsNoticePriceDetail" />
- <AssociationSet Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType" Association="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
- <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
- <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
- <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
- <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
- </AssociationSet>
- <EntitySet Name="BemsPeakFacility" EntityType="iBemsModel.BemsPeakFacility" />
- <EntitySet Name="CmSite" EntityType="iBemsModel.CmSite" />
- <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="iBemsModel.FK_BemsPeakHIstory_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="iBemsModel.FK_BemsPeakInfo_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
- </AssociationSet>
- <AssociationSet Name="FK__CmBuildin__SiteI__3BFFE745" Association="iBemsModel.FK__CmBuildin__SiteI__3BFFE745">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- </AssociationSet>
- <AssociationSet Name="FK__CmCompany__SiteI__336AA144" Association="iBemsModel.FK__CmCompany__SiteI__336AA144">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmCompany" EntitySet="CmCompany" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="iBemsModel.FK_CmFacilityTempSet_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="iBemsModel.FK__CmFile__SiteId__2759D01A">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmFile" EntitySet="CmFile" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__0BB1B5A5" Association="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHoliday" EntitySet="CmHoliday" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="iBemsModel.FK__CmHoliday__SiteI__65AC084E">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHoliday" EntitySet="CmHoliday" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="iBemsModel.FK__CmHoliday__SiteI__10766AC2">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="iBemsModel.FK__CmHoliday__SiteI__66A02C87">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="iBemsModel.FK__CmHoliday__SiteI__0D99FE17">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="iBemsModel.FK_CmPatrolCourse_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="iBemsModel.FK_CmPatrolCoursePos_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="iBemsModel.FK_CmPatrolGroup_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="iBemsModel.FK_CmPatrolHistoryPos_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="iBemsModel.FK_CmPatrolPlan_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="iBemsModel.FK_CmPatrolPos_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="iBemsModel.FK_CmPatrolSchedule_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolType_CmSite" Association="iBemsModel.FK_CmPatrolType_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolType" EntitySet="CmPatrolType" />
- </AssociationSet>
- <AssociationSet Name="FK__CmPositio__SiteI__6A70BD6B" Association="iBemsModel.FK__CmPositio__SiteI__6A70BD6B">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPosition" EntitySet="CmPosition" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserPos__SiteI__44952D46" Association="iBemsModel.FK__CmUserPos__SiteI__44952D46">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPosition" EntitySet="CmPosition" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="iBemsModel.FK__CmUserGro__SiteI__53D770D6">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmUserGroup" EntitySet="CmUserGroup" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6B79F03D" Association="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawing" EntitySet="FmsDrawing" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="iBemsModel.FK__FmsDrawin__SiteI__6F357288">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="iBemsModel.FK__FmsDrawin__SiteI__702996C1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityCodeClass__CmSite" Association="iBemsModel.FK__FmsFacilityCodeClass__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsLicense__CmSite" Association="iBemsModel.FK__FmsLicense__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsLicense" EntitySet="FmsLicense" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCarriedForward__CmSite" Association="iBemsModel.FK__FmsMaterialCarriedForward__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="iBemsModel.FK__FmsMaterialCodeClass__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="iBemsModel.FK__FmsMaterialCodeLocation__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="iBemsModel.FK__FmsMaterialCodeType__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialOrder__CmSite" Association="iBemsModel.FK__FmsMaterialOrder__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="iBemsModel.FK__FmsMaterialStored__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialTradeCompany__CmSite" Association="iBemsModel.FK__FmsMaterialTradeCompany__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialWarehouse__CmSite" Association="iBemsModel.FK__FmsMaterialWarehouse__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="iBemsModel.FK__FmsWorkCodeEmergency__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkOrder__CmSite" Association="iBemsModel.FK__FmsWorkOrder__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="iBemsModel.FK__FmsWorkRequest__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK_CmZoneTempHumiSet_CmSite" Association="iBemsModel.FK_CmZoneTempHumiSet_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_CmSite" Association="iBemsModel.FK_FmsMaterial_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="iBemsModel.FK_FmsMaterialRelease_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <EntitySet Name="FmsReport" EntityType="iBemsModel.FmsReport" />
- <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="iBemsModel.FK_FmsReport_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmFile" Association="iBemsModel.FK_FmsReport_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmSite" Association="iBemsModel.FK_FmsReport_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmUser" Association="iBemsModel.FK_FmsReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmUser1" Association="iBemsModel.FK_FmsReport_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmUser2" Association="iBemsModel.FK_FmsReport_CmUser2">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="iBemsModel.CmServiceEnergyCalcMonth" />
- <EntitySet Name="CmServiceEnergyCalcDay" EntityType="iBemsModel.CmServiceEnergyCalcDay" />
- <EntitySet Name="CmPatrolHistory" EntityType="iBemsModel.CmPatrolHistory" />
- <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule">
- <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
- <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="iBemsModel.FK_CmPatrolHistory_CmPatrolType">
- <End Role="CmPatrolType" EntitySet="CmPatrolType" />
- <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="iBemsModel.FK_CmPatrolHistory_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
- </AssociationSet>
- <EntitySet Name="CmMenu" EntityType="iBemsModel.CmMenu" />
- <EntitySet Name="BemsChartInfo" EntityType="iBemsModel.BemsChartInfo" />
- <EntitySet Name="BemsReportFormat" EntityType="iBemsModel.BemsReportFormat" />
- <EntitySet Name="FmsWorkSchedule" EntityType="iBemsModel.FmsWorkSchedule" />
- <AssociationSet Name="FK_CmMenu_CmSite" Association="iBemsModel.FK_CmMenu_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmMenu" EntitySet="CmMenu" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="iBemsModel.FK_BemsChartInfo_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__CmBusinessField" Association="iBemsModel.FK__FmsWorkSchedule__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="iBemsModel.FK__FmsWorkSchedule__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
- <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
- <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule">
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItem_CmFile1" Association="iBemsModel.FK_FmsWorkResultCheckItem_CmFile1">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="iBemsModel.FK_BemsChartInfo_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
- </AssociationSet>
- <EntitySet Name="BemsPeopleIncrease" EntityType="iBemsModel.BemsPeopleIncrease" />
- <EntitySet Name="BemsPriceCode" EntityType="iBemsModel.BemsPriceCode" />
- <EntitySet Name="BemsPriceFormula" EntityType="iBemsModel.BemsPriceFormula" />
- <EntitySet Name="BemsPriceMeta" EntityType="iBemsModel.BemsPriceMeta" />
- <EntitySet Name="BemsPriceType" EntityType="iBemsModel.BemsPriceType" />
- <EntitySet Name="BemsRentalRate" EntityType="iBemsModel.BemsRentalRate" />
- <EntitySet Name="BemsSitePrice" EntityType="iBemsModel.BemsSitePrice" />
- <EntitySet Name="BemsSitePriceHistory" EntityType="iBemsModel.BemsSitePriceHistory" />
- <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="iBemsModel.FK_BemsPriceFormula_BemsFormula">
- <End Role="BemsFormula" EntitySet="BemsFormula" />
- <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="iBemsModel.FK_BemsPeopleIncrease_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="iBemsModel.FK_BemsSitePrice_BemsPriceCode">
- <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode">
- <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="iBemsModel.FK_BemsPriceFormula_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="iBemsModel.FK_BemsPriceMeta_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="iBemsModel.FK_BemsRentalRate_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="iBemsModel.FK_BemsSitePrice_CmSite1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="iBemsModel.FK_BemsSitePriceHistory_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="iBemsModel.FK_BemsSitePrice_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <EntitySet Name="BemsMonitoringPointConfig" EntityType="iBemsModel.BemsMonitoringPointConfig" />
- <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
- </AssociationSet>
- <EntitySet Name="BemsAlarmSetting" EntityType="iBemsModel.BemsAlarmSetting" />
- <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="iBemsModel.FK_BemsAlarmSetting_CmSite1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- </AssociationSet>
- <EntitySet Name="BemsAlarmLog" EntityType="iBemsModel.BemsAlarmLog" />
- <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting">
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
- </AssociationSet>
- <EntitySet Name="BemsAlarmGroup" EntityType="iBemsModel.BemsAlarmGroup" />
- <EntitySet Name="BemsAlarmGroupUser" EntityType="iBemsModel.BemsAlarmGroupUser" />
- <EntitySet Name="BemsEnergyCost" EntityType="iBemsModel.BemsEnergyCost" />
- <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="iBemsModel.BemsEnergyConfigPercentMonth" />
- <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="iBemsModel.BemsEnergyConfigPercentWeek" />
- <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
- </AssociationSet>
- <EntitySet Name="BemsEnergyDaily" EntityType="iBemsModel.BemsEnergyDaily" />
- <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="iBemsModel.FK__BemsEnergyDaily__BemsServiceType">
- <End Role="BemsServiceType" EntitySet="BemsServiceType" />
- <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="iBemsModel.FK__BemsEnergyDaily__CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
- </AssociationSet>
- <EntitySet Name="BemsEnergyDailyRegression" EntityType="iBemsModel.BemsEnergyDailyRegression" />
- <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="iBemsModel.FK_BemsEnergyDailyRegression_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
- </AssociationSet>
- <EntitySet Name="WeatherDongNaeForecast" EntityType="iBemsModel.WeatherDongNaeForecast" />
- <EntitySet Name="FmsEquipmentRentInfo" EntityType="iBemsModel.FmsEquipmentRentInfo" />
- <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
- <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
- </AssociationSet>
- <EntitySet Name="BemsControlAHUTempConfig" EntityType="iBemsModel.BemsControlAHUTempConfig" />
- <EntitySet Name="BemsFuelType" EntityType="iBemsModel.BemsFuelType" />
- <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="iBemsModel.FK__BemsEnergyDaily__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="iBemsModel.FK__BemsFactorCo2__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="iBemsModel.FK__BemsFactorToe__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPoint__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="iBemsModel.FK_BemsPriceCode_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="iBemsModel.FK_BemsPriceType_BemsFuelType1">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="iBemsModel.FK_BemsSitePrice_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <EntitySet Name="CmFacility" EntityType="iBemsModel.CmFacility" />
- <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="iBemsModel.FK_BemsAlarmSetting_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsEnergyCost_CmFacility" Association="iBemsModel.FK_BemsEnergyCost_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__BemsFacilityType" Association="iBemsModel.FK__CmFacility__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="iBemsModel.FK_BemsFormulaParameter_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacility_BemsFuelType" Association="iBemsModel.FK_CmFacility_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsMonitoringPoint_CmFacility" Association="iBemsModel.FK_BemsMonitoringPoint_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacility_BemsNoticePriceContractType" Association="iBemsModel.FK_CmFacility_BemsNoticePriceContractType">
- <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="iBemsModel.FK_BemsPeakFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__CmBuilding" Association="iBemsModel.FK__CmFacility__CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__74444068" Association="iBemsModel.FK__CmFacility__74444068">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__753864A1" Association="iBemsModel.FK__CmFacility__753864A1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__762C88DA" Association="iBemsModel.FK__CmFacility__762C88DA">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__CmFacility" Association="iBemsModel.FK__CmFacility__CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="CmFacility1" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__CmFile" Association="iBemsModel.FK__CmFacility__CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__CmZone" Association="iBemsModel.FK__CmFacility__CmZone">
- <End Role="CmZone" EntitySet="CmZone" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsFirst" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst">
- <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsSecond" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond">
- <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacility__FmsFacilityCodeClassAsThird" Association="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird">
- <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="iBemsModel.FK__CmFacilityFile__7720AD13">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacilityManual__79FD19BE" Association="iBemsModel.FK__CmFacilityManual__79FD19BE">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsFacilityOpera__725BF7F6" Association="iBemsModel.FK__FmsFacilityOpera__725BF7F6">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultToFacility__CmFacility" Association="iBemsModel.FK__FmsWorkResultToFacility__CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacility_CmUser" Association="iBemsModel.FK_CmFacility_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacility_CmUser1" Association="iBemsModel.FK_CmFacility_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmFacility" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacilityTempSet_CmFacility" Association="iBemsModel.FK_CmFacilityTempSet_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
- </AssociationSet>
- <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="iBemsModel.BemsMonitoringPointHistory15minRawData" />
- <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
- </AssociationSet>
- <EntitySet Name="FmsDailyReport" EntityType="iBemsModel.FmsDailyReport" />
- <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="iBemsModel.FK_FmsDailyReport_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="iBemsModel.FK_FmsDailyReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
- </AssociationSet>
- <EntitySet Name="BemsPeakHistoryDaily" EntityType="iBemsModel.BemsPeakHistoryDaily" />
- <EntitySet Name="FmsEquipment" EntityType="iBemsModel.FmsEquipment" />
- <AssociationSet Name="FK_FmsEquipment_CmUser" Association="iBemsModel.FK_FmsEquipment_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType">
- <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment">
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
- </AssociationSet>
- <EntitySet Name="CmAlarmAdmin" EntityType="iBemsModel.CmAlarmAdmin" />
- <EntitySet Name="BemsFloorStatus" EntityType="iBemsModel.BemsFloorStatus" />
- <EntitySet Name="BemsReportHistory" EntityType="iBemsModel.BemsReportHistory" />
- <EntitySet Name="CmPartner" EntityType="iBemsModel.CmPartner" />
- <EntitySet Name="CmPartnerType" EntityType="iBemsModel.CmPartnerType" />
- <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="iBemsModel.FK_CmPartnerType_CmPartner">
- <End Role="CmPartnerType" EntitySet="CmPartnerType" />
- <End Role="CmPartner" EntitySet="CmPartner" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsConstruction_CmPartner" Association="iBemsModel.FK_FmsConstruction_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="iBemsModel.FK_FmsWorkRequest_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="iBemsModel.FK_FmsWorkSchedule_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <EntitySet Name="FmsContract" EntityType="iBemsModel.FmsContract" />
- <AssociationSet Name="FK_FmsContract_CmPartner" Association="iBemsModel.FK_FmsContract_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="iBemsModel.FK_FmsContract_CmPartnerType">
- <End Role="CmPartnerType" EntitySet="CmPartnerType" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="iBemsModel.FK_FmsContract_FmsContractClass">
- <End Role="FmsContractClass" EntitySet="FmsContractClass" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="iBemsModel.FK_FmsContract_FmsContractMethod">
- <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsContractType" Association="iBemsModel.FK_FmsContract_FmsContractType">
- <End Role="FmsContractType" EntitySet="FmsContractType" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="iBemsModel.FK_FmsContract_FmsPaymentType">
- <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <EntitySet Name="BemsMonitoringPointForecastingDayAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingDayAhead" />
- <EntitySet Name="BemsMonitoringPointForecastingHourAhead" EntityType="iBemsModel.BemsMonitoringPointForecastingHourAhead" />
- <EntitySet Name="BemsFloorPlan" EntityType="iBemsModel.BemsFloorPlan" />
- <EntitySet Name="BemsMonitoringPointWeatherForecasted" EntityType="iBemsModel.BemsMonitoringPointWeatherForecasted" />
- <EntitySet Name="BemsConfigData" EntityType="iBemsModel.BemsConfigData" />
- <EntitySet Name="BemsIceThermalStorageSimulation" EntityType="iBemsModel.BemsIceThermalStorageSimulation" />
- </EntityContainer>
- <EntityType Name="FmsDailyCheckReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DailyCheckReportId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="DailyCheckReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyCheckReport_CmUser" FromRole="FmsDailyCheckReport" ToRole="CmUser" />
- </EntityType>
- <EntityType Name="FmsFacilityOperationReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityOperationReportId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityOperationReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsFacilityOperationReport_CmUser" FromRole="FmsFacilityOperationReport" ToRole="CmUser" />
- </EntityType>
- <Association Name="FK_FmsDailyCheckReport_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsDailyCheckReport" Role="FmsDailyCheckReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsDailyCheckReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsFacilityOperationReport_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsFacilityOperationReport" Role="FmsFacilityOperationReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsFacilityOperationReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsBudgetDetail">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="BudgetClassId" />
- <PropertyRef Name="ParentBudgetClassId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Year" Type="Int32" Nullable="false" />
- <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
- <Property Name="BudgetSeq" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="true" />
- <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
- <Property Name="Depth" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
- <Property Name="Abbreviation" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="YearlyBudget" Type="Double" Nullable="false" />
- <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
- <NavigationProperty Name="FmsBudget" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudget" FromRole="FmsBudgetDetail" ToRole="FmsBudget" />
- <NavigationProperty Name="FmsBudgetCodeClass" Relationship="iBemsModel.FK_FmsBudgetDetail_FmsBudgetCodeClass" FromRole="FmsBudgetDetail" ToRole="FmsBudgetCodeClass" />
- <NavigationProperty Name="FmsBudgetDetailExecution" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetail" ToRole="FmsBudgetDetailExecution" />
- <Property Name="RootBudgetClassId" Type="Int32" />
- </EntityType>
- <EntityType Name="FmsBudgetDetailExecution">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="BudgetClassId" />
- <PropertyRef Name="ParentBudgetClassId" />
- <PropertyRef Name="Month" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Year" Type="Int32" Nullable="false" />
- <Property Name="BudgetClassId" Type="Int32" Nullable="false" />
- <Property Name="ParentBudgetClassId" Type="Int32" Nullable="false" />
- <Property Name="MonthlyExecution" Type="Double" Nullable="false" />
- <Property Name="Month" Type="Int32" Nullable="false" />
- <NavigationProperty Name="FmsBudgetDetail" Relationship="iBemsModel.FK_FmsBudgetDetailExecution_FmsBudgetDetail" FromRole="FmsBudgetDetailExecution" ToRole="FmsBudgetDetail" />
- <Property Name="YearlyBudget" Type="Double" Nullable="false" />
- <Property Name="MonthlyBudget" Type="Double" Nullable="false" />
- <Property Name="YearlyExecution" Type="Double" Nullable="false" />
- <Property Name="RootBudgetClassId" Type="Int32" />
- </EntityType>
- <Association Name="FK_FmsBudgetDetail_FmsBudget">
- <End Type="iBemsModel.FmsBudget" Role="FmsBudget" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsBudget">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- </Principal>
- <Dependent Role="FmsBudgetDetail">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsBudgetDetail_FmsBudgetCodeClass">
- <End Type="iBemsModel.FmsBudgetCodeClass" Role="FmsBudgetCodeClass" Multiplicity="1" />
- <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsBudgetCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BudgetClassId" />
- </Principal>
- <Dependent Role="FmsBudgetDetail">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BudgetClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail">
- <End Type="iBemsModel.FmsBudgetDetail" Role="FmsBudgetDetail" Multiplicity="1" />
- <End Type="iBemsModel.FmsBudgetDetailExecution" Role="FmsBudgetDetailExecution" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsBudgetDetail">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="BudgetClassId" />
- <PropertyRef Name="ParentBudgetClassId" />
- </Principal>
- <Dependent Role="FmsBudgetDetailExecution">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="BudgetClassId" />
- <PropertyRef Name="ParentBudgetClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsMonthlyReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MonthlyReportId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="MonthlyReportId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Name="Contents" Type="String" Nullable="false" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="3" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMonthlyReport_CmUser" FromRole="FmsMonthlyReport" ToRole="CmUser" />
- </EntityType>
- <Association Name="FK_FmsMonthlyReport_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsMonthlyReport" Role="FmsMonthlyReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMonthlyReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsInvestmentCost">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InsvestmentCostId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="InsvestmentCostId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="InsvestmentCost" Type="Double" Nullable="false" />
- </EntityType>
- <EntityType Name="CmHolidayWeekend">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Saturday" Type="Boolean" Nullable="false" />
- <Property Name="Sunday" Type="Boolean" Nullable="false" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmHolidayWeekend" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_FmsAccident_CmCompany">
- <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsAccident" Role="FmsAccident" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Principal>
- <Dependent Role="FmsAccident">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsMaterial">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="MaterialId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="MaterialCode" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
- <Property Name="FirstClassId" Type="Int32" />
- <Property Name="SecondClassId" Type="Int32" />
- <Property Name="ThirdClassId" Type="Int32" />
- <Property Name="LocationId" Type="Int32" />
- <Property Name="MaterialTypeId" Type="Int32" />
- <Property Name="WarehouseId" Type="Int32" />
- <Property Name="TradeCompanyId" Type="Int32" />
- <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
- <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
- <Property Name="DurableYears" Type="Int16" />
- <Property Name="ReasonableStockCount" Type="Int16" />
- <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="FinalPrice" Type="Int32" />
- <Property Name="ImageFileId" Type="Int32" />
- <Property Name="Note" Type="String" MaxLength="512" FixedLength="false" Unicode="true" />
- <Property Name="IsDiscontinued" Type="Boolean" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <Property Name="FinalStockCount" Type="Int32" Nullable="false" />
- <Property Name="FinalTotalStockAmount" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterial_CmBusinessField" FromRole="FmsMaterial" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsMaterial_CmFile" FromRole="FmsMaterial" ToRole="CmFile" />
- <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
- <NavigationProperty Name="FmsMaterialCodeClass1" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
- <NavigationProperty Name="FmsMaterialCodeClass2" Relationship="iBemsModel.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" FromRole="FmsMaterial" ToRole="FmsMaterialCodeClass" />
- <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeLocation" FromRole="FmsMaterial" ToRole="FmsMaterialCodeLocation" />
- <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialCodeType" FromRole="FmsMaterial" ToRole="FmsMaterialCodeType" />
- <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialTradeCompany" FromRole="FmsMaterial" ToRole="FmsMaterialTradeCompany" />
- <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsMaterial_FmsMaterialWarehouse" FromRole="FmsMaterial" ToRole="FmsMaterialWarehouse" />
- <NavigationProperty Name="FmsMaterialPurchaseOrderMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseOrderMaterial" />
- <NavigationProperty Name="FmsMaterialPurchaseRequestMaterial" Relationship="iBemsModel.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialPurchaseRequestMaterial" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialRelease" />
- <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK_FmsMaterialStored_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="FmsWorkResultCheckItemMaterial" Relationship="iBemsModel.FK_FmsWorkResultCheckItemMaterial_FmsMaterial" FromRole="FmsMaterial" ToRole="FmsWorkResultCheckItemMaterial" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="FmsMaterial" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="FmsMaterialRelease">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialReleaseId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="ReleaseDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="MaterialReleaseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ReleaseTypeId" Type="Int16" Nullable="false" />
- <Property Name="WorkRequestId" Type="Int32" />
- <Property Name="WarehouseId" Type="Int32" />
- <Property Name="MaterialId" Type="Int32" />
- <Property Name="MaterialCount" Type="Int32" />
- <Property Name="ReleaseTotalCost" Type="Int32" />
- <Property Name="AdjustmentTypeId" Type="Int16" Nullable="false" />
- <Property Name="AdjustmentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ConfirmedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ConfirmedDate" Type="DateTime" Precision="3" />
- <Property Name="IsConfirmed" Type="Boolean" Nullable="false" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsMaterialRelease_CmBusinessField" FromRole="FmsMaterialRelease" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser" FromRole="FmsMaterialRelease" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsMaterialRelease_CmUser1" FromRole="FmsMaterialRelease" ToRole="CmUser" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterial" FromRole="FmsMaterialRelease" ToRole="FmsMaterial" />
- <NavigationProperty Name="FmsMaterialCodeAdjustmentType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeAdjustmentType" />
- <NavigationProperty Name="FmsMaterialCodeReleaseType" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" FromRole="FmsMaterialRelease" ToRole="FmsMaterialCodeReleaseType" />
- <NavigationProperty Name="FmsWorkResult" Relationship="iBemsModel.FK_FmsMaterialRelease_FmsWorkResult" FromRole="FmsMaterialRelease" ToRole="FmsWorkResult" />
- <Property Name="StockCountByPoint" Type="Int32" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="FmsMaterialRelease" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_FmsMaterial_CmBusinessField">
- <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_CmBusinessField">
- <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_CmFile">
- <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ImageFileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConfirmedUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_CmUser1">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AdjustmentUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
- <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FirstClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
- <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="SecondClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
- <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ThirdClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
- <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeLocation">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LocationId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LocationId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_FmsMaterialCodeType">
- <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialTypeId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_FmsMaterialTradeCompany">
- <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialTradeCompany">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_FmsMaterialWarehouse">
- <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialPurchaseOrderMaterial" Role="FmsMaterialPurchaseOrderMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrderMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialPurchaseRequestMaterial" Role="FmsMaterialPurchaseRequestMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequestMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_FmsMaterial">
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialStored_FmsMaterial">
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItemMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
- <End Type="iBemsModel.FmsMaterialCodeAdjustmentType" Role="FmsMaterialCodeAdjustmentType" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeAdjustmentType">
- <PropertyRef Name="AdjustmentTypeId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="AdjustmentTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
- <End Type="iBemsModel.FmsMaterialCodeReleaseType" Role="FmsMaterialCodeReleaseType" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialCodeReleaseType">
- <PropertyRef Name="ReleaseTypeId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="ReleaseTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_FmsWorkResult">
- <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
- <End Type="iBemsModel.FmsWorkResult" Role="FmsWorkResult" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkResultCheckItemMaterial" Role="FmsWorkResultCheckItemMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResult">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItemMaterial">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmPatrolType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistoryPos" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmPatrolType" ToRole="CmSite" />
- <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolType" ToRole="CmPatrolHistory" />
- </EntityType>
- <EntityType Name="CmPatrolGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmPatrolGroupUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolGroupUser" />
- <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolGroup" ToRole="CmPatrolPlan" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmPatrolGroup" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmPatrolGroupUser">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- <PropertyRef Name="UserId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolGroupId" Type="Int32" Nullable="false" />
- <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmPatrolGroup" FromRole="CmPatrolGroupUser" ToRole="CmPatrolGroup" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_CmPatrolGroupUser_CmUser" FromRole="CmPatrolGroupUser" ToRole="CmUser" />
- </EntityType>
- <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
- <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- </Principal>
- <Dependent Role="CmPatrolGroupUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolGroupUser_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolGroupUser" Role="CmPatrolGroupUser" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmPatrolGroupUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmPatrolPos">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" />
- <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="TagId" Type="String" MaxLength="32" FixedLength="false" Unicode="true" />
- <Property Name="PosDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK_CmPatrolPos_CmBuilding" FromRole="CmPatrolPos" ToRole="CmBuilding" />
- <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK_CmPatrolPos_CmFloor" FromRole="CmPatrolPos" ToRole="CmFloor" />
- <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolCoursePos" />
- <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolPos" ToRole="CmPatrolHistoryPos" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmPatrolPos" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_CmPatrolPos_CmBuilding">
- <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPos_CmFloor">
- <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmPatrolCourse">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolCourseId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolCoursePos" />
- <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolCourse" ToRole="CmPatrolPlan" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmPatrolCourse" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmPatrolCoursePos">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- <PropertyRef Name="PosId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolCourseId" Type="Int32" Nullable="false" />
- <Property Name="PosId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="None" />
- <Property Name="CourseOrder" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolCourse" FromRole="CmPatrolCoursePos" ToRole="CmPatrolCourse" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmPatrolPos" FromRole="CmPatrolCoursePos" ToRole="CmPatrolPos" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmPatrolCoursePos" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
- <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolCourse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- </Principal>
- <Dependent Role="CmPatrolCoursePos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolCoursePos_CmPatrolPos">
- <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Principal>
- <Dependent Role="CmPatrolCoursePos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmPatrolPlan">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolPlanId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolPlanId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="GroupId" Type="Int32" Nullable="false" />
- <Property Name="CourseId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
- <Property Name="PlanDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
- <Property Name="term" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolCourse" FromRole="CmPatrolPlan" ToRole="CmPatrolCourse" />
- <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolPlan_CmPatrolGroup" FromRole="CmPatrolPlan" ToRole="CmPatrolGroup" />
- <Property Name="inDate" Type="DateTime" Precision="3" />
- <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolPlan" ToRole="CmPatrolSchedule" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmPatrolPlan" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
- <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolCourse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- </Principal>
- <Dependent Role="CmPatrolPlan">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CourseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPlan_CmPatrolGroup">
- <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolGroup">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- </Principal>
- <Dependent Role="CmPatrolPlan">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="GroupId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmPatrolHistoryPos">
- <Key>
- <PropertyRef Name="mId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" />
- <Property Name="PosId" Type="Int32" Nullable="false" />
- <Property Name="PatrolTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="term" Type="Int32" />
- <Property Name="resultType" Type="Int32" Nullable="false" />
- <Property Name="mId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolPos" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolPos" />
- <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmPatrolType" FromRole="CmPatrolHistoryPos" ToRole="CmPatrolType" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmPatrolHistoryPos" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
- <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Principal>
- <Dependent Role="CmPatrolHistoryPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistoryPos_CmPatrolType">
- <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolTypeId" />
- </Principal>
- <Dependent Role="CmPatrolHistoryPos">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="resultType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsPeakInfo">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="MaxPeakValue" Type="Double" Nullable="false" />
- <Property Name="MinDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="MinPeakValue" Type="Double" Nullable="false" />
- <Property Name="todayMaxPeakValue" Type="Double" Nullable="false" />
- <Property Name="todayMinPeakValue" Type="Double" Nullable="false" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="BemsPeakInfo" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="BemsPeakHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CurrentValue" Type="Double" Nullable="false" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="BemsPeakHistory" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="CmPatrolSchedule">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ScheduleId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="PlanId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="false" />
- <Property Name="ScheduleDesc" Type="String" MaxLength="128" FixedLength="false" Unicode="false" />
- <Property Name="inDate" Type="DateTime" Precision="3" />
- <Property Name="patrolDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolSchedule_CmPatrolPlan" FromRole="CmPatrolSchedule" ToRole="CmPatrolPlan" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmPatrolSchedule" ToRole="CmSite" />
- <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolSchedule" ToRole="CmPatrolHistory" />
- </EntityType>
- <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
- <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolPlan">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolPlanId" />
- </Principal>
- <Dependent Role="CmPatrolSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PlanId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsNoticePriceBase">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ApplyDate" />
- <PropertyRef Name="ContractType" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="ContractType" Type="Int16" Nullable="false" />
- <Property Name="PrimaryPrice" Type="Int32" />
- <Property Name="SecondaryPrice" Type="Int32" />
- <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceContractType" />
- <NavigationProperty Name="BemsNoticePriceDetail" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceBase" ToRole="BemsNoticePriceDetail" />
- </EntityType>
- <EntityType Name="BemsNoticePriceContractType">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Key>
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="ContractType" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceBase__BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="BemsNoticePriceBase" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsNoticePriceContractType" ToRole="BemsFuelType" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="BemsNoticePriceContractType" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="BemsNoticePriceDetail">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ApplyDate" />
- <PropertyRef Name="ContractType" />
- <PropertyRef Name="DataId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="ApplyDate" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="ContractType" Type="Int16" Nullable="false" />
- <Property Name="DataId" Type="Int16" Nullable="false" />
- <Property Name="P01" Type="Double" />
- <Property Name="P02" Type="Double" />
- <Property Name="P03" Type="Double" />
- <Property Name="P04" Type="Double" />
- <Property Name="P05" Type="Double" />
- <Property Name="P06" Type="Double" />
- <Property Name="P07" Type="Double" />
- <Property Name="P08" Type="Double" />
- <Property Name="P09" Type="Double" />
- <Property Name="P10" Type="Double" />
- <Property Name="P11" Type="Double" />
- <Property Name="P12" Type="Double" />
- <NavigationProperty Name="BemsNoticePriceBase" Relationship="iBemsModel.FK__BemsNoticePriceDetail__BemsNoticePriceBase" FromRole="BemsNoticePriceDetail" ToRole="BemsNoticePriceBase" />
- </EntityType>
- <Association Name="FK__BemsNoticePriceBase__BemsNoticePriceContractType">
- <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="1" />
- <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsNoticePriceContractType">
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Principal>
- <Dependent Role="BemsNoticePriceBase">
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
- <End Type="iBemsModel.BemsNoticePriceBase" Role="BemsNoticePriceBase" Multiplicity="1" />
- <End Type="iBemsModel.BemsNoticePriceDetail" Role="BemsNoticePriceDetail" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsNoticePriceBase">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ApplyDate" />
- <PropertyRef Name="ContractType" />
- </Principal>
- <Dependent Role="BemsNoticePriceDetail">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ApplyDate" />
- <PropertyRef Name="ContractType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsPeakFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaxDateTime" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="MaxDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="BemsPeakFacility" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="CmSite">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="AddressZip1" Type="String" MaxLength="5" FixedLength="true" Unicode="true" />
- <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
- <Property Name="Address1" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="PhoneNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="URL" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="SortOrderNo" Type="Int32" />
- <Property Name="InsertedDate" Type="DateTime" Precision="3" />
- <Property Name="InsertedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="UpdatedDate" Type="DateTime" Precision="3" />
- <Property Name="UpdatedUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="IsControlSchedule" Type="Boolean" />
- <Property Name="ScheduleCheckHour" Type="Int32" />
- <Property Name="MaxPeak" Type="Double" />
- <Property Name="lat" Type="Double" />
- <Property Name="lng" Type="Double" />
- <NavigationProperty Name="BemsPeakHistory" Relationship="iBemsModel.FK_BemsPeakHIstory_CmSite" FromRole="CmSite" ToRole="BemsPeakHistory" />
- <NavigationProperty Name="BemsPeakInfo" Relationship="iBemsModel.FK_BemsPeakInfo_CmSite" FromRole="CmSite" ToRole="BemsPeakInfo" />
- <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmBuildin__SiteI__3BFFE745" FromRole="CmSite" ToRole="CmBuilding" />
- <NavigationProperty Name="CmCompany" Relationship="iBemsModel.FK__CmCompany__SiteI__336AA144" FromRole="CmSite" ToRole="CmCompany" />
- <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmSite" FromRole="CmSite" ToRole="CmFacilityTempSet" />
- <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFile__SiteId__2759D01A" FromRole="CmSite" ToRole="CmFile" />
- <NavigationProperty Name="CmHoliday" Relationship="iBemsModel.FK__CmHoliday__SiteI__0BB1B5A5" FromRole="CmSite" ToRole="CmHoliday" />
- <NavigationProperty Name="CmHoliday1" Relationship="iBemsModel.FK__CmHoliday__SiteI__65AC084E" FromRole="CmSite" ToRole="CmHoliday" />
- <NavigationProperty Name="CmHolidayCustom" Relationship="iBemsModel.FK__CmHoliday__SiteI__10766AC2" FromRole="CmSite" ToRole="CmHolidayCustom" />
- <NavigationProperty Name="CmHolidayCustom1" Relationship="iBemsModel.FK__CmHoliday__SiteI__66A02C87" FromRole="CmSite" ToRole="CmHolidayCustom" />
- <NavigationProperty Name="CmHolidayWeekend" Relationship="iBemsModel.FK__CmHoliday__SiteI__0D99FE17" FromRole="CmSite" ToRole="CmHolidayWeekend" />
- <NavigationProperty Name="CmPatrolCourse" Relationship="iBemsModel.FK_CmPatrolCourse_CmSite" FromRole="CmSite" ToRole="CmPatrolCourse" />
- <NavigationProperty Name="CmPatrolCoursePos" Relationship="iBemsModel.FK_CmPatrolCoursePos_CmSite" FromRole="CmSite" ToRole="CmPatrolCoursePos" />
- <NavigationProperty Name="CmPatrolGroup" Relationship="iBemsModel.FK_CmPatrolGroup_CmSite" FromRole="CmSite" ToRole="CmPatrolGroup" />
- <NavigationProperty Name="CmPatrolHistoryPos" Relationship="iBemsModel.FK_CmPatrolHistoryPos_CmSite" FromRole="CmSite" ToRole="CmPatrolHistoryPos" />
- <NavigationProperty Name="CmPatrolPlan" Relationship="iBemsModel.FK_CmPatrolPlan_CmSite" FromRole="CmSite" ToRole="CmPatrolPlan" />
- <NavigationProperty Name="CmPatrolPos" Relationship="iBemsModel.FK_CmPatrolPos_CmSite" FromRole="CmSite" ToRole="CmPatrolPos" />
- <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolSchedule_CmSite" FromRole="CmSite" ToRole="CmPatrolSchedule" />
- <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolType_CmSite" FromRole="CmSite" ToRole="CmPatrolType" />
- <NavigationProperty Name="CmPosition" Relationship="iBemsModel.FK__CmPositio__SiteI__6A70BD6B" FromRole="CmSite" ToRole="CmPosition" />
- <NavigationProperty Name="CmPosition1" Relationship="iBemsModel.FK__CmUserPos__SiteI__44952D46" FromRole="CmSite" ToRole="CmPosition" />
- <NavigationProperty Name="CmUserGroup" Relationship="iBemsModel.FK__CmUserGro__SiteI__53D770D6" FromRole="CmSite" ToRole="CmUserGroup" />
- <NavigationProperty Name="FmsDrawingCodeGroup" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6B79F03D" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
- <NavigationProperty Name="FmsDrawingCodeType" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6C6E1476" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
- <NavigationProperty Name="FmsDrawing" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6D6238AF" FromRole="CmSite" ToRole="FmsDrawing" />
- <NavigationProperty Name="FmsDrawingCodeGroup1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__6F357288" FromRole="CmSite" ToRole="FmsDrawingCodeGroup" />
- <NavigationProperty Name="FmsDrawingCodeType1" Relationship="iBemsModel.FK__FmsDrawin__SiteI__702996C1" FromRole="CmSite" ToRole="FmsDrawingCodeType" />
- <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__FmsFacilityCodeClass__CmSite" FromRole="CmSite" ToRole="FmsFacilityCodeClass" />
- <NavigationProperty Name="FmsLicense" Relationship="iBemsModel.FK__FmsLicense__CmSite" FromRole="CmSite" ToRole="FmsLicense" />
- <NavigationProperty Name="FmsMaterialCarriedForward" Relationship="iBemsModel.FK__FmsMaterialCarriedForward__CmSite" FromRole="CmSite" ToRole="FmsMaterialCarriedForward" />
- <NavigationProperty Name="FmsMaterialCodeClass" Relationship="iBemsModel.FK__FmsMaterialCodeClass__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeClass" />
- <NavigationProperty Name="FmsMaterialCodeLocation" Relationship="iBemsModel.FK__FmsMaterialCodeLocation__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeLocation" />
- <NavigationProperty Name="FmsMaterialCodeType" Relationship="iBemsModel.FK__FmsMaterialCodeType__CmSite" FromRole="CmSite" ToRole="FmsMaterialCodeType" />
- <NavigationProperty Name="FmsMaterialPurchaseOrder" Relationship="iBemsModel.FK__FmsMaterialOrder__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseOrder" />
- <NavigationProperty Name="FmsMaterialPurchaseRequest" Relationship="iBemsModel.FK__FmsMaterialPurchasingRequest__CmSite" FromRole="CmSite" ToRole="FmsMaterialPurchaseRequest" />
- <NavigationProperty Name="FmsMaterialStored" Relationship="iBemsModel.FK__FmsMaterialStored__CmSite" FromRole="CmSite" ToRole="FmsMaterialStored" />
- <NavigationProperty Name="FmsMaterialTradeCompany" Relationship="iBemsModel.FK__FmsMaterialTradeCompany__CmSite" FromRole="CmSite" ToRole="FmsMaterialTradeCompany" />
- <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK__FmsMaterialWarehouse__CmSite" FromRole="CmSite" ToRole="FmsMaterialWarehouse" />
- <NavigationProperty Name="FmsWorkCodeCauseClass" Relationship="iBemsModel.FK__FmsWorkCodeCauseClass__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCauseClass" />
- <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkCodeCycleUnit__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeCycleUnit" />
- <NavigationProperty Name="FmsWorkCodeEmergency" Relationship="iBemsModel.FK__FmsWorkCodeEmergency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeEmergency" />
- <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkCodeHolidayWorkType__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeHolidayWorkType" />
- <NavigationProperty Name="FmsWorkCodeLegalInspectionAgency" Relationship="iBemsModel.FK__FmsWorkCodeLegalInspectionAgency__CmSite" FromRole="CmSite" ToRole="FmsWorkCodeLegalInspectionAgency" />
- <NavigationProperty Name="FmsWorkOrder" Relationship="iBemsModel.FK__FmsWorkOrder__CmSite" FromRole="CmSite" ToRole="FmsWorkOrder" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__CmSite" FromRole="CmSite" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="CmZoneTempHumiSet" Relationship="iBemsModel.FK_CmZoneTempHumiSet_CmSite" FromRole="CmSite" ToRole="CmZoneTempHumiSet" />
- <NavigationProperty Name="FmsMaterial" Relationship="iBemsModel.FK_FmsMaterial_CmSite" FromRole="CmSite" ToRole="FmsMaterial" />
- <NavigationProperty Name="FmsMaterialRelease" Relationship="iBemsModel.FK_FmsMaterialRelease_CmSite" FromRole="CmSite" ToRole="FmsMaterialRelease" />
- <NavigationProperty Name="FmsReport" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="CmSite" ToRole="FmsReport" />
- <NavigationProperty Name="CmPatrolHistory" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmSite" ToRole="CmPatrolHistory" />
- <Property Name="controlSchedule" Type="Boolean" />
- <NavigationProperty Name="CmMenu" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmSite" ToRole="CmMenu" />
- <NavigationProperty Name="BemsChartInfo" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="CmSite" ToRole="BemsChartInfo" />
- <Property Name="BuildingSize" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="GrossArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="BuildingArea" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="FloorAreaRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="BuildingCoverageRatio" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="MainUse" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
- <Property Name="CompletionDate" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="Standard" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="MainUseIndex" Type="Int32" />
- <Property Name="HDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="CDD" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsPeopleIncrease" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="CmSite" ToRole="BemsPeopleIncrease" />
- <NavigationProperty Name="BemsRentalRate" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="CmSite" ToRole="BemsRentalRate" />
- <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="CmSite" ToRole="BemsSitePrice" />
- <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="CmSite" ToRole="BemsSitePriceHistory" />
- <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="CmSite" ToRole="BemsAlarmSetting" />
- <NavigationProperty Name="BemsEnergyConfigPercentMonth" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="CmSite" ToRole="BemsEnergyConfigPercentMonth" />
- <NavigationProperty Name="BemsEnergyConfigPercentWeek" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="CmSite" ToRole="BemsEnergyConfigPercentWeek" />
- <NavigationProperty Name="BemsEnergyDailyRegression" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="CmSite" ToRole="BemsEnergyDailyRegression" />
- </EntityType>
- <Association Name="FK_BemsPeakHIstory_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsPeakHistory" Role="BemsPeakHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsPeakHistory">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPeakInfo_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsPeakInfo" Role="BemsPeakInfo" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsPeakInfo">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmBuildin__SiteI__3BFFE745">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmCompany__SiteI__336AA144">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmCompany" Role="CmCompany" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmCompany">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacilityTempSet_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmFacilityTempSet">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFile__SiteId__2759D01A">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmFile">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__0BB1B5A5">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHoliday">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__65AC084E">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmHoliday" Role="CmHoliday" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHoliday">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__10766AC2">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHolidayCustom">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__66A02C87">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmHolidayCustom" Role="CmHolidayCustom" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHolidayCustom">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__0D99FE17">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmHolidayWeekend" Role="CmHolidayWeekend" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHolidayWeekend">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolCourse_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolCourse" Role="CmPatrolCourse" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolCourse">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolCoursePos_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolCoursePos" Role="CmPatrolCoursePos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolCoursePos">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolGroup_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolGroup" Role="CmPatrolGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolGroup">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistoryPos_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolHistoryPos" Role="CmPatrolHistoryPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolHistoryPos">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPlan_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolPlan" Role="CmPatrolPlan" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolPlan">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPos_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolPos" Role="CmPatrolPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolSchedule_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolSchedule">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolType_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmPositio__SiteI__6A70BD6B">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPosition">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserPos__SiteI__44952D46">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPosition" Role="CmPosition" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPosition">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmUserGro__SiteI__53D770D6">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmUserGroup" Role="CmUserGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmUserGroup">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__6B79F03D">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawingCodeGroup">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__6C6E1476">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawingCodeType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__6D6238AF">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsDrawing" Role="FmsDrawing" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawing">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__6F357288">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsDrawingCodeGroup" Role="FmsDrawingCodeGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawingCodeGroup">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsDrawin__SiteI__702996C1">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsDrawingCodeType" Role="FmsDrawingCodeType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawingCodeType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityCodeClass__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsFacilityCodeClass">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsLicense__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsLicense" Role="FmsLicense" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsLicense">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCarriedForward__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialCarriedForward" Role="FmsMaterialCarriedForward" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCarriedForward">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeClass__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialCodeClass" Role="FmsMaterialCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeLocation__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialCodeLocation" Role="FmsMaterialCodeLocation" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeLocation">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialCodeType__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialCodeType" Role="FmsMaterialCodeType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialOrder__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialPurchaseOrder" Role="FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialPurchasingRequest__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialPurchaseRequest" Role="FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialStored__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialStored" Role="FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialTradeCompany__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialTradeCompany" Role="FmsMaterialTradeCompany" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialTradeCompany">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterialWarehouse__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeCauseClass__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkCodeCauseClass" Role="FmsWorkCodeCauseClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeCauseClass">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeCycleUnit__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeCycleUnit">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeEmergency__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkCodeEmergency" Role="FmsWorkCodeEmergency" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeEmergency">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeHolidayWorkType__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeHolidayWorkType">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkCodeLegalInspectionAgency" Role="FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeLegalInspectionAgency">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkOrder__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkOrder" Role="FmsWorkOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmZoneTempHumiSet_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmZoneTempHumiSet" Role="CmZoneTempHumiSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmZoneTempHumiSet">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterial" Role="FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsMaterialRelease" Role="FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="RId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="RegisterUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="MakeDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ConfirmUserId1" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ConfirmUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsReport_CmBusinessField" FromRole="FmsReport" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK_FmsReport_CmFile" FromRole="FmsReport" ToRole="CmFile" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_FmsReport_CmSite" FromRole="FmsReport" ToRole="CmSite" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsReport_CmUser" FromRole="FmsReport" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsReport_CmUser1" FromRole="FmsReport" ToRole="CmUser" />
- <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_FmsReport_CmUser2" FromRole="FmsReport" ToRole="CmUser" />
- </EntityType>
- <Association Name="FK_FmsReport_CmBusinessField">
- <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
- <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmFile">
- <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmUser1">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConfirmUserId1" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsReport_CmUser2">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsReport" Role="FmsReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConfirmUserId2" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmServiceEnergyCalcMonth">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="calDate" />
- <PropertyRef Name="ServiceTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
- <Property Name="Value" Type="Double" />
- </EntityType>
- <EntityType Name="CmServiceEnergyCalcDay">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="calDate" />
- <PropertyRef Name="ServiceTypeId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="calDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
- <Property Name="Value" Type="Double" />
- </EntityType>
- <EntityType Name="CmPatrolHistory">
- <Key>
- <PropertyRef Name="PatrolHistoryId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PatrolHistoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ScheduleId" Type="Int32" Nullable="false" />
- <Property Name="startDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="endDate" Type="DateTime" Precision="3" />
- <Property Name="resultTypeId" Type="Int32" Nullable="false" />
- <Property Name="resultDesc" Type="String" MaxLength="1024" FixedLength="false" Unicode="false" />
- <Property Name="resultPosCnt" Type="Int32" />
- <Property Name="resultNormalCnt" Type="Int32" />
- <Property Name="resultAbnormalCnt" Type="Int32" />
- <NavigationProperty Name="CmPatrolSchedule" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolSchedule" FromRole="CmPatrolHistory" ToRole="CmPatrolSchedule" />
- <NavigationProperty Name="CmPatrolType" Relationship="iBemsModel.FK_CmPatrolHistory_CmPatrolType" FromRole="CmPatrolHistory" ToRole="CmPatrolType" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmPatrolHistory_CmSite" FromRole="CmPatrolHistory" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
- <End Type="iBemsModel.CmPatrolSchedule" Role="CmPatrolSchedule" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ScheduleId" />
- </Principal>
- <Dependent Role="CmPatrolHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ScheduleId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistory_CmPatrolType">
- <End Type="iBemsModel.CmPatrolType" Role="CmPatrolType" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPatrolType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolTypeId" />
- </Principal>
- <Dependent Role="CmPatrolHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="resultTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistory_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmPatrolHistory" Role="CmPatrolHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolHistory">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsReportFormat">
- <Key>
- <PropertyRef Name="ReportFormatId" />
- <PropertyRef Name="parts" />
- </Key>
- <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
- <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
- <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
- <Property Name="parts" Type="Int32" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsWorkSchedule">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="WorkScheduleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="WorkTypeId" Type="Int32" Nullable="false" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="InspectionAgencyId" Type="Int32" />
- <Property Name="CycleSize" Type="Int32" Nullable="false" />
- <Property Name="CycleUnitId" Type="Int32" Nullable="false" />
- <Property Name="HolidayWorkTypeId" Type="Int32" Nullable="false" />
- <Property Name="WorkDueDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="UpdateUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" Nullable="false" />
- <Property Name="IsAutoOrder" Type="Boolean" Nullable="false" />
- <Property Name="Content" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK__FmsWorkSchedule__CmBusinessField" FromRole="FmsWorkSchedule" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__FmsWorkSchedule__CmUser" FromRole="FmsWorkSchedule" ToRole="CmUser" />
- <NavigationProperty Name="FmsWorkCodeCycleUnit" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeCycleUnit" />
- <NavigationProperty Name="FmsWorkCodeHolidayWorkType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeHolidayWorkType" />
- <NavigationProperty Name="FmsWorkCodeType" Relationship="iBemsModel.FK__FmsWorkSchedule__FmsWorkCodeWorkType" FromRole="FmsWorkSchedule" ToRole="FmsWorkCodeType" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK__FmsWorkRequest__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK__FmsWorkScheduleToFacility__FmsWorkSchedule" FromRole="FmsWorkSchedule" ToRole="FmsWorkScheduleToFacility" />
- <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="FmsWorkSchedule" ToRole="CmPartner" />
- </EntityType>
- <Association Name="FK__FmsWorkSchedule__CmBusinessField">
- <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkSchedule__CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UpdateUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
- <End Type="iBemsModel.FmsWorkCodeCycleUnit" Role="FmsWorkCodeCycleUnit" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeCycleUnit">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
- <End Type="iBemsModel.FmsWorkCodeHolidayWorkType" Role="FmsWorkCodeHolidayWorkType" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeHolidayWorkType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayWorkTypeId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayWorkTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType">
- <End Type="iBemsModel.FmsWorkCodeType" Role="FmsWorkCodeType" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeType">
- <PropertyRef Name="WorkTypeId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="WorkTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkRequest__FmsWorkSchedule">
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Principal>
- <Dependent Role="FmsWorkScheduleToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmMenu">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MenuId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="MenuId" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Used" Type="Boolean" />
- <Property Name="MenuPath" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_CmMenu_CmSite" FromRole="CmMenu" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_FmsWorkResultCheckItem_CmFile">
- <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId1" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkResultCheckItem_CmFile1">
- <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId2" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmMenu_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.CmMenu" Role="CmMenu" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmMenu">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsChartInfo">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="ChartId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="ChartId" Type="Int32" Nullable="false" />
- <Property Name="LAxTitle" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="RAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="XAxTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="XSFmId" Type="Int32" />
- <Property Name="XSType" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="LSFmId1" Type="Int32" Nullable="false" />
- <Property Name="LSName1" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="LSType1" Type="String" Nullable="false" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="LSFmId2" Type="Int32" />
- <Property Name="LSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="LSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="LSFmId3" Type="Int32" />
- <Property Name="LSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="LSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="LSFmId4" Type="Int32" />
- <Property Name="LSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="LSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="RSFmId1" Type="Int32" />
- <Property Name="RSName1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="RSType1" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="RSFmId2" Type="Int32" />
- <Property Name="RSName2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="RSType2" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="RSFmId3" Type="Int32" />
- <Property Name="RSName3" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="RSType3" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="RSFmId4" Type="Int32" />
- <Property Name="RSName4" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="RSType4" Type="String" MaxLength="16" FixedLength="false" Unicode="true" />
- <Property Name="Title" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="UseX" Type="Boolean" />
- <Property Name="UseLAxMinMax" Type="Boolean" />
- <Property Name="UseRAxMinMax" Type="Boolean" />
- <Property Name="UseXAxMinMax" Type="Boolean" />
- <Property Name="LAxMin" Type="Double" />
- <Property Name="LAxMax" Type="Double" />
- <Property Name="RAxMin" Type="Double" />
- <Property Name="RAxMax" Type="Double" />
- <Property Name="XAxMin" Type="Double" />
- <Property Name="XAxMax" Type="Double" />
- <Property Name="Palette" Type="String" Nullable="false" MaxLength="32" FixedLength="false" Unicode="true" />
- <Property Name="UseChart" Type="Boolean" />
- <Property Name="UseLCTLine" Type="Boolean" Nullable="false" />
- <Property Name="LCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="LCTLineValue" Type="Double" />
- <Property Name="UseRCTLine" Type="Boolean" Nullable="false" />
- <Property Name="RCTLineTitle" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="RCTLineValue" Type="Double" />
- <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsChartInfo_BemsFacilityType" FromRole="BemsChartInfo" ToRole="BemsFacilityType" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsChartInfo_CmSite" FromRole="BemsChartInfo" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_BemsChartInfo_BemsFacilityType">
- <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
- <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsChartInfo">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsChartInfo_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsChartInfo" Role="BemsChartInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsChartInfo">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsPeopleIncrease">
- <Key>
- <PropertyRef Name="Date" />
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsPeopleIncrease_CmSite" FromRole="BemsPeopleIncrease" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="BemsPriceCode">
- <Key>
- <PropertyRef Name="PriceCode" />
- </Key>
- <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
- <Property Name="PriceCodeDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="Unit" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePrice" />
- <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsPriceCode" ToRole="BemsSitePriceHistory" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsPriceCode" ToRole="BemsFuelType" />
- </EntityType>
- <EntityType Name="BemsPriceFormula">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FormulaId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FormulaId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsFormula" FromRole="BemsPriceFormula" ToRole="BemsFormula" />
- <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceFormula" ToRole="BemsPriceType" />
- </EntityType>
- <EntityType Name="BemsPriceMeta">
- <Key>
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="PublishDate" />
- </Key>
- <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
- <Property Name="PublishDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="BasePrice" Type="Int32" />
- <Property Name="C01_00" Type="Double" />
- <Property Name="C01_01" Type="Double" />
- <Property Name="C01_02" Type="Double" />
- <Property Name="C01_03" Type="Double" />
- <Property Name="C01_04" Type="Double" />
- <Property Name="C01_05" Type="Double" />
- <Property Name="C01_06" Type="Double" />
- <Property Name="C01_07" Type="Double" />
- <Property Name="C01_08" Type="Double" />
- <Property Name="C01_09" Type="Double" />
- <Property Name="C01_10" Type="Double" />
- <Property Name="C01_11" Type="Double" />
- <Property Name="C01_12" Type="Double" />
- <Property Name="C01_13" Type="Double" />
- <Property Name="C01_14" Type="Double" />
- <Property Name="C01_15" Type="Double" />
- <Property Name="C01_16" Type="Double" />
- <Property Name="C01_17" Type="Double" />
- <Property Name="C01_18" Type="Double" />
- <Property Name="C01_19" Type="Double" />
- <Property Name="C01_20" Type="Double" />
- <Property Name="C01_21" Type="Double" />
- <Property Name="C01_22" Type="Double" />
- <Property Name="C01_23" Type="Double" />
- <Property Name="C02_00" Type="Double" />
- <Property Name="C02_01" Type="Double" />
- <Property Name="C02_02" Type="Double" />
- <Property Name="C02_03" Type="Double" />
- <Property Name="C02_04" Type="Double" />
- <Property Name="C02_05" Type="Double" />
- <Property Name="C02_06" Type="Double" />
- <Property Name="C02_07" Type="Double" />
- <Property Name="C02_08" Type="Double" />
- <Property Name="C02_09" Type="Double" />
- <Property Name="C02_10" Type="Double" />
- <Property Name="C02_11" Type="Double" />
- <Property Name="C02_12" Type="Double" />
- <Property Name="C02_13" Type="Double" />
- <Property Name="C02_14" Type="Double" />
- <Property Name="C02_15" Type="Double" />
- <Property Name="C02_16" Type="Double" />
- <Property Name="C02_17" Type="Double" />
- <Property Name="C02_18" Type="Double" />
- <Property Name="C02_19" Type="Double" />
- <Property Name="C02_20" Type="Double" />
- <Property Name="C02_21" Type="Double" />
- <Property Name="C02_22" Type="Double" />
- <Property Name="C02_23" Type="Double" />
- <Property Name="C03_00" Type="Double" />
- <Property Name="C03_01" Type="Double" />
- <Property Name="C03_02" Type="Double" />
- <Property Name="C03_03" Type="Double" />
- <Property Name="C03_04" Type="Double" />
- <Property Name="C03_05" Type="Double" />
- <Property Name="C03_06" Type="Double" />
- <Property Name="C03_07" Type="Double" />
- <Property Name="C03_08" Type="Double" />
- <Property Name="C03_09" Type="Double" />
- <Property Name="C03_10" Type="Double" />
- <Property Name="C03_11" Type="Double" />
- <Property Name="C03_12" Type="Double" />
- <Property Name="C03_13" Type="Double" />
- <Property Name="C03_14" Type="Double" />
- <Property Name="C03_15" Type="Double" />
- <Property Name="C03_16" Type="Double" />
- <Property Name="C03_17" Type="Double" />
- <Property Name="C03_18" Type="Double" />
- <Property Name="C03_19" Type="Double" />
- <Property Name="C03_20" Type="Double" />
- <Property Name="C03_21" Type="Double" />
- <Property Name="C03_22" Type="Double" />
- <Property Name="C03_23" Type="Double" />
- <Property Name="C04_00" Type="Double" />
- <Property Name="C04_01" Type="Double" />
- <Property Name="C04_02" Type="Double" />
- <Property Name="C04_03" Type="Double" />
- <Property Name="C04_04" Type="Double" />
- <Property Name="C04_05" Type="Double" />
- <Property Name="C04_06" Type="Double" />
- <Property Name="C04_07" Type="Double" />
- <Property Name="C04_08" Type="Double" />
- <Property Name="C04_09" Type="Double" />
- <Property Name="C04_10" Type="Double" />
- <Property Name="C04_11" Type="Double" />
- <Property Name="C04_12" Type="Double" />
- <Property Name="C04_13" Type="Double" />
- <Property Name="C04_14" Type="Double" />
- <Property Name="C04_15" Type="Double" />
- <Property Name="C04_16" Type="Double" />
- <Property Name="C04_17" Type="Double" />
- <Property Name="C04_18" Type="Double" />
- <Property Name="C04_19" Type="Double" />
- <Property Name="C04_20" Type="Double" />
- <Property Name="C04_21" Type="Double" />
- <Property Name="C04_22" Type="Double" />
- <Property Name="C04_23" Type="Double" />
- <Property Name="C05_00" Type="Double" />
- <Property Name="C05_01" Type="Double" />
- <Property Name="C05_02" Type="Double" />
- <Property Name="C05_03" Type="Double" />
- <Property Name="C05_04" Type="Double" />
- <Property Name="C05_05" Type="Double" />
- <Property Name="C05_06" Type="Double" />
- <Property Name="C05_07" Type="Double" />
- <Property Name="C05_08" Type="Double" />
- <Property Name="C05_09" Type="Double" />
- <Property Name="C05_10" Type="Double" />
- <Property Name="C05_11" Type="Double" />
- <Property Name="C05_12" Type="Double" />
- <Property Name="C05_13" Type="Double" />
- <Property Name="C05_14" Type="Double" />
- <Property Name="C05_15" Type="Double" />
- <Property Name="C05_16" Type="Double" />
- <Property Name="C05_17" Type="Double" />
- <Property Name="C05_18" Type="Double" />
- <Property Name="C05_19" Type="Double" />
- <Property Name="C05_20" Type="Double" />
- <Property Name="C05_21" Type="Double" />
- <Property Name="C05_22" Type="Double" />
- <Property Name="C05_23" Type="Double" />
- <Property Name="C06_00" Type="Double" />
- <Property Name="C06_01" Type="Double" />
- <Property Name="C06_02" Type="Double" />
- <Property Name="C06_03" Type="Double" />
- <Property Name="C06_04" Type="Double" />
- <Property Name="C06_05" Type="Double" />
- <Property Name="C06_06" Type="Double" />
- <Property Name="C06_07" Type="Double" />
- <Property Name="C06_08" Type="Double" />
- <Property Name="C06_09" Type="Double" />
- <Property Name="C06_10" Type="Double" />
- <Property Name="C06_11" Type="Double" />
- <Property Name="C06_12" Type="Double" />
- <Property Name="C06_13" Type="Double" />
- <Property Name="C06_14" Type="Double" />
- <Property Name="C06_15" Type="Double" />
- <Property Name="C06_16" Type="Double" />
- <Property Name="C06_17" Type="Double" />
- <Property Name="C06_18" Type="Double" />
- <Property Name="C06_19" Type="Double" />
- <Property Name="C06_20" Type="Double" />
- <Property Name="C06_21" Type="Double" />
- <Property Name="C06_22" Type="Double" />
- <Property Name="C06_23" Type="Double" />
- <Property Name="C07_00" Type="Double" />
- <Property Name="C07_01" Type="Double" />
- <Property Name="C07_02" Type="Double" />
- <Property Name="C07_03" Type="Double" />
- <Property Name="C07_04" Type="Double" />
- <Property Name="C07_05" Type="Double" />
- <Property Name="C07_06" Type="Double" />
- <Property Name="C07_07" Type="Double" />
- <Property Name="C07_08" Type="Double" />
- <Property Name="C07_09" Type="Double" />
- <Property Name="C07_10" Type="Double" />
- <Property Name="C07_11" Type="Double" />
- <Property Name="C07_12" Type="Double" />
- <Property Name="C07_13" Type="Double" />
- <Property Name="C07_14" Type="Double" />
- <Property Name="C07_15" Type="Double" />
- <Property Name="C07_16" Type="Double" />
- <Property Name="C07_17" Type="Double" />
- <Property Name="C07_18" Type="Double" />
- <Property Name="C07_19" Type="Double" />
- <Property Name="C07_20" Type="Double" />
- <Property Name="C07_21" Type="Double" />
- <Property Name="C07_22" Type="Double" />
- <Property Name="C07_23" Type="Double" />
- <Property Name="C08_00" Type="Double" />
- <Property Name="C08_01" Type="Double" />
- <Property Name="C08_02" Type="Double" />
- <Property Name="C08_03" Type="Double" />
- <Property Name="C08_04" Type="Double" />
- <Property Name="C08_05" Type="Double" />
- <Property Name="C08_06" Type="Double" />
- <Property Name="C08_07" Type="Double" />
- <Property Name="C08_08" Type="Double" />
- <Property Name="C08_09" Type="Double" />
- <Property Name="C08_10" Type="Double" />
- <Property Name="C08_11" Type="Double" />
- <Property Name="C08_12" Type="Double" />
- <Property Name="C08_13" Type="Double" />
- <Property Name="C08_14" Type="Double" />
- <Property Name="C08_15" Type="Double" />
- <Property Name="C08_16" Type="Double" />
- <Property Name="C08_17" Type="Double" />
- <Property Name="C08_18" Type="Double" />
- <Property Name="C08_19" Type="Double" />
- <Property Name="C08_20" Type="Double" />
- <Property Name="C08_21" Type="Double" />
- <Property Name="C08_22" Type="Double" />
- <Property Name="C08_23" Type="Double" />
- <Property Name="C09_00" Type="Double" />
- <Property Name="C09_01" Type="Double" />
- <Property Name="C09_02" Type="Double" />
- <Property Name="C09_03" Type="Double" />
- <Property Name="C09_04" Type="Double" />
- <Property Name="C09_05" Type="Double" />
- <Property Name="C09_06" Type="Double" />
- <Property Name="C09_07" Type="Double" />
- <Property Name="C09_08" Type="Double" />
- <Property Name="C09_09" Type="Double" />
- <Property Name="C09_10" Type="Double" />
- <Property Name="C09_11" Type="Double" />
- <Property Name="C09_12" Type="Double" />
- <Property Name="C09_13" Type="Double" />
- <Property Name="C09_14" Type="Double" />
- <Property Name="C09_15" Type="Double" />
- <Property Name="C09_16" Type="Double" />
- <Property Name="C09_17" Type="Double" />
- <Property Name="C09_18" Type="Double" />
- <Property Name="C09_19" Type="Double" />
- <Property Name="C09_20" Type="Double" />
- <Property Name="C09_21" Type="Double" />
- <Property Name="C09_22" Type="Double" />
- <Property Name="C09_23" Type="Double" />
- <Property Name="C10_00" Type="Double" />
- <Property Name="C10_01" Type="Double" />
- <Property Name="C10_02" Type="Double" />
- <Property Name="C10_03" Type="Double" />
- <Property Name="C10_04" Type="Double" />
- <Property Name="C10_05" Type="Double" />
- <Property Name="C10_06" Type="Double" />
- <Property Name="C10_07" Type="Double" />
- <Property Name="C10_08" Type="Double" />
- <Property Name="C10_09" Type="Double" />
- <Property Name="C10_10" Type="Double" />
- <Property Name="C10_11" Type="Double" />
- <Property Name="C10_12" Type="Double" />
- <Property Name="C10_13" Type="Double" />
- <Property Name="C10_14" Type="Double" />
- <Property Name="C10_15" Type="Double" />
- <Property Name="C10_16" Type="Double" />
- <Property Name="C10_17" Type="Double" />
- <Property Name="C10_18" Type="Double" />
- <Property Name="C10_19" Type="Double" />
- <Property Name="C10_20" Type="Double" />
- <Property Name="C10_21" Type="Double" />
- <Property Name="C10_22" Type="Double" />
- <Property Name="C10_23" Type="Double" />
- <Property Name="C11_00" Type="Double" />
- <Property Name="C11_01" Type="Double" />
- <Property Name="C11_02" Type="Double" />
- <Property Name="C11_03" Type="Double" />
- <Property Name="C11_04" Type="Double" />
- <Property Name="C11_05" Type="Double" />
- <Property Name="C11_06" Type="Double" />
- <Property Name="C11_07" Type="Double" />
- <Property Name="C11_08" Type="Double" />
- <Property Name="C11_09" Type="Double" />
- <Property Name="C11_10" Type="Double" />
- <Property Name="C11_11" Type="Double" />
- <Property Name="C11_12" Type="Double" />
- <Property Name="C11_13" Type="Double" />
- <Property Name="C11_14" Type="Double" />
- <Property Name="C11_15" Type="Double" />
- <Property Name="C11_16" Type="Double" />
- <Property Name="C11_17" Type="Double" />
- <Property Name="C11_18" Type="Double" />
- <Property Name="C11_19" Type="Double" />
- <Property Name="C11_20" Type="Double" />
- <Property Name="C11_21" Type="Double" />
- <Property Name="C11_22" Type="Double" />
- <Property Name="C11_23" Type="Double" />
- <Property Name="C12_00" Type="Double" />
- <Property Name="C12_01" Type="Double" />
- <Property Name="C12_02" Type="Double" />
- <Property Name="C12_03" Type="Double" />
- <Property Name="C12_04" Type="Double" />
- <Property Name="C12_05" Type="Double" />
- <Property Name="C12_06" Type="Double" />
- <Property Name="C12_07" Type="Double" />
- <Property Name="C12_08" Type="Double" />
- <Property Name="C12_09" Type="Double" />
- <Property Name="C12_10" Type="Double" />
- <Property Name="C12_11" Type="Double" />
- <Property Name="C12_12" Type="Double" />
- <Property Name="C12_13" Type="Double" />
- <Property Name="C12_14" Type="Double" />
- <Property Name="C12_15" Type="Double" />
- <Property Name="C12_16" Type="Double" />
- <Property Name="C12_17" Type="Double" />
- <Property Name="C12_18" Type="Double" />
- <Property Name="C12_19" Type="Double" />
- <Property Name="C12_20" Type="Double" />
- <Property Name="C12_21" Type="Double" />
- <Property Name="C12_22" Type="Double" />
- <Property Name="C12_23" Type="Double" />
- <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceMeta" ToRole="BemsPriceType" />
- </EntityType>
- <EntityType Name="BemsPriceType">
- <Key>
- <PropertyRef Name="PriceTypeId" />
- </Key>
- <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
- <Property Name="PriceTypeIdDesc" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <NavigationProperty Name="BemsPriceFormula" Relationship="iBemsModel.FK_BemsPriceFormula_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceFormula" />
- <NavigationProperty Name="BemsPriceMeta" Relationship="iBemsModel.FK_BemsPriceMeta_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsPriceMeta" />
- <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePriceHistory" />
- <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsPriceType" ToRole="BemsSitePrice" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsPriceType" ToRole="BemsFuelType" />
- </EntityType>
- <EntityType Name="BemsRentalRate">
- <Key>
- <PropertyRef Name="Date" />
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="Date" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="m1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m2" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m3" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m4" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m5" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m6" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m7" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m8" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m9" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m10" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m11" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="m12" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsRentalRate_CmSite" FromRole="BemsRentalRate" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="BemsSitePrice">
- <Key>
- <PropertyRef Name="SiteID" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="PriceCode" />
- </Key>
- <Property Name="SiteID" Type="Int32" Nullable="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
- <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
- <Property Name="UseYN" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceCode" FromRole="BemsSitePrice" ToRole="BemsPriceCode" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePrice_CmSite1" FromRole="BemsSitePrice" ToRole="CmSite" />
- <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePrice_BemsPriceType" FromRole="BemsSitePrice" ToRole="BemsPriceType" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsSitePrice" ToRole="BemsFuelType" />
- </EntityType>
- <EntityType Name="BemsSitePriceHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="PriceCode" />
- <PropertyRef Name="PayDate" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="PriceTypeId" Type="Int32" Nullable="false" />
- <Property Name="PriceCode" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
- <Property Name="PriceValue" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
- <Property Name="PayDate" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="false" />
- <Property Name="StartDate" Type="DateTime" Precision="3" />
- <Property Name="EndDate" Type="DateTime" Precision="3" />
- <Property Name="PayCharge" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceCode" FromRole="BemsSitePriceHistory" ToRole="BemsPriceCode" />
- <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsPriceType" FromRole="BemsSitePriceHistory" ToRole="BemsPriceType" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsSitePriceHistory_CmSite" FromRole="BemsSitePriceHistory" ToRole="CmSite" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsSitePriceHistory" ToRole="BemsFuelType" />
- </EntityType>
- <Association Name="FK_BemsPriceFormula_BemsFormula">
- <End Type="iBemsModel.BemsFormula" Role="BemsFormula" Multiplicity="1" />
- <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFormula">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Principal>
- <Dependent Role="BemsPriceFormula">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPeopleIncrease_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsPeopleIncrease" Role="BemsPeopleIncrease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsPeopleIncrease">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_BemsPriceCode">
- <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceCode">
- <PropertyRef Name="PriceCode" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="PriceCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
- <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceCode">
- <PropertyRef Name="PriceCode" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="PriceCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceFormula_BemsPriceType">
- <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
- <End Type="iBemsModel.BemsPriceFormula" Role="BemsPriceFormula" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsPriceFormula">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceMeta_BemsPriceType">
- <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
- <End Type="iBemsModel.BemsPriceMeta" Role="BemsPriceMeta" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsPriceMeta">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
- <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsRentalRate_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsRentalRate" Role="BemsRentalRate" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsRentalRate">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_CmSite1">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="SiteID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_BemsPriceType">
- <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsMonitoringPointConfig">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="IsAccumulated" Type="Boolean" Nullable="false" />
- <Property Name="IsSampled" Type="Boolean" Nullable="false" />
- <Property Name="SaveMode" Type="Int32" Nullable="false" />
- <Property Name="ControlPointName" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
- <Property Name="IsConverted" Type="Boolean" />
- <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsFacilityType1" FromRole="BemsMonitoringPointConfig" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPointConfig_BemsMonitoringPoint" FromRole="BemsMonitoringPointConfig" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <Association Name="FK_BemsMonitoringPointConfig_BemsFacilityType1">
- <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
- <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointConfig">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
- <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
- <End Type="iBemsModel.BemsMonitoringPointConfig" Role="BemsMonitoringPointConfig" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointConfig">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsAlarmSetting">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="FormulaId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="FormulaId" Type="Int32" Nullable="false" />
- <Property Name="FacilityName" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
- <Property Name="PointName" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="UseUpperLimit" Type="Boolean" Nullable="false" />
- <Property Name="UpperLimit" Type="Double" />
- <Property Name="UseLowerLimit" Type="Boolean" Nullable="false" />
- <Property Name="LowerLimit" Type="Double" />
- <Property Name="UseAlarm" Type="Boolean" Nullable="false" />
- <Property Name="UseSMS" Type="Boolean" Nullable="false" />
- <Property Name="UseEmail" Type="Boolean" Nullable="false" />
- <Property Name="AlarmGroupName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Content" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK_BemsAlarmSetting_BemsFacilityType" FromRole="BemsAlarmSetting" ToRole="BemsFacilityType" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsAlarmSetting_CmSite1" FromRole="BemsAlarmSetting" ToRole="CmSite" />
- <NavigationProperty Name="BemsAlarmLog" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmSetting" ToRole="BemsAlarmLog" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="BemsAlarmSetting" ToRole="CmFacility" />
- </EntityType>
- <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
- <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
- <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsAlarmSetting">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsAlarmSetting_CmSite1">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsAlarmSetting">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsAlarmLog">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="FormulaId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="FormulaId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CurrentValue" Type="Double" />
- <Property Name="SMSResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
- <Property Name="EmailResult" Type="String" MaxLength="2" FixedLength="false" Unicode="true" />
- <Property Name="Conform" Type="Boolean" />
- <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmLog_BemsAlarmSetting" FromRole="BemsAlarmLog" ToRole="BemsAlarmSetting" />
- </EntityType>
- <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
- <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="1" />
- <End Type="iBemsModel.BemsAlarmLog" Role="BemsAlarmLog" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsAlarmSetting">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="FormulaId" />
- </Principal>
- <Dependent Role="BemsAlarmLog">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="FormulaId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsAlarmGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AlarmGroupId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="AlarmGroupId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="BemsAlarmGroupUser">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AlarmGroupId" />
- <PropertyRef Name="UserId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="AlarmGroupId" Type="Int32" Nullable="false" />
- <Property Name="UserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="BemsEnergyCost">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PowerConsumption1" Type="Double" />
- <Property Name="PowerConsumption2" Type="Double" />
- <Property Name="GasConsumption" Type="Double" />
- <Property Name="GasHeatQuantity" Type="Double" />
- <Property Name="PowerPriceTypeId" Type="Int32" />
- <Property Name="GasPriceTypeId" Type="Int32" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="BemsEnergyCost" ToRole="CmFacility" />
- </EntityType>
- <EntityType Name="BemsEnergyConfigPercentMonth">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="Month" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Year" Type="Int32" Nullable="false" />
- <Property Name="Month" Type="Int32" Nullable="false" />
- <Property Name="Electricity" Type="Double" />
- <Property Name="Gas" Type="Double" />
- <Property Name="Water" Type="Double" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7954A4F6" FromRole="BemsEnergyConfigPercentMonth" ToRole="CmSite" />
- </EntityType>
- <EntityType Name="BemsEnergyConfigPercentWeek">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="Week" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Year" Type="Int32" Nullable="false" />
- <Property Name="Week" Type="Int32" Nullable="false" />
- <Property Name="Electricity" Type="Double" />
- <Property Name="Gas" Type="Double" />
- <Property Name="Water" Type="Double" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK__BemsEnerg__SiteI__7C3111A1" FromRole="BemsEnergyConfigPercentWeek" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyConfigPercentMonth" Role="BemsEnergyConfigPercentMonth" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsEnergyConfigPercentMonth">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsEnerg__SiteI__7C3111A1">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyConfigPercentWeek" Role="BemsEnergyConfigPercentWeek" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsEnergyConfigPercentWeek">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsEnergyDaily">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="ServiceTypeId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="CreatedDate" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="BuildingId" Type="Int32" Nullable="false" />
- <Property Name="ServiceTypeId" Type="Int16" Nullable="false" />
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="Prediction" Type="Double" />
- <Property Name="Measurement" Type="Double" />
- <Property Name="Goal" Type="Double" />
- <Property Name="Prediction_Regression" Type="Double" />
- <Property Name="MeanT" Type="Double" />
- <Property Name="HDD" Type="Double" />
- <Property Name="CDD" Type="Double" />
- <NavigationProperty Name="BemsServiceType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsServiceType" FromRole="BemsEnergyDaily" ToRole="BemsServiceType" />
- <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__BemsEnergyDaily__CmBuilding" FromRole="BemsEnergyDaily" ToRole="CmBuilding" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsEnergyDaily" ToRole="BemsFuelType" />
- </EntityType>
- <Association Name="FK__BemsEnergyDaily__BemsServiceType">
- <End Type="iBemsModel.BemsServiceType" Role="BemsServiceType" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsServiceType">
- <PropertyRef Name="ServiceTypeId" />
- </Principal>
- <Dependent Role="BemsEnergyDaily">
- <PropertyRef Name="ServiceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsEnergyDaily__CmBuilding">
- <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="BemsEnergyDaily">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsEnergyDailyRegression">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Weekday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Weekday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Weekday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Weekday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Weekday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Weekday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Holiday_Power" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Holiday_Power_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Holiday_Gas" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Holiday_Gas_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Holiday_Water" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Holiday_Water_Temp" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="IsRegression" Type="Boolean" />
- <NavigationProperty Name="CmSite" Relationship="iBemsModel.FK_BemsEnergyDailyRegression_CmSite" FromRole="BemsEnergyDailyRegression" ToRole="CmSite" />
- </EntityType>
- <Association Name="FK_BemsEnergyDailyRegression_CmSite">
- <End Type="iBemsModel.CmSite" Role="CmSite" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyDailyRegression" Role="BemsEnergyDailyRegression" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsEnergyDailyRegression">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="WeatherDongNaeForecast">
- <Key>
- <PropertyRef Name="BaseTime" />
- <PropertyRef Name="ForecastTime" />
- </Key>
- <Property Name="BaseTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="nx" Type="Int32" />
- <Property Name="ny" Type="Int32" />
- <Property Name="ForecastTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="POP" Type="Double" />
- <Property Name="PTY" Type="Double" />
- <Property Name="R06" Type="Double" />
- <Property Name="REH" Type="Double" />
- <Property Name="S06" Type="Double" />
- <Property Name="SKY" Type="Double" />
- <Property Name="T3H" Type="Double" />
- <Property Name="TMN" Type="Double" />
- <Property Name="TMX" Type="Double" />
- <Property Name="UUU" Type="Double" />
- <Property Name="VVV" Type="Double" />
- <Property Name="VEC" Type="Double" />
- <Property Name="WSD" Type="Double" />
- <Property Name="Type" Type="Int32" />
- <Property Name="DBTime" Type="DateTime" Precision="3" />
- <Property Name="Version" Type="Int32" />
- </EntityType>
- <EntityType Name="FmsEquipmentRentInfo">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentRentId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="EquipmentRentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="RentUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="RegisterDate" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
- <Property Name="RentDate" Type="DateTime" Precision="3" />
- <Property Name="ReturnDueDate" Type="DateTime" Precision="3" />
- <Property Name="ReturnFixDate" Type="DateTime" Precision="3" />
- <Property Name="EquipmentStateTypeId" Type="Int16" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Title" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Name="RentUser" Type="String" MaxLength="128" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_CmUser1" FromRole="FmsEquipmentRentInfo" ToRole="CmUser" />
- <NavigationProperty Name="FmsEquipmentCodeStateType" Relationship="iBemsModel.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentCodeStateType" />
- <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipmentRentInfo" FromRole="FmsEquipmentRentInfo" ToRole="FmsEquipmentHistory" />
- </EntityType>
- <Association Name="FK_FmsEquipmentRentInfo_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsEquipmentRentInfo">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentRentInfo_CmUser1">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsEquipmentRentInfo">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RentUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
- <End Type="iBemsModel.FmsEquipmentCodeStateType" Role="FmsEquipmentCodeStateType" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipmentCodeStateType">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Principal>
- <Dependent Role="FmsEquipmentRentInfo">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
- <End Type="iBemsModel.FmsEquipmentRentInfo" Role="FmsEquipmentRentInfo" Multiplicity="0..1">
- <OnDelete Action="Cascade" />
- </End>
- <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipmentRentInfo">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentRentId" />
- </Principal>
- <Dependent Role="FmsEquipmentHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentRentId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsControlAHUTempConfig">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="MaxTemperature" Type="Double" Nullable="false" />
- <Property Name="MinTemperature" Type="Double" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFuelType">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- </Key>
- <Property Name="FuelTypeId" Type="Int16" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BemsEnergyDaily" Relationship="iBemsModel.FK__BemsEnergyDaily__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsEnergyDaily" />
- <NavigationProperty Name="BemsFactorCo2" Relationship="iBemsModel.FK__BemsFactorCo2__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorCo2" />
- <NavigationProperty Name="BemsFactorToe" Relationship="iBemsModel.FK__BemsFactorToe__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsFactorToe" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPoint__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="BemsMonitoringPointBaseData" Relationship="iBemsModel.FK__BemsMonitoringPointBaseData__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsMonitoringPointBaseData" />
- <NavigationProperty Name="CmFacility" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="BemsFuelType" ToRole="CmFacility" />
- <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK__BemsNoticePriceContractType__BemsFuelType" FromRole="BemsFuelType" ToRole="BemsNoticePriceContractType" />
- <NavigationProperty Name="BemsPriceCode" Relationship="iBemsModel.FK_BemsPriceCode_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsPriceCode" />
- <NavigationProperty Name="BemsPriceType" Relationship="iBemsModel.FK_BemsPriceType_BemsFuelType1" FromRole="BemsFuelType" ToRole="BemsPriceType" />
- <NavigationProperty Name="BemsSitePrice" Relationship="iBemsModel.FK_BemsSitePrice_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePrice" />
- <NavigationProperty Name="BemsSitePriceHistory" Relationship="iBemsModel.FK_BemsSitePriceHistory_BemsFuelType" FromRole="BemsFuelType" ToRole="BemsSitePriceHistory" />
- </EntityType>
- <Association Name="FK__BemsEnergyDaily__BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyDaily" Role="BemsEnergyDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsEnergyDaily">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFactorCo2__BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsFactorCo2" Role="BemsFactorCo2" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsFactorCo2">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsFactorToe__BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsFactorToe" Role="BemsFactorToe" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsFactorToe">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPoint__BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
- <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointBaseData__BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
- <End Type="iBemsModel.BemsMonitoringPointBaseData" Role="BemsMonitoringPointBaseData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointBaseData">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsNoticePriceContractType__BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsNoticePriceContractType">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceCode_BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsPriceCode" Role="BemsPriceCode" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsPriceCode">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceType_BemsFuelType1">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsPriceType" Role="BemsPriceType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsPriceType">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePrice" Role="BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="1" />
- <End Type="iBemsModel.BemsSitePriceHistory" Role="BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="FirstClassId" Type="Int32" />
- <Property Name="SecondClassId" Type="Int32" />
- <Property Name="ThirdClassId" Type="Int32" />
- <Property Name="DeviceType" Type="String" MaxLength="48" FixedLength="false" Unicode="true" />
- <Property Name="ParentFacilityCode" Type="Int32" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
- <Property Name="Nickname" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="Rfid" Type="String" MaxLength="52" FixedLength="false" Unicode="true" />
- <Property Name="Manufacturer" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="ManufactureDate" Type="DateTime" Precision="0" />
- <Property Name="ManufactureSerial" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="ManufactureModel" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="Supplier" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="BuildingId" Type="Int32" />
- <Property Name="FloorId" Type="Int32" />
- <Property Name="ZoneId" Type="Int32" />
- <Property Name="InstallDate" Type="DateTime" Precision="0" />
- <Property Name="OperationStartDate" Type="DateTime" Precision="0" />
- <Property Name="FacilityCapacity" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="FacilityCost" Type="Int32" />
- <Property Name="FacilityCount" Type="Int32" />
- <Property Name="FacilitySeviceLifeYear" Type="Int32" />
- <Property Name="FacilityUsage" Type="String" MaxLength="80" FixedLength="false" Unicode="true" />
- <Property Name="RatedPowerConsumption" Type="String" MaxLength="40" FixedLength="false" Unicode="true" />
- <Property Name="RatedCOP" Type="Double" />
- <Property Name="MainContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="SubContactorUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="Reserved1" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="Reserved2" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <Property Name="FileId" Type="Int32" />
- <Property Name="IsVirtualFacility" Type="Boolean" Nullable="false" />
- <Property Name="FuelTypeId" Type="Int16" />
- <Property Name="ContractType" Type="Int16" />
- <NavigationProperty Name="BemsAlarmSetting" Relationship="iBemsModel.FK_BemsAlarmSetting_CmFacility" FromRole="CmFacility" ToRole="BemsAlarmSetting" />
- <NavigationProperty Name="BemsEnergyCost" Relationship="iBemsModel.FK_BemsEnergyCost_CmFacility" FromRole="CmFacility" ToRole="BemsEnergyCost" />
- <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__CmFacility__BemsFacilityType" FromRole="CmFacility" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsFormulaParameter" Relationship="iBemsModel.FK_BemsFormulaParameter_CmFacility" FromRole="CmFacility" ToRole="BemsFormulaParameter" />
- <NavigationProperty Name="BemsFuelType" Relationship="iBemsModel.FK_CmFacility_BemsFuelType" FromRole="CmFacility" ToRole="BemsFuelType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK_BemsMonitoringPoint_CmFacility" FromRole="CmFacility" ToRole="BemsMonitoringPoint" />
- <NavigationProperty Name="BemsNoticePriceContractType" Relationship="iBemsModel.FK_CmFacility_BemsNoticePriceContractType" FromRole="CmFacility" ToRole="BemsNoticePriceContractType" />
- <NavigationProperty Name="BemsPeakFacility" Relationship="iBemsModel.FK_BemsPeakFacility_CmFacility" FromRole="CmFacility" ToRole="BemsPeakFacility" />
- <NavigationProperty Name="CmBuilding" Relationship="iBemsModel.FK__CmFacility__CmBuilding" FromRole="CmFacility" ToRole="CmBuilding" />
- <NavigationProperty Name="CmFloor" Relationship="iBemsModel.FK__CmFacility__74444068" FromRole="CmFacility" ToRole="CmFloor" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK__CmFacility__753864A1" FromRole="CmFacility" ToRole="CmUser" />
- <NavigationProperty Name="CmUser1" Relationship="iBemsModel.FK__CmFacility__762C88DA" FromRole="CmFacility" ToRole="CmUser" />
- <NavigationProperty Name="CmFacility1" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility" ToRole="CmFacility1" />
- <NavigationProperty Name="CmFacility2" Relationship="iBemsModel.FK__CmFacility__CmFacility" FromRole="CmFacility1" ToRole="CmFacility" />
- <NavigationProperty Name="CmFile" Relationship="iBemsModel.FK__CmFacility__CmFile" FromRole="CmFacility" ToRole="CmFile" />
- <NavigationProperty Name="CmZone" Relationship="iBemsModel.FK__CmFacility__CmZone" FromRole="CmFacility" ToRole="CmZone" />
- <NavigationProperty Name="FmsFacilityCodeClass" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsFirst" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
- <NavigationProperty Name="FmsFacilityCodeClass1" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsSecond" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
- <NavigationProperty Name="FmsFacilityCodeClass2" Relationship="iBemsModel.FK__CmFacility__FmsFacilityCodeClassAsThird" FromRole="CmFacility" ToRole="FmsFacilityCodeClass" />
- <NavigationProperty Name="CmFacilityFile" Relationship="iBemsModel.FK__CmFacilityFile__7720AD13" FromRole="CmFacility" ToRole="CmFacilityFile" />
- <NavigationProperty Name="FmsFacilityManual" Relationship="iBemsModel.FK__CmFacilityManual__79FD19BE" FromRole="CmFacility" ToRole="FmsFacilityManual" />
- <NavigationProperty Name="FmsFacilityOperationItem" Relationship="iBemsModel.FK__FmsFacilityOpera__725BF7F6" FromRole="CmFacility" ToRole="FmsFacilityOperationItem" />
- <NavigationProperty Name="FmsWorkResultCheckItem" Relationship="iBemsModel.FK__FmsWorkResultCheckItem__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultCheckItem" />
- <NavigationProperty Name="FmsWorkResultToFacility" Relationship="iBemsModel.FK__FmsWorkResultToFacility__CmFacility" FromRole="CmFacility" ToRole="FmsWorkResultToFacility" />
- <NavigationProperty Name="CmUser2" Relationship="iBemsModel.FK_CmFacility_CmUser" FromRole="CmFacility" ToRole="CmUser" />
- <NavigationProperty Name="CmUser3" Relationship="iBemsModel.FK_CmFacility_CmUser1" FromRole="CmFacility" ToRole="CmUser" />
- <NavigationProperty Name="CmFacilityTempSet" Relationship="iBemsModel.FK_CmFacilityTempSet_CmFacility" FromRole="CmFacility" ToRole="CmFacilityTempSet" />
- <NavigationProperty Name="FmsWorkOrderToFacility" Relationship="iBemsModel.FK_FmsWorkOrderToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkOrderToFacility" />
- <NavigationProperty Name="FmsWorkRequestToFacility" Relationship="iBemsModel.FK_FmsWorkRequestToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkRequestToFacility" />
- <NavigationProperty Name="FmsWorkScheduleToFacility" Relationship="iBemsModel.FK_FmsWorkScheduleToFacility_CmFacility" FromRole="CmFacility" ToRole="FmsWorkScheduleToFacility" />
- </EntityType>
- <Association Name="FK_BemsAlarmSetting_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.BemsAlarmSetting" Role="BemsAlarmSetting" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsAlarmSetting">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsEnergyCost_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.BemsEnergyCost" Role="BemsEnergyCost" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsEnergyCost">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__BemsFacilityType">
- <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsFormulaParameter_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.BemsFormulaParameter" Role="BemsFormulaParameter" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsFormulaParameter">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacility_BemsFuelType">
- <End Type="iBemsModel.BemsFuelType" Role="BemsFuelType" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsMonitoringPoint_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacility_BemsNoticePriceContractType">
- <End Type="iBemsModel.BemsNoticePriceContractType" Role="BemsNoticePriceContractType" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsNoticePriceContractType">
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPeakFacility_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.BemsPeakFacility" Role="BemsPeakFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="BemsPeakFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__CmBuilding">
- <End Type="iBemsModel.CmBuilding" Role="CmBuilding" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBuilding">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__74444068">
- <End Type="iBemsModel.CmFloor" Role="CmFloor" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFloor">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__753864A1">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MainContactorUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__762C88DA">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="SubContactorUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility1" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="CmFacility1">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ParentFacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__CmFile">
- <End Type="iBemsModel.CmFile" Role="CmFile" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__CmZone">
- <End Type="iBemsModel.CmZone" Role="CmZone" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmZone">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__FmsFacilityCodeClassAsFirst">
- <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsFacilityCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityClassId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FirstClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__FmsFacilityCodeClassAsSecond">
- <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsFacilityCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityClassId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="SecondClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacility__FmsFacilityCodeClassAsThird">
- <End Type="iBemsModel.FmsFacilityCodeClass" Role="FmsFacilityCodeClass" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsFacilityCodeClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityClassId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ThirdClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacilityFile__7720AD13">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.CmFacilityFile" Role="CmFacilityFile" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="CmFacilityFile">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmFacilityManual__79FD19BE">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.FmsFacilityManual" Role="FmsFacilityManual" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsFacilityManual">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsFacilityOpera__725BF7F6">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.FmsFacilityOperationItem" Role="FmsFacilityOperationItem" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsFacilityOperationItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ItemId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultCheckItem__CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsWorkResultCheckItem" Role="FmsWorkResultCheckItem" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItem">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkResultToFacility__CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkResultToFacility" Role="FmsWorkResultToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkResultToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacility_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MainContactorUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacility_CmUser1">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="0..1" />
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="SubContactorUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmFacilityTempSet_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.CmFacilityTempSet" Role="CmFacilityTempSet" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="CmFacilityTempSet">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkOrderToFacility" Role="FmsWorkOrderToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkOrderToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkRequestToFacility_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkRequestToFacility" Role="FmsWorkRequestToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkRequestToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
- <End Type="iBemsModel.CmFacility" Role="CmFacility" Multiplicity="1" />
- <End Type="iBemsModel.FmsWorkScheduleToFacility" Role="FmsWorkScheduleToFacility" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Principal>
- <Dependent Role="FmsWorkScheduleToFacility">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsMonitoringPointHistory15minRawData">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CurrentValue" Type="Double" Nullable="false" />
- <NavigationProperty Name="BemsFacilityType" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsFacilityType" />
- <NavigationProperty Name="BemsMonitoringPoint" Relationship="iBemsModel.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" FromRole="BemsMonitoringPointHistory15minRawData" ToRole="BemsMonitoringPoint" />
- </EntityType>
- <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
- <End Type="iBemsModel.BemsFacilityType" Role="BemsFacilityType" Multiplicity="1" />
- <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistory15minRawData">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
- <End Type="iBemsModel.BemsMonitoringPoint" Role="BemsMonitoringPoint" Multiplicity="1" />
- <End Type="iBemsModel.BemsMonitoringPointHistory15minRawData" Role="BemsMonitoringPointHistory15minRawData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsMonitoringPoint">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointHistory15minRawData">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsDailyReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AddDate" />
- <PropertyRef Name="BusinessFieldId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="DailyReportId" Type="Int32" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Name="Contents" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="AddDate" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="BusinessFieldId" Type="Int32" Nullable="false" />
- <Property Name="Datas" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
- <Property Name="ApproverUserId" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ApproveDate" Type="DateTime" Precision="0" />
- <Property Name="RegisterDate" Type="DateTime" Precision="0" />
- <Property Name="ApproverUserId2" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ApproveDate2" Type="DateTime" Precision="0" />
- <Property Name="ApproverUserId3" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ApproveDate3" Type="DateTime" Precision="0" />
- <Property Name="ApproverUserId4" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ApproveDate4" Type="DateTime" Precision="0" />
- <Property Name="ApproverUserId5" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="ApproveDate5" Type="DateTime" Precision="0" />
- <NavigationProperty Name="CmBusinessField" Relationship="iBemsModel.FK_FmsDailyReport_CmBusinessField" FromRole="FmsDailyReport" ToRole="CmBusinessField" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsDailyReport_CmUser" FromRole="FmsDailyReport" ToRole="CmUser" />
- </EntityType>
- <Association Name="FK_FmsDailyReport_CmBusinessField">
- <End Type="iBemsModel.CmBusinessField" Role="CmBusinessField" Multiplicity="1" />
- <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmBusinessField">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Principal>
- <Dependent Role="FmsDailyReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsDailyReport_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsDailyReport" Role="FmsDailyReport" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsDailyReport">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsPeakHistoryDaily">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="MaxPeakValue" Type="Double" />
- <Property Name="MaxDateTime" Type="DateTime" Precision="3" />
- <Property Name="MinPeakValue" Type="Double" />
- <Property Name="MinDateTime" Type="DateTime" Precision="3" />
- </EntityType>
- <EntityType Name="FmsEquipment">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="EquipmentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="48" FixedLength="false" Unicode="true" />
- <Property Name="EquipmentTypeId" Type="Int32" Nullable="false" />
- <Property Name="WarehouseId" Type="Int32" />
- <Property Name="Unit" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
- <Property Name="Standard" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="AddDate" Type="DateTime" Precision="3" />
- <Property Name="UpdateDate" Type="DateTime" Precision="3" />
- <Property Name="RegisterUserId" Type="String" Nullable="false" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="SupplierName" Type="String" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Name="SupplierPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="ImageFileId" Type="Int32" />
- <NavigationProperty Name="CmUser" Relationship="iBemsModel.FK_FmsEquipment_CmUser" FromRole="FmsEquipment" ToRole="CmUser" />
- <NavigationProperty Name="FmsEquipmentCodeType" Relationship="iBemsModel.FK_FmsEquipment_FmsEquipmentCodeType" FromRole="FmsEquipment" ToRole="FmsEquipmentCodeType" />
- <NavigationProperty Name="FmsMaterialWarehouse" Relationship="iBemsModel.FK_FmsEquipment_FmsMaterialWarehouse" FromRole="FmsEquipment" ToRole="FmsMaterialWarehouse" />
- <NavigationProperty Name="FmsEquipmentHistory" Relationship="iBemsModel.FK_FmsEquipmentHistory_FmsEquipment" FromRole="FmsEquipment" ToRole="FmsEquipmentHistory" />
- </EntityType>
- <Association Name="FK_FmsEquipment_CmUser">
- <End Type="iBemsModel.CmUser" Role="CmUser" Multiplicity="1" />
- <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmUser">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Principal>
- <Dependent Role="FmsEquipment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RegisterUserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipment_FmsEquipmentCodeType">
- <End Type="iBemsModel.FmsEquipmentCodeType" Role="FmsEquipmentCodeType" Multiplicity="1" />
- <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipmentCodeType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentTypeId" />
- </Principal>
- <Dependent Role="FmsEquipment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipment_FmsMaterialWarehouse">
- <End Type="iBemsModel.FmsMaterialWarehouse" Role="FmsMaterialWarehouse" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsMaterialWarehouse">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Principal>
- <Dependent Role="FmsEquipment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsEquipmentHistory_FmsEquipment">
- <End Type="iBemsModel.FmsEquipment" Role="FmsEquipment" Multiplicity="1" />
- <End Type="iBemsModel.FmsEquipmentHistory" Role="FmsEquipmentHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipment">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentId" />
- </Principal>
- <Dependent Role="FmsEquipmentHistory">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="CmAlarmAdmin">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="UserCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="DeptCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="PhoneNo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="EmailAddress" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="EmailPassword" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="BemsFloorStatus">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="FloorName" />
- <PropertyRef Name="ImageFileId" />
- <PropertyRef Name="Xvalue" />
- <PropertyRef Name="Yvalue" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" />
- <Property Name="FloorName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="ImageFileId" Type="Int32" Nullable="false" />
- <Property Name="Xvalue" Type="Int32" Nullable="false" />
- <Property Name="Yvalue" Type="Int32" Nullable="false" />
- <Property Name="ZoneId" Type="Int32" />
- <Property Name="ServiceTypeId" Type="Int32" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="FacilityName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="BemsReportHistory">
- <Key>
- <PropertyRef Name="Seq" />
- <PropertyRef Name="DateTime" />
- <PropertyRef Name="ReportFormatId" />
- <PropertyRef Name="parts" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="Seq" Type="Int32" Nullable="false" />
- <Property Name="DateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ReportName" Type="String" Nullable="false" MaxLength="200" FixedLength="false" Unicode="false" />
- <Property Name="ReportFormatId" Type="Int32" Nullable="false" />
- <Property Name="FormatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
- <Property Name="Content" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
- <Property Name="Writer" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
- <Property Name="Confirm1" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
- <Property Name="Confirm2" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
- <Property Name="parts" Type="Int32" Nullable="false" />
- <Property Name="FileName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="CmPartner">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="PartnerId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="PartnerTypeId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="RegistrationNo" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="RepresentativeName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="PhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="FaxNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="SalesName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="SalesPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="AddressZip1" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
- <Property Name="AddressZip2" Type="String" MaxLength="3" FixedLength="true" Unicode="true" />
- <Property Name="Address1" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Adderss2" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="HomepageUri" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Note" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartner" ToRole="CmPartnerType" />
- <NavigationProperty Name="FmsConstruction" Relationship="iBemsModel.FK_FmsConstruction_CmPartner" FromRole="CmPartner" ToRole="FmsConstruction" />
- <NavigationProperty Name="FmsWorkRequest" Relationship="iBemsModel.FK_FmsWorkRequest_CmPartner" FromRole="CmPartner" ToRole="FmsWorkRequest" />
- <NavigationProperty Name="FmsWorkSchedule" Relationship="iBemsModel.FK_FmsWorkSchedule_CmPartner" FromRole="CmPartner" ToRole="FmsWorkSchedule" />
- <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="CmPartner" ToRole="FmsContract" />
- </EntityType>
- <EntityType Name="CmPartnerType">
- <Key>
- <PropertyRef Name="PartnerTypeId" />
- </Key>
- <Property Name="PartnerTypeId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="IsUse" Type="Boolean" />
- <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_CmPartnerType_CmPartner" FromRole="CmPartnerType" ToRole="CmPartner" />
- <NavigationProperty Name="FmsContract" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="CmPartnerType" ToRole="FmsContract" />
- </EntityType>
- <Association Name="FK_CmPartnerType_CmPartner">
- <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="1" />
- <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartnerType">
- <PropertyRef Name="PartnerTypeId" />
- </Principal>
- <Dependent Role="CmPartner">
- <PropertyRef Name="PartnerTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsConstruction_CmPartner">
- <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="1" />
- <End Type="iBemsModel.FmsConstruction" Role="FmsConstruction" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartner">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Principal>
- <Dependent Role="FmsConstruction">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkRequest_CmPartner">
- <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsWorkRequest" Role="FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartner">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InspectionAgencyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkSchedule_CmPartner">
- <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsWorkSchedule" Role="FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartner">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InspectionAgencyId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="FmsContract">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="ContractId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Name="PartnerTypeId" Type="Int32" />
- <Property Name="PartnerId" Type="Int32" />
- <Property Name="ContractDate" Type="DateTime" Precision="3" />
- <Property Name="StartDate" Type="DateTime" Precision="3" />
- <Property Name="EndDate" Type="DateTime" Precision="3" />
- <Property Name="OwnerShipName" Type="String" MaxLength="24" FixedLength="false" Unicode="true" />
- <Property Name="OwnerShipPhoneNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <Property Name="CommitmentMan" Type="Int16" />
- <Property Name="Comment" Type="String" MaxLength="1024" FixedLength="false" Unicode="true" />
- <Property Name="ContractClassId" Type="Int32" />
- <Property Name="ContractTypeId" Type="Int32" />
- <Property Name="ContractMethodId" Type="Int32" />
- <Property Name="PaymentTypeId" Type="Int32" />
- <NavigationProperty Name="CmPartner" Relationship="iBemsModel.FK_FmsContract_CmPartner" FromRole="FmsContract" ToRole="CmPartner" />
- <NavigationProperty Name="CmPartnerType" Relationship="iBemsModel.FK_FmsContract_CmPartnerType" FromRole="FmsContract" ToRole="CmPartnerType" />
- <NavigationProperty Name="FmsContractClass" Relationship="iBemsModel.FK_FmsContract_FmsContractClass" FromRole="FmsContract" ToRole="FmsContractClass" />
- <NavigationProperty Name="FmsContractMethod" Relationship="iBemsModel.FK_FmsContract_FmsContractMethod" FromRole="FmsContract" ToRole="FmsContractMethod" />
- <NavigationProperty Name="FmsContractType" Relationship="iBemsModel.FK_FmsContract_FmsContractType" FromRole="FmsContract" ToRole="FmsContractType" />
- <NavigationProperty Name="FmsPaymentType" Relationship="iBemsModel.FK_FmsContract_FmsPaymentType" FromRole="FmsContract" ToRole="FmsPaymentType" />
- </EntityType>
- <Association Name="FK_FmsContract_CmPartner">
- <End Type="iBemsModel.CmPartner" Role="CmPartner" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartner">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_CmPartnerType">
- <End Type="iBemsModel.CmPartnerType" Role="CmPartnerType" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartnerType">
- <PropertyRef Name="PartnerTypeId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="PartnerTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_FmsContractClass">
- <End Type="iBemsModel.FmsContractClass" Role="FmsContractClass" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsContractClass">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractClassId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractClassId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_FmsContractMethod">
- <End Type="iBemsModel.FmsContractMethod" Role="FmsContractMethod" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsContractMethod">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractMethodId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractMethodId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_FmsContractType">
- <End Type="iBemsModel.FmsContractType" Role="FmsContractType" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsContractType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractTypeId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsContract_FmsPaymentType">
- <End Type="iBemsModel.FmsPaymentType" Role="FmsPaymentType" Multiplicity="0..1" />
- <End Type="iBemsModel.FmsContract" Role="FmsContract" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsPaymentType">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PaymentTypeId" />
- </Principal>
- <Dependent Role="FmsContract">
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="BemsMonitoringPointForecastingDayAhead">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- <PropertyRef Name="TargetDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ForecastedValue" Type="Double" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointForecastingHourAhead">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- <PropertyRef Name="TargetDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ForecastedValue" Type="Double" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFloorPlan">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Name" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FloorId" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="ImageFileId" Type="Int32" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointWeatherForecasted">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CreatedDateTime" />
- <PropertyRef Name="Category" />
- <PropertyRef Name="BaseDateTime" />
- <PropertyRef Name="ForecastedDateTime" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="Category" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="BaseDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ForecastedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="ForecastedValue" Type="Double" Nullable="false" />
- <Property Name="nx" Type="Int32" Nullable="false" />
- <Property Name="ny" Type="Int32" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsConfigData">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="LoadDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="LoadDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="LoadDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="LoadDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="TargetDBIP" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="TargetDBUserID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="TargetDBUserPW" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="TargetDBName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="InitialDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="LinearFilterLength" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="NonlinearTestSize" Type="Double" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsIceThermalStorageSimulation">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- <PropertyRef Name="TargetDateTime" />
- <PropertyRef Name="SimulationCase" />
- </Key>
- <Property Name="SiteId" Type="Int32" Nullable="false" />
- <Property Name="FacilityTypeId" Type="Int32" Nullable="false" />
- <Property Name="FacilityCode" Type="Int32" Nullable="false" />
- <Property Name="PropertyId" Type="Int32" Nullable="false" />
- <Property Name="CreatedDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="TargetDateTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="SimulationValue" Type="Double" />
- <Property Name="SimulationCase" Type="Int32" Nullable="false" />
- </EntityType>
- </Schema>
|