1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526 |
- <?xml version="1.0" encoding="utf-8"?>
- <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
- <!-- EF Runtime content -->
- <edmx:Runtime>
- <!-- SSDL content -->
- <edmx:StorageModels>
- <Schema Namespace="iBemsModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2008" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
- <EntityType Name="BemsAlarmGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AlarmGroupId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="AlarmGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsAlarmGroupUser">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AlarmGroupId" />
- <PropertyRef Name="UserId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="AlarmGroupId" Type="int" Nullable="false" />
- <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- </EntityType>
- <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="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="FormulaId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="CurrentValue" Type="float" />
- <Property Name="SMSResult" Type="nvarchar" MaxLength="2" />
- <Property Name="EmailResult" Type="nvarchar" MaxLength="2" />
- <Property Name="Conform" Type="bit" />
- </EntityType>
- <EntityType Name="BemsAlarmSetting">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="FormulaId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="FormulaId" Type="int" Nullable="false" />
- <Property Name="FacilityName" Type="nvarchar" MaxLength="80" Nullable="false" />
- <Property Name="PointName" Type="nvarchar" MaxLength="64" Nullable="false" />
- <Property Name="UseUpperLimit" Type="bit" Nullable="false" />
- <Property Name="UpperLimit" Type="float" />
- <Property Name="UseLowerLimit" Type="bit" Nullable="false" />
- <Property Name="LowerLimit" Type="float" />
- <Property Name="UseAlarm" Type="bit" Nullable="false" />
- <Property Name="UseSMS" Type="bit" Nullable="false" />
- <Property Name="UseEmail" Type="bit" Nullable="false" />
- <Property Name="AlarmGroupName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Content" Type="nvarchar" MaxLength="1000" />
- </EntityType>
- <EntityType Name="BemsAnalysisType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnalysisType" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="AnalysisType" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" />
- </EntityType>
- <EntityType Name="BemsChartInfo">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="ChartId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="ChartId" Type="int" Nullable="false" />
- <Property Name="LAxTitle" Type="nvarchar" MaxLength="64" Nullable="false" />
- <Property Name="RAxTitle" Type="nvarchar" MaxLength="64" />
- <Property Name="XAxTitle" Type="nvarchar" MaxLength="64" />
- <Property Name="XSFmId" Type="int" />
- <Property Name="XSType" Type="nvarchar" MaxLength="16" />
- <Property Name="LSFmId1" Type="int" Nullable="false" />
- <Property Name="LSName1" Type="nvarchar" MaxLength="64" Nullable="false" />
- <Property Name="LSType1" Type="nvarchar" MaxLength="16" Nullable="false" />
- <Property Name="LSFmId2" Type="int" />
- <Property Name="LSName2" Type="nvarchar" MaxLength="64" />
- <Property Name="LSType2" Type="nvarchar" MaxLength="16" />
- <Property Name="LSFmId3" Type="int" />
- <Property Name="LSName3" Type="nvarchar" MaxLength="64" />
- <Property Name="LSType3" Type="nvarchar" MaxLength="16" />
- <Property Name="LSFmId4" Type="int" />
- <Property Name="LSName4" Type="nvarchar" MaxLength="64" />
- <Property Name="LSType4" Type="nvarchar" MaxLength="16" />
- <Property Name="RSFmId1" Type="int" />
- <Property Name="RSName1" Type="nvarchar" MaxLength="64" />
- <Property Name="RSType1" Type="nvarchar" MaxLength="16" />
- <Property Name="RSFmId2" Type="int" />
- <Property Name="RSName2" Type="nvarchar" MaxLength="64" />
- <Property Name="RSType2" Type="nvarchar" MaxLength="16" />
- <Property Name="RSFmId3" Type="int" />
- <Property Name="RSName3" Type="nvarchar" MaxLength="64" />
- <Property Name="RSType3" Type="nvarchar" MaxLength="16" />
- <Property Name="RSFmId4" Type="int" />
- <Property Name="RSName4" Type="nvarchar" MaxLength="64" />
- <Property Name="RSType4" Type="nvarchar" MaxLength="16" />
- <Property Name="Title" Type="nvarchar" MaxLength="64" Nullable="false" />
- <Property Name="UseX" Type="bit" />
- <Property Name="UseLAxMinMax" Type="bit" />
- <Property Name="UseRAxMinMax" Type="bit" />
- <Property Name="UseXAxMinMax" Type="bit" />
- <Property Name="LAxMin" Type="float" />
- <Property Name="LAxMax" Type="float" />
- <Property Name="RAxMin" Type="float" />
- <Property Name="RAxMax" Type="float" />
- <Property Name="XAxMin" Type="float" />
- <Property Name="XAxMax" Type="float" />
- <Property Name="Palette" Type="nvarchar" MaxLength="32" Nullable="false" />
- <Property Name="UseChart" Type="bit" />
- <Property Name="UseLCTLine" Type="bit" Nullable="false" />
- <Property Name="LCTLineTitle" Type="nvarchar" MaxLength="64" />
- <Property Name="LCTLineValue" Type="float" />
- <Property Name="UseRCTLine" Type="bit" Nullable="false" />
- <Property Name="RCTLineTitle" Type="nvarchar" MaxLength="64" />
- <Property Name="RCTLineValue" Type="float" />
- </EntityType>
- <EntityType Name="BemsControlAHUTempConfig">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="MaxTemperature" Type="float" Nullable="false" />
- <Property Name="MinTemperature" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsControlPointHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreateDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="CreateDateTime" Type="datetime" Nullable="false" />
- <Property Name="ControlValue" Type="float" Nullable="false" />
- <Property Name="WriteServiceName" Type="nvarchar" MaxLength="64" />
- <Property Name="ActionDateTime" Type="datetime" />
- </EntityType>
- <EntityType Name="BemsEnergyConfigPercentMonth">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="Month" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Year" Type="int" Nullable="false" />
- <Property Name="Month" Type="int" Nullable="false" />
- <Property Name="Electricity" Type="float" />
- <Property Name="Gas" Type="float" />
- <Property Name="Water" Type="float" />
- </EntityType>
- <EntityType Name="BemsEnergyConfigPercentWeek">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="Week" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Year" Type="int" Nullable="false" />
- <Property Name="Week" Type="int" Nullable="false" />
- <Property Name="Electricity" Type="float" />
- <Property Name="Gas" Type="float" />
- <Property Name="Water" Type="float" />
- </EntityType>
- <EntityType Name="BemsEnergyCost">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PowerConsumption1" Type="float" />
- <Property Name="PowerConsumption2" Type="float" />
- <Property Name="GasConsumption" Type="float" />
- <Property Name="GasHeatQuantity" Type="float" />
- <Property Name="PowerPriceTypeId" Type="int" />
- <Property Name="GasPriceTypeId" Type="int" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="BemsEnergyDaily">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="ServiceTypeId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="CreatedDate" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" Nullable="false" />
- <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="CreatedDate" Type="date" Nullable="false" />
- <Property Name="Prediction" Type="float" />
- <Property Name="Measurement" Type="float" />
- <Property Name="Goal" Type="float" />
- <Property Name="Prediction_Regression" Type="float" />
- <Property Name="MeanT" Type="float" />
- <Property Name="HDD" Type="float" />
- <Property Name="CDD" Type="float" />
- </EntityType>
- <EntityType Name="BemsEnergyDailyRegression">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Weekday_Power" Type="nvarchar" MaxLength="50" />
- <Property Name="Weekday_Power_Temp" Type="nvarchar" MaxLength="50" />
- <Property Name="Weekday_Gas" Type="nvarchar" MaxLength="50" />
- <Property Name="Weekday_Gas_Temp" Type="nvarchar" MaxLength="50" />
- <Property Name="Weekday_Water" Type="nvarchar" MaxLength="50" />
- <Property Name="Weekday_Water_Temp" Type="nvarchar" MaxLength="50" />
- <Property Name="Holiday_Power" Type="nvarchar" MaxLength="50" />
- <Property Name="Holiday_Power_Temp" Type="nvarchar" MaxLength="50" />
- <Property Name="Holiday_Gas" Type="nvarchar" MaxLength="50" />
- <Property Name="Holiday_Gas_Temp" Type="nvarchar" MaxLength="50" />
- <Property Name="Holiday_Water" Type="nvarchar" MaxLength="50" />
- <Property Name="Holiday_Water_Temp" Type="nvarchar" MaxLength="50" />
- <Property Name="IsRegression" Type="bit" />
- </EntityType>
- <EntityType Name="BemsFacilityType">
- <Key>
- <PropertyRef Name="FacilityTypeId" />
- </Key>
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" />
- </EntityType>
- <EntityType Name="BemsFactorCo2">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- </Key>
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="Factor" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFactorToe">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- </Key>
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="TotalFactor" Type="float" Nullable="false" />
- <Property Name="PureFactor" Type="float" Nullable="false" />
- <Property Name="kcal" Type="float" />
- </EntityType>
- <EntityType Name="BemsFloorPlan">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Name" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FloorId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="ImageFileId" Type="int" />
- </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="int" Nullable="false" />
- <Property Name="FloorId" Type="int" Nullable="false" />
- <Property Name="FloorName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="ImageFileId" Type="int" Nullable="false" />
- <Property Name="Xvalue" Type="int" Nullable="false" />
- <Property Name="Yvalue" Type="int" Nullable="false" />
- <Property Name="ZoneId" Type="int" />
- <Property Name="ServiceTypeId" Type="int" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="FacilityName" Type="nvarchar" MaxLength="64" />
- </EntityType>
- <EntityType Name="BemsFormula">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="FormulaId" Type="int" Nullable="false" />
- <Property Name="Formula" Type="nvarchar" MaxLength="120" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFormulaBase">
- <Key>
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="FormulaId" />
- </Key>
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FormulaId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFormulaParameter">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="FormulaId" />
- <PropertyRef Name="ParameterId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="FormulaId" Type="int" Nullable="false" />
- <Property Name="ParameterId" Type="nchar" MaxLength="1" Nullable="false" />
- <Property Name="ParameterFacilityCode" Type="int" Nullable="false" />
- <Property Name="ParameterPropertyId" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFormulaTable">
- <Key>
- <PropertyRef Name="TableId" />
- </Key>
- <Property Name="TableId" Type="int" Nullable="false" />
- <Property Name="FunctionName" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="80" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFormulaTableValue">
- <Key>
- <PropertyRef Name="TableId" />
- <PropertyRef Name="XValue" />
- </Key>
- <Property Name="TableId" Type="int" Nullable="false" />
- <Property Name="XValue" Type="float" Nullable="false" />
- <Property Name="YValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsFuelType">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- </Key>
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" />
- </EntityType>
- <EntityType Name="BemsMonitoringPoint">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="ValueType" Type="int" Nullable="false" />
- <Property Name="ServiceTypeId" Type="smallint" />
- <Property Name="FuelTypeId" Type="smallint" />
- <Property Name="Name" Type="nvarchar" MaxLength="64" />
- <Property Name="Description" Type="nvarchar" MaxLength="256" />
- <Property Name="BuildingId" Type="int" />
- <Property Name="FloorId" Type="int" />
- <Property Name="ZoneId" Type="int" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointBaseData">
- <Key>
- <PropertyRef Name="FacilityTypeId" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="ValueType" Type="int" Nullable="false" />
- <Property Name="IsAccumulated" Type="bit" Nullable="false" />
- <Property Name="ServiceTypeId" Type="smallint" />
- <Property Name="FuelTypeId" Type="smallint" />
- <Property Name="Name" Type="nvarchar" MaxLength="64" />
- <Property Name="Description" Type="nvarchar" MaxLength="256" />
- <Property Name="IsSampled" Type="bit" />
- <Property Name="IsConverted" Type="bit" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointConfig">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="IsAccumulated" Type="bit" Nullable="false" />
- <Property Name="IsSampled" Type="bit" Nullable="false" />
- <Property Name="SaveMode" Type="int" Nullable="false" />
- <Property Name="ControlPointName" Type="nvarchar" MaxLength="200" />
- <Property Name="IsConverted" Type="bit" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistory15min">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="CurrentValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistory15minRawData">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="CurrentValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistoryDaily">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="DailyValue" Type="float" Nullable="false" />
- <Property Name="MaxValue" Type="float" />
- <Property Name="MinValue" Type="float" />
- </EntityType>
- <EntityType Name="BemsMonitoringPointHistoryHourly">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="PropertyId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="CurrentValue" Type="float" Nullable="false" />
- </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="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="PropertyId" Type="int" Nullable="false" />
- <Property Name="AnalysisType" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsNoticePriceBase">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ApplyDate" />
- <PropertyRef Name="ContractType" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="ApplyDate" Type="date" Nullable="false" />
- <Property Name="ContractType" Type="smallint" Nullable="false" />
- <Property Name="PrimaryPrice" Type="int" />
- <Property Name="SecondaryPrice" Type="int" />
- </EntityType>
- <EntityType Name="BemsNoticePriceContractType">
- <Key>
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="ContractType" />
- </Key>
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="ContractType" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="varchar" MaxLength="50" Nullable="false" />
- </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="int" Nullable="false" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="ApplyDate" Type="date" Nullable="false" />
- <Property Name="ContractType" Type="smallint" Nullable="false" />
- <Property Name="DataId" Type="smallint" Nullable="false" />
- <Property Name="P01" Type="float" />
- <Property Name="P02" Type="float" />
- <Property Name="P03" Type="float" />
- <Property Name="P04" Type="float" />
- <Property Name="P05" Type="float" />
- <Property Name="P06" Type="float" />
- <Property Name="P07" Type="float" />
- <Property Name="P08" Type="float" />
- <Property Name="P09" Type="float" />
- <Property Name="P10" Type="float" />
- <Property Name="P11" Type="float" />
- <Property Name="P12" Type="float" />
- </EntityType>
- <EntityType Name="BemsPeakFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaxDateTime" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsPeakHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="CurrentValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsPeakHistoryDaily">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CreatedDateTime" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CreatedDateTime" Type="datetime" Nullable="false" />
- <Property Name="MaxPeakValue" Type="float" />
- <Property Name="MaxDateTime" Type="datetime" />
- <Property Name="MinPeakValue" Type="float" />
- <Property Name="MinDateTime" Type="datetime" />
- </EntityType>
- <EntityType Name="BemsPeakInfo">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="MaxDateTime" Type="datetime" Nullable="false" />
- <Property Name="MaxPeakValue" Type="float" Nullable="false" />
- <Property Name="MinDateTime" Type="datetime" Nullable="false" />
- <Property Name="MinPeakValue" Type="float" Nullable="false" />
- <Property Name="todayMaxPeakValue" Type="float" Nullable="false" />
- <Property Name="todayMinPeakValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsPeopleIncrease">
- <Key>
- <PropertyRef Name="Date" />
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="m1" Type="nvarchar" MaxLength="50" />
- <Property Name="m2" Type="nvarchar" MaxLength="50" />
- <Property Name="m3" Type="nvarchar" MaxLength="50" />
- <Property Name="m4" Type="nvarchar" MaxLength="50" />
- <Property Name="m5" Type="nvarchar" MaxLength="50" />
- <Property Name="m6" Type="nvarchar" MaxLength="50" />
- <Property Name="m7" Type="nvarchar" MaxLength="50" />
- <Property Name="m8" Type="nvarchar" MaxLength="50" />
- <Property Name="m9" Type="nvarchar" MaxLength="50" />
- <Property Name="m10" Type="nvarchar" MaxLength="50" />
- <Property Name="m11" Type="nvarchar" MaxLength="50" />
- <Property Name="m12" Type="nvarchar" MaxLength="50" />
- </EntityType>
- <EntityType Name="BemsPriceCode">
- <Key>
- <PropertyRef Name="PriceCode" />
- </Key>
- <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
- <Property Name="PriceCodeDesc" Type="varchar" MaxLength="200" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="Unit" Type="varchar" MaxLength="20" />
- </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="int" Nullable="false" />
- <Property Name="PriceTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FormulaId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="UseYN" Type="nvarchar" MaxLength="1" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsPriceMeta">
- <Key>
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="PublishDate" />
- </Key>
- <Property Name="PriceTypeId" Type="int" Nullable="false" />
- <Property Name="PublishDate" Type="datetime" Nullable="false" />
- <Property Name="BasePrice" Type="int" />
- <Property Name="01_00" Type="float" />
- <Property Name="01_01" Type="float" />
- <Property Name="01_02" Type="float" />
- <Property Name="01_03" Type="float" />
- <Property Name="01_04" Type="float" />
- <Property Name="01_05" Type="float" />
- <Property Name="01_06" Type="float" />
- <Property Name="01_07" Type="float" />
- <Property Name="01_08" Type="float" />
- <Property Name="01_09" Type="float" />
- <Property Name="01_10" Type="float" />
- <Property Name="01_11" Type="float" />
- <Property Name="01_12" Type="float" />
- <Property Name="01_13" Type="float" />
- <Property Name="01_14" Type="float" />
- <Property Name="01_15" Type="float" />
- <Property Name="01_16" Type="float" />
- <Property Name="01_17" Type="float" />
- <Property Name="01_18" Type="float" />
- <Property Name="01_19" Type="float" />
- <Property Name="01_20" Type="float" />
- <Property Name="01_21" Type="float" />
- <Property Name="01_22" Type="float" />
- <Property Name="01_23" Type="float" />
- <Property Name="02_00" Type="float" />
- <Property Name="02_01" Type="float" />
- <Property Name="02_02" Type="float" />
- <Property Name="02_03" Type="float" />
- <Property Name="02_04" Type="float" />
- <Property Name="02_05" Type="float" />
- <Property Name="02_06" Type="float" />
- <Property Name="02_07" Type="float" />
- <Property Name="02_08" Type="float" />
- <Property Name="02_09" Type="float" />
- <Property Name="02_10" Type="float" />
- <Property Name="02_11" Type="float" />
- <Property Name="02_12" Type="float" />
- <Property Name="02_13" Type="float" />
- <Property Name="02_14" Type="float" />
- <Property Name="02_15" Type="float" />
- <Property Name="02_16" Type="float" />
- <Property Name="02_17" Type="float" />
- <Property Name="02_18" Type="float" />
- <Property Name="02_19" Type="float" />
- <Property Name="02_20" Type="float" />
- <Property Name="02_21" Type="float" />
- <Property Name="02_22" Type="float" />
- <Property Name="02_23" Type="float" />
- <Property Name="03_00" Type="float" />
- <Property Name="03_01" Type="float" />
- <Property Name="03_02" Type="float" />
- <Property Name="03_03" Type="float" />
- <Property Name="03_04" Type="float" />
- <Property Name="03_05" Type="float" />
- <Property Name="03_06" Type="float" />
- <Property Name="03_07" Type="float" />
- <Property Name="03_08" Type="float" />
- <Property Name="03_09" Type="float" />
- <Property Name="03_10" Type="float" />
- <Property Name="03_11" Type="float" />
- <Property Name="03_12" Type="float" />
- <Property Name="03_13" Type="float" />
- <Property Name="03_14" Type="float" />
- <Property Name="03_15" Type="float" />
- <Property Name="03_16" Type="float" />
- <Property Name="03_17" Type="float" />
- <Property Name="03_18" Type="float" />
- <Property Name="03_19" Type="float" />
- <Property Name="03_20" Type="float" />
- <Property Name="03_21" Type="float" />
- <Property Name="03_22" Type="float" />
- <Property Name="03_23" Type="float" />
- <Property Name="04_00" Type="float" />
- <Property Name="04_01" Type="float" />
- <Property Name="04_02" Type="float" />
- <Property Name="04_03" Type="float" />
- <Property Name="04_04" Type="float" />
- <Property Name="04_05" Type="float" />
- <Property Name="04_06" Type="float" />
- <Property Name="04_07" Type="float" />
- <Property Name="04_08" Type="float" />
- <Property Name="04_09" Type="float" />
- <Property Name="04_10" Type="float" />
- <Property Name="04_11" Type="float" />
- <Property Name="04_12" Type="float" />
- <Property Name="04_13" Type="float" />
- <Property Name="04_14" Type="float" />
- <Property Name="04_15" Type="float" />
- <Property Name="04_16" Type="float" />
- <Property Name="04_17" Type="float" />
- <Property Name="04_18" Type="float" />
- <Property Name="04_19" Type="float" />
- <Property Name="04_20" Type="float" />
- <Property Name="04_21" Type="float" />
- <Property Name="04_22" Type="float" />
- <Property Name="04_23" Type="float" />
- <Property Name="05_00" Type="float" />
- <Property Name="05_01" Type="float" />
- <Property Name="05_02" Type="float" />
- <Property Name="05_03" Type="float" />
- <Property Name="05_04" Type="float" />
- <Property Name="05_05" Type="float" />
- <Property Name="05_06" Type="float" />
- <Property Name="05_07" Type="float" />
- <Property Name="05_08" Type="float" />
- <Property Name="05_09" Type="float" />
- <Property Name="05_10" Type="float" />
- <Property Name="05_11" Type="float" />
- <Property Name="05_12" Type="float" />
- <Property Name="05_13" Type="float" />
- <Property Name="05_14" Type="float" />
- <Property Name="05_15" Type="float" />
- <Property Name="05_16" Type="float" />
- <Property Name="05_17" Type="float" />
- <Property Name="05_18" Type="float" />
- <Property Name="05_19" Type="float" />
- <Property Name="05_20" Type="float" />
- <Property Name="05_21" Type="float" />
- <Property Name="05_22" Type="float" />
- <Property Name="05_23" Type="float" />
- <Property Name="06_00" Type="float" />
- <Property Name="06_01" Type="float" />
- <Property Name="06_02" Type="float" />
- <Property Name="06_03" Type="float" />
- <Property Name="06_04" Type="float" />
- <Property Name="06_05" Type="float" />
- <Property Name="06_06" Type="float" />
- <Property Name="06_07" Type="float" />
- <Property Name="06_08" Type="float" />
- <Property Name="06_09" Type="float" />
- <Property Name="06_10" Type="float" />
- <Property Name="06_11" Type="float" />
- <Property Name="06_12" Type="float" />
- <Property Name="06_13" Type="float" />
- <Property Name="06_14" Type="float" />
- <Property Name="06_15" Type="float" />
- <Property Name="06_16" Type="float" />
- <Property Name="06_17" Type="float" />
- <Property Name="06_18" Type="float" />
- <Property Name="06_19" Type="float" />
- <Property Name="06_20" Type="float" />
- <Property Name="06_21" Type="float" />
- <Property Name="06_22" Type="float" />
- <Property Name="06_23" Type="float" />
- <Property Name="07_00" Type="float" />
- <Property Name="07_01" Type="float" />
- <Property Name="07_02" Type="float" />
- <Property Name="07_03" Type="float" />
- <Property Name="07_04" Type="float" />
- <Property Name="07_05" Type="float" />
- <Property Name="07_06" Type="float" />
- <Property Name="07_07" Type="float" />
- <Property Name="07_08" Type="float" />
- <Property Name="07_09" Type="float" />
- <Property Name="07_10" Type="float" />
- <Property Name="07_11" Type="float" />
- <Property Name="07_12" Type="float" />
- <Property Name="07_13" Type="float" />
- <Property Name="07_14" Type="float" />
- <Property Name="07_15" Type="float" />
- <Property Name="07_16" Type="float" />
- <Property Name="07_17" Type="float" />
- <Property Name="07_18" Type="float" />
- <Property Name="07_19" Type="float" />
- <Property Name="07_20" Type="float" />
- <Property Name="07_21" Type="float" />
- <Property Name="07_22" Type="float" />
- <Property Name="07_23" Type="float" />
- <Property Name="08_00" Type="float" />
- <Property Name="08_01" Type="float" />
- <Property Name="08_02" Type="float" />
- <Property Name="08_03" Type="float" />
- <Property Name="08_04" Type="float" />
- <Property Name="08_05" Type="float" />
- <Property Name="08_06" Type="float" />
- <Property Name="08_07" Type="float" />
- <Property Name="08_08" Type="float" />
- <Property Name="08_09" Type="float" />
- <Property Name="08_10" Type="float" />
- <Property Name="08_11" Type="float" />
- <Property Name="08_12" Type="float" />
- <Property Name="08_13" Type="float" />
- <Property Name="08_14" Type="float" />
- <Property Name="08_15" Type="float" />
- <Property Name="08_16" Type="float" />
- <Property Name="08_17" Type="float" />
- <Property Name="08_18" Type="float" />
- <Property Name="08_19" Type="float" />
- <Property Name="08_20" Type="float" />
- <Property Name="08_21" Type="float" />
- <Property Name="08_22" Type="float" />
- <Property Name="08_23" Type="float" />
- <Property Name="09_00" Type="float" />
- <Property Name="09_01" Type="float" />
- <Property Name="09_02" Type="float" />
- <Property Name="09_03" Type="float" />
- <Property Name="09_04" Type="float" />
- <Property Name="09_05" Type="float" />
- <Property Name="09_06" Type="float" />
- <Property Name="09_07" Type="float" />
- <Property Name="09_08" Type="float" />
- <Property Name="09_09" Type="float" />
- <Property Name="09_10" Type="float" />
- <Property Name="09_11" Type="float" />
- <Property Name="09_12" Type="float" />
- <Property Name="09_13" Type="float" />
- <Property Name="09_14" Type="float" />
- <Property Name="09_15" Type="float" />
- <Property Name="09_16" Type="float" />
- <Property Name="09_17" Type="float" />
- <Property Name="09_18" Type="float" />
- <Property Name="09_19" Type="float" />
- <Property Name="09_20" Type="float" />
- <Property Name="09_21" Type="float" />
- <Property Name="09_22" Type="float" />
- <Property Name="09_23" Type="float" />
- <Property Name="10_00" Type="float" />
- <Property Name="10_01" Type="float" />
- <Property Name="10_02" Type="float" />
- <Property Name="10_03" Type="float" />
- <Property Name="10_04" Type="float" />
- <Property Name="10_05" Type="float" />
- <Property Name="10_06" Type="float" />
- <Property Name="10_07" Type="float" />
- <Property Name="10_08" Type="float" />
- <Property Name="10_09" Type="float" />
- <Property Name="10_10" Type="float" />
- <Property Name="10_11" Type="float" />
- <Property Name="10_12" Type="float" />
- <Property Name="10_13" Type="float" />
- <Property Name="10_14" Type="float" />
- <Property Name="10_15" Type="float" />
- <Property Name="10_16" Type="float" />
- <Property Name="10_17" Type="float" />
- <Property Name="10_18" Type="float" />
- <Property Name="10_19" Type="float" />
- <Property Name="10_20" Type="float" />
- <Property Name="10_21" Type="float" />
- <Property Name="10_22" Type="float" />
- <Property Name="10_23" Type="float" />
- <Property Name="11_00" Type="float" />
- <Property Name="11_01" Type="float" />
- <Property Name="11_02" Type="float" />
- <Property Name="11_03" Type="float" />
- <Property Name="11_04" Type="float" />
- <Property Name="11_05" Type="float" />
- <Property Name="11_06" Type="float" />
- <Property Name="11_07" Type="float" />
- <Property Name="11_08" Type="float" />
- <Property Name="11_09" Type="float" />
- <Property Name="11_10" Type="float" />
- <Property Name="11_11" Type="float" />
- <Property Name="11_12" Type="float" />
- <Property Name="11_13" Type="float" />
- <Property Name="11_14" Type="float" />
- <Property Name="11_15" Type="float" />
- <Property Name="11_16" Type="float" />
- <Property Name="11_17" Type="float" />
- <Property Name="11_18" Type="float" />
- <Property Name="11_19" Type="float" />
- <Property Name="11_20" Type="float" />
- <Property Name="11_21" Type="float" />
- <Property Name="11_22" Type="float" />
- <Property Name="11_23" Type="float" />
- <Property Name="12_00" Type="float" />
- <Property Name="12_01" Type="float" />
- <Property Name="12_02" Type="float" />
- <Property Name="12_03" Type="float" />
- <Property Name="12_04" Type="float" />
- <Property Name="12_05" Type="float" />
- <Property Name="12_06" Type="float" />
- <Property Name="12_07" Type="float" />
- <Property Name="12_08" Type="float" />
- <Property Name="12_09" Type="float" />
- <Property Name="12_10" Type="float" />
- <Property Name="12_11" Type="float" />
- <Property Name="12_12" Type="float" />
- <Property Name="12_13" Type="float" />
- <Property Name="12_14" Type="float" />
- <Property Name="12_15" Type="float" />
- <Property Name="12_16" Type="float" />
- <Property Name="12_17" Type="float" />
- <Property Name="12_18" Type="float" />
- <Property Name="12_19" Type="float" />
- <Property Name="12_20" Type="float" />
- <Property Name="12_21" Type="float" />
- <Property Name="12_22" Type="float" />
- <Property Name="12_23" Type="float" />
- </EntityType>
- <EntityType Name="BemsPriceType">
- <Key>
- <PropertyRef Name="PriceTypeId" />
- </Key>
- <Property Name="PriceTypeId" Type="int" Nullable="false" />
- <Property Name="PriceTypeIdDesc" Type="varchar" MaxLength="200" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsRentalRate">
- <Key>
- <PropertyRef Name="Date" />
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="Date" Type="nvarchar" MaxLength="5" Nullable="false" />
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="m1" Type="nvarchar" MaxLength="50" />
- <Property Name="m2" Type="nvarchar" MaxLength="50" />
- <Property Name="m3" Type="nvarchar" MaxLength="50" />
- <Property Name="m4" Type="nvarchar" MaxLength="50" />
- <Property Name="m5" Type="nvarchar" MaxLength="50" />
- <Property Name="m6" Type="nvarchar" MaxLength="50" />
- <Property Name="m7" Type="nvarchar" MaxLength="50" />
- <Property Name="m8" Type="nvarchar" MaxLength="50" />
- <Property Name="m9" Type="nvarchar" MaxLength="50" />
- <Property Name="m10" Type="nvarchar" MaxLength="50" />
- <Property Name="m11" Type="nvarchar" MaxLength="50" />
- <Property Name="m12" Type="nvarchar" MaxLength="50" />
- </EntityType>
- <EntityType Name="BemsReportFormat">
- <Key>
- <PropertyRef Name="ReportFormatId" />
- <PropertyRef Name="parts" />
- </Key>
- <Property Name="ReportFormatId" Type="int" Nullable="false" />
- <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
- <Property Name="Content" Type="varchar(max)" />
- <Property Name="parts" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="BemsReportHistory">
- <Key>
- <PropertyRef Name="Seq" />
- <PropertyRef Name="DateTime" />
- <PropertyRef Name="ReportFormatId" />
- <PropertyRef Name="parts" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Seq" Type="int" Nullable="false" />
- <Property Name="DateTime" Type="datetime" Nullable="false" />
- <Property Name="ReportName" Type="varchar" MaxLength="200" Nullable="false" />
- <Property Name="ReportFormatId" Type="int" Nullable="false" />
- <Property Name="FormatName" Type="varchar" MaxLength="50" Nullable="false" />
- <Property Name="Content" Type="varchar(max)" />
- <Property Name="Writer" Type="varchar" MaxLength="50" />
- <Property Name="Confirm1" Type="varchar" MaxLength="50" />
- <Property Name="Confirm2" Type="varchar" MaxLength="50" />
- <Property Name="parts" Type="int" Nullable="false" />
- <Property Name="FileName" Type="nvarchar" MaxLength="100" />
- </EntityType>
- <EntityType Name="BemsServiceType">
- <Key>
- <PropertyRef Name="ServiceTypeId" />
- </Key>
- <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" />
- </EntityType>
- <EntityType Name="BemsSitePrice">
- <Key>
- <PropertyRef Name="SiteID" />
- <PropertyRef Name="FuelTypeId" />
- <PropertyRef Name="PriceTypeId" />
- <PropertyRef Name="PriceCode" />
- </Key>
- <Property Name="SiteID" Type="int" Nullable="false" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="PriceTypeId" Type="int" Nullable="false" />
- <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
- <Property Name="UseYN" Type="varchar" MaxLength="1" Nullable="false" />
- </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="int" Nullable="false" />
- <Property Name="FuelTypeId" Type="smallint" Nullable="false" />
- <Property Name="PriceTypeId" Type="int" Nullable="false" />
- <Property Name="PriceCode" Type="varchar" MaxLength="20" Nullable="false" />
- <Property Name="PriceValue" Type="varchar" MaxLength="200" />
- <Property Name="PayDate" Type="varchar" MaxLength="6" Nullable="false" />
- <Property Name="StartDate" Type="datetime" />
- <Property Name="EndDate" Type="datetime" />
- <Property Name="PayCharge" Type="varchar" MaxLength="200" />
- </EntityType>
- <EntityType Name="CmAlarmAdmin">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="UserCode" Type="nvarchar" MaxLength="50" />
- <Property Name="DeptCode" Type="nvarchar" MaxLength="50" />
- <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
- <Property Name="EmailAddress" Type="nvarchar" MaxLength="50" />
- <Property Name="EmailPassword" Type="nvarchar" MaxLength="50" />
- </EntityType>
- <EntityType Name="CmAnnouncement">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AnnouncementId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="AnnouncementId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="FileId" Type="int" />
- <Property Name="AddDate" Type="datetime" Nullable="false" />
- <Property Name="UpdateDate" Type="datetime" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="ReadCount" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="CmBuilding">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="FileId" Type="int" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="SortOrderNo" Type="int" />
- </EntityType>
- <EntityType Name="CmBusinessField">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BusinessFieldId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmCompany">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="CompanyTypeId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
- <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
- <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
- <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
- <Property Name="Address1" Type="nvarchar" MaxLength="50" />
- <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
- <Property Name="Homepage" Type="nvarchar" MaxLength="100" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmCompanyType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CompanyTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmDepartment">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyId" />
- <PropertyRef Name="DepartmentId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CompanyId" Type="int" Nullable="false" />
- <Property Name="DepartmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="ShortName" Type="nvarchar" MaxLength="50" />
- <Property Name="FaxNo" Type="nvarchar" MaxLength="50" />
- <Property Name="PhoneNo" Type="nvarchar" MaxLength="50" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityTypeId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="FirstClassId" Type="int" />
- <Property Name="SecondClassId" Type="int" />
- <Property Name="ThirdClassId" Type="int" />
- <Property Name="DeviceType" Type="nvarchar" MaxLength="48" />
- <Property Name="ParentFacilityCode" Type="int" />
- <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
- <Property Name="Nickname" Type="nvarchar" MaxLength="40" />
- <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
- <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
- <Property Name="ManufactureDate" Type="date" />
- <Property Name="ManufactureSerial" Type="nvarchar" MaxLength="20" />
- <Property Name="ManufactureModel" Type="nvarchar" MaxLength="40" />
- <Property Name="Supplier" Type="nvarchar" MaxLength="40" />
- <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="BuildingId" Type="int" />
- <Property Name="FloorId" Type="int" />
- <Property Name="ZoneId" Type="int" />
- <Property Name="InstallDate" Type="date" />
- <Property Name="OperationStartDate" Type="date" />
- <Property Name="FacilityCapacity" Type="nvarchar" MaxLength="40" />
- <Property Name="FacilityCost" Type="int" />
- <Property Name="FacilityCount" Type="int" />
- <Property Name="FacilitySeviceLifeYear" Type="int" />
- <Property Name="FacilityUsage" Type="nvarchar" MaxLength="80" />
- <Property Name="RatedPowerConsumption" Type="nvarchar" MaxLength="40" />
- <Property Name="RatedCOP" Type="float" />
- <Property Name="MainContactorUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="SubContactorUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="Note" Type="nvarchar" MaxLength="1024" />
- <Property Name="Reserved1" Type="nvarchar" MaxLength="64" />
- <Property Name="Reserved2" Type="nvarchar" MaxLength="64" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="FileId" Type="int" />
- <Property Name="IsVirtualFacility" Type="bit" Nullable="false" />
- <Property Name="FuelTypeId" Type="smallint" />
- <Property Name="ContractType" Type="smallint" />
- </EntityType>
- <EntityType Name="CmFacilityFile">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="InsertedDate" Type="datetime" />
- <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="UpdatedDate" Type="datetime" />
- <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
- </EntityType>
- <EntityType Name="CmFacilityTempSet">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="T1" Type="float" Nullable="false" />
- <Property Name="T2" Type="float" Nullable="false" />
- <Property Name="T3" Type="float" Nullable="false" />
- <Property Name="T4" Type="float" Nullable="false" />
- <Property Name="T5" Type="float" Nullable="false" />
- <Property Name="T6" Type="float" Nullable="false" />
- <Property Name="T7" Type="float" Nullable="false" />
- <Property Name="T8" Type="float" Nullable="false" />
- <Property Name="T9" Type="float" Nullable="false" />
- <Property Name="T10" Type="float" Nullable="false" />
- <Property Name="T11" Type="float" Nullable="false" />
- <Property Name="T12" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="CmFile">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FileId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FileId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="FileCategoryId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="FileSize" Type="int" />
- <Property Name="CreatedDate" Type="datetime" />
- <Property Name="ContentType" Type="nvarchar" MaxLength="128" />
- </EntityType>
- <EntityType Name="CmFileCategory">
- <Key>
- <PropertyRef Name="FileCategoryId" />
- </Key>
- <Property Name="FileCategoryId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- </EntityType>
- <EntityType Name="CmFloor">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" Nullable="false" />
- <Property Name="FloorId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="CmHoliday">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayMonth" />
- <PropertyRef Name="HolidayDay" />
- <PropertyRef Name="IsLunar" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="HolidayMonth" Type="smallint" Nullable="false" />
- <Property Name="HolidayDay" Type="smallint" Nullable="false" />
- <Property Name="IsLunar" Type="bit" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmHolidayCustom">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayDate" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="HolidayDate" Type="datetime" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="16" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmHolidayWeekend">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Saturday" Type="bit" Nullable="false" />
- <Property Name="Sunday" Type="bit" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmMenu">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MenuId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Used" Type="bit" />
- <Property Name="MenuPath" Type="nvarchar" MaxLength="255" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" />
- </EntityType>
- <EntityType Name="CmPartner">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PartnerId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PartnerId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="PartnerTypeId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" />
- <Property Name="RepresentativeName" Type="nvarchar" MaxLength="20" />
- <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
- <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
- <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="AddressZip1" Type="nchar" MaxLength="3" />
- <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
- <Property Name="Address1" Type="nvarchar" MaxLength="50" />
- <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
- <Property Name="HomepageUri" Type="nvarchar" MaxLength="100" />
- <Property Name="Note" Type="nvarchar" MaxLength="1024" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmPartnerType">
- <Key>
- <PropertyRef Name="PartnerTypeId" />
- </Key>
- <Property Name="PartnerTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmPatrolCourse">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolCourseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- </EntityType>
- <EntityType Name="CmPatrolCoursePos">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolCourseId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="PosId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolCourseId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" Nullable="false" />
- <Property Name="FloorId" Type="int" Nullable="false" />
- <Property Name="PosId" Type="int" Nullable="false" />
- <Property Name="CourseOrder" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="CmPatrolGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- </EntityType>
- <EntityType Name="CmPatrolGroupUser">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolGroupId" />
- <PropertyRef Name="UserId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolGroupId" Type="int" Nullable="false" />
- <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- </EntityType>
- <EntityType Name="CmPatrolHistory">
- <Key>
- <PropertyRef Name="PatrolHistoryId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolHistoryId" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
- <Property Name="ScheduleId" Type="int" Nullable="false" />
- <Property Name="startDate" Type="datetime" Nullable="false" />
- <Property Name="endDate" Type="datetime" />
- <Property Name="resultTypeId" Type="int" Nullable="false" />
- <Property Name="resultDesc" Type="varchar" MaxLength="1024" />
- <Property Name="resultPosCnt" Type="int" />
- <Property Name="resultNormalCnt" Type="int" />
- <Property Name="resultAbnormalCnt" Type="int" />
- </EntityType>
- <EntityType Name="CmPatrolHistoryPos">
- <Key>
- <PropertyRef Name="mId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolHistoryId" Type="int" Nullable="false" />
- <Property Name="PosId" Type="int" Nullable="false" />
- <Property Name="PatrolTime" Type="datetime" Nullable="false" />
- <Property Name="term" Type="int" />
- <Property Name="resultType" Type="int" Nullable="false" />
- <Property Name="mId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- </EntityType>
- <EntityType Name="CmPatrolPlan">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolPlanId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolPlanId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="GroupId" Type="int" Nullable="false" />
- <Property Name="CourseId" Type="int" Nullable="false" />
- <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
- <Property Name="PlanDesc" Type="varchar" MaxLength="1024" />
- <Property Name="term" Type="int" Nullable="false" />
- <Property Name="inDate" Type="datetime" />
- </EntityType>
- <EntityType Name="CmPatrolPos">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PosId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" Nullable="false" />
- <Property Name="FloorId" Type="int" Nullable="false" />
- <Property Name="PosId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="TagId" Type="nvarchar" MaxLength="32" />
- <Property Name="PosDesc" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="CmPatrolSchedule">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ScheduleId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="PlanId" Type="int" Nullable="false" />
- <Property Name="Name" Type="varchar" MaxLength="48" Nullable="false" />
- <Property Name="ScheduleDesc" Type="varchar" MaxLength="128" />
- <Property Name="inDate" Type="datetime" />
- <Property Name="patrolDateTime" Type="datetime" Nullable="false" />
- </EntityType>
- <EntityType Name="CmPatrolType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PatrolTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PatrolTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmPosition">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PositionId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PositionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="40" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="CmServiceEnergyCalcDay">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="calDate" />
- <PropertyRef Name="ServiceTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="calDate" Type="datetime" Nullable="false" />
- <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
- <Property Name="Value" Type="float" />
- </EntityType>
- <EntityType Name="CmServiceEnergyCalcMonth">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="calDate" />
- <PropertyRef Name="ServiceTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="calDate" Type="datetime" Nullable="false" />
- <Property Name="ServiceTypeId" Type="smallint" Nullable="false" />
- <Property Name="Value" Type="float" />
- </EntityType>
- <EntityType Name="CmSite">
- <Key>
- <PropertyRef Name="SiteId" />
- </Key>
- <Property Name="SiteId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
- <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
- <Property Name="Address1" Type="nvarchar" MaxLength="100" />
- <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
- <Property Name="PhoneNo" Type="nvarchar" MaxLength="24" />
- <Property Name="URL" Type="nvarchar" MaxLength="100" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="SortOrderNo" Type="int" />
- <Property Name="InsertedDate" Type="datetime" />
- <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="UpdatedDate" Type="datetime" />
- <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="IsControlSchedule" Type="bit" />
- <Property Name="ScheduleCheckHour" Type="int" />
- <Property Name="MaxPeak" Type="float" />
- <Property Name="lat" Type="float" />
- <Property Name="lng" Type="float" />
- <Property Name="controlSchedule" Type="bit" />
- <Property Name="HDD" Type="nvarchar" MaxLength="24" />
- <Property Name="CDD" Type="nvarchar" MaxLength="24" />
- <Property Name="BuildingSize" Type="nvarchar" MaxLength="50" />
- <Property Name="GrossArea" Type="nvarchar" MaxLength="24" />
- <Property Name="BuildingArea" Type="nvarchar" MaxLength="24" />
- <Property Name="FloorAreaRatio" Type="nvarchar" MaxLength="24" />
- <Property Name="BuildingCoverageRatio" Type="nvarchar" MaxLength="24" />
- <Property Name="MainUse" Type="nvarchar" MaxLength="10" />
- <Property Name="CompletionDate" Type="nvarchar" MaxLength="24" />
- <Property Name="Standard" Type="nvarchar" MaxLength="24" />
- <Property Name="MainUseIndex" Type="int" />
- </EntityType>
- <EntityType Name="CmUser">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="CompanyId" Type="int" />
- <Property Name="DepartmentId" Type="int" />
- <Property Name="PositionId" Type="int" />
- <Property Name="BusinessFieldId" Type="int" />
- <Property Name="UserGroupId" Type="int" />
- <Property Name="Name" Type="nvarchar" MaxLength="30" Nullable="false" />
- <Property Name="Passwd" Type="nvarchar" MaxLength="30" Nullable="false" />
- <Property Name="Birthday" Type="datetime" />
- <Property Name="Lunar" Type="bit" />
- <Property Name="StateId" Type="int" />
- <Property Name="EmploymentType" Type="int" />
- <Property Name="EmploymentStatus" Type="int" />
- <Property Name="OfficePhoneNo" Type="nvarchar" MaxLength="50" />
- <Property Name="HomePhoneNo" Type="nvarchar" MaxLength="50" />
- <Property Name="MobilePhoneNo" Type="nvarchar" MaxLength="50" />
- <Property Name="HomeZip1" Type="char" MaxLength="3" />
- <Property Name="HomeZip2" Type="char" MaxLength="3" />
- <Property Name="HomeAddress1" Type="nvarchar" MaxLength="50" />
- <Property Name="HomeAdderss2" Type="nvarchar" MaxLength="100" />
- <Property Name="Email" Type="nvarchar" MaxLength="50" />
- <Property Name="EnterDate" Type="datetime" />
- <Property Name="RetireDate" Type="datetime" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="Rfcsn" Type="nvarchar" MaxLength="30" />
- <Property Name="PasswordUpdatedDate" Type="datetime" />
- <Property Name="FileId" Type="int" />
- <Property Name="IsBems" Type="bit" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="IsScheduleUser" Type="bit" />
- <Property Name="Certificated" Type="nvarchar" MaxLength="512" />
- <Property Name="IsSI" Type="bit" />
- <Property Name="IsMobile" Type="bit" />
- <Property Name="Devicetoken" Type="nvarchar" MaxLength="500" />
- </EntityType>
- <EntityType Name="CmUserGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="UserGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- </EntityType>
- <EntityType Name="CmUserGroupPermission">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserGroupId" />
- <PropertyRef Name="MenuId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="UserGroupId" Type="int" Nullable="false" />
- <Property Name="MenuId" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="MenuPermission" Type="smallint" />
- </EntityType>
- <EntityType Name="CmUserLoginHistory">
- <Key>
- <PropertyRef Name="LoginHistoryId" />
- </Key>
- <Property Name="LoginHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Type" Type="nvarchar" MaxLength="10" Nullable="false" />
- <Property Name="TraceTime" Type="datetime" Nullable="false" />
- <Property Name="IpAddress" Type="nvarchar" MaxLength="16" />
- </EntityType>
- <EntityType Name="CmUserToLicense">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="UserId" />
- <PropertyRef Name="LicenseId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="UserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="LicenseId" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="CmZone">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" Nullable="false" />
- <Property Name="FloorId" Type="int" Nullable="false" />
- <Property Name="ZoneId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Target_temperature" Type="float" />
- <Property Name="Target_humidity" Type="smallint" />
- </EntityType>
- <EntityType Name="CmZoneTempHumiSet">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BuildingId" />
- <PropertyRef Name="FloorId" />
- <PropertyRef Name="ZoneId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BuildingId" Type="int" Nullable="false" />
- <Property Name="FloorId" Type="int" Nullable="false" />
- <Property Name="ZoneId" Type="int" Nullable="false" />
- <Property Name="T1" Type="float" Nullable="false" />
- <Property Name="T2" Type="float" Nullable="false" />
- <Property Name="T3" Type="float" Nullable="false" />
- <Property Name="T4" Type="float" Nullable="false" />
- <Property Name="T5" Type="float" Nullable="false" />
- <Property Name="T6" Type="float" Nullable="false" />
- <Property Name="T7" Type="float" Nullable="false" />
- <Property Name="T8" Type="float" Nullable="false" />
- <Property Name="T9" Type="float" Nullable="false" />
- <Property Name="T10" Type="float" Nullable="false" />
- <Property Name="T11" Type="float" Nullable="false" />
- <Property Name="T12" Type="float" Nullable="false" />
- <Property Name="H1" Type="smallint" Nullable="false" />
- <Property Name="H2" Type="smallint" Nullable="false" />
- <Property Name="H3" Type="smallint" Nullable="false" />
- <Property Name="H4" Type="smallint" Nullable="false" />
- <Property Name="H5" Type="smallint" Nullable="false" />
- <Property Name="H6" Type="smallint" Nullable="false" />
- <Property Name="H7" Type="smallint" Nullable="false" />
- <Property Name="H8" Type="smallint" Nullable="false" />
- <Property Name="H9" Type="smallint" Nullable="false" />
- <Property Name="H10" Type="smallint" Nullable="false" />
- <Property Name="H11" Type="smallint" Nullable="false" />
- <Property Name="H12" Type="smallint" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsAccident">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="AccidentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="StartDate" Type="datetime" />
- <Property Name="EndDate" Type="datetime" />
- <Property Name="AccidentTypeId" Type="int" Nullable="false" />
- <Property Name="DepartmentId" Type="int" />
- <Property Name="AccidentLocation" Type="nvarchar" MaxLength="256" />
- <Property Name="Reason" Type="nvarchar" MaxLength="1024" />
- <Property Name="Action" Type="nvarchar" MaxLength="1024" />
- <Property Name="Damage" Type="nvarchar" MaxLength="1024" />
- <Property Name="Measurement" Type="nvarchar" MaxLength="1024" />
- <Property Name="FileId1" Type="int" />
- <Property Name="FileId2" Type="int" />
- <Property Name="FileId3" Type="int" />
- <Property Name="CompanyId" Type="int" />
- </EntityType>
- <EntityType Name="FmsAccidentCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AccidentTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="AccidentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsBudget">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Year" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsBudgetCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="BudgetClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BudgetClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
- <Property Name="RootBudgetClassId" Type="int" />
- <Property Name="ParentBudgetClassId" Type="int" />
- <Property Name="Depth" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="YearlyBudget" Type="float" />
- <Property Name="MonthlyBudget" Type="float" />
- </EntityType>
- <EntityType Name="FmsBudgetDetail">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="Year" />
- <PropertyRef Name="BudgetClassId" />
- <PropertyRef Name="ParentBudgetClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="Year" Type="int" Nullable="false" />
- <Property Name="BudgetClassId" Type="int" Nullable="false" />
- <Property Name="BudgetSeq" Type="nvarchar" MaxLength="6" Nullable="false" />
- <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
- <Property Name="RootBudgetClassId" Type="int" />
- <Property Name="Depth" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="YearlyBudget" Type="float" Nullable="false" />
- <Property Name="MonthlyBudget" Type="float" Nullable="false" />
- </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="int" Nullable="false" />
- <Property Name="Year" Type="int" Nullable="false" />
- <Property Name="BudgetClassId" Type="int" Nullable="false" />
- <Property Name="RootBudgetClassId" Type="int" />
- <Property Name="ParentBudgetClassId" Type="int" Nullable="false" />
- <Property Name="Month" Type="int" Nullable="false" />
- <Property Name="YearlyBudget" Type="float" Nullable="false" />
- <Property Name="MonthlyBudget" Type="float" Nullable="false" />
- <Property Name="YearlyExecution" Type="float" Nullable="false" />
- <Property Name="MonthlyExecution" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsCompanyEstimationCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CompanyEstimationClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CompanyEstimationClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsConstruction">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ConstructionId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="ConstructionTypeId" Type="int" Nullable="false" />
- <Property Name="StartDate" Type="datetime" Nullable="false" />
- <Property Name="EndDate" Type="datetime" Nullable="false" />
- <Property Name="PartnerId" Type="int" Nullable="false" />
- <Property Name="ConstructLocation" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="CommitmentMan" Type="smallint" />
- <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="WeldWorkStartTime" Type="datetime" />
- <Property Name="WeldWorkEndTime" Type="datetime" />
- <Property Name="GasWorkStartTime" Type="datetime" />
- <Property Name="GasWorkEndTime" Type="datetime" />
- <Property Name="PaintWorkStartTime" Type="datetime" />
- <Property Name="PaintWorkEndTime" Type="datetime" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="ProgressId" Type="smallint" Nullable="false" />
- <Property Name="AddDate" Type="datetime" Nullable="false" />
- <Property Name="UpdateDate" Type="datetime" Nullable="false" />
- <Property Name="ConstructionDetail" Type="nvarchar" MaxLength="1024" />
- <Property Name="InOutStockName" Type="nvarchar" MaxLength="1024" />
- <Property Name="FileId1" Type="int" />
- <Property Name="FileId2" Type="int" />
- <Property Name="FileId3" Type="int" />
- </EntityType>
- <EntityType Name="FmsConstructionCodeProgress">
- <Key>
- <PropertyRef Name="ProgressId" />
- </Key>
- <Property Name="ProgressId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="100" />
- </EntityType>
- <EntityType Name="FmsConstructionCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ConstructionTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsConstructionEstimation">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ConstructionId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ConstructionId" Type="int" Nullable="false" />
- <Property Name="EstimateDate" Type="datetime" Nullable="false" />
- <Property Name="EstimateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Safety01_CleanUp" Type="bit" />
- <Property Name="Safety02_PersonalProtection" Type="bit" />
- <Property Name="Safety03_FireExtinguisher" Type="bit" />
- <Property Name="Safety04_HighPlaceWork" Type="bit" />
- <Property Name="Safety05_Weld" Type="bit" />
- <Property Name="Safety06_SurroundingCleanUp" Type="bit" />
- <Property Name="Safety07_SurroundingHealthy" Type="bit" />
- <Property Name="Safety08_Noise" Type="bit" />
- <Property Name="Safety09_FacilityProtection" Type="bit" />
- <Property Name="Safety10_Waste" Type="bit" />
- <Property Name="Safety11_Execution" Type="bit" />
- <Property Name="Safety12_Announcement" Type="bit" />
- <Property Name="Ability01_Compliance" Type="bit" />
- <Property Name="Ability02_Fault" Type="bit" />
- <Property Name="Ability03_SkillLevel" Type="bit" />
- <Property Name="Ability04_ProcessManagement" Type="bit" />
- <Property Name="Ability05_Collaboration" Type="bit" />
- <Property Name="Service01_Compliance" Type="bit" />
- <Property Name="Service02_SkillLevel" Type="bit" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="TotalEstimateScore" Type="float" />
- <Property Name="SafetyScore" Type="float" />
- <Property Name="AbilityScore" Type="float" />
- <Property Name="ServiceScore" Type="float" />
- </EntityType>
- <EntityType Name="FmsContract">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ContractId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="PartnerTypeId" Type="int" />
- <Property Name="PartnerId" Type="int" />
- <Property Name="ContractDate" Type="datetime" />
- <Property Name="StartDate" Type="datetime" />
- <Property Name="EndDate" Type="datetime" />
- <Property Name="OwnerShipName" Type="nvarchar" MaxLength="24" />
- <Property Name="OwnerShipPhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="CommitmentMan" Type="smallint" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="ContractClassId" Type="int" />
- <Property Name="ContractTypeId" Type="int" />
- <Property Name="ContractMethodId" Type="int" />
- <Property Name="PaymentTypeId" Type="int" />
- </EntityType>
- <EntityType Name="FmsContractClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ContractClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsContractMethod">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractMethodId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ContractMethodId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsContractType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ContractTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ContractTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsDailyCheckReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DailyCheckReportId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="DailyCheckReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="AddDate" Type="datetime" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsDailyReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="AddDate" />
- <PropertyRef Name="BusinessFieldId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="DailyReportId" Type="int" />
- <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="AddDate" Type="date" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="Datas" Type="varchar(max)" />
- <Property Name="ApproverUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="ApproveDate" Type="date" />
- <Property Name="RegisterDate" Type="date" />
- <Property Name="ApproverUserId2" Type="nvarchar" MaxLength="24" />
- <Property Name="ApproveDate2" Type="date" />
- <Property Name="ApproverUserId3" Type="nvarchar" MaxLength="24" />
- <Property Name="ApproveDate3" Type="date" />
- <Property Name="ApproverUserId4" Type="nvarchar" MaxLength="24" />
- <Property Name="ApproveDate4" Type="date" />
- <Property Name="ApproverUserId5" Type="nvarchar" MaxLength="24" />
- <Property Name="ApproveDate5" Type="date" />
- </EntityType>
- <EntityType Name="FmsDrawing">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="DrawingId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="DrawingNo" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="DrawingGroupId" Type="int" Nullable="false" />
- <Property Name="DrawingTypeId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="2000" />
- </EntityType>
- <EntityType Name="FmsDrawingCodeGroup">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingGroupId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="DrawingGroupId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsDrawingCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="DrawingTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsDrawingHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="DrawingId" />
- <PropertyRef Name="HistoryId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="DrawingId" Type="int" Nullable="false" />
- <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="RevisionNo" Type="int" />
- <Property Name="FileId" Type="int" />
- <Property Name="Description" Type="nvarchar" MaxLength="2000" />
- <Property Name="UpdatedDate" Type="datetime" />
- <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
- </EntityType>
- <EntityType Name="FmsEquipment">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="EquipmentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- <Property Name="EquipmentTypeId" Type="int" Nullable="false" />
- <Property Name="WarehouseId" Type="int" />
- <Property Name="Unit" Type="nvarchar" MaxLength="12" />
- <Property Name="Standard" Type="nvarchar" MaxLength="20" />
- <Property Name="AddDate" Type="datetime" />
- <Property Name="UpdateDate" Type="datetime" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="SupplierName" Type="nvarchar" MaxLength="256" />
- <Property Name="SupplierPhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="ImageFileId" Type="int" />
- </EntityType>
- <EntityType Name="FmsEquipmentCodeStateType">
- <Key>
- <PropertyRef Name="EquipmentStateTypeId" />
- </Key>
- <Property Name="EquipmentStateTypeId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="FmsEquipmentCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="EquipmentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="255" />
- </EntityType>
- <EntityType Name="FmsEquipmentHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentHistoryId" />
- <PropertyRef Name="EquipmentId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="EquipmentHistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="EquipmentId" Type="int" Nullable="false" />
- <Property Name="TotalStockCount" Type="int" />
- <Property Name="CurrentStockCount" Type="int" />
- <Property Name="RentCount" Type="int" />
- <Property Name="CurrentRentCount" Type="int" />
- <Property Name="ReturnCount" Type="int" />
- <Property Name="LossCount" Type="int" />
- <Property Name="StoredCount" Type="int" />
- <Property Name="EquipmentRentId" Type="int" />
- <Property Name="EquipmentStateTypeId" Type="smallint" />
- <Property Name="AddDate" Type="datetime" />
- <Property Name="UpdateDate" Type="datetime" />
- <Property Name="IsReturned" Type="bit" />
- </EntityType>
- <EntityType Name="FmsEquipmentRentInfo">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EquipmentRentId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="EquipmentRentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="RentUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="RegisterDate" Type="nchar" MaxLength="10" />
- <Property Name="RentDate" Type="datetime" />
- <Property Name="ReturnDueDate" Type="datetime" />
- <Property Name="ReturnFixDate" Type="datetime" />
- <Property Name="EquipmentStateTypeId" Type="smallint" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="Title" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="RentUser" Type="nvarchar" MaxLength="128" />
- </EntityType>
- <EntityType Name="FmsFacilityCheckItem">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="CheckItemId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="WorkTypeId" Type="int" Nullable="false" />
- <Property Name="CycleUnitId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="IsYesNoResult" Type="bit" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsFacilityCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ParentFacilityClassId" Type="int" />
- <Property Name="Depth" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="80" Nullable="false" />
- <Property Name="Abbreviation" Type="nvarchar" MaxLength="40" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsFacilityManual">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityCode" />
- <PropertyRef Name="ManualId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="100" />
- <Property Name="Description" Type="nvarchar" MaxLength="1024" />
- <Property Name="Keyword" Type="nvarchar" MaxLength="100" />
- <Property Name="FileId" Type="int" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsFacilityOperationItem">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ItemId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- <Property Name="ItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="100" />
- <Property Name="ResultUnit" Type="nvarchar" MaxLength="10" Nullable="false" />
- <Property Name="PointId" Type="nvarchar" MaxLength="50" />
- <Property Name="SystemId" Type="int" />
- <Property Name="EnergyCode" Type="bit" />
- <Property Name="IsUse" Type="bit" />
- <Property Name="SortOrderNo" Type="int" />
- <Property Name="InsertedDate" Type="datetime" />
- <Property Name="InsertedUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="UpdatedDate" Type="datetime" />
- <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
- </EntityType>
- <EntityType Name="FmsFacilityOperationReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="FacilityOperationReportId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="FacilityOperationReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="AddDate" Type="datetime" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsInvestmentCost">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InsvestmentCostId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="InsvestmentCostId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- <Property Name="InsvestmentCost" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsLicense">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LicenseId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="LicenseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="52" Nullable="false" />
- <Property Name="IssuingOffice" Type="nvarchar" MaxLength="52" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" />
- <Property Name="EducationalInstitute" Type="nvarchar" MaxLength="52" />
- <Property Name="Note" Type="nvarchar" MaxLength="256" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsManual">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ManualId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ManualNo" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="ManualTypeId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="200" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="2000" />
- </EntityType>
- <EntityType Name="FmsManualHistory">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualId" />
- <PropertyRef Name="HistoryId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ManualId" Type="int" Nullable="false" />
- <Property Name="HistoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="RevisionNo" Type="int" />
- <Property Name="FileId" Type="int" />
- <Property Name="Description" Type="nvarchar" MaxLength="2000" />
- <Property Name="UpdatedDate" Type="datetime" />
- <Property Name="UpdatedUserId" Type="nvarchar" MaxLength="24" />
- </EntityType>
- <EntityType Name="FmsManualType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="ManualTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="ManualTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsMaterial">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="MaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- <Property Name="FirstClassId" Type="int" />
- <Property Name="SecondClassId" Type="int" />
- <Property Name="ThirdClassId" Type="int" />
- <Property Name="LocationId" Type="int" />
- <Property Name="MaterialTypeId" Type="int" />
- <Property Name="WarehouseId" Type="int" />
- <Property Name="TradeCompanyId" Type="int" />
- <Property Name="Rfid" Type="nvarchar" MaxLength="52" />
- <Property Name="Unit" Type="nvarchar" MaxLength="12" />
- <Property Name="DurableYears" Type="smallint" />
- <Property Name="ReasonableStockCount" Type="smallint" />
- <Property Name="Manufacturer" Type="nvarchar" MaxLength="40" />
- <Property Name="Standard" Type="nvarchar" MaxLength="20" />
- <Property Name="FinalPrice" Type="int" />
- <Property Name="ImageFileId" Type="int" />
- <Property Name="Note" Type="nvarchar" MaxLength="512" />
- <Property Name="IsDiscontinued" Type="bit" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- <Property Name="FinalStockCount" Type="int" Nullable="false" />
- <Property Name="FinalTotalStockAmount" Type="int" Nullable="false" />
- </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="int" Nullable="false" />
- <Property Name="ClosedDate" Type="datetime" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="WarehouseId" Type="int" Nullable="false" />
- <Property Name="MaterialId" Type="int" Nullable="false" />
- <Property Name="StockCount" Type="int" Nullable="false" />
- <Property Name="StockTotalCost" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeAdjustmentType">
- <Key>
- <PropertyRef Name="AdjustmentTypeId" />
- </Key>
- <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="MaterialClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ParentMaterialClassId" Type="int" />
- <Property Name="Depth" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="32" Nullable="false" />
- <Property Name="Abbreviation" Type="nvarchar" MaxLength="16" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeLocation">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="LocationId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="LocationId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeProgress">
- <Key>
- <PropertyRef Name="ProgressId" />
- </Key>
- <Property Name="ProgressId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="100" />
- </EntityType>
- <EntityType Name="FmsMaterialCodePurchaseType">
- <Key>
- <PropertyRef Name="PurchaseTypeId" />
- </Key>
- <Property Name="PurchaseTypeId" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeReleaseType">
- <Key>
- <PropertyRef Name="ReleaseTypeId" />
- </Key>
- <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="255" />
- </EntityType>
- <EntityType Name="FmsMaterialCodeType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="MaterialTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Nickname" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseOrder">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="PurchaseOrderId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
- <Property Name="TradeCompanyId" Type="int" />
- <Property Name="OrderDate" Type="datetime" Nullable="false" />
- <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="Reason" Type="nvarchar" MaxLength="2000" />
- <Property Name="StoredDueDate" Type="datetime" />
- <Property Name="FileId" Type="int" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseOrderMaterial">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseOrderId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="PurchaseOrderId" Type="int" Nullable="false" />
- <Property Name="MaterialId" Type="int" Nullable="false" />
- <Property Name="MaterialCount" Type="int" Nullable="false" />
- <Property Name="UnitCost" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseRequest">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="PurchaseRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="PurchaseTypeId" Type="smallint" Nullable="false" />
- <Property Name="RequestDate" Type="datetime" Nullable="false" />
- <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="PurchaseHopeDate" Type="datetime" />
- <Property Name="Title" Type="nvarchar" MaxLength="256" Nullable="false" />
- <Property Name="Reason" Type="nvarchar" MaxLength="2000" Nullable="false" />
- <Property Name="ProgressId" Type="smallint" Nullable="false" />
- <Property Name="ApprovalDate" Type="datetime" />
- <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="bSameOrder" Type="bit" />
- </EntityType>
- <EntityType Name="FmsMaterialPurchaseRequestMaterial">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PurchaseRequestId" />
- <PropertyRef Name="MaterialId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="PurchaseRequestId" Type="int" Nullable="false" />
- <Property Name="MaterialId" Type="int" Nullable="false" />
- <Property Name="MaterialCount" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMaterialRelease">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialReleaseId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="ReleaseDate" Type="datetime" Nullable="false" />
- <Property Name="MaterialReleaseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ReleaseTypeId" Type="smallint" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" />
- <Property Name="WarehouseId" Type="int" />
- <Property Name="MaterialId" Type="int" />
- <Property Name="MaterialCount" Type="int" />
- <Property Name="StockCountByPoint" Type="int" />
- <Property Name="ReleaseTotalCost" Type="int" />
- <Property Name="AdjustmentTypeId" Type="smallint" Nullable="false" />
- <Property Name="AdjustmentUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="ConfirmedDate" Type="datetime" />
- <Property Name="IsConfirmed" Type="bit" Nullable="false" />
- <Property Name="Comment" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="FmsMaterialStored">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MaterialStoredId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="StoredDate" Type="datetime" Nullable="false" />
- <Property Name="MaterialStoredId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="PurchaseOrderId" Type="int" />
- <Property Name="WarehouseId" Type="int" Nullable="false" />
- <Property Name="MaterialId" Type="int" Nullable="false" />
- <Property Name="StoredCount" Type="int" Nullable="false" />
- <Property Name="RemainStoredCount" Type="int" Nullable="false" />
- <Property Name="UnitCost" Type="int" Nullable="false" />
- <Property Name="StockCount" Type="int" Nullable="false" />
- <Property Name="Note" Type="nvarchar" MaxLength="1024" />
- <Property Name="StoredUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="ApprovalDate" Type="datetime" />
- <Property Name="ApprovalUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="IsApproval" Type="bit" Nullable="false" />
- <Property Name="LocationInWarehouse" Type="nvarchar" MaxLength="100" />
- </EntityType>
- <EntityType Name="FmsMaterialTradeCompany">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="TradeCompanyId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="TradeCompanyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- <Property Name="RegistrationNo" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="RepresentativeName" Type="nvarchar" MaxLength="24" />
- <Property Name="PhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="FaxNo" Type="nvarchar" MaxLength="20" />
- <Property Name="SalesName" Type="nvarchar" MaxLength="20" />
- <Property Name="SalesPhoneNo" Type="nvarchar" MaxLength="20" />
- <Property Name="AddressZip1" Type="nchar" MaxLength="5" />
- <Property Name="AddressZip2" Type="nchar" MaxLength="3" />
- <Property Name="Address1" Type="nvarchar" MaxLength="100" />
- <Property Name="Adderss2" Type="nvarchar" MaxLength="100" />
- <Property Name="HomepageUri" Type="nvarchar" MaxLength="200" />
- <Property Name="Note" Type="nvarchar" MaxLength="1024" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMaterialWarehouse">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WarehouseId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="WarehouseId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsMonthlyReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="MonthlyReportId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="MonthlyReportId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="Contents" Type="nvarchar" MaxLength="1024" Nullable="false" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="AddDate" Type="datetime" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsPaymentType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="PaymentTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="PaymentTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsReport">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="RId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="RId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="128" />
- <Property Name="Contents" Type="nvarchar" MaxLength="1024" />
- <Property Name="RegisterUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="FileId" Type="int" />
- <Property Name="MakeDate" Type="datetime" Nullable="false" />
- <Property Name="ConfirmUserId1" Type="nvarchar" MaxLength="24" />
- <Property Name="ConfirmUserId2" Type="nvarchar" MaxLength="24" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsWorkCodeCauseClass">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CauseClassId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CauseClassId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ParentId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsWorkCodeCycleUnit">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="CycleUnitId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="CycleUnitId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="200" />
- </EntityType>
- <EntityType Name="FmsWorkCodeEmergency">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="EmergencyId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="EmergencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsWorkCodeHolidayWorkType">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="HolidayWorkTypeId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsWorkCodeLegalInspectionAgency">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="InspectionAgencyId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="InspectionAgencyId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="IsUse" Type="bit" />
- </EntityType>
- <EntityType Name="FmsWorkCodeProgress">
- <Key>
- <PropertyRef Name="WorkProgressId" />
- </Key>
- <Property Name="WorkProgressId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="512" />
- </EntityType>
- <EntityType Name="FmsWorkCodeType">
- <Key>
- <PropertyRef Name="WorkTypeId" />
- </Key>
- <Property Name="WorkTypeId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="512" />
- </EntityType>
- <EntityType Name="FmsWorkOrder">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="EmergencyId" Type="int" />
- <Property Name="OrderUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="OrderDate" Type="datetime" Nullable="false" />
- <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
- <Property Name="Content" Type="nvarchar" MaxLength="2000" />
- </EntityType>
- <EntityType Name="FmsWorkOrderToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsWorkRequest">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="WorkTypeId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="WorkScheduleId" Type="int" />
- <Property Name="WorkProgressId" Type="int" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="200" Nullable="false" />
- <Property Name="Content" Type="nvarchar" MaxLength="1024" />
- <Property Name="RequestUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="RequestDate" Type="datetime" Nullable="false" />
- <Property Name="StartWorkDate" Type="datetime" Nullable="false" />
- <Property Name="RejectUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="RejectDate" Type="datetime" />
- <Property Name="RejectReason" Type="nvarchar" MaxLength="512" />
- <Property Name="InspectionAgencyId" Type="int" />
- </EntityType>
- <EntityType Name="FmsWorkRequestToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsWorkResult">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="WorkerUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="StartDate" Type="datetime" Nullable="false" />
- <Property Name="EndDate" Type="datetime" Nullable="false" />
- <Property Name="CauseClassId" Type="int" />
- <Property Name="Content" Type="nvarchar" MaxLength="1024" />
- <Property Name="ConfirmedDate" Type="datetime" />
- <Property Name="ConfirmedUserId" Type="nvarchar" MaxLength="24" />
- <Property Name="IsConfirmed" Type="bit" Nullable="false" />
- <Property Name="ConfirmDesc" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="FmsWorkResultCheckItem">
- <Key>
- <PropertyRef Name="CheckItemId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" />
- <Property Name="CheckItemId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="BoolResult" Type="bit" />
- <Property Name="TextResult" Type="nvarchar" MaxLength="1024" />
- <Property Name="CheckDate" Type="datetime" Nullable="false" />
- <Property Name="FileId1" Type="int" />
- <Property Name="FileId2" Type="int" />
- </EntityType>
- <EntityType Name="FmsWorkResultCheckItemMaterial">
- <Key>
- <PropertyRef Name="CheckItemMaterialId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="CheckItemId" Type="int" Nullable="false" />
- <Property Name="CheckItemMaterialId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="MaterialId" Type="int" Nullable="false" />
- <Property Name="MaterialCount" Type="int" Nullable="false" />
- <Property Name="MaterialCode" Type="nvarchar" MaxLength="48" />
- <Property Name="Name" Type="nvarchar" MaxLength="48" />
- </EntityType>
- <EntityType Name="FmsWorkResultFile">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="FileId" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsWorkResultLaw">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="CertificationNo" Type="nvarchar" MaxLength="50" />
- <Property Name="CheckCommission" Type="numeric" Precision="10" Scale="0" />
- <Property Name="CheckResult" Type="bit" />
- </EntityType>
- <EntityType Name="FmsWorkResultToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkRequestId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkRequestId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="FmsWorkSchedule">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkScheduleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="WorkTypeId" Type="int" Nullable="false" />
- <Property Name="BusinessFieldId" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="InspectionAgencyId" Type="int" />
- <Property Name="CycleSize" Type="int" Nullable="false" />
- <Property Name="CycleUnitId" Type="int" Nullable="false" />
- <Property Name="HolidayWorkTypeId" Type="int" Nullable="false" />
- <Property Name="WorkDueDate" Type="datetime" Nullable="false" />
- <Property Name="UpdateUserId" Type="nvarchar" MaxLength="24" Nullable="false" />
- <Property Name="IsUse" Type="bit" Nullable="false" />
- <Property Name="IsAutoOrder" Type="bit" Nullable="false" />
- <Property Name="Content" Type="nvarchar" MaxLength="1024" />
- </EntityType>
- <EntityType Name="FmsWorkScheduleToFacility">
- <Key>
- <PropertyRef Name="SiteId" />
- <PropertyRef Name="WorkScheduleId" />
- <PropertyRef Name="FacilityCode" />
- </Key>
- <Property Name="SiteId" Type="int" Nullable="false" />
- <Property Name="WorkScheduleId" Type="int" Nullable="false" />
- <Property Name="FacilityCode" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="principal_id" Type="int" Nullable="false" />
- <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="version" Type="int" />
- <Property Name="definition" Type="varbinary(max)" />
- </EntityType>
- <EntityType Name="WeatherDongNaeForecast">
- <Key>
- <PropertyRef Name="BaseTime" />
- <PropertyRef Name="ForecastTime" />
- </Key>
- <Property Name="BaseTime" Type="datetime" Nullable="false" />
- <Property Name="nx" Type="int" />
- <Property Name="ny" Type="int" />
- <Property Name="ForecastTime" Type="datetime" Nullable="false" />
- <Property Name="POP" Type="float" />
- <Property Name="PTY" Type="float" />
- <Property Name="R06" Type="float" />
- <Property Name="REH" Type="float" />
- <Property Name="S06" Type="float" />
- <Property Name="SKY" Type="float" />
- <Property Name="T3H" Type="float" />
- <Property Name="TMN" Type="float" />
- <Property Name="TMX" Type="float" />
- <Property Name="UUU" Type="float" />
- <Property Name="VVV" Type="float" />
- <Property Name="VEC" Type="float" />
- <Property Name="WSD" Type="float" />
- <Property Name="Type" Type="int" />
- <Property Name="DBTime" Type="datetime" />
- <Property Name="Version" Type="int" />
- </EntityType>
- <Association Name="FK__BemsEnerg__SiteI__7954A4F6">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsEnergyConfigPercentMonth" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsEnergyConfigPercentWeek" Type="Self.BemsEnergyConfigPercentWeek" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsEnergyConfigPercentWeek">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsEnergyDaily__BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsEnergyDaily" Type="Self.BemsEnergyDaily" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsEnergyDaily">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsEnergyDaily__BemsServiceType">
- <End Role="BemsServiceType" Type="Self.BemsServiceType" Multiplicity="1" />
- <End Role="BemsEnergyDaily" Type="Self.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 Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
- <End Role="BemsEnergyDaily" Type="Self.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>
- <Association Name="FK__BemsFactorCo2__BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsFactorCo2" Type="Self.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 Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsFactorToe" Type="Self.BemsFactorToe" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsFactorToe">
- <PropertyRef Name="FuelTypeId" />
- </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__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__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__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__BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
- <End Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPoint">
- <PropertyRef Name="FuelTypeId" />
- </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__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__BemsMonitoringPointBaseData__BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="0..1" />
- <End Role="BemsMonitoringPointBaseData" Type="Self.BemsMonitoringPointBaseData" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsMonitoringPointBaseData">
- <PropertyRef Name="FuelTypeId" />
- </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__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__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__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.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 Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointHistory15minRawData" Type="Self.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>
- <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__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__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__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__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__BemsNoticePriceBase__BemsNoticePriceContractType">
- <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="1" />
- <End Role="BemsNoticePriceBase" Type="Self.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__BemsNoticePriceContractType__BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsNoticePriceContractType" Type="Self.BemsNoticePriceContractType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsNoticePriceContractType">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase">
- <End Role="BemsNoticePriceBase" Type="Self.BemsNoticePriceBase" Multiplicity="1" />
- <End Role="BemsNoticePriceDetail" Type="Self.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>
- <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__CmCompany__SiteI__336AA144">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmCompany">
- <PropertyRef Name="SiteId" />
- </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__CmFacility__CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
- <End Role="CmFacility1" Type="Self.CmFacility" 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__CmFacilityFile__7720AD13">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="CmFacilityFile" Type="Self.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__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__CmFacilityManual__79FD19BE">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="FmsFacilityManual" Type="Self.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__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__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__CmFile__SiteId__2759D01A">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmFile">
- <PropertyRef Name="SiteId" />
- </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__CmHoliday__SiteI__0BB1B5A5">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHoliday">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__0D99FE17">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmHolidayWeekend" Type="Self.CmHolidayWeekend" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHolidayWeekend">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__10766AC2">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHolidayCustom">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__65AC084E">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmHoliday" Type="Self.CmHoliday" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHoliday">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__CmHoliday__SiteI__66A02C87">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmHolidayCustom" Type="Self.CmHolidayCustom" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmHolidayCustom">
- <PropertyRef Name="SiteId" />
- </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__CmPositio__SiteI__6A70BD6B">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPosition" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmUserGroup" Type="Self.CmUserGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmUserGroup">
- <PropertyRef Name="SiteId" />
- </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__CmUserPos__SiteI__44952D46">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPosition" Type="Self.CmPosition" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPosition">
- <PropertyRef Name="SiteId" />
- </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__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__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__FmsDrawin__SiteI__6B79F03D">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsDrawingCodeGroup" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsDrawingCodeType" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsDrawing" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsDrawingCodeGroup" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsDrawingCodeType" Type="Self.FmsDrawingCodeType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsDrawingCodeType">
- <PropertyRef Name="SiteId" />
- </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__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__FmsDrawingHistor__7132C993">
- <End Role="FmsDrawing" Type="Self.FmsDrawing" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <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__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__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__FmsFacilityCodeClass__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsFacilityCodeClass" Type="Self.FmsFacilityCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsFacilityCodeClass">
- <PropertyRef Name="SiteId" />
- </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__FmsFacilityOpera__725BF7F6">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="FmsFacilityOperationItem" Type="Self.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__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__FmsLicense__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsLicense" Type="Self.FmsLicense" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsLicense">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
- <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.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 Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.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 Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.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__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__FmsMaterialCarriedForward__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialCarriedForward" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialCodeClass" Type="Self.FmsMaterialCodeClass" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeClass">
- <PropertyRef Name="SiteId" />
- </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__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__FmsMaterialCodeLocation__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialCodeLocation" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialCodeType">
- <PropertyRef Name="SiteId" />
- </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__FmsMaterialOrder__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseOrder" Type="Self.FmsMaterialPurchaseOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseOrder">
- <PropertyRef Name="SiteId" />
- </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__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__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__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__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__FmsMaterialPurchasingRequest__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequest" Type="Self.FmsMaterialPurchaseRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialPurchaseRequest">
- <PropertyRef Name="SiteId" />
- </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__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__FmsMaterialStored__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialStored" Type="Self.FmsMaterialStored" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialStored">
- <PropertyRef Name="SiteId" />
- </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__FmsMaterialTradeCompany__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialTradeCompany">
- <PropertyRef Name="SiteId" />
- </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__FmsMaterialWarehouse__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialWarehouse" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkCodeCauseClass" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkCodeCycleUnit" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkCodeEmergency" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkCodeHolidayWorkType" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkCodeLegalInspectionAgency" Type="Self.FmsWorkCodeLegalInspectionAgency" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkCodeLegalInspectionAgency">
- <PropertyRef Name="SiteId" />
- </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__FmsWorkOrder__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkOrder" Type="Self.FmsWorkOrder" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkOrder">
- <PropertyRef Name="SiteId" />
- </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__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__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__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__FmsWorkRequest__CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsWorkRequest" Type="Self.FmsWorkRequest" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsWorkRequest">
- <PropertyRef Name="SiteId" />
- </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__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__FmsWorkRequest__FmsWorkSchedule">
- <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="0..1" />
- <End Role="FmsWorkRequest" Type="Self.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__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__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__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__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__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__CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="0..1" />
- <End Role="FmsWorkResultCheckItem" Type="Self.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__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__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__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__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__CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="FmsWorkResultToFacility" Type="Self.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__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__FmsWorkSchedule__CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsWorkSchedule" Type="Self.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 Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsWorkSchedule" Type="Self.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 Role="FmsWorkCodeCycleUnit" Type="Self.FmsWorkCodeCycleUnit" Multiplicity="1" />
- <End Role="FmsWorkSchedule" Type="Self.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 Role="FmsWorkCodeHolidayWorkType" Type="Self.FmsWorkCodeHolidayWorkType" Multiplicity="1" />
- <End Role="FmsWorkSchedule" Type="Self.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 Role="FmsWorkCodeType" Type="Self.FmsWorkCodeType" Multiplicity="1" />
- <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkCodeType">
- <PropertyRef Name="WorkTypeId" />
- </Principal>
- <Dependent Role="FmsWorkSchedule">
- <PropertyRef Name="WorkTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
- <End Role="FmsWorkSchedule" Type="Self.FmsWorkSchedule" Multiplicity="1" />
- <End Role="FmsWorkScheduleToFacility" Type="Self.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>
- <Association Name="FK_BemsAlarmLog_BemsAlarmSetting">
- <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="1" />
- <End Role="BemsAlarmLog" Type="Self.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>
- <Association Name="FK_BemsAlarmSetting_BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFacilityType">
- <PropertyRef Name="FacilityTypeId" />
- </Principal>
- <Dependent Role="BemsAlarmSetting">
- <PropertyRef Name="FacilityTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsAlarmSetting_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="BemsAlarmSetting" Type="Self.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_BemsAlarmSetting_CmSite1">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsAlarmSetting" Type="Self.BemsAlarmSetting" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsAlarmSetting">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsChartInfo_BemsFacilityType">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsChartInfo" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsChartInfo" Type="Self.BemsChartInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsChartInfo">
- <PropertyRef Name="SiteId" />
- </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_BemsEnergyCost_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="BemsEnergyCost" Type="Self.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_BemsEnergyDailyRegression_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsEnergyDailyRegression" Type="Self.BemsEnergyDailyRegression" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsEnergyDailyRegression">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsFormulaParameter_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="BemsFormulaParameter" Type="Self.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_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_BemsMonitoringPoint_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="BemsMonitoringPoint" Type="Self.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_BemsMonitoringPointConfig_BemsFacilityType1">
- <End Role="BemsFacilityType" Type="Self.BemsFacilityType" Multiplicity="1" />
- <End Role="BemsMonitoringPointConfig" Type="Self.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 Role="BemsMonitoringPoint" Type="Self.BemsMonitoringPoint" Multiplicity="1" />
- <End Role="BemsMonitoringPointConfig" Type="Self.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>
- <Association Name="FK_BemsPeakFacility_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="BemsPeakFacility" Type="Self.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_BemsPeakHIstory_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsPeakHistory" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsPeakInfo" Type="Self.BemsPeakInfo" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsPeakInfo">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPeopleIncrease_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsPeopleIncrease" Type="Self.BemsPeopleIncrease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsPeopleIncrease">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceCode_BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsPriceCode">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceFormula_BemsFormula">
- <End Role="BemsFormula" Type="Self.BemsFormula" Multiplicity="1" />
- <End Role="BemsPriceFormula" Type="Self.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_BemsPriceFormula_BemsPriceType">
- <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
- <End Role="BemsPriceFormula" Type="Self.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 Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
- <End Role="BemsPriceMeta" Type="Self.BemsPriceMeta" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsPriceMeta">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsPriceType_BemsFuelType1">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsPriceType">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsRentalRate_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsRentalRate" Type="Self.BemsRentalRate" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsRentalRate">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_BemsPriceCode">
- <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
- <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceCode">
- <PropertyRef Name="PriceCode" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="PriceCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_BemsPriceType">
- <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
- <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePrice_CmSite1">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsSitePrice" Type="Self.BemsSitePrice" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsSitePrice">
- <PropertyRef Name="SiteID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_BemsFuelType">
- <End Role="BemsFuelType" Type="Self.BemsFuelType" Multiplicity="1" />
- <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsFuelType">
- <PropertyRef Name="FuelTypeId" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="FuelTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_BemsPriceCode">
- <End Role="BemsPriceCode" Type="Self.BemsPriceCode" Multiplicity="1" />
- <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceCode">
- <PropertyRef Name="PriceCode" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="PriceCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_BemsPriceType">
- <End Role="BemsPriceType" Type="Self.BemsPriceType" Multiplicity="1" />
- <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BemsPriceType">
- <PropertyRef Name="PriceTypeId" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="PriceTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_BemsSitePriceHistory_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="BemsSitePriceHistory" Type="Self.BemsSitePriceHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="BemsSitePriceHistory">
- <PropertyRef Name="SiteId" />
- </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_CmFacilityTempSet_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="CmFacilityTempSet" Type="Self.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_CmFacilityTempSet_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmFacilityTempSet" Type="Self.CmFacilityTempSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmFacilityTempSet">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmMenu_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmMenu" Type="Self.CmMenu" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmMenu">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPartnerType_CmPartner">
- <End Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="1" />
- <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmPartnerType">
- <PropertyRef Name="PartnerTypeId" />
- </Principal>
- <Dependent Role="CmPartner">
- <PropertyRef Name="PartnerTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolCourse_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolCourse">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolCoursePos_CmPatrolCourse">
- <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
- <End Role="CmPatrolCoursePos" Type="Self.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_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolCoursePos" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolGroup">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolGroupUser_CmPatrolGroup">
- <End Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
- <End Role="CmPatrolGroupUser" Type="Self.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 Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="CmPatrolGroupUser" Type="Self.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>
- <Association Name="FK_CmPatrolHistory_CmPatrolSchedule">
- <End Role="CmPatrolSchedule" Type="Self.CmPatrolSchedule" Multiplicity="1" />
- <End Role="CmPatrolHistory" Type="Self.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 Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
- <End Role="CmPatrolHistory" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolHistory" Type="Self.CmPatrolHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolHistory">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolHistoryPos_CmPatrolPos">
- <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="1" />
- <End Role="CmPatrolHistoryPos" Type="Self.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 Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="1" />
- <End Role="CmPatrolHistoryPos" Type="Self.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>
- <Association Name="FK_CmPatrolHistoryPos_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolHistoryPos" Type="Self.CmPatrolHistoryPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolHistoryPos">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPlan_CmPatrolCourse">
- <End Role="CmPatrolCourse" Type="Self.CmPatrolCourse" Multiplicity="1" />
- <End Role="CmPatrolPlan" Type="Self.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 Role="CmPatrolGroup" Type="Self.CmPatrolGroup" Multiplicity="1" />
- <End Role="CmPatrolPlan" Type="Self.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>
- <Association Name="FK_CmPatrolPlan_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolPlan">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolPos_CmBuilding">
- <End Role="CmBuilding" Type="Self.CmBuilding" Multiplicity="1" />
- <End Role="CmPatrolPos" Type="Self.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 Role="CmFloor" Type="Self.CmFloor" Multiplicity="1" />
- <End Role="CmPatrolPos" Type="Self.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>
- <Association Name="FK_CmPatrolPos_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolPos" Type="Self.CmPatrolPos" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolPos">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CmPatrolSchedule_CmPatrolPlan">
- <End Role="CmPatrolPlan" Type="Self.CmPatrolPlan" Multiplicity="1" />
- <End Role="CmPatrolSchedule" Type="Self.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>
- <Association Name="FK_CmPatrolSchedule_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolSchedule" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmPatrolType" Type="Self.CmPatrolType" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmPatrolType">
- <PropertyRef Name="SiteId" />
- </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_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_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_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_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_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_CmZoneTempHumiSet_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="CmZoneTempHumiSet" Type="Self.CmZoneTempHumiSet" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="CmZoneTempHumiSet">
- <PropertyRef Name="SiteId" />
- </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_CmCompany">
- <End Role="CmCompany" Type="Self.CmCompany" Multiplicity="0..1" />
- <End Role="FmsAccident" Type="Self.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>
- <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_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_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_FmsBudgetDetail_FmsBudget">
- <End Role="FmsBudget" Type="Self.FmsBudget" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsBudgetDetail" Type="Self.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 Role="FmsBudgetCodeClass" Type="Self.FmsBudgetCodeClass" Multiplicity="1" />
- <End Role="FmsBudgetDetail" Type="Self.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 Role="FmsBudgetDetail" Type="Self.FmsBudgetDetail" Multiplicity="1" />
- <End Role="FmsBudgetDetailExecution" Type="Self.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>
- <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_FmsConstruction_CmPartner">
- <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="1" />
- <End Role="FmsConstruction" Type="Self.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_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_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_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_FmsContract_CmPartner">
- <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
- <End Role="FmsContract" Type="Self.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 Role="CmPartnerType" Type="Self.CmPartnerType" Multiplicity="0..1" />
- <End Role="FmsContract" Type="Self.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 Role="FmsContractClass" Type="Self.FmsContractClass" Multiplicity="0..1" />
- <End Role="FmsContract" Type="Self.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 Role="FmsContractMethod" Type="Self.FmsContractMethod" Multiplicity="0..1" />
- <End Role="FmsContract" Type="Self.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 Role="FmsContractType" Type="Self.FmsContractType" Multiplicity="0..1" />
- <End Role="FmsContract" Type="Self.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 Role="FmsPaymentType" Type="Self.FmsPaymentType" Multiplicity="0..1" />
- <End Role="FmsContract" Type="Self.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>
- <Association Name="FK_FmsDailyCheckReport_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsDailyCheckReport" Type="Self.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_FmsDailyReport_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsDailyReport" Type="Self.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 Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsDailyReport" Type="Self.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>
- <Association Name="FK_FmsEquipment_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsEquipment" Type="Self.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 Role="FmsEquipmentCodeType" Type="Self.FmsEquipmentCodeType" Multiplicity="1" />
- <End Role="FmsEquipment" Type="Self.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 Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
- <End Role="FmsEquipment" Type="Self.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 Role="FmsEquipment" Type="Self.FmsEquipment" Multiplicity="1" />
- <End Role="FmsEquipmentHistory" Type="Self.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>
- <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_FmsEquipmentHistory_FmsEquipmentRentInfo">
- <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="0..1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="FmsEquipmentHistory" Type="Self.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>
- <Association Name="FK_FmsEquipmentRentInfo_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsEquipmentRentInfo" Type="Self.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 Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsEquipmentRentInfo" Type="Self.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 Role="FmsEquipmentCodeStateType" Type="Self.FmsEquipmentCodeStateType" Multiplicity="0..1" />
- <End Role="FmsEquipmentRentInfo" Type="Self.FmsEquipmentRentInfo" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsEquipmentCodeStateType">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Principal>
- <Dependent Role="FmsEquipmentRentInfo">
- <PropertyRef Name="EquipmentStateTypeId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsFacilityOperationReport_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsFacilityOperationReport" Type="Self.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>
- <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_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_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_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_FmsMaterial_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterial" Type="Self.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_FmsMaterial_CmFile">
- <End Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.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_FmsMaterial_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterial">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterial_FmsMaterialCodeLocation">
- <End Role="FmsMaterialCodeLocation" Type="Self.FmsMaterialCodeLocation" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.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 Role="FmsMaterialCodeType" Type="Self.FmsMaterialCodeType" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.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 Role="FmsMaterialTradeCompany" Type="Self.FmsMaterialTradeCompany" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.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 Role="FmsMaterialWarehouse" Type="Self.FmsMaterialWarehouse" Multiplicity="0..1" />
- <End Role="FmsMaterial" Type="Self.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_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_FmsMaterial">
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseOrderMaterial" Type="Self.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_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_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_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
- <End Role="FmsMaterialPurchaseRequestMaterial" Type="Self.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_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_FmsMaterialRelease_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsMaterialRelease" Type="Self.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_FmsMaterialRelease_CmSite">
- <End Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsMaterialRelease" Type="Self.FmsMaterialRelease" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CmSite">
- <PropertyRef Name="SiteId" />
- </Principal>
- <Dependent Role="FmsMaterialRelease">
- <PropertyRef Name="SiteId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsMaterialRelease_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsMaterialRelease" Type="Self.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 Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsMaterialRelease" Type="Self.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_FmsMaterialRelease_FmsMaterial">
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="0..1" />
- <End Role="FmsMaterialRelease" Type="Self.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_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
- <End Role="FmsMaterialCodeAdjustmentType" Type="Self.FmsMaterialCodeAdjustmentType" Multiplicity="1" />
- <End Role="FmsMaterialRelease" Type="Self.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 Role="FmsMaterialCodeReleaseType" Type="Self.FmsMaterialCodeReleaseType" Multiplicity="1" />
- <End Role="FmsMaterialRelease" Type="Self.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 Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="0..1" />
- <End Role="FmsMaterialRelease" Type="Self.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_FmsMaterialStored_FmsMaterial">
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
- <End Role="FmsMaterialStored" Type="Self.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_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_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_FmsMonthlyReport_CmUser">
- <End Role="CmUser" Type="Self.CmUser" Multiplicity="1" />
- <End Role="FmsMonthlyReport" Type="Self.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>
- <Association Name="FK_FmsReport_CmBusinessField">
- <End Role="CmBusinessField" Type="Self.CmBusinessField" Multiplicity="1" />
- <End Role="FmsReport" Type="Self.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 Role="CmFile" Type="Self.CmFile" Multiplicity="0..1" />
- <End Role="FmsReport" Type="Self.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 Role="CmSite" Type="Self.CmSite" Multiplicity="1" />
- <End Role="FmsReport" Type="Self.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 Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsReport" Type="Self.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 Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsReport" Type="Self.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 Role="CmUser" Type="Self.CmUser" Multiplicity="0..1" />
- <End Role="FmsReport" Type="Self.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>
- <Association Name="FK_FmsWorkOrderToFacility_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="FmsWorkOrderToFacility" Type="Self.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_FmsWorkRequest_CmPartner">
- <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
- <End Role="FmsWorkRequest" Type="Self.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_FmsWorkRequestToFacility_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="FmsWorkRequestToFacility" Type="Self.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_FmsWorkResultCheckItemMaterial_FmsMaterial">
- <End Role="FmsMaterial" Type="Self.FmsMaterial" Multiplicity="1" />
- <End Role="FmsWorkResultCheckItemMaterial" Type="Self.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_FmsWorkResultCheckItemMaterial_FmsWorkResult">
- <End Role="FmsWorkResult" Type="Self.FmsWorkResult" Multiplicity="1" />
- <End Role="FmsWorkResultCheckItemMaterial" Type="Self.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>
- <Association Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
- <End Role="FmsWorkResultCheckItem" Type="Self.FmsWorkResultCheckItem" Multiplicity="1" />
- <End Role="FmsWorkResultCheckItemMaterial" Type="Self.FmsWorkResultCheckItemMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FmsWorkResultCheckItem">
- <PropertyRef Name="CheckItemId" />
- </Principal>
- <Dependent Role="FmsWorkResultCheckItemMaterial">
- <PropertyRef Name="CheckItemId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FmsWorkSchedule_CmPartner">
- <End Role="CmPartner" Type="Self.CmPartner" Multiplicity="0..1" />
- <End Role="FmsWorkSchedule" Type="Self.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>
- <Association Name="FK_FmsWorkScheduleToFacility_CmFacility">
- <End Role="CmFacility" Type="Self.CmFacility" Multiplicity="1" />
- <End Role="FmsWorkScheduleToFacility" Type="Self.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>
- <EntityContainer Name="iBemsModelStoreContainer">
- <EntitySet Name="BemsAlarmGroup" EntityType="Self.BemsAlarmGroup" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsAlarmGroupUser" EntityType="Self.BemsAlarmGroupUser" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsAlarmLog" EntityType="Self.BemsAlarmLog" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsAlarmSetting" EntityType="Self.BemsAlarmSetting" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsAnalysisType" EntityType="Self.BemsAnalysisType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsChartInfo" EntityType="Self.BemsChartInfo" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsControlAHUTempConfig" EntityType="Self.BemsControlAHUTempConfig" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsControlPointHistory" EntityType="Self.BemsControlPointHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsEnergyConfigPercentMonth" EntityType="Self.BemsEnergyConfigPercentMonth" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsEnergyConfigPercentWeek" EntityType="Self.BemsEnergyConfigPercentWeek" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsEnergyCost" EntityType="Self.BemsEnergyCost" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsEnergyDaily" EntityType="Self.BemsEnergyDaily" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsEnergyDailyRegression" EntityType="Self.BemsEnergyDailyRegression" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFacilityType" EntityType="Self.BemsFacilityType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFactorCo2" EntityType="Self.BemsFactorCo2" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFactorToe" EntityType="Self.BemsFactorToe" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFloorPlan" EntityType="Self.BemsFloorPlan" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFloorStatus" EntityType="Self.BemsFloorStatus" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFormula" EntityType="Self.BemsFormula" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFormulaBase" EntityType="Self.BemsFormulaBase" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFormulaParameter" EntityType="Self.BemsFormulaParameter" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFormulaTable" EntityType="Self.BemsFormulaTable" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFormulaTableValue" EntityType="Self.BemsFormulaTableValue" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsFuelType" EntityType="Self.BemsFuelType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPoint" EntityType="Self.BemsMonitoringPoint" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointBaseData" EntityType="Self.BemsMonitoringPointBaseData" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointConfig" EntityType="Self.BemsMonitoringPointConfig" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointHistory15min" EntityType="Self.BemsMonitoringPointHistory15min" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointHistory15minRawData" EntityType="Self.BemsMonitoringPointHistory15minRawData" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointHistoryDaily" EntityType="Self.BemsMonitoringPointHistoryDaily" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointHistoryHourly" EntityType="Self.BemsMonitoringPointHistoryHourly" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsMonitoringPointToAnlaysisType" EntityType="Self.BemsMonitoringPointToAnlaysisType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsNoticePriceBase" EntityType="Self.BemsNoticePriceBase" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsNoticePriceContractType" EntityType="Self.BemsNoticePriceContractType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsNoticePriceDetail" EntityType="Self.BemsNoticePriceDetail" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPeakFacility" EntityType="Self.BemsPeakFacility" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPeakHistory" EntityType="Self.BemsPeakHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPeakHistoryDaily" EntityType="Self.BemsPeakHistoryDaily" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPeakInfo" EntityType="Self.BemsPeakInfo" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPeopleIncrease" EntityType="Self.BemsPeopleIncrease" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPriceCode" EntityType="Self.BemsPriceCode" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPriceFormula" EntityType="Self.BemsPriceFormula" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPriceMeta" EntityType="Self.BemsPriceMeta" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsPriceType" EntityType="Self.BemsPriceType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsRentalRate" EntityType="Self.BemsRentalRate" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsReportFormat" EntityType="Self.BemsReportFormat" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsReportHistory" EntityType="Self.BemsReportHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsServiceType" EntityType="Self.BemsServiceType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsSitePrice" EntityType="Self.BemsSitePrice" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="BemsSitePriceHistory" EntityType="Self.BemsSitePriceHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmAlarmAdmin" EntityType="Self.CmAlarmAdmin" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmAnnouncement" EntityType="Self.CmAnnouncement" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmBuilding" EntityType="Self.CmBuilding" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmBusinessField" EntityType="Self.CmBusinessField" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmCompany" EntityType="Self.CmCompany" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmCompanyType" EntityType="Self.CmCompanyType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmDepartment" EntityType="Self.CmDepartment" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmFacility" EntityType="Self.CmFacility" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmFacilityFile" EntityType="Self.CmFacilityFile" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmFacilityTempSet" EntityType="Self.CmFacilityTempSet" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmFile" EntityType="Self.CmFile" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmFileCategory" EntityType="Self.CmFileCategory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmFloor" EntityType="Self.CmFloor" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmHoliday" EntityType="Self.CmHoliday" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmHolidayCustom" EntityType="Self.CmHolidayCustom" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmHolidayWeekend" EntityType="Self.CmHolidayWeekend" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmMenu" EntityType="Self.CmMenu" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPartner" EntityType="Self.CmPartner" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPartnerType" EntityType="Self.CmPartnerType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolCourse" EntityType="Self.CmPatrolCourse" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolCoursePos" EntityType="Self.CmPatrolCoursePos" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolGroup" EntityType="Self.CmPatrolGroup" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolGroupUser" EntityType="Self.CmPatrolGroupUser" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolHistory" EntityType="Self.CmPatrolHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolHistoryPos" EntityType="Self.CmPatrolHistoryPos" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolPlan" EntityType="Self.CmPatrolPlan" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolPos" EntityType="Self.CmPatrolPos" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolSchedule" EntityType="Self.CmPatrolSchedule" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPatrolType" EntityType="Self.CmPatrolType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmPosition" EntityType="Self.CmPosition" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmServiceEnergyCalcDay" EntityType="Self.CmServiceEnergyCalcDay" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmServiceEnergyCalcMonth" EntityType="Self.CmServiceEnergyCalcMonth" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmSite" EntityType="Self.CmSite" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmUser" EntityType="Self.CmUser" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmUserGroup" EntityType="Self.CmUserGroup" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmUserGroupPermission" EntityType="Self.CmUserGroupPermission" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmUserLoginHistory" EntityType="Self.CmUserLoginHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmUserToLicense" EntityType="Self.CmUserToLicense" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmZone" EntityType="Self.CmZone" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CmZoneTempHumiSet" EntityType="Self.CmZoneTempHumiSet" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsAccident" EntityType="Self.FmsAccident" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsAccidentCodeType" EntityType="Self.FmsAccidentCodeType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsBudget" EntityType="Self.FmsBudget" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsBudgetCodeClass" EntityType="Self.FmsBudgetCodeClass" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsBudgetDetail" EntityType="Self.FmsBudgetDetail" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsBudgetDetailExecution" EntityType="Self.FmsBudgetDetailExecution" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsCompanyEstimationCodeClass" EntityType="Self.FmsCompanyEstimationCodeClass" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsConstruction" EntityType="Self.FmsConstruction" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsConstructionCodeProgress" EntityType="Self.FmsConstructionCodeProgress" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsConstructionCodeType" EntityType="Self.FmsConstructionCodeType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsConstructionEstimation" EntityType="Self.FmsConstructionEstimation" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsContract" EntityType="Self.FmsContract" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsContractClass" EntityType="Self.FmsContractClass" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsContractMethod" EntityType="Self.FmsContractMethod" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsContractType" EntityType="Self.FmsContractType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsDailyCheckReport" EntityType="Self.FmsDailyCheckReport" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsDailyReport" EntityType="Self.FmsDailyReport" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsDrawing" EntityType="Self.FmsDrawing" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsDrawingCodeGroup" EntityType="Self.FmsDrawingCodeGroup" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsDrawingCodeType" EntityType="Self.FmsDrawingCodeType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsDrawingHistory" EntityType="Self.FmsDrawingHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsEquipment" EntityType="Self.FmsEquipment" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsEquipmentCodeStateType" EntityType="Self.FmsEquipmentCodeStateType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsEquipmentCodeType" EntityType="Self.FmsEquipmentCodeType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsEquipmentHistory" EntityType="Self.FmsEquipmentHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsEquipmentRentInfo" EntityType="Self.FmsEquipmentRentInfo" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsFacilityCheckItem" EntityType="Self.FmsFacilityCheckItem" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsFacilityCodeClass" EntityType="Self.FmsFacilityCodeClass" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsFacilityManual" EntityType="Self.FmsFacilityManual" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsFacilityOperationItem" EntityType="Self.FmsFacilityOperationItem" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsFacilityOperationReport" EntityType="Self.FmsFacilityOperationReport" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsInvestmentCost" EntityType="Self.FmsInvestmentCost" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsLicense" EntityType="Self.FmsLicense" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsManual" EntityType="Self.FmsManual" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsManualHistory" EntityType="Self.FmsManualHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsManualType" EntityType="Self.FmsManualType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterial" EntityType="Self.FmsMaterial" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCarriedForward" EntityType="Self.FmsMaterialCarriedForward" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodeAdjustmentType" EntityType="Self.FmsMaterialCodeAdjustmentType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodeClass" EntityType="Self.FmsMaterialCodeClass" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodeLocation" EntityType="Self.FmsMaterialCodeLocation" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodeProgress" EntityType="Self.FmsMaterialCodeProgress" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodePurchaseType" EntityType="Self.FmsMaterialCodePurchaseType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodeReleaseType" EntityType="Self.FmsMaterialCodeReleaseType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialCodeType" EntityType="Self.FmsMaterialCodeType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialPurchaseOrder" EntityType="Self.FmsMaterialPurchaseOrder" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialPurchaseOrderMaterial" EntityType="Self.FmsMaterialPurchaseOrderMaterial" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialPurchaseRequest" EntityType="Self.FmsMaterialPurchaseRequest" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialPurchaseRequestMaterial" EntityType="Self.FmsMaterialPurchaseRequestMaterial" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialRelease" EntityType="Self.FmsMaterialRelease" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialStored" EntityType="Self.FmsMaterialStored" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialTradeCompany" EntityType="Self.FmsMaterialTradeCompany" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMaterialWarehouse" EntityType="Self.FmsMaterialWarehouse" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsMonthlyReport" EntityType="Self.FmsMonthlyReport" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsPaymentType" EntityType="Self.FmsPaymentType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsReport" EntityType="Self.FmsReport" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeCauseClass" EntityType="Self.FmsWorkCodeCauseClass" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeCycleUnit" EntityType="Self.FmsWorkCodeCycleUnit" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeEmergency" EntityType="Self.FmsWorkCodeEmergency" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeHolidayWorkType" EntityType="Self.FmsWorkCodeHolidayWorkType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeLegalInspectionAgency" EntityType="Self.FmsWorkCodeLegalInspectionAgency" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeProgress" EntityType="Self.FmsWorkCodeProgress" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkCodeType" EntityType="Self.FmsWorkCodeType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkOrder" EntityType="Self.FmsWorkOrder" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkOrderToFacility" EntityType="Self.FmsWorkOrderToFacility" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkRequest" EntityType="Self.FmsWorkRequest" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkRequestToFacility" EntityType="Self.FmsWorkRequestToFacility" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkResult" EntityType="Self.FmsWorkResult" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkResultCheckItem" EntityType="Self.FmsWorkResultCheckItem" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkResultCheckItemMaterial" EntityType="Self.FmsWorkResultCheckItemMaterial" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkResultFile" EntityType="Self.FmsWorkResultFile" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkResultLaw" EntityType="Self.FmsWorkResultLaw" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkResultToFacility" EntityType="Self.FmsWorkResultToFacility" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkSchedule" EntityType="Self.FmsWorkSchedule" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FmsWorkScheduleToFacility" EntityType="Self.FmsWorkScheduleToFacility" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="WeatherDongNaeForecast" EntityType="Self.WeatherDongNaeForecast" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK__BemsEnerg__SiteI__7954A4F6" Association="Self.FK__BemsEnerg__SiteI__7954A4F6">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsEnergyConfigPercentMonth" EntitySet="BemsEnergyConfigPercentMonth" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsEnerg__SiteI__7C3111A1" Association="Self.FK__BemsEnerg__SiteI__7C3111A1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsEnergyConfigPercentWeek" EntitySet="BemsEnergyConfigPercentWeek" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsEnergyDaily__BemsFuelType" Association="Self.FK__BemsEnergyDaily__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsEnergyDaily__BemsServiceType" Association="Self.FK__BemsEnergyDaily__BemsServiceType">
- <End Role="BemsServiceType" EntitySet="BemsServiceType" />
- <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsEnergyDaily__CmBuilding" Association="Self.FK__BemsEnergyDaily__CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="BemsEnergyDaily" EntitySet="BemsEnergyDaily" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFactorCo2__BemsFuelType" Association="Self.FK__BemsFactorCo2__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsFactorCo2" EntitySet="BemsFactorCo2" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsFactorToe__BemsFuelType" Association="Self.FK__BemsFactorToe__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsFactorToe" EntitySet="BemsFactorToe" />
- </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__BemsFormulaTableValue__BemsFormulaTable" Association="Self.FK__BemsFormulaTableValue__BemsFormulaTable">
- <End Role="BemsFormulaTable" EntitySet="BemsFormulaTable" />
- <End Role="BemsFormulaTableValue" EntitySet="BemsFormulaTableValue" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPo__1372D2FE" Association="Self.FK__BemsMonitoringPo__1372D2FE">
- <End Role="BemsAnalysisType" EntitySet="BemsAnalysisType" />
- <End Role="BemsMonitoringPointToAnlaysisType" EntitySet="BemsMonitoringPointToAnlaysisType" />
- </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__BemsFuelType" Association="Self.FK__BemsMonitoringPoint__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </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__BemsMonitoringPointBaseData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointBaseData__BemsFuelType" Association="Self.FK__BemsMonitoringPointBaseData__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsMonitoringPointBaseData" EntitySet="BemsMonitoringPointBaseData" />
- </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__BemsMonitoringPointHistory15min__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15min__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistory15min" EntitySet="BemsMonitoringPointHistory15min" />
- </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__BemsMonitoringPointHistory15minRawData__BemsFacilityType" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistory15minRawData__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointHistory15minRawData" EntitySet="BemsMonitoringPointHistory15minRawData" />
- </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__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryDaily__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <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__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint" Association="Self.FK__BemsMonitoringPointHistoryHourly__BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <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__BemsNoticePriceBase__BemsNoticePriceContractType" Association="Self.FK__BemsNoticePriceBase__BemsNoticePriceContractType">
- <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
- <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsNoticePriceContractType__BemsFuelType" Association="Self.FK__BemsNoticePriceContractType__BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsNoticePriceContractType" EntitySet="BemsNoticePriceContractType" />
- </AssociationSet>
- <AssociationSet Name="FK__BemsNoticePriceDetail__BemsNoticePriceBase" Association="Self.FK__BemsNoticePriceDetail__BemsNoticePriceBase">
- <End Role="BemsNoticePriceBase" EntitySet="BemsNoticePriceBase" />
- <End Role="BemsNoticePriceDetail" EntitySet="BemsNoticePriceDetail" />
- </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__CmCompany__SiteI__336AA144" Association="Self.FK__CmCompany__SiteI__336AA144">
- <End Role="CmSite" EntitySet="CmSite" />
- <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__CmFacility__CmFacility" Association="Self.FK__CmFacility__CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="CmFacility1" EntitySet="CmFacility" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFacilityFile__7720AD13" Association="Self.FK__CmFacilityFile__7720AD13">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="CmFacilityFile" EntitySet="CmFacilityFile" />
- </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__CmFacilityManual__79FD19BE" Association="Self.FK__CmFacilityManual__79FD19BE">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsFacilityManual" EntitySet="FmsFacilityManual" />
- </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__CmFile__CmFileCategory" Association="Self.FK__CmFile__CmFileCategory">
- <End Role="CmFileCategory" EntitySet="CmFileCategory" />
- <End Role="CmFile" EntitySet="CmFile" />
- </AssociationSet>
- <AssociationSet Name="FK__CmFile__SiteId__2759D01A" Association="Self.FK__CmFile__SiteId__2759D01A">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmFile" EntitySet="CmFile" />
- </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__CmHoliday__SiteI__0BB1B5A5" Association="Self.FK__CmHoliday__SiteI__0BB1B5A5">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHoliday" EntitySet="CmHoliday" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__0D99FE17" Association="Self.FK__CmHoliday__SiteI__0D99FE17">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHolidayWeekend" EntitySet="CmHolidayWeekend" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__10766AC2" Association="Self.FK__CmHoliday__SiteI__10766AC2">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__65AC084E" Association="Self.FK__CmHoliday__SiteI__65AC084E">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHoliday" EntitySet="CmHoliday" />
- </AssociationSet>
- <AssociationSet Name="FK__CmHoliday__SiteI__66A02C87" Association="Self.FK__CmHoliday__SiteI__66A02C87">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmHolidayCustom" EntitySet="CmHolidayCustom" />
- </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__CmPositio__SiteI__6A70BD6B" Association="Self.FK__CmPositio__SiteI__6A70BD6B">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPosition" EntitySet="CmPosition" />
- </AssociationSet>
- <AssociationSet Name="FK__CmUserGro__SiteI__53D770D6" Association="Self.FK__CmUserGro__SiteI__53D770D6">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmUserGroup" EntitySet="CmUserGroup" />
- </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__CmUserPos__SiteI__44952D46" Association="Self.FK__CmUserPos__SiteI__44952D46">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPosition" EntitySet="CmPosition" />
- </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__CmUserToLicense__FmsLicense" Association="Self.FK__CmUserToLicense__FmsLicense">
- <End Role="FmsLicense" EntitySet="FmsLicense" />
- <End Role="CmUserToLicense" EntitySet="CmUserToLicense" />
- </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__FmsDrawin__SiteI__6B79F03D" Association="Self.FK__FmsDrawin__SiteI__6B79F03D">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6C6E1476" Association="Self.FK__FmsDrawin__SiteI__6C6E1476">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6D6238AF" Association="Self.FK__FmsDrawin__SiteI__6D6238AF">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawing" EntitySet="FmsDrawing" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__6F357288" Association="Self.FK__FmsDrawin__SiteI__6F357288">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeGroup" EntitySet="FmsDrawingCodeGroup" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsDrawin__SiteI__702996C1" Association="Self.FK__FmsDrawin__SiteI__702996C1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsDrawingCodeType" EntitySet="FmsDrawingCodeType" />
- </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__04DA9AE4" Association="Self.FK__FmsDrawingHistor__04DA9AE4">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
- </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__FmsDrawingHistory__CmUser" Association="Self.FK__FmsDrawingHistory__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsDrawingHistory" EntitySet="FmsDrawingHistory" />
- </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__FmsFacilityCodeClass__CmSite" Association="Self.FK__FmsFacilityCodeClass__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsFacilityCodeClass" EntitySet="FmsFacilityCodeClass" />
- </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__FmsFacilityOpera__725BF7F6" Association="Self.FK__FmsFacilityOpera__725BF7F6">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsFacilityOperationItem" EntitySet="FmsFacilityOperationItem" />
- </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__FmsLicense__CmSite" Association="Self.FK__FmsLicense__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsLicense" EntitySet="FmsLicense" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsFirstClassId">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsSecondClassId">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId" Association="Self.FK__FmsMaterial__FmsMaterialCodeClass_AsThirdClassId">
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </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__FmsMaterialCarriedForward__CmSite" Association="Self.FK__FmsMaterialCarriedForward__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCarriedForward" EntitySet="FmsMaterialCarriedForward" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeClass__CmSite" Association="Self.FK__FmsMaterialCodeClass__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCodeClass" EntitySet="FmsMaterialCodeClass" />
- </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__FmsMaterialCodeLocation__CmBusinessField" Association="Self.FK__FmsMaterialCodeLocation__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeLocation__CmSite" Association="Self.FK__FmsMaterialCodeLocation__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialCodeType__CmSite" Association="Self.FK__FmsMaterialCodeType__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
- </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__FmsMaterialOrder__CmSite" Association="Self.FK__FmsMaterialOrder__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </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__FmsMaterialPurchaseOrder__CmFile" Association="Self.FK__FmsMaterialPurchaseOrder__CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsMaterialPurchaseOrder" EntitySet="FmsMaterialPurchaseOrder" />
- </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__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__FmsMaterialPurchasingRequest__CmBusinessField" Association="Self.FK__FmsMaterialPurchasingRequest__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialPurchasingRequest__CmSite" Association="Self.FK__FmsMaterialPurchasingRequest__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </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__FmsMaterialStored__CmBusinessField" Association="Self.FK__FmsMaterialStored__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsMaterialStored__CmSite" Association="Self.FK__FmsMaterialStored__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </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__FmsMaterialTradeCompany__CmSite" Association="Self.FK__FmsMaterialTradeCompany__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
- </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__FmsMaterialWarehouse__CmSite" Association="Self.FK__FmsMaterialWarehouse__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeCauseClass__CmSite" Association="Self.FK__FmsWorkCodeCauseClass__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeCycleUnit__CmSite" Association="Self.FK__FmsWorkCodeCycleUnit__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeEmergency__CmSite" Association="Self.FK__FmsWorkCodeEmergency__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeHolidayWorkType__CmSite" Association="Self.FK__FmsWorkCodeHolidayWorkType__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkCodeLegalInspectionAgency__CmSite" Association="Self.FK__FmsWorkCodeLegalInspectionAgency__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkCodeLegalInspectionAgency" EntitySet="FmsWorkCodeLegalInspectionAgency" />
- </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__FmsWorkOrder__CmSite" Association="Self.FK__FmsWorkOrder__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </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__FmsWorkOrder__FmsWorkCodeEmergency" Association="Self.FK__FmsWorkOrder__FmsWorkCodeEmergency">
- <End Role="FmsWorkCodeEmergency" EntitySet="FmsWorkCodeEmergency" />
- <End Role="FmsWorkOrder" EntitySet="FmsWorkOrder" />
- </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__FmsWorkRequest__CmBusinessField" Association="Self.FK__FmsWorkRequest__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkRequest__CmSite" Association="Self.FK__FmsWorkRequest__CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </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__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__FmsWorkRequest__FmsWorkSchedule" Association="Self.FK__FmsWorkRequest__FmsWorkSchedule">
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </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__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__FmsWorkResult__FmsWorkCodeCauseClass" Association="Self.FK__FmsWorkResult__FmsWorkCodeCauseClass">
- <End Role="FmsWorkCodeCauseClass" EntitySet="FmsWorkCodeCauseClass" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </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__FmsWorkResult__FmsWorkRequest" Association="Self.FK__FmsWorkResult__FmsWorkRequest">
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkResultCheckItem__CmFacility" Association="Self.FK__FmsWorkResultCheckItem__CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </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__FmsWorkResultCheckItem__FmsWorkResult" Association="Self.FK__FmsWorkResultCheckItem__FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- </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__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__CmFacility" Association="Self.FK__FmsWorkResultToFacility__CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkResultToFacility" EntitySet="FmsWorkResultToFacility" />
- </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__FmsWorkSchedule__CmBusinessField" Association="Self.FK__FmsWorkSchedule__CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__CmUser" Association="Self.FK__FmsWorkSchedule__CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeCycleUnit" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeCycleUnit">
- <End Role="FmsWorkCodeCycleUnit" EntitySet="FmsWorkCodeCycleUnit" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeHolidayWorkType">
- <End Role="FmsWorkCodeHolidayWorkType" EntitySet="FmsWorkCodeHolidayWorkType" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkSchedule__FmsWorkCodeWorkType" Association="Self.FK__FmsWorkSchedule__FmsWorkCodeWorkType">
- <End Role="FmsWorkCodeType" EntitySet="FmsWorkCodeType" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK__FmsWorkScheduleToFacility__FmsWorkSchedule" Association="Self.FK__FmsWorkScheduleToFacility__FmsWorkSchedule">
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsAlarmLog_BemsAlarmSetting" Association="Self.FK_BemsAlarmLog_BemsAlarmSetting">
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- <End Role="BemsAlarmLog" EntitySet="BemsAlarmLog" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsAlarmSetting_BemsFacilityType" Association="Self.FK_BemsAlarmSetting_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsAlarmSetting_CmFacility" Association="Self.FK_BemsAlarmSetting_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsAlarmSetting_CmSite1" Association="Self.FK_BemsAlarmSetting_CmSite1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsAlarmSetting" EntitySet="BemsAlarmSetting" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsChartInfo_BemsFacilityType" Association="Self.FK_BemsChartInfo_BemsFacilityType">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsChartInfo_CmSite" Association="Self.FK_BemsChartInfo_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsChartInfo" EntitySet="BemsChartInfo" />
- </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_BemsEnergyCost_CmFacility" Association="Self.FK_BemsEnergyCost_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsEnergyCost" EntitySet="BemsEnergyCost" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsEnergyDailyRegression_CmSite" Association="Self.FK_BemsEnergyDailyRegression_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsEnergyDailyRegression" EntitySet="BemsEnergyDailyRegression" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsFormulaParameter_CmFacility" Association="Self.FK_BemsFormulaParameter_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsFormulaParameter" EntitySet="BemsFormulaParameter" />
- </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_BemsMonitoringPoint_CmFacility" Association="Self.FK_BemsMonitoringPoint_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsFacilityType1" Association="Self.FK_BemsMonitoringPointConfig_BemsFacilityType1">
- <End Role="BemsFacilityType" EntitySet="BemsFacilityType" />
- <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsMonitoringPointConfig_BemsMonitoringPoint" Association="Self.FK_BemsMonitoringPointConfig_BemsMonitoringPoint">
- <End Role="BemsMonitoringPoint" EntitySet="BemsMonitoringPoint" />
- <End Role="BemsMonitoringPointConfig" EntitySet="BemsMonitoringPointConfig" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeakFacility_CmFacility" Association="Self.FK_BemsPeakFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="BemsPeakFacility" EntitySet="BemsPeakFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeakHIstory_CmSite" Association="Self.FK_BemsPeakHIstory_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsPeakHistory" EntitySet="BemsPeakHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeakInfo_CmSite" Association="Self.FK_BemsPeakInfo_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsPeakInfo" EntitySet="BemsPeakInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPeopleIncrease_CmSite" Association="Self.FK_BemsPeopleIncrease_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsPeopleIncrease" EntitySet="BemsPeopleIncrease" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceCode_BemsFuelType" Association="Self.FK_BemsPriceCode_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceFormula_BemsFormula" Association="Self.FK_BemsPriceFormula_BemsFormula">
- <End Role="BemsFormula" EntitySet="BemsFormula" />
- <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceFormula_BemsPriceType" Association="Self.FK_BemsPriceFormula_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsPriceFormula" EntitySet="BemsPriceFormula" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceMeta_BemsPriceType" Association="Self.FK_BemsPriceMeta_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsPriceMeta" EntitySet="BemsPriceMeta" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsPriceType_BemsFuelType1" Association="Self.FK_BemsPriceType_BemsFuelType1">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsRentalRate_CmSite" Association="Self.FK_BemsRentalRate_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsRentalRate" EntitySet="BemsRentalRate" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_BemsFuelType" Association="Self.FK_BemsSitePrice_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_BemsPriceCode" Association="Self.FK_BemsSitePrice_BemsPriceCode">
- <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_BemsPriceType" Association="Self.FK_BemsSitePrice_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePrice_CmSite1" Association="Self.FK_BemsSitePrice_CmSite1">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsSitePrice" EntitySet="BemsSitePrice" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_BemsFuelType" Association="Self.FK_BemsSitePriceHistory_BemsFuelType">
- <End Role="BemsFuelType" EntitySet="BemsFuelType" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceCode" Association="Self.FK_BemsSitePriceHistory_BemsPriceCode">
- <End Role="BemsPriceCode" EntitySet="BemsPriceCode" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_BemsPriceType" Association="Self.FK_BemsSitePriceHistory_BemsPriceType">
- <End Role="BemsPriceType" EntitySet="BemsPriceType" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_BemsSitePriceHistory_CmSite" Association="Self.FK_BemsSitePriceHistory_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="BemsSitePriceHistory" EntitySet="BemsSitePriceHistory" />
- </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_CmFacilityTempSet_CmFacility" Association="Self.FK_CmFacilityTempSet_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
- </AssociationSet>
- <AssociationSet Name="FK_CmFacilityTempSet_CmSite" Association="Self.FK_CmFacilityTempSet_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmFacilityTempSet" EntitySet="CmFacilityTempSet" />
- </AssociationSet>
- <AssociationSet Name="FK_CmMenu_CmSite" Association="Self.FK_CmMenu_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmMenu" EntitySet="CmMenu" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPartnerType_CmPartner" Association="Self.FK_CmPartnerType_CmPartner">
- <End Role="CmPartnerType" EntitySet="CmPartnerType" />
- <End Role="CmPartner" EntitySet="CmPartner" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolCourse_CmSite" Association="Self.FK_CmPatrolCourse_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolCoursePos_CmPatrolCourse" Association="Self.FK_CmPatrolCoursePos_CmPatrolCourse">
- <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
- <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolCoursePos_CmSite" Association="Self.FK_CmPatrolCoursePos_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolCoursePos" EntitySet="CmPatrolCoursePos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolGroup_CmSite" Association="Self.FK_CmPatrolGroup_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolGroupUser_CmPatrolGroup" Association="Self.FK_CmPatrolGroupUser_CmPatrolGroup">
- <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
- <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolGroupUser_CmUser" Association="Self.FK_CmPatrolGroupUser_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="CmPatrolGroupUser" EntitySet="CmPatrolGroupUser" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistory_CmPatrolSchedule" Association="Self.FK_CmPatrolHistory_CmPatrolSchedule">
- <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
- <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistory_CmPatrolType" Association="Self.FK_CmPatrolHistory_CmPatrolType">
- <End Role="CmPatrolType" EntitySet="CmPatrolType" />
- <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistory_CmSite" Association="Self.FK_CmPatrolHistory_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolHistory" EntitySet="CmPatrolHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolPos" Association="Self.FK_CmPatrolHistoryPos_CmPatrolPos">
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistoryPos_CmPatrolType" Association="Self.FK_CmPatrolHistoryPos_CmPatrolType">
- <End Role="CmPatrolType" EntitySet="CmPatrolType" />
- <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolHistoryPos_CmSite" Association="Self.FK_CmPatrolHistoryPos_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolHistoryPos" EntitySet="CmPatrolHistoryPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPlan_CmPatrolCourse" Association="Self.FK_CmPatrolPlan_CmPatrolCourse">
- <End Role="CmPatrolCourse" EntitySet="CmPatrolCourse" />
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPlan_CmPatrolGroup" Association="Self.FK_CmPatrolPlan_CmPatrolGroup">
- <End Role="CmPatrolGroup" EntitySet="CmPatrolGroup" />
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPlan_CmSite" Association="Self.FK_CmPatrolPlan_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPos_CmBuilding" Association="Self.FK_CmPatrolPos_CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPos_CmFloor" Association="Self.FK_CmPatrolPos_CmFloor">
- <End Role="CmFloor" EntitySet="CmFloor" />
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolPos_CmSite" Association="Self.FK_CmPatrolPos_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolPos" EntitySet="CmPatrolPos" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolSchedule_CmPatrolPlan" Association="Self.FK_CmPatrolSchedule_CmPatrolPlan">
- <End Role="CmPatrolPlan" EntitySet="CmPatrolPlan" />
- <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolSchedule_CmSite" Association="Self.FK_CmPatrolSchedule_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolSchedule" EntitySet="CmPatrolSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK_CmPatrolType_CmSite" Association="Self.FK_CmPatrolType_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmPatrolType" EntitySet="CmPatrolType" />
- </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_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_CmUser_CmPosition" Association="Self.FK_CmUser_CmPosition">
- <End Role="CmPosition" EntitySet="CmPosition" />
- <End Role="CmUser" EntitySet="CmUser" />
- </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_CmZoneTempHumiSet_CmBuilding" Association="Self.FK_CmZoneTempHumiSet_CmBuilding">
- <End Role="CmBuilding" EntitySet="CmBuilding" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </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_CmZoneTempHumiSet_CmSite" Association="Self.FK_CmZoneTempHumiSet_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="CmZoneTempHumiSet" EntitySet="CmZoneTempHumiSet" />
- </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_CmCompany" Association="Self.FK_FmsAccident_CmCompany">
- <End Role="CmCompany" EntitySet="CmCompany" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </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_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_FmsAccident_FmsAccidentCodeType" Association="Self.FK_FmsAccident_FmsAccidentCodeType">
- <End Role="FmsAccidentCodeType" EntitySet="FmsAccidentCodeType" />
- <End Role="FmsAccident" EntitySet="FmsAccident" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsBudgetDetail_FmsBudget" Association="Self.FK_FmsBudgetDetail_FmsBudget">
- <End Role="FmsBudget" EntitySet="FmsBudget" />
- <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsBudgetDetail_FmsBudgetCodeClass" Association="Self.FK_FmsBudgetDetail_FmsBudgetCodeClass">
- <End Role="FmsBudgetCodeClass" EntitySet="FmsBudgetCodeClass" />
- <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsBudgetDetailExecution_FmsBudgetDetail" Association="Self.FK_FmsBudgetDetailExecution_FmsBudgetDetail">
- <End Role="FmsBudgetDetail" EntitySet="FmsBudgetDetail" />
- <End Role="FmsBudgetDetailExecution" EntitySet="FmsBudgetDetailExecution" />
- </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_FmsConstruction_CmPartner" Association="Self.FK_FmsConstruction_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsConstruction" EntitySet="FmsConstruction" />
- </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_CmUser" Association="Self.FK_FmsConstructionEstimation_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsConstructionEstimation" EntitySet="FmsConstructionEstimation" />
- </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_FmsContract_CmPartner" Association="Self.FK_FmsContract_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_CmPartnerType" Association="Self.FK_FmsContract_CmPartnerType">
- <End Role="CmPartnerType" EntitySet="CmPartnerType" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsContractClass" Association="Self.FK_FmsContract_FmsContractClass">
- <End Role="FmsContractClass" EntitySet="FmsContractClass" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsContractMethod" Association="Self.FK_FmsContract_FmsContractMethod">
- <End Role="FmsContractMethod" EntitySet="FmsContractMethod" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsContractType" Association="Self.FK_FmsContract_FmsContractType">
- <End Role="FmsContractType" EntitySet="FmsContractType" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsContract_FmsPaymentType" Association="Self.FK_FmsContract_FmsPaymentType">
- <End Role="FmsPaymentType" EntitySet="FmsPaymentType" />
- <End Role="FmsContract" EntitySet="FmsContract" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsDailyCheckReport_CmUser" Association="Self.FK_FmsDailyCheckReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsDailyCheckReport" EntitySet="FmsDailyCheckReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsDailyReport_CmBusinessField" Association="Self.FK_FmsDailyReport_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsDailyReport_CmUser" Association="Self.FK_FmsDailyReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsDailyReport" EntitySet="FmsDailyReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipment_CmUser" Association="Self.FK_FmsEquipment_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipment_FmsEquipmentCodeType" Association="Self.FK_FmsEquipment_FmsEquipmentCodeType">
- <End Role="FmsEquipmentCodeType" EntitySet="FmsEquipmentCodeType" />
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipment_FmsMaterialWarehouse" Association="Self.FK_FmsEquipment_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentHistory_FmsEquipment" Association="Self.FK_FmsEquipmentHistory_FmsEquipment">
- <End Role="FmsEquipment" EntitySet="FmsEquipment" />
- <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
- </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_FmsEquipmentHistory_FmsEquipmentRentInfo" Association="Self.FK_FmsEquipmentHistory_FmsEquipmentRentInfo">
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- <End Role="FmsEquipmentHistory" EntitySet="FmsEquipmentHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser" Association="Self.FK_FmsEquipmentRentInfo_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentRentInfo_CmUser1" Association="Self.FK_FmsEquipmentRentInfo_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType" Association="Self.FK_FmsEquipmentRentInfo_FmsEquipmentCodeStateType">
- <End Role="FmsEquipmentCodeStateType" EntitySet="FmsEquipmentCodeStateType" />
- <End Role="FmsEquipmentRentInfo" EntitySet="FmsEquipmentRentInfo" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsFacilityOperationReport_CmUser" Association="Self.FK_FmsFacilityOperationReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsFacilityOperationReport" EntitySet="FmsFacilityOperationReport" />
- </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_CmFile" Association="Self.FK_FmsManualHistory_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
- </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_FmsManualHistory_FmsManual" Association="Self.FK_FmsManualHistory_FmsManual">
- <End Role="FmsManual" EntitySet="FmsManual" />
- <End Role="FmsManualHistory" EntitySet="FmsManualHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_CmBusinessField" Association="Self.FK_FmsMaterial_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_CmFile" Association="Self.FK_FmsMaterial_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_CmSite" Association="Self.FK_FmsMaterial_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeLocation" Association="Self.FK_FmsMaterial_FmsMaterialCodeLocation">
- <End Role="FmsMaterialCodeLocation" EntitySet="FmsMaterialCodeLocation" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialCodeType" Association="Self.FK_FmsMaterial_FmsMaterialCodeType">
- <End Role="FmsMaterialCodeType" EntitySet="FmsMaterialCodeType" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialTradeCompany" Association="Self.FK_FmsMaterial_FmsMaterialTradeCompany">
- <End Role="FmsMaterialTradeCompany" EntitySet="FmsMaterialTradeCompany" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterial_FmsMaterialWarehouse" Association="Self.FK_FmsMaterial_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- </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_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseOrderMaterial_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialPurchaseOrderMaterial" EntitySet="FmsMaterialPurchaseOrderMaterial" />
- </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_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType" Association="Self.FK_FmsMaterialPurchaseRequest_FmsMaterialCodePurchaseType">
- <End Role="FmsMaterialCodePurchaseType" EntitySet="FmsMaterialCodePurchaseType" />
- <End Role="FmsMaterialPurchaseRequest" EntitySet="FmsMaterialPurchaseRequest" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial" Association="Self.FK_FmsMaterialPurchaseRequestMaterial_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialPurchaseRequestMaterial" EntitySet="FmsMaterialPurchaseRequestMaterial" />
- </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_FmsMaterialRelease_CmBusinessField" Association="Self.FK_FmsMaterialRelease_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmSite" Association="Self.FK_FmsMaterialRelease_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmUser" Association="Self.FK_FmsMaterialRelease_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_CmUser1" Association="Self.FK_FmsMaterialRelease_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterial" Association="Self.FK_FmsMaterialRelease_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeAdjustmentType">
- <End Role="FmsMaterialCodeAdjustmentType" EntitySet="FmsMaterialCodeAdjustmentType" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsMaterialCodeReleaseType" Association="Self.FK_FmsMaterialRelease_FmsMaterialCodeReleaseType">
- <End Role="FmsMaterialCodeReleaseType" EntitySet="FmsMaterialCodeReleaseType" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialRelease_FmsWorkResult" Association="Self.FK_FmsMaterialRelease_FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsMaterialRelease" EntitySet="FmsMaterialRelease" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMaterialStored_FmsMaterial" Association="Self.FK_FmsMaterialStored_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </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_FmsMaterialStored_FmsMaterialWarehouse" Association="Self.FK_FmsMaterialStored_FmsMaterialWarehouse">
- <End Role="FmsMaterialWarehouse" EntitySet="FmsMaterialWarehouse" />
- <End Role="FmsMaterialStored" EntitySet="FmsMaterialStored" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsMonthlyReport_CmUser" Association="Self.FK_FmsMonthlyReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsMonthlyReport" EntitySet="FmsMonthlyReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmBusinessField" Association="Self.FK_FmsReport_CmBusinessField">
- <End Role="CmBusinessField" EntitySet="CmBusinessField" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmFile" Association="Self.FK_FmsReport_CmFile">
- <End Role="CmFile" EntitySet="CmFile" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmSite" Association="Self.FK_FmsReport_CmSite">
- <End Role="CmSite" EntitySet="CmSite" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmUser" Association="Self.FK_FmsReport_CmUser">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmUser1" Association="Self.FK_FmsReport_CmUser1">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsReport_CmUser2" Association="Self.FK_FmsReport_CmUser2">
- <End Role="CmUser" EntitySet="CmUser" />
- <End Role="FmsReport" EntitySet="FmsReport" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkOrderToFacility_CmFacility" Association="Self.FK_FmsWorkOrderToFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkOrderToFacility" EntitySet="FmsWorkOrderToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkRequest_CmPartner" Association="Self.FK_FmsWorkRequest_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsWorkRequest" EntitySet="FmsWorkRequest" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkRequestToFacility_CmFacility" Association="Self.FK_FmsWorkRequestToFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkRequestToFacility" EntitySet="FmsWorkRequestToFacility" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsMaterial" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsMaterial">
- <End Role="FmsMaterial" EntitySet="FmsMaterial" />
- <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResult" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResult">
- <End Role="FmsWorkResult" EntitySet="FmsWorkResult" />
- <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem" Association="Self.FK_FmsWorkResultCheckItemMaterial_FmsWorkResultCheckItem">
- <End Role="FmsWorkResultCheckItem" EntitySet="FmsWorkResultCheckItem" />
- <End Role="FmsWorkResultCheckItemMaterial" EntitySet="FmsWorkResultCheckItemMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkSchedule_CmPartner" Association="Self.FK_FmsWorkSchedule_CmPartner">
- <End Role="CmPartner" EntitySet="CmPartner" />
- <End Role="FmsWorkSchedule" EntitySet="FmsWorkSchedule" />
- </AssociationSet>
- <AssociationSet Name="FK_FmsWorkScheduleToFacility_CmFacility" Association="Self.FK_FmsWorkScheduleToFacility_CmFacility">
- <End Role="CmFacility" EntitySet="CmFacility" />
- <End Role="FmsWorkScheduleToFacility" EntitySet="FmsWorkScheduleToFacility" />
- </AssociationSet>
- </EntityContainer>
- </Schema></edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <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="BemsFloorPlan" EntityType="iBemsModel.BemsFloorPlan" />
- </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="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>
- </Schema>
- </edmx:ConceptualModels>
- <!-- C-S mapping content -->
- <edmx:Mappings>
- <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
- <EntityContainerMapping StorageEntityContainer="iBemsModelStoreContainer" CdmEntityContainer="iBemsEntities">
- <EntitySetMapping Name="BemsAnalysisType">
- <EntityTypeMapping TypeName="iBemsModel.BemsAnalysisType">
- <MappingFragment StoreEntitySet="BemsAnalysisType">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="AnalysisType" ColumnName="AnalysisType" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsControlPointHistory">
- <EntityTypeMapping TypeName="iBemsModel.BemsControlPointHistory">
- <MappingFragment StoreEntitySet="BemsControlPointHistory">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
- <ScalarProperty Name="CreateDateTime" ColumnName="CreateDateTime" />
- <ScalarProperty Name="ControlValue" ColumnName="ControlValue" />
- <ScalarProperty Name="WriteServiceName" ColumnName="WriteServiceName" />
- <ScalarProperty Name="ActionDateTime" ColumnName="ActionDateTime" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsFacilityType">
- <EntityTypeMapping TypeName="iBemsModel.BemsFacilityType">
- <MappingFragment StoreEntitySet="BemsFacilityType">
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsFactorCo2">
- <EntityTypeMapping TypeName="iBemsModel.BemsFactorCo2">
- <MappingFragment StoreEntitySet="BemsFactorCo2">
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- <ScalarProperty Name="Factor" ColumnName="Factor" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsFactorToe">
- <EntityTypeMapping TypeName="iBemsModel.BemsFactorToe">
- <MappingFragment StoreEntitySet="BemsFactorToe">
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- <ScalarProperty Name="TotalFactor" ColumnName="TotalFactor" />
- <ScalarProperty Name="PureFactor" ColumnName="PureFactor" />
- <ScalarProperty Name="kcal" ColumnName="kcal" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsFormula">
- <EntityTypeMapping TypeName="iBemsModel.BemsFormula">
- <MappingFragment StoreEntitySet="BemsFormula">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
- <ScalarProperty Name="Formula" ColumnName="Formula" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsFormulaBase">
- <EntityTypeMapping TypeName="iBemsModel.BemsFormulaBase">
- <MappingFragment StoreEntitySet="BemsFormulaBase">
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsFormulaParameter">
- <EntityTypeMapping TypeName="iBemsModel.BemsFormulaParameter">
- <MappingFragment StoreEntitySet="BemsFormulaParameter">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
- <ScalarProperty Name="ParameterId" ColumnName="ParameterId" />
- <ScalarProperty Name="ParameterFacilityCode" ColumnName="ParameterFacilityCode" />
- <ScalarProperty Name="ParameterPropertyId" ColumnName="ParameterPropertyId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsFormulaTable">
- <EntityTypeMapping TypeName="iBemsModel.BemsFormulaTable">
- <MappingFragment StoreEntitySet="BemsFormulaTable">
- <ScalarProperty Name="TableId" ColumnName="TableId" />
- <ScalarProperty Name="FunctionName" ColumnName="FunctionName" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsFormulaTableValue">
- <EntityTypeMapping TypeName="iBemsModel.BemsFormulaTableValue">
- <MappingFragment StoreEntitySet="BemsFormulaTableValue">
- <ScalarProperty Name="TableId" ColumnName="TableId" />
- <ScalarProperty Name="XValue" ColumnName="XValue" />
- <ScalarProperty Name="YValue" ColumnName="YValue" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsMonitoringPoint">
- <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPoint">
- <MappingFragment StoreEntitySet="BemsMonitoringPoint">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
- <ScalarProperty Name="ValueType" ColumnName="ValueType" />
- <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
- <ScalarProperty Name="FloorId" ColumnName="FloorId" />
- <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsMonitoringPointBaseData">
- <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointBaseData">
- <MappingFragment StoreEntitySet="BemsMonitoringPointBaseData">
- <ScalarProperty Name="IsConverted" ColumnName="IsConverted" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
- <ScalarProperty Name="ValueType" ColumnName="ValueType" />
- <ScalarProperty Name="IsAccumulated" ColumnName="IsAccumulated" />
- <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="IsSampled" ColumnName="IsSampled" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsMonitoringPointHistory15min">
- <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistory15min">
- <MappingFragment StoreEntitySet="BemsMonitoringPointHistory15min">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
- <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
- <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsMonitoringPointHistoryDaily">
- <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistoryDaily">
- <MappingFragment StoreEntitySet="BemsMonitoringPointHistoryDaily">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
- <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
- <ScalarProperty Name="DailyValue" ColumnName="DailyValue" />
- <ScalarProperty Name="MaxValue" ColumnName="MaxValue" />
- <ScalarProperty Name="MinValue" ColumnName="MinValue" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsMonitoringPointHistoryHourly">
- <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistoryHourly">
- <MappingFragment StoreEntitySet="BemsMonitoringPointHistoryHourly">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
- <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
- <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsMonitoringPointToAnlaysisType">
- <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointToAnlaysisType">
- <MappingFragment StoreEntitySet="BemsMonitoringPointToAnlaysisType">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
- <ScalarProperty Name="AnalysisType" ColumnName="AnalysisType" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsServiceType">
- <EntityTypeMapping TypeName="iBemsModel.BemsServiceType">
- <MappingFragment StoreEntitySet="BemsServiceType">
- <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmAnnouncement">
- <EntityTypeMapping TypeName="iBemsModel.CmAnnouncement">
- <MappingFragment StoreEntitySet="CmAnnouncement">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="AnnouncementId" ColumnName="AnnouncementId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Contents" ColumnName="Contents" />
- <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
- <ScalarProperty Name="FileId" ColumnName="FileId" />
- <ScalarProperty Name="AddDate" ColumnName="AddDate" />
- <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="ReadCount" ColumnName="ReadCount" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmBuilding">
- <EntityTypeMapping TypeName="iBemsModel.CmBuilding">
- <MappingFragment StoreEntitySet="CmBuilding">
- <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="FileId" ColumnName="FileId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmBusinessField">
- <EntityTypeMapping TypeName="iBemsModel.CmBusinessField">
- <MappingFragment StoreEntitySet="CmBusinessField">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmCompany">
- <EntityTypeMapping TypeName="iBemsModel.CmCompany">
- <MappingFragment StoreEntitySet="CmCompany">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
- <ScalarProperty Name="CompanyTypeId" ColumnName="CompanyTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
- <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
- <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
- <ScalarProperty Name="SalesName" ColumnName="SalesName" />
- <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
- <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
- <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
- <ScalarProperty Name="Address1" ColumnName="Address1" />
- <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
- <ScalarProperty Name="Homepage" ColumnName="Homepage" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmCompanyType">
- <EntityTypeMapping TypeName="iBemsModel.CmCompanyType">
- <MappingFragment StoreEntitySet="CmCompanyType">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="CompanyTypeId" ColumnName="CompanyTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmDepartment">
- <EntityTypeMapping TypeName="iBemsModel.CmDepartment">
- <MappingFragment StoreEntitySet="CmDepartment">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
- <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="ShortName" ColumnName="ShortName" />
- <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
- <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmFacilityFile">
- <EntityTypeMapping TypeName="iBemsModel.CmFacilityFile">
- <MappingFragment StoreEntitySet="CmFacilityFile">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FileId" ColumnName="FileId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
- <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
- <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
- <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmFacilityTempSet">
- <EntityTypeMapping TypeName="iBemsModel.CmFacilityTempSet">
- <MappingFragment StoreEntitySet="CmFacilityTempSet">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="T1" ColumnName="T1" />
- <ScalarProperty Name="T2" ColumnName="T2" />
- <ScalarProperty Name="T3" ColumnName="T3" />
- <ScalarProperty Name="T4" ColumnName="T4" />
- <ScalarProperty Name="T5" ColumnName="T5" />
- <ScalarProperty Name="T6" ColumnName="T6" />
- <ScalarProperty Name="T7" ColumnName="T7" />
- <ScalarProperty Name="T8" ColumnName="T8" />
- <ScalarProperty Name="T9" ColumnName="T9" />
- <ScalarProperty Name="T10" ColumnName="T10" />
- <ScalarProperty Name="T11" ColumnName="T11" />
- <ScalarProperty Name="T12" ColumnName="T12" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmFile">
- <EntityTypeMapping TypeName="iBemsModel.CmFile">
- <MappingFragment StoreEntitySet="CmFile">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FileId" ColumnName="FileId" />
- <ScalarProperty Name="FileCategoryId" ColumnName="FileCategoryId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="FileSize" ColumnName="FileSize" />
- <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
- <ScalarProperty Name="ContentType" ColumnName="ContentType" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmFileCategory">
- <EntityTypeMapping TypeName="iBemsModel.CmFileCategory">
- <MappingFragment StoreEntitySet="CmFileCategory">
- <ScalarProperty Name="FileCategoryId" ColumnName="FileCategoryId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmFloor">
- <EntityTypeMapping TypeName="iBemsModel.CmFloor">
- <MappingFragment StoreEntitySet="CmFloor">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
- <ScalarProperty Name="FloorId" ColumnName="FloorId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmHoliday">
- <EntityTypeMapping TypeName="iBemsModel.CmHoliday">
- <MappingFragment StoreEntitySet="CmHoliday">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="HolidayMonth" ColumnName="HolidayMonth" />
- <ScalarProperty Name="HolidayDay" ColumnName="HolidayDay" />
- <ScalarProperty Name="IsLunar" ColumnName="IsLunar" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmHolidayCustom">
- <EntityTypeMapping TypeName="iBemsModel.CmHolidayCustom">
- <MappingFragment StoreEntitySet="CmHolidayCustom">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="HolidayDate" ColumnName="HolidayDate" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmPosition">
- <EntityTypeMapping TypeName="iBemsModel.CmPosition">
- <MappingFragment StoreEntitySet="CmPosition">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="PositionId" ColumnName="PositionId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmUser">
- <EntityTypeMapping TypeName="iBemsModel.CmUser">
- <MappingFragment StoreEntitySet="CmUser">
- <ScalarProperty Name="Devicetoken" ColumnName="Devicetoken" />
- <ScalarProperty Name="IsSI" ColumnName="IsSI" />
- <ScalarProperty Name="IsMobile" ColumnName="IsMobile" />
- <ScalarProperty Name="IsScheduleUser" ColumnName="IsScheduleUser" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="UserId" ColumnName="UserId" />
- <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
- <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
- <ScalarProperty Name="PositionId" ColumnName="PositionId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Passwd" ColumnName="Passwd" />
- <ScalarProperty Name="Birthday" ColumnName="Birthday" />
- <ScalarProperty Name="Lunar" ColumnName="Lunar" />
- <ScalarProperty Name="StateId" ColumnName="StateId" />
- <ScalarProperty Name="EmploymentType" ColumnName="EmploymentType" />
- <ScalarProperty Name="EmploymentStatus" ColumnName="EmploymentStatus" />
- <ScalarProperty Name="OfficePhoneNo" ColumnName="OfficePhoneNo" />
- <ScalarProperty Name="HomePhoneNo" ColumnName="HomePhoneNo" />
- <ScalarProperty Name="MobilePhoneNo" ColumnName="MobilePhoneNo" />
- <ScalarProperty Name="HomeZip1" ColumnName="HomeZip1" />
- <ScalarProperty Name="HomeZip2" ColumnName="HomeZip2" />
- <ScalarProperty Name="HomeAddress1" ColumnName="HomeAddress1" />
- <ScalarProperty Name="HomeAdderss2" ColumnName="HomeAdderss2" />
- <ScalarProperty Name="Email" ColumnName="Email" />
- <ScalarProperty Name="EnterDate" ColumnName="EnterDate" />
- <ScalarProperty Name="RetireDate" ColumnName="RetireDate" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- <ScalarProperty Name="Rfcsn" ColumnName="Rfcsn" />
- <ScalarProperty Name="PasswordUpdatedDate" ColumnName="PasswordUpdatedDate" />
- <ScalarProperty Name="FileId" ColumnName="FileId" />
- <ScalarProperty Name="IsBems" ColumnName="IsBems" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="Certificated" ColumnName="Certificated" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmUserGroup">
- <EntityTypeMapping TypeName="iBemsModel.CmUserGroup">
- <MappingFragment StoreEntitySet="CmUserGroup">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmUserGroupPermission">
- <EntityTypeMapping TypeName="iBemsModel.CmUserGroupPermission">
- <MappingFragment StoreEntitySet="CmUserGroupPermission">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="UserGroupId" ColumnName="UserGroupId" />
- <ScalarProperty Name="MenuId" ColumnName="MenuId" />
- <ScalarProperty Name="MenuPermission" ColumnName="MenuPermission" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmUserLoginHistory">
- <EntityTypeMapping TypeName="iBemsModel.CmUserLoginHistory">
- <MappingFragment StoreEntitySet="CmUserLoginHistory">
- <ScalarProperty Name="LoginHistoryId" ColumnName="LoginHistoryId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="UserId" ColumnName="UserId" />
- <ScalarProperty Name="Type" ColumnName="Type" />
- <ScalarProperty Name="TraceTime" ColumnName="TraceTime" />
- <ScalarProperty Name="IpAddress" ColumnName="IpAddress" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmUserToLicense">
- <EntityTypeMapping TypeName="iBemsModel.CmUserToLicense">
- <MappingFragment StoreEntitySet="CmUserToLicense">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="UserId" ColumnName="UserId" />
- <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmZone">
- <EntityTypeMapping TypeName="iBemsModel.CmZone">
- <MappingFragment StoreEntitySet="CmZone">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
- <ScalarProperty Name="FloorId" ColumnName="FloorId" />
- <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Target_temperature" ColumnName="Target_temperature" />
- <ScalarProperty Name="Target_humidity" ColumnName="Target_humidity" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmZoneTempHumiSet">
- <EntityTypeMapping TypeName="iBemsModel.CmZoneTempHumiSet">
- <MappingFragment StoreEntitySet="CmZoneTempHumiSet">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
- <ScalarProperty Name="FloorId" ColumnName="FloorId" />
- <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
- <ScalarProperty Name="T1" ColumnName="T1" />
- <ScalarProperty Name="T2" ColumnName="T2" />
- <ScalarProperty Name="T3" ColumnName="T3" />
- <ScalarProperty Name="T4" ColumnName="T4" />
- <ScalarProperty Name="T5" ColumnName="T5" />
- <ScalarProperty Name="T6" ColumnName="T6" />
- <ScalarProperty Name="T7" ColumnName="T7" />
- <ScalarProperty Name="T8" ColumnName="T8" />
- <ScalarProperty Name="T9" ColumnName="T9" />
- <ScalarProperty Name="T10" ColumnName="T10" />
- <ScalarProperty Name="T11" ColumnName="T11" />
- <ScalarProperty Name="T12" ColumnName="T12" />
- <ScalarProperty Name="H1" ColumnName="H1" />
- <ScalarProperty Name="H2" ColumnName="H2" />
- <ScalarProperty Name="H3" ColumnName="H3" />
- <ScalarProperty Name="H4" ColumnName="H4" />
- <ScalarProperty Name="H5" ColumnName="H5" />
- <ScalarProperty Name="H6" ColumnName="H6" />
- <ScalarProperty Name="H7" ColumnName="H7" />
- <ScalarProperty Name="H8" ColumnName="H8" />
- <ScalarProperty Name="H9" ColumnName="H9" />
- <ScalarProperty Name="H10" ColumnName="H10" />
- <ScalarProperty Name="H11" ColumnName="H11" />
- <ScalarProperty Name="H12" ColumnName="H12" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsAccident">
- <EntityTypeMapping TypeName="iBemsModel.FmsAccident">
- <MappingFragment StoreEntitySet="FmsAccident">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="AccidentId" ColumnName="AccidentId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="StartDate" ColumnName="StartDate" />
- <ScalarProperty Name="EndDate" ColumnName="EndDate" />
- <ScalarProperty Name="AccidentTypeId" ColumnName="AccidentTypeId" />
- <ScalarProperty Name="DepartmentId" ColumnName="DepartmentId" />
- <ScalarProperty Name="AccidentLocation" ColumnName="AccidentLocation" />
- <ScalarProperty Name="Reason" ColumnName="Reason" />
- <ScalarProperty Name="Action" ColumnName="Action" />
- <ScalarProperty Name="Damage" ColumnName="Damage" />
- <ScalarProperty Name="Measurement" ColumnName="Measurement" />
- <ScalarProperty Name="FileId1" ColumnName="FileId1" />
- <ScalarProperty Name="FileId2" ColumnName="FileId2" />
- <ScalarProperty Name="FileId3" ColumnName="FileId3" />
- <ScalarProperty Name="CompanyId" ColumnName="CompanyId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsAccidentCodeType">
- <EntityTypeMapping TypeName="iBemsModel.FmsAccidentCodeType">
- <MappingFragment StoreEntitySet="FmsAccidentCodeType">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="AccidentTypeId" ColumnName="AccidentTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsBudget">
- <EntityTypeMapping TypeName="iBemsModel.FmsBudget">
- <MappingFragment StoreEntitySet="FmsBudget">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="Year" ColumnName="Year" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsBudgetCodeClass">
- <EntityTypeMapping TypeName="iBemsModel.FmsBudgetCodeClass">
- <MappingFragment StoreEntitySet="FmsBudgetCodeClass">
- <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
- <ScalarProperty Name="BudgetSeq" ColumnName="BudgetSeq" />
- <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
- <ScalarProperty Name="Depth" ColumnName="Depth" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
- <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsCompanyEstimationCodeClass">
- <EntityTypeMapping TypeName="iBemsModel.FmsCompanyEstimationCodeClass">
- <MappingFragment StoreEntitySet="FmsCompanyEstimationCodeClass">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="CompanyEstimationClassId" ColumnName="CompanyEstimationClassId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsConstruction">
- <EntityTypeMapping TypeName="iBemsModel.FmsConstruction">
- <MappingFragment StoreEntitySet="FmsConstruction">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="ConstructionId" ColumnName="ConstructionId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="ConstructionTypeId" ColumnName="ConstructionTypeId" />
- <ScalarProperty Name="StartDate" ColumnName="StartDate" />
- <ScalarProperty Name="EndDate" ColumnName="EndDate" />
- <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
- <ScalarProperty Name="ConstructLocation" ColumnName="ConstructLocation" />
- <ScalarProperty Name="OwnerShipName" ColumnName="OwnerShipName" />
- <ScalarProperty Name="CommitmentMan" ColumnName="CommitmentMan" />
- <ScalarProperty Name="OwnerShipPhoneNo" ColumnName="OwnerShipPhoneNo" />
- <ScalarProperty Name="WeldWorkStartTime" ColumnName="WeldWorkStartTime" />
- <ScalarProperty Name="WeldWorkEndTime" ColumnName="WeldWorkEndTime" />
- <ScalarProperty Name="GasWorkStartTime" ColumnName="GasWorkStartTime" />
- <ScalarProperty Name="GasWorkEndTime" ColumnName="GasWorkEndTime" />
- <ScalarProperty Name="PaintWorkStartTime" ColumnName="PaintWorkStartTime" />
- <ScalarProperty Name="PaintWorkEndTime" ColumnName="PaintWorkEndTime" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
- <ScalarProperty Name="AddDate" ColumnName="AddDate" />
- <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
- <ScalarProperty Name="ConstructionDetail" ColumnName="ConstructionDetail" />
- <ScalarProperty Name="InOutStockName" ColumnName="InOutStockName" />
- <ScalarProperty Name="FileId1" ColumnName="FileId1" />
- <ScalarProperty Name="FileId2" ColumnName="FileId2" />
- <ScalarProperty Name="FileId3" ColumnName="FileId3" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsConstructionCodeProgress">
- <EntityTypeMapping TypeName="iBemsModel.FmsConstructionCodeProgress">
- <MappingFragment StoreEntitySet="FmsConstructionCodeProgress">
- <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsConstructionCodeType">
- <EntityTypeMapping TypeName="iBemsModel.FmsConstructionCodeType">
- <MappingFragment StoreEntitySet="FmsConstructionCodeType">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="ConstructionTypeId" ColumnName="ConstructionTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsConstructionEstimation">
- <EntityTypeMapping TypeName="iBemsModel.FmsConstructionEstimation">
- <MappingFragment StoreEntitySet="FmsConstructionEstimation">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="ConstructionId" ColumnName="ConstructionId" />
- <ScalarProperty Name="EstimateDate" ColumnName="EstimateDate" />
- <ScalarProperty Name="EstimateUserId" ColumnName="EstimateUserId" />
- <ScalarProperty Name="Safety01_CleanUp" ColumnName="Safety01_CleanUp" />
- <ScalarProperty Name="Safety02_PersonalProtection" ColumnName="Safety02_PersonalProtection" />
- <ScalarProperty Name="Safety03_FireExtinguisher" ColumnName="Safety03_FireExtinguisher" />
- <ScalarProperty Name="Safety04_HighPlaceWork" ColumnName="Safety04_HighPlaceWork" />
- <ScalarProperty Name="Safety05_Weld" ColumnName="Safety05_Weld" />
- <ScalarProperty Name="Safety06_SurroundingCleanUp" ColumnName="Safety06_SurroundingCleanUp" />
- <ScalarProperty Name="Safety07_SurroundingHealthy" ColumnName="Safety07_SurroundingHealthy" />
- <ScalarProperty Name="Safety08_Noise" ColumnName="Safety08_Noise" />
- <ScalarProperty Name="Safety09_FacilityProtection" ColumnName="Safety09_FacilityProtection" />
- <ScalarProperty Name="Safety10_Waste" ColumnName="Safety10_Waste" />
- <ScalarProperty Name="Safety11_Execution" ColumnName="Safety11_Execution" />
- <ScalarProperty Name="Safety12_Announcement" ColumnName="Safety12_Announcement" />
- <ScalarProperty Name="Ability01_Compliance" ColumnName="Ability01_Compliance" />
- <ScalarProperty Name="Ability02_Fault" ColumnName="Ability02_Fault" />
- <ScalarProperty Name="Ability03_SkillLevel" ColumnName="Ability03_SkillLevel" />
- <ScalarProperty Name="Ability04_ProcessManagement" ColumnName="Ability04_ProcessManagement" />
- <ScalarProperty Name="Ability05_Collaboration" ColumnName="Ability05_Collaboration" />
- <ScalarProperty Name="Service01_Compliance" ColumnName="Service01_Compliance" />
- <ScalarProperty Name="Service02_SkillLevel" ColumnName="Service02_SkillLevel" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- <ScalarProperty Name="TotalEstimateScore" ColumnName="TotalEstimateScore" />
- <ScalarProperty Name="SafetyScore" ColumnName="SafetyScore" />
- <ScalarProperty Name="AbilityScore" ColumnName="AbilityScore" />
- <ScalarProperty Name="ServiceScore" ColumnName="ServiceScore" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsContractClass">
- <EntityTypeMapping TypeName="iBemsModel.FmsContractClass">
- <MappingFragment StoreEntitySet="FmsContractClass">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="ContractClassId" ColumnName="ContractClassId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsContractMethod">
- <EntityTypeMapping TypeName="iBemsModel.FmsContractMethod">
- <MappingFragment StoreEntitySet="FmsContractMethod">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="ContractMethodId" ColumnName="ContractMethodId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsContractType">
- <EntityTypeMapping TypeName="iBemsModel.FmsContractType">
- <MappingFragment StoreEntitySet="FmsContractType">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="ContractTypeId" ColumnName="ContractTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsDrawing">
- <EntityTypeMapping TypeName="iBemsModel.FmsDrawing">
- <MappingFragment StoreEntitySet="FmsDrawing">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="DrawingId" ColumnName="DrawingId" />
- <ScalarProperty Name="DrawingNo" ColumnName="DrawingNo" />
- <ScalarProperty Name="DrawingGroupId" ColumnName="DrawingGroupId" />
- <ScalarProperty Name="DrawingTypeId" ColumnName="DrawingTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsDrawingCodeGroup">
- <EntityTypeMapping TypeName="iBemsModel.FmsDrawingCodeGroup">
- <MappingFragment StoreEntitySet="FmsDrawingCodeGroup">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="DrawingGroupId" ColumnName="DrawingGroupId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsDrawingCodeType">
- <EntityTypeMapping TypeName="iBemsModel.FmsDrawingCodeType">
- <MappingFragment StoreEntitySet="FmsDrawingCodeType">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="DrawingTypeId" ColumnName="DrawingTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsDrawingHistory">
- <EntityTypeMapping TypeName="iBemsModel.FmsDrawingHistory">
- <MappingFragment StoreEntitySet="FmsDrawingHistory">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="DrawingId" ColumnName="DrawingId" />
- <ScalarProperty Name="HistoryId" ColumnName="HistoryId" />
- <ScalarProperty Name="RevisionNo" ColumnName="RevisionNo" />
- <ScalarProperty Name="FileId" ColumnName="FileId" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
- <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsEquipmentCodeStateType">
- <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentCodeStateType">
- <MappingFragment StoreEntitySet="FmsEquipmentCodeStateType">
- <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsEquipmentCodeType">
- <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentCodeType">
- <MappingFragment StoreEntitySet="FmsEquipmentCodeType">
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="EquipmentTypeId" ColumnName="EquipmentTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsEquipmentHistory">
- <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentHistory">
- <MappingFragment StoreEntitySet="FmsEquipmentHistory">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="EquipmentHistoryId" ColumnName="EquipmentHistoryId" />
- <ScalarProperty Name="EquipmentId" ColumnName="EquipmentId" />
- <ScalarProperty Name="TotalStockCount" ColumnName="TotalStockCount" />
- <ScalarProperty Name="CurrentStockCount" ColumnName="CurrentStockCount" />
- <ScalarProperty Name="RentCount" ColumnName="RentCount" />
- <ScalarProperty Name="CurrentRentCount" ColumnName="CurrentRentCount" />
- <ScalarProperty Name="ReturnCount" ColumnName="ReturnCount" />
- <ScalarProperty Name="LossCount" ColumnName="LossCount" />
- <ScalarProperty Name="StoredCount" ColumnName="StoredCount" />
- <ScalarProperty Name="EquipmentRentId" ColumnName="EquipmentRentId" />
- <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
- <ScalarProperty Name="AddDate" ColumnName="AddDate" />
- <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
- <ScalarProperty Name="IsReturned" ColumnName="IsReturned" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsFacilityCheckItem">
- <EntityTypeMapping TypeName="iBemsModel.FmsFacilityCheckItem">
- <MappingFragment StoreEntitySet="FmsFacilityCheckItem">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
- <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
- <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsYesNoResult" ColumnName="IsYesNoResult" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsFacilityCodeClass">
- <EntityTypeMapping TypeName="iBemsModel.FmsFacilityCodeClass">
- <MappingFragment StoreEntitySet="FmsFacilityCodeClass">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FacilityClassId" ColumnName="FacilityClassId" />
- <ScalarProperty Name="ParentFacilityClassId" ColumnName="ParentFacilityClassId" />
- <ScalarProperty Name="Depth" ColumnName="Depth" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsFacilityManual">
- <EntityTypeMapping TypeName="iBemsModel.FmsFacilityManual">
- <MappingFragment StoreEntitySet="FmsFacilityManual">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="ManualId" ColumnName="ManualId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="Keyword" ColumnName="Keyword" />
- <ScalarProperty Name="FileId" ColumnName="FileId" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsFacilityOperationItem">
- <EntityTypeMapping TypeName="iBemsModel.FmsFacilityOperationItem">
- <MappingFragment StoreEntitySet="FmsFacilityOperationItem">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="ItemId" ColumnName="ItemId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="ResultUnit" ColumnName="ResultUnit" />
- <ScalarProperty Name="PointId" ColumnName="PointId" />
- <ScalarProperty Name="SystemId" ColumnName="SystemId" />
- <ScalarProperty Name="EnergyCode" ColumnName="EnergyCode" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
- <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
- <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
- <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
- <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsLicense">
- <EntityTypeMapping TypeName="iBemsModel.FmsLicense">
- <MappingFragment StoreEntitySet="FmsLicense">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="LicenseId" ColumnName="LicenseId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IssuingOffice" ColumnName="IssuingOffice" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="EducationalInstitute" ColumnName="EducationalInstitute" />
- <ScalarProperty Name="Note" ColumnName="Note" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsManual">
- <EntityTypeMapping TypeName="iBemsModel.FmsManual">
- <MappingFragment StoreEntitySet="FmsManual">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="ManualId" ColumnName="ManualId" />
- <ScalarProperty Name="ManualNo" ColumnName="ManualNo" />
- <ScalarProperty Name="ManualTypeId" ColumnName="ManualTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsManualHistory">
- <EntityTypeMapping TypeName="iBemsModel.FmsManualHistory">
- <MappingFragment StoreEntitySet="FmsManualHistory">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="ManualId" ColumnName="ManualId" />
- <ScalarProperty Name="HistoryId" ColumnName="HistoryId" />
- <ScalarProperty Name="RevisionNo" ColumnName="RevisionNo" />
- <ScalarProperty Name="FileId" ColumnName="FileId" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
- <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsManualType">
- <EntityTypeMapping TypeName="iBemsModel.FmsManualType">
- <MappingFragment StoreEntitySet="FmsManualType">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="ManualTypeId" ColumnName="ManualTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialCarriedForward">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCarriedForward">
- <MappingFragment StoreEntitySet="FmsMaterialCarriedForward">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="ClosedDate" ColumnName="ClosedDate" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
- <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
- <ScalarProperty Name="StockCount" ColumnName="StockCount" />
- <ScalarProperty Name="StockTotalCost" ColumnName="StockTotalCost" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialCodeAdjustmentType">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeAdjustmentType">
- <MappingFragment StoreEntitySet="FmsMaterialCodeAdjustmentType">
- <ScalarProperty Name="AdjustmentTypeId" ColumnName="AdjustmentTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialCodeClass">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeClass">
- <MappingFragment StoreEntitySet="FmsMaterialCodeClass">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="MaterialClassId" ColumnName="MaterialClassId" />
- <ScalarProperty Name="ParentMaterialClassId" ColumnName="ParentMaterialClassId" />
- <ScalarProperty Name="Depth" ColumnName="Depth" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialCodeLocation">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeLocation">
- <MappingFragment StoreEntitySet="FmsMaterialCodeLocation">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="LocationId" ColumnName="LocationId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialCodeProgress">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeProgress">
- <MappingFragment StoreEntitySet="FmsMaterialCodeProgress">
- <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialCodePurchaseType">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodePurchaseType">
- <MappingFragment StoreEntitySet="FmsMaterialCodePurchaseType">
- <ScalarProperty Name="PurchaseTypeId" ColumnName="PurchaseTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialCodeReleaseType">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeReleaseType">
- <MappingFragment StoreEntitySet="FmsMaterialCodeReleaseType">
- <ScalarProperty Name="ReleaseTypeId" ColumnName="ReleaseTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialCodeType">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialCodeType">
- <MappingFragment StoreEntitySet="FmsMaterialCodeType">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="MaterialTypeId" ColumnName="MaterialTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Nickname" ColumnName="Nickname" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialPurchaseOrder">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseOrder">
- <MappingFragment StoreEntitySet="FmsMaterialPurchaseOrder">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
- <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
- <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
- <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
- <ScalarProperty Name="OrderUserId" ColumnName="OrderUserId" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Reason" ColumnName="Reason" />
- <ScalarProperty Name="StoredDueDate" ColumnName="StoredDueDate" />
- <ScalarProperty Name="FileId" ColumnName="FileId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialPurchaseOrderMaterial">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseOrderMaterial">
- <MappingFragment StoreEntitySet="FmsMaterialPurchaseOrderMaterial">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
- <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
- <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
- <ScalarProperty Name="UnitCost" ColumnName="UnitCost" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialPurchaseRequest">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseRequest">
- <MappingFragment StoreEntitySet="FmsMaterialPurchaseRequest">
- <ScalarProperty Name="bSameOrder" ColumnName="bSameOrder" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
- <ScalarProperty Name="PurchaseTypeId" ColumnName="PurchaseTypeId" />
- <ScalarProperty Name="RequestDate" ColumnName="RequestDate" />
- <ScalarProperty Name="RequestUserId" ColumnName="RequestUserId" />
- <ScalarProperty Name="PurchaseHopeDate" ColumnName="PurchaseHopeDate" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Reason" ColumnName="Reason" />
- <ScalarProperty Name="ProgressId" ColumnName="ProgressId" />
- <ScalarProperty Name="ApprovalDate" ColumnName="ApprovalDate" />
- <ScalarProperty Name="ApprovalUserId" ColumnName="ApprovalUserId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialPurchaseRequestMaterial">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialPurchaseRequestMaterial">
- <MappingFragment StoreEntitySet="FmsMaterialPurchaseRequestMaterial">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="PurchaseRequestId" ColumnName="PurchaseRequestId" />
- <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
- <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialStored">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialStored">
- <MappingFragment StoreEntitySet="FmsMaterialStored">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="StoredDate" ColumnName="StoredDate" />
- <ScalarProperty Name="MaterialStoredId" ColumnName="MaterialStoredId" />
- <ScalarProperty Name="PurchaseOrderId" ColumnName="PurchaseOrderId" />
- <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
- <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
- <ScalarProperty Name="StoredCount" ColumnName="StoredCount" />
- <ScalarProperty Name="RemainStoredCount" ColumnName="RemainStoredCount" />
- <ScalarProperty Name="UnitCost" ColumnName="UnitCost" />
- <ScalarProperty Name="StockCount" ColumnName="StockCount" />
- <ScalarProperty Name="Note" ColumnName="Note" />
- <ScalarProperty Name="StoredUserId" ColumnName="StoredUserId" />
- <ScalarProperty Name="ApprovalDate" ColumnName="ApprovalDate" />
- <ScalarProperty Name="ApprovalUserId" ColumnName="ApprovalUserId" />
- <ScalarProperty Name="IsApproval" ColumnName="IsApproval" />
- <ScalarProperty Name="LocationInWarehouse" ColumnName="LocationInWarehouse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialTradeCompany">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialTradeCompany">
- <MappingFragment StoreEntitySet="FmsMaterialTradeCompany">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="RegistrationNo" ColumnName="RegistrationNo" />
- <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
- <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
- <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
- <ScalarProperty Name="SalesName" ColumnName="SalesName" />
- <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
- <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
- <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
- <ScalarProperty Name="Address1" ColumnName="Address1" />
- <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
- <ScalarProperty Name="HomepageUri" ColumnName="HomepageUri" />
- <ScalarProperty Name="Note" ColumnName="Note" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialWarehouse">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialWarehouse">
- <MappingFragment StoreEntitySet="FmsMaterialWarehouse">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsPaymentType">
- <EntityTypeMapping TypeName="iBemsModel.FmsPaymentType">
- <MappingFragment StoreEntitySet="FmsPaymentType">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="PaymentTypeId" ColumnName="PaymentTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkCodeCauseClass">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeCauseClass">
- <MappingFragment StoreEntitySet="FmsWorkCodeCauseClass">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="CauseClassId" ColumnName="CauseClassId" />
- <ScalarProperty Name="ParentId" ColumnName="ParentId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkCodeCycleUnit">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeCycleUnit">
- <MappingFragment StoreEntitySet="FmsWorkCodeCycleUnit">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkCodeEmergency">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeEmergency">
- <MappingFragment StoreEntitySet="FmsWorkCodeEmergency">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="EmergencyId" ColumnName="EmergencyId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkCodeHolidayWorkType">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeHolidayWorkType">
- <MappingFragment StoreEntitySet="FmsWorkCodeHolidayWorkType">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="HolidayWorkTypeId" ColumnName="HolidayWorkTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkCodeLegalInspectionAgency">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeLegalInspectionAgency">
- <MappingFragment StoreEntitySet="FmsWorkCodeLegalInspectionAgency">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkCodeProgress">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeProgress">
- <MappingFragment StoreEntitySet="FmsWorkCodeProgress">
- <ScalarProperty Name="WorkProgressId" ColumnName="WorkProgressId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkCodeType">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkCodeType">
- <MappingFragment StoreEntitySet="FmsWorkCodeType">
- <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkOrder">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkOrder">
- <MappingFragment StoreEntitySet="FmsWorkOrder">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="EmergencyId" ColumnName="EmergencyId" />
- <ScalarProperty Name="OrderUserId" ColumnName="OrderUserId" />
- <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
- <ScalarProperty Name="StartWorkDate" ColumnName="StartWorkDate" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Content" ColumnName="Content" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkOrderToFacility">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkOrderToFacility">
- <MappingFragment StoreEntitySet="FmsWorkOrderToFacility">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkRequest">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkRequest">
- <MappingFragment StoreEntitySet="FmsWorkRequest">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
- <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
- <ScalarProperty Name="WorkProgressId" ColumnName="WorkProgressId" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Content" ColumnName="Content" />
- <ScalarProperty Name="RequestUserId" ColumnName="RequestUserId" />
- <ScalarProperty Name="RequestDate" ColumnName="RequestDate" />
- <ScalarProperty Name="StartWorkDate" ColumnName="StartWorkDate" />
- <ScalarProperty Name="RejectUserId" ColumnName="RejectUserId" />
- <ScalarProperty Name="RejectDate" ColumnName="RejectDate" />
- <ScalarProperty Name="RejectReason" ColumnName="RejectReason" />
- <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkRequestToFacility">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkRequestToFacility">
- <MappingFragment StoreEntitySet="FmsWorkRequestToFacility">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkResult">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkResult">
- <MappingFragment StoreEntitySet="FmsWorkResult">
- <ScalarProperty Name="ConfirmDesc" ColumnName="ConfirmDesc" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
- <ScalarProperty Name="WorkerUserId" ColumnName="WorkerUserId" />
- <ScalarProperty Name="StartDate" ColumnName="StartDate" />
- <ScalarProperty Name="EndDate" ColumnName="EndDate" />
- <ScalarProperty Name="CauseClassId" ColumnName="CauseClassId" />
- <ScalarProperty Name="Content" ColumnName="Content" />
- <ScalarProperty Name="ConfirmedDate" ColumnName="ConfirmedDate" />
- <ScalarProperty Name="ConfirmedUserId" ColumnName="ConfirmedUserId" />
- <ScalarProperty Name="IsConfirmed" ColumnName="IsConfirmed" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkResultCheckItem">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultCheckItem">
- <MappingFragment StoreEntitySet="FmsWorkResultCheckItem">
- <ScalarProperty Name="FileId2" ColumnName="FileId2" />
- <ScalarProperty Name="FileId1" ColumnName="FileId1" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
- <ScalarProperty Name="BoolResult" ColumnName="BoolResult" />
- <ScalarProperty Name="TextResult" ColumnName="TextResult" />
- <ScalarProperty Name="CheckDate" ColumnName="CheckDate" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkResultCheckItemMaterial">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultCheckItemMaterial">
- <MappingFragment StoreEntitySet="FmsWorkResultCheckItemMaterial">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
- <ScalarProperty Name="CheckItemId" ColumnName="CheckItemId" />
- <ScalarProperty Name="CheckItemMaterialId" ColumnName="CheckItemMaterialId" />
- <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
- <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
- <ScalarProperty Name="MaterialCode" ColumnName="MaterialCode" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkResultFile">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultFile">
- <MappingFragment StoreEntitySet="FmsWorkResultFile">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
- <ScalarProperty Name="FileId" ColumnName="FileId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkResultLaw">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultLaw">
- <MappingFragment StoreEntitySet="FmsWorkResultLaw">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
- <ScalarProperty Name="CertificationNo" ColumnName="CertificationNo" />
- <ScalarProperty Name="CheckCommission" ColumnName="CheckCommission" />
- <ScalarProperty Name="CheckResult" ColumnName="CheckResult" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkResultToFacility">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkResultToFacility">
- <MappingFragment StoreEntitySet="FmsWorkResultToFacility">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkScheduleToFacility">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkScheduleToFacility">
- <MappingFragment StoreEntitySet="FmsWorkScheduleToFacility">
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="sysdiagrams">
- <EntityTypeMapping TypeName="iBemsModel.sysdiagrams">
- <MappingFragment StoreEntitySet="sysdiagrams">
- <ScalarProperty Name="name" ColumnName="name" />
- <ScalarProperty Name="principal_id" ColumnName="principal_id" />
- <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
- <ScalarProperty Name="version" ColumnName="version" />
- <ScalarProperty Name="definition" ColumnName="definition" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsDailyCheckReport">
- <EntityTypeMapping TypeName="iBemsModel.FmsDailyCheckReport">
- <MappingFragment StoreEntitySet="FmsDailyCheckReport">
- <ScalarProperty Name="AddDate" ColumnName="AddDate" />
- <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
- <ScalarProperty Name="Contents" ColumnName="Contents" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="DailyCheckReportId" ColumnName="DailyCheckReportId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsFacilityOperationReport">
- <EntityTypeMapping TypeName="iBemsModel.FmsFacilityOperationReport">
- <MappingFragment StoreEntitySet="FmsFacilityOperationReport">
- <ScalarProperty Name="AddDate" ColumnName="AddDate" />
- <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
- <ScalarProperty Name="Contents" ColumnName="Contents" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="FacilityOperationReportId" ColumnName="FacilityOperationReportId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsBudgetDetail">
- <EntityTypeMapping TypeName="iBemsModel.FmsBudgetDetail">
- <MappingFragment StoreEntitySet="FmsBudgetDetail">
- <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
- <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
- <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="Abbreviation" ColumnName="Abbreviation" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Depth" ColumnName="Depth" />
- <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
- <ScalarProperty Name="BudgetSeq" ColumnName="BudgetSeq" />
- <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
- <ScalarProperty Name="Year" ColumnName="Year" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsBudgetDetailExecution">
- <EntityTypeMapping TypeName="iBemsModel.FmsBudgetDetailExecution">
- <MappingFragment StoreEntitySet="FmsBudgetDetailExecution">
- <ScalarProperty Name="RootBudgetClassId" ColumnName="RootBudgetClassId" />
- <ScalarProperty Name="YearlyExecution" ColumnName="YearlyExecution" />
- <ScalarProperty Name="MonthlyBudget" ColumnName="MonthlyBudget" />
- <ScalarProperty Name="YearlyBudget" ColumnName="YearlyBudget" />
- <ScalarProperty Name="Month" ColumnName="Month" />
- <ScalarProperty Name="MonthlyExecution" ColumnName="MonthlyExecution" />
- <ScalarProperty Name="ParentBudgetClassId" ColumnName="ParentBudgetClassId" />
- <ScalarProperty Name="BudgetClassId" ColumnName="BudgetClassId" />
- <ScalarProperty Name="Year" ColumnName="Year" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMonthlyReport">
- <EntityTypeMapping TypeName="iBemsModel.FmsMonthlyReport">
- <MappingFragment StoreEntitySet="FmsMonthlyReport">
- <ScalarProperty Name="AddDate" ColumnName="AddDate" />
- <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
- <ScalarProperty Name="Contents" ColumnName="Contents" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="MonthlyReportId" ColumnName="MonthlyReportId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsInvestmentCost">
- <EntityTypeMapping TypeName="iBemsModel.FmsInvestmentCost">
- <MappingFragment StoreEntitySet="FmsInvestmentCost">
- <ScalarProperty Name="InsvestmentCost" ColumnName="InsvestmentCost" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="InsvestmentCostId" ColumnName="InsvestmentCostId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmHolidayWeekend">
- <EntityTypeMapping TypeName="iBemsModel.CmHolidayWeekend">
- <MappingFragment StoreEntitySet="CmHolidayWeekend">
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="Sunday" ColumnName="Sunday" />
- <ScalarProperty Name="Saturday" ColumnName="Saturday" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterial">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterial">
- <MappingFragment StoreEntitySet="FmsMaterial">
- <ScalarProperty Name="FinalTotalStockAmount" ColumnName="FinalTotalStockAmount" />
- <ScalarProperty Name="FinalStockCount" ColumnName="FinalStockCount" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="IsDiscontinued" ColumnName="IsDiscontinued" />
- <ScalarProperty Name="Note" ColumnName="Note" />
- <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
- <ScalarProperty Name="FinalPrice" ColumnName="FinalPrice" />
- <ScalarProperty Name="Standard" ColumnName="Standard" />
- <ScalarProperty Name="Manufacturer" ColumnName="Manufacturer" />
- <ScalarProperty Name="ReasonableStockCount" ColumnName="ReasonableStockCount" />
- <ScalarProperty Name="DurableYears" ColumnName="DurableYears" />
- <ScalarProperty Name="Unit" ColumnName="Unit" />
- <ScalarProperty Name="Rfid" ColumnName="Rfid" />
- <ScalarProperty Name="TradeCompanyId" ColumnName="TradeCompanyId" />
- <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
- <ScalarProperty Name="MaterialTypeId" ColumnName="MaterialTypeId" />
- <ScalarProperty Name="LocationId" ColumnName="LocationId" />
- <ScalarProperty Name="ThirdClassId" ColumnName="ThirdClassId" />
- <ScalarProperty Name="SecondClassId" ColumnName="SecondClassId" />
- <ScalarProperty Name="FirstClassId" ColumnName="FirstClassId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="MaterialCode" ColumnName="MaterialCode" />
- <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsMaterialRelease">
- <EntityTypeMapping TypeName="iBemsModel.FmsMaterialRelease">
- <MappingFragment StoreEntitySet="FmsMaterialRelease">
- <ScalarProperty Name="StockCountByPoint" ColumnName="StockCountByPoint" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- <ScalarProperty Name="IsConfirmed" ColumnName="IsConfirmed" />
- <ScalarProperty Name="ConfirmedDate" ColumnName="ConfirmedDate" />
- <ScalarProperty Name="ConfirmedUserId" ColumnName="ConfirmedUserId" />
- <ScalarProperty Name="AdjustmentUserId" ColumnName="AdjustmentUserId" />
- <ScalarProperty Name="AdjustmentTypeId" ColumnName="AdjustmentTypeId" />
- <ScalarProperty Name="ReleaseTotalCost" ColumnName="ReleaseTotalCost" />
- <ScalarProperty Name="MaterialCount" ColumnName="MaterialCount" />
- <ScalarProperty Name="MaterialId" ColumnName="MaterialId" />
- <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
- <ScalarProperty Name="WorkRequestId" ColumnName="WorkRequestId" />
- <ScalarProperty Name="ReleaseTypeId" ColumnName="ReleaseTypeId" />
- <ScalarProperty Name="MaterialReleaseId" ColumnName="MaterialReleaseId" />
- <ScalarProperty Name="ReleaseDate" ColumnName="ReleaseDate" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmPatrolType">
- <EntityTypeMapping TypeName="iBemsModel.CmPatrolType">
- <MappingFragment StoreEntitySet="CmPatrolType">
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="PatrolTypeId" ColumnName="PatrolTypeId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmPatrolGroup">
- <EntityTypeMapping TypeName="iBemsModel.CmPatrolGroup">
- <MappingFragment StoreEntitySet="CmPatrolGroup">
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="PatrolGroupId" ColumnName="PatrolGroupId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmPatrolGroupUser">
- <EntityTypeMapping TypeName="iBemsModel.CmPatrolGroupUser">
- <MappingFragment StoreEntitySet="CmPatrolGroupUser">
- <ScalarProperty Name="UserId" ColumnName="UserId" />
- <ScalarProperty Name="PatrolGroupId" ColumnName="PatrolGroupId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmPatrolPos">
- <EntityTypeMapping TypeName="iBemsModel.CmPatrolPos">
- <MappingFragment StoreEntitySet="CmPatrolPos">
- <ScalarProperty Name="PosDesc" ColumnName="PosDesc" />
- <ScalarProperty Name="TagId" ColumnName="TagId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="PosId" ColumnName="PosId" />
- <ScalarProperty Name="FloorId" ColumnName="FloorId" />
- <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmPatrolCourse">
- <EntityTypeMapping TypeName="iBemsModel.CmPatrolCourse">
- <MappingFragment StoreEntitySet="CmPatrolCourse">
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="PatrolCourseId" ColumnName="PatrolCourseId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmPatrolCoursePos">
- <EntityTypeMapping TypeName="iBemsModel.CmPatrolCoursePos">
- <MappingFragment StoreEntitySet="CmPatrolCoursePos">
- <ScalarProperty Name="FloorId" ColumnName="FloorId" />
- <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
- <ScalarProperty Name="CourseOrder" ColumnName="CourseOrder" />
- <ScalarProperty Name="PosId" ColumnName="PosId" />
- <ScalarProperty Name="PatrolCourseId" ColumnName="PatrolCourseId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmPatrolPlan">
- <EntityTypeMapping TypeName="iBemsModel.CmPatrolPlan">
- <MappingFragment StoreEntitySet="CmPatrolPlan">
- <ScalarProperty Name="inDate" ColumnName="inDate" />
- <ScalarProperty Name="term" ColumnName="term" />
- <ScalarProperty Name="PlanDesc" ColumnName="PlanDesc" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="CourseId" ColumnName="CourseId" />
- <ScalarProperty Name="GroupId" ColumnName="GroupId" />
- <ScalarProperty Name="PatrolPlanId" ColumnName="PatrolPlanId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmPatrolHistoryPos">
- <EntityTypeMapping TypeName="iBemsModel.CmPatrolHistoryPos">
- <MappingFragment StoreEntitySet="CmPatrolHistoryPos">
- <ScalarProperty Name="mId" ColumnName="mId" />
- <ScalarProperty Name="resultType" ColumnName="resultType" />
- <ScalarProperty Name="term" ColumnName="term" />
- <ScalarProperty Name="PatrolTime" ColumnName="PatrolTime" />
- <ScalarProperty Name="PosId" ColumnName="PosId" />
- <ScalarProperty Name="PatrolHistoryId" ColumnName="PatrolHistoryId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsPeakInfo">
- <EntityTypeMapping TypeName="iBemsModel.BemsPeakInfo">
- <MappingFragment StoreEntitySet="BemsPeakInfo">
- <ScalarProperty Name="todayMinPeakValue" ColumnName="todayMinPeakValue" />
- <ScalarProperty Name="todayMaxPeakValue" ColumnName="todayMaxPeakValue" />
- <ScalarProperty Name="MinPeakValue" ColumnName="MinPeakValue" />
- <ScalarProperty Name="MinDateTime" ColumnName="MinDateTime" />
- <ScalarProperty Name="MaxPeakValue" ColumnName="MaxPeakValue" />
- <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsPeakHistory">
- <EntityTypeMapping TypeName="iBemsModel.BemsPeakHistory">
- <MappingFragment StoreEntitySet="BemsPeakHistory">
- <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
- <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmPatrolSchedule">
- <EntityTypeMapping TypeName="iBemsModel.CmPatrolSchedule">
- <MappingFragment StoreEntitySet="CmPatrolSchedule">
- <ScalarProperty Name="patrolDateTime" ColumnName="patrolDateTime" />
- <ScalarProperty Name="inDate" ColumnName="inDate" />
- <ScalarProperty Name="ScheduleDesc" ColumnName="ScheduleDesc" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="PlanId" ColumnName="PlanId" />
- <ScalarProperty Name="ScheduleId" ColumnName="ScheduleId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsNoticePriceBase">
- <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceBase">
- <MappingFragment StoreEntitySet="BemsNoticePriceBase">
- <ScalarProperty Name="SecondaryPrice" ColumnName="SecondaryPrice" />
- <ScalarProperty Name="PrimaryPrice" ColumnName="PrimaryPrice" />
- <ScalarProperty Name="ContractType" ColumnName="ContractType" />
- <ScalarProperty Name="ApplyDate" ColumnName="ApplyDate" />
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsNoticePriceContractType">
- <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceContractType">
- <MappingFragment StoreEntitySet="BemsNoticePriceContractType">
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="ContractType" ColumnName="ContractType" />
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsNoticePriceDetail">
- <EntityTypeMapping TypeName="iBemsModel.BemsNoticePriceDetail">
- <MappingFragment StoreEntitySet="BemsNoticePriceDetail">
- <ScalarProperty Name="P12" ColumnName="P12" />
- <ScalarProperty Name="P11" ColumnName="P11" />
- <ScalarProperty Name="P10" ColumnName="P10" />
- <ScalarProperty Name="P09" ColumnName="P09" />
- <ScalarProperty Name="P08" ColumnName="P08" />
- <ScalarProperty Name="P07" ColumnName="P07" />
- <ScalarProperty Name="P06" ColumnName="P06" />
- <ScalarProperty Name="P05" ColumnName="P05" />
- <ScalarProperty Name="P04" ColumnName="P04" />
- <ScalarProperty Name="P03" ColumnName="P03" />
- <ScalarProperty Name="P02" ColumnName="P02" />
- <ScalarProperty Name="P01" ColumnName="P01" />
- <ScalarProperty Name="DataId" ColumnName="DataId" />
- <ScalarProperty Name="ContractType" ColumnName="ContractType" />
- <ScalarProperty Name="ApplyDate" ColumnName="ApplyDate" />
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsPeakFacility">
- <EntityTypeMapping TypeName="iBemsModel.BemsPeakFacility">
- <MappingFragment StoreEntitySet="BemsPeakFacility">
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmSite">
- <EntityTypeMapping TypeName="iBemsModel.CmSite">
- <MappingFragment StoreEntitySet="CmSite">
- <ScalarProperty Name="CDD" ColumnName="CDD" />
- <ScalarProperty Name="HDD" ColumnName="HDD" />
- <ScalarProperty Name="MainUseIndex" ColumnName="MainUseIndex" />
- <ScalarProperty Name="Standard" ColumnName="Standard" />
- <ScalarProperty Name="CompletionDate" ColumnName="CompletionDate" />
- <ScalarProperty Name="MainUse" ColumnName="MainUse" />
- <ScalarProperty Name="BuildingCoverageRatio" ColumnName="BuildingCoverageRatio" />
- <ScalarProperty Name="FloorAreaRatio" ColumnName="FloorAreaRatio" />
- <ScalarProperty Name="BuildingArea" ColumnName="BuildingArea" />
- <ScalarProperty Name="GrossArea" ColumnName="GrossArea" />
- <ScalarProperty Name="BuildingSize" ColumnName="BuildingSize" />
- <ScalarProperty Name="controlSchedule" ColumnName="controlSchedule" />
- <ScalarProperty Name="lng" ColumnName="lng" />
- <ScalarProperty Name="lat" ColumnName="lat" />
- <ScalarProperty Name="MaxPeak" ColumnName="MaxPeak" />
- <ScalarProperty Name="ScheduleCheckHour" ColumnName="ScheduleCheckHour" />
- <ScalarProperty Name="IsControlSchedule" ColumnName="IsControlSchedule" />
- <ScalarProperty Name="UpdatedUserId" ColumnName="UpdatedUserId" />
- <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
- <ScalarProperty Name="InsertedUserId" ColumnName="InsertedUserId" />
- <ScalarProperty Name="InsertedDate" ColumnName="InsertedDate" />
- <ScalarProperty Name="SortOrderNo" ColumnName="SortOrderNo" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- <ScalarProperty Name="URL" ColumnName="URL" />
- <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
- <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
- <ScalarProperty Name="Address1" ColumnName="Address1" />
- <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
- <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsReport">
- <EntityTypeMapping TypeName="iBemsModel.FmsReport">
- <MappingFragment StoreEntitySet="FmsReport">
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="ConfirmUserId2" ColumnName="ConfirmUserId2" />
- <ScalarProperty Name="ConfirmUserId1" ColumnName="ConfirmUserId1" />
- <ScalarProperty Name="MakeDate" ColumnName="MakeDate" />
- <ScalarProperty Name="FileId" ColumnName="FileId" />
- <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
- <ScalarProperty Name="Contents" ColumnName="Contents" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="RId" ColumnName="RId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmServiceEnergyCalcMonth">
- <EntityTypeMapping TypeName="iBemsModel.CmServiceEnergyCalcMonth">
- <MappingFragment StoreEntitySet="CmServiceEnergyCalcMonth">
- <ScalarProperty Name="Value" ColumnName="Value" />
- <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
- <ScalarProperty Name="calDate" ColumnName="calDate" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmServiceEnergyCalcDay">
- <EntityTypeMapping TypeName="iBemsModel.CmServiceEnergyCalcDay">
- <MappingFragment StoreEntitySet="CmServiceEnergyCalcDay">
- <ScalarProperty Name="Value" ColumnName="Value" />
- <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
- <ScalarProperty Name="calDate" ColumnName="calDate" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmPatrolHistory">
- <EntityTypeMapping TypeName="iBemsModel.CmPatrolHistory">
- <MappingFragment StoreEntitySet="CmPatrolHistory">
- <ScalarProperty Name="resultAbnormalCnt" ColumnName="resultAbnormalCnt" />
- <ScalarProperty Name="resultNormalCnt" ColumnName="resultNormalCnt" />
- <ScalarProperty Name="resultPosCnt" ColumnName="resultPosCnt" />
- <ScalarProperty Name="resultDesc" ColumnName="resultDesc" />
- <ScalarProperty Name="resultTypeId" ColumnName="resultTypeId" />
- <ScalarProperty Name="endDate" ColumnName="endDate" />
- <ScalarProperty Name="startDate" ColumnName="startDate" />
- <ScalarProperty Name="ScheduleId" ColumnName="ScheduleId" />
- <ScalarProperty Name="PatrolHistoryId" ColumnName="PatrolHistoryId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsReportFormat">
- <EntityTypeMapping TypeName="iBemsModel.BemsReportFormat">
- <MappingFragment StoreEntitySet="BemsReportFormat">
- <ScalarProperty Name="parts" ColumnName="parts" />
- <ScalarProperty Name="Content" ColumnName="Content" />
- <ScalarProperty Name="FormatName" ColumnName="FormatName" />
- <ScalarProperty Name="ReportFormatId" ColumnName="ReportFormatId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmMenu">
- <EntityTypeMapping TypeName="iBemsModel.CmMenu">
- <MappingFragment StoreEntitySet="CmMenu">
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="MenuPath" ColumnName="MenuPath" />
- <ScalarProperty Name="Used" ColumnName="Used" />
- <ScalarProperty Name="MenuId" ColumnName="MenuId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsPeopleIncrease">
- <EntityTypeMapping TypeName="iBemsModel.BemsPeopleIncrease">
- <MappingFragment StoreEntitySet="BemsPeopleIncrease">
- <ScalarProperty Name="m12" ColumnName="m12" />
- <ScalarProperty Name="m11" ColumnName="m11" />
- <ScalarProperty Name="m10" ColumnName="m10" />
- <ScalarProperty Name="m9" ColumnName="m9" />
- <ScalarProperty Name="m8" ColumnName="m8" />
- <ScalarProperty Name="m7" ColumnName="m7" />
- <ScalarProperty Name="m6" ColumnName="m6" />
- <ScalarProperty Name="m5" ColumnName="m5" />
- <ScalarProperty Name="m4" ColumnName="m4" />
- <ScalarProperty Name="m3" ColumnName="m3" />
- <ScalarProperty Name="m2" ColumnName="m2" />
- <ScalarProperty Name="m1" ColumnName="m1" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="Date" ColumnName="Date" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsPriceCode">
- <EntityTypeMapping TypeName="iBemsModel.BemsPriceCode">
- <MappingFragment StoreEntitySet="BemsPriceCode">
- <ScalarProperty Name="Unit" ColumnName="Unit" />
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- <ScalarProperty Name="PriceCodeDesc" ColumnName="PriceCodeDesc" />
- <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsPriceFormula">
- <EntityTypeMapping TypeName="iBemsModel.BemsPriceFormula">
- <MappingFragment StoreEntitySet="BemsPriceFormula">
- <ScalarProperty Name="UseYN" ColumnName="UseYN" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsPriceMeta">
- <EntityTypeMapping TypeName="iBemsModel.BemsPriceMeta">
- <MappingFragment StoreEntitySet="BemsPriceMeta">
- <ScalarProperty Name="C12_23" ColumnName="12_23" />
- <ScalarProperty Name="C12_22" ColumnName="12_22" />
- <ScalarProperty Name="C12_21" ColumnName="12_21" />
- <ScalarProperty Name="C12_20" ColumnName="12_20" />
- <ScalarProperty Name="C12_19" ColumnName="12_19" />
- <ScalarProperty Name="C12_18" ColumnName="12_18" />
- <ScalarProperty Name="C12_17" ColumnName="12_17" />
- <ScalarProperty Name="C12_16" ColumnName="12_16" />
- <ScalarProperty Name="C12_15" ColumnName="12_15" />
- <ScalarProperty Name="C12_14" ColumnName="12_14" />
- <ScalarProperty Name="C12_13" ColumnName="12_13" />
- <ScalarProperty Name="C12_12" ColumnName="12_12" />
- <ScalarProperty Name="C12_11" ColumnName="12_11" />
- <ScalarProperty Name="C12_10" ColumnName="12_10" />
- <ScalarProperty Name="C12_09" ColumnName="12_09" />
- <ScalarProperty Name="C12_08" ColumnName="12_08" />
- <ScalarProperty Name="C12_07" ColumnName="12_07" />
- <ScalarProperty Name="C12_06" ColumnName="12_06" />
- <ScalarProperty Name="C12_05" ColumnName="12_05" />
- <ScalarProperty Name="C12_04" ColumnName="12_04" />
- <ScalarProperty Name="C12_03" ColumnName="12_03" />
- <ScalarProperty Name="C12_02" ColumnName="12_02" />
- <ScalarProperty Name="C12_01" ColumnName="12_01" />
- <ScalarProperty Name="C12_00" ColumnName="12_00" />
- <ScalarProperty Name="C11_23" ColumnName="11_23" />
- <ScalarProperty Name="C11_22" ColumnName="11_22" />
- <ScalarProperty Name="C11_21" ColumnName="11_21" />
- <ScalarProperty Name="C11_20" ColumnName="11_20" />
- <ScalarProperty Name="C11_19" ColumnName="11_19" />
- <ScalarProperty Name="C11_18" ColumnName="11_18" />
- <ScalarProperty Name="C11_17" ColumnName="11_17" />
- <ScalarProperty Name="C11_16" ColumnName="11_16" />
- <ScalarProperty Name="C11_15" ColumnName="11_15" />
- <ScalarProperty Name="C11_14" ColumnName="11_14" />
- <ScalarProperty Name="C11_13" ColumnName="11_13" />
- <ScalarProperty Name="C11_12" ColumnName="11_12" />
- <ScalarProperty Name="C11_11" ColumnName="11_11" />
- <ScalarProperty Name="C11_10" ColumnName="11_10" />
- <ScalarProperty Name="C11_09" ColumnName="11_09" />
- <ScalarProperty Name="C11_08" ColumnName="11_08" />
- <ScalarProperty Name="C11_07" ColumnName="11_07" />
- <ScalarProperty Name="C11_06" ColumnName="11_06" />
- <ScalarProperty Name="C11_05" ColumnName="11_05" />
- <ScalarProperty Name="C11_04" ColumnName="11_04" />
- <ScalarProperty Name="C11_03" ColumnName="11_03" />
- <ScalarProperty Name="C11_02" ColumnName="11_02" />
- <ScalarProperty Name="C11_01" ColumnName="11_01" />
- <ScalarProperty Name="C11_00" ColumnName="11_00" />
- <ScalarProperty Name="C10_23" ColumnName="10_23" />
- <ScalarProperty Name="C10_22" ColumnName="10_22" />
- <ScalarProperty Name="C10_21" ColumnName="10_21" />
- <ScalarProperty Name="C10_20" ColumnName="10_20" />
- <ScalarProperty Name="C10_19" ColumnName="10_19" />
- <ScalarProperty Name="C10_18" ColumnName="10_18" />
- <ScalarProperty Name="C10_17" ColumnName="10_17" />
- <ScalarProperty Name="C10_16" ColumnName="10_16" />
- <ScalarProperty Name="C10_15" ColumnName="10_15" />
- <ScalarProperty Name="C10_14" ColumnName="10_14" />
- <ScalarProperty Name="C10_13" ColumnName="10_13" />
- <ScalarProperty Name="C10_12" ColumnName="10_12" />
- <ScalarProperty Name="C10_11" ColumnName="10_11" />
- <ScalarProperty Name="C10_10" ColumnName="10_10" />
- <ScalarProperty Name="C10_09" ColumnName="10_09" />
- <ScalarProperty Name="C10_08" ColumnName="10_08" />
- <ScalarProperty Name="C10_07" ColumnName="10_07" />
- <ScalarProperty Name="C10_06" ColumnName="10_06" />
- <ScalarProperty Name="C10_05" ColumnName="10_05" />
- <ScalarProperty Name="C10_04" ColumnName="10_04" />
- <ScalarProperty Name="C10_03" ColumnName="10_03" />
- <ScalarProperty Name="C10_02" ColumnName="10_02" />
- <ScalarProperty Name="C10_01" ColumnName="10_01" />
- <ScalarProperty Name="C10_00" ColumnName="10_00" />
- <ScalarProperty Name="C09_23" ColumnName="09_23" />
- <ScalarProperty Name="C09_22" ColumnName="09_22" />
- <ScalarProperty Name="C09_21" ColumnName="09_21" />
- <ScalarProperty Name="C09_20" ColumnName="09_20" />
- <ScalarProperty Name="C09_19" ColumnName="09_19" />
- <ScalarProperty Name="C09_18" ColumnName="09_18" />
- <ScalarProperty Name="C09_17" ColumnName="09_17" />
- <ScalarProperty Name="C09_16" ColumnName="09_16" />
- <ScalarProperty Name="C09_15" ColumnName="09_15" />
- <ScalarProperty Name="C09_14" ColumnName="09_14" />
- <ScalarProperty Name="C09_13" ColumnName="09_13" />
- <ScalarProperty Name="C09_12" ColumnName="09_12" />
- <ScalarProperty Name="C09_11" ColumnName="09_11" />
- <ScalarProperty Name="C09_10" ColumnName="09_10" />
- <ScalarProperty Name="C09_09" ColumnName="09_09" />
- <ScalarProperty Name="C09_08" ColumnName="09_08" />
- <ScalarProperty Name="C09_07" ColumnName="09_07" />
- <ScalarProperty Name="C09_06" ColumnName="09_06" />
- <ScalarProperty Name="C09_05" ColumnName="09_05" />
- <ScalarProperty Name="C09_04" ColumnName="09_04" />
- <ScalarProperty Name="C09_03" ColumnName="09_03" />
- <ScalarProperty Name="C09_02" ColumnName="09_02" />
- <ScalarProperty Name="C09_01" ColumnName="09_01" />
- <ScalarProperty Name="C09_00" ColumnName="09_00" />
- <ScalarProperty Name="C08_23" ColumnName="08_23" />
- <ScalarProperty Name="C08_22" ColumnName="08_22" />
- <ScalarProperty Name="C08_21" ColumnName="08_21" />
- <ScalarProperty Name="C08_20" ColumnName="08_20" />
- <ScalarProperty Name="C08_19" ColumnName="08_19" />
- <ScalarProperty Name="C08_18" ColumnName="08_18" />
- <ScalarProperty Name="C08_17" ColumnName="08_17" />
- <ScalarProperty Name="C08_16" ColumnName="08_16" />
- <ScalarProperty Name="C08_15" ColumnName="08_15" />
- <ScalarProperty Name="C08_14" ColumnName="08_14" />
- <ScalarProperty Name="C08_13" ColumnName="08_13" />
- <ScalarProperty Name="C08_12" ColumnName="08_12" />
- <ScalarProperty Name="C08_11" ColumnName="08_11" />
- <ScalarProperty Name="C08_10" ColumnName="08_10" />
- <ScalarProperty Name="C08_09" ColumnName="08_09" />
- <ScalarProperty Name="C08_08" ColumnName="08_08" />
- <ScalarProperty Name="C08_07" ColumnName="08_07" />
- <ScalarProperty Name="C08_06" ColumnName="08_06" />
- <ScalarProperty Name="C08_05" ColumnName="08_05" />
- <ScalarProperty Name="C08_04" ColumnName="08_04" />
- <ScalarProperty Name="C08_03" ColumnName="08_03" />
- <ScalarProperty Name="C08_02" ColumnName="08_02" />
- <ScalarProperty Name="C08_01" ColumnName="08_01" />
- <ScalarProperty Name="C08_00" ColumnName="08_00" />
- <ScalarProperty Name="C07_23" ColumnName="07_23" />
- <ScalarProperty Name="C07_22" ColumnName="07_22" />
- <ScalarProperty Name="C07_21" ColumnName="07_21" />
- <ScalarProperty Name="C07_20" ColumnName="07_20" />
- <ScalarProperty Name="C07_19" ColumnName="07_19" />
- <ScalarProperty Name="C07_18" ColumnName="07_18" />
- <ScalarProperty Name="C07_17" ColumnName="07_17" />
- <ScalarProperty Name="C07_16" ColumnName="07_16" />
- <ScalarProperty Name="C07_15" ColumnName="07_15" />
- <ScalarProperty Name="C07_14" ColumnName="07_14" />
- <ScalarProperty Name="C07_13" ColumnName="07_13" />
- <ScalarProperty Name="C07_12" ColumnName="07_12" />
- <ScalarProperty Name="C07_11" ColumnName="07_11" />
- <ScalarProperty Name="C07_10" ColumnName="07_10" />
- <ScalarProperty Name="C07_09" ColumnName="07_09" />
- <ScalarProperty Name="C07_08" ColumnName="07_08" />
- <ScalarProperty Name="C07_07" ColumnName="07_07" />
- <ScalarProperty Name="C07_06" ColumnName="07_06" />
- <ScalarProperty Name="C07_05" ColumnName="07_05" />
- <ScalarProperty Name="C07_04" ColumnName="07_04" />
- <ScalarProperty Name="C07_03" ColumnName="07_03" />
- <ScalarProperty Name="C07_02" ColumnName="07_02" />
- <ScalarProperty Name="C07_01" ColumnName="07_01" />
- <ScalarProperty Name="C07_00" ColumnName="07_00" />
- <ScalarProperty Name="C06_23" ColumnName="06_23" />
- <ScalarProperty Name="C06_22" ColumnName="06_22" />
- <ScalarProperty Name="C06_21" ColumnName="06_21" />
- <ScalarProperty Name="C06_20" ColumnName="06_20" />
- <ScalarProperty Name="C06_19" ColumnName="06_19" />
- <ScalarProperty Name="C06_18" ColumnName="06_18" />
- <ScalarProperty Name="C06_17" ColumnName="06_17" />
- <ScalarProperty Name="C06_16" ColumnName="06_16" />
- <ScalarProperty Name="C06_15" ColumnName="06_15" />
- <ScalarProperty Name="C06_14" ColumnName="06_14" />
- <ScalarProperty Name="C06_13" ColumnName="06_13" />
- <ScalarProperty Name="C06_12" ColumnName="06_12" />
- <ScalarProperty Name="C06_11" ColumnName="06_11" />
- <ScalarProperty Name="C06_10" ColumnName="06_10" />
- <ScalarProperty Name="C06_09" ColumnName="06_09" />
- <ScalarProperty Name="C06_08" ColumnName="06_08" />
- <ScalarProperty Name="C06_07" ColumnName="06_07" />
- <ScalarProperty Name="C06_06" ColumnName="06_06" />
- <ScalarProperty Name="C06_05" ColumnName="06_05" />
- <ScalarProperty Name="C06_04" ColumnName="06_04" />
- <ScalarProperty Name="C06_03" ColumnName="06_03" />
- <ScalarProperty Name="C06_02" ColumnName="06_02" />
- <ScalarProperty Name="C06_01" ColumnName="06_01" />
- <ScalarProperty Name="C06_00" ColumnName="06_00" />
- <ScalarProperty Name="C05_23" ColumnName="05_23" />
- <ScalarProperty Name="C05_22" ColumnName="05_22" />
- <ScalarProperty Name="C05_21" ColumnName="05_21" />
- <ScalarProperty Name="C05_20" ColumnName="05_20" />
- <ScalarProperty Name="C05_19" ColumnName="05_19" />
- <ScalarProperty Name="C05_18" ColumnName="05_18" />
- <ScalarProperty Name="C05_17" ColumnName="05_17" />
- <ScalarProperty Name="C05_16" ColumnName="05_16" />
- <ScalarProperty Name="C05_15" ColumnName="05_15" />
- <ScalarProperty Name="C05_14" ColumnName="05_14" />
- <ScalarProperty Name="C05_13" ColumnName="05_13" />
- <ScalarProperty Name="C05_12" ColumnName="05_12" />
- <ScalarProperty Name="C05_11" ColumnName="05_11" />
- <ScalarProperty Name="C05_10" ColumnName="05_10" />
- <ScalarProperty Name="C05_09" ColumnName="05_09" />
- <ScalarProperty Name="C05_08" ColumnName="05_08" />
- <ScalarProperty Name="C05_07" ColumnName="05_07" />
- <ScalarProperty Name="C05_06" ColumnName="05_06" />
- <ScalarProperty Name="C05_05" ColumnName="05_05" />
- <ScalarProperty Name="C05_04" ColumnName="05_04" />
- <ScalarProperty Name="C05_03" ColumnName="05_03" />
- <ScalarProperty Name="C05_02" ColumnName="05_02" />
- <ScalarProperty Name="C05_01" ColumnName="05_01" />
- <ScalarProperty Name="C05_00" ColumnName="05_00" />
- <ScalarProperty Name="C04_23" ColumnName="04_23" />
- <ScalarProperty Name="C04_22" ColumnName="04_22" />
- <ScalarProperty Name="C04_21" ColumnName="04_21" />
- <ScalarProperty Name="C04_20" ColumnName="04_20" />
- <ScalarProperty Name="C04_19" ColumnName="04_19" />
- <ScalarProperty Name="C04_18" ColumnName="04_18" />
- <ScalarProperty Name="C04_17" ColumnName="04_17" />
- <ScalarProperty Name="C04_16" ColumnName="04_16" />
- <ScalarProperty Name="C04_15" ColumnName="04_15" />
- <ScalarProperty Name="C04_14" ColumnName="04_14" />
- <ScalarProperty Name="C04_13" ColumnName="04_13" />
- <ScalarProperty Name="C04_12" ColumnName="04_12" />
- <ScalarProperty Name="C04_11" ColumnName="04_11" />
- <ScalarProperty Name="C04_10" ColumnName="04_10" />
- <ScalarProperty Name="C04_09" ColumnName="04_09" />
- <ScalarProperty Name="C04_08" ColumnName="04_08" />
- <ScalarProperty Name="C04_07" ColumnName="04_07" />
- <ScalarProperty Name="C04_06" ColumnName="04_06" />
- <ScalarProperty Name="C04_05" ColumnName="04_05" />
- <ScalarProperty Name="C04_04" ColumnName="04_04" />
- <ScalarProperty Name="C04_03" ColumnName="04_03" />
- <ScalarProperty Name="C04_02" ColumnName="04_02" />
- <ScalarProperty Name="C04_01" ColumnName="04_01" />
- <ScalarProperty Name="C04_00" ColumnName="04_00" />
- <ScalarProperty Name="C03_23" ColumnName="03_23" />
- <ScalarProperty Name="C03_22" ColumnName="03_22" />
- <ScalarProperty Name="C03_21" ColumnName="03_21" />
- <ScalarProperty Name="C03_20" ColumnName="03_20" />
- <ScalarProperty Name="C03_19" ColumnName="03_19" />
- <ScalarProperty Name="C03_18" ColumnName="03_18" />
- <ScalarProperty Name="C03_17" ColumnName="03_17" />
- <ScalarProperty Name="C03_16" ColumnName="03_16" />
- <ScalarProperty Name="C03_15" ColumnName="03_15" />
- <ScalarProperty Name="C03_14" ColumnName="03_14" />
- <ScalarProperty Name="C03_13" ColumnName="03_13" />
- <ScalarProperty Name="C03_12" ColumnName="03_12" />
- <ScalarProperty Name="C03_11" ColumnName="03_11" />
- <ScalarProperty Name="C03_10" ColumnName="03_10" />
- <ScalarProperty Name="C03_09" ColumnName="03_09" />
- <ScalarProperty Name="C03_08" ColumnName="03_08" />
- <ScalarProperty Name="C03_07" ColumnName="03_07" />
- <ScalarProperty Name="C03_06" ColumnName="03_06" />
- <ScalarProperty Name="C03_05" ColumnName="03_05" />
- <ScalarProperty Name="C03_04" ColumnName="03_04" />
- <ScalarProperty Name="C03_03" ColumnName="03_03" />
- <ScalarProperty Name="C03_02" ColumnName="03_02" />
- <ScalarProperty Name="C03_01" ColumnName="03_01" />
- <ScalarProperty Name="C03_00" ColumnName="03_00" />
- <ScalarProperty Name="C02_23" ColumnName="02_23" />
- <ScalarProperty Name="C02_22" ColumnName="02_22" />
- <ScalarProperty Name="C02_21" ColumnName="02_21" />
- <ScalarProperty Name="C02_20" ColumnName="02_20" />
- <ScalarProperty Name="C02_19" ColumnName="02_19" />
- <ScalarProperty Name="C02_18" ColumnName="02_18" />
- <ScalarProperty Name="C02_17" ColumnName="02_17" />
- <ScalarProperty Name="C02_16" ColumnName="02_16" />
- <ScalarProperty Name="C02_15" ColumnName="02_15" />
- <ScalarProperty Name="C02_14" ColumnName="02_14" />
- <ScalarProperty Name="C02_13" ColumnName="02_13" />
- <ScalarProperty Name="C02_12" ColumnName="02_12" />
- <ScalarProperty Name="C02_11" ColumnName="02_11" />
- <ScalarProperty Name="C02_10" ColumnName="02_10" />
- <ScalarProperty Name="C02_09" ColumnName="02_09" />
- <ScalarProperty Name="C02_08" ColumnName="02_08" />
- <ScalarProperty Name="C02_07" ColumnName="02_07" />
- <ScalarProperty Name="C02_06" ColumnName="02_06" />
- <ScalarProperty Name="C02_05" ColumnName="02_05" />
- <ScalarProperty Name="C02_04" ColumnName="02_04" />
- <ScalarProperty Name="C02_03" ColumnName="02_03" />
- <ScalarProperty Name="C02_02" ColumnName="02_02" />
- <ScalarProperty Name="C02_01" ColumnName="02_01" />
- <ScalarProperty Name="C02_00" ColumnName="02_00" />
- <ScalarProperty Name="C01_23" ColumnName="01_23" />
- <ScalarProperty Name="C01_22" ColumnName="01_22" />
- <ScalarProperty Name="C01_21" ColumnName="01_21" />
- <ScalarProperty Name="C01_20" ColumnName="01_20" />
- <ScalarProperty Name="C01_19" ColumnName="01_19" />
- <ScalarProperty Name="C01_18" ColumnName="01_18" />
- <ScalarProperty Name="C01_17" ColumnName="01_17" />
- <ScalarProperty Name="C01_16" ColumnName="01_16" />
- <ScalarProperty Name="C01_15" ColumnName="01_15" />
- <ScalarProperty Name="C01_14" ColumnName="01_14" />
- <ScalarProperty Name="C01_13" ColumnName="01_13" />
- <ScalarProperty Name="C01_12" ColumnName="01_12" />
- <ScalarProperty Name="C01_11" ColumnName="01_11" />
- <ScalarProperty Name="C01_10" ColumnName="01_10" />
- <ScalarProperty Name="C01_09" ColumnName="01_09" />
- <ScalarProperty Name="C01_08" ColumnName="01_08" />
- <ScalarProperty Name="C01_07" ColumnName="01_07" />
- <ScalarProperty Name="C01_06" ColumnName="01_06" />
- <ScalarProperty Name="C01_05" ColumnName="01_05" />
- <ScalarProperty Name="C01_04" ColumnName="01_04" />
- <ScalarProperty Name="C01_03" ColumnName="01_03" />
- <ScalarProperty Name="C01_02" ColumnName="01_02" />
- <ScalarProperty Name="C01_01" ColumnName="01_01" />
- <ScalarProperty Name="C01_00" ColumnName="01_00" />
- <ScalarProperty Name="BasePrice" ColumnName="BasePrice" />
- <ScalarProperty Name="PublishDate" ColumnName="PublishDate" />
- <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsPriceType">
- <EntityTypeMapping TypeName="iBemsModel.BemsPriceType">
- <MappingFragment StoreEntitySet="BemsPriceType">
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- <ScalarProperty Name="PriceTypeIdDesc" ColumnName="PriceTypeIdDesc" />
- <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsRentalRate">
- <EntityTypeMapping TypeName="iBemsModel.BemsRentalRate">
- <MappingFragment StoreEntitySet="BemsRentalRate">
- <ScalarProperty Name="m12" ColumnName="m12" />
- <ScalarProperty Name="m11" ColumnName="m11" />
- <ScalarProperty Name="m10" ColumnName="m10" />
- <ScalarProperty Name="m9" ColumnName="m9" />
- <ScalarProperty Name="m8" ColumnName="m8" />
- <ScalarProperty Name="m7" ColumnName="m7" />
- <ScalarProperty Name="m6" ColumnName="m6" />
- <ScalarProperty Name="m5" ColumnName="m5" />
- <ScalarProperty Name="m4" ColumnName="m4" />
- <ScalarProperty Name="m3" ColumnName="m3" />
- <ScalarProperty Name="m2" ColumnName="m2" />
- <ScalarProperty Name="m1" ColumnName="m1" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- <ScalarProperty Name="Date" ColumnName="Date" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsSitePrice">
- <EntityTypeMapping TypeName="iBemsModel.BemsSitePrice">
- <MappingFragment StoreEntitySet="BemsSitePrice">
- <ScalarProperty Name="UseYN" ColumnName="UseYN" />
- <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
- <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- <ScalarProperty Name="SiteID" ColumnName="SiteID" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsSitePriceHistory">
- <EntityTypeMapping TypeName="iBemsModel.BemsSitePriceHistory">
- <MappingFragment StoreEntitySet="BemsSitePriceHistory">
- <ScalarProperty Name="PayCharge" ColumnName="PayCharge" />
- <ScalarProperty Name="EndDate" ColumnName="EndDate" />
- <ScalarProperty Name="StartDate" ColumnName="StartDate" />
- <ScalarProperty Name="PayDate" ColumnName="PayDate" />
- <ScalarProperty Name="PriceValue" ColumnName="PriceValue" />
- <ScalarProperty Name="PriceCode" ColumnName="PriceCode" />
- <ScalarProperty Name="PriceTypeId" ColumnName="PriceTypeId" />
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsChartInfo">
- <EntityTypeMapping TypeName="iBemsModel.BemsChartInfo">
- <MappingFragment StoreEntitySet="BemsChartInfo">
- <ScalarProperty Name="RCTLineValue" ColumnName="RCTLineValue" />
- <ScalarProperty Name="RCTLineTitle" ColumnName="RCTLineTitle" />
- <ScalarProperty Name="UseRCTLine" ColumnName="UseRCTLine" />
- <ScalarProperty Name="LCTLineValue" ColumnName="LCTLineValue" />
- <ScalarProperty Name="LCTLineTitle" ColumnName="LCTLineTitle" />
- <ScalarProperty Name="UseLCTLine" ColumnName="UseLCTLine" />
- <ScalarProperty Name="UseChart" ColumnName="UseChart" />
- <ScalarProperty Name="Palette" ColumnName="Palette" />
- <ScalarProperty Name="XAxMax" ColumnName="XAxMax" />
- <ScalarProperty Name="XAxMin" ColumnName="XAxMin" />
- <ScalarProperty Name="RAxMax" ColumnName="RAxMax" />
- <ScalarProperty Name="RAxMin" ColumnName="RAxMin" />
- <ScalarProperty Name="LAxMax" ColumnName="LAxMax" />
- <ScalarProperty Name="LAxMin" ColumnName="LAxMin" />
- <ScalarProperty Name="UseXAxMinMax" ColumnName="UseXAxMinMax" />
- <ScalarProperty Name="UseRAxMinMax" ColumnName="UseRAxMinMax" />
- <ScalarProperty Name="UseLAxMinMax" ColumnName="UseLAxMinMax" />
- <ScalarProperty Name="UseX" ColumnName="UseX" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="RSType4" ColumnName="RSType4" />
- <ScalarProperty Name="RSName4" ColumnName="RSName4" />
- <ScalarProperty Name="RSFmId4" ColumnName="RSFmId4" />
- <ScalarProperty Name="RSType3" ColumnName="RSType3" />
- <ScalarProperty Name="RSName3" ColumnName="RSName3" />
- <ScalarProperty Name="RSFmId3" ColumnName="RSFmId3" />
- <ScalarProperty Name="RSType2" ColumnName="RSType2" />
- <ScalarProperty Name="RSName2" ColumnName="RSName2" />
- <ScalarProperty Name="RSFmId2" ColumnName="RSFmId2" />
- <ScalarProperty Name="RSType1" ColumnName="RSType1" />
- <ScalarProperty Name="RSName1" ColumnName="RSName1" />
- <ScalarProperty Name="RSFmId1" ColumnName="RSFmId1" />
- <ScalarProperty Name="LSType4" ColumnName="LSType4" />
- <ScalarProperty Name="LSName4" ColumnName="LSName4" />
- <ScalarProperty Name="LSFmId4" ColumnName="LSFmId4" />
- <ScalarProperty Name="LSType3" ColumnName="LSType3" />
- <ScalarProperty Name="LSName3" ColumnName="LSName3" />
- <ScalarProperty Name="LSFmId3" ColumnName="LSFmId3" />
- <ScalarProperty Name="LSType2" ColumnName="LSType2" />
- <ScalarProperty Name="LSName2" ColumnName="LSName2" />
- <ScalarProperty Name="LSFmId2" ColumnName="LSFmId2" />
- <ScalarProperty Name="LSType1" ColumnName="LSType1" />
- <ScalarProperty Name="LSName1" ColumnName="LSName1" />
- <ScalarProperty Name="LSFmId1" ColumnName="LSFmId1" />
- <ScalarProperty Name="XSType" ColumnName="XSType" />
- <ScalarProperty Name="XSFmId" ColumnName="XSFmId" />
- <ScalarProperty Name="XAxTitle" ColumnName="XAxTitle" />
- <ScalarProperty Name="RAxTitle" ColumnName="RAxTitle" />
- <ScalarProperty Name="LAxTitle" ColumnName="LAxTitle" />
- <ScalarProperty Name="ChartId" ColumnName="ChartId" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsWorkSchedule">
- <EntityTypeMapping TypeName="iBemsModel.FmsWorkSchedule">
- <MappingFragment StoreEntitySet="FmsWorkSchedule">
- <ScalarProperty Name="Content" ColumnName="Content" />
- <ScalarProperty Name="IsAutoOrder" ColumnName="IsAutoOrder" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="UpdateUserId" ColumnName="UpdateUserId" />
- <ScalarProperty Name="WorkDueDate" ColumnName="WorkDueDate" />
- <ScalarProperty Name="HolidayWorkTypeId" ColumnName="HolidayWorkTypeId" />
- <ScalarProperty Name="CycleUnitId" ColumnName="CycleUnitId" />
- <ScalarProperty Name="CycleSize" ColumnName="CycleSize" />
- <ScalarProperty Name="InspectionAgencyId" ColumnName="InspectionAgencyId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="WorkTypeId" ColumnName="WorkTypeId" />
- <ScalarProperty Name="WorkScheduleId" ColumnName="WorkScheduleId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsMonitoringPointConfig">
- <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointConfig">
- <MappingFragment StoreEntitySet="BemsMonitoringPointConfig">
- <ScalarProperty Name="IsConverted" ColumnName="IsConverted" />
- <ScalarProperty Name="ControlPointName" ColumnName="ControlPointName" />
- <ScalarProperty Name="SaveMode" ColumnName="SaveMode" />
- <ScalarProperty Name="IsSampled" ColumnName="IsSampled" />
- <ScalarProperty Name="IsAccumulated" ColumnName="IsAccumulated" />
- <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsAlarmSetting">
- <EntityTypeMapping TypeName="iBemsModel.BemsAlarmSetting">
- <MappingFragment StoreEntitySet="BemsAlarmSetting">
- <ScalarProperty Name="Content" ColumnName="Content" />
- <ScalarProperty Name="AlarmGroupName" ColumnName="AlarmGroupName" />
- <ScalarProperty Name="UseEmail" ColumnName="UseEmail" />
- <ScalarProperty Name="UseSMS" ColumnName="UseSMS" />
- <ScalarProperty Name="UseAlarm" ColumnName="UseAlarm" />
- <ScalarProperty Name="LowerLimit" ColumnName="LowerLimit" />
- <ScalarProperty Name="UseLowerLimit" ColumnName="UseLowerLimit" />
- <ScalarProperty Name="UpperLimit" ColumnName="UpperLimit" />
- <ScalarProperty Name="UseUpperLimit" ColumnName="UseUpperLimit" />
- <ScalarProperty Name="PointName" ColumnName="PointName" />
- <ScalarProperty Name="FacilityName" ColumnName="FacilityName" />
- <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
- <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsAlarmLog">
- <EntityTypeMapping TypeName="iBemsModel.BemsAlarmLog">
- <MappingFragment StoreEntitySet="BemsAlarmLog">
- <ScalarProperty Name="Conform" ColumnName="Conform" />
- <ScalarProperty Name="EmailResult" ColumnName="EmailResult" />
- <ScalarProperty Name="SMSResult" ColumnName="SMSResult" />
- <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
- <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
- <ScalarProperty Name="FormulaId" ColumnName="FormulaId" />
- <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsAlarmGroup">
- <EntityTypeMapping TypeName="iBemsModel.BemsAlarmGroup">
- <MappingFragment StoreEntitySet="BemsAlarmGroup">
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="AlarmGroupId" ColumnName="AlarmGroupId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsAlarmGroupUser">
- <EntityTypeMapping TypeName="iBemsModel.BemsAlarmGroupUser">
- <MappingFragment StoreEntitySet="BemsAlarmGroupUser">
- <ScalarProperty Name="UserId" ColumnName="UserId" />
- <ScalarProperty Name="AlarmGroupId" ColumnName="AlarmGroupId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsEnergyCost">
- <EntityTypeMapping TypeName="iBemsModel.BemsEnergyCost">
- <MappingFragment StoreEntitySet="BemsEnergyCost">
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="GasPriceTypeId" ColumnName="GasPriceTypeId" />
- <ScalarProperty Name="PowerPriceTypeId" ColumnName="PowerPriceTypeId" />
- <ScalarProperty Name="GasHeatQuantity" ColumnName="GasHeatQuantity" />
- <ScalarProperty Name="GasConsumption" ColumnName="GasConsumption" />
- <ScalarProperty Name="PowerConsumption2" ColumnName="PowerConsumption2" />
- <ScalarProperty Name="PowerConsumption1" ColumnName="PowerConsumption1" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsEnergyConfigPercentMonth">
- <EntityTypeMapping TypeName="iBemsModel.BemsEnergyConfigPercentMonth">
- <MappingFragment StoreEntitySet="BemsEnergyConfigPercentMonth">
- <ScalarProperty Name="Water" ColumnName="Water" />
- <ScalarProperty Name="Gas" ColumnName="Gas" />
- <ScalarProperty Name="Electricity" ColumnName="Electricity" />
- <ScalarProperty Name="Month" ColumnName="Month" />
- <ScalarProperty Name="Year" ColumnName="Year" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsEnergyConfigPercentWeek">
- <EntityTypeMapping TypeName="iBemsModel.BemsEnergyConfigPercentWeek">
- <MappingFragment StoreEntitySet="BemsEnergyConfigPercentWeek">
- <ScalarProperty Name="Water" ColumnName="Water" />
- <ScalarProperty Name="Gas" ColumnName="Gas" />
- <ScalarProperty Name="Electricity" ColumnName="Electricity" />
- <ScalarProperty Name="Week" ColumnName="Week" />
- <ScalarProperty Name="Year" ColumnName="Year" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsEnergyDaily">
- <EntityTypeMapping TypeName="iBemsModel.BemsEnergyDaily">
- <MappingFragment StoreEntitySet="BemsEnergyDaily">
- <ScalarProperty Name="CDD" ColumnName="CDD" />
- <ScalarProperty Name="HDD" ColumnName="HDD" />
- <ScalarProperty Name="MeanT" ColumnName="MeanT" />
- <ScalarProperty Name="Prediction_Regression" ColumnName="Prediction_Regression" />
- <ScalarProperty Name="Goal" ColumnName="Goal" />
- <ScalarProperty Name="Measurement" ColumnName="Measurement" />
- <ScalarProperty Name="Prediction" ColumnName="Prediction" />
- <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
- <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsEnergyDailyRegression">
- <EntityTypeMapping TypeName="iBemsModel.BemsEnergyDailyRegression">
- <MappingFragment StoreEntitySet="BemsEnergyDailyRegression">
- <ScalarProperty Name="IsRegression" ColumnName="IsRegression" />
- <ScalarProperty Name="Holiday_Water_Temp" ColumnName="Holiday_Water_Temp" />
- <ScalarProperty Name="Holiday_Water" ColumnName="Holiday_Water" />
- <ScalarProperty Name="Holiday_Gas_Temp" ColumnName="Holiday_Gas_Temp" />
- <ScalarProperty Name="Holiday_Gas" ColumnName="Holiday_Gas" />
- <ScalarProperty Name="Holiday_Power_Temp" ColumnName="Holiday_Power_Temp" />
- <ScalarProperty Name="Holiday_Power" ColumnName="Holiday_Power" />
- <ScalarProperty Name="Weekday_Water_Temp" ColumnName="Weekday_Water_Temp" />
- <ScalarProperty Name="Weekday_Water" ColumnName="Weekday_Water" />
- <ScalarProperty Name="Weekday_Gas_Temp" ColumnName="Weekday_Gas_Temp" />
- <ScalarProperty Name="Weekday_Gas" ColumnName="Weekday_Gas" />
- <ScalarProperty Name="Weekday_Power_Temp" ColumnName="Weekday_Power_Temp" />
- <ScalarProperty Name="Weekday_Power" ColumnName="Weekday_Power" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="WeatherDongNaeForecast">
- <EntityTypeMapping TypeName="iBemsModel.WeatherDongNaeForecast">
- <MappingFragment StoreEntitySet="WeatherDongNaeForecast">
- <ScalarProperty Name="Version" ColumnName="Version" />
- <ScalarProperty Name="DBTime" ColumnName="DBTime" />
- <ScalarProperty Name="Type" ColumnName="Type" />
- <ScalarProperty Name="WSD" ColumnName="WSD" />
- <ScalarProperty Name="VEC" ColumnName="VEC" />
- <ScalarProperty Name="VVV" ColumnName="VVV" />
- <ScalarProperty Name="UUU" ColumnName="UUU" />
- <ScalarProperty Name="TMX" ColumnName="TMX" />
- <ScalarProperty Name="TMN" ColumnName="TMN" />
- <ScalarProperty Name="T3H" ColumnName="T3H" />
- <ScalarProperty Name="SKY" ColumnName="SKY" />
- <ScalarProperty Name="S06" ColumnName="S06" />
- <ScalarProperty Name="REH" ColumnName="REH" />
- <ScalarProperty Name="R06" ColumnName="R06" />
- <ScalarProperty Name="PTY" ColumnName="PTY" />
- <ScalarProperty Name="POP" ColumnName="POP" />
- <ScalarProperty Name="ForecastTime" ColumnName="ForecastTime" />
- <ScalarProperty Name="ny" ColumnName="ny" />
- <ScalarProperty Name="nx" ColumnName="nx" />
- <ScalarProperty Name="BaseTime" ColumnName="BaseTime" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsEquipmentRentInfo">
- <EntityTypeMapping TypeName="iBemsModel.FmsEquipmentRentInfo">
- <MappingFragment StoreEntitySet="FmsEquipmentRentInfo">
- <ScalarProperty Name="RentUser" ColumnName="RentUser" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- <ScalarProperty Name="EquipmentStateTypeId" ColumnName="EquipmentStateTypeId" />
- <ScalarProperty Name="ReturnFixDate" ColumnName="ReturnFixDate" />
- <ScalarProperty Name="ReturnDueDate" ColumnName="ReturnDueDate" />
- <ScalarProperty Name="RentDate" ColumnName="RentDate" />
- <ScalarProperty Name="RegisterDate" ColumnName="RegisterDate" />
- <ScalarProperty Name="RentUserId" ColumnName="RentUserId" />
- <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
- <ScalarProperty Name="EquipmentRentId" ColumnName="EquipmentRentId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsControlAHUTempConfig">
- <EntityTypeMapping TypeName="iBemsModel.BemsControlAHUTempConfig">
- <MappingFragment StoreEntitySet="BemsControlAHUTempConfig">
- <ScalarProperty Name="MinTemperature" ColumnName="MinTemperature" />
- <ScalarProperty Name="MaxTemperature" ColumnName="MaxTemperature" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsFuelType">
- <EntityTypeMapping TypeName="iBemsModel.BemsFuelType">
- <MappingFragment StoreEntitySet="BemsFuelType">
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmFacility">
- <EntityTypeMapping TypeName="iBemsModel.CmFacility">
- <MappingFragment StoreEntitySet="CmFacility">
- <ScalarProperty Name="ContractType" ColumnName="ContractType" />
- <ScalarProperty Name="FuelTypeId" ColumnName="FuelTypeId" />
- <ScalarProperty Name="IsVirtualFacility" ColumnName="IsVirtualFacility" />
- <ScalarProperty Name="FileId" ColumnName="FileId" />
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="Reserved2" ColumnName="Reserved2" />
- <ScalarProperty Name="Reserved1" ColumnName="Reserved1" />
- <ScalarProperty Name="Note" ColumnName="Note" />
- <ScalarProperty Name="SubContactorUserId" ColumnName="SubContactorUserId" />
- <ScalarProperty Name="MainContactorUserId" ColumnName="MainContactorUserId" />
- <ScalarProperty Name="RatedCOP" ColumnName="RatedCOP" />
- <ScalarProperty Name="RatedPowerConsumption" ColumnName="RatedPowerConsumption" />
- <ScalarProperty Name="FacilityUsage" ColumnName="FacilityUsage" />
- <ScalarProperty Name="FacilitySeviceLifeYear" ColumnName="FacilitySeviceLifeYear" />
- <ScalarProperty Name="FacilityCount" ColumnName="FacilityCount" />
- <ScalarProperty Name="FacilityCost" ColumnName="FacilityCost" />
- <ScalarProperty Name="FacilityCapacity" ColumnName="FacilityCapacity" />
- <ScalarProperty Name="OperationStartDate" ColumnName="OperationStartDate" />
- <ScalarProperty Name="InstallDate" ColumnName="InstallDate" />
- <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
- <ScalarProperty Name="FloorId" ColumnName="FloorId" />
- <ScalarProperty Name="BuildingId" ColumnName="BuildingId" />
- <ScalarProperty Name="SupplierPhoneNo" ColumnName="SupplierPhoneNo" />
- <ScalarProperty Name="Supplier" ColumnName="Supplier" />
- <ScalarProperty Name="ManufactureModel" ColumnName="ManufactureModel" />
- <ScalarProperty Name="ManufactureSerial" ColumnName="ManufactureSerial" />
- <ScalarProperty Name="ManufactureDate" ColumnName="ManufactureDate" />
- <ScalarProperty Name="Manufacturer" ColumnName="Manufacturer" />
- <ScalarProperty Name="Rfid" ColumnName="Rfid" />
- <ScalarProperty Name="Nickname" ColumnName="Nickname" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="ParentFacilityCode" ColumnName="ParentFacilityCode" />
- <ScalarProperty Name="DeviceType" ColumnName="DeviceType" />
- <ScalarProperty Name="ThirdClassId" ColumnName="ThirdClassId" />
- <ScalarProperty Name="SecondClassId" ColumnName="SecondClassId" />
- <ScalarProperty Name="FirstClassId" ColumnName="FirstClassId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsMonitoringPointHistory15minRawData">
- <EntityTypeMapping TypeName="iBemsModel.BemsMonitoringPointHistory15minRawData">
- <MappingFragment StoreEntitySet="BemsMonitoringPointHistory15minRawData">
- <ScalarProperty Name="CurrentValue" ColumnName="CurrentValue" />
- <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
- <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsDailyReport">
- <EntityTypeMapping TypeName="iBemsModel.FmsDailyReport">
- <MappingFragment StoreEntitySet="FmsDailyReport">
- <ScalarProperty Name="ApproveDate5" ColumnName="ApproveDate5" />
- <ScalarProperty Name="ApproverUserId5" ColumnName="ApproverUserId5" />
- <ScalarProperty Name="ApproveDate4" ColumnName="ApproveDate4" />
- <ScalarProperty Name="ApproverUserId4" ColumnName="ApproverUserId4" />
- <ScalarProperty Name="ApproveDate3" ColumnName="ApproveDate3" />
- <ScalarProperty Name="ApproverUserId3" ColumnName="ApproverUserId3" />
- <ScalarProperty Name="ApproveDate2" ColumnName="ApproveDate2" />
- <ScalarProperty Name="ApproverUserId2" ColumnName="ApproverUserId2" />
- <ScalarProperty Name="RegisterDate" ColumnName="RegisterDate" />
- <ScalarProperty Name="ApproveDate" ColumnName="ApproveDate" />
- <ScalarProperty Name="ApproverUserId" ColumnName="ApproverUserId" />
- <ScalarProperty Name="Datas" ColumnName="Datas" />
- <ScalarProperty Name="BusinessFieldId" ColumnName="BusinessFieldId" />
- <ScalarProperty Name="AddDate" ColumnName="AddDate" />
- <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
- <ScalarProperty Name="Contents" ColumnName="Contents" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="DailyReportId" ColumnName="DailyReportId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsPeakHistoryDaily">
- <EntityTypeMapping TypeName="iBemsModel.BemsPeakHistoryDaily">
- <MappingFragment StoreEntitySet="BemsPeakHistoryDaily">
- <ScalarProperty Name="MinDateTime" ColumnName="MinDateTime" />
- <ScalarProperty Name="MinPeakValue" ColumnName="MinPeakValue" />
- <ScalarProperty Name="MaxDateTime" ColumnName="MaxDateTime" />
- <ScalarProperty Name="MaxPeakValue" ColumnName="MaxPeakValue" />
- <ScalarProperty Name="CreatedDateTime" ColumnName="CreatedDateTime" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsEquipment">
- <EntityTypeMapping TypeName="iBemsModel.FmsEquipment">
- <MappingFragment StoreEntitySet="FmsEquipment">
- <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
- <ScalarProperty Name="SupplierPhoneNo" ColumnName="SupplierPhoneNo" />
- <ScalarProperty Name="SupplierName" ColumnName="SupplierName" />
- <ScalarProperty Name="RegisterUserId" ColumnName="RegisterUserId" />
- <ScalarProperty Name="UpdateDate" ColumnName="UpdateDate" />
- <ScalarProperty Name="AddDate" ColumnName="AddDate" />
- <ScalarProperty Name="Standard" ColumnName="Standard" />
- <ScalarProperty Name="Unit" ColumnName="Unit" />
- <ScalarProperty Name="WarehouseId" ColumnName="WarehouseId" />
- <ScalarProperty Name="EquipmentTypeId" ColumnName="EquipmentTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="EquipmentId" ColumnName="EquipmentId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmAlarmAdmin">
- <EntityTypeMapping TypeName="iBemsModel.CmAlarmAdmin">
- <MappingFragment StoreEntitySet="CmAlarmAdmin">
- <ScalarProperty Name="EmailPassword" ColumnName="EmailPassword" />
- <ScalarProperty Name="EmailAddress" ColumnName="EmailAddress" />
- <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
- <ScalarProperty Name="DeptCode" ColumnName="DeptCode" />
- <ScalarProperty Name="UserCode" ColumnName="UserCode" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsFloorStatus">
- <EntityTypeMapping TypeName="iBemsModel.BemsFloorStatus">
- <MappingFragment StoreEntitySet="BemsFloorStatus">
- <ScalarProperty Name="FacilityName" ColumnName="FacilityName" />
- <ScalarProperty Name="PropertyId" ColumnName="PropertyId" />
- <ScalarProperty Name="FacilityCode" ColumnName="FacilityCode" />
- <ScalarProperty Name="FacilityTypeId" ColumnName="FacilityTypeId" />
- <ScalarProperty Name="ServiceTypeId" ColumnName="ServiceTypeId" />
- <ScalarProperty Name="ZoneId" ColumnName="ZoneId" />
- <ScalarProperty Name="Yvalue" ColumnName="Yvalue" />
- <ScalarProperty Name="Xvalue" ColumnName="Xvalue" />
- <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
- <ScalarProperty Name="FloorName" ColumnName="FloorName" />
- <ScalarProperty Name="FloorId" ColumnName="FloorId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsReportHistory">
- <EntityTypeMapping TypeName="iBemsModel.BemsReportHistory">
- <MappingFragment StoreEntitySet="BemsReportHistory">
- <ScalarProperty Name="FileName" ColumnName="FileName" />
- <ScalarProperty Name="parts" ColumnName="parts" />
- <ScalarProperty Name="Confirm2" ColumnName="Confirm2" />
- <ScalarProperty Name="Confirm1" ColumnName="Confirm1" />
- <ScalarProperty Name="Writer" ColumnName="Writer" />
- <ScalarProperty Name="Content" ColumnName="Content" />
- <ScalarProperty Name="FormatName" ColumnName="FormatName" />
- <ScalarProperty Name="ReportFormatId" ColumnName="ReportFormatId" />
- <ScalarProperty Name="ReportName" ColumnName="ReportName" />
- <ScalarProperty Name="DateTime" ColumnName="DateTime" />
- <ScalarProperty Name="Seq" ColumnName="Seq" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmPartner">
- <EntityTypeMapping TypeName="iBemsModel.CmPartner">
- <MappingFragment StoreEntitySet="CmPartner">
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="Note" ColumnName="Note" />
- <ScalarProperty Name="HomepageUri" ColumnName="HomepageUri" />
- <ScalarProperty Name="Adderss2" ColumnName="Adderss2" />
- <ScalarProperty Name="Address1" ColumnName="Address1" />
- <ScalarProperty Name="AddressZip2" ColumnName="AddressZip2" />
- <ScalarProperty Name="AddressZip1" ColumnName="AddressZip1" />
- <ScalarProperty Name="SalesPhoneNo" ColumnName="SalesPhoneNo" />
- <ScalarProperty Name="SalesName" ColumnName="SalesName" />
- <ScalarProperty Name="FaxNo" ColumnName="FaxNo" />
- <ScalarProperty Name="PhoneNo" ColumnName="PhoneNo" />
- <ScalarProperty Name="RepresentativeName" ColumnName="RepresentativeName" />
- <ScalarProperty Name="RegistrationNo" ColumnName="RegistrationNo" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
- <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CmPartnerType">
- <EntityTypeMapping TypeName="iBemsModel.CmPartnerType">
- <MappingFragment StoreEntitySet="CmPartnerType">
- <ScalarProperty Name="IsUse" ColumnName="IsUse" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="FmsContract">
- <EntityTypeMapping TypeName="iBemsModel.FmsContract">
- <MappingFragment StoreEntitySet="FmsContract">
- <ScalarProperty Name="PaymentTypeId" ColumnName="PaymentTypeId" />
- <ScalarProperty Name="ContractMethodId" ColumnName="ContractMethodId" />
- <ScalarProperty Name="ContractTypeId" ColumnName="ContractTypeId" />
- <ScalarProperty Name="ContractClassId" ColumnName="ContractClassId" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- <ScalarProperty Name="CommitmentMan" ColumnName="CommitmentMan" />
- <ScalarProperty Name="OwnerShipPhoneNo" ColumnName="OwnerShipPhoneNo" />
- <ScalarProperty Name="OwnerShipName" ColumnName="OwnerShipName" />
- <ScalarProperty Name="EndDate" ColumnName="EndDate" />
- <ScalarProperty Name="StartDate" ColumnName="StartDate" />
- <ScalarProperty Name="ContractDate" ColumnName="ContractDate" />
- <ScalarProperty Name="PartnerId" ColumnName="PartnerId" />
- <ScalarProperty Name="PartnerTypeId" ColumnName="PartnerTypeId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="ContractId" ColumnName="ContractId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="BemsFloorPlan">
- <EntityTypeMapping TypeName="iBemsModel.BemsFloorPlan">
- <MappingFragment StoreEntitySet="BemsFloorPlan">
- <ScalarProperty Name="ImageFileId" ColumnName="ImageFileId" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="FloorId" ColumnName="FloorId" />
- <ScalarProperty Name="SiteId" ColumnName="SiteId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- </EntityContainerMapping>
- </Mapping>
- </edmx:Mappings>
- </edmx:Runtime>
- <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
- <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
- <Connection>
- <DesignerInfoPropertySet>
- <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
- </DesignerInfoPropertySet>
- </Connection>
- <Options>
- <DesignerInfoPropertySet>
- <DesignerProperty Name="ValidateOnBuild" Value="true" />
- <DesignerProperty Name="EnablePluralization" Value="false" />
- <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
- <DesignerProperty Name="UseLegacyProvider" Value="true" />
- <DesignerProperty Name="CodeGenerationStrategy" Value="없음" />
- </DesignerInfoPropertySet>
- </Options>
- <!-- Diagram content (shape and connector positions) -->
- <Diagrams></Diagrams>
- </Designer>
- </edmx:Edmx>
|